Does not cache schedule between app restarts

To re-created the bug:

[x] Open FOSSAsia app, wait for the initial JSON document load
[x] View schedule
[x] Close app (not just minimize)
[x] Open FOSSAsia app again
[x] It does the entire schedule reload again, instead of caching locally for say, 1 hr or so

cc @mariobehling @Vandan-V-Phadke

@leto Actually this was left intentionally for testing the app as soon as the data is updated. Data source structure was a bit weak, so even a small human error could make the app crash/or prohibiting data parsing. Somehow fixing this was left undone :P :)

Can we not store it in the sqlite db ?

@batraabhishek I understand it is useful for testing, but it is a bug that makes a user wait for the entire schedule to load on every start. That was 5-10 seconds on my phone, which is unpleasant. It sounds like it would be nice to have a "refresh schedule" button in the UI somewhere, so the conference guest can decide to update the schedule. Also, this is best done in a background thread, so it does not block the main UI.

@leto Yup, It shouldn't be there in the first place. I know the conference is over, but I will quickly fix it for now. As a later step we can implement a background data loading.
@Vandan-V-Phadke In the current system, there is a versioning system. Initially -1 is stored as version in shared preferences, if the version returned by server is greater then devise stored version, data is downloaded and new version is stored. But we are fetching, but not comparing version in the current build, so it is downloaded every time. :)

@Vandan-V-Phadke After parsing the data, we are storing it in sqlite only.


Add an integration test to remove a resource with orphanDelete

Signed-off-by: Jian Qiu<EMAIL_ADDRESS>

@zhujian7 it seems it works...

/lgtm


Add a new transaction callback return for conditional-failure

At the moment, transaction callbacks have to check whether a statement failed because of a deadlock or because of a hard error. While sql_perform() performs this check itself for COMMIT statements, a deadlock can arise anywhere within a transaction.
To minimise code complexity, add a new transaction result value, which has the following semantics:

If a deadlock was detected, roll back the transaction and retry (i.e., as though SQL_TXN_RETRY was returned)
If a deadlock was not detected, it means a previous statement failed with a hard error, and so behave as though the return value was SQL_TXN_ABORT

Assuming this new result were named SQL_TXN_FAIL, it means the following:
if(sql_execute(sql, stmt))
{
    if(sql_deadlocked(sql))
    {
         return SQL_TXN_RETRY;
    }
    return SQL_TXN_ABORT;
}

can be replaced with:
if(sql_execute(sql, stmt))
{
    return SQL_TXN_FAIL;
}

Resolved in 566533e0871df9e1cfb47352acf8a4a6d2650aa5


Create Solution_4.py

Hey there!, Thanks for submitting a PR to this repo :smiley:
Please complete the following checklist for your PR to be approved. Mark the items by adding an x.
Example:  - [ ] Mark me as completed
To mark: - [x] Mark me as completed

[x] My Pull Request adheres to the Contribution guidelines.
[ ] I have added problem.md and solution files in the appropriate folder
[ ] In problem.md I have provided a correct link to the problem.
(In case you are not adding a problem, you can freely mark this as complete)
[x] My solution passes all the testcases within the given constraints.
[ ] I have properly indented and documented my solution using comments.

If any of the above is unmarked, please make the necessary changes and then mark them so that you're PR can be approved and merged.
(Only completed checklist PRs will be reviewed)

Please make the changes and complete the checklist in order for your PR to be reviewed.


[BUG] After switch to new account, the token list still show previous account's info

Describe the Bug
After user switch from account A to account B, our app show account A's token information under account B's page.

Expected experience
Clean token list data of previous account when switch account.
Steps To Reproduce

login two account with different token list
switch from one to another
check token page

Environment
- flow wallet ios version 2.1.2(4).

This issue already solved in ios prod version 2.1.4(8).


Added Resolution Rules in Templates for All Templates

Need to remove the check and checkbox next to all added resolution rules in all templates

https://github.com/augurproject/augur/issues/4568 ticket will fix this one


Lapack

Release of BLAS 1.1. Adds:

support of LAPACK
support of the GRISP platform

All seems good.

we need approval from someone inside erlef organization @peerst , i do not have the rights to merge.

All seems good.

@tanguyl I still see the pre and post hooks in rebar.config


Docs/update doc sections

:tada: This PR is included in version 3.16.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Piper import

Test failure on windows is sporadic (it passed in push) and seems to be goroutine scheduling related.
Failing test:
https://github.com/google/cloudprober/blob/924a3c88c37368e8b2bde310bdec75f8aa401526/probes/grpc/grpc_test.go#L228
Apparently we are getting as many probes as we want (3 vs 4).
I'll follow up on that later.


KAFKA-10624: For FeatureZNodeStatus, use sealed trait instead of Enumeration

This is a follow-up to initial KIP-584 development. In this PR, I've switched the FeatureZNodeStatus enum to be a sealed trait. In Scala, we prefer sealed traits over Enumeration since the former gives you exhaustiveness checking. With Scala enumeration, you don't get a warning if you add a new value that is not handled in a given pattern match.
Test plan:
Rely on existing tests.

@junrao @abbccdda: this PR is ready for review.

The build in CI is broken due to https://github.com/apache/kafka/pull/9559 . I'll rebase on top of latest AK trunk, after that PR is merged.

I've rebased on top of #9559 now. So the build failure(s) should be gone.


Atomic customer creation

It seems as if customer.recognized sometimes was set outside of the transaction.
This patch should fixed it.
It also removes redundant code and the useless method unrecognize.

I'm ok with merging this, but it seems to include a lot more changes than mentioned in the description. Is that on purpose?

Ah, I think this is because it also includes #45?

Please don't merge this. I'll create a smaller patch with this specific problem.

Obsoleted by #463.


Small revision to ScrollableState.fling()

If a fling's velocity is below the threshold, do not start a scroll animation. Just settle the scroll offset.
Otherwise, but only if we're overscrolled or snapping, settle the scroll offset.
Fixes #5870


Add Guide for Signing interactions between the AS & RS

We are not going to support that as of now since we anticipate the RS and the AS to be run by the same entity. Hence, there is no signing needed.


use backports on debian 11 for package install

A draft how #131 could be fixed. Not sure if this is a good approach.
When testing it in molecule adapt borg_install_method to package. The instances  archlinux-latest and almalinux-9 fail with package, but the fail occurs without the commit as well.

This seems very specific to this one Debian version and if you want a newer package, you could just install from pip?


Fixed dtype of a converted unit

Fixes two dtype issues when converting an Iris unit:

the datatype specified by the ctype kwarg to iris.unit.Unit.convert is not being enforced, and
big-endian arrays are not being handled correctly.

Both of these issues are fixed by enforcing the datatype specified by the ctype kwarg. This caused a number of knock-on test failures, all of which boiled down to the datatype of the converted unit being implied rather than fixed.
To appropriately fix the datatype the ctype kwarg is now explicitly passed through cube.convert_units and coord.convert_units.

NB. The docs for Unit.convert state, "Conversion is done in-place for numpy arrays." This is (mostly*) not true and could do with fixing in a separate PR.
*) It's only true when the source and target units are equal, in which case no computation is necessary and the original array is returned.

What's the real driver behind this PR? Is it the big-endian issue?

@rhattersley primarily this PR is to solve the endian-ness issue. Associated with this it was pointed out that the ctype kwarg was usually ignored. In fixing the second issue I found I had also fixed the first issue.

This latest commit switches the approach taken by this PR from the one originally proposed to the opposite proposal as championed by @rhattersley and @pelson. It has noticeably simplified the PR and caused far fewer incidental test failures and other code knock-on impacts.

I've made changes based on @pelson's comments:

the method docstring now makes it clear that ctype will be used to convert any input value that is not of type float, and
any input value with explicit endianness will be converted to having native endianness. This generalises behaviour for both big- and little-endian systems, and means the comment describing the behaviour is more accurate.

the method docstring now makes it clear that ctype will be used to convert any input value that is not of type float

I know @pelson said, "More like when the type is not float?" but I don't think that's right. It gets used for integer arrays(*) and any scalar. For example, src_unit.convert(np.float32(2.4), 'm') will still force a 64-bit conversion.
*) Admittedly, because the array handling raises an error for unrecognised dtypes, saying "integer arrays" is pretty much equivalent to saying "not floating point arrays" but that's not the real issue.

I've had another go at wording the description for the ctype argument in the unit.convert docstring. It now literally states the only time that the value of the ctype argument will be used.

:+1: from me

now literally states

It may have been literal but it was not complete... hopefully this fixes it! @rhattersley?

:+1:

It all boiled down to quite a small change in the end - any chance of a squash?

any chance of a squash?

With the proviso that I keep the original commit separate, yes. I think it would be good not to lose the history of the other approach.

If we can just hold our horses :horse: for a second, I need to rebuild my history :cherries: ... Watch this space!

Phew, that's much better :sweat_smile:

Thanks :smile:


Theming

[x] changed javascript language icon
[x] move project name next to logo
[x] using items instead of button in top nav menu
[x] support for inverted menu in settings

:shipit:


Fixes install_or_tools.sh

When the install_or_tools.sh script runs, it checks that the bin/fzn-or-tools and lib/libfz.so files exist.
However, on MAC there is no lib/libfz.so file, and as a result, the script always installs the tool.
In addition, it doesn't check the installed version
/fixes #1909
Signed-off-by: Alexey Roytman<EMAIL_ADDRESS>

TODO check with @ngoracke why tools are installed on Ubunty, but runs on Centos


Fix the afterEarlyOutput bit

success needs to be false when there is a macro.

To validate this pull request against other sbt modules, please visit this link.


apiextensions.k8s.io/v1beta1 deprecation in 1.16

Currently KEDA uses apiextensions.k8s.io/v1beta1 in CustomResourceDefinition.
apiextensions.k8s.io/v1beta1 is going to be deprecated in favor of apiextensions.k8s.io/v1 in 1.16 according to this resource:
https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
we are planing to migrate and wanted to check if support for v1 is planned.

We should certainly move to apiextensions.k8s.io/v1 but that will most probably be for 2.0.
Thoughts @ahmelsayed @zroubalik?

Which version removes apiextensions.k8s.io/v1beta1 @Cerberussian, do you know?
For now it's deprecated but it's still around so we have time (which doesn't mean we should wait) but just to know how soon it will go away, 3 versions?

If apiextensions.k8s.io/v1beta1 is going to be present in a next few releases, we don't need to rush and could keep this for 2.0, to be consistent.
If we change it to v1 now, we will drop support on kubernetes < 1.16.0, we can currently run KEDA on > 1.13, so it could affect users with older versions.

Agreed, v2.0 sounds good to me

As discussed on https://github.com/kedacore/keda/issues/1160, I think that we can safely require k8s v1.16+ for KEDA. That means that we can move to apiextensions.k8s.io/v1.
Any objections?

Looks like that was released only on September 18, 2019; but makes sense to me. Maybe we can discuss tomorrow in standup?


Unhandled Exception: System.Exception: Unable to find crypto stream TypeDef #8

Unhandled Exception: System.Exception: Unable to find crypto stream TypeDef
Unhandled Exception: System.Exception: Unable to find crypto stream TypeDef
at eazdevirt.EazModule.Initialize() in E:\xxxx\eazdevirt-master\src\eazdevirt\Core\EazModule.cs:line 86
at eazdevirt.EazModule..ctor(ModuleDefMD module, ILogger logger) in E:\xxx\eazdevirt-master\src\eazdevirt\Core\EazModule.cs:line 77
at eazdevirt.Program.TryLoadModule(String path, ILogger logger, EazModule& module) in E:\xxx\eazdevirt-master\src\eazdevirt\Program.cs:line 192
at eazdevirt.Program.DoDevirtualize(MonoOptions options) in E:\xxx\eazdevirt-master\src\eazdevirt\Program.Devirtualize.cs:line 168
at eazdevirt.Program.Main(String[] args) in E:\xxx\eazdevirt-master\src\eazdevirt\Program.cs:line 139

Please upload your sample, or a sample that can reproduce the bug. Make sure your sample is actually obfuscated with EazFuscator.

I was seeing the same issue. Here is the dll that I'm working with that hits the issue.
Somewhere along the way Eazfuscator stopped having CryptoStream inherit from .NET Stream and rolled their own implementation of 'CustomStream' to inherit from. I was able to work around the issue by removing a constraint check in FindCryptoStream for the module type to inherit from a Stream. This usually still finds the correct Crypto stream type anyways.
In addition to the CustomStream, it also uses its own version of .NET BinaryReader. This does some additional operations on top of the encryption the CryptoStream does. I think this 'CustomBinaryReader' is version dependent as I can see some of the additional operations within the reader change based on different historical versions of the DLL I'm trying to analyze.
I've managed to replace most of the relevant bits that read the CryptoStream to use my CustomBinaryReader, but I'm still hitting hitting issues devirtualizing. It still seems to be reading garbage from the resource stream.
I've created a fork with my work. It is in no-way working. Its CustomBinaryReader implementation is tied to the dll I provided above. Hoping someone can find it useful.

This repository is for EazFixer, not my eazdevirt fork. I do not provide support for my fork as it was a one-time job. In the future I may make my own devirtualizer that works in a better way, but I have no plans right now.


Clarify how to use deck with tags and multiple files

Summary
Recently a GH issue was opened for deck  in regards to some confusing behaviour when using multiple state files along with the --select-tag.
Here we are adding some clarification on how these two features should be used together.
Reason
https://github.com/Kong/deck/issues/574
Testing
Steps included in the ticket and in the docs itself.

@lena-larionova Many thanks for taking a look! This should look better now


Use scala 2.11 as default version.

2.12 should be considered experimental, since it's not fully supported in Scio yet. Let's keep the cross-build, but document this? @nevillelyh

Codecov Report

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

@@           Coverage Diff           @@
##           master      #29   +/-   ##
=======================================
  Coverage   72.19%   72.19%
=======================================
  Files          26       26
  Lines         917      917
  Branches      119      120    +1
=======================================
  Hits          662      662
  Misses        255      255

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 6f7be01...35198d7. Read the comment docs.


Adjust the size of image on footer

Description
Adjust the size of the picture on "contact us" section when it is in mobile responsive.
Screenshots
No response
Additional information
Guidelines ⚠
I will follow the Setup Guidelines
I will follow the Contributing Guidelines
I will follow the Code of Conduct

Notice ⛔
You will make PRs only to itsroy69-doctalk branch. Don't make pull request directly on main branch. After review maintainer will merge it.
Commit message / PR title--> fix: bla bla bla
Please make sure in the .css files you are making/using , the styles should be applied to Unique Class names

Completed / Doubts ? 🚀
Once you are done with the code , please tag me in #milan with the Screenshot of whatever you made so that we can review that there together.
If you have any doubts, queries please tag me in #doctalk so that we can discuss the issue there together.
Cheers 🥂

Hey can you assign me this issue ?

Why hacktoberfest label is added to this issue?
@ItsRoy69

Search engine


Degraded SharePoint 2016 search index partition on every setup

Details of the scenario you try and problem that is occurring:
Getting the dreaded degraded partition index (yellow triangle) when viewing the Search service application screen though central administration.
my workaround fixes it every time:
Add-PSSnapin microsoft.sharepoint.powershell
$ssa = Get-SPEnterpriseSearchServiceApplication
$Status = (Get-SPEnterpriseSearchStatus -SearchApplication $ssa | ? {$_.Name -eq "IndexComponent1"}).state
if($Status -eq "Degraded")
{
"Degraded"
$content = Get-SPEnterpriseSearchCrawlContentSource -SearchApplication $ssa
$content.StopCrawl()
$ssa.Reset($true,$true)
$content.StartFullCrawl()
}
else {"Index is good"}
Anyone else experience this?
I get the same degraded partition on every new run of my setup...
If i knew how to apply the microsoft.sharepoint.powershell snapin to my class 5 resources i'd probably fix this easily:-)
The DSC configuration that is using the resource:
#Add Search Service Application
SPSearchServiceApp SearchServiceApp
{
Name                        = "Search Service Application"
Ensure                      = "Present"
DatabaseName                = ($ConfigurationData.NonNodeData.SharePoint.DataBasePrefix + "Search")
ApplicationPool             = $ConfigurationData.NonNodeData.SharePoint.ApplicationPool
PsDscRunAsCredential        = $SPSetupCred
DefaultContentAccessAccount = $SPCrawlCred
CloudIndex                  = $false
WindowsServiceAccount       = $ServiceAppPoolAccountCred
DependsOn                   = "[SPStateServiceApp]StateServiceApp"
}
    SPSearchTopology LocalSearchTopology
    {
        ServiceAppName          = "Search Service Application"
        Admin                   = $AllNodes.Where({$_.Role -match "MasterServer"}).NodeName
        Crawler                 = $AllNodes.Where({$_.Role -match "MasterServer"}).NodeName
        ContentProcessing       = $AllNodes.Where({$_.Role -match "MasterServer"}).NodeName
        AnalyticsProcessing     = $AllNodes.Where({$_.Role -match "MasterServer"}).NodeName
        QueryProcessing         = $AllNodes.Where({$_.Role -match "MasterServer"}).NodeName
        PsDscRunAsCredential    = $SPSetupCred
        FirstPartitionDirectory = "C:\SearchIndexes\"
        IndexPartition          = $AllNodes.Where({$_.Role -match "MasterServer"}).NodeName
        DependsOn            = "[SPSearchServiceApp]SearchServiceApp"
    }

Version of the Operating System and PowerShell the DSC Target Node is running:
Server2012R2 Powershell 5.0
Version of SharePoint that is used (e.g. SharePoint 2016):
SharePoint 2016 CU 2018 'FEB
Version of the DSC module you're using:
SharePointDSC <IP_ADDRESS>

[bool] Test()
{
$There = $false
$result = Invoke-SPDSCCommand -ScriptBlock {
try
{
$ssa = Get-SPEnterpriseSearchServiceApplication
$Status = (Get-SPEnterpriseSearchStatus -SearchApplication $ssa | ? {$_.Name -eq "IndexComponent1"}).state
}
catch
{
Write-Verbose -Message "Unable to detect local farm."
return $null
}
return $Status
}
    if($result -eq "Degraded")
    {
        $There = $false
        Write-Verbose -Message "SearchIndex has state Degraded.."
    }
    Else {$There = $true}

    if ($this.Ensure -eq [Ensure]::Present)
    {
        If($There -eq $true){Write-Verbose -Message "[Desired State already achieved]"}
        If($There -eq $false){Write-Verbose -Message "[Not in Desired State]"}
        return $There
    }
    else
    {
        If($There -eq $false){Write-Verbose -Message "[Desired State already achieved]"}
        If($There -eq $true){Write-Verbose -Message "[Not in Desired State]"}
        return -not $There
    }
}

works like a charm


[Refactor] make segment overflow read chunk more clearly

What type of PR is this：

[ ] BugFix
[ ] Feature
[ ] Enhancement
[x] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Which issues of this PR fixes ：
Fixes #
Problem Summary(Required) ：
Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[ ] I have checked the version labels which the pr will be auto backported to target branch

[ ] 2.5
[ ] 2.4
[ ] 2.3
[ ] 2.2

run starrocks_admit_test

regression 1109

run starrocks_admit_test


Uncaught TypeError in main.py line 197

Description
I wanted to try out the new browser mode, currently running Linux Mint 20.3 based on Ubuntu, Aider version installed with miniconda.
Error Message
Aider version: <module 'aider.version' from '/home/whoabuddy/Dev/ai/miniconda3/envs/aider/lib/python3.11/site-packages/aider/version.py'>
Python version: 3.11.10
Platform: Linux-6.0.12-76060012-generic-x86_64-with-glibc2.31
Python implementation: CPython
Virtual environment: No
OS: Linux 6.0.12-76060012-generic (64bit)
Git version: git version 2.47.0
An uncaught exception occurred:
Traceback (most recent call last):
  File "aider", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "main.py", line 489, in main
    launch_gui(argv)
  File "main.py", line 197, in launch_gui
    if "-dev" in __version__:
       ^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'module' is not iterable

Second Error
I'm seeing this now too when I run aider normally:
Aider v<module 'aider.__version__' from
'/home/whoabuddy/Dev/ai/miniconda3/envs/aider/lib/python3.11/site-packages/aider
/__version__.py'>
Main model: claude-3-5-sonnet-20241022 with diff edit format, infinite output
Weak model: claude-3-haiku-20240307
Git repo: .git with 101 files
Repo-map: using 1024 tokens, auto refresh
Use /help <question> for help, run "aider --help" to see cmd line args

Thanks for trying aider and filing this issue.
The fix is available in the main branch. You can get it by installing the latest version from github:
aider --install-main-branch

# or...

python -m pip install --upgrade --upgrade-strategy only-if-needed git+https://github.com/Aider-AI/aider.git

If you have a chance to try it, let me know if it works better for you. I'm going to close this issue for now, but feel free to add a comment here and I will re-open. Or feel free to file a new issue any time.


Warn linux users about using --cask

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[x] Have you written new tests for your changes? Here's an example.

[x] Have you successfully run brew typecheck with your changes locally?
[x] Have you successfully run brew tests with your changes locally?

This is an alternate approach to #13925.
It does three things.

It raises an error when normal Linux users use the --cask switch.
It warns Linux developers (those with HOMEBREW_DEVELOPER set) after they use --cask.
It  more or less sets the --formula flag by default on Linux.

This is the addition to the only_formula_or_cask method which gets called inside of the named_args class when trying to determine formula and/or cask filtering.
It is used as the default value of the :only variable in a couple places as shown in the following example. https://github.com/Homebrew/brew/blob/7b00b2b1d70e045a5ad2fd952ed9b4b0dc2abd49/Library/Homebrew/cli/named_args.rb#L75-L80

Review period will end on 2022-09-30 at 05:14:38 UTC.

Looks like this change broke a few tests related to making --formula the default behavior on Linux (third bullet point on the above list). It seems like we'd have to change a bunch of tests in named_args to be platform specific and I'm not sure that's really worth it.

Review period ended.

@SMillerDev I'd appreciate getting your feedback on this as well.

I don't know much about this code, I only know the issues people had and it seems to solve that. So lgtm

Should be good to go after final extend/os moves.
Ideally we'd have an rubocop for no (or, for now, no more OS.linux?/OS.mac? usage outside extend/os.

Oh, okay. I hadn't realized that. Yeah, I'll change it here and either work on adding the rubocop check or at the very least open an issue about that.

I was not able to reproduce these failing tests locally and they seem unrelated to what I changed (I just moved that snippet of code to extend/os like we talked about). Flaky tests perhaps? All of the failing tests are in the #audit_revision_and_version_scheme section of the dev-cmd/audit_spec.rb file though only about half the tests in that section are failing.
https://github.com/Homebrew/brew/blob/f35f9c03bef95fb1cf164b340392f7983933311f/Library/Homebrew/test/dev-cmd/audit_spec.rb#L856-L1123

Yeah, I'll change it here and either work on adding the rubocop check or at the very least open an issue about that.

Thanks 🙇🏻

Flaky tests perhaps?

Yeh, perhaps. Have rerun and we'll see 🤞🏻

Works, thanks again @apainintheneck!


Installation broken with yarn 1.x

yarn version:  1.22.10
node version: 15.2.0
environment: ubuntu 20.04
The command yarn install --frozen-lockfile && yarn build generates the following error on latest master:
Watching /home/sroeca/.config/nvim/pack/packager/start/coc-tsserver.git and all sub-directories not excluded by your .gitignore. Will not monitor dotfiles.
Found & ignored ./node_modules ; is listed in .gitignore

Starting: clean
node:internal/modules/cjs/loader:922
  throw err;
  ^

Error: Cannot find module '/home/sroeca/.config/nvim/pack/packager/start/coc-tsserver.git/clean'
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:15)
    at Function.Module._load (node:internal/modules/cjs/loader:763:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12)
    at node:internal/main/run_main_module:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}
^C
npm ERR! path /home/sroeca/.config/nvim/pack/packager/start/coc-tsserver.git
npm ERR! path /home/sroeca/.config/nvim/pack/packager/start/coc-tsserver.git
npm ERR! command failed
npm ERR! signal SIGINT
npm ERR! command sh -c runjs clean
npm ERR! command failed
npm ERR! signal SIGINT
npm ERR! command sh -c npm-run-all clean build

npm ERR!  A complete log of this run can be found in:
npm ERR!     /home/sroeca/.npm/_logs/2020-11-13T15_46_50_604Z-debug.log

Verbose error:
0 verbose cli [
0 verbose cli   '/home/sroeca/.asdf/installs/nodejs/15.2.0/bin/node',
0 verbose cli   '/home/sroeca/.asdf/installs/nodejs/15.2.0/lib/node_modules/npm/bin/npm-cli.js',
0 verbose cli   'exec',
0 verbose cli   '--',
0 verbose cli   'run',
0 verbose cli   'clean'
0 verbose cli ]
1 info using<EMAIL_ADDRESS>2 info using<EMAIL_ADDRESS>3 timing config:load:defaults Completed in 1ms
4 timing config:load:file:/home/sroeca/.asdf/installs/nodejs/15.2.0/lib/node_modules/npm/npmrc Completed in 0ms
5 timing config:load:builtin Completed in 0ms
6 timing config:load:cli Completed in 1ms
7 timing config:load:env Completed in 1ms
8 timing config:load:file:/home/sroeca/.config/nvim/pack/packager/start/coc-tsserver.git/.npmrc Completed in 0ms
9 timing config:load:project Completed in 0ms
10 timing config:load:file:/home/sroeca/.npmrc Completed in 0ms
11 timing config:load:user Completed in 0ms
12 timing config:load:file:/home/sroeca/.asdf/installs/nodejs/15.2.0/.npm/etc/npmrc Completed in 0ms
13 timing config:load:global Completed in 0ms
14 timing config:load:cafile Completed in 1ms
15 timing config:load:validate Completed in 1ms
16 timing config:load:setUserAgent Completed in 0ms
17 timing config:load:setEnvs Completed in 1ms
18 timing config:load Completed in 6ms
19 verbose npm-session faf26c370f161cdb
20 timing npm:load Completed in 11ms
21 http fetch GET 200 https://registry.yarnpkg.com/run 9ms (from cache)
22 timing arborist:ctor Completed in 1ms
23 timing arborist:ctor Completed in 0ms
24 timing arborist:ctor Completed in 1ms
25 timing command:exec Completed in 18485ms
26 verbose stack Error: command failed
26 verbose stack     at ChildProcess.<anonymous> (/home/sroeca/.asdf/installs/nodejs/15.2.0/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/index.js:64:27)
26 verbose stack     at ChildProcess.emit (node:events:329:20)
26 verbose stack     at maybeClose (node:internal/child_process:1055:16)
26 verbose stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:288:5)
27 verbose pkgid<EMAIL_ADDRESS>28 verbose cwd /home/sroeca/.config/nvim/pack/packager/start/coc-tsserver.git
29 verbose Linux 5.4.0-53-generic
30 verbose argv "/home/sroeca/.asdf/installs/nodejs/15.2.0/bin/node" "/home/sroeca/.asdf/installs/nodejs/15.2.0/lib/node_modules/npm/bin/npm-cli.js" "exec" "--" "run" "clean"
31 verbose node v15.2.0
32 verbose npm  v7.0.8
33 error path /home/sroeca/.config/nvim/pack/packager/start/coc-tsserver.git
34 error command failed
35 error signal SIGINT
36 error command sh -c runjs clean
37 verbose exit 1

Update your yarn

I believe I'm on the latest version of what is still called "yarn" on npm: https://www.npmjs.com/package/yarn
If you've migrated this project to "yarn version 2.0, AKA berry", it might be helpful to add straightforward instructions for people to put in their vimrc to build from git.
I currently have, as my hook: 'do': 'yarn install --frozen-lockfile && yarn build'. How do you recommend that this be changed for users to build from git when cloning the latest version of coc-tsserver?

That said, I'm also happy to just manage this plugin using CocInstall, but I assume you might like having users on the development version to raise helpful bug reports for you!


Ingress definition updated for kubernetes versions up to 1.22

Kubernetes 1.22 deprecates the use of networking.k8s.io/v1beta1 for Ingress resources in favour of networking.k8s.io/v1
Here is the refactored ingress resource as supported by networking.k8s.io/v1

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Remove SecurityContextDeny API plugin

This is no longer recommended for use since K8s 1.2:
http://kubernetes.io/docs/admin/admission-controllers/#is-there-a-recommended-set-of-plug-ins-to-use

:+1:


Mono: Android build and shared libraries fixes

Fix location of Mono's shared libraries.
Fix build failing if the directory 'platform/android/java/libs/{target}/{abi}' doesn't exist.

Thanks!


[Feature request]: add support for ESLint v9

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
Currently, super-linter only supports "v8" config of ESLint, while it is not supported:
https://eslint.org/blog/2024/09/eslint-v8-eol-version-support/#eslint-v8.x-end-of-life-is-october-5%2C-2024
Expected Behavior
Currently, when you try to define config as "eslint.config.mjs," it throws an error, so it would be good to support the last versions of config.
https://eslint.org/docs/latest/use/migrate-to-9.0.0
https://eslint.org/docs/latest/use/configure/migration-guide
Anything else?
While this may be not so important, I think it is still a potentially future "breaking change" in super-linter's update, thanks for your project and your work!

To add some data about ESLint v9 situation, as I understood, "JSON_VALIDATION" is not working entirely, at least on my cases, even if you use "legacy" configs, it throw's an errors, also, as I understood, "standard" (and "ts-standard") is also "conflicting" between legacy and v9 eslint.


Assertion Issue!

Can't run the code!
It say assertion issue!

Did you get this solved?

Can't run the code!
It say assertion issue!

Did you solve this?

How to solve the issue?


Passenger tag for Entity() with .txt extension does not work.

OTG Plugin or Mod
[Please specify if it's about Forge Mod or Spigot server Plugin placing "x" into []]

[X] OTG Plugin for Spigot

OTG Version

[X] 1.12.2_v9_r11

Forge or Spigot Versions

Description
The passenger tag does not get passed to OTG through the .txt attached to the mob resulting in the mount to spawn but not it's rider. Other then that the entity spawns just fine. Also if the same command is used as /summon in a command block it works. This issue goes for all mounted mobs such as spider jockeys, skeleton traps and so on.
Within this .zip you'll find a white_howl bo3 and a NBT folder in which the .txt for the wolf can be found.
EntityBo3.zip
Thanks for talking a look! I tried determining in what version this broke but was not successful in finding this. I'd love to see this fixed before the final release!

Here is a pack containing 47 EntityTags for debugging use, took me a while to grab em all together.
EntityTagswithBo3s.zip
And here is the spawnlist for each tag:
/otg spawn CatType /otg spawn creeperboom /otg spawn creeperFuseTime /otg spawn creeperignited /otg spawn DogAngry /otg spawn DogColarColor /otg spawn DogOwner /otg spawn DogSittting /otg spawn DonkeyChested /otg spawn DonkeyTamed /otg spawn DonkeyTemper /otg spawn GhastBoomPower /otg spawn LLamaChestStrength /otg spawn LLamaSaddleDecor /otg spawn LLamaType /otg spawn PiggySaddle /otg spawn PigmanAngry /otg spawn RabbitType /otg spawn randomprof /otg spawn randomprofBaby /otg spawn randomprofBreakDoor /otg spawn randomprofConversionTime /otg spawn randomprofDamage /otg spawn randomprofDisAI /otg spawn randomprofFireProof /otg spawn randomprofFly /otg spawn randomprofFollowRange /otg spawn randomprofglow /otg spawn randomprofGravy /otg spawn randomprofInvulnerable /otg spawn randomprofKnockback /otg spawn randomprofLefty /otg spawn randomprofLooty /otg spawn randomprofPersistent /otg spawn randomprofReinforcement /otg spawn randomprofRiding /otg spawn randomprofSilent /otg spawn randomprofSpeedy /otg spawn randomprofTag /otg spawn randomprofTeam /otg spawn SheepyColor /otg spawn ShulkerColor /otg spawn SkeletonRidden /otg spawn skeletonTrap /otg spawn SlimeSize /otg spawn VillagerProfession /otg spawn VindicatorJohnny

I've also found that OTG still uses the old Entity format for the mushroom cows which is "MushroomCow"
This should be: "mooshroom"

Fixed as of https://github.com/PG85/OpenTerrainGenerator/pull/549
Also, it now accepts both "mooshroom" and "mushroomcow" for both platforms

Thanks for the awesome last minute work on this!!!! Issue Fixed & Closed


feat: support managing etcd cluster PDB

https://kubernetes.io/docs/tasks/run-application/configure-pdb/#arbitrary-controllers-and-selectors

@moritzjohner-form3 that's intentional, not to interfere with the operator, as it may be recycling the member Pods to reach the quorum.


Will ios-charts supoprt non-uniform data

Will you support the non-uniform data?
can  it？

what you mean non-uniform data?

Not equidistant data.

give some examples please

Between two points is not equal

you mean x axis? It does not support right now. But Have been asked several times.

dup to #194

ok，thank  you  all the same


Add catalog type information to DAG for custom components

Fixes #2323
What changes were proposed in this pull request?
This PR adds the full component_source field for a component to the informational comment above each custom component in the DAG.

Beforehand, only the component_ref portion of the data structure showed up, i.e.:
...
# Operator source: {'component-id': 'http_operator.py'}
op_98d6968d_aa93_45fc_a368_b2db45c841fa = SimpleHttpOperator(
...

How was this pull request tested?
This comment portion of the DAG isn't explicitly tested and it is probably unnecessary to do so
Developer's Certificate of Origin 1.1
   By making a contribution to this project, I certify that:

   (a) The contribution was created in whole or in part by me and I
       have the right to submit it under the Apache License 2.0; or

   (b) The contribution is based upon previous work that, to the best
       of my knowledge, is covered under an appropriate open source
       license and I have the right under that license to submit that
       work with modifications, whether created in whole or in part
       by me, under the same open source license (unless I am
       permitted to submit under a different license), as indicated
       in the file; or

   (c) The contribution was provided directly to me by some other
       person who certified (a), (b) or (c) and I have not modified
       it.

   (d) I understand and agree that this project and the contribution
       are public and that a record of the contribution (including all
       personal information I submit with it, including my sign-off) is
       maintained indefinitely and may be redistributed consistent with
       this project or the open source license(s) involved.

LGTM, even though the proposed and implemented solution (JSON dump) isn't user friendly and should probably be improved to require less insider knowledge.

Yeah I agree, but I think we're waiting for #2256 before making any changes to how the component_source data structure is passed around


[Bug] Duplicate rows in int_quickbooks__invoice_join.sql model when more than one QuickBooks source

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the issue
Pulling from the int_quickbooks__invoice_join model can return duplicate payments (different payment_ids based on the source) for the same invoice.
The CTEs aliased as "invoice_est" and "invoice_pay" bring in the invoice_id and payment_id and join only on invoice_id.
If the same invoice_id exists in multiple quickbooks sources, there will be a cross join that causes duplicate entries in these CTE results which is then propagated when they are used downstream.
Relevant error log or model output
No response
Expected behavior
Only have payments that were associated with a given invoice returned.
dbt Project configurations
vars:
  quickbooks_union_schemas: ['quickbooks','quickbooks_source2', 'quickbooks_source3']

models:
  quickbooks:
      +schema: null
  quickbooks_source:
      +schema: null

Package versions
  - package: fivetran/quickbooks
    version: [">=0.12.0", "<0.13.0"]

What database are you using dbt with?
postgres
dbt Version
dbt v1.7.0-latest

Additional Context
No response
Are you willing to open a PR to help address this issue?

[X] Yes.
[ ] Yes, but I will need assistance and will schedule time during our office hours for guidance
[ ] No.

Thanks @MatteyRitch for opening this and including all the details! I'm seeing what you're talking about. I think these lines need to include a join on the source_relation:
https://github.com/fivetran/dbt_quickbooks/blob/eb968fbb09733ef484cd4d80ff850b78e5df5cac/models/intermediate/int_quickbooks__invoice_join.sql#L122-L123
https://github.com/fivetran/dbt_quickbooks/blob/eb968fbb09733ef484cd4d80ff850b78e5df5cac/models/intermediate/int_quickbooks__invoice_join.sql#L72-L76
In addition to the ones you mentioned:
https://github.com/fivetran/dbt_quickbooks/blob/eb968fbb09733ef484cd4d80ff850b78e5df5cac/models/intermediate/int_quickbooks__invoice_join.sql#L46
https://github.com/fivetran/dbt_quickbooks/blob/eb968fbb09733ef484cd4d80ff850b78e5df5cac/models/intermediate/int_quickbooks__invoice_join.sql#L59
I will circle this back with the team and keep you updated.

My pleasure & thank you for the quick response @fivetran-reneeli! Yes I agree with what you wrote, though the main branch already had the source_relation joins on the estimates , payments, and payment_lines_payment joins in the final CTE.
https://github.com/fivetran/dbt_quickbooks/blob/eb968fbb09733ef484cd4d80ff850b78e5df5cac/models/intermediate/int_quickbooks__invoice_join.sql#L113-L115
https://github.com/fivetran/dbt_quickbooks/blob/eb968fbb09733ef484cd4d80ff850b78e5df5cac/models/intermediate/int_quickbooks__invoice_join.sql#L118-L120
https://github.com/fivetran/dbt_quickbooks/blob/eb968fbb09733ef484cd4d80ff850b78e5df5cac/models/intermediate/int_quickbooks__invoice_join.sql#L122-L125
Here is where / what I think needs to be modified:
https://github.com/fivetran/dbt_quickbooks/blob/eb968fbb09733ef484cd4d80ff850b78e5df5cac/models/intermediate/int_quickbooks__invoice_join.sql#L38-L77
Changed above to this:
invoice_est as (

    select
        invoices.invoice_id,
        invoice_linked.estimate_id,
        invoices.source_relation
    from invoices

    left join invoice_linked
        on invoices.invoice_id = invoice_linked.invoice_id
        and invoices.source_relation = invoice_linked.source_relation

    where invoice_linked.estimate_id is not null
),

invoice_pay as (

    select
        invoices.invoice_id,
        invoice_linked.payment_id,
        invoices.source_relation
    from invoices

    left join invoice_linked
        on invoices.invoice_id = invoice_linked.invoice_id
        and invoices.source_relation = invoice_linked.source_relation

    where invoice_linked.payment_id is not null
),

invoice_link as (

    select
        invoices.*,
        invoice_est.estimate_id,
        invoice_pay.payment_id
    from invoices

    left join invoice_est
        on invoices.invoice_id = invoice_est.invoice_id
        and invoices.source_relation = invoice_est.source_relation

    left join invoice_pay
        on invoices.invoice_id = invoice_pay.invoice_id
        and invoices.source_relation = invoice_est.source_relation
),

Hopefully that is clear & I'll look out for your reply.

I thought I included this in the above post.
The additions to the code are the invoices.source_relation column and the and invoices.source_relation = invoice_linked.source_relation criteria for the join in the invoice_est and invoice_pay CTEs and the and invoices.source_relation = invoice_est.source_relation and and invoices.source_relation = invoice_pay.source_relation when joining those 2 CTEs to the invoice_link.

Thanks for following up and yup I agree with you there!
We'll also need to add joins on source_relation in all the invoice ID joines in the intermediate CTEs, leading up to the final CTE, to prevent fan outs in the event of same invoice id's across different sources. I will check for missing joins in the other models as well.
Again, appreciate the details you left; I will file this into our upcoming sprints!

I've went through and noted where else the joins are needed on source relation to prevent fan outs below. @MatteyRitch I know you mentioned you were up for opening a PR so we welcome that, otherwise also we'll be adding this to our upcoming sprint!
GitHub - dbt_quickbooks/models/intermediate/int_q…
GitHub - dbt_quickbooks/models/intermediate/int_q…
GitHub - dbt_quickbooks/models/intermediate/int_q…
GitHub - dbt_quickbooks/models/intermediate/int_q…
GitHub - dbt_quickbooks/models/intermediate/int_q…
GitHub - dbt_quickbooks/analysis/quickbooks__bala…
GitHub - dbt_quickbooks/analysis/quickbooks__bala…
GitHub - dbt_quickbooks/analysis/quickbooks__bala…
GitHub - dbt_quickbooks/models/double_entry_trans…
GitHub - dbt_quickbooks/models/double_entry_trans…

Hi @fivetran-reneeli - sorry I was out on Monday. I just opened the PR . I wasn't aware of the need to update the changelog and versions prior to the first commit so I had to tack a 2nd one on - sorry.
One note, I couldn't find where the source_relation join / fields were needed in this model. They seem to already be there:
https://github.com/fivetran/dbt_quickbooks/blob/eb968fbb09733ef484cd4d80ff850b78e5df5cac/models/intermediate/int_quickbooks__bill_join.sql#L89

Thanks for the PR @MatteyRitch! No worries, and we will also make some additional updates on top of your PR to make sure everything is good to go before merging it in. We aim to have this merged in the coming weeks!

Hi @MatteyRitch , just finalized our PR and added some final touches. Could you confirm this works on your data?
packages.yml

- git: https://github.com/fivetran/dbt_quickbooks
   revision: bugfix/source_relations
   warn-unpinned:  false


Provide connection string in installation command

Description
Change the output into connection string for acr connected-registry install command
Testing Guide
az acr connected-registry install info -n -r
az acr connected-registry install renew-credentials -n -r
History Notes
[ACR] az acr connected-registry install info: Replace keys ACR_REGISTRY_NAME, ACR_SYNC_TOKEN_NAME, ACR_SYNC_TOKEN_PASSWORD, ACR_PARENT_GATEWAY_ENDPOINT, and ACR_PARENT_PROTOCOL with a new connected string key, ACR_SYNC_TOKEN_USERNAME.
[ACR] az acr connected-registry install renew-credentials: Replace keys ACR_REGISTRY_NAME, ACR_SYNC_TOKEN_NAME, ACR_SYNC_TOKEN_PASSWORD, ACR_PARENT_GATEWAY_ENDPOINT, and ACR_PARENT_PROTOCOL with a new connected string key, ACR_SYNC_TOKEN_USERNAME.
This checklist is used to make sure that common guidelines for a pull request are followed.

[ ] The PR title and description has followed the guideline in Submitting Pull Requests.

[ ] I adhere to the Command Guidelines.

[ ] I adhere to the Error Handling Guidelines.

@rosanch @huanwu @jaysterp

The PR is ready for merge.


unit tests - parent, child communication

I have a directive that publishes a message. In the application it works great, but when creating a unit test, unit test doesn't get the message.
directive:
angularPubSub.subscribe('change-child', function () {
     angularPubSub.publish('child-changed');
});

unit test:
 beforeEach(inject(function ($compile, $rootScope, AngularPubSub) {
     scope = $rootScope.$new();
      compile = $compile;
      angularPubSub = AngularPubSub;
  }));

it('test ntNavigator events', inject(function (NO_RESULT) {
       element = compile(angular.element('<div my-dir></div>'))(scope);
       scope.$digest();

      angularPubSub.publish('change-child');

      angularPubSub.subscribe('child-changed', function () {
              console.log('dadadada')
      });
 }));

Iam using faye - https://www.npmjs.com/package/faye
Could you help on this ?

Iam using faye -  https://www.npmjs.com/package/faye
Could you help me on this ?


Install Error: AttributeError: 'NoneType' object has no attribute '_meta'

I am trying to install djangoCMS on my Ubuntu 15.04.
I installed django CMS inside the virtualenv like this:
pip install djangocms-installer
First I had a "pillow not compiled with jpeg" issue, but managed to solve it by installing another pip version (pip install Pillow==2.3) before running djangocms -f -p . myproject.
Now, I keep getting the following error:
Running migrations:       Rendering model states...Traceback (most recent call last):       File "./manage.py", line 10, in <module>         execute_from_command_line(sys.argv)       File "/home/user/.virtualenvs/folder/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 338, in execute_from_command_line         utility.execute()       File "/home/user/.virtualenvs/folder/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 330, in execute         self.fetch_command(subcommand).run_from_argv(self.argv)       File "/home/user/.virtualenvs/folder/local/lib/python2.7/site-packages/django/core/management/base.py", line 393, in run_from_argv         self.execute(*args, **cmd_options)       File "/home/user/.virtualenvs/folder/local/lib/python2.7/site-packages/django/core/management/base.py", line 444, in execute         output = self.handle(*args, **options)       File "/home/user/.virtualenvs/folder/local/lib/python2.7/site-packages/django/core/management/commands/migrate.py", line 221, in handle         executor.migrate(targets, plan, fake=fake, fake_initial=fake_initial)       File "/home/user/.virtualenvs/folder/local/lib/python2.7/site-packages/django/db/migrations/executor.py", line 104, in migrate         state = migration.mutate_state(state, preserve=do_run)       File "/home/user/.virtualenvs/folder/local/lib/python2.7/site-packages/django/db/migrations/migration.py", line 83, in mutate_state         operation.state_forwards(self.app_label, new_state)       File "/home/user/.virtualenvs/folder/local/lib/python2.7/site-packages/django/db/migrations/operations/models.py", line 53, in state_forwards         list(self.managers),       File "/home/user/.virtualenvs/folder/local/lib/python2.7/site-packages/django/db/migrations/state.py", line 81, in add_model         self.reload_model(app_label, model_name)       File "/home/user/.virtualenvs/folder/local/lib/python2.7/site-packages/django/db/migrations/state.py", line 122, in reload_model         related_models.update(get_related_models_recursive(rel_model))       File "/home/user/.virtualenvs/folder/local/lib/python2.7/site-packages/django/db/migrations/state.py", line 57, in get_related_models_recursive         rel_app_label, rel_model_name = rel_mod._meta.app_label, rel_mod._meta.model_name     AttributeError: 'NoneType' object has no attribute '_meta'
Here is my pip freeze:
cmsplugin-filer==0.10.1 dj-database-url==0.3.0 Django==1.8.3 django-appconf==1.0.1 django-classy-tags==0.6.2 django-cms==3.1.2 django-filer==0.9.11 django-mptt==0.7.4 django-polymorphic==0.7.1 django-reversion==1.8.5 django-sekizai==0.8.2 Django-Select2==4.3.1 django-treebeard==3.0 djangocms-admin-style==0.2.7 djangocms-column==1.5 djangocms-flash==0.2.0 djangocms-googlemap==0.2 djangocms-inherit==0.1 djangocms-installer==0.7.8 djangocms-link==1.6.2 djangocms-style==1.5 djangocms-text-ckeditor==2.5.2 easy-thumbnails==2.2 html5lib==0.999999 Pillow==2.3.0 pytz==2015.4 six==1.9.0 tzlocal==1.2 Unidecode==0.4.18 wheel==0.24.0

This is apparently related to some issues in reversion / cmsplugin-filer / GenericForeignKeys

This actually is a filer issue see stefanfoulis/django-filer#523

Patch available at stefanfoulis/django-filer#559

Fixed in filer

This issue is not fixed yet. We are seeing AttributeError: 'NoneType' object has no attribute '_meta' when using cms.models.fields.PageField in any custom plugin models in our current set of migrations when we tried to upgrade from Django 1.7.x to 1.8.x. The problem also exists in the cms code base itself not just django-filer.
We have fixed the issue by using the same fix / technique that was used in stefanfoulis/django-filer#559.
Changed cms.models.fields.PageField to include:
def get_model_label(model):
    """
    Take a model class or model label and return its model label.
    >>> get_model_label(MyModel)
    "myapp.MyModel"
    >>> get_model_label("myapp.MyModel")
    "myapp.MyModel"
    """
    if isinstance(model, six.string_types):
        return model
    else:
        return "%s.%s" % (
            model._meta.app_label,
            model.__name__
        )

And then updated PageField's init def to be:
    def __init__(self, **kwargs):
        # We hard-code the `to` argument for ForeignKey.__init__
        # since a PageField can only be a ForeignKey to a Page
        dfl = get_model_label(self.default_model_class)
        if "to" in kwargs.keys():  # pragma: no cover
            old_to = get_model_label(kwargs.pop("to"))
            if old_to != dfl:
                msg = "%s can only be a ForeignKey to %s; %s passed" % (
                    self.__class__.__name__, dfl, old_to
                )
                warnings.warn(msg, SyntaxWarning)
        kwargs['to'] = dfl
        super(PageField, self).__init__(**kwargs)

Would you like us to do a PR for this?  If yes, please let me know where in the utils you would like get_model_label to live.

@boydjohnson this should have been fixed in current support/3.1 branch with 40607f6d09527665c8f5dd8c9be31b0f711608a1

@yakky Do you have a release date in mind?

@boydjohnson mid august, as soon as I'm back from holiday :smile:


can we change quartz behavior on the fly?

I want to change some properties of quartz schedule when the schedule is running.Is it possible?

Hi, if you use the DB store, the schedule (triggers) can be dynamically updated. So does the job data map. However the job class itself would require you to add and restart the process to pickup. Even with job you can create a Script job that execute any Java ScriptEngine and it can be consider as dynamic job.


"Referer header required" error

Hi! Trying to call find, findOne or update on CouchDB collection fails with following error when executed from meteor server-side (ig. meteor methods):
{ [Error: Referer header required.] stack: [Getter] }

At the same time, creating the database and inserting documents to it both work correctly.
What can be the reason? Should something have been configured?

Are you using a local CouchDB or Cloudant. If local couchDB, are u using couchDB 2.0 ?

Local CouchDB 1.6.1.

For the find and findOne, you need CouchDB 2.0 . As an alternate if you dont have CouchDB 2.0, you can try with Cloudant

Thank you very much for your answer!
I wasn't aware of this. So, does it mean that the meteor-couchdb package can not be used with CouchDB 1.6.1? Because how else could I fetch documents from the collection without using find or findOne?

The README documentation mentions about CouchDB 2.0.
So, does it mean that the meteor-couchdb package can not be used with CouchDB 1.6.1?

yes

Thanks @mariobriggs!


Interested in the Generate part

Hi, I'm interested in the generation algorithm in the directory "generation" and the sample program in "examples". But how can I get the config.json files? There are some parameters I couldn't understand. tks for your help

In huggingface, files can be downloaded.


To load additional fonts in windows environment

Rather than using the default font system of the R environment, I want to use additional fonts like Comic Sans MS or Tahoma or Times New Roman. How do I accomplish this?

To add, additional fonts on a windows OS based machine, execute the following steps;
Step 1: In R console type the command fonts()
This will show you the list of fonts available for your R environment. If there are no installed fonts, you will see a blank line.
Step 2: Load the library extrafonts like >library(extrafonts) If this library is not installed, then install it using the command, >install.packages(extrafonts)
Step 3: Import the fonts in memory like >font_import()
Note: Executing this command can take more than 5 minutes. So wait for it to complete.
Step 4: Now register the fonts with the windows device like >loadfonts(device = "win")
Step 5: Check for additional fonts now loaded in the R environment like fonts()
For me, the output had 244 additional fonts.
Step 6: Next time, if you want to use any extra font, simply execute Step 2 or > library(extrafonts).
Remember, NOT to execute Step 3 again because of two reasons, primarily it will take a long time (more than 5 minutes to download and register all 244 fonts and since the additional fonts have already been registered in the R environment, it is illogical to register them again.
Reference
See this StackOverflow 1 and 2


[Language Request] Odin

Was looking at your extension as it seems iCrawl's extension hasn't been receiving updates besides dependabot dependency upgrades, a bit ago on theirs i requested a language, specifically Odin to be added, but it was never looked into, assuming this extension is more updated is it possible this could be added?

Also i noticed when editing a zig file the large image was broken, just a heads up.

OK, see you in Valhalla. 😁
ON-TOPIC: Of course, I'll do support for Odin ASAP.

OK, see you in Valhalla. grin
ON-TOPIC: Of course, I'll do support for Odin ASAP.

If you don't mind, can I add you on Discord?

OK, see you in Valhalla. grin

ON-TOPIC: Of course, I'll do support for Odin ASAP.

If you don't mind, can I add you on Discord?
ON-TOPIC: Thanks!

Sure. Leonard#6666

Implemented. See https://github.com/LeonardSSH/vscord/commit/f08fa9cf1ea437e71e6d33294137a1aa374960d7.


Enable HttpRequest.ReadEntityBodyMode/GetBuffer[ed|less]InputStream()

Summary
This adds the ability to know what state the request stream is in (i.e. buffered, not buffered, read, etc)
In scope

System.Web.ReadEntityBodyMode
System.Web.HttpRequest.ReadEntityBodyMode
System.Web.HttpRequest.GetBufferlessInputStream()
System.Web.HttpRequest.GetBufferedInputStream()

Adding a related discussion here.


[fork] bootstrap resources from config data

This habitat artifact can now create users, groups, policies, and proxy resources
itself, given the right habitat config. (Example included.)
⚠  If configs are not injected, this will do nothing: the previously existing,
hardcoded minimal bootstrap was removed.

closed in favour of doing it all in the other repo ☑


add local db, remove kubelet, update push-pr

This PR refactors CI workflows to remove dependency to models uploaded to kepler-model-db as mentioned in https://github.com/sustainable-computing-io/kepler-model-server/issues/220.
Instead of using URL from kepler-model-db GitHub repository, this change instead uses results from pipeline run by the pushed commit by serving local model-db (http-server).
To reduce pipeline preparation time on testing, this change also update pipeline_test.py to support minimal trainer.

In addition, this PR also removes kubelet feature from the code according to https://github.com/sustainable-computing-io/kepler-model-server/issues/205 and fixes some test assertion and handing path not exists.

Note (tasks to done on different PRs):

[ ] need to update document about availability of default models (kepler-model-db URL)
[x] need to correct Kepler to request weight with intel_rapl not rapl: https://github.com/sustainable-computing-io/kepler/pull/1204
[ ] need to improve Kepler to support other simple models (curvefit) and request trainer corresponding to the call function
[ ] need to separate machine ID for different node type (will push PR soon)

Signed-off-by: Sunyanan Choochotkaew<EMAIL_ADDRESS>

Note: on PR the base-image is skipped since secret is not available on PR and integration and tekton test requires new base image pushed. Can we add secrets to the PR to allow it to push base-image with tag pr-? @rootfs


AltGr not correctly interpreted

Environment
Windows build number: [run "ver" at a command prompt]: Microsoft Windows [Version 10.0.18363.900]
PowerToys version: v0.19.1
PowerToy module for which you are reporting the bug (if applicable): Keyboard Mapper

Steps to reproduce
Map AltGr (recognised as "Alt (Right)") to a key - PgUp in my case.
Expected behavior
Page Down should trigger when key pressed
Actual behavior
Action is as if Ctrl+PgDn is occurring
Screenshots

@saahmedm / @arjunbalgovind

looks like we have 4 items with AltGr directly referenced, #4945, #4882, #3641, #3497

@plzt
on Windows 10 20H2 and PowerToys 0.31.2 I can't reproduce the problem.
Is this still not working for you?


[ICE] calculating size of struct causes subtract overflow

Expected behavior

At least an error? (not sure to be honest, just reporting :P)
Actual Behavior

The application panicked (crashed).
Message:  attempt to subtract with overflow
Location: src/arch/mod.rs:81

Code

struct K *E, ED = E - 5;

Backtrace

The application panicked (crashed).
Message:  attempt to subtract with overflow
Location: src/arch/mod.rs:81

Run with RUST_BACKTRACE=full to include source snippets.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
                          (5 post panic frames hidden)
 5: core::panicking::panic::hf3b2e3f8bf85ebd1
    at src/libcore/panicking.rs:51
 6: rcc::arch::<impl rcc::data::types::struct_ref::StructType>::struct_size::{{closure}}::h05af7a0c9ba87115
    at src/arch/mod.rs:81
 7: core::result::Result<T,E>::and_then::hdddbf2676abc1373
    at /rustc/5e1a799842ba6ed4a57e91f7ab9435947482f7d8/src/libcore/result.rs:714
 8: rcc::arch::<impl rcc::data::types::struct_ref::StructType>::struct_size::h20d6a54dfedfb4b9
    at src/arch/mod.rs:75
 9: rcc::arch::<impl rcc::data::types::Type>::sizeof::hcb9d2f0479d42bdd
    at src/arch/mod.rs:144
10: rcc::parse::expr::<impl rcc::data::Expr>::pointer_arithmetic::h1e0cf17b719beb6d
    at src/parse/expr.rs:1360
11: rcc::parse::expr::<impl rcc::parse::Parser<I>>::additive_expr::{{closure}}::hd3904444afa895ac
    at src/parse/expr.rs:349
12: rcc::parse::expr::<impl rcc::parse::Parser<I>>::left_associative_binary_op::h4e1b594902cca88e
    at src/parse/expr.rs:1089
13: rcc::parse::expr::<impl rcc::parse::Parser<I>>::additive_expr::hf387b2d6ebdb087c
    at src/parse/expr.rs:340
14: core::ops::function::Fn::call::h5039e8b7a8c3403b
    at /rustc/5e1a799842ba6ed4a57e91f7ab9435947482f7d8/src/libcore/ops/function.rs:72
15: rcc::parse::expr::<impl rcc::parse::Parser<I>>::left_associative_binary_op::ha2437f45b220aa11
    at src/parse/expr.rs:1086
16: rcc::parse::expr::<impl rcc::parse::Parser<I>>::integral_left_associative_binary_op::hb47b557cb13546b4
    at src/parse/expr.rs:1037
17: rcc::parse::expr::<impl rcc::parse::Parser<I>>::shift_expr::ha936662fe294f173
    at src/parse/expr.rs:315
18: core::ops::function::Fn::call::hb50baf59066bcd64
    at /rustc/5e1a799842ba6ed4a57e91f7ab9435947482f7d8/src/libcore/ops/function.rs:72
19: rcc::parse::expr::<impl rcc::parse::Parser<I>>::left_associative_binary_op::he71a991730e27bbd
    at src/parse/expr.rs:1086
20: rcc::parse::expr::<impl rcc::parse::Parser<I>>::relational_expr::h6787d9ae44120836
    at src/parse/expr.rs:297
21: core::ops::function::Fn::call::h6441b8869001fadd
    at /rustc/5e1a799842ba6ed4a57e91f7ab9435947482f7d8/src/libcore/ops/function.rs:72
22: rcc::parse::expr::<impl rcc::parse::Parser<I>>::left_associative_binary_op::hb195433e1f579d73
    at src/parse/expr.rs:1086
23: rcc::parse::expr::<impl rcc::parse::Parser<I>>::equality_expr::hffc76a7fb3158351
    at src/parse/expr.rs:279
24: core::ops::function::Fn::call::h0749a2a17f8a4a95
    at /rustc/5e1a799842ba6ed4a57e91f7ab9435947482f7d8/src/libcore/ops/function.rs:72
25: rcc::parse::expr::<impl rcc::parse::Parser<I>>::left_associative_binary_op::h78b1f2f488b027c7
    at src/parse/expr.rs:1086
26: rcc::parse::expr::<impl rcc::parse::Parser<I>>::integral_left_associative_binary_op::h45d119036a7c6e57
    at src/parse/expr.rs:1037
27: rcc::parse::expr::<impl rcc::parse::Parser<I>>::and_expr::h8fd1c7bc67bdb04a
    at src/parse/expr.rs:266
28: core::ops::function::Fn::call::hb2c6fd6969242b6b
    at /rustc/5e1a799842ba6ed4a57e91f7ab9435947482f7d8/src/libcore/ops/function.rs:72
29: rcc::parse::expr::<impl rcc::parse::Parser<I>>::left_associative_binary_op::he6ac34b5425bea44
    at src/parse/expr.rs:1086
30: rcc::parse::expr::<impl rcc::parse::Parser<I>>::integral_left_associative_binary_op::hd180c6bd3d7e66a2
    at src/parse/expr.rs:1037
31: rcc::parse::expr::<impl rcc::parse::Parser<I>>::exclusive_or_expr::h4f8330242bfcd992
    at src/parse/expr.rs:254
32: core::ops::function::Fn::call::hac9ad511865fdd57
    at /rustc/5e1a799842ba6ed4a57e91f7ab9435947482f7d8/src/libcore/ops/function.rs:72
33: rcc::parse::expr::<impl rcc::parse::Parser<I>>::left_associative_binary_op::haa680f0da358defb
    at src/parse/expr.rs:1086
34: rcc::parse::expr::<impl rcc::parse::Parser<I>>::integral_left_associative_binary_op::h8d427144d6157c41
    at src/parse/expr.rs:1037
35: rcc::parse::expr::<impl rcc::parse::Parser<I>>::inclusive_or_expr::hafbe7f863049ccd2
    at src/parse/expr.rs:242
36: core::ops::function::Fn::call::hac89d7b203c5c605
    at /rustc/5e1a799842ba6ed4a57e91f7ab9435947482f7d8/src/libcore/ops/function.rs:72
37: rcc::parse::expr::<impl rcc::parse::Parser<I>>::left_associative_binary_op::h735fe7000bd9a07e
    at src/parse/expr.rs:1086
38: rcc::parse::expr::<impl rcc::parse::Parser<I>>::scalar_left_associative_binary_op::h29accd524256c645
    at src/parse/expr.rs:991
39: rcc::parse::expr::<impl rcc::parse::Parser<I>>::logical_and_expr::hc7d92fdca7cdc1a8
    at src/parse/expr.rs:222
40: core::ops::function::Fn::call::h63638d4a179fad2b
    at /rustc/5e1a799842ba6ed4a57e91f7ab9435947482f7d8/src/libcore/ops/function.rs:72
41: rcc::parse::expr::<impl rcc::parse::Parser<I>>::left_associative_binary_op::ha280f713ce335e89
    at src/parse/expr.rs:1086
42: rcc::parse::expr::<impl rcc::parse::Parser<I>>::scalar_left_associative_binary_op::h6cefda0d7488a441
    at src/parse/expr.rs:991
43: rcc::parse::expr::<impl rcc::parse::Parser<I>>::logical_or_expr::hbe5a6b85a63fc202
    at src/parse/expr.rs:196
44: rcc::parse::expr::<impl rcc::parse::Parser<I>>::conditional_expr::hd7caf09e525ccde7
    at src/parse/expr.rs:148
45: rcc::parse::expr::<impl rcc::parse::Parser<I>>::assignment_expr::h2d0da538cd925acb
    at src/parse/expr.rs:100
46: rcc::parse::decl::<impl rcc::parse::Parser<I>>::initializer::h97321b7e43566a54
    at src/parse/decl.rs:1284
47: rcc::parse::decl::<impl rcc::parse::Parser<I>>::init_declarator::h2bc43d4ed628745d
    at src/parse/decl.rs:308
48: rcc::parse::decl::<impl rcc::parse::Parser<I>>::declaration::h86b44297cc69fef0
    at src/parse/decl.rs:159
49: <rcc::parse::Parser<I> as core::iter::traits::iterator::Iterator>::next::{{closure}}::hdd18439defadfd6e
    at src/parse/mod.rs:147
50: core::option::Option<T>::or_else::hcb5c319b81d0484f
    at /rustc/5e1a799842ba6ed4a57e91f7ab9435947482f7d8/src/libcore/option.rs:754
51: <rcc::parse::Parser<I> as core::iter::traits::iterator::Iterator>::next::h6d4a9e42759949ed
    at src/parse/mod.rs:125
52: <&mut I as core::iter::traits::iterator::Iterator>::next::h15766c776a15448d
    at /rustc/5e1a799842ba6ed4a57e91f7ab9435947482f7d8/src/libcore/iter/traits/iterator.rs:2991
53: rcc::compile::h34e0130023da28b4
    at src/lib.rs:184
54: rcc::real_main::h09a7310ce4f4bc85
    at src/main.rs:110
55: rcc::main::hee21c23574a97928
    at src/main.rs:176
                        (12 runtime init frames hidden)

Original fuzzer file:
SIGABRT.PC.7ffff7dee7bb.STACK.18cc8e2cc7.CODE.-6.ADDR.(nil).INSTR.mov____0x108(%rsp),%rcx.tar.gz

Looks like somehow the alignment is returning 0? That shouldn't happen. I think align needs to return an error if the struct has no members.

@jyn514 I hate to say it, but I think the proper way to solve this is with complete/incomplete types as in #261. This is the error provided by clang:
test.c:1:22: error: arithmetic on a pointer to an incomplete type 'struct K'
struct K *E, *ED = E - 5;
                   ~ ^
test.c:1:8: note: forward declaration of 'struct K'
struct K *E, *ED = E - 5;
       ^
1 error generated.

@hdamron17 you can detect an incomplete forward declaration by an empty members list.

However, I did try returning an error from align when the members array is empty and it solves this issue but fails test case https://github.com/jyn514/rcc/blob/a388f00/tests/runner-tests/decls/forward_declaration/0.c when a struct is declared extern. I'm not sure how the size of such a struct should be calculated, though, so I'm looking through the C11 standard now.

Ahh, this is another case of calling sizeof on an incomplete struct. If I change the test decls/forward_declaration/0.c to call sizeof(my_s) in the main function, then it fails with the following:
tests/runner-tests/decls/forward_declaration/0.c:2:40: error: invalid application of 'sizeof' to an incomplete type 'struct s'
extern struct s my_s; int main(){sizeof(my_s);}
                                       ^~~~~~
tests/runner-tests/decls/forward_declaration/0.c:2:15: note: forward declaration of 'struct s'
extern struct s my_s; int main(){sizeof(my_s);}
              ^
1 error generated.

Can you find what's trying to call sizeof on my_s? I don't think that should be happening for extern declarations, since there's no definition of the struct.

Hmm, looks like I hacked around this in the wrong place: https://github.com/jyn514/rcc/blob/a388f00/src/ir/static_init.rs#L41. Probably this should be caught in the parser instead and not passed to the backend.
store_static emits static objects into the object file (.o). For example, if you have a program with int a = {1, 2, 3};, it would be in charge of writing the bytes [0x1, 0x2, 0x3] into the binary in little-endian order.


Can't inject into Google Chrome

Description
I am trying to Inject into Google Chrome to capture a Google maps 3d model. When doing so I run Google Chrome with the target: C:\Windows\System32\cmd.exe /c "SET RENDERDOC_HOOK_EGL=0 && START "" ^"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe^" --disable-gpu-sandbox --gpu-startup-dialog" It starts and I get the dialog box telling me the pid code. Before the ui starts I manage to successfully inject into Chrome however when the UI for Chrome appears the injection disconnects. The same thing happens when I try to open Chrome in the Launch Application tab. I have tried disabling the inbuilt Chrome Protection but that didn't work.   What should happen is that it will stay injected when the UI launches
Steps to reproduce
1.Create a Google Chrome shortcut
2.Open the shortcut's properties and insert: C:\Windows\System32\cmd.exe /c "SET RENDERDOC_HOOK_EGL=0 && START "" ^"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe^" --disable-gpu-sandbox --gpu-startup-dialog" into the target field
3.Open RenderDoc and open a Inject into Process tab
4.Open the Chrome shortcut
5.Enter the PID code into the search bar
6.Select the Chrome process and click inject
7.Wait until the Chrome UI shows up and it should disconnect
Environment

RenderDoc version: 1.9
Operating System: Windows 10 OS Build 19041.450
Graphics API: I have no clue what Graphics API I am running but I have a RTX 2080 and running the Nvidia GeForce Game Ready Driver Version: 452.06

GPU: RTX 2080 8gb
Driver: Nvidia GeForce Game Ready Driver Version: 452.06
CPU: i7 8700
RAM: 16gb

RenderDoc is only intended for capturing and debugging your own programs. Due to the very high rate of illegal abuse with Google Chrome it is treated as an attempt to capture a copyrighted program and is explicitly not endorsed or supported.

RenderDoc is only intended for capturing and debugging your own programs. Due to the very high rate of illegal abuse with Google Chrome it is treated as an attempt to capture a copyrighted program and is explicitly not endorsed or supported.

What is this even referring to? Why should someone who abused an open source tool prevent everyone else from using it legitimately? What alternative do you recommend for capturing WebGL calls?


Implement MDC Icon Toggle Button Component

Reference: https://github.com/material-components/material-components-web/tree/master/packages/mdc-icon-toggle

PR incoming today.


Does not work on singleton tags

The directive fails with <img> elements and other singletons. The v-resize callback is not triggered. Probably because the resize-sensor is placed inside the target element and singletons cannot have elements inside them.

Additionally, if support for img tags were implemented, it would be neat if it also took into account the internal size of an image with object-fit: cover set.

@northamerican It is inherent to the way resize-sensor works as you pointed it out. So this will be a permante restriction this direcyive does not apply in such cases


Dont depend on jcommander

Only Main should know about GeneratorArgs. The rest of the code shouldn't know about jcommander.

Removing the milestone as I don't believe this is release blocking right?

This PR is stale because it has been open 90 days with no activity. Please comment or this will be closed in 7 days.

This PR was closed because it has been stalled for 7 days with no activity.

Warnings

:warning:
This PR is approved with no milestone set. If merged, it won't appear in the detekt release notes.

  Generated by :no_entry_sign: dangerJS against 4cdb30eed3d024ec54ef7ea37cffc0b390b161e7


Add basic clipboard support.

These changes allows you to call on the window to either get the text from the clipboard or put text into it. (get_clipboard_text and set_clipboard_text)
This does not handle any other information such as images or files, only text.
Tested on:
Linux (Ubuntu 22.04) - VM
Mac OS (Monterey) - VM
Windows 10
Basic example provided.
Disclaimer:
I did notice some copy and paste issues with Wayland (other programs would fail to get the clipboard data and paste either nothing, or it would paste sometimes). Researching a bit, this seems to be a common issue with Wayland and is mostly a OS/framework issue that is being worked on.
I also used a VM, so that may have attributed to it. However, a restart did fix the issues I was having. X11 mode tested and worked perfectly there every time.
Feel free to give some feedback or let me know if this worked or didn't work for you.

Tested it on X11, it works well during runtime, but unfortunately for me (which might be really setup-specific) the shutdown isn't too clean:
https://github.com/pyglet/pyglet/assets/46634729/472fca2a-c5dc-41f6-9aae-3c9e0e932b35
If you check out the very end of this video, you can see the entire taskbar freezing up. I honestly have no idea what part of KDE this is specifically, but i can notice similar behavior when copying very large images and am 99.9% sure it's related to the clipboard getting locked up, before something deep in there notices and hands over/takes back control.
This does not happen when running any other pyglet example. This also does not happen when not writing to the clipboard, running the clipboard example to trigger a read and then closing it by clicking the X.
This additionally does not happen when changing the example to exclusively read from the clipboard. (It never clears the cached _clipboard_str and never makes additional requests, as no SelectionClear event is ever received, but commenting that out and running a request each time yields the expected result and also does not hang on shutdown.)
Thus, the problem very likely has to do with the writing portion.
As you can see by the fragments in my clipboard i spent an hour trying to make sense of this, but with basically no understanding of X (i do not understand window properties at all) came up fruitless for now.
The only thing i noticed so far: CurrentTime is passed in as the time argument to XSetSelectionOwner: https://x.org/releases/X11R7.6/doc/xorg-docs/specs/ICCCM/icccm.html#acquiring_selection_ownership

Clients attempting to acquire a selection must set the time value of the SetSelectionOwner request to the timestamp of the event triggering the acquisition attempt, not to CurrentTime . A zero-length append to a property is a way to obtain a timestamp for this purpose; the timestamp is in the corresponding PropertyNotify event.

I suspect this may be whatever clipboard manager you are using. I would try just copy and pasting between normal applications.

Also can you try to uncomment this line: #xlib.XSync(self._x_display, False) And see if it makes any difference?
Unfortunately it does not. The clipboard manager also offers no functionality to disable any kind of ownership process.
I'll try to do some kind of side-by-side comparison to another implementation in a few days again, i feel optimistic there might only be a tiny thing missing

Unfortunate the sync did not work. What version of KDE is this? Is it running wayland? I did hear some Wayland issues with copy and paste during my implementation.
I did some reading and it says you can disable Klipper in the system tray. If worse comes to worse, maybe try killing any process with clipboard in it? 😅 Just to see if anything improves.
Not really sure where the issue could be. Looking around at other similar implementation, the code is running very similar to GLFW and SDL 2.0.

Should be more or less recent, 5.27.8. This is not wayland, but X11
I compared the code to this example of setting a selection, and while there's some abstractions i think i kinda get it now.
I could also spot some differences: The XSend block was not indented, and the if for comparing is querying the selection owner again instead of comparing the selection atom and window to itself.
Additionally, if this article here is correct, TARGETS must be included in the return to the TARGETS request.
I think in an hour it's either gonna work or i'll have given up

Sounds good, I did include TARGETS previously, and didn't notice a difference in functionality on my end so I removed it. It can easily be added back. If you can't get it figured out, let me know what distribution and such you are using, if you can send me a download link I can try to investigate further.

The only thing i noticed so far: CurrentTime is passed in as the time argument

Huh. This was the last thing i was going to try and it actually turned out to be the solution

The only thing i noticed so far: CurrentTime is passed in as the time argument

Huh. This was the last thing i was going to try and it actually turned out to be the solution. I did notice some other stuff along the way with the returned TARGETS array being reported 32 times as much as it actually was, but that just kinda worked, and so did not returning TARGETS in there at all apparently.

Very strange because in all code I've seen, XSetSelectionOwner is set to CurrentTime (for both SDL and GLFW, and your example link earlier). The requestor time is however used in the SelectionRequest event.
Are you sure it doesn't hang on a call from get_clipboard_text as it's called after a key press? That function does submit an event and waits for one to return, which usually should be quick, but maybe not? Perhaps remove that line from the example on the key press.
I had some time and installed Fedora KDE Plasma on a VM just to mess with Klipper a bit, and try the branch, and I haven't run into any issues with it just yet.

That is the weird thing: The python process always completely exits while the taskbar and related elements are frozen. I checked htop and even in the initial video you can see the terminal has returned. Unless something is forking, there is definitely nothing hanging behind.
The CurrentTime avoidance is recommended right here: https://x.org/releases/X11R7.6/doc/xorg-docs/specs/ICCCM/icccm.html#acquiring_selection_ownership and so far it was the only change that really helped eradicate the lag.
But alas, the problem still shows up around 1/15 exits, but that beats 1/1 at least.
Ultimately it's not that big of a deal, and even better if you can't replicate it.
What's really weird and unfortunate is that set_clipboard_text will not succeed if it's run as part of the Esc stroke that closes the window; on Windows the data would probably make it to the clipboard no problem in that call. Instead on X11 you just have to declare yourself the owner and wait for something else to approach you? (And in the closing situation it's just not enough time.) What's strange as well is that i can only ever provoke SelectionClear by trying to trigger two set_clipboard_text calls in very very short succession, or by launching the example twice. It's like no other program ever tries taking the selection for itself, even though i thought that was the point. Possibly there's different mechanisms in place that sidestep X11. Well, i am definitely too tired to continue this now.
I applied some fixes (hopefully that PR on a PR branch thing is going to work out) for what that's worth. For now i'm pretty much all out of ideas, sadly

Could you confirm that echo $XDG_SESSION_TYPE in terminal is indeed x11? I do have some repeatable issues but only with Wayland.  I will look at the PR in the morning for some more clues.

Could you confirm that echo $XDG_SESSION_TYPE in terminal is indeed x11? I do have some repeatable issues but only with Wayland. I will look at the PR in the morning for some more clues.

It is x11, yes. I also tried running this on another somewhat unmaintained computer running gnome 42.9 (x11 as well), where there was no hang with and without a clipboard manager installed. Unfortunately in there, very rarely the selection would be set to nothing/unretrievable by all other programs after quitting. That may be related to the shutdown-by-esc; it makes complete sense for it to disappear if pyglet takes ownership of the selection and then quits before anything can ask it for it.
I will try adding another XCheckTypedWindowEvent miniloop in set_clipboard_text, but this can be detrimental, as nothing is guaranteed to immediately ask for the selection once pyglet owns it. It probably just happens on desktop systems as those have a clipboard manager installed.

Could you confirm that echo $XDG_SESSION_TYPE in terminal is indeed x11? I do have some repeatable issues but only with Wayland. I will look at the PR in the morning for some more clues.

It is x11, yes. I also tried running this on another somewhat unmaintained computer running gnome 42.9 (x11 as well), where there was no hang with and without a clipboard manager installed. Unfortunately in there, very rarely the selection would be set to nothing/unretrievable by all other programs after quitting. That may be related to the shutdown-by-esc; it makes complete sense for it to disappear if pyglet takes ownership of the selection and then quits before anything can ask it for it. I will try adding another XCheckTypedWindowEvent miniloop in set_clipboard_text, but this can be detrimental, as nothing is guaranteed to immediately ask for the selection once pyglet owns it. It probably just happens on desktop systems as those have a clipboard manager installed.

That makes sense, I believe I have read that you need to publish the clipboard on app exit for some. (as specified here: https://www.freedesktop.org/wiki/ClipboardManager/) I haven't added that yet.
I did some more testing with Wayland (which I am guessing also uses XWayland) and found some very weird results.
If I set the clipboard text, then pasting into a full screen/maximized app either doesn't work or if I hold down ctrl+v, the system gets extremely slow like it's processing the requests, the events come super delayed in the console, and eventually might let one or two pastes through. You can see the cursor of the application become solid like it can't keep up.
If I take the app I'm pasting into and put it into windowed then it pastes instantly. Back to full screen, sometimes it may work, sometimes it just goes back to being broke.
If I go back to windowed, fine.
If I take that same window, and visually cover the Pyglet window entirely, it breaks again.
https://github.com/pyglet/pyglet/assets/17804711/bf39217c-4635-44f9-bf93-742750d8324a
This doesn't occur in X11, only Wayland or XWayland (atleast on my end). Wondering if there is some connection with your issue as well? Such a headscratcher...

To cross that off: My idea with "I will try adding another XCheckTypedWindowEvent miniloop in set_clipboard_text" did not end up solving anything, that's a dead end.
I can unfortunately not report any change simply by pyglet.app.run(None), other than the example now starting up slower.
I can't seem to replicate anything relating to window minimization or obscuring as well, that seems to be a wayland quirk. Absolutely no idea how this might tie into the redraw schedule, really. I am not too familiar with this section of pyglet.
This is the first time i'm seeing the CLIPBOARD_MANAGER specification, it might be a really good candidate for implementing (possibly with a bool on the window class to toggle it and otherwise fallback?).
It does apparently not exist on gnome 42.9, but does on KDE via QT; that might play into me getting the hang on close.
The biggest question is where code for this would be placed: "If a client needs to exit while owning the CLIPBOARD selection, it should request the clipboard manager to take over the ownership of the clipboard"
Would this have to be stuffed into the window's close function while checking the length of app.windows? Doing it like that does sounds like a great source of problems, but there's no real other way as far as i'm aware.

These are the problems i am experiencing right now:

KDE Plasma
Gnome

Hang when closing via Esc
Yes

Clipboard lost when closed via Esc
Yes, but recovers afterhang (To precursor ofthe final "Hello World!")
Only whenset_clipboard_textwas not called before

get_clipboard_text incorrect when repeatedlygetting the selection after it was changed byother applications and set_clipboard_text wasnot called before
Yes
Yes

Otherwise - from what i can tell - it  works absolutely as you'd expect it to.
These issues are somewhat specific to the example as it unintentionally uncovers a timing issue: Exiting very quickly after interacting with the selection causes issues, which is what happens by hitting Esc. Closing the window via mouse does neither cause a hang nor does it erase clipboard data.
The fundamental problem remains in that there is no guaranteed clipboard in X you can write data to and after that just be done with it.
Possible solutions would be:
Do nothing, tell users to make sure their programs don't write to the clipboard on their way out.

(+) Easiest option from here.
(+) Doesn't seem like the worst idea, especially when considering that even QT has quite a bullet list of X11 weirdness.
(-) Introduces an undefinable period of time where clipboard usage is a bad idea.

Always enter an eventloop in set_clipboard_text that only exits after an appropiate SelectionRequest event for the is received and processed successfully.

(+) Guaranteed point where the selection is stored: Once a request is successfully fulfilled.
(-) Very exotic implementation needed: it's possible a flurry of SelectionRequests for exclusively unsupported targets comes in, whose end can not be determined unless we'd start using time heuristics. ALTERNATIVELY: Assume that a clipboard manager will always ask for UTF8_STRING, which we will be able to deliver.
(-) Runs on the assumption that the immediately incoming request is in fact a clipboard manager.
(-) Will block pyglet in case nothing reacts to it taking over the selection.

Use the freedesktop standard involving the CLIPBOARD_MANAGER selection.

(+) Guaranteed point where the selection is stored (provided that the clipboard manager works correctly): Once the  SelectionNotification for the conversion of SAVE_TARGETS is sent.
(-) If CLIPBOARD_MANAGER is not present (Gnome), this would need to fall back to the first option anyways.

A warning note in the docs about not writing to the clipboard on exit (if you plan targeting Linux/X11) and amending the clipboard example honestly sounds like the least headache-inducing option right about now.

Thanks for the update, unfortunate that did not work. I appreciate the list. I will take a look at it further and will try to work on some workarounds for those specific issues when I have some time.
Can you specify the distribution and build version you are using so I know what to test with? I tried the latest Fedora KDE Plasma, and didn't have any of the stated issues. However, there are multiple versions of KDE Plasma. Thanks

Sure. It's Manjaro Linux with KDE Plasma 5.27.8, KDE Frameworks 5.110.0 and Qt 5.15.11, according to the "Info Center".
Using Esc to close the window is really the primary reason things are going wrong, otherwise the clipboard works just fine.

tl;dr:

I haven't had much luck replicating copy and paste issues mentioned in this thread
I'm in favor of the free desktop standard + leaving some notes in the doc to cover the rest for anyone brave enough to try
Should I try X11 if I'll have to use a VM with LLVMpipe instead of real hardware?

Testing
The only weirdness I've been able to find so far may have been input focus rather than actual copy and paste problems. This may have been due to Gnome extensions I'll describe further down.
I don't have a second GPU to test X11 in passthrough mode, but I could try to set up a VM with LLVMpipe if we need additional testing. The other option could be Xepyhr, but that might introduce complications without really solving anything.
System details
I'm on Gnome 3.38.6 on Wayland on dual monitors. As far as I understand, this means pyglet has to be running on XWayland since the native Wayland support isn't finished.
$ echo $XDG_SESSION_TYPE
wayland

The system is a stock Debian 11 configuration aside from a few desktop extensions (Pop's tiling via Pop Shell). The extensions are probably the source of the input focus issues I mentioned above.
To my knowledge, I'm not running any sort of clipboard manager.

intel mac tested succeed


fix: address CVE-2023-39325

What type of PR is this?

Uncomment only one  /kind line, and delete the rest.
For example, > /kind bug would simply become: /kind bug

/kind bug
/kind cleanup
/kind failing-test
/kind enhancement
/kind documentation
/kind code-refactoring

What does this PR do / why we need it:
This PR contains the changes needed to address CVE-2023-39325. This includes:

upgrading golang tov1.20
upgrading k8s.io packages to v0.28.3
upgrading controller-runtime to v0.16.3
disabling http/2 and defaulting to http/1.1 for the metrics and webhook servers

Have you updated the necessary documentation?

[ ] Documentation update is required by this PR.
[ ] Documentation has been updated.

Which issue(s) this PR fixes:
Fixes #?
Test acceptance criteria:

[ ] Unit Test
[ ] E2E Test

How to test changes / Special notes to the reviewer:

/test all

Re triggering CI for test failure "no endpoints available for service "openshift-gitops-operator-controller-manager-service"
/retest

/test v4.13-kuttl-sequential
Test failure

/retest

/retest-required

/lgtm
/approve


Re-render

Updating the feedstock.

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


Add automated tests for requests per second graph in HTML report

This is a follow-up of #381 and is part of #246.

In order to reliably test this hunk I would need to control the return value of Utc::now(). There is a pull request that allows that, but it is still in progress.
Until that is in we could add something on GooseAttack that would wrap Utc::now() and let us override it in tests. Not ideal since we would be polluting code with test-only logic. @jeremyandrews @LionsAd Any ideas/thoughts?

@slashrsm There's plenty of places in the code not currently tested. Perhaps we add a comment w/ a @TODO linking to the PR in question as a reminder to add a test when it's available?


Engine API docs - shortcuts to links return you to top of the page

Problem description
When browsing the API docs (https://docs.docker.com/engine/api/v1.26/#), there are links that appear which I'd assume should take you to the relative link.  I know that when you scroll it will update the browser URL bar with the relative link but the little link icons are deceiving and take you all the way to the top which is quite undesirable

Still showing where the link is pointing to:

Problem location

I saw a problem on the following URL: https://docs.docker.com/engine/api/v1.26/#

Project version(s) affected
At least the v1.26 API docs; hadn't checked the othrs
Suggestions for a fix

Can't repro this; I think this might be fixed in the newest ReDoc version, which we're now using

Still happening for me.

Go to https://docs.docker.com/engine/api/v1.26/#tag/Swarm
Scroll down to Inspect Swarm.
Click the link that is presented
Get scrolled to the top


Implement TryFromstd::fs::File for Device and RawDevice

Fixes #131.

@jeff-hiner Restored minimal public interface.


Support selecting channel in Flutter embeds

I recently ran into samples which don't run on the Flutter master channel API docs pages (https://master-api.flutter.dev). For example, https://dartpad.dev/embed-flutter.html?split=60&run=true&null_safety=true&sample_id=material.Switch.3&sample_channel=master. sample_channel=master here seems to affect the docs, but not the Flutter SDK version.
https://dartpad.dev/?channel=master is already supported, so this request is for embeds.

DartPad supports the channel parameter in embeds, I think the issue is that there's both the sample_channel and channel parameters. See this comment - I'm going to close this, but feel free to comment if you're still seeing unexpected behavior


Compliance session export file -> add more info

The compliance session contains some useful info that can be added to the export file.
Some ideas re info below.
Compliance session summary
Info
Session name: {Session #1 name}
Session description: {This is a comprehensive description of my session}
SUT: {Service Provider}
SUT URL: {http://gsma-sp.staging.s8.justcoded.com}
Events
Creation: {2020-11-27 12:05:06}
Completion: {2020-11-28 12:05:06}
Approval/Decline: {2020-11-29 12:05:06}
Questionnaire
{Section 1 e.g. Merchant payment section}
Q1: {Does your engine support Merchant-Initiated Merchant Payment?}
A1: {Yes, it does}
Q2: {What Test Case behaviors are you interested in?}
A2: {Positive}
{Section 2, e.g. P2P transfer section}
Q1: {Does your engine support P2P Transfer?}
A1: {No, it doesn't}
Test Runs (like they are now)

Hi Christopher @cjol,
I added some ideas re how to add a bit more info to the Compliance Session export file template (based on our demo meeting chat). Could you please take a look at let me know if this works?

Thanks Anton, this is good. The most important one is the questionnaire answers. Other fields that might be interesting:

Group name
Environment values and variables


Upgrade to Go 1.19

Why are these changes needed?

crd:trivialVersions is deprecated in controller-tool v0.7.0. See https://github.com/kubernetes-sigs/controller-tools/pull/607/ for more details.

go.mod / go.sum: Update golang:1.17 to golang:1.19 in go.mod, and then run the go mod tidy command to add missing modules and remove unused ones.

Related issue number

Checks

[ ] I've made sure the tests are passing.
Testing Strategy

[ ] Unit tests
[ ] Manual tests
[ ] This PR is not tested :(

cc @anishasthana @blublinsky would you mind taking a look? Thx!