Reproduce same output as in colorRamp R

Hello everyone!
Im a bioinformatician working on a pipeline in Python. Currently I'm converting a script in R to Python. I would like to keep the colors this R function colorRampPalette outputs.
For example:
colorRampPalette(c("#FF0000", "#FFCC00", "#66FF00", "#00FFCC", "#0000FF", "#FF0066"))(10)
Output:
'#FF0000' '#FF7100' '#EED100' '#99EE00' '#4FFF2D' '#16FF9E' '#00AADC' '#001CF9' '#7100BB' '#FF0066'
I found Coloraide package to get closer to the results I want, but it is not exact. Here's my code in python:
i = Color('#FF0000').interpolate(['#FFCC00', '#66FF00','#00FFCC', '#0000FF', '#FF0066'],progress=lambda t: t * (2 - t)) Listco = [i(x/10).to_string(hex=True) for x in range(10)]
Output:
'#ff0000' '#ffa900' '#ffcc00' '#9ef400' '#66ff00' '#2fffae' '#00ffcc' '#0070ef' '#0000ff' '#c74494'
Does anybody know how to get the same results? Not only for 10 colors, but any number of colors I would like to same results.
I don't understand very much about colors, if you can help me with this, I would very much appreciate.

@opalmeira, happy to see your interest in this project 🙂.
First off, ColorAide, as far as the most recent versions interpolate in the Oklab color space by default (previously we used CIELAB. I won't go into details as to why, but suffice it to say that oklab is generally a better interpolation space.
None of this matters that much to the average person, and I realize all you want is to match whatever ColorRampPalette is doing. If I were a betting man, I'd guess that they are interpolating in the sRGB space. So the secret is to simply interpolate in the same color space. And we can easily interpolate in that space simply by specifying it as our desired space.
Color('red').interpolate('green', space='srgb')

Now, I'm going to go ahead and suggest you use the steps function instead of the interpolate function as it will give you what you want without you needing to manually generate the steps. Granted, you are free to use interpolate directly. Under the hood, steps is using interpolate itself, so 🤷🏻.
>>> [c.to_string(hex=True) for c in Color('#FF0000').steps(['#FFCC00', '#66FF00','#00FFCC', '#0000FF', '#FF0066'], steps=10, space='srgb')]
['#ff0000', '#ff7100', '#eed200', '#99ee00', '#4fff2d', '#17ff9f', '#00aadd', '#001cf9', '#7100bb', '#ff0066']

Live example here.
Now, you'll notice some colors are 100% spot on.  Most likely this is due to floating-point precision and rounding. We are currently up at 5 decimal places, but we round up on 5. Most languages use "round half to even". So, if you are rounding at a given precision, and the number lands on 5, it'll round up or down depending on whether the closest even number is previous or next. I'm betting R does this as well. Python does this by default, but we are forcing it to round up to match the CSS convention.
For instance, we get #17ff9f and colorRampPalette  gets #16ff9e, no doubt because we are rounding up on the red channel and the blue channel. But, keep in mind that the difference between these colors is minimal:
>>> Color('#17ff9f').delta_e_2000('#16ff9e')
0.16105595380795237

I believe they call the JND (just noticeable difference) in ∆E2000 as ~2, and we are well below that.
I hope that helps!

We are currently up at 5 decimal places

Correction, for hex values we are obviously rounding to the nearest whole number, but in all other cases, the default is five decimal places when serializing to a string. Internally, we don't round until we have to in order to reduce noise when rounding trip converting from one color space to another.

@facelessuser , thank you very much for the quick response and explanation.
That was super helpful. And the very small differences are not a problem at all. As you said, it is not noticeable and it won't interfere on the purpose of the script. Thank you again and congratulations on the package!

Glad I could help!


meu push

Diff Review: No Changes Found

Security Review: No major security issues found.

Perf Review: Service Unavailable

Credentials Review: src/flask.py

Method name: add_user
Issue: Hardcoded password
Explanation: The password for the database connection is hardcoded in the code. This is a security risk because anyone who has access to the code can see the password and use it to access the database.
Recommendation: Move the password to a secure location, such as an environment variable or a configuration file.

src/msql.cs

Method name: connectionString
Issue: Hardcoded password
Explanation: The password for the database connection is hardcoded in the code. This is a security risk because anyone who has access to the code can see the password and use it to access the database.
Recommendation: Move the password to a secure location, such as an environment variable or a configuration file.

Diff Review: Main Changes:

Added Python functions to create, list, and delete GCS buckets.
Added a Flask application to connect to a MySQL database and perform CRUD operations on users.
Added a C# program to connect to a MySQL database and retrieve user data.

Broken SOLID Concepts:

No broken SOLID concepts found.

Security Review: No major security issues found.

Perf Review: Service Unavailable

Credentials Review: src/flask.py
Method: connect
Issue: Hardcoded password
Explanation: The password for the database connection is hardcoded in the code, which is a security risk as it can be easily accessed by anyone who has access to the code.
Recommendation: Store the password in a secure location, such as a configuration file or environment variable, and read it from there at runtime.
Code example:
import os

# Get the password from the environment variable
password = os.getenv('DB_PASSWORD')

# Connect to the database
db = pymysql.connect(
    host='<IP_ADDRESS>',
    user='root',
    password=password,
    db='my_database'
)

src/msql.cs
Method: connect
Issue: Hardcoded password
Explanation: The password for the database connection is hardcoded in the code, which is a security risk as it can be easily accessed by anyone who has access to the code.
Recommendation: Store the password in a secure location, such as a configuration file or environment variable, and read it from there at runtime.
Code example:
            // Get the password from the environment variable
            string password = Environment.GetEnvironmentVariable("DB_PASSWORD");

            // Create the connection string using the specified values.
            string connectionString = $"Server={server};Database={database};Uid={username};Pwd={password};";

            // Create a connection to the database.
            using (MySqlConnection connection = new MySqlConnection(connectionString))
            {
                // Open the connection.
                connection.Open();

                // Create a command to execute against the database.
                using (MySqlCommand command = connection.CreateCommand())
                {
                    // Set the command text.
                    command.CommandText = "SELECT * FROM users;";

                    // Execute the command and get the results.
                    using (MySqlDataReader reader = command.ExecuteReader())
                    {
                        // Read the results and print them to the console.
                        while (reader.Read())
                        {
                            Console.WriteLine($"{reader["id"]}, {reader["name"]}, {reader["email"]}");
                        }
                    }
                }
            }

Diff Review: No Changes Found

Security Review: No major security issues found.

Perf Review: Service Unavailable

Credentials Review: Potential credential leaks
Class name.Method name: src/flask.py:connect_to_database()
Issue: Hardcoded password
Explanation: The password for the database is hardcoded in the code, which could be leaked if the code is compromised.
Recommendation: Store the password in a secure location, such as a secrets manager, and retrieve it at runtime.
Hardcoded password
Class name.Method name: src/msql.cs:connect_to_database()
Issue: Hardcoded password
Explanation: The password for the database is hardcoded in the code, which could be leaked if the code is compromised.
Recommendation: Store the password in a secure location, such as a secrets manager, and retrieve it at runtime.
Exposed environment variables
Class name.Method name: None
Issue: No exposed environment variables found.
Explanation: The code does not appear to expose any environment variables.
Recommendation: None

Diff Review: No Changes Found

Security Review: No major security issues found.

Perf Review: Service Unavailable

Credentials Review: src/flask.py
Method name: connect
Issue: Hardcoded password
Explanation: The password for the database connection is hardcoded in the code. This is a security risk because anyone who has access to the code can see the password and use it to access the database.
Recommendation: Store the password in a secure location, such as a password manager or environment variable.
Code example:
import os

# Get the password from the environment variable.
password = os.environ['DB_PASSWORD']

# Connect to the database.
db = pymysql.connect(
    host='<IP_ADDRESS>',
    user='root',
    password=password,
    db='my_database'
)

src/msql.cs
Method name: connect
Issue: Hardcoded password
Explanation: The password for the database connection is hardcoded in the code. This is a security risk because anyone who has access to the code can see the password and use it to access the database.
Recommendation: Store the password in a secure location, such as a password manager or environment variable.
Code example:
            // Get the password from the environment variable.
            string password = Environment.GetEnvironmentVariable("DB_PASSWORD");

            // Create the connection string using the specified values.
            string connectionString = $"Server={server};Database={database};Uid={username};Pwd={password};";

            // Create a connection to the database.
            using (MySqlConnection connection = new MySqlConnection(connectionString))
            {
                // Open the connection.
                connection.Open();

                // Create a command to execute against the database.
                using (MySqlCommand command = connection.CreateCommand())
                {
                    // Set the command text.
                    command.CommandText = "SELECT * FROM users;";

                    // Execute the command and get the results.
                    using (MySqlDataReader reader = command.ExecuteReader())
                    {
                        // Read the results and print them to the console.
                        while (reader.Read())
                        {
                            Console.WriteLine($"{reader["id"]}, {reader["name"]}, {reader["email"]}");
                        }
                    }
                }
            }


gNOI-5.1: Ping

Hi,
https://github.com/openconfig/featureprofiles/blob/main/feature/gnoi/tests/ping_test/ping_test.go#L99
lo0 := dut.Telemetry().Interface("Loopback0").Subinterface(0)
Was trying this script and seems the loopback interface name is hardcoded to "Loopback0" in Line 99. Could you please clarify on same as the name varies with Vendor?
Thanks.

@sezhang2 can you help with this question?

I tried "Loopback0" on a couple of different vendor platforms. It works fine.
I will make Loopback0 as the default and allow user to specify new name based on the vendor if needed.

I thought Juniper named the interface lo0. I can easily create a helper function in ondatra/netutil for returning the Loopback0 interface name specific to the vendor.

That will help. Thanks Greg.
From: Greg Dennis @.>
Date: Monday, May 16, 2022 at 12:54 PM
To: openconfig/featureprofiles @.>
Cc: Yashika Yashika @.>, Author @.>
Subject: Re: [openconfig/featureprofiles] gNOI-5.1: Ping (Issue #148)
[External Email. Be cautious of content]
I thought Juniper named the interface lo0. I can easily create a helper function in ondatra/netutil for returning the Loopback0 interface name specific to the vendor.
—
Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/openconfig/featureprofiles/issues/148*issuecomment-1128074290__;Iw!!NEt6yMaO-gk!BYX8k0JdwtvEpFvKCqnkP5Pso9muLvSuwsLFvRvarvcHdgZZ8Rqy30n8LbQwgAeB2vBAcdups5yL8qvpk65qaRgU$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AYFO56JXBARBXRAPNK3ATITVKKRVVANCNFSM5T7HXN5A__;!!NEt6yMaO-gk!BYX8k0JdwtvEpFvKCqnkP5Pso9muLvSuwsLFvRvarvcHdgZZ8Rqy30n8LbQwgAeB2vBAcdups5yL8qvpkw7uTskT$.
 Juniper loopback interface is named as lo0. A helper function for returning the Loopback0 interface name specific to the vendor would be good. Thanks.

Here is the code I used:
lbIntf := "Loopback0"
if dut.Vendor() == ondatra.JUNIPER {
	lbIntf = "lo0"
}
subintf := dut.Telemetry().Interface(lbIntf).Subinterface(0)

Done. You can now use netutil.LookbackInterface to get a Loopback interface name per vendor:
https://github.com/openconfig/ondatra/blob/main/netutil/interface.go#L45

Fixed.

https://github.com/openconfig/featureprofiles/blob/main/feature/gnoi/system/tests/ping_test/ping_test.go#L100

lbIntf := netutil.LoopbackInterface(t, dut, 0)


Deprecate and remove api/v1/

This is intentionally incomplete and is open mostly as a guideline to see what breaks.
The description will be updated once the work is finished and serves as a checklist to give visibility of a plan for reviewers.
fixes #2469
The steps to take are:

[x] Allow /api/v1/alerts to behave like /api/v2/alerts.
[x] Update comments and resolve TODOs if applicable - I don't have any context on them yet but I'll find out.
[x] Revise any configuration options to see if there are any applicable only to api/v1

Edit:

Instead of making api/v1/* redirect to the /api/v2 I opted for adding a deprecation notice in JSON to all of the v1 routes. On top of that, each time a v1 route is called it'll log a warning letting the operator know that something is not going right.
I checked, TODOs and the removed code to see if there was anything I was missing but I couldn't find anything.

@simonpasquier I think this ready for review - this is currently blocking the progress on #3567 as making API v1 compatible with that work is a large endeavour for something we don't need.
Would appreciate a speedy review - I think the changes to the deprecation router are good enough to let users know that something that we deprecated back in 0.18 is now gone.

Looks great in general, but you are so deep into the weeds here that I don't feel qualified to evaluate the details. :)

Thanks @beorn7 - With the amount of context you have, you'll always be overqualified to review anything we throw at you.

Should we follow up with a change on prometheus to now allow configuring v1 endpoints anymore?
https://github.com/prometheus/prometheus/blob/9b7de4778732ca2f2ab5028e9d1955109f440c4c/config/config.go#L910-L921

Chore: Update Prometheus cortexproject/cortex#5841

Yes please Alan! Would you be happy to open a PR for that?

Np: https://github.com/prometheus/prometheus/pull/13883


add finance prolicy about proposals being public

Just what it says on the tin!

Title: prolicy -> policy

Hey @eteq — I just noticed this PR has been sitting idle for a while now. Anything I can do to help get it merged?

We've discussed this before, agreed on it months ago and it's been open for review for quite a while. MErging.


OCM-300 | feat: remove environment check for managed policies

Remove the check for HCP-managed policies in production.
Leave the check for Classic ROSA managed policies in the commands: create account-roles, and create ocm-role.

Note: The --managed-policies flag applies to classic ROSA.
Unblock the path for --hosted-cp in production, which comes along the HCP AWS managed policies.
Related: OCM-300

LGTM

/lgtm


Wish: adjust Volume for specific Application

Hi
First of all - thank you for this App. Small and working. Great!
I am listening WebRadio during working Time. Or watch youtube. Probably like a lot of you.
But also I have to use Teams. Also probably a lot of you.
When I'm getting a phone call I have to open the app (WebRadio or Youtube) mute it and then accept the call.
Therefore It would be perfect if I could tell tb-vol-scroll to change the volume of a predefined app while using the mouse wheel and an additional key (Ctrl or Alt)
Would this be possible?

It's possible but not feasible to implement for me.
I suggest using Volume2, it has more options including application-specific volume control: https://github.com/irzyxa/Volume2

It's possible but not feasible to implement for me.
I suggest using Volume2, it has more options including application-specific volume control: https://github.com/irzyxa/Volume2


can't git pull from bare repository

Wow. I'm so surprised that this only appeared now. It seems like such a critical bug.
When pulling master from a bare repository, it's going to fail with something like:
error: Your local changes to the following files would be overwritten by merge:
        CHANGELOG.md
        README.md
        src/OutsideClickHandler.jsx
        test/OutsideClickHandler_test.jsx
Please commit your changes or stash them before you merge.
Aborting

This is because bare repositories don't have the files in them, and pulling pulls those files into your local copy.
Instead, what we need to do is:
git fetch origin master:master

This will pull the changes, but not the files themselves.

Just summarizing the historical stuff:
We originally did:
try:
    # Retrieve the current branch name
    main_branch = subprocess.check_output([
        'git',
        '--git-dir',
        repo_location,
        'rev-parse',
        '--abbrev-ref',
        'HEAD'
    ], stderr=subprocess.STDOUT).strip()

    # Fetch the latest HEAD into the bare repo
    subprocess.check_output([
        'git',
        '--git-dir',
        repo_location,
        'fetch',
        '-q',
        'origin',
        main_branch
    ], stderr=subprocess.STDOUT)
except subprocess.CalledProcessError as e:
    error_msg = e.output.decode('ascii')
    print(error_msg)
    return

then changed it to
    subprocess.check_output([
        'git',
        '--git-dir', self.repo_location,
        '--work-tree', '.',
        'pull',
    ], stderr=subprocess.STDOUT)

and don't remember why. We're gonna change it back to what it was originally.

Thanks to #23 this should now be fixed in 0.2.7 https://github.com/Yelp/detect-secrets-server/blob/master/CHANGELOG.md#027


Solved Issue #36 Added Correct Link to Footer Logo [GSSOC'23]

[fix] Change Incorrect Link on Footer Logo

Changed link on footer logo to correct link -> '/Umatter/'
Changed SocialLogo Components style to underline -> text-decoration: none;
Changed style of SocialMediaWrap Component to align components on baseline -> align-items: baseline;

closes: #36 @Mansi168

LGTM! Thanks..

@MonalikaPatnaik Can you kindly add GSSOC'23 and Level labels as well as assign me ?
Thanks in advance for taking time for this.
Regards,
Jeyavishnu @vishnu9865

@MonalikaPatnaik Can you kindly add GSSOC'23 and Level labels as well as assign me ? Thanks in advance for taking time for this. Regards, Jeyavishnu @vishnu9865

Hey the issue is already assigned to you! We will soon be adding level labels..just don't worry!


RE2 reframework does not initialize "exception thrown"

tried multiple nightlys and stable builds, aswell as d12 and d11
re2_framework_log.txt
im on non ray tracing version
reframework never initializes, the txt file is linked but it ends with "exception thrown"
desktop
windows 10

You are on the RT version. Use RE2.zip
Did you pirate the game?

omg yes that was the issue thank you.


fix: 修复site build 报错

Checklist

[ ] npm test passes
[ ] tests and/or benchmarks are included
[ ] commit message follows commit guidelines

Description of change

https://github.com/antvis/F2/issues/1217


add tracking pixels from scarf to follow the users journeys in the we…

…bsite and get stats

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind design

/kind user-interface

/kind content

/kind translation

/kind event

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area blog
/area documentation
/area community
What this PR does / why we need it:
We agreed in the last community to test the GDPR compliant tracking of scarf to have statistic of the usage of the website. This PR introduces 3 tracking pixels to do so.
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: Issif
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [Issif]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: Issif, leogr
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [Issif,leogr]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

LGTM label has been added.  Git tree hash: 4b005556653b2a4d99ec141b89c85b9054f81ba6


stack .env file is empty after deployment - file content gets overwritten during deploy

docker-compose supports .env files to make variable substitutions in the compose file.
When deploying a stack from a git repository, which contains a .env file in the root directory of the git repository, the file gets emptied during deployment.
Steps to reproduce

Set up a git repository with docker-compose.yml file in repository root, containing

version: '3.8'
services:
  test:
    image: ${IMG}

and a .env file in repository root, containing
IMG=alpine

Deploy the stack from the git repository using Portainer, specifying docker-compose.yml as the compose path and refs/heads/main as branch reference.

The deployment will fail because it cannot find the substitution variable ${IMG}.

When checking the cloned content in /data/compose/<id>, the size of .env file is 0.
When setting environments in portainer ui

the value gets (over)written in the .env flle

I think the root of the issue is with the flag os.O_TRUNC here:
https://github.com/portainer/portainer/blob/59ec22f70634cabdaad4cb8b08ed8c7dde99f335/api/exec/compose_stack.go#L196-L197
Expected behavior
An existing .env file does not get overwritten during deployment.
Workaround:
Upload the .env file manually - this will mean that it will not be managed through the git repository and in is in contrast to what i expect with a git deploy/git is master
Technical details:

Portainer version: 2.11.1
Docker version (managed by Portainer): 20.10.7
Platform (windows/linux): linux/amd64

@BobSilent
thank you for raising this.
I'm able to replicate the issue and engineering is currently investigating

@samdulam Any updates on this? It's useless to use stacks from git repos without proper support for env/config files.

This is a serious bug...


DONTMERGE Dynamic pricing page (draft)

Blocker:Need to verify c7g produces stable results and we don't need dedicated instances.

@mfleming You may want to run this for yourself to see the page.
Short term we probably want to remove the CPUH/DSI stuff and add it back when we're actually ready to sell it.


#155502204 - implement edit idea feature

What does this PR do?

Implement edit idea feature on the front-end

Description of Task to be completed?

create edit idea page
create edit idea form
create actions, reducers

How should this be manually tested?

view app online

Any background context you want to provide?

None

What are the relevant pivotal tracker stories?
https://www.pivotaltracker.com/story/show/155502204
Screenshots (if appropriate)
Questions:
N/A

Pull Request Test Coverage Report for Build 102

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

Totals

Change from base Build 92:
0.0%

Covered Lines:
301

Relevant Lines:
341

💛  - Coveralls


RLE -- FlipRange

Implement the FlipRange method in the RLEBitset class. For each index in the range [start, end) it should add the member to the set if it doesn't exists, or remove it from the set if it already exists. A test for this is present in the BaseBitSetTests class.

I'll do this


trax resnet50 example doesn't download imagnet dataset, so doesn't work

Description
I'm trying to follow the trax examples in the trax README.md.  I ran
python -m tensor2tensor.trax.trainer \
  --config_file=$PWD/trax/configs/resnet50_imagenet_8gb.gin

and this fails with
ValueError: No data files found in /usr/local/google/tmp/trax/image_imagenet-train*

apparently it didn't download the imagenet dataset.  The mnist example from the README works (and downloads the dataset).
Full log: https://gist.github.com/9d4268c04465e5ca8bbf0fbd372c6370
Environment information
OS: macos

$ pip3 freeze | grep 'tensor|jax'
tpip3 freeze | grep 'tensor\|jax'
jax==0.1.44
jaxlib==0.1.28
tensorboard==1.14.0
tensorflow-datasets==1.2.0
tensorflow-estimator==1.14.0
tensorflow-gpu==1.14.0
tensorflow-metadata==0.14.0
tensorflow-probability==0.7.0

$ python3 -V
Python 3.6.8rc1

$ git rev-parse HEAD
648184c46abb86239d8fdb317d7921d4bae8800c

Same for the TransformerDecoder on LM1B example; it also doesn't download the dataset and fails in the same way.

This seems related to #1692 fix should be the same? @lukaszkaiser

This seems related to #1692

Could be, but I don't think so.  I worked around #1692 by adding an explicit data dir and it still doesn't download the training data anywhere.

Yes, it won't, we'll have to explicitly ask it to f generate_data
On Sun, Sep 8, 2019, 10:38 AM Justin Lebar<EMAIL_ADDRESS>wrote:

This seems related to #1692
https://github.com/tensorflow/tensor2tensor/issues/1692
Could be, but I don't think so. I worked around #1692
https://github.com/tensorflow/tensor2tensor/issues/1692 by adding an
explicit data dir and it still doesn't download the training data anywhere.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensor2tensor/issues/1694?email_source=notifications&email_token=AAIUEFRSJAWHQHXGFJT2G3TQIU2DBA5CNFSM4IUTPC72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6FVKMI#issuecomment-529225009,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAIUEFQDXC4UO5YDG5F7LZ3QIU2DBANCNFSM4IUTPC7Q
.

I'm happy to do that if it's not too hard, but I'd need a pointer or two.  I'm not really sure how all of this is supposed to work.  :)


Update container-registry-troubleshoot-md.

Add more info on troubleshooting quota-related issues. Make verbiage and formatting more consistent.

#sign-off

Learn Build status updates of commit 2b15a9a:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

azure-stack/user/container-registry-troubleshoot.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel

@sethmanheim
Can you review the proposed changes? IMPORTANT: When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@domggarrity Is it possible to move this to the private repo?

@sethmanheim Sorry, I'm not sure what you mean. Should changes be pushed to a private repo instead of MicrosoftDocs?

@sethmanheim Sorry, I'm not sure what you mean. Should changes be pushed to a private repo instead of MicrosoftDocs?

Can you please use the same repo you used for your previous PR: https://github.com/MicrosoftDocs/azure-stack-docs-pr/pull/10839. Thanks!

@sethmanheim Done. Here is the new PR: https://github.com/MicrosoftDocs/azure-stack-docs-pr/pull/11301. Apologies for not originally doing that.

@sethmanheim Done. Here is the new PR: MicrosoftDocs/azure-stack-docs-pr#11301. Apologies for not originally doing that.

Awesome, thank you!


Feature request - pass colour for each dot

Hey guys, thanks for this
Just a simple feature request. If I can find the time to do it, I will fork. In the mean time, just thought I'd get the request out there.
Hope this can turn into a great package,
Thanks

done :D


Docker image build failure due to long group ID

Description
Getting below error while building  micro-gateway docker image.
"error [docker plugin]: module [wso2/api_project:3.2.0] unable to build docker image: group id '1338702724' is too big ( > 2097151 ). Use STAR or POSIX extensions to overcome this limit"
Steps to Reproduce
Change the group ID (which is larger than 2097151) of the existing user group on the local machine (Ubuntu OS) using the following command:
sudo groupmod -g<PHONE_NUMBER> group_name
Then build the Docker image using the command below:
toolkit/bin/micro-gw build api_project --docker-image demodocker:Immanuel --docker-base-image docker.wso2.com/wso2micro-gw:<IP_ADDRESS> --deployment-config /conf/deployment-config.toml
Affected Component
APIM
Version
MGW-3.2.0
Environment Details (with versions)
No response
Relevant Log Output
No response
Related Issues
No response
Suggested Labels
No response

Closing this since master PR is merged.


[Bug] NoneType Error in Agent Status Check

Checked other resources

[X] I added a very descriptive title to this issue.
[X] I am sure the issue hasn't been already addressed by searching through https://github.com/agiresearch/AIOS/issues.
[X] The usage issue is not resolved by updating to the latest stable version in the main branch.

Describe your current environment
macOS
Python 3.10.15
Describe the bug
Description
When running math_agent, the system throws 'NoneType' object has no attribute 'replace' error during agent status checks, despite successful agent download and cache.
Steps to Reproduce

Run math_agent :
run-agent --llm_name gpt-4o-mini --llm_backend openai --agent_name_or_path example/math_agent --task "Expand the expression (3x + 2)(4x - 5)" --aios_kernel_url http://localhost:8000
Agent downloads and caches successfully
During status check, error occurs

INFO: <IP_ADDRESS>:65511 - "POST /agents/submit HTTP/1.1" 200 OK
Saved agent to cache: /Users/xiangzhang/Library/Caches/cerebrum/example/math_agent/0-0-1.agent
Agent example/math_agent (v0.0.1) downloaded and cached successfully.
Installing dependencies for agent. Writing to /Users/xiangzhang/Library/Caches/cerebrum/example/math_agent/0-0-1.log
'NoneType' object has no attribute 'replace'
INFO: <IP_ADDRESS>:65512 - "GET /agents/420517/status HTTP/1.1" 200 OK
Expected Behavior

Agent status check should complete without NoneType errors
Status should be properly returned

Actual Behavior

NoneType error occurs during status check
Error repeats with subsequent status checks

Please check the latest version of Cerebrum with the following two PRs

https://github.com/agiresearch/Cerebrum/pull/11
https://github.com/agiresearch/Cerebrum/pull/9

to see whether it has been resolved.

The issue has been resolved in my earlier PR. The latest PRs seem to add further improvements. I believe this issue can now be closed.


Print resolution info in Bazel file

Previously, the Bazel file produced by multiversion would not include
information about the context of the resolution that produced a given
target. This commit adds a comment to every declared dependency, so that
one can get information about the originating target, the exclusions and
the dependencies that affected the resolution.

As per discussed, maybe try putting this in tag?


Docs: sentence is cut-out

This part of documentation needs to be fixed:
Time Series Generative Modeling (TSGM) is a Python framework for time series data generation. It include data-driven and model-based approaches to synthetic time-series generation. It uses both generative

The package is built on top of [Tensorflow](https://www.tensorflow.org/) that allows training the models on CPUs, GPUs, or TPUs.

Link to source:
docs/index.rst

let me fix it

@khartist Sure, thank you!
I think it should be smth like: It uses generative models, probabilistic, and simulator-based approaches.


Tick labels on bar chart

There is an issue with the tick labels for the bar chart. On every reload, the labels are rendered a little differently. like this:

It is also a little strange behaviour, that bokeh includes linebreaks fo "/" but not for spaces. Therefore a label like:
"Nahrung/Getränke/Tabak", becomes
Nahrung/
Getränke/
Tabak",
how ever "Forschung und Entwicklung",
stays as it is.
I wonder if we should use an external legend here instead of tick labels, that would also solve the problem with responsiveness.
@guadiromero @herrherrmann

Ah, I guess the lineheight is just insanely high.. therefore the groups get mixed up

@ZenVega Perfect, thanks Urs!
Regarding the line breaks, this was done by me in Python, and I can customize it as we wish :)

Ah, I see. Great! Then I guess we should discuss the use of a legend with macro. I included the line height fix already in the new PR #31


Add a SELinux module with helper to verify install_t

This is a hack to help detect the situation in
https://github.com/containers/bootc/issues/24
Ultimately, this whole issue makes it extremely hard to expose a library interface to our users because the requirement is infectious - they also need to be install_t.
Anyways for now, this new module will help at least detect the situation.

I verified this with
diff --git a/Cargo.toml b/Cargo.toml
index c10e275..434a27d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -6,3 +6,6 @@ opt-level = 1 # No optimizations are too slow for us.

 [profile.release]
 lto = "thin"
+
+[patch.crates-io]
+ostree-ext = { path = "../../ostreedev/ostree-rs-ext/lib" }
diff --git a/lib/src/cli.rs b/lib/src/cli.rs
index e2cbaf6..11e1235 100644
--- a/lib/src/cli.rs
+++ b/lib/src/cli.rs
@@ -262,9 +262,16 @@ async fn stage(
     Ok(())
 }

+/// A few process changes that need to be made for writing.
+async fn prepare_for_write() -> Result<()> {
+    ensure_self_unshared_mount_namespace().await?;
+    ostree_ext::selinux::verify_install_domain()?;
+    Ok(())
+}
+
 /// Implementation of the `bootc upgrade` CLI command.
 async fn upgrade(opts: UpgradeOpts) -> Result<()> {
-    ensure_self_unshared_mount_namespace().await?;
+    prepare_for_write().await?;
     let sysroot = &get_locked_sysroot().await?;
     let repo = &sysroot.repo().unwrap();
     let booted_deployment = &sysroot.require_booted_deployment()?;
@@ -303,7 +310,8 @@ async fn upgrade(opts: UpgradeOpts) -> Result<()> {

 /// Implementation of the `bootc switch` CLI command.
 async fn switch(opts: SwitchOpts) -> Result<()> {
-    ensure_self_unshared_mount_namespace().await?;
+    prepare_for_write().await?;
+
     let cancellable = gio::Cancellable::NONE;
     let sysroot = get_locked_sysroot().await?;
     let booted_deployment = &sysroot.require_booted_deployment()?;


Latest VSCode Insiders electron_node tsserver.js taking 100% of CPU

Issue Type: Bug
Few latest versions of VSCode Insiders, during start for a few minutes spin "Initializing JS/TS language features" message on bottom, as well as electron_node tsserver.js process from VSCode's "Process Explorer" takes 100% of CPU. Restart of application doesn't give anything. Stable version doesn't have such issue. Using "Settings sync" extension to make sure, configurations are more or less identical
VS Code version: Code - Insiders 1.30.0-insider (0d3a14402d88f0f555ab3250c3ffd4c45a251665, 2018-11-22T06:13:15.521Z)
OS version: Darwin x64 18.2.0

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz (8 x 2200)

GPU Status
2d_canvas: enabledchecker_imaging: disabled_offflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: enabledrasterization: enabledvideo_decode: enabledvideo_encode: enabledwebgl: enabledwebgl2: enabled

Load (avg)
6, 7, 6

Memory (System)
16.00GB (1.06GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions (31)

Extension
Author (truncated)
Version

vscode-html-scss
P-d
0.0.42

indenticator
Sir
0.6.0

html-css-class-completion
Zig
1.17.1

vscode-file-peek
abi
1.0.1

html-snippets
abu
0.2.1

ng-template
Ang
0.1.10

npm-intellisense
chr
1.3.0

path-intellisense
chr
1.4.2

vscode-svgviewer
css
1.4.7

xml
Dot
2.3.2

vscode-babel-coloring
dza
0.0.4

gitlens
eam
8.5.6

tslint
eg2
1.0.40

vscode-npm-script
eg2
0.3.5

prettier-vscode
esb
1.7.2

git-project-manager
fel
1.7.1

vscode-pull-request-github
Git
0.3.0

vscode-jasmine-test-adapter
hbe
1.2.0

vscode-test-explorer
hbe
2.2.0

docthis
joe
0.7.1

Angular2
joh
7.0.1

vscode-colorize
kam
0.8.1

vscode-scss
mrm
0.6.2

seti-icons
qin
0.1.3

vscode-sort-json
ric
1.13.0

vscode-icons
rob
7.28.0

sass-indented
rob
1.4.9

code-settings-sync
Sha
3.2.0

stylelint
shi
0.46.1

vscode-todo-highlight
way
1.0.4

JasmineSnippets
xab
1.0.1

(1 theme extensions excluded)

I see the same thing, see a snapshot of my process explorer below

For me at least this is happening when I save a file (I also see the Running save participants… spinner in the status bar for a much longer time than usual).

Please try collecting the TS Server log:

Set "typescript.tsserver.log": "verbose",
Restart VS Code and reproduce the problem
In VS Code, run the TypeScript: Open TS Server log command
This should open a folder with a tsserver.log file in it

Look through that log file for errors or stack traces. If you can share the log, I can also take a look to see if anything stands out

⚠Warning: The TypeScript log may include information from your workspace, including file paths and source code. If you have any concerns about posting this publicly on Github, just let me know and we can arrange something else. On our side, we only use these logs to investigate issues like this

@mjbvz could you tell how to run TypeScript: Open TS Server log command? Can't seem to find it inside Command palette

You can email  it to matb at microsoft or run code-insiders --upload-logs from the command line option to upload your logs to a secure store

@mjbvz can not upload logs. Getting 500 error. Shall I put error's id here?

You can email them to matb at microsoft

@mjbvz is there any progress on this one?

@Kamilius In your workspace, do you have copies of some large open source projects like angular (not under node_modeules but just copied into the workspace)?

In the logs see a very large number of js files being loaded from staticresources, things like the source of jquery and angular.
Can you try excluding all resources in staticresources from your project using a jsconfig or tsconfig:
{
    "compilerOptions": {
        "target": "ES6"
    },
    "exclude": [
        "node_modules",
        "**/node_modules/*",
         "**/staticresources/*"
    ]
}

@mjbvz did it for main tsconfig, as well as added into .gitignore. Issue persists

Does your project have other tsconfigs or jsconfigs that would include staticresources? Try opening  jquery.min.js or one of the files from staticresources and run the JavaScript: Go to project configuration command in the vscode command palette . Does this open any jsconfig or tsconfig?

@mjbvz just emailed you another example of a tsserver.log after observing this behaviour, maybe having 2 different examples will shed some light on what is going on?

I'm having the same/similar issue. in 1.31.1.
after reloading window and making an edit to a .ts file, the extensionHost process is immediately stuck at 100% CPU

i've uploaded my logs after reproducing it (ID:<PHONE_NUMBER>)

It doesn't happen to me when I disable extensions.
Is there any way of figuring out which is the culprit when something like this happens?

@midgethoen Follow these instructions to investigate performance issues.
@Kamilius Are you still running into the issue you originally reported?

@mjbvz I'm seeing this issue on one of my projects after upgrading to Mojave. This is a typescript/react app nested inside of an angular app. Other typescript projects work okay, and this project worked fine before upgrading my OS. I've uninstalled all extensions but the problem is still there. Can I email the Typescript log output matb at microsoft?

@laila-vinson Please open a new issue

FWIW, I was experiencing "electron_node tsserver.js taking 100% of CPU" and the following steps seemed to resolve the issue for me:

Quit app.
Open app with extensions disabled: code --disable-extensions
Quit app.
Open app.

I'm seeing this problem as well and @beausmith solution doesn't work for me. I removed a bunch of extensions, checked the logs for errors, removed typescript-styled-plugin which had a missing dependency and still the problem persists. Disabling all extensions using --disable-extensions doesn't solve the problem as well.
Changing the typescript.tsserver.log to verbose with all extensions disabled outputs this log:
Info 0    [14:28:16.650] Starting TS Server
Info 1    [14:28:16.651] Version: 3.4.1
Info 2    [14:28:16.651] Arguments: /opt/visual-studio-code/code /opt/visual-studio-code/resources/app/extensions/node_modules/typescript/lib/tsserver.js --useInferredProjectPerProjectRoot --enableTelemetry --cancellationPipeName /tmp/vscode-typescript/tscancellation-7e33b06f060b3bdba9ab.tmp* --logVerbosity verbose --logFile /home/mahdi/.config/Code/logs/20190409T142809/exthost1/vscode.typescript-language-features/tsserver-log-4Kyj1S/tsserver.log --locale en --noGetErrOnBackgroundUpdate
Info 3    [14:28:16.651] Platform: linux NodeVersion: 10 CaseSensitive: true
Info 4    [14:28:16.656] Binding...
 Dictionary<string>): void\nimport uesResource","documentation":"","tags":[]}}
Info 128  [14:29:38.763] request:
    {"seq":19,"type":"request","command":"geterr","arguments":{"delay":0,"files":["/home/mahdi/Documents/Projects/tripe-ma/admin/src/pages/dashboard/users/index.tsx"]}}
Perf 129  [14:29:38.763] 19::geterr: async elapsed time (in milliseconds) 0.1706
Info 130  [14:29:38.763] request:
    {"seq":20,"type":"request","command":"getOutliningSpans","arguments":{"file":"/home/mahdi/Documents/Projects/tripe-ma/admin/src/pages/dashboard/users/index.tsx"}}
Perf 131  [14:29:38.765] 20::getOutliningSpans: elapsed time (in milliseconds) 1.9185
Info 132  [14:29:38.765] response:
    {"seq":0,"type":"response","command":"getOutliningSpans","request_seq":20,"success":true,"body":[{"textSpan":{"start":{"line":1,"offset":1},"end":{"line":17,"offset":72}},"hintSpan":{"start":{"line":1,"offset":1},"end":{"line":17,"offset":72}},"bannerText":"...","autoCollapse":false,"kind":"imports"},{"textSpan":{"start":{"line":22,"offset":56},"end":{"line":24,"offset":2}},"hintSpan":{"start":{"line":22,"offset":1},"end":{"line":24,"offset":2}},"bannerText":"...","autoCollapse":false,"kind":"code"},{"textSpan":{"start":{"line":28,"offset":21},"end":{"line":37,"offset":2}},"hintSpan":{"start":{"line":28,"offset":22},"end":{"line":37,"offset":2}},"bannerText":"...","autoCollapse":false,"kind":"code"},{"textSpan":{"start":{"line":39,"offset":72},"end":{"line":44,"offset":2}},"hintSpan":{"start":{"line":39,"offset":22},"end":{"line":44,"offset":2}},"bannerText":"...","autoCollapse":false,"kind":"code"},{"textSpan":{"start":{"line":40,"offset":20},"end":{"line":42,"offset":4}},"hintSpan":{"start":{"line":40,"offset":3},"end":{"line":42,"offset":4}},"bannerText":"...","autoCollapse":false,"kind":"code"},{"textSpan":{"start":{"line":41,"offset":11},"end":{"line":41,"offset":53}},"hintSpan":{"start":{"line":41,"offset":12},"end":{"line":41,"offset":53}},"bannerText":"...","autoCollapse":false,"kind":"code"},{"textSpan":{"start":{"line":50,"offset":6},"end":{"line":108,"offset":2}},"hintSpan":{"start":{"line":46,"offset":52},"end":{"line":108,"offset":2}},"bannerText":"...","autoCollapse":false,"kind":"code"},{"textSpan":{"start":{"line":59,"offset":23},"end":{"line":62,"offset":10}},"hintSpan":{"start":{"line":59,"offset":23},"end":{"line":62,"offset":10}},"bannerText":"...","autoCollapse":false,"kind":"code"},{"textSpan":{"start":{"line":61,"offset":21},"end":{"line":61,"offset":39}},"hintSpan":{"start":{"line":61,"offset":22},"end":{"line":61,"offset":39}},"bannerText":"...","autoCollapse":false,"kind":"code"},{"textSpan":{"start":{"line":69,"offset":5},"end":{"line":106,"offset":11}},"hintSpan":{"start":{"line":69,"offset":5},"end":{"line":106,"offset":11}},"bannerText":"<Box>...</Box>","autoCollapse":false,"kind":"code"},{"textSpan":{"start":{"line":69,"offset":10},"end":{"line":69,"offset":16}},"hintSpan":{"start":{"line":69,"offset":10},"end":{"line":69,"offset":16}},"bannerText":"...","autoCollapse":false,"kind":"code"},{"textSpan":{"start":{"line":70,"offset":7},"end":{"line":99,"offset":13}},"hintSpan":{"start":{"line":70,"offset":7},"end":{"line":99,"offset":13}},"bannerText":"<Box>...</Box>","autoCollapse":false,"kind":"code"},{"textSpan":{"start":{"line":70,"offset":12},"end":{"line":70,"offset":60}},"hintSpan":{"start":{"line":70,"offset":12},"end":{"line":70,"offset":60}},"bannerText":"...","autoCollapse":false,"kind":"code"},{"textSpan":{"start":{"line":71,"offset":9},"end":{"line":77,"offset":31}},"hintSpan":{"start":{"line":71,"offset":9},"end":{"line":77,"offset":31}},"bannerText":"<PageSearchContainer>...</PageSearchContainer>","autoCollapse":false,"kind":"code"},{"textSpan":{"start":{"line":72,"offset":18},"end":{"line":72,"offset":76}},"hintSpan":{"start":{"line":72,"offset":18},"end":{"line":72,"offset":76}},"bannerText":"...","autoCollapse":false,"kind":"code"},{"textSpan":{"start":{"line":72,"offset":25},"end":{"line":72,"offset":61}},"hintSpan":{"start":{"line":72,"offset":25},"end":{"line":72,"offset":61}},"bannerText":"...","autoCollapse":false,"kind":"code"},{"textSpan":{"start":{"line":73,"offset":11},"end":{"line":76,"offset":17}},"hintSpan":{"start":{"line":73,"offset":11},"end":{"line":76,"offset":17}},"bannerText":"
...
","autoCollapse":false,"kind":"code"},{"textSpan":{"start":{"line":73,"offset":16},"end":{"line":73,"offset":35}},"hintSpan":{"start":{"line":73,"offset":16},"end":{"line":73,"offset":35}},"bannerText":"...","autoCollapse":false,"kind":"code"},{"textSpan":{"start":{"line":74,"offset":13},"end":{"line":74,"offset":36}},"hintSpan":{"start":{"line":74,"offset":13},"end":{"line":74,"offset":36}},"bannerText":"...","autoCollapse":false,"kind":"code"},{"textSpan":{"start":{"line":75,"offset":13},"end":{"line":75,"offset":54}},"hintSpan":{"start":{"line":75,"offset":13},"end":{"line":75,"offset":54}},"bannerText":"<Button>...</Button>","autoCollapse":false,"kind":"code"},{"textSpan":{"start":{"line":75,"offset":21},"end":{"line":75,"offset":28}},"hintSpan":{"start":{"line":75,"offset":21},"end":{"line":75,"offset":28}},"bannerText":"...","autoCollapse":false,"kind":"code"},{"textSpan":{"start":{"line":78,"offset":9},"end":{"line":98,"offset":34}},"hintSpan":{"start":{"line":78,"offset":9},"end":{"line":98,"offset":34}},"bannerText":"<PageItemCountContainer>...</PageItemCountContainer>","autoCollapse":false,"kind":"code"},{"textSpan":{"start":{"line":78,"offset":33},"end":{"line":78,"offset":52}},"hintSpan":{"start":{"line":78,"offset":33},"end":{"line":78,"offset":52}},"bannerText":"...","autoCollapse":false,"kind":"code"},{"textSpan":{"start":{"line":79,"offset":11},"end":{"line":79,"offset":54}},"hintSpan":{"start":{"line":79,"offset":11},"end":{"line":79,"offset":54}},"bannerText":"...","autoCollapse":false,"kind":"code"},{"textSpan":{"start":{"line":79,"offset":17},"end":{"line":79,"offset":34}},"hintSpan":{"start":{"line":79,"offset":17},"end":{"line":79,"offset":34}},"bannerText":"...","autoCollapse":false,"kind":"code"},{"textSpan":{"start":{"line":81,"offset":13},"end":{"line":84,"offset":23}},"hintSpan":{"start":{"line":81,"offset":13},"end":{"line":84,"offset":23}},"bannerText":"...","autoCollapse":false,"kind":"code"},{"textSpan":{"start":{"line":82,"offset":20},"end":{"line":82,"offset":64}},"hintSpan":{"start":{"line":82,"offset":20},"end":{"line":82,"offset":64}},"bannerText":"...","autoCollapse":false,"kind":"code"},{"textSpan":{"start":{"line":87,"offset":13},"end":{"line":90,"offset":23}},"hintSpan":{"start":{"line":87,"offset":13},"end":{"line":90,"offset":23}},"bannerText":"...","autoCollapse":false,"kind":"code"},{"textSpan":{"start":{"line":88,"offset":20},"end":{"line":88,"offset":64}},"hintSpan":{"start":{"line":88,"offset":20},"end":{"line":88,"offset":64}},"bannerText":"...","autoCollapse":false,"kind":"code"},{"textSpan":{"start":{"line":93,"offset":13},"end":{"line":96,"offset":23}},"hintSpan":{"start":{"line":93,"offset":13},"end":{"line":96,"offset":23}},"bannerText":"...","autoCollapse":false,"kind":"code"},{"textSpan":{"start":{"line":94,"offset":20},"end":{"line":94,"offset":64}},"hintSpan":{"start":{"line":94,"offset":20},"end":{"line":94,"offset":64}},"bannerText":"...","autoCollapse":false,"kind":"code"},{"textSpan":{"start":{"line":101,"offset":9},"end":{"line":104,"offset":73}},"hintSpan":{"start":{"line":101,"offset":9},"end":{"line":104,"offset":73}},"bannerText":"...","autoCollapse":false,"kind":"code"},{"textSpan":{"start":{"line":111,"offset":31},"end":{"line":113,"offset":4}},"hintSpan":{"start":{"line":111,"offset":31},"end":{"line":113,"offset":4}},"bannerText":"...","autoCollapse":false,"kind":"code"}]}
Info 133  [14:29:38.766] event:
    {"seq":0,"type":"event","event":"syntaxDiag","body":{"file":"/home/mahdi/Documents/Projects/tripe-ma/admin/src/pages/dashboard/users/index.tsx","diagnostics":[]}}
Info 134  [14:31:6.120] event:
    {"seq":0,"type":"event","event":"requestCompleted","body":{"request_seq":19}}
Info 135  [14:31:6.120] request:
    {"seq":21,"type":"request","command":"quickinfo","arguments":{"file":"/home/mahdi/Documents/Projects/tripe-ma/admin/src/pages/dashboard/users/index.tsx","line":51,"offset":5}}
Info 136  [14:31:6.139] response:
    {"seq":0,"type":"response","command":"quickinfo","request_seq":21,"success":true,"body":{"canceled":true}}
Info 137  [14:31:6.139] request:
    {"seq":23,"type":"request","command":"getApplicableRefactors","arguments":{"file":"/home/mahdi/Documents/Projects/tripe-ma/admin/src/pages/dashboard/users/index.tsx","startLine":60,"startOffset":71,"endLine":60,"endOffset":71}}
Perf 138  [14:31:6.140] 23::getApplicableRefactors: elapsed time (in milliseconds) 1.2556
Info 139  [14:31:6.141] response:
    {"seq":0,"type":"response","command":"getApplicableRefactors","request_seq":23,"success":true,"body":[]}
Info 140  [14:31:6.141] request:
    {"seq":24,"type":"request","command":"geterr","arguments":{"delay":0,"files":["/home/mahdi/Documents/Projects/tripe-ma/admin/src/pages/dashboard/users/index.tsx"]}}
Perf 141  [14:31:6.141] 24::geterr: async elapsed time (in milliseconds) 0.1764
Info 142  [14:31:6.143] event:
    {"seq":0,"type":"event","event":"syntaxDiag","body":{"file":"/home/mahdi/Documents/Projects/tripe-ma/admin/src/pages/dashboard/users/index.tsx","diagnostics":[]}}

To add even more information, here is my tsconfig file:
{
  "compilerOptions": {
    "target": "es5",
    "lib": ["dom", "dom.iterable", "esnext"],
    "allowJs": true,
    "skipLibCheck": true,
    "esModuleInterop": true,
    "allowSyntheticDefaultImports": true,
    "strict": true,
    "forceConsistentCasingInFileNames": true,
    "module": "esnext",
    "moduleResolution": "node",
    "resolveJsonModule": true,
    "isolatedModules": true,
    "noEmit": true,
    "jsx": "preserve",
    "strictNullChecks": false,
    "noImplicitAny": false
  },
  "include": ["src"]
}

I have the same issue. --disable-extensions didn't work.

I'm having this issue as well. There are no @typdefs in my project, no extensions installed, and I've tried the "typescript.disableAutomaticTypeAcquisition": true.
The only thing that seems to help (from https://stackoverflow.com/questions/52935211/disable-tsserver-for-visual-studio-code) is:
View -> Extensions -> "..." -> "show built-in extensions" ->
Features -> "TypeScript and JavaScript..." -> gear icon -> Disable
Then restart visual studio code

https://github.com/Microsoft/vscode/issues/71829#issuecomment-480460687 solved it for me


Creating a subscription with a consumer config change against an existing consumer

Overview
Based on Issue, choice #4
Check the consumer config intent for equality and reject any changes without trying to update.
Clients and Tools

[x] Go @wallyqs
[x] Java @scottf
[ ] JavaScript @aricart
[x] .Net @ColinSullivan1 @scottf
[x] C @kozlovic
[ ] Python @wallyqs
[ ] Rust @Jarema

Other Tasks

[ ] docs.nats.io updated
[ ] Update ADR to Implemented
[x] Update client features spreadsheet

Client authors please update with your progress. If you open issues in your own repositories as a result of this request, please link them to this one by pasting the issue URL in a comment or main issue description.
Issue History
Currently when creating a subscription in the Java and .NET client, if a user offers a consumer configuration change against an existing consumer, that change is ignored and there is no attempt to update the consumer.
Is this the desired behavior when the offered config does not match the config from the server? Some options include:

Ignore silently as described
Check the configs for equality and attempt to update the consumer, passing on any update errors to the user
Check the configs for equality and reject any changes without trying to update
Reject any attempt to create a subscription against an existing durable unless the subscription is a bind subscription
Ask server to do update and see if it fails.

Consumers cannot be updated. The only property that’s mutable is the deliver subject.

Consumers cannot be updated. The only property that’s mutable is the deliver subject.

That should probably rule out option 2.

Iirc the server treats co Sumer updates as idempotent. So if a update happens that isn’t ide rival (other than subject) it would cause an error. Essentially we have 3 now.
I need to double check this is from memory how it works

Remember that the library will more often do a lookup first. So the issue that @scottf you are reporting is likely that the "subscribe" call does not match what the consumer config is already is, and you should be testing that what config is passed (when it is passed, that's the key) to the "subscribe" call matches what is found in the consumer config object returned by the lookup. Some background: https://github.com/nats-io/nats.go/pull/803

@kozlovic Yes, this is the "subscribe" call does not match the existing consumer and yes I understand the context. The implementation that is done in 803 is one of the options I presented, testing for equality, is my least favorite of the viable options I presented as it is the most complicated as you have already noted.
As a team we agreed to gather consensus before implementing client features. The behavior implemented in 803 was not, AFAIK  discussed with the team. I made this issue for that purpose of gaining consensus before I learned about 803.
@ColinSullivan1 @aricart @wallyqs @ripienaar @variadico please vote on 1, 3  or 4

Ignore silently as described
[Ruled Out] Check the configs for equality and attempt to update the consumer, passing on any update errors to the user
Check the configs for equality and reject any changes without trying to update
Reject any attempt to create a subscription against an existing durable unless the subscription is a bind subscription

My order of preference is 4, 3, 1

After discussion, option 3 is agreed upon.

Now that a handful consumer options can be updated, I presume it is safer/simpler to have the server reject the update?

This will be addressed with JS Simplification - this is the problem JS Simpl will fix.


Revert "Implement sync threshold values set using env variable TANZU_CLI_LOG_LEVEL"

Reverts vmware-tanzu/tanzu-plugin-runtime#156

Can we explain in the PR description why we are reverting?


[feature] support SPDK

Why you need it?

vhost-user-blk/scsi. is a high efficient way to transport data for virtual environments. Open-local currently doesn't support vhost-user-blk/scsi.
How it could be?

The Storage Performance Development Kit (SPDK) can provide vhost support. To support vhost-user-blk/scsi in open-local node CSI driver should communicate with SPDK.  Following is a brief description :
.  NodeStageVolume / NodeUnStageVolume
    n/a
.  NodePublishVolume
    -  Create bdev
        # scripts/rpc.py bdev_aio_create <path_to_host_block_dev> <bdev_name>
        # scripts/rpc.py bdev_lvol_create_lvstore <bdev_name> <lvs_name >
        # scripts/rpc.py bdev_lvol_create  <lvol_name> <size> -l <lvs_name>
    -  Create vhost device
        # scripts/rpc.py vhost_create_blk_controller --cpumask 0x1 vhostblk0 <bdev_name>
        # mknod /var/run/kata-containers/vhost-user/block/devices/vhostblk0 b 241 0
        # mount --bind [...] /var/run/kata-containers/vhost-user/block/devices/vhostblk0 <target_path>
.  NodeUnPublishVolume
       # umount <target_path>
       # scripts/rpc.py bdev_lvol_delete  <lvol_name>
       # rm /var/run/kata-containers/vhost-user/block/devices/vhostblk0

besides, we need add a field in nlsc and nls to indicate if the storage is provided by SPDK.

Other related information

It's a great idea to enable spdk for vm based container runtimes. BTW, does it work for native runC container runtime?
No.  we only introduce SPDK vhost currently, so it doesn't support runC.

SPDK also support network storage (iSCSI and NVME-oF).  Need it to be supported?

SPDK also support network storage (iSCSI and NVME-oF). Need it to be supported?

NVME-OF is great，especially with ns support. We could do much things funny with NVME ns.

It's a great idea to enable spdk for vm based container runtimes. BTW, does it work for native runC container runtime?
No.  we only introduce SPDK vhost currently, so it doesn't support runC.

Thanks for explanation, that makes sense.

This PR has two features implemented if I'm not wrong, one for SPDK vhost support the other is for Kata block volume. Better to refactor this into two PRs

fixed by #153


Fixed signature path for Outlook 2016

The path to fetch Signatures folder name is different in Outlook 2016. I've testet this on Outlook 2016, and it works.

Thanks for the code. I wasn't aware of this other location for the signature folder name in the registry. It's not clear if this "Local Machine" registry location is only used with Office 2016+, so i reworked it into a configurable option, added in v1.3 of the script ($EnableMachineSignatureFolderName). Enabling it will prefer the Local Machine reg key if it exists.
Not much info on that reg key at all from search the web, just this page really https://forums.ivanti.com/s/article/Signature-is-not-displayed-in-Microsoft-Outlook


Skip rebuilding tables if we encounter duplicates

From the MySQL documentation
https://dev.mysql.com/doc/refman/8.0/en/innodb-online-ddl-limitations.html
"It is possible to encounter a duplicate key entry error (ERROR 1062 (23000): Duplicate entry), even if the duplicate entry is only temporary and would be reverted by a later entry in the online log."

Codecov Report
Patch coverage: 66.66% and project coverage change: +0.06 :tada:

Comparison is base (c20f560) 78.02% compared to head (3fb0afe) 78.09%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #163      +/-   ##
==========================================
+ Coverage   78.02%   78.09%   +0.06%
==========================================
  Files          17       17
  Lines        4350     4373      +23
  Branches      984      973      -11
==========================================
+ Hits         3394     3415      +21
- Misses        720      727       +7
+ Partials      236      231       -5

Impacted Files
Coverage Δ

myhoard/restore_coordinator.py
77.31% <66.66%> (-1.65%)
:arrow_down:

... and 6 files with indirect coverage changes

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

Test failures seem unrelated to the change.


provide docstring on wrong function/class calls

enh/docstring_on_err

Currently not planned, will reopen if relevant.


Synchronous functions (Sync) should not be Tasks, rather Results

Say you want to Web3.Eth.getStorageAt, then convert the result with Web3.toAscii. Currently this needs to be done in two tasks, thus two Msg's handled in the update function. The UX/DX is horrible.
Sync -> Result was not initially implemented, the worry being that these functions could be placed into one's Main.init (aka Model), and result in race condition issues while web3.js is loading.
Turns out the same issue is present with Sync -> Task -> Cmd during Main.init.
At this point there's no reason not to implement Sync -> Result, the user just need be aware that placing Web3 funcs in ones Main.init is dangerous. Only a Web3.init style function should be placed into one's Main.init.  More on what Web3.init will actually look like comes later.

This was implemented, tested, merged to master, tested again and realized it was broke, and consequently reverted. Didn't realize the existence of a revert PR in github, so I did a hard reset and force pushed master.    👎   Sorry about that
Turns out toResult causes a major bug where some functions relying on Web3.toResult were being executed during the loading of the Elm runtime.
Namely, any constant within one's elm code relying on a Web3.toResult would result in an Err: Web3 not defined.
All the more reason to stick with Tasks.
The UX/DX issue that might have been solved with toResult can be mitigated by using Task.andThen. This is something I considered a while back, but slipped my mind... oof.


CA Sender - Elite Medical - Interim Research

post production check in

[x] locate existing notes on sender or create new set of notes in CSV upload pilot folder, experience folder, in the state of referral (e.g. Colorado) make a new folder State_sender_name of new sender
[x] reach out and schedule 30 minute call with Lemoore to answer interim questions in the excel
[x] enter information into excel
[ ] share insights in slack including user stories and into microsoft lists (see here https://cdc.sharepoint.com/teams/USDSatCDC/Lists/Test test/AllItems.aspx?env=WebViewList)
EXCEL:
https://cdc.sharepoint.com/❌/r/teams/USDSatCDC/_layouts/15/Doc.aspx?sourcedoc={431D9FDE-C408-43E7-B643-E1D30652155C}&file=CSV pilot cohort 1_Pre Post Data.xlsx&action=default&mobileredirect=true

https://cdc.sharepoint.com/:w:/r/teams/USDSatCDC/_layouts/15/Doc.aspx?sourcedoc={C6413B25-BFC2-47D7-AEEE-126F37BE87CD}&file=Interim Check-in calls raw notes_CSV Uploader.docx&action=default&mobileredirect=true Notes in here


Open on Github: File in Branch

Sometime I want to open the file as it is on master.
Might be nice to have a way to select any branch from a dropdown, but for my use case I normally want to open master.

On second though this is probably not worth it, there's a branch selector in github itself for this. Adding extra commands for this for all 4 ways to open a file in github would be too noisy.


soft delete method becomes the default and forcing the user to change the password

Is it possible to modify the direct delete method to a soft delete method?
maybe it could be a note,
Thank you very much.

Can be implemented by adding before_delete() function in the controller.
Example:
public function before_delete()
{
    $this->model->update(
        $this->_table,
        [
            'deleted' => 1
        ],
        [
            'id' => service('request')->getGet('id') ?? 0
        ]
    );

    return throw_exception(301, 'The selected data was successfully deleted.', go_to(null, ['id' => null]));
}

how to force users to change their passwords maybe once every 3 months ?
Thank you very much.

how to force users to change their passwords maybe once every 3 months ? Thank you very much.

Could be done with these workflow:

Create new table to store password update timestamp;
Fork /aksara/Modules/Administrative/Controllers/Account/Edit.php to /modules/Administrative/Controllers/Account/Edit.php;
Fork /aksara/Modules/Dashboard/Controllers/Dashboard.php to modules/Dashboard/Controllers/Dashboard.php;
Edit /modules/Administrative/Controllers/Account/Edit.php file and add an update query to after_update() function to update the record of point 1;
Edit modules/Dashboard/Controllers/Dashboard.php file and add the query to the beginning of index function to check the timestamp from table point 1;
Redirect to administrative/account/edit if the timestamp is more than 3 months.


Add Options

The following options should be available:

List of games
List all authors (e.g. 'Stephen King')
Add a game

- The file called options.rb is temporary, I will move it if we decide to create a folder just for options
- Changes related with main.rb and app.rb are just for test my options(I forgot to delete before committing)

Thanks to review my PR @diarisdiakite


allow PublicKey to be used as flag

Defines PublicKey.Set to implement the flag.Value interface.

thanks!


fix(eslint-plugin-query): Update build entry files

Fixes #5795

Codecov Report
Patch coverage has no change and project coverage change: +80.75% :tada:

Comparison is base (91db133) 0.00% compared to head (02d70b0) 80.75%.

:exclamation: Current head 02d70b0 differs from pull request most recent head ba7c882. Consider uploading reports for the commit ba7c882 to get more accurate results

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@            Coverage Diff            @@
##           beta    #5798       +/-   ##
=========================================
+ Coverage      0   80.75%   +80.75%
=========================================
  Files         0        9        +9
  Lines         0      265      +265
  Branches      0       94       +94
=========================================
+ Hits          0      214      +214
- Misses        0       35       +35
- Partials      0       16       +16

see 9 files with indirect coverage changes

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


Glossary: broken list rendering for "contributions"

Code of Conduct

[X] I have read and agree to the GitHub Docs project's Code of Conduct

What article on docs.github.com is affected?
Glossary overview, section on "Contributions"
https://docs.github.com/en/get-started/quickstart/github-glossary#contributions
What part(s) of the article would you like to see updated?
The glossary entry seems to include a list, but it is instead incorrectly rendered inline.
Additional information
The glossary entry seems to be built from this yaml file. Not sure how if / how a list can be applied properly here:
https://github.com/github/docs/blob/main/data/glossaries/external.yml#L157

Thanks for reporting this @timmeinerzhagen! I'll get this triaged.

Thanks for reporting this issue, @timmeinerzhagen ! I'm not sure how to get the list to render in yml either, but I bet the content could be edited to work as a paragraph instead.
Content design plan
Update the description for the contributions glossary entry to remove list formatting and edit content for grammar to change to a paragraph.


feat: add discord rich embeds

Closes #105

Initial Thoughts:
I don't dislike the small icons, I think the large icons are generally more intrusive than they need to be.
Specifically, a collection log notif will never be a size where a large notif fits, while a clue notif will never not be huge, even if you get 1 item while opening on entrana.

I went ahead and tested 2 additional options for clue notifs, one being the old icon which was the same color for all variations, but it only has a large variation.

The other option was respecting what type of clue scroll it is, and using the image based on that.
I used hard icon with current handling for the testing

Question: We're still sending it according to Discord's webhook format, we're just formatting the message differently into Discord's rich embedded objects rather than sticking everything into the "content" field right?
Could we have some examples of full payloads before and after?

Yep, instead of using content, the notification message goes in the description of the first rich embed -- both consistent with Discord's webhook format.
Examples
Achievement Diary

Before
{
  "type": "ACHIEVEMENT_DIARY",
  "extra": {
	"area": "Desert",
	"difficulty": "HARD",
	"total": 9
  },
  "content": "dankgg has completed the Hard Desert Achievement Diary, for a total of 9 diaries completed",
  "playerName": "dankgg",
  "embeds": []
}

After
{
  "type": "ACHIEVEMENT_DIARY",
  "extra": {
    "area": "Desert",
    "difficulty": "HARD",
    "total": 9
  },
  "playerName": "dankgg",
  "embeds": [
    {
      "title": "Achievement Diary",
      "description": "dankgg has completed the Hard Desert Achievement Diary, for a total of 9 diaries completed",
      "author": {
        "name": "dankgg"
      },
      "color": 15990936,
      "image": {
        "url": "attachment://achievementDiaryImage.png"
      },
      "thumbnail": {
        "url": "https://oldschool.runescape.wiki/images/Achievement_Diaries.png"
      },
      "footer": {
        "text": "Powered by Dink",
        "icon_url": "https://github.com/pajlads/DinkPlugin/raw/master/icon.png"
      },
      "timestamp": "2023-01-02T02:00:00Z"
    }
  ]
}

Testing is now easy; just set the environmental variable TEST_WEBHOOK_URL and run ./gradlew test (or can do individual tests rather than the full suite)

Would it be possible to change this line ourselves?
"footer": {
        "text": "Powered by Dink",
        "icon_url": "https://github.com/pajlads/DinkPlugin/raw/master/icon.png"

I respect that you guys advertise your own plugin, I was just wondering about this.
Is it possible to change the json file at all?
By the way the embedded looks really great! 👀

Would it be possible to change this line ourselves?

Yeah I'll add a config option (e.g., in advanced section) that allows opt-out, or remove it altogether, depending on how the other maintainers feel


In the context of a py 2 resolve, pip chooses a py 3 only dep and fails

In the context of a build for a python 2 target on OSX, a command similar to the following is generated by PEX 2.1.6:
~/src/venvs/pex/bin/pip -vvvv \
  --isolated \
  -q \
  --cache-dir \
  /Users/example/repo/.pants.d/python-setup/resolved_requirements/CPython-2.7.16 \
  download \
  --dest \
  blah \
  --no-index \
  --find-links \
  https://example.com/home/third_party/source/python/bootstrap/ \
  --find-links \
  https://example.com/home/third_party/source/python/wheels/ \
  --find-links \
  https://example.com/home/third_party/source/python/deprecated/ \
  --pre \
  mock==2.0.0 \
  pytest==4.1.1 \
  attrs==18.2.0 \
  Pillow==5.4.1 \
  'futures==3.2.0; python_version < "3"' \
  notebook==5.0.0 \
  jupyter_console==5.2.0 \
  ipython==5.8.0 \
  ipykernel==4.10.0 \
  appnope==0.1.0 \
  matplotlib==2.2.2 \
  numpy==1.16.4 \
  scipy==1.1.0 \
  tensorflow==1.14.0

...which fails with:
Package 'Markdown' requires a different Python: 2.7.16 not in '>=3.5'

After the error, the following indicates that one library has a dep on Markdown:
for whl in *.whl; do
  md=$(zipinfo -1 "$whl" | grep METADATA)
  unzip -c "$whl" "$md" | grep -i 'Requires-Dist.*Markdown' | awk "{print \"$whl:\t\"\$0}"
done

...
tensorboard-1.14.0-py2-none-any.whl:	Requires-Dist: markdown (>=2.6.8)

Although there are multiple copies of Markdown available (2.1.1, 2.6.2, 2.6.11, 3.0.1), pip chooses to resolve 3.2, which is not compatible with Python 2.

It's entirely possible that pip is doing something dumb here (although to be honest, I'm not seeing where PEX declares the python version it is resolving for, and that could be an issue?), but I think that as with the discussion from https://pantsbuild.slack.com/archives/C087V4P1T/p1584492639032900 , the solution might be to "ignore errors", and then include the problematic constraint in the error message.

It's entirely possible that pip is doing something dumb here (although to be honest, I'm not seeing where PEX declares the python version it is resolving for, and that could be an issue?)

For local resolves (no --platform in play), the correct local interpreter is used. In your example command that's whatever the interpreter that built the ven is (~/src/venvs/pex/bin/python --version).
The --cache-dir argument implies this is a use of Pex from Pants and that Pants thinks its running Pex with python 2.7.16. Can you confirm or deny these bits?
As for the failure, I can't repro, but I also don't have access to your --find-links and so details of wheels and wheel metadata found there could become critical:
$ curl -sSL https://github.com/pantsbuild/pex/releases/download/v2.1.6/pex > pex-2.1.6.pex && chmod +x pex-2.1.6.pex
$ ./pex-2.1.6.pex --python=python2.7 \
> mock==2.0.0 \
> pytest==4.1.1 \
> attrs==18.2.0 \
> Pillow==5.4.1 \
> 'futures==3.2.0; python_version < "3"' \
> notebook==5.0.0 \
> jupyter_console==5.2.0 \
> ipython==5.8.0 \
> ipykernel==4.10.0 \
> appnope==0.1.0 \
> matplotlib==2.2.2 \
> numpy==1.16.4 \
> scipy==1.1.0 \
> tensorflow==1.14.0 \
> -o issues-947.pex
$ ./issues-947.pex
Python 2.7.17 (default, Mar 21 2020, 00:47:07)
[GCC 9.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> import tensorflow
>>> tensorflow.__file__
'/home/jsirois/.pex/installed_wheels/b35dc048b6d182e12b1690eeaa59a97f64e7a5ae/tensorflow-1.14.0-cp27-cp27mu-manylinux1_x86_64.whl/tensorflow/__init__.py'
>>> import markdown
>>> markdown.__file__
'/home/jsirois/.pex/installed_wheels/b80598369cacd1f28b9746dd5469f2573e545178/Markdown-3.1.1-py2.py3-none-any.whl/markdown/__init__.py'
>>>

@stuhood is there any way you can provide the relevant contents of the --find-links repos? For example, against my local pip cache:
find ~/.cache/pip/wheels/ -type f -name "*.whl" | while read wheel; do echo "> $wheel dependencies:" && unzip -qc $wheel '*/METADATA' | grep -E "^Requires-(Dist|Python): " | sort -u; done
...
> /home/jsirois/.cache/pip/wheels/12/92/12/23f91f6e8af1d180a113403f1643b25a0e2eedd6a195938f31/pex-2.1.6-cp36-none-any.whl dependencies:
Requires-Dist: certifi (==2016.9.26) ; extra == 'certs'
Requires-Dist: pyparsing (>=2.0.2)
Requires-Dist: pytest (>=3.0.0) ; extra == 'test'
Requires-Dist: pytest-cov ; extra == 'test'
Requires-Dist: six
Requires-Dist: subprocess32>=3.2.7 ; extra == "subprocess" and ( python_version<'3')
Requires-Dist: wincertstore (==0.2) ; (sys_platform == "win32") and extra == 'ssl'
Requires-Python: >=2.6, !=3.0.*, !=3.1.*, !=3.2.*
Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*
Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*
Requires-Python: >=2.7,<3.9,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*
Requires-Python: !=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,>=2.7
> /home/jsirois/.cache/pip/wheels/12/92/12/23f91f6e8af1d180a113403f1643b25a0e2eedd6a195938f31/pex-2.1.6-cp37-none-any.whl dependencies:
Requires-Dist: certifi (==2016.9.26) ; extra == 'certs'
Requires-Dist: pyparsing (>=2.0.2)
Requires-Dist: pytest (>=3.0.0) ; extra == 'test'
Requires-Dist: pytest-cov ; extra == 'test'
Requires-Dist: six
Requires-Dist: subprocess32>=3.2.7 ; extra == "subprocess" and ( python_version<'3')
Requires-Dist: wincertstore (==0.2) ; (sys_platform == "win32") and extra == 'ssl'
Requires-Python: >=2.6, !=3.0.*, !=3.1.*, !=3.2.*
Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*
Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*
Requires-Python: >=2.7,<3.9,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*
Requires-Python: !=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,>=2.7
> /home/jsirois/.cache/pip/wheels/ae/79/41/345e8e433cfb890c43385170c5da68cbffeba67210c5bd111c/twitter.common.options-0.3.11-py3-none-any.whl dependencies:
> /home/jsirois/.cache/pip/wheels/ae/f3/c6/ffd1b0df0828cf685b0c863655f166b426cf1a3f62578206f1/pywatchman-1.4.1-cp38-cp38-linux_x86_64.whl dependencies:
> /home/jsirois/.cache/pip/wheels/ad/fc/61/1c76ae24b519301d5707177ca5492d0545aecf613c02287f1b/twitter.common.lang-0.3.11-py3-none-any.whl dependencies:
> /home/jsirois/.cache/pip/wheels/6d/f5/c5/6b26dd61ae703ab9ae4da42794fc3d574cdf5c7353e57b70f7/twitter.common.log-0.3.11-py3-none-any.whl dependencies:
Requires-Dist: twitter.common.dirutil (==0.3.11)
Requires-Dist: twitter.common.options (==0.3.11)

It's possible that #1033 could make this situation less mysterious or remove it altogether, by removing any implicit dependency on the interpreter versions available on the local disk.

Since this has gone along time without extra information and:

For local resolves (no --platform in play), the correct local interpreter is used.

This assertion has been proved false specifically for macOS venvs that involve macOS framework build Pythons as documented in #1009.
I'm going to close as likely fixed by #1049 and #1065.


Radio Buttons, MUI and Tailwind Conflicts.

Solution Radio Button, MUI and Tailwind Conflicts
Page.jsx  line 124   is where the Tailwind.css is(was)

I converted this to standard CSS with these specs and added !important.

This should make Vercel interpretate it correctly.

It was working fine for me in dev mode,

Mui and Tailwind in the same project will sometimes do that.

Page.jsx  line 124
changed to
{/* See Global.css lines 43-50 rules for className .radioButton */}
.radioButton {
padding-left: 30px !important;
}
@media (max-width: 1024px) {
.radioButton {
padding-left: 20px !important;
}
}
          You can fine tune your Buttons here

I added an image of my notes that are easier to read.

Hey @MyBaBB ! Thanks for the Contribution.
Can you please make another PR?
I mistakenly deleted some files.
Really Sorry for that

Yes but it will be tonight on my next shift.    No,problem
On Mon, Jul 8, 2024, 9:30 AM Arindam Majumder @.***>
wrote:

Merged #160 https://github.com/Arindam200/makaut_buddy/pull/160 into
master.
—
Reply to this email directly, view it on GitHub
https://github.com/Arindam200/makaut_buddy/pull/160#event-13426714113,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A4VTGWNOIERBUHEDRHN647TZLK5CPAVCNFSM6AAAAABKOSDYIOVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJTGQZDMNZRGQYTCMY
.
You are receiving this because you were mentioned.Message ID:
@.***>


Add new scaffolding tool

What does this PR do?
This PR add a scaffolding tool for the new documentation hierarchy.
The scaffolding tool use templates to create files needed to document a new controller action. It uses the subsection format we agreed to.
How should this be manually tested?

Step 1: ./scaffolding/scaffold generate src/sdk-reference/js/6/admin/resetCache
Step 2: Should create the following file in the directory: index.md, snippets/resetCache.test.yml, snippets/resetCache.js

Snippets tests reports


When returning a string from a conditional check Parser cuts averything after a "-"

It should return vis-blue when selected locale is the same as in the list
<:each value="{locales}">
    <table growx="true"
           maxwidth="500"
           onclick="selectLocale"
           id="{value}"
           row="true">
        <label align="left"
               growx="true"
               color="{? $getCurrentLocale == {value} ? 'vis-blue' : 'white'}"> <!-- here -->
            @languages/{value}
        </label>
    </table>
</:each>

Instead I receive:
Exception in thread "LWJGL Application" com.github.czyzby.lml.util.LmlParsingException: Error occurred during parsing near line 24 of the original file: "locale-selector.lml" during parsing template part: "'each' macro result" on line: 9 of its content. Template part is most likely an evaluated macro or argument result, extracted from the original template.
REASON: Unable to obtain color with name: 'vis
	Due implementation of the parser, the real problematic line might SLIGHTLY vary from the given line number(s), but exception message should be clear enough to find the actual error.
	Currently parsed template part:
6  |VALID|            row="true">
7  |VALID|         <label align="left"
8  |VALID|                growx="true"
9  |ERROR|                color="{? 'en' == 'en' ? 'vis-blue' : 'white'}">
10 |     |             @languages/en
11 |     |         </label>
12 |     |     </table>

	This template part was most likely evaluated during parsing this original template part (if a macro or an argument ends on this line, its content most likely causes the error):
21 |VALID| </:each>
22 |VALID|         </table>
23 |VALID|     </dialog>
24 |ERROR| </:noop>
25 |     |

@edit
Even simple condition returns "vis
<label>
    {? 4 > 1 ? "vis-blue"}
</label>

It might have a problem with the - inside the string. The condition/equation parser is a bit magical - I wrote it a long time ago and it might have more edge cases that are not covered. ;) For now, rename the color in your Skin to something without a dash or assign vis-blue to a parameter that you can safely inject. I'll try to look into it before the next release.


Cannot use v2 from Github

I wanted to use version 2 from Github branch (for Cucumber 2.x support), but it cannot be loaded. The package is downloaded correctly to node_modules. (node: v6.11.2)
in package.json
"wdio-cucumber-framework": "webdriverio/wdio-cucumber-framework#cucumberv2",

cat node_modules/wdio-cucumber-framework/package.json
{
  "name": "wdio-cucumber-framework",
  "version": "1.0.0-beta.0",
  "description": "A WebdriverIO plugin. Adapter for Cucumber2 testing framework.",

yarn run v0.27.5
$ ./node_modules/.bin/wdio wdio.conf.js
ERROR: Couldn't load "wdio-cucumber-framework" framework. You need to install it with `$ npm install wdio-cucumber-framework`!
Error: Cannot find module 'wdio-cucumber-framework'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Runner.initialiseFramework (/Users/monkeyking/vega/node_modules/webdriverio/build/lib/runner.js:517:24)
    at Runner._callee$ (/Users/monkeyking/vega/node_modules/webdriverio/build/lib/runner.js:100:55)
    at tryCatch (/Users/monkeyking/vega/node_modules/regenerator-runtime/runtime.js:65:40)
    at GeneratorFunctionPrototype.invoke [as _invoke] (/Users/monkeyking/vega/node_modules/regenerator-runtime/runtime.js:303:22)
    at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Users/monkeyking/vega/node_modules/regenerator-runtime/runtime.js:117:21)
    at step (/Users/monkeyking/vega/node_modules/webdriverio/node_modules/babel-runtime/helpers/asyncToGenerator.js:17:30)

    at Runner.initialiseFramework (/Users/monkeyking/vega/node_modules/webdriverio/build/lib/runner.js:523:23)
    at Runner._callee$ (/Users/monkeyking/vega/node_modules/webdriverio/build/lib/runner.js:100:55)
    at tryCatch (/Users/monkeyking/vega/node_modules/regenerator-runtime/runtime.js:65:40)
    at GeneratorFunctionPrototype.invoke [as _invoke] (/Users/monkeyking/vega/node_modules/regenerator-runtime/runtime.js:303:22)
    at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Users/monkeyking/vega/node_modules/regenerator-runtime/runtime.js:117:21)
    at step (/Users/monkeyking/vega/node_modules/webdriverio/node_modules/babel-runtime/helpers/asyncToGenerator.js:17:30)
    at /Users/monkeyking/vega/node_modules/webdriverio/node_modules/babel-runtime/helpers/asyncToGenerator.js:28:13
    at process._tickDomainCallback (internal/process/next_tick.js:135:7)

Can you please point me to right direction?

We still haven't merged the changes from https://github.com/webdriverio/wdio-cucumber-framework/pull/60 that would allow to use Cucumber v2. Please have a little bit more patience.

oh, sorry, I didn't notice

Which version of cucumber are we supposed to be using now?

@osmolyar try my configuration if it works:
    "cucumber": "^2.3.1",
    "wdio-cucumber-framework": "^1.0.2",
    "webdriverio": "^4.9.9"

I don't use webdriverio-cucumber-js.

Thank you very much for the input.  I tried it with the below in package.json, on a clean installation, installing everything locally or globally, and in either case I still get the error "ERROR: Couldn't load "wdio-cucumber-framework" framework. You need to install it with $ npm install wdio-cucumber-framework!"
"dependencies": {
"Faker": "^0.7.2",
"colors": "^1.1.2",
"download-file": "^0.1.5",
"follow-redirects": "^1.2.1",
"lodash": "^4.17.4",
"cucumber": "2.3.1",
"wdio-cucumber-framework": "^1.0.2",
"wdio-junit-reporter": "^0.2.0",
"wdio-spec-reporter": "0.0.5",
"webdriverio": "^4.9.9",
"yargs": "^6.6.0"
},
"devDependencies": {
"wdio-cucumber-framework": "^1.0.2"
}

That's unusual behavior. Here are some steps that might help. Some are basic, but just to be sure.

yarn install or npm install after package.json was changed
run webdriver binary from node_modules ./node_modules/.bin/wdio wdio.conf.js
remove node_modules directory and run yarn install again
last resort - remove node_modules directory and lock file - yarn.lock and run yarn install

There may be also a clash between global and local scope and a global package is preferred. I'd remove all global packages and use only those from node_modules. It helped me.

@istana, thanks, it finally worked after uninstalling everything locally and globally and deleting node_modules, and installing the relevant modules globally.  (Though it still doesn't seem to be recognizing my step_definitions folder from Cucumber require opts.)


added get_gvtd_threshold()

Added function to get threshold for GVTD so that the gvtd function can also output a mask of clean/tainted data.

@dboas do you want to test if this works with your masks and then we merge? or would you like me to review code "offline" and approve

Replaced with #54 to merge with dev.


Clear and render new grid?

How can I clear the terminal and render a new grid?
I'm trying to implement multiple views the user can switch between. The first one uses termui.Body. But when I add new rows and call render, they are appended (of course). I tried reinitializing the Body
termui.Body = termui.NewGrid(...)

and creating a separate grid:
grid := termui.newGrid(...)
grid.Align()
termui.Render(grid)

But both result in an empty terminal.

You could reinitialize the slice termui.Body.Rows by using:
termui.Body.Rows = []*termui.Body.Rows{}
I am new to Go, so not sure if this is the best way to do this.

To reset, before AddRows I did:
ui.Body.Rows = ui.Body.Rows[:0]


Nice to have: Code execution

Added index.ts to handle sending POST request to Judge0 to execute the code and GET request to Judge0 to obtain execution results
Added execute_code.js to call execute() function (to be called when submit button is pressed)

In your PR branch, please remove the node_modules,  package.json and package-lock.json from the root of the project directory.
I think we accidentally committed a package.json in the root level of our repo but it should not be there. Same goes for the node_modules and package-lock.json - it should never have been generated in the first place.

Currently, calling one single endpoint will trigger the creation of batched submission, execution of batch submission, and response upon completion of all tasks in the batched submission.

Converted batch execution of test cases to sequential test cases.

Fixed issue with disconnections and leave match

Linked frontend submission with the service

Fixed disconnect not triggering on page route change

Added GUI for leave match as reconnect match.


Provide an example of vba  find and replace

Use case: cells containing arbitrarily repeated strings (e.g., multiple spaces that you would like reduced to a single space).  Wildcard characters do not support this kind of pattern matching.  Suitable examples are very difficult to find.  For the example, use something visible like '#'. The loop would be:
Dim results as object
Columns("c:c").Select 'arbitrarily selected column c to perform replacement on
Do
        Selection.Replace What:="##", Replacement:="#", LookAt:=xlPart, _

    SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
    ReplaceFormat:=False
    Set results = Selection.Find("##")
    Loop While Not results Is Nothing

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

ID: 887c0d0a-9936-e2b4-98dd-88d9fdcd3818
Version Independent ID: 382a45f8-d13d-3efa-45cf-b431d28a2409
Content: Range.Replace method (Excel)
Content Source: api/Excel.Range.Replace.md
Product: excel
GitHub Login: @o365devx
Microsoft Alias: o365devx

@qt3m45su0najc7 Thanks for the feedback. Does the following topic address your request? If not, let us know... https://docs.microsoft.com/en-us/office/vba/api/excel.range.find


Issue with docs.zowe.org/stable/user-guide/advanced-apiml-configuration/

Description

Customizing management of API ML load limits leads to a 404
Pages to Update

Screenshots

Expected behavior

Additional context

The correct link is: https://docs.zowe.org/stable/user-guide/api-mediation/configuration-customizing-management-of-apiml-load-limits
@janan07 This seems like some kind of general problem. If you go to the advanced configuration via https://docs.zowe.org/stable/user-guide/advanced-apiml-configuration/ instead of https://docs.zowe.org/stable/user-guide/advanced-apiml-configuration the links break down.

Please see https://github.com/zowe/docs-site/pull/3734 to address this issue and update the content of this article.


Tied person should be able to break free from being tied

Perhaps with a minigame to break free, higher strength would mean breaking free faster (or agility)

I'm thinking a tied player should just always have a chance to break free, right from the moment they're tied:

A "struggle" option should appear to them at random intervals (but with at least a minute interval).
If the player reacts fast enough and correctly selects the struggle option within the time frame, they break free after 10 seconds.
Struggling is shown to captors (with a /me in chat as well).
However as soon as the struggling player moves (or is is moved by getting kicked by another player) their struggle will end and they won't get the struggle option for at least another minute).

This way we:

[ ] give players a way to break free #15
[ ] require captors to be alert and force them to interact with their victim (instead of just locking them up for hours on end, without consequence).

Although it can be re-balanced, this is how it works at the moment:

Someone who is tied can start attempting to break free after 60 seconds
After 60 seconds, every second they get a 5% chance they can break free
A random button 1-9 is shown, they have to press that to break free (not the keypad buttons)
If they hit the wrong button the timer resets
If they hit the right button, they will start struggling to break free. This will take at most 15 seconds
Their struggling is announced as a /me and can be seen when looking at the player
If they move while struggling (or are moved) they stop struggling, their timer has reset to 60 seconds.

These values are affected by Agility, someone with max Agility + stimpacks can get the 60 seconds timer down to 2 seconds. The 5% chance is not increasable.
The 15 second time to struggle is the same as the 15 second time to tie someone. It can also be lowered by increasing the Agility attribute.


feature:  Warn user if they leave the /editor page with unsaved changes #109

This pr solves issue https://github.com/tscircuit/snippets/issues/109
Using beforeUnload and popStatus event I solved the issue and tested it in various ways manually.
I believe conflicts will not occur now
Please merge this pr as soon as possible.
Regards,
Satvik

@Satvik1769 failing format check, you can fix with bun format

Ok will fix the issues


Open as Editor Tab, with dev-tools

Hi
Please provide more details - is it a question? is it a feature request? thanks

It's a Feature Request.
I think it would be great for GIB to open as an Editor tab... (N editor tabs actually, like browser tabs)
and dev-tools inside that tab, or as a tool window

@judison this feature is now available in the upcoming release v2024.1.3
Thanks for reporting.


GUI applications startup is very slow when under apicalls analysis

There's a ~ 30 seconds delay between starting analysis and the moment when an application starts launching (Dock icon appears, windows open, etc).

From my investigation it seems like the problem lays inside dtrace itself: the main delay is between launching the dtrace process and receiving first results from it.
Not sure what I'm going to do about it  ¯_(ツ)_/¯, just leave as is right now.

I've tried not to install any dtrace probes on sudo (we use it as a launcher for dropping privileges before executing a real target), but so far don't see any improvements: in general, it takes a Cocoa application ~20 seconds to just start  launching.
Keep working on it.

As it turns out, the more pid probes we install the slower our target is :-1:


gRPC C++ installation error via Cocoapod

grpc Version
v1.28.2
OS
MacOSX 10.14.6
Compiler Version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 11.0.0 (clang-1<IP_ADDRESS>)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
Trying to do pod install with grpc dependencies, where it was downloading v1.28.2 but ended up in error at sed empty string in filename
things to reproduce,
ruby version
ruby 2.4.9p362 (2019-10-02 revision 67824) [x86_64-darwin18]
cocoa pods version
1.9.3
to test package, you can use cloud_firestore: as flutter dependency and try to run pod install
I suspect this empty string in the sed is throwing error in mac sed -E -i '' 's;#include <openssl/(.*)>;#if COCOAPODS==1\ in file https://github.com/grpc/grpc/blob/046ee0196d6278679cd7d01d5b81258ee8fffc57/gRPC-C%2B%2B.podspec#L1317
I would like to install the cloud_firestore which internally requires the grpc-c++ version. the pods not installing the grpc in this specific scenario
I see the below error while doing pod install
**
[!] /usr/local/bin/bash -c
set -e
sed -E -i '' 's;#include <openssl/(.)>;#if COCOAPODS==1
#include <openssl_grpc/\1>
#else
#include <openssl/\1>
#endif;g' $(find src/core -type f ( -path '.h' -or -path '.cc' ) -print | xargs grep -H -c '#include <openssl_grpc/' | grep 0$ | cut -d':' -f1)
find src/core/ third_party/upb/ -type f ( -name '.h' -or -name '.c' -or -name '.cc' ) -print0 | xargs -0 -L1 sed -E -i'.grpc_back' 's;#include "upb/(.)";#if COCOAPODS==1
#include  "third_party/upb/upb/\1"
#else
#include  "upb/\1"
#endif;g'
find src/core/ third_party/upb/ -type f -name '.grpc_back' -print0 | xargs -0 rm
find src/core/ src/cpp/ -type f ( -name '.h' -or -name '.c' -or -name '.cc' ) -print0 | xargs -0 -L1 sed -E -i'.grpc_back' 's;#include "(.).upb.h";#if COCOAPODS==1
#include  "src/core/ext/upb-generated/\1.upb.h"
#else
#include  "\1.upb.h"
#endif;g'
find src/core/ src/cpp/ -type f -name '*.grpc_back' -print0 | xargs -0 rm
sed: (standard: No such file or directory
**

@hsivakum Does this only happen on v1.28.2? Have you tried any other version?

+1, got this exact same error today too.
Same versions, gRPC-C++ is used probably by some Firebase pods that I have.

i have currently the same problem in my flutter-project; how can i switch the sed?

@tkdp I'm not pretty sure, but I think you may need to remove the gnu-sed Path variable.

thanks yulin, i have done an alias sed=gsed and it worked


Code Refactoring

The code needs to be refactored. With main components in mind being the API calls and the styling.

Much of the styling is duplicated and for that reason should be consolidated into separate styling sheets
There are also duplicate calls for on the APIs
- API functions should all be defined in a single model, where they can be called in other documents
Environment variables need to be defined in a .env document in order to hide API keys and addresses from GitHub

Closed in favor of a more detailed issue:
https://github.com/oss-slu/lrda_mobile/issues/38