HTTPCORE-756 - Deprecation of userInfo in Compliance with RFC 9110

Description:
This pull request addresses the recommendations set out in RFC 9110 regarding the deprecation of the userInfo subcomponent in "http" or "https" URIs.
Changes:

Removed all references to userInfo within the URIAuthority class.
Deprecated methods in both URIAuthority and URIBuilder that utilized userInfo.
Added exception handling for potential security risks associated with userinfo in received URIs.

@arturobernalg I am fine with all the proposed changes but I personally think that URIBuilder should still support user info as it is not meant to be strictly http/https specific.

@arturobernalg I am fine with all the proposed changes but I personally think that URIBuilder should still support user info as it is not meant to be strictly http/https specific.

@ok2c
Do we want to support non-http/https specific use-cases that might require userInfo? If so, I can filter by scheme. However, I'd like to reiterate: is this truly in line with our library's primary objectives?

@arturobernalg I am fine with all the proposed changes but I personally think that URIBuilder should still support user info as it is not meant to be strictly http/https specific.

@ok2c Do we want to support non-http/https specific use-cases that might require userInfo? If so, I can filter by scheme. However, I'd like to reiterate: is this truly in line with our library's primary objectives?

I agree with @arturobernalg. Though, this is a generic builder, every scheme has its specifics. We don't test for any other schemes, but http/https.

@arturobernalg @michael-o As I suspected the complete removal of userinfo support turned out to be not such a good idea. Now HttpClient is unable to reject requests with URIs containing a userinfo component. The userinfo component gets silently dropped from the URI, the request gets executed but whether the result what it should be, I am not sure.
What the correct process of handling requests with userinfo component.?

Rejected at the construction time?
Rejected at the execution time? (this is how it used to work before this change)
Silently ignored (this is how it works now)

Good question. @reschke to the rescue

Let me re-read 4.2.4

@arturobernalg @michael-o I propose this change-set be reverted so I could proceed with the 5.3-alpha1 release. We can revisit the issue in the course of 5.3-alpha2.

https://www.rfc-editor.org/rfc/rfc9110.html#section-4.2.4 is not about HTTP(s) URIs in general, but what should happen WRT userinfo in an HTTP message (be it in the target URI) or a field value.
As such, implementing the constraints in the URI class may be the wrong approach.
(FWIW, I believe there's no change here as related to RFC 7230).

https://www.rfc-editor.org/rfc/rfc9110.html#section-4.2.4 is not about HTTP(s) URIs in general, but what should happen WRT userinfo in an HTTP message (be it in the target URI) or a field value.
As such, implementing the constraints in the URI class may be the wrong approach.
(FWIW, I believe there's no change here as related to RFC 7230).

I agree and this is option two actually

@arturobernalg I am going to revert this change-set for now and proceed with 5.3-alpha1 release. We can revisit this issue after the release.

@arturobernalg I am going to revert this change-set for now and proceed with 5.3-alpha1 release. We can revisit this issue after the release.

@ok2c fine by me.


Add "--dry-run" to pub upgrade

It would be nice to be able to tell if there are new versions of dependencies that you could upgrade too without actually having to commit to upgrading. We can do this by having pub upgrade run the solve and display the results, but not write out the lockfile.

This issue has been moved to dart-lang/pub#735.


nixos-rebuild / can't activate new config, bootctl fails due to buggy EFI.

Describe the bug
due to an interaction between some buggy EFI implementations on ARM and Linux > 6.0, I can't activate my current config.
dmesg -k:
[   21.116175] Hardware name: GIGABYTE MP32-AR1-SW-HZ-001/MP32-AR1-00, BIOS F31n (SCP: 2.10.20220810) 09/30/2022
[   21.116178] Workqueue: efi_rts_wq efi_call_rts
[   21.116186] pstate: 004000c9 (nzcv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[   21.116191] pc : efi_call_virt_check_flags+0x48/0xb0
[   21.116197] lr : efi_call_rts+0x4ec/0x7d8
[   21.116203] sp : ffff80000affbd40
[   21.116205] x29: ffff80000affbd40 x28:<PHONE_NUMBER>000000 x27:<PHONE_NUMBER>000000
[   21.116212] x26:<PHONE_NUMBER>000000 x25: ffff07ff8502d305 x24:<PHONE_NUMBER>000000
[   21.116218] x23:<PHONE_NUMBER>000000 x22: ffffa0f01f9a8568 x21:<PHONE_NUMBER>0000c0
[   21.116224] x20: ffffa0f01f9a8568 x19:<PHONE_NUMBER>000000 x18:<PHONE_NUMBER>000000
[   21.116230] x17:<PHONE_NUMBER>000000 x16: ffff80000a39c000 x15:<PHONE_NUMBER>000000
[   21.116235] x14:<PHONE_NUMBER>000000 x13:<PHONE_NUMBER>000010 x12:<PHONE_NUMBER>010101
[   21.116241] x11: 7f7f7f7f7f7f7f7f x10: fefefefefeff7076 x9 : ffffa0f01ec0626c
[   21.116246] x8 : 00000000f7c605b8 x7 : ffff80000a39be20 x6 : ffff80000a39bec0
[   21.116252] x5 : ffff80000a39be18 x4 : 00000000f7e71378 x3 : 00000000f7eb45d8
[   21.116257] x2 :<PHONE_NUMBER>000000 x1 : ffffa0f01f9a8568 x0 :<PHONE_NUMBER>0000c0
[   21.116264] Call trace:
[   21.116266]  efi_call_virt_check_flags+0x48/0xb0
[   21.116272]  efi_call_rts+0x4ec/0x7d8
[   21.116278]  process_one_work+0x1f0/0x468
[   21.116283]  worker_thread+0x160/0x4a0
[   21.116287]  kthread+0xe4/0xf0
[   21.116293]  ret_from_fork+0x10/0x20
[   21.116298] ---[ end trace<PHONE_NUMBER>000000 ]---
[   21.116301] Disabling lock debugging due to kernel taint
[   21.116303] efi: [Firmware Bug]: IRQ flags corrupted (0x00000000=>0x000000c0) by EFI set_time
[   21.124899] ------------[ cut here ]------------
[   21.124906] WARNING: CPU: 79 PID: 419 at drivers/firmware/efi/runtime-wrappers.c:270 virt_efi_set_time+0x120/0x178
[   21.124931] Modules linked in: cfg80211 rfkill 8021q garp mrp nls_iso8859_1 acpi_ipmi crct10dif_ce polyval_ce nls_cp437 ipmi_ssif arm_spe_pmu polyval_generic ast drm_vram_helper drm_ttm_helper ttm drm_kms_helper ipmi_devintf ipmi_msghandler arm_cmn xgene_hwmon arm_dmc620_pmu cppc_cpufreq arm_dsu_pmu acpi_tad ip6_tables xt_conntrack nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 ip6t_rpfilter ipt_rpfilter xt_pkttype xt_LOG nf_log_syslog xt_tcpudp nft_compat sch_fq_codel nf_tables nfnetlink tap macvlan bridge stp llc fuse drm dmi_sysfs ip_tables x_tables xfs libcrc32c raid0 md_mod nvme nvme_core xhci_pci xhci_pci_renesas dm_mod dax
[   21.125091] CPU: 79 PID: 419 Comm: kworker/u160:1 Tainted: G        W I        6.1.19 #1-NixOS
[   21.125098] Hardware name: GIGABYTE MP32-AR1-SW-HZ-001/MP32-AR1-00, BIOS F31n (SCP: 2.10.20220810) 09/30/2022
[   21.125101] Workqueue: events_freezable_power_ sync_hw_clock
[   21.125110] pstate: 60400009 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[   21.125115] pc : virt_efi_set_time+0x120/0x178
[   21.125122] lr : virt_efi_set_time+0x10c/0x178
[   21.125127] sp : ffff8000082c3c90
[   21.125129] x29: ffff8000082c3c90 x28:<PHONE_NUMBER>000000 x27:<PHONE_NUMBER>000000
[   21.125136] x26: ffff07ff84b4a174 x25: ffff07ff80038f05 x24: ffffa0f020e77c08
[   21.125142] x23:<PHONE_NUMBER>000000 x22: ffffa0f0213a1000 x21:<PHONE_NUMBER>000015
[   21.125148] x20: ffffa0f0211db778 x19: ffffa0f0213a1e30 x18:<PHONE_NUMBER>000000
[   21.125154] x17:<PHONE_NUMBER>000000 x16:<PHONE_NUMBER>000000 x15:<PHONE_NUMBER>000000
[   21.125160] x14:<PHONE_NUMBER>000003 x13: ffffa0f01f7d6790 x12:<PHONE_NUMBER>0069b1
[   21.125166] x11: 071c71c71c71c71c x10:<PHONE_NUMBER>000ae0 x9 : ffffa0f01dcd3bb8
[   21.125173] x8 : ffff07ff84b9b900 x7 :<PHONE_NUMBER>000000 x6 :<PHONE_NUMBER>0000b0
[   21.125179] x5 :<PHONE_NUMBER>0fd0c0 x4 :<PHONE_NUMBER>300001 x3 :<PHONE_NUMBER>000000
[   21.125185] x2 :<PHONE_NUMBER>000000 x1 :<PHONE_NUMBER>000000 x0 :<PHONE_NUMBER>000015
[   21.125190] Call trace:
[   21.125193]  virt_efi_set_time+0x120/0x178
[   21.125199]  efi_set_time+0x88/0xc0
[   21.125205]  rtc_set_time+0x90/0x1b8
[   21.125212]  sync_hw_clock+0x1a8/0x248
[   21.125217]  process_one_work+0x1f0/0x468
[   21.125221]  worker_thread+0x160/0x4a0
[   21.125225]  kthread+0xe4/0xf0
[   21.125230]  ret_from_fork+0x10/0x20
[   21.125237] ---[ end trace<PHONE_NUMBER>000000 ]---
[   21.125246] efi: EFI Runtime Services are disabled!
[   21.125250] rtc-efi rtc-efi.0: can't read time
[   22.117984] efi: EFI Runtime Services are disabled!

nixos-rebuild switch:
building '/nix/store/yi59b433wiihhg10frn0anf8s43vcl2k-nixos-system-farm3-22.11.3139.67f26c1cfc5.drv'...
Failed to read EFI variable LoaderFirmwareType-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f: Input/output error
Failed to read EFI variable LoaderFirmwareInfo-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f: Input/output error
Failed to read EFI variable LoaderInfo-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f: Input/output error
Failed to read EFI variable LoaderImageIdentifier-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f: Input/output error
Failed to read EFI variable LoaderDevicePartUUID: Input/output error
Failed to read EFI boot order: Input/output error
Failed to determine entries reported by boot loader, ignoring: Input/output error
Failed to read EFI variable "LoaderEntrySelected", ignoring: Input/output error
Traceback (most recent call last):
  File "/nix/store/d3jbfiqdkza1mvnsc8xbmsf2prw2vncy-systemd-boot", line 315, in <module>
    main()
  File "/nix/store/d3jbfiqdkza1mvnsc8xbmsf2prw2vncy-systemd-boot", line 247, in main
    installed_out = subprocess.check_output(["/nix/store/mhna2x37lbcd94g8jqiqd065b0aj8bz6-systemd-251.12/bin/bootctl", "--esp-path=/boot", "status"], universal_newlines=True)
  File "/nix/store/7p5447n7fibn6xypmc3valf3gnwmncdj-python3-3.10.9/lib/python3.10/subprocess.py", line 421, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/nix/store/7p5447n7fibn6xypmc3valf3gnwmncdj-python3-3.10.9/lib/python3.10/subprocess.py", line 526, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/nix/store/mhna2x37lbcd94g8jqiqd065b0aj8bz6-systemd-251.12/bin/bootctl', '--esp-path=/boot', 'status']' returned non-zero exit status 1.
warning: error(s) occurred while switching to the new configuration

Expected behavior
This box is currently "stuck" in my current generation, as it fails here and doesn't ignore this error, it won't change and state of the config even for unrelated stuff (like adding a new user), nor will it even do a dumb install of the new kernel/init, and let me pick it from the boot menu manually.

Notify maintainers
We need requirement for non-packages to have a maintainers list.
Metadata
 nix-shell -p nix-info --run "nix-info -m"
 - system: `"aarch64-linux"`
 - host os: `Linux 6.1.19, NixOS, 23.05 (Stoat), 23.05pre462893.b8afc8489dc`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.3`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
output here

This is potentially https://github.com/systemd/systemd/issues/25359.
The user is using a nixpkgs repository which has systemd 251.12 which does not have https://github.com/systemd/systemd/pull/25368 (v253).
The user could update to 23.05 (sudo nix-channel --add https://nixos.org/channels/nixos-23.05) then run nixos-rebuild switch --upgrade which would use systemd 253 to install the bootloader.
The user could also run nixos-rebuild switch --install-bootloader which would avoid https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py#L262.

nixos-rebuild already has a maintainer, see https://github.com/NixOS/nixpkgs/blob/nixos-23.05/pkgs/os-specific/linux/nixos-rebuild/default.nix#L34

@Profpatsch just pinging you as you are the maintainer for nixos-rebuild

I'm going to close this. This user is hitting two bugs that should be fixed with 253.5 which recently landed.
If you're still running into issues please let me know

NixOS 23.05 doesn't has systemd 253.3 now, but it should get 253.5 this week
https://nixpk.gs/pr-tracker.html?pr=235770

NixOS 23.05 has systemd 253.5 now.

I am having a similar issue. I upgraded to the newest version of using --install-bootloader but without the issue, I also get the Input/Output error.

I have a similar issue on x86_64 when I nixos-rebuild switch after resuming from hibernation. It works OK if I reboot first.


Your requirements could not be resolved

Problem:
user@user:~$ composer require wdev-rs/laravel-datagrid
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires wdev-rs/laravel-datagrid ^0.3.0 -> satisfiable by wdev-rs/laravel-datagrid[0.3.0].
    - wdev-rs/laravel-datagrid 0.3.0 requires illuminate/support ^6.0|^7.0|^8.0 -> found illuminate/support[v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Composer.json:
{
    "require": {
        "php": "^8.0.2",
        "guzzlehttp/guzzle": "^7.2",
        "jeroennoten/laravel-adminlte": "^3.8",
        "laravel/framework": "^9.2",
        "laravel/sanctum": "^2.14.1",
        "laravel/tinker": "^2.7",
        "laravel/ui": "^4.0"
    },
    "require-dev": {
        "fakerphp/faker": "^1.9.1",
        "laravel/sail": "^1.0.1",
        "mockery/mockery": "^1.4.4",
        "nunomaduro/collision": "^6.1",
        "phpunit/phpunit": "^9.5.10",
        "spatie/laravel-ignition": "^1.0"
    },
    "autoload": {
        "psr-4": {
            "App\\": "app/",
            "Database\\Factories\\": "database/factories/",
            "Database\\Seeders\\": "database/seeders/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\\": "tests/"
        }
    },
    "scripts": {
        "post-autoload-dump": [
            "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover --ansi"
        ],
        "post-install-cmd": [
            "composer licenses > LICENSE-DEPENDENCIES.md"
        ],
        "post-update-cmd": [
            "@php artisan vendor:publish --tag=laravel-assets --ansi --force",
            "composer licenses > LICENSE-DEPENDENCIES.md"
        ],
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate --ansi"
        ]
    },
    "extra": {
        "laravel": {
            "dont-discover": []
        }
    },
    "config": {
        "optimize-autoloader": true,
        "preferred-install": "dist",
        "sort-packages": true
    },
    "minimum-stability": "dev",
    "prefer-stable": true
}

Does this package support Laravel 9?

@Enferum Thanks for reporting, I'll check the L9 compatibility, and will release a new version soon if necessary.

Hey @Enferum, the newly released version 0.4.0 supports Laravel 9, and also includes some minor improvements in functionality as well.


Can I scroll through the suggestion history?

A lot of times there are multiple suggestions that might map to a single tool. For instance, consider the following:
git checkout mybranch
git checkout mybranch2

Now when I type git, the auto-suggested command will be git checkout mybranch2. Is there a way I can scroll through the history to pick a different command?

Could be a duplicate of issue 303 but that solution doesn't work for me.


A child page is not a WebPage object

I have the following code:
page.property('pages').then(function (pages) {
    //access to pages[0]
});

The pages[0] is not a WebPage object and it doesn't has the same methods (e.g. page.render, page.evaluate), but it has the same fields like a WebPage object.

This works as designed because pages is a property that gets serialized to json and then back in to object in node. It won't work like you think it will. The functionality was never added. Pull requests are welcomed though.


fix: missing vue special method

First, thanks for this project for helping old projects' migration ♥.
I got a bug while using this project to migrate my project because there has some code like below:
@Component
export default class Test extends Vue {
    created() {
        document.addEventListener('mousedown', onMousedown);
    }
    onMousedown() {
        console.log('mousedown');
    }
    beforeDestroy() {
        document.removeEventListener('mousedown', onMousedown);
    }
}

this code was migrated into below:
import { defineComponent } from "vue";

export default defineComponent({
    created() {
        document.addEventListener('mousedown', onMousedown);
    },
    methods() {
        onMousedown() {
            console.log('mousedown');
        },
        beforeDestroy() {
            document.removeEventListener('mousedown', onMousedown);
        }
    }
})

This will miss the event unregister after the component destroyed because the special method "beforeDestroy" was incorrectly migrated into methods. It cause unexpected event handles in my project.
So I create this PR to fix this bug about "beforeDestroy" using.

Thanks a lot for the PR 🫶🏻


Remove unused deliveryservice_tmuser table

This PR closes #2910 by removing the now-unused deliveryservice_tmuser table from the TO database.

Which Traffic Control components are affected by this PR?

Traffic Ops (database)
Traffic Ops client (Go, tests)
t3c (tests)

What is the best way to verify this PR?
No known functionality depended on this table, so just ensure existing functionality continues to work.
PR submission checklist

[ ] This PR has tests
[ ] This PR has documentation
[x] This PR has a CHANGELOG.md entry
[x] This PR DOES NOT FIX A SERIOUS SECURITY VULNERABILITY

test failure is fixed in master and unrelated to this PR


Const matrices/vectors are still modifyable

Currently the access operators in our matrices are defined as follows:
    inline constexpr T& operator()(idx_t i, idx_t j) const noexcept
    {
        return (layout == Layout::ColMajor) ? ptr[i + j * ldim]
                                            : ptr[i * ldim + j];
    }

Because the function is defined as const, we can do something like this
template< class matrix_t>
void foo( const matrix_t& A  ){
     A(0,0) = 0;
}

i.e. we can modify a const matrix. While valid c++ syntax, I found some sources that consider this bad practice.
In the scientific software course I'm TA for, the students are taught to do something like this:
    inline constexpr T& operator()(idx_t i, idx_t j) noexcept
    {
        return (layout == Layout::ColMajor) ? ptr[i + j * ldim]
                                            : ptr[i * ldim + j];
    }

    inline constexpr const T& operator()(idx_t i, idx_t j) const noexcept
    {
        return (layout == Layout::ColMajor) ? ptr[i + j * ldim]
                                            : ptr[i * ldim + j];
    }

If the matrix is const, this returns a const reference so that it cannot be modified.
The change is not nearly that simple though. We would also need to change the plugins, because a slice of a const matrix would need to return a const slice, ... I think there can be some discussion whether or not it's worth the effort.

I agree this data type does not follow the best practices. Thanks. I learned that too, and now I am ashamed for not writing the better design in place from start. I don't think it is that difficult, see #213.
One thing that we didn't do, on purpose, was to not protect the attributes of legacy matrices and vectors. Those are supposed to be more flexible data types, that will ease the development. That was my thought when I first wrote them.


Text in diff bot is rendering larger than normal

For some reason text in VIs in the images produced by the diff bot is rendering larger than it should be. For example, the text in the invoke node in this image is much larger than it should be, causing it to clip into adjacent items. This is also affecting comments, so it is not an issue with the invoke node in particular.
I can't say for certain, but I don't recall this happening prior to the build machine being shut off. I had to have someone manually start it today, so I am wondering if it had its screen resolution or DPI changed somehow. @buckd can you look into this?

I was able to remote in after tracking down the new password, and something is definitely different with the display settings. I am unable to change them from a remote desktop connection - we will probably need to work with the ops team to sort this out.


SUBMARINE-710. Frontend support for tensorboard

What is this PR for?
I created a "tensorboard" button on the experiment page in the workbench.
It will show as loading when

the api-client is still fetching the tensorboard meta-data
tensorboard pod is not ready

After the fetching succeeds, users can click the button and link to the tensorboard page.
What type of PR is it?
[Feature]
Todos

[ ] - Task

What is the Jira issue?
https://issues.apache.org/jira/projects/SUBMARINE/issues/SUBMARINE-710
How should this be tested?
Screenshots (if appropriate)

Questions:

Does the licenses files need update? No
Is there breaking changes for older versions? No
Does this needs documentation? No

@kevin85421 @pingsutw Help me review this PR. Thanks!

@kevin85421 @pingsutw Help me review this PR. Thanks!


[Gobblin-799]Fix bug in AvroSchemaCheckDefaultStrategy

Dear Gobblin maintainers,
Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!
JIRA

[ ] My PR addresses the following Gobblin JIRA issues and references them in the PR title. For example, "[GOBBLIN-XXX] My Gobblin PR"

https://issues.apache.org/jira/browse/GOBBLIN-799

Description

[ ] Here are some details about my PR, including screenshots (if applicable):
Add return statement to fix the bug.

Tests

[ ] My PR adds the following unit tests OR does not need testing for this extremely good reason:
Add unit test to test default schema check strategy.

Commits

[ ] My commits all reference JIRA issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":

Subject is separated from body by a blank line
Subject is limited to 50 characters
Subject does not end with a period
Subject uses the imperative mood ("add", not "adding")
Body wraps at 72 characters
Body explains "what" and "why", not "how"

@ibuenros Can you take a look at this?


Overlayfs support for mount-root

++ Does it need doco?

Coverage decreased (-0.4%) to 67.13% when pulling 0d7c4ae8e4e1c29ef7119f12267098d35bcf8ab5 on overlayfs into dc218c99b75b15f129e10031c7320b8b9eec4c01 on master.

Well, the doco change would have been from "it doesn't work with overlayfs" to "it works", so I don't think so.


Fix for a wrong network update link

That looks good to merge. Is there any reason we are holding this merge? @meln1k ?


EfficientVIT'pie charts

Hello, I would like to know how the SwinT and DeiT pie charts that limit memory operations in the EfficientVit paper are analyzed. Can you provide the source code?

Hi @YEKAI-2022 , thanks for your interest!
We use torch-profile link and nsight-compute link for runtime profiling. Please refer to the links for more details. Thanks.


JsGrid auto translated by chrome breaks pagination

Bug Reports:
A) Expected Behavior
By clicking on the pagination numbering 1,2,3... the system should go to the next page and display the results.
B) Actual Behavior
By clicking on the pagination numbering 1,2,3... the system is not going to the next page and does not show the results, only
the first page of results is displayed.
C) Steps to Reproduce
Open the page with jsgrid using a translation pt-br "jsGrid.locale('pt-br');" and use google translator set by default in google
chrome to automatically translate the page to english.

Resolution for Pagination Issue with Automatic Translation
Hello,
After investigating the reported issue (#1399) regarding broken pagination in jsGrid when Google Chrome's automatic translation is enabled, I found a solution that addresses the problem.
Implemented Solution:

Disable Automatic Translation:
To prevent Google Chrome from automatically translating the page and potentially breaking the pagination, you can add the following meta tag to your HTML:
<meta name="google" content="notranslate">

This will instruct the browser not to translate the page, avoiding potential conflicts with jsGrid's functionality.

Configure Pagination Text:
Additionally, to properly display the pagination controls in Portuguese, I configured the following options in jsGrid:
$("#jsGrid").jsGrid({
    width: "100%",
    height: "400px",

    inserting: true,
    editing: true,
    sorting: true,
    paging: true,
    pageSize: 7,
    pageButtonCount: 5,

    pagerFormat: "Páginas: {first} {prev} {pages} {next} {last}    {pageIndex} de {pageCount}",
    pagePrevText: "Voltar",
    pageNextText: "Próxima",
    pageFirstText: "Primeira",
    pageLastText: "Última",

    data: yourData, // Substitua 'yourData' pelos seus dados
    fields: [
        { name: "name", type: "text", title: "Nome" },
        { name: "age", type: "number", title: "Idade" },
        { type: "control" }
    ]
});

Explanation of Settings:

pageSize: Defines the number of records per page.
pageButtonCount: Defines the number of page buttons displayed.
pagerFormat: Format for the pagination in Portuguese, including navigation buttons and page information.
pagePrevText, pageNextText, pageFirstText, pageLastText: Text for navigation buttons translated to Portuguese.

These steps ensure that the pagination interface in jsGrid is correctly displayed in Portuguese and functions as expected, even with automatic translation enabled in the browser.
If you need further details or have any other questions, feel free to ask!
Best regards,


The code is not up to date and there are many errors after running it

Description
The code is not up to date and there are many errors after running it. It seems that webui and AGiXT core do not match. Hopefully the latest code can be uploaded instead of the docker container.
Steps to Reproduce the Bug
1、Run app.py
2、Run web ui main.py
3、Click Agent management
Expected Behavior
No errors
Operating System

[ ] Linux
[X] Microsoft Windows
[ ] Apple MacOS
[ ] Android
[ ] iOS
[ ] Other

Python Version

[ ] Python <= 3.9
[ ] Python 3.10
[X] Python 3.11

Environment Type - Connection

[X] Local - You run AGiXT in your home network
[ ] Remote - You access AGiXT through the internet

Runtime environment

[ ] Using docker compose
[X] Using local
[ ] Custom setup (please describe above!)

Acknowledgements

[X] I have searched the existing issues to make sure this bug has not been reported yet.
[X] I am using the latest version of AGiXT.
[X] I have provided enough information for the maintainers to reproduce and diagnose the issue.

Hello. Running app.py directly is the incorrect way to run it. Please follow the quick start guide on agixt.com


Error when building: execvp(3) failed.: No such file or directory

I am trying to get Python In A Box to work on my computer, but I keep on getting this error:
execvp(3) failed.: No such file or directory

This might be a dumb question, but... do you have Python installed?

Ah no. I'm actually running it on Replit, and I also have it on my computer, and neither of them worked. I might as well install it to see if it works on my computer

You need to have python3 on your PATH for the app to be able to run Python.

Ah okay, thanks.


fixed a bug

There was a bug where if the error appears on the screen you can't type anything you have to manually clear so now if error happens and when you click any digit the error message gets removed

merge it yeftne

I have removed unnecessary console.writelines


Tasks Slide column widths wrong

Probably inherited from the previous content table. Glossary probably has the same problem.

Task slide column widths are OK. Minor tweak was to add a space after the comma between tags.
Note: In Keynote a lack of due date for a task leads to the tags cell bleeding into the Due Date cell.

Closing as this doesn't seem to be a reproducible bug.


How do I go from a list of genes to a list of intersecting pathways

I have a list of genes, for example
genes="DCN APOD GSN AHNAK KRT10 KRT1 NF1".split(' ')
I guess from the cell_cyle.ipynb  notebook use of taxids=[9606] that I need the Entrez ID's for these.  I manually look these up here: https://www.ncbi.nlm.nih.gov/gene.  This gives me
genes=[1634, 347, 2934, 79026, 3858, 3848, 4763]
Following the example, I then run
from goatools.base import download_go_basic_obo
obo_fname = download_go_basic_obo()
from goatools.base import download_ncbi_associations
gene2go = download_ncbi_associations()
genes=[1634, 347, 2934, 79026, 3858, 3848, 4763]
from goatools.anno.genetogo_reader import Gene2GoReader
objanno = Gene2GoReader("gene2go", taxids=genes)
go2geneids_human = objanno.get_id2gos(namespace='BP', go2geneids=True)
print("{N:} GO terms associated with human NCBI Entrez GeneIDs".format(N=len(go2geneids_human)))

I get this result:
~/anaconda3/envs/mona/lib/python3.8/site-packages/goatools/anno/genetogo_reader.py in _init_taxid2asscs(self)
    162         for ntanno in self.associations:
    163             taxid2asscs[ntanno.tax_id].append(ntanno)
--> 164         assert taxid2asscs, "**FATAL: NO TAXIDS: {F}".format(F=self.filename)
    165         return dict(taxid2asscs)
    166

AssertionError: **FATAL: NO TAXIDS: gene2go

What am I doing wrong?  Is the data just not there for those genes?  Am I using the wrong codes?
Also, suppose there was data, what do I write in GOATOOLS to get the pathways shared by all genes in the list, or on a gene by gene basis the list of pathways each gene is involved in?

You have to change your taxids = [9606]


feat: support for multiline comment for languages that use JS regex

@idoo I tested, it seems like something wrong with parsing. See screenshot from redux-state for codecrumb; pls check what's happing inside parseCodecrumbComment

@idoo multiple crumbs in one file don't work. e.g. add //cc:signin#8 to example-project/src-client/auth/actions.js


refactoring kube-aws / experimental IAM-based kubelet auth

This is the successor of kubernetes-incubator#1473. I'll keep that one for recording purposes.
Resolves kubernetes-incubator#1469
What do we get from this?

Better, documented kube-aws plugin system. Use builtin plugins or write your own with a single file called plugin.yaml, to customize every aspect of kube-aws clusters.
aws-iam-authenticator for kubelet auth, as a kube-aws plugin
(near future) EKS support kubernetes-incubator#1434 powered by the plugin system

Story
Take this as a continuation of kubernetes-incubator#509 (comment)
Towards the EKS integration(kubernetes-incubator#1434), I have been working on the support for aws-iam-authenticator for kubelet authentication. And I was very annoyed by that I was forced to add small snippets of bash, cloud-config and go into several diverse locations of kube-aws's code-base, plus adding the feature to somehow obtain and transfer the aws-iam-authenticator "binary" onto kube-aws worker and controller nodes.
To summarize, things that I had to consider were:

Creating a single keypair whose cert has two purposes - CA and Server Authn, encrypting it inside the credentials/ dir, transferring to worker and controller nodes
Somehow downloading and installing aws-iam-authenticator binary onto nodes
Installing the aws-iam-authenticator deployment onto the k8s cluster
Creating a configmap for aws-iam-authenticator that refers to IAM roles that are managed by kube-aws(Templating the configmap with the results of cloudformation functions? I'm tired of writing a long {{ "Fn::Join": ["", ["long", "bash", "script", "separated and enclosed within double-quotes", "per", "line"]]}} thing.

Being pretty annoyed, recalling kubernetes-incubator#751 kubernetes-incubator#791  kubernetes-incubator#509, I decided to enhance the secret feature of kube-aws - "plugins" - to cover the use-case. It is resulting in a major refactoring of kube-aws.
It doesn't affect existing features of kube-aws at all. But it does affect public members exposed by several kube-aws go packages, and how golang packages are organized.
So to whom using kube-aws a golang library, this refactoring may affect you. Please feel free to send any feedback on that.
Notables user-visible changes
Improved plugin system
Create a plugin.yaml at PROJECT_ROOT/plugins/NAME/plugin.yaml and edit according to your needs. The aws-iam-authenticator plugin would be the most informative source for learning how it write it.
It can be used for:
Existing features

Installing Kubernetes manifests
Installing files selected from the plugins/NAME directory onto nodes
Injecting custom CloudFormation resources into kube-aws managed stacks

New features
Automatically turning yaml templates to cfn expressions
Imagine you have a YAML template file that looks like the below in your plugin's directory:
apiVersion: v1
kind: ConfigMap
metadata:
  name: aws-auth
  namespace: kube-system
data:
  mapRoles: |
{{ range $i, $role := .Config.IAMRoleARNs }},
  - rolearn: {{$role}}
    username: system:node:{{`{{EC2PrivateDNSName}}`}}
    groups:
    - system:bootstrappers
    - system:nodes
{{ end }}

Firstly this is rendered with golang's text/template:
apiVersion: v1
kind: ConfigMap
metadata:
  name: aws-auth
  namespace: kube-system
data:
  mapRoles: |
  - rolearn: {"Fn::GetAtt": ["IAMRoleController", "Arn"]}
    username: system:node:{{`{{EC2PrivateDNSName}}`}}
    groups:
    - system:bootstrappers
    - system:nodes

And this is where kube-was becomes fancy. It detects {"Fn::GetAtt": ["IAMRoleController", "Arn"]} that looks like a CFN stack template expression, and converts it to:
{ "Fn::Join": ["", [
"apiVersion: v1\n",
"kind: ConfigMap\n",
"metadata:\n",
"  name: aws-auth\n",
"  namespace: kube-system\n",
"data:\n",
"  mapRoles: |\n",
"  - rolearn: ", {"Fn::GetAtt": ["IAMRoleController", "Arn"]}, "\n",
"    username: system:node:{{`{{EC2PrivateDNSName}}`}}\n",
"    groups:\n",
"    - system:bootstrappers\n",
"    - system:nodes\n",
]]}

This is then injected into the AWS::CloudFormation::Init so that cfn-init can rendered the file with the {"Fn::GetAtt": ["IAMRoleController", "Arn"]} replaced with the actual ARN of the IAM role managed by kube-aws.
"Metadata" : {
  "AWS::CloudFormation::Init" : {
    "configSets: {
      "path-to-file": {
        "files": {
          "/path/to/file": { "Fn::Join": ["", [
            "apiVersion: v1\n",
            "kind: ConfigMap\n",
            "metadata:\n",
            "  name: aws-auth\n",
            "  namespace: kube-system\n",
            "data:\n",
            "  mapRoles: |\n",
            "  - rolearn: ", {"Fn::GetAtt": ["IAMRoleController", "Arn"]}, "\n",
            "    username: system:node:{{`{{EC2PrivateDNSName}}`}}\n",
            "    groups:\n",
            "    - system:bootstrappers\n",
            "    - system:nodes\n",
            ]]}
        }
    }
  }
}

Automatically downloading files from source URLS
spec:
  cluster:
    machine:
      roles:
        controller:
          files:
          - path: "/opt/bin/heptio-authenticator-aws"
            permissions: 0755
            type: binary
            source:
              path: "files/aws-iam-auth/opt/bin/heptio-authenticator-aws"
              url: "https://github.com/kubernetes-sigs/aws-iam-authenticator/releases/download/v0.3.0/heptio-authenticator-aws_0.3.0_linux_amd64"

Defining additional keypairs used by k8s apps that the plugin supports:
spec:
  cluster:
    pki:
      keypairs:
      - name: aws-iam-authenticator
        dnsNames:
        - localhost
        ipAddresses:
        - <IP_ADDRESS>
        - <IP_ADDRESS>
        duration: 8760h
        usages:
        - ca
        - server

For example, the above plugin.yaml results in kube-aws render credential creatning plugins/aws-iam-authenticator/credentials/aws-iam-authenticator{-key,}.pem files, that are then installed on nodes for use by the aws-iam-authenticator pods.
kube-aws render stack
It now renders a set of files under the plugins/aws-iam-authenticator diretory:

plugin.yaml
manifests/*.yaml for the daemonset and the configmap
files/*.yaml for kubeconfig files for the webhook authentication and kubelets

kube-aws render stack
It now renders a set of credentials(keypairs) as defined in plugins/NAME/plugin.yaml files.
Notable internal changes
Single place to store embedded files
kube-aws after this work will have a single place to store files embedded into kube-aws binaries. Here's how it looks https://github.com/mumoshu/kube-aws/tree/aws-iam-node-auth/builtin/files.
$ tree builtin/files
builtin/files
├── cluster.yaml.tmpl
├── credentials
├── etcdadm
│   ├── Makefile
│   ├── README.md
│   ├── etcdadm
│   └── test
├── kubeconfig.tmpl
├── manifests
├── plugins
│   └── aws-iam-authenticator
│       ├── files
│       │   ├── authentication-token-webhook-config.yaml
│       │   ├── controller-kubeconfig.yaml
│       │   └── worker-kubeconfig.yaml
│       ├── manifests
│       │   ├── aws-auth-cm.yaml
│       │   └── daemonset.yaml
│       └── plugin.yaml
├── stack-templates
│   ├── control-plane.json.tmpl
│   ├── etcd.json.tmpl
│   ├── network.json.tmpl
│   ├── node-pool.json.tmpl
│   └── root.json.tmpl
└── userdata
    ├── cloud-config-controller
    ├── cloud-config-etcd
    └── cloud-config-worker

9 directories, 20 files

Changelog since 1473
The changes between this and kubernetes-incubator#1473 are as follows - just reviving accidentally removed files:
$ git diff aws-iam-node-auth
diff --git a/.gitignore b/.gitignore
index 62e8dc26..b33d23d0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,6 +10,8 @@ kube-aws
 coverage.txt
 profile.out
 test-result.json
+pkg/model/cache
+builtin/a_builtin-packr.go

 # gitbook docs
 _book
diff --git a/hack/relnote b/hack/relnote
new file mode 100755
index 00000000..f01e9fd6
--- /dev/null
+++ b/hack/relnote
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+
+go get golang.org/x/oauth2
+go get golang.org/x/net/context
+go get github.com/google/go-github/github
+
+VERSION=$(hack/version) go run hack/relnote.go
diff --git a/hack/version b/hack/version
new file mode 100755
index 00000000..0f4c6780
--- /dev/null
+++ b/hack/version
@@ -0,0 +1,6 @@
+#!/usr/bin/env bash
+
+COMMIT=$(git rev-parse HEAD)
+TAG=$(git describe --exact-match --abbrev=0 --tags "${COMMIT}" 2> /dev/null || true)
+
+echo "${TAG}"
diff --git a/kube-aws-bot-git-ssh-key.enc b/kube-aws-bot-git-ssh-key.enc
new file mode 100644
index 00000000..fef826ba

Codecov Report

Merging #1490 into master will decrease coverage by 12.48%.
The diff coverage is 0%.

@@             Coverage Diff             @@
##           master    #1490       +/-   ##
===========================================
- Coverage   37.86%   25.38%   -12.49%
===========================================
  Files          75       97       +22
  Lines        4608     4987      +379
===========================================
- Hits         1745     1266      -479
- Misses       2620     3575      +955
+ Partials      243      146       -97

Impacted Files
Coverage Δ

pki/rsa.go
100% <ø> (ø)

pkg/api/iamconfig.go
0% <ø> (ø)

pkg/model/init.go
37.5% <ø> (ø)

pkg/api/deployment.go
0% <ø> (ø)

pki/cert.go
66.1% <ø> (ø)

credential/store.go
42.1% <ø> (ø)

pkg/model/network.go
46.15% <ø> (ø)

pki/keypair.go
0% <ø> (ø)

pkg/api/s3_folders.go
0% <ø> (ø)

pkg/model/credentials.go
59.37% <ø> (ø)

... and 177 more

Continue to review full report at Codecov.

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

Let's go ahead 💨

Any objections to take what you've written in the PR and place it under docs folder?

No objection!

I created a new ticket https://github.com/kubernetes-incubator/kube-aws/issues/1506 which may relate to this work.
I noticed on the master branch, kube-aws tries to create IAM role. The reason my company has chosen kube-aws is because our IAM role management is centralised. I'm concerned we won't be able to use future versions of kube-aws


The val_iou and val_boundary_iou is very low

Validating...
valid_dataloader len: 131
[  0/131]  eta: 0:01:00  val_iou_0: 0.4816 (0.4816)  val_boundary_iou_0: 0.4124 (0.4124)  time: 0.4584  data: 0.1234  max mem: 18932
[130/131]  eta: 0:00:00  val_iou_0: 0.0486 (0.1484)  val_boundary_iou_0: 0.0486 (0.1415)  time: 0.3432  data: 0.0013  max mem: 18932
Total time: 0:00:44 (0.3411 s / it)
How can I solve it?

on the opposite:
RuntimeWarning: invalid value encountered in scalar divide
boundary_iou = intersection / union
/home/dell/desktop/waterbody/sam_hq/sam-hq-main/train/utils/misc.py:536: RuntimeWarning: invalid value encountered in scalar divide
boundary_iou = intersection / union
[383/384]  eta: 0:00:00  val_boundary_iou_0: nan (nan)  val_iou_0: nan (nan)  time: 0.4104  data: 0.0030  max mem: 18919
Total time: 0:02:38 (0.4117 s / it)
Averaged stats: val_boundary_iou_0: nan (nan)  val_iou_0: nan (nan)
i dont know if my train data matters bracause i am trying to finetune SAM to a Binary Classification Task


Dropping characters from custom short URL

[X] I've read the guidelines for Contributing to YOURLS Projects
[X] This request isn't a duplicate of an existing issue
[X] I've read the docs and followed them (if applicable)
[X] This is not a personal support request that should be posted on the YOURLS Discourse community

Describe the bug
When entering a custom short URL (eg. bonuslivestreamhalvingtimes), the URL is stored but with missing characters (bonuslivestreamalvingtimes - dropped the "h"). After editing the short URL it can be corrected. This bug started occurring intermittently yesterday, for 3 different users. No new plugins or other changes to the software since installation.
To Reproduce
Steps to reproduce the behavior:
Enter a custom short URL. Sometimes it drops letters from the beginning, or the middle.
Versions
YOURLS 1.7.4
Also, please include:

Ubuntu 18.04LTS

11 plugins installed:

Plugin Name
Version
Description
Author
Action

Allow Hyphens in Short URLs
1.0
Allow hyphens in short URLs (like http://sho.rt/hello-world)
Ozh

Amazon Affiliate
1.2
Add your Amazon Affiliate-Tag to all Amazon URLs before redirection
Florian Schliep

Do TLS
0.0.1
Always use TLS for destination url if available
Josh Panter

Don't Log Crawlers
1.3
Prevents  YOURLS from counting clicks of crawlers & bots with specific User  Agent strings or CIDRs/IP addresses (hardcoded or obtained from a  whois lookup on an ASN).
Suguru Hirahara, Rich Christiansen

GA-Measurement-Protocol
1.1
Tracks clicks using Google Analytics Measurement Protocol. License: Creative Commons Attribution 3.0 Unported: https://creativecommons.org/licenses/by/3.0/
Powerthazan

Google Analytics
1.1
Easily add Google Analytics tracking tags to your generated links. Settings: Configure settings
Katz Web Services, Inc.

Google Authentication
1.0
This plugin enables authentation against Google
Tony Tomarchio (atomarch)

QR Code Google Charts
1.0
Inline Qr codes using Google Charts API URI: http://yourls.org/
Aiaraldea

Random ShortURLs
1.2
Assign random keywords to shorturls, like bitly (sho.rt/hJudjK)
Ozh

Redirect Index
1.0
Redirect the base directory of YOURLS to a user selected link
Tom Slominski

SSL for SSL
0.1
Create SSL short links for SSL urls
Chris Hastie

Additional context
Started happening yesterday, no changes to software since installation. Used every day. 411 links stored at this time.

Thanks for this detailed issue, but at this point 2 things prevent us from doing something helpful:

way too many plugins. To make sure a defect is a YOURLS bug (which I doubt it is here) and not a plugin side effect, plugins must be deactivated.
this is not reproducible : "enter a custom URL and sometimes it fucks up" isn't a way to pinpoint the problem. I understand that it may be hard if you don't see a consistent unexpected behavior, but without a detailed "this is exactly how the bug happens" there is absolutely nothing we can do. If there was a bug in YOURLS that was dropping random letters, I'm sure the tens of thousands of YOURLS users and their millions of shortened URLs would have raised the issue years ago.

Are you sure it's not dropping capital letters ?

Also, YOURLS 1.7.4 (I think that wouldn't change anything, but we wouldn't "fix" anything on an old version)

Hi, I noticed the same yesterday with YOURLS-1.7.9.
Characters did disappear from Custom Short URL and I had to edit it several times to match my Custom URL. But since I installed YOURLS yesterday for the first time and I'm still in the process of setting it up, I thought this is someting I missed on setup.

Same comment: see http://yourls.org/#FAQ#lowercase


fixes #47

Behavior of tile boundary:

By default: It is set to off.
Tile Boundary will be displayed when zoom >= 10 and Tile Boundary button on button left is set to ON.
The tiles are divided for zoom level =12.
The label reads as : x/y/zoom

cc: @planemad @geohacker @ajithranka

Works great @amishas157 . Come changes:

Its not clear to a user the tile boundaries only show after zoom level 10. A simple fix is to indicate this in the toggle button: Tile boundaries (z10+)
The label for each boundary is X,Y,Z. Since Z is always 12, its not really useful information. Just X,Y will do and will reduce the clutter.

Nice work @amishas157.
🙇 ty for taking care of this.


Don't turn off the spinner for charts/timelines.

Fixed to not turn off the spinner for chart/timelines, let the chart/timeline related methods turn it off once data is generated.
https://bugzilla.redhat.com/show_bug.cgi?id=1187836
@dclarizio please review/test.

@h-kataria Tried this and it keeps the spinner on properly when I first select the Utilization button, but changing any option except the date still turns off the spinner too early.

Verified fix.


fix: make build work for browser environments

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Feature - Adding sorting for name, interview date and priority

WIP - To be updated
Fix #109

Codecov Report

Merging #133 (878756f) into master (5e9eae0) will decrease coverage by 2.49%.
The diff coverage is 23.30%.

@@             Coverage Diff              @@
##             master     #133      +/-   ##
============================================
- Coverage     65.12%   62.62%   -2.50%
- Complexity      451      458       +7
============================================
  Files            85       90       +5
  Lines          1640     1739      +99
  Branches        192      215      +23
============================================
+ Hits           1068     1089      +21
- Misses          505      579      +74
- Partials         67       71       +4

Impacted Files
Coverage Δ

...ddress/logic/sort/ApplicationStatusComparator.java
0.00% <0.00%> (ø)

...du/address/logic/sort/InterviewSlotComparator.java
0.00% <0.00%> (ø)

...a/seedu/address/logic/sort/PriorityComparator.java
0.00% <0.00%> (ø)

...in/java/seedu/address/model/InternApplyMemory.java
78.57% <0.00%> (-13.10%)
:arrow_down:

...rc/main/java/seedu/address/model/ModelManager.java
92.85% <0.00%> (-7.15%)
:arrow_down:

...a/seedu/address/model/application/Application.java
76.81% <0.00%> (-13.02%)
:arrow_down:

...seedu/address/model/application/InterviewSlot.java
70.37% <0.00%> (-2.71%)
:arrow_down:

...dress/model/application/UniqueApplicationList.java
80.85% <0.00%> (-11.84%)
:arrow_down:

.../seedu/address/logic/parser/ListCommandParser.java
33.33% <33.33%> (ø)

.../java/seedu/address/logic/sort/NameComparator.java
50.00% <50.00%> (ø)

... and 4 more

Continue to review full report at Codecov.

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


feat: emotion flex & box components

Overview
PR Checklist

[ ] Related to Abstract designs:
[ ] Related to JIRA ticket: ABC-123
[ ] I have run this code to verify it works
[ ] This PR includes unit tests for the code change

Description

📬Published Alpha Packages<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://5f36eca629910901185c5453--gamut-preview.netlify.appDeploy Logs


Errors on master-head rancher server on assigning a role to a user

What kind of request is this (question/bug/enhancement/feature request): bug
Steps to reproduce (least amount of steps as possible):

Bring up a single node master-head
deploy a downstream cluster
Add a user user1 as a standard user, Unable to fetch user info is seen on the User.
Principal not found: Internal Server Error Error is seen when trying to add this user1 to the downstream cluster's project as PM/PO

Errors in rancher logs:
2021/04/14 03:22:12 [ERROR] failed on subscribe alertmanager: NotFound 404: the server could not find the requested resource (get alertmanagers.meta.k8s.io)
2021/04/14 03:22:17 [ERROR] failed on subscribe prometheusRule: NotFound 404: the server could not find the requested resource (get prometheusrules.meta.k8s.io)
2021/04/14 03:22:17 [ERROR] failed on subscribe alertmanager: NotFound 404: the server could not find the requested resource (get alertmanagers.meta.k8s.io)
2021/04/14 03:22:17 [ERROR] failed on subscribe serviceMonitor: NotFound 404: the server could not find the requested resource (get servicemonitors.meta.k8s.io)
2021/04/14 03:22:17 [ERROR] failed on subscribe prometheus: NotFound 404: the server could not find the requested resource (get prometheuses.meta.k8s.io)
I0414 03:22:31.391843      23 topology_manager.go:221] [topologymanager] RemoveContainer - Container ID: 2af7b84953c924494ac4468c9361005369dff661484ad0b1655de30be8725ec2
2021/04/14 03:22:42 [ERROR] Unknown error: users.management.cattle.io "" not found
2021/04/14 03:22:50 [INFO] Creating new GlobalRoleBinding for GlobalRoleBinding grb-mrxwv
2021/04/14 03:22:50 [INFO] [mgmt-auth-grb-controller] Creating clusterRoleBinding for globalRoleBinding grb-mrxwv for user u-c74d9 with role cattle-globalrole-user
2021/04/14 03:22:50 [ERROR] Unknown error: users.management.cattle.io "" not found
2021/04/14 03:22:50 [ERROR] Unknown error: users.management.cattle.io "" not found

Environment information

Rancher version (rancher/rancher/rancher/server image tag or shown bottom left in the UI): master-head commit id: bb8d5a2
Installation option (single install/HA): single

What auth provider did you use?
Does this happen with across all users or just one user?
Can you reproduce it again with the same auth provider setup?

@Jono-SUSE-Rancher No Auth provider was used. I added a standard user and used that user to assign roles. This happens all the time.

@sowmyav27 , it's been a while since this bug was reported and a lot has been changed/fixed since then.
I have just tried it on commit 671a4b1a026f5cf2706c9d6717ef7ee0a6674e73 and had no issues creating user or assigning it as PM/PO to a project in downstream DO cluster, below is the log of the latter operation.
Could you please retest and let us know if the issue is still relevant?
2021/07/01 22:10:34 [INFO] [mgmt-auth-prtb-controller] Creating roleBinding for membership in project p-f52ww for subject u-lmpzb
2021/07/01 22:10:34 [INFO] [mgmt-auth-prtb-controller] Creating roleBinding for membership in project p-f52ww for subject u-lmpzb
2021/07/01 22:10:34 [INFO] [mgmt-auth-prtb-controller] Creating clusterRoleBinding for membership in cluster c-dk7cq for subject u-lmpzb
2021/07/01 22:10:34 [INFO] [mgmt-auth-prtb-controller] Creating clusterRoleBinding for membership in cluster c-dk7cq for subject u-lmpzb
2021/07/01 22:10:34 [INFO] [mgmt-auth-prtb-controller] Creating roleBinding for subject u-lmpzb with role project-owner in namespace
2021/07/01 22:10:34 [INFO] [mgmt-auth-prtb-controller] Updating clusterRoleBinding crb-vzkprxk5d7 for cluster membership in cluster c-dk7cq for subject u-lmpzb
2021/07/01 22:10:34 [INFO] [mgmt-auth-prtb-controller] Creating roleBinding for subject u-lmpzb with role project-owner in namespace
2021/07/01 22:10:34 [INFO] [mgmt-auth-prtb-controller] Creating roleBinding for subject u-lmpzb with role project-member in namespace
2021/07/01 22:10:34 [INFO] [mgmt-auth-prtb-controller] Creating roleBinding for subject u-lmpzb with role admin in namespace
2021/07/01 22:10:34 [INFO] [mgmt-auth-prtb-controller] Creating roleBinding for subject u-lmpzb with role edit in namespace
2021/07/01 22:10:34 [INFO] [mgmt-auth-prtb-controller] Creating roleBinding for subject u-lmpzb with role project-member in namespace
2021/07/01 22:10:35 [INFO] Creating roleBinding User u-lmpzb Role project-owner
2021/07/01 22:10:35 [INFO] Creating roleBinding User u-lmpzb Role project-member
2021/07/01 22:10:35 [INFO] Creating roleBinding User u-lmpzb Role admin
2021/07/01 22:10:35 [INFO] Creating roleBinding User u-lmpzb Role edit
2021/07/01 22:10:35 [INFO] Creating clusterRoleBinding for project access to global resource for subject u-lmpzb role p-f52ww-namespaces-edit.
2021/07/01 22:10:35 [INFO] Creating clusterRoleBinding for project access to global resource for subject u-lmpzb role p-f52ww-namespaces-edit.
2021/07/01 22:10:35 [INFO] Creating clusterRoleBinding for project access to global resource for subject u-lmpzb role project-owner-promoted.
2021/07/01 22:10:35 [INFO] Creating clusterRoleBinding for project access to global resource for subject u-lmpzb role project-owner-promoted.
2021/07/01 22:10:35 [INFO] Updating clusterRoleBinding crb-bxbp3k5wc3 for project access to global resource for subject u-lmpzb role p-f52ww-namespaces-edit.
2021/07/01 22:10:35 [INFO] Creating clusterRoleBinding for project access to global resource for subject u-lmpzb role project-member-promoted.
2021/07/01 22:10:35 [INFO] Creating clusterRoleBinding for project access to global resource for subject u-lmpzb role create-ns.
2021/07/01 22:10:35 [INFO] Creating clusterRoleBinding for project access to global resource for subject u-lmpzb role project-member-promoted.
2021/07/01 22:10:35 [INFO] Updating clusterRoleBinding crb-kvibt64ebk for project access to global resource for subject u-lmpzb role create-ns.

On master-head commit id: 3e44415af

This issue isnt seen.
Bring up a single node master-head
deploy a downstream cluster
Add a user user1 as a standard user, No error is seen.
No Error is seen when trying to add this user1 to the downstream cluster's project as PM/PO

Reopening this issue as I see this on master-head commit id: cf5a75f

Bring up a single node master-head
deploy a downstream cluster
Add a user user1 as a standard user, Unable to fetch user info is seen on the User.
Error seen in rancher logs

2021/07/08 18:29:21 [ERROR] Unknown error: users.management.cattle.io "" not found
2021/07/08 18:29:24 [INFO] waiting for cluster EKS [c-bshx6] to finish creating
2021/07/08 18:29:29 [INFO] Creating new GlobalRoleBinding for GlobalRoleBinding grb-pwscx
2021/07/08 18:29:29 [INFO] [mgmt-auth-grb-controller] Creating clusterRoleBinding for globalRoleBinding grb-pwscx for user u-6tk2c with role cattle-globalrole-user
2021/07/08 18:29:29 [ERROR] Unknown error: users.management.cattle.io "" not found
2021/07/08 18:29:29 [ERROR] Unknown error: users.management.cattle.io "" not found

On master-head commit id: 24ab082

Bring up a single node master-head
deploy a downstream cluster
Create a user user1 as a standard user, No error is seen while creating a user.
No error is seen while assigning a user to the cluster as a member/owner


Time validation defaults

If a user enters invalid data for hour or minute fields, we want to show them a validation error instead of defaulting it to zero.
This PR keeps the functionality of defaulting invalid second-hand fields to zero, so people can choose to leave that field blank if they choose. Let me know if we should change this also (it's a quick change), but I figured that would be a little better UX than requiring the seconds field when I imagine most people care more about hour/minute and would just enter zero/blank in seconds anyway.

This PR keeps the functionality of defaulting invalid second-hand fields to zero, so people can choose to leave that field blank if they choose.

Fine with me. 👍

code change looks fine to me.
do we have any idea why this changed after the big refactor?

There's not an indication in the code to whether it was intentional or not, but my best guess would be that we were defaulting seconds originally (perhaps) and someone thought it'd make sense to default other values like minutes also and got a bit too copy-paste happy. I can definitely see the merit in thinking "if someone wants 4pm they might just enter 4 in the hour cell and leave the rest empty", but defaulting hours to 0 seems like a mistake.

This was included and merged in with #156.


Catch requests exceptions when checking if a release exists

@busunkim96 I'm going to go ahead and merge this, I'm going to test it with autorelease before cutting the next release of releasetool. Let me know if you have any concerns.


Updated Framework crashes my game everytime on startup

Describe the bug
Recently updated the framework for RE4R and now my game crashes everytime i start it up. The only way i can play the game is removing the dinput8.dll file from the game's directory (similar to my RE2R issue)
Upload logs and any crash dumps
Locate the re2_framework_log.txt in your game directory and upload it along with the issue.
If you crashed, upload the reframework_crash.dmp file as well.
re2_framework_log.zip
reframework_crash.zip
github.com/praydog/REFramework/files/12222306/re2_framework_log.zip)
Identify the REFramework version
If the REFramework version or commit hash is known, submit this information.
Recent framework release for RE4
Expected behavior
Be able to play the game with updated framework
Desktop and VR (please complete the following information):
Steam Deck
Steam Deck/Linux (please complete the following information):

Proton Experimental

you ever get to fix this issue?

you ever get to fix this issue?

Nope I haven’t gotten help with the issue. I guess we have to be super duper specific and precise with the issue lol

yeah i just posted today and he answered.. all i said was my game version was older and it crashes, he told me it doesnt support older versions or pirated copies of the game. idk why he hasnt answered you yet. but if you have older version of the game or pirated copy, that could be the reason for you

yeah i just posted today and he answered lol.. all i said was my game version was older and it crashes, he told me it doesnt support older versions or pirated copies of the game. idk why he hasnt answered you yet. but if you have older version of the game or pirated copy, that could be the reason for you

Hmm now i’m curious because my game copies are legit and I have proof of purchases from steam to back it up and my games are updated regularly so i’m not quite sure what the issue is

i just updated my game and still crashing so idk either. ive seen he wasnt replying for weeks to a lot of open issues on this topic and he answered me today only 20 mins after i posted. maybe the Framework is just outdated or needs a patch and hes working on it.

Believe this is an issue with Proton and the current nightly build. I'll need to download Linux or get a Steam Deck which is a barrier to me solving this.

ohhhh i just noticed you are on steam deck. thats a whole new can of worms to open lol. if the issue is happening on an normal windows build then i can imagine the troubleshooting needed to be done on steam deck with experimental build. good luck ahha

So, would it be safe to say, even if the game itself runs flawlessly on on Linux, the framework might not?
I haven't had any luck launching the game with the framework installed, always crashes on new game/continue.


Add an "Upload file" icon

For local sources, we should use an "upload file" icon instead of the "refresh" icon in two places:

TableAssets.svelte
SourceWorkspaceHeader.svelte

@ericpgreen2 , did your branch complete this work?

Yep, all done 👍


docs(common):  Updated readme ENG #370

Changed logo for it to be visible in dark mode, updated developers guide screenshot, and removed version note.
Updated readme #370
What does this PR do?

resolves #370 and #485

Steps to test

Open guides readme, see new screenshot, updated logo, and updated prerequisites.

CheckList

[ ] Follow proper Markdown format
[ ] The content is adequate
[ ] The content is available in both english and spanish
[ ] I Ran a spell check

The screenshot seems way too large for the readme , also maybe we should we wait for the new version of the homepage to add an updated screenshot?


Add geocoded info, exposure compensation to ExifView

This info is already available (I think)

Geocoded info now available


api_id on test environment

After adding the test environment to the list of environments in the Intercom initializer:
  # == Enabled Environments
  # Which environments is auto inclusion of the Javascript enabled for
  #
  config.enabled_environments = ['development', 'production', 'test']

I thought the widget was going to behave in a similar way as it does in the development environment where the widget will return a dummy api_id. But it was until after some debugging when I found out that that's not the case and it isn't obvious since the widget will simply not get rendered at all, since the intercom_script_tag.valid? will not be valid. I guess a fix could be to just add the test environment here or update the documentation mentioning that the IntercomRails.config.app_id needs to get stubed with something like allow(IntercomRails.config).to receive(:app_id).and_return('abcd1234')
Version info

intercom-rails version: 0.2.29
Rails version: 4.2.5

Expected behavior
Test environment to work out of the box or add its setup to the documentation.
Actual behavior
Difficult to get test environment working.
Steps to reproduce

Add test environment to the initializer
Run an integration test and notice that the Intercom JS widget isn't there.

Logs
None.

Thanks for reporting that. I've added your recommendation to the app_id method. This should be released in gem really soon.

any update on this?


IPWhiteList middleware: add the ability to configure custom body

What does this PR do?
This commit adds a new "ErrorBody" option to the IPWhiteList middleware
which can be used to return a custom message when a request is unallowed.
The default behavior is unchanged.
Motivation
The IPWhiteList middleware currently always returns the "Forbidden"
string when a request is unallowed.
I have some use cases where I would like to customize this error message.
More

[x] Added/updated tests
[x] Added/updated documentation

I also tested the change locally (built traefik and tried the option).
Additional Notes
I cannot find how to generate the related Kubernetes CRD in order to add to it the new option.

Hello @mcorbin,
Thanks for the contribution!
We discussed the feature your PR is introducing and, unfortunately, we will decline it.
We don't think we should add more configuration/responsibility to the IPWhiteList middleware.
To serve custom responses for specific status codes, one should use the ErrorPages middleware. It requires to have a service that will return the appropriate response.
Just so you know, we already declined the https://github.com/traefik/traefik/pull/1576/files that was introducing the ability to load a local static file as the body of the response from the ErrorPages middleware.

Hello @rtribotte,
Thank you for your answer.
I'm aware of the ErrorPages middleware but it's a complex setup to only return a different error message. We also would like to only change the error message if the IPWhiteList returns an error, and not the service behind traefik (if we use ErrorPages we will if I'm not wrong not be able to make this distinction).

One way could be to have two ErrorPages middleware, one before and one after the IPWhiteList middleware.
Thus, depending on your setup (the status codes you need to handle), you may face a current limitation when stacking ErrorPages middleware that is described in https://github.com/traefik/traefik/issues/8866.


Avoided counting attributes and methods in docs.

We should avoid counting attributes and methods. It's unnecessary, difficult to maintain, creates extra work for documentation translators, and generates typos.
Noticed in #15241.

@carltongibson Thanks for checking :+1:


Fix doc comment on Phaser.Physics.Arcade#getObjectsAtLocation.

When the doc comment was copied from getObjectsUnderPointer and edited, the @param for pointer was not changed to @params for x and y, so I just fixed that.

You should change the name of the property in the comment:

param {number} pointer - The x coordinate to check. =>
param {number} x - The x coordinate to check.

Oh no, I thought I had done that! Fixed.

Thanks :)


Add execute() to DeleteOperation

Sorry for still bothering you!
Basically there are some kind of operations, like the deletion of an index, that will just return { "acknowledge": true } in case of success.
This PR adds the function execute that return straight the status of the request.

I'm going to leave this one open for a bit, because I need to think about this.  The return values from these functions are potentially confusing, as they try and represent the underlying ElasticSearch API, like the {"acknowledge": true} example.  But this depends on how the function is invoked.
Putting a simple .is_ok() at that high-level may not be accurate, or at least not the whole story.

As far as I know ElasticSearch returns {"acknowledge": true} or an error for certain kind of requests, and these responses are always paired to a status code. This means that should not matter whether returning the acknowledge value or is_ok().
We could specializing those kind of functions, for example implementing a method to expicitely delete the index, but they still would return true or an error.

Yes, really "delete" and "delete index" should be separate operations, for this reason.
But also: to prevent people calling the wrong one by accident, and to mirror the ElasticSearch documentation; there are subtle differences in available options.
The current Delete operation implements this: https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete.html where as Delete Index would have subtly different parameters and return types: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-delete-index.html

Yes, I agree on creating specialized functions for this kind of actions.
We could define Client::delete_index(self, index_name) -> Result<GenericResponse, EsError> where GenericResponse contains the actual acknowledge field, reflecting the ES behavior. What do you think?

Yeah, that sort of thing.
It's also worth taking into account that index_name can be either: one specific index, a wildcard, or a set of index names.  There are a few implementations that need to handle such things already, like the SearchURIOperation although it's not quite the same.


Merge pull request #3 from Shreeshrii/master

Similar changes also need to be made for all links from README in https://github.com/tesseract-ocr/tessdoc
@stweil Is there a way to link these correctly without using the full URLS?

Is there a way to link these correctly without using the full URLS?

No. There are only two alternatives which both have advantages and disadvantages: use relative links which also allow local tests but don't work in the repository, or use absolute links which always point to tesseract-ocr.github.io and make local tests impossible. I preferred the first variant.

can any setting be tweaked to change this behaviour?
https://github.blog/2016-12-05-relative-links-for-github-pages/

Thank you for that link. I could fix the relative links for https://github.com/tesseract-ocr/tessdoc.

Thanks for fixing the links, @stweil.
I had also figured out same solution after some experimentation yesterday.
https://github.com/tesseract-ocr/tesseract/issues/2873#issuecomment-581006242


update the index by solr with the file in HDFS

hi
I create a index from a file in hdfs by hue web UI.So if I want to update it from the other one file in hdfs by solr,how can I do it ?
thanks!

Try the 'Index file' button from the indexer app, e.g. http://demo.gethue.com/indexer/#edit/log_analytics_demo

There is a new index file everyday,So I should update the index everyday by manual?I hope it can update automatically from a dirctory in hdfs!
Can this be achieved？
thanks！


Remove master redirects

A bunch of the redirects were pointed at master rather than latest.

Deploy preview for calico ready!
Built with commit 01fa7c89c596a61da5e956079de3972bdcdb2fa1
https://deploy-preview-3490--calico.netlify.app


Is it possible to bypass the signup

Is it possible to send directly tokens to users registered by an admin...  some internal users will never signup ... only login/logout ...

Hey,
I'm not quite sure what you want to achieve. Do you want to:

Centrally send links to your users without them ever taking any action? E.g. through a newsletter, etc.
Allow certain users to have a no registration but to only have to type in their email whenever they want to login?
Have for certain users always the same login link

All three are possible but let me know which one you try to do! :-)
Florian

I want to be able to do # 2.

Hey,
You could either accept every single user as shown here:
https://github.com/florianheinemann/passwordless/blob/master/examples/simple-mail/routes/index.js#L33
Or you could at the same place have the normal approach (as shown in the example in the commented out section) but check beforehand if the user belongs to a certain group and then just use the code as for the first example.
Hope that helps
Florian


Waydroid module needs ashmem

Describe the bug
When trying to add Waydroid, I got this assertion
error:
       Failed assertions:
       - CONFIG_ANDROID_BINDER_IPC is not enabled!
       - CONFIG_ANDROID_BINDERFS is not enabled!
       - CONFIG_ASHMEM is not enabled!

Steps To Reproduce
Steps to reproduce the behavior:

Add virtualisation.waydroid.enable = true; on NixOs 23.05

Expected behavior
Config should work
Additional context
Using nixos-apple-silicon for Apple M1 Pro support.
Notify maintainers

@eclairevoyant
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"aarch64-linux"`
 - host os: `Linux 6.3.0-asahi, NixOS, 23.11 (Tapir), 23.11pre-git`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.3`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Yes, I know it says 23.11pre-git but I am on NixOS 23.05 in my Flake.

If you're using nixos-apple-silicon, you'd be using their kernel. They have their own kernel config, it's not using nixpkgs's:
https://github.com/tpwrules/nixos-apple-silicon/blob/main/apple-silicon-support/packages/linux-asahi/config
This bug should be filed there.

@vs49688 The problem goes a bit beyond nixos-apple-silicon's kernel. ashmem was dropped in kernel 5.18 and yet the Waydroid module mentions this but nobody has changed it.
https://github.com/NixOS/nixpkgs/blob/nixos-23.05/nixos/modules/virtualisation/waydroid.nix#L37

Tried enabling the needed config options with this:
  boot.kernelPatches = [{
    name = "waydroid";
    patch = null;
    extraStructuredConfig = with lib.kernel; {
      ANDROID_BINDER_IPC = yes;
      ANDROID_BINDERFS = yes;
      ANDROID_BINDER_DEVICES = "binder,hwbinder,vndbinder";
    };
  }];

Same assertion error, checked config.boot.kernelPackages.kernel.config.isSet with the required config and all return false on x86_64 with the stock kernel and aarch64 with the Asahi kernel. Might not be as simple as just enabling the option.

@vs49688 The problem goes a bit beyond nixos-apple-silicon's kernel. ashmem was dropped in kernel 5.18 and yet the Waydroid module mentions this but nobody has changed it.
https://github.com/NixOS/nixpkgs/blob/nixos-23.05/nixos/modules/virtualisation/waydroid.nix#L37

Have you tried to use ashmem as described in wiki?

@Angraman No because the kernel config system in Nixpkgs would not be able to detect that.

Yeah these are assertions thrown during evaluation. I've also not yet narrowed down the cause, as even with the default latest kernel, ASHMEM is not set but assertion doesn't fail

I mean, I could PR to limit the ASHMEM check to below 5.18, but that doesn't help the remaining two assertions 🤔

ASHMEM is set only when the kernel version is between 5.0 and 5.18 as defined in Nixpkgs here. My non-Asahi stock NixOS system is 6.1.43 and my Asahi NixOS system is 6.3.0. I doubt this is an Asahi NixOS specific problem and might more be of Nixpkgs isn't picking up the config right.

ASHMEM is set only when the kernel version is between 5.0 and 5.18 as defined in Nixpkgs here. My non-Asahi stock NixOS system is 6.1.43 and my Asahi NixOS system is 6.3.0. I doubt this is an Asahi NixOS specific problem and might more be of Nixpkgs isn't picking up the kernel config right.
Plus I did set other kernel config like ANDROID_BINDER_IPC to y (as mentioned earlier) which the error mentions needing to be set. Despite it being set, it still throws the error saying that option isn't set but it is. So just "enabling ashmem" would not work, especially since ASHMEM was removed from the kernel in 5.18 which is in that version's changelog.

memfd, supposed ashmem replacement for 5.18+ doesn't work on mac m1-2 i get properly?

If memfd has to do with the config option CONFIG_MEMFD_CREATE, then it should work on M1 since it's already enabled.

If memfd has to do with the config option CONFIG_MEMFD_CREATE, then it should work on M1 since it's already enabled.

In wiki it says you need to tell waydroid to use memfd, in /var/lib/waydroid/waydroid_base.prop
https://nixos.wiki/wiki/WayDroid

But how do I change that when I can't even enable Waydroid in the first place?

But how do I change that when I can't even enable Waydroid in the first place?

Have you tried to create that file first and then try to enable that option maybe?

Isn't that a file inside the container? I can't even make it without Waydroid enabled. Plus how would that fix the error coming from NixOS? I'm using a Flake so there's no way for it to purely get to that file.

But how do I change that when I can't even enable Waydroid in the first place?

Have you tried to create that file first and then try to enable that option maybe?

This is not how nix nor the module system works. Creating some random file on the filesystem does not influence evaluation, and has nothing to do with the assertions in https://github.com/NixOS/nixpkgs/blob/nixos-23.05/nixos/modules/virtualisation/waydroid.nix#L37. If you have another idea, fine, but let's drop this idea about enabling memfd via some random file in /var/lib.

@RossComputerGuy there seems to be something weird about nixos-apple-silicon's kernel. It does not parse extraStructuredConfig. But it does use extraConfig https://github.com/tpwrules/nixos-apple-silicon/blob/main/apple-silicon-support/packages/linux-asahi/default.nix#L41-L42. Concerning ASHMEM, I think we can remove the check and replace it with MEMFD_CREATE. That may be a bit paranoid because it's enabled by default on all NixOS kernels newer than v4.18

  boot.kernelPatches = [{
    name = "waydroid";
    patch = null;
    extraConfig = ''
      ANDROID_BINDER_IPC y
      ANDROID_BINDERFS y
      ANDROID_BINDER_DEVICES binder,hwbinder,vndbinder
      CONFIG_ASHMEM y
      CONFIG_ANDROID_BINDERFS y
      CONFIG_ANDROID_BINDER_IPC y
    '';
  }];

I got it to not assert now.


Adding the segment package makes dbt ignore custom schemas and sends all models to default schema

Describe the bug
Adding the segment package makes dbt ignore custom schemas and sends all models to default schema
Steps to reproduce
This is the code that we've added in dbt_project.yml:
vars:
  segment:
    #where the raw data to be used in the package lives
    segment_page_views_table: "{{ ref('segment_pageview') }}"
    #sessionization inactivity cutoff where there is a gap in pageview times. If it exceeds this number of seconds it will start a new session - in this case 30 mins * 60 seconds
    segment_inactivity_cutoff: 30 * 60

models:
  segment:
    +schema: chnl_segment_sessions
    +tags: 'daily'

We are using get_custom_schema.sql and generate_schema_name_for_env.sql macros to specify custom schemas.
Before adding the segment package the custom schemas worked fine.
Expected results
We would expect the models to be created in the custom schemas and the new segment models to be created in schema chnl_segment_sessions
Actual results
All models are created in the dbt schema, despite having a custom schema configured
System information
The contents of your packages.yml file:
packages:
  - package: fishtown-analytics/dbt_utils
    version: 0.6.2
  - package: fishtown-analytics/segment
    version: 0.5.1

Which database are you using dbt with?

[ ] postgres
[ ] redshift
[ ] bigquery
snowflake
[ ] other (specify: ____________)

The output of dbt --version:
installed version: 0.18.0
   latest version: 0.18.1

Your version of dbt is out of date! You can find instructions for upgrading here:
https://docs.getdbt.com/docs/installation

Plugins:
  - bigquery: 0.18.0
  - snowflake: 0.18.0
  - redshift: 0.18.0
  - postgres: 0.18.0

The operating system you're using:
Docker container with python:3.7
The output of python --version:
Python 3.7.7

We are using get_custom_schema.sql and generate_schema_name_for_env.sql macros to specify custom schemas.

I take it you're using the approach outlined here. Following that pattern, I'd expect that dbt would create models in the default schema in development, and in custom schemas in production. Are you seeing that behavior when you run with target name prod?

Yes, we are using the approach outlined in the link.
Initially we were using the default schema in development, and custom schemas in production. But since we migrated to Snowflake we are using custom schemas in all envs, only the database name changes depending on the env.
We see the described behaviour in all envs (including prod)

I did some further investigation and it turns out that the issue was in our dbt_project.yml file.
We added a second "models" section in the file. It seems like this makes dbt ignore the first models section where we specify the custom schema names.
If I add the segment models config to the rest of the models config, it works fine.


WebSocket client error: Failed reading HTTP status line

After updating to version 03.30.16, this error comes up and no longer switches input.  Verbose doesn't display any additional information.
[info   ] Switching LGTV to input: HDMI_1
[ERROR  ] In device event listener: WebSocket client error: Failed reading HTTP status line from ws://xxx.xxx.xxx.xxx:3000 (retries: 0, wait time: 0.000000 ms, HTTP status: 0)

In the latest firmware update LG appears to have changed the way clients can connect to the TV, as evidenced by various other tools being forced to make changes (for example bscpylgtv, LGTVCompanion).
Looking at the changes, it looks like the WebSocket port has changed from 3000 to 3001, and the use of SSL/TLS is now required.
Interestingly, it could very well be that LGTVDeviceListener can already do this with no changes, as I suspect it's already built with SSL support, if memory serves me right.
Can you try the following command and report back:
LGTVDeviceListener.exe --verbose --url wss://xxx.xxx.xxx.xxx:3001

It's basically the same as before except the use of wss: instead of ws: and port 3000 is changed to 3001.
I'm not sure it will work because it might try to verify certificates which will likely fail. In that case I'd need to take a closer look and make some changes.

I just tried the above myself and yeah, as expected it doesn't quite work:
[ERROR  ] FATAL: WebSocket client error: Unable to connect to pegasus-lgtv.home.edechamps.fr on port 3001, error: error in handshake : X509 - Certificate verification failed, e.g. CRL, CA or signature check failed (retries: 0, wait time: 0.000000 ms, HTTP status: 0)

I'll need to find a way to disable certificate verification.

This is fixed in LGTVDeviceListener 0.2.
Note the updated instructions which use a different URL - wss://xxx.xxx.xxx.xxx:3001 should be used instead of ws://xxx.xxx.xxx.xxx:3000 for LGTVDeviceListener to work with latest LG firmware versions. If you are running as a service, you will want to delete the service and then re-create it with the new URL.

Thanks for fixing this so quickly!


error "Module not found: Error: Can't resolve 'fs'" when used with webpack

I try to use css-validator with webpack and when building, I get:
Module not found: Error: Can't resolve 'fs'
in both form-data and mime modules.
Complete error log is:
ERROR in ./~/form-data/lib/form_data.js
Module not found: Error: Can't resolve 'fs' in '/Users/dufourd/IdeaProjects/MPAT-core/web/app/plugins/mpat-explorer/node_modules/form-data/lib'
@ ./~/form-data/lib/form_data.js 8:9-22
@ ./~/css-validator/lib/validation-stream.js
@ ./~/css-validator/lib/css-validator.js
@ ./js/main.js
@ multi ./js/main.js ./js/cloneLayout.js
ERROR in ./~/mime/mime.js
Module not found: Error: Can't resolve 'fs' in '/Users/dufourd/IdeaProjects/MPAT-core/web/app/plugins/mpat-explorer/node_modules/mime'
@ ./~/mime/mime.js 4:9-22
@ ./~/form-data/lib/form_data.js
@ ./~/css-validator/lib/validation-stream.js
@ ./~/css-validator/lib/css-validator.js
@ ./js/main.js
@ multi ./js/main.js ./js/cloneLayout.js
The css-validator CLI works.
Ideas ?
Thanks

obviously, this module was done for node.js and not for use in a page, so webpack cannot work...
If it did, the problem would be CORS...

@jcdufourd  Does wc3 prevent x-origin? I can't see why they would.

@jcdufourd  Does wc3 prevent x-origin? I can't see why they would.

The issue is not preventing CORS but allowing it. By default, the security model prevents site A from accessing site B content (e.g. Google can't request your Facebook profile).
To counteract that, sites explicitly allow this via a response header (i.e. Access-Control-Allow-Origin)
https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#the_http_response_headers
That being said, it looks like since 2017 W3C does respond with a CORS header now (tested with "direct input" method) so glad to reopen this issue under the title "Add browser support" (preferably a new issue though) or accept a PR for it

The issue is not preventing CORS but allowing it. By default, the security model prevents site A from accessing site B content (e.g. Google can't request your Facebook profile).
To counteract that, sites explicitly allow this via a response header (i.e. Access-Control-Allow-Origin)
https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#the_http_response_headers
That being said, it looks like since 2017 W3C does respond with a CORS header now (tested with "direct input" method) so glad to reopen this issue under the title "Add browser support" (preferably a new issue though) or accept a PR for it

Sorry, I am not working on that project any more.

Sorry, I am not working on that project any more.


feat: Switch Group widget

Description
Allow users to create a list of switch widgets so that they can easily use them in a form.
Fixes #3350
Type of change

New feature (non-breaking change which adds functionality)
This change requires a documentation update

How Has This Been Tested?

Test A
Test B

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes

Figma link to the icon
https://www.figma.com/file/ATfTB5F9Q7ZiI0yYckuXW7/Deprecated-Design-System?node-id=72%3A8452
Test coverage results :test_tube:
:green_circle: Total coverage has increased
// Code coverage diff between base branch:release and head branch: feature/3350-switch-group-widget

Status
File
% Stmts
% Branch
% Funcs
% Lines

:green_circle:
total
54.63 (0)
36.32 (-0.01)
33.1 (0.02)
55.16 (0.01)

:green_circle:
app/client/src/utils/AppsmithUtils.tsx
58.25 (2.13)
36.96 (2.87)
37.78 (2.9)
53.67 (2.48)

:sparkles: :new:
app/client/src/widgets/SwitchGroupWidget/index.ts
100
100
100
100

:sparkles: :new:
app/client/src/widgets/SwitchGroupWidget/component/index.tsx
28
16.67
0
36.84

:sparkles: :new:
app/client/src/widgets/SwitchGroupWidget/widget/index.tsx
52.5
0
60
52.63

@wmdev0808 feedback from the deploy preview:

The switch widget does not function, cant change value (happens until we add a new option)
The default widget size on drag and drop should be minimum rows
Adding new item crashes the app (critical issue)
The accessibility to the key / value pair should be similar compared to the checkbox group / radio group
A default selected option should be provided
The icon for the widget needs to be created
Expose required API
Maintain the property order (consistent to other group widgets)

Here is the icon design: https://www.figma.com/file/i80YbQLLs5mXthjIHclPpX/Appsmith-Design-System?node-id=3172%3A13666

@momcilo-appsmith i think we need the light version of the icon, the color doesn't match others, From the same file attached can you create the light version, Like done for others?

Here is the light version: https://www.figma.com/file/i80YbQLLs5mXthjIHclPpX/Appsmith-Design-System?node-id=3253%3A13655. Attached to the issue as well.

@riodeuno kindly review the changes here

@vivekverma2312 we might want to start QA for this widget.

@wmdev0808 @somangshu Found some issues with the widget, some of these could exist in other widgets as well. These need triaging.

[ ] When we have the same or empty values for two options, the widget goes blank

[ ] When we start typing in the options' JS input, the widget crashes.

[ ] Due to the string validation special chars are not accepted in the validation of the default values. We can either update the validation to allow for these characters or disallow these types of values to be set in the options.

[ ] The icon needs to be updated

[ ] There is some strange background in the options fields

/ok-to-test sha=55f79ec

https://github.com/appsmithorg/appsmith/actions/runs/1424854034

/ok-to-test sha=89bbda1

https://github.com/appsmithorg/appsmith/actions/runs/1425066219

/ok-to-test sha=30cd610

https://github.com/appsmithorg/appsmith/actions/runs/1436590807

The icon needs to be updated. @somangshu Please help out with the icon.

The code overall looks fine to me.
@YogeshJayaseelan Please test this widget out thoroughly. We will want to provide odd values to the options and default values and find expected results. Another approach for testing would be to bind the defaultValues of the switch widget with a multi-select or checkboxgroup widget, to see if the switch widget reacts accordingly.

@riodeuno please approve the code if it looks good
@momcilo-appsmith @UXFalcon we need to the icon for this

@somangshu There are merge conflicts and the icon needs to be updated. These changes are needed before approval.

/ok-to-test sha=1384ca3

https://github.com/appsmithorg/appsmith/actions/runs/1471539634

New link for the icon: https://www.figma.com/file/ATfTB5F9Q7ZiI0yYckuXW7/Deprecated-Design-System?node-id=72%3A8452

/ok-to-test sha=bd54e9e

https://github.com/appsmithorg/appsmith/actions/runs/1471936874

/ok-to-test sha=3cc00af

/ok-to-test sha=a52cc59

/ok-to-test sha=c6167d4

/ok-to-test sha=e3709ed

/ok-to-test sha=1e6e865

@wmdev0808 we have the icon from the design system. Kindly replace the old one
https://www.figma.com/file/ATfTB5F9Q7ZiI0yYckuXW7/Deprecated-Design-System?node-id=72%3A8452
Let me know if you have a problem accessing

@wmdev0808 we have the icon from the design system. Kindly replace the old one https://www.figma.com/file/ATfTB5F9Q7ZiI0yYckuXW7/Deprecated-Design-System?node-id=72%3A8452
Let me know if you have a problem accessing

@somangshu I've already replaced it in the previous commit

@wmdev0808 related test is failing, check this out

Icon change verified and looks good to me.
@riodeuno I am moving this to needsQA, will need one final approval from you before merging

/ok-to-test sha=facdec4

@wmdev0808 - Started testing this feature and came up with the below issues and testing is in-progress
Issue 1 - When the user starts typing in the Option JS the widget crashes and throws - Cannot read properties of undefined (reading,'length') in the console log
when {{null}} value is passed in option - Cannot read properties of null (reading,'length') in the console log
https://www.loom.com/share/2dabe9e331794625842dc1b3b94d5fef
Issue 2 - Icon is not displayed in the entity explorer when the switch widget is dragged and dropped to the canvas
https://loom.com/share/10d9b7a939194301b9ed4b7e393efe10

@wmdev0808 - Started testing this feature and came up with the below issues and testing is in-progress
Issue 1 - When the user starts typing in the Option JS the widget crashes and throws - Cannot read properties of undefined (reading,'length') in the console log
when {{null}} value is passed in option - Cannot read properties of null (reading,'length') in the console log

Issue 2 - Icon is not displayed in the entity explorer when the switch widget is dragged and dropped to the canvas
https://loom.com/share/10d9b7a939194301b9ed4b7e393efe10
Issue 3 - The evaluated values are not aligned properly when the default option values ate not separated by a comma

Issue 4 - Disabling the switch button - the toggle appears in blue colour

@YogeshJayaseelan ,

Issue 3: I think Evaluated value is only aligned properly if the evaluation of the value is done without error.
If you don't agree on it, please provide any other widget example with the same use case
Issue 4: I cannot reproduce it

/ok-to-test sha=136216b

@wmdev0808 For issue 4 - When you mouse hover on the switch toggle then the mouse pointer icon will be displayed then click on the toggle to observe the blue colour
Issue 5 - Switch button left and Right Alignment functionality is not available  - comparing with switch widget

/ok-to-test sha=b007f8f

@wmdev0808 Verified the issue fix and they are working as expected.
Issue 1 - Fixed,
Issue 2 - Fixed,
Issue 3 - Fixed,
Issue 4 - Not in scope
Issue 5 - Fixed

/ok-to-test sha=d2ad822


[NEW ALGORITHM] Optimal Page Replacement Algorithm

Issue will be closed if:

You mention more than one algorithm. You can create a separate issue for each algorithm once the current one is completed.
You propose an algorithm that is already present or has been mentioned in a previous issue.
You create a new issue without completing your previous issue.

Note: These actions will be taken seriously. Failure to follow the guidelines may result in the immediate closure of your issue.

Name:
[NEW ALGORITHM]  Optimal Page Replacement Algorithm
About:
The Optimal Page Replacement algorithm is a page replacement strategy in demand paging systems, which aims to minimize page faults by replacing the page that will not be needed for the longest time in the future. It checks each page request sequentially, and if the page isn’t already in the frame, it identifies the page to be replaced by looking ahead to find the one used farthest in the future. This approach ensures minimal disruptions, though it’s impractical in real-time systems as it requires future knowledge of requests.
Labels:
new algorithm, gssoc-ext, hacktoberfest, level1

Assignees:

[X] Contributor in GSSoC-ext
[X] Want to work on it

@pankaj-bind Kindly Assign this issue to me.


Transitioning from CalibrationScene to TrackingScene sometimes disables all stimulation?

This was first observed during a meeting, where, upon loading in to the TrackingScene after finishing the calibration step, the glove would not stimulate at all upon contact with the ball.
No errors were logged to the console, but also no commands were sent to the stimulator at all aside from periodic heart beats.
Will respond here if I'm able to reproduce on my machine, otherwise the issue will be closed until it resurfaces again. This is most likely an issue with the Ardity integration.

Upon further thought, this issue was only observed when @mathiassand was wearing the tactility gloves. Maybe if we just ban him from interacting with the gloves in the future we can consider this bug resolved. 😉

He is already on the blacklist :)


Breakpoints are not hit in Godot 4 Beta 1

When using Godot 4 Beta 1 and the Godot Plugin in Rider, I can set breakpoints, but when starting the project via the debug button, it says ... okay well. In the last version it was still running, but the breakpoints were greyed out. I just updated the godot plugin, and now it outright says the profile is not supported.

Okay, there now is two profiles each, one with the godot logo, and the other profiles work, including hitting breakpoints and stuff. thanks!

Yeah, it makes sense to remove the old configurations automatically for Godot_net6, but need to keep them, in case of Godot 3.5.
Haven't yet found a good solution.


fix FileIO deprecation

Getting deprecation warnings from FileIO, here's the fix.

bump

bump

@eschnett , pinging in case you are not watching the repo

Thanks!
Does this still work with Julia 1.5?

Didn't check 1.5.

1.5 was broken for other reasons anyway, I updated the compat section to require 1.6.


router: cleaning up some exceptions

Risk Level: low
Testing: updated tests
Docs Changes: n/a
Release Notes: n/a
https://github.com/envoyproxy/envoy-mobile/issues/176

/retest

cc @yanavlasov needs merge stamp

@yanavlasov  Friendly ping :) (as maintainer on-call responsibility).
Please take a look when you get a chance, I know you were OOO last week.


Feat: const fixed size arrays

See issue https://github.com/kkrt-labs/kakarot-ssj/issues/806.
The first commit uses const fixed-size arrays in the code while the second one uses const fixed-size arrays in tests.
Pull Request type

Please check the type of change your PR introduces:

[ ] Bugfix
[X] Feature
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no API changes)
[ ] Build-related changes
[ ] Documentation content changes
[ ] Other (please describe):

Does this introduce a breaking change?

[ ] Yes
[X] No

This change is

can you also adapt pow2 and pow256_rev ?

Yes, done 👍