rule already registered

When i reload a page that uses a drip form with a custom validation rule i get the error that the rule is already register and the component fails to load. Not sure how i should set everything up to prevent this...
My setup is as follows (redacted a bit for brevity):
import React from 'react';
import PropTypes from 'prop-types';
import { dripForm, Validator } from 'react-drip-form';

Validator.registerRule(
  'password_matches',
  (value, params, field, values) => value === values.password,
);

const EmailPasswordForm = dripForm({
  validations: {
    email: {
      required: true,
      email: true,
    },
    password: {
      required: true,
      min: 6,
    },
    password_confirm: {
      required: true,
      min: 6,
      password_matches: true,
    },
  },
  messages: {
    email: {
      required: 'Please enter your email address',
      email: 'This is not a valid email address',
    },
    password: {
      required: 'Please enter your password',
      min: 'Your password needs to be at least 6 characters',
    },
    password_confirm: {
      required: 'Please enter your password again',
      min: 'Your password needs to be at least 6 characters',
      password_matches: 'Enter the same password twice',
    },
  },
})(({ handlers, error, meta: { pristine, invalid, validating } }) => (
  <form onSubmit={handlers.onSubmit}>
    <FieldContainer>
      <Label htmlFor="email">
        Email *
      </Label>
      <Input type="text" id="email" name="email" />
    </FieldContainer>
    <FieldContainer>
      <Label htmlFor="password">
       Password *
      </Label>
      <Input type="password" id="password" name="password" />
    </FieldContainer>
    <FieldContainer>
      <Label htmlFor="password_confirm">
        Confirm Password *
      </Label>
      <Input type="password" id="password_confirm" name="password_confirm" />
    </FieldContainer>

    <Button
      color="blue"
      primary
      onClick={handlers.onSubmit}
      disabled={pristine || invalid || validating}
    >
       Register
    </Button>
    <Error error={error} />
  </form>
));

Fist time it loads it's fine. But when i use browser refresh on this form the console, sometimes not always strangely, says the asyncComponent failed to load due to password_confirm being defined already.

Hi @tijs, Thank you for Issues.
Even if I tried the code your presented, no error occurred :cry:
If possible, it will be a great help if you share the minimal code (repository) that can reproduce the error :+1:
Thanks.

yeah sorry, i tried to some up with an easy way to reproduce it but could not either. the trouble is that we did not get always get the error. for now i've simply stopped using custom validations but that is of course not the best solution. is it also possible to simply pass a validation function directly to the validations config object instead of registering it? That might fix it for now as well.

@tijs

it also possible to simply pass a validation function directly to the validations config object instead of registering it?

Yes :+1:
In react-drip-form you can pass the function directly to validations as follows:
// Validator.registerRule(
//   'password_matches',
//   (value, params, field, values) => value === values.password,
// );

const EmailPasswordForm = dripForm({
  validations: {
    password_confirm: {
      // Pass a direct function
      password_matches: (value, params, field, values) => value === values.password,
    },
  },
  messages: {
    password_confirm: {
      password_matches: 'Enter the same password twice',
    },
  },
})(({ handlers, error, meta: { pristine, invalid, validating } }) => (
  <form onSubmit={handlers.onSubmit}>
    {/* ... */}
  </form>
));

Ah that is great! I will use that and close this for now then. If i run into anything similar again i will try and create a better reproducible issue next time!

@tijs Thank you for confirmation :pray:  I am waiting for Issues :)


Update cargo lock file to prepare for release

In preparation for the 0.5.0 release this commit updates the cargo lock
file with the latest versions of all the dependencies. This will make
sure the versions for reproducible builds are up to date and have the
latest bug fixes.

Pull Request Test Coverage Report for Build 261060240

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

Totals

Change from base Build 260108691:
0.0%

Covered Lines:
2127

Relevant Lines:
2277

💛  - Coveralls


iOS Chrome Browser not loading.

Page never loads in iOS Chrome browser (maybe related to Twitter not loading the page)

It appears the mobile apps, Chrome browser and Twitter web views, stored an old "bad" version of the page where it is stuck on the loading screen.  Issues were resolved by deleting and reinstalling the apps.  Need a better process to handle failures.

It appears the mobile apps, Chrome browser and Twitter web views, stored an old "bad" version of the page where it is stuck on the loading screen.  Issues were resolved by deleting and reinstalling the apps.  Need a better process to handle failures.


Upgrade to support next next version, support rendering images

@kt-sygo092, this should fix your problems

Will do @ijjk, thanks!


Add phases to Nue's last spell

Description
This PR adds phase selection for Nue's last spell card
Changes

Allow selecting all four phases
Utilize ECLJumpEx and ECLSetHealth for all phases

Related issues
https://github.com/touhouworldcup/thprac/issues/26

Could you verify compatibility with replays from the current stable version of thprac?

Could you verify compatibility with replays from the current stable version of thprac?

OK, will do


Bullet point of text area going over the top of other component

I noticed that the bullet point sometimes doesn't stay where it is. Need to investigate!

Fixed by creating a material ui variation of the bullet text area


AzCopy example - Backup / Synchronize folders

A GREAT example that should be included is how to use AzCopy to backup files from a local folder, but only those files which are newer than what is already in blob storage.  This was feasible with AzCopy v8 using the /XO switch to exclude old files but I cannot see how to do such conditional copying with AzCopy v10.

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

ID: 15911160-5ba2-fb0a-0b24-16b3857e20ce
Version Independent ID: d925bc9f-f825-2f82-168c-6c30d716b9ce
Content: Copy or move data to Azure Storage by using AzCopy v10 (Preview)
Content Source: articles/storage/common/storage-use-azcopy-v10.md
Service: storage
GitHub Login: @artemuwka
Microsoft Alias: artemuwka

@lesterw1 Thanks for your feedback! We will investigate and update as appropriate.

@lesterw1  Just for clarification:  Have you referred to the suggestion mentioned in the GitHub Link

@lesterw1 Since we have not heard back from you we will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly reopen the issue and continue the discussion.


KAFKA-15746: KRaft support in ControllerMutationQuotaTest

Added KRaft support to ControllerMutationQuotaTest.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

@mimaison Hello, PTAL.
To replace an irrelevant https://github.com/apache/kafka/pull/15038

@chia7712 Hello, can you take a look?


XPS 7590 can not adjust bright by function key, fixed

I have a DELL XPS 7590 oled screen, use Nvidia 1650 graphic card. and running OS Ubuntu 18.04.
Following install, everything is ok but can not adjust brightness by function key (small-sun key and big-sun key),
I changed one line in icc-brightness file in line about 20:
BACKLIGHT_PATH = '/sys/devices/platform/dell-laptop/backlight/dell_backlight'
And after re-login, the function key is running.
It looks DELL OLED screen laptop maybe have this problem.
Your prject is prefect!
Thank you!

Hi,
Same laptop and same issue, your fix unfortunately does not solve the problem at all for me.

same XPS laptop, worked perfectly for me! thanks!
Although I have noticed laptop is quite slower to load items on the sidebar.


Bug report: Brew cask issues in Fedora 23 Linux

Description of issue
I've been wrestling with this issue for the last couple hours.  I've uninstalled homebrew and reinstalled it a couple times too.  I'm running newest version of Fedora 23 Linux and having trouble configuring CASK.  Here's a typical error I keep getting
I get this every time I use "cask" in a command line phrase.  I've tried the instructions as shown in the above messages and I've gone through the instructions all this github page, homebrew/linux and caskroom.io  Still can't get it working.
Any help would be greatly appreciated.
Thanks!
Output of brew cask <command> --verbose
[djenkins@wag2-174-110 local]$ brew cask install google-chrome --verbose
Error: Permission denied @ dir_s_mkdir - /Library
  Most likely, this means you have an outdated version of homebrew-cask. Please run:

      brew uninstall --force brew-cask; brew untap phinze/cask; brew update; brew cleanup; brew cask cleanup

  If this doesn’t fix the problem, please report this bug:

      https://github.com/caskroom/homebrew-cask#reporting-bugs

/usr/share/ruby/fileutils.rb:252:in `mkdir'
/usr/share/ruby/fileutils.rb:252:in `fu_mkdir'
/usr/share/ruby/fileutils.rb:226:in `block (2 levels) in mkdir_p'
/usr/share/ruby/fileutils.rb:224:in `reverse_each'
/usr/share/ruby/fileutils.rb:224:in `block in mkdir_p'
/usr/share/ruby/fileutils.rb:210:in `each'
/usr/share/ruby/fileutils.rb:210:in `mkdir_p'
/usr/share/ruby/pathname.rb:564:in `mkpath'
/home/djenkins/.linuxbrew/Library/Taps/caskroom/homebrew-cask/lib/vendor/homebrew-fork/global.rb:18:in `mkpath'
/home/djenkins/.linuxbrew/Library/Taps/caskroom/homebrew-cask/lib/hbc.rb:57:in `init'
/home/djenkins/.linuxbrew/Library/Taps/caskroom/homebrew-cask/lib/hbc/cli.rb:115:in `process'
/home/djenkins/.linuxbrew/Library/Taps/caskroom/homebrew-cask/cmd/brew-cask.rb:26:in `<top (required)>'
/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in `require'
/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in `require'
/home/djenkins/.linuxbrew/Library/brew.rb:25:in `require?'
/home/djenkins/.linuxbrew/Library/brew.rb:91:in `<main>'
Error: Kernel.exit

Output of brew doctor
[djenkins@wag2-174-110 local]$ brew doctor
Your system is ready to brew.

Output of brew cask doctor
[djenkins@wag2-174-110 local]$ brew cask doctor
==> Tapping caskroom/cask
Cloning into '/home/djenkins/.linuxbrew/Library/Taps/caskroom/homebrew-cask'...
remote: Counting objects: 3447, done.
remote: Compressing objects: 100% (3402/3402), done.
remote: Total 3447 (delta 65), reused 245 (delta 23), pack-reused 0
Receiving objects: 100% (3447/3447), 5.87 MiB | 11.56 MiB/s, done.
Resolving deltas: 100% (65/65), done.
Checking connectivity... done.
Tapped 1 formula (3,413 files, 13.3M)
Error: Permission denied @ dir_s_mkdir - /Library
  Most likely, this means you have an outdated version of homebrew-cask. Please run:

      brew uninstall --force brew-cask; brew untap phinze/cask; brew update; brew cleanup; brew cask cleanup

  If this doesn’t fix the problem, please report this bug:

      https://github.com/caskroom/homebrew-cask#reporting-bugs

/usr/share/ruby/fileutils.rb:252:in `mkdir'
/usr/share/ruby/fileutils.rb:252:in `fu_mkdir'
/usr/share/ruby/fileutils.rb:226:in `block (2 levels) in mkdir_p'
/usr/share/ruby/fileutils.rb:224:in `reverse_each'
/usr/share/ruby/fileutils.rb:224:in `block in mkdir_p'
/usr/share/ruby/fileutils.rb:210:in `each'
/usr/share/ruby/fileutils.rb:210:in `mkdir_p'
/usr/share/ruby/pathname.rb:564:in `mkpath'
/home/djenkins/.linuxbrew/Library/Taps/caskroom/homebrew-cask/lib/vendor/homebrew-fork/global.rb:18:in `mkpath'
/home/djenkins/.linuxbrew/Library/Taps/caskroom/homebrew-cask/lib/hbc.rb:57:in `init'
/home/djenkins/.linuxbrew/Library/Taps/caskroom/homebrew-cask/lib/hbc/cli.rb:115:in `process'
/home/djenkins/.linuxbrew/Library/Taps/caskroom/homebrew-cask/cmd/brew-cask.rb:26:in `<top (required)>'
/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in `require'
/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in `require'
/home/djenkins/.linuxbrew/Library/brew.rb:25:in `require?'
/home/djenkins/.linuxbrew/Library/brew.rb:91:in `<main>'

Duplicate of #16835 (see https://github.com/caskroom/homebrew-cask/issues/16835#issuecomment-170941290). brew-cask runs only on OS X.

@tsparber is correct, but I'm curious, since this is apparently becoming a trend: why did you expect to be able to use Homebrew-Cask on Linux? I think it's pretty clear from the readme that we are exclusively for OSX, but if that's not the case, we should make it even clearer somehow.


Flutter automatic installation error

The following error occurs when I create a Windows desktop application and call Flutter_libserialport: ^0.2.3  :
[libserialport] flutter pub get
Running "flutter pub get" in libserialport...
Because libserialport depends on flutter_libserialport ^0.2.3 which depends on libserialport ^0.2.0, libserialport ^0.2.0 is required.
So, because libserialport is 1.0.0+1, version solving failed.
pub get failed (1; So, because libserialport is 1.0.0+1, version solving failed.)
exit code 1

this is fixed in 0.4.0


[pre-ll] Support HLSL semantic indexes (alternate)

Alternate implementation to https://github.com/gfx-rs/gfx/pull/2747/files.
Introduces a struct that can be converted to and from a packed String.

"TEXCOORD" -> { name: "TEXCOORD", index: 0 } -> "TEXCOORD0"
"TEXCOORD0" <-> { name: "TEXCOORD", index: 0 }
"TEXCOORD1" <-> { name: "TEXCOORD", index: 1 }

On link_input, we will try linking against "TEXCOORD0" (also "TEXCOORD" if the semantic index is 0, in the case that the user did not explicitly provide the semantic index, esp. for GLSL compatibility).

@msiglreith I'm leaning towards merging this (instead of #2747) because it's non-API-breaking. Any concerns you could foresee?

Looks reasonable to me. I don't see any immediate issue with this.

bors r=kvark,msiglreith

bors r=kvark,msiglreith

Whoops! Let me move this onto the gfx repo, I set this on my own fork to avoid crowding the gfx repo


⚠ Bofrost.es has degraded performance

In 0394b2e, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 2004 ms

Resolved: Bofrost.es performance has improved in edbfb94.


Build task failing because Adobe Animate not found

I've tried setting "as3mxml.sdk.animate": "C:\\Program Files\\Adobe\\Adobe Animate 2024\\Animate.exe" in VSCode's settings.json file but that hasn't helped at all. Is there something I am missing? My asconfig.json looks like this:
{
	"animateOptions": {
		"file": "basic.fla"
	},
	"compilerOptions": {
		"source-path": [
			"src"
		]
	},
	"mainClass": "basic_Main"
}

Thanks! Also unrelated but is it somehow possible to define multiple fla files in the same asconfig?

Nvm.... I thought the file field for the fla was relative based on the source-path field. I've moved the fla file out of the src folder and now it finds adobe animate.

Also unrelated but is it somehow possible to define multiple fla files in the same asconfig?

No, but you can create multiple asconfig files. Just add an extra . and string before the file extension, like asconfig.customstring.json.

Also unrelated but is it somehow possible to define multiple fla files in the same asconfig?

No, but you can create multiple asconfig files. Just add an extra . and string before the file extension, like asconfig.customstring.json.

Oh awesome, thank you!


Add Remote Start button for Washer Devices

Add Remote Start button (tested on ThinqV1 devices)
Change Power Off switch to Power switch (breaking change)
Use Power switch to wake-up device from stand-by (tested on ThinqV1 devices)
Fix issue on ThinqV1 devices that could cause loss of connection

Thanks, these controls are a welcome addition, but they appear to be unavailable for me :-(

@purcell-lab,
this is a closed PR, please open a new issue.
In any case as explained in release note:

power-off switch can be removed because is replaced by power switch
power switch is available only when device is on or in stand-by mode (not when off, not possible to remotely turn on the device)
remote start button is available only when remote start mode is enabled from device panel.

Basically same options also available in ThinQ app

Thanks user error on my behalf.  All good here and this will work nicely with my excess solar integration.
Load washer, switch to remote start mode, then HA can switch on later in the day when energy is cheap and green.


compatible versions

May I ask what are the compatible versions between mistree, pc-skeletor and Nmupy?

Did you solve your problem?


Include py.typed file for third-party checking

It looks like the package is very well typed, but since there is no py.typed file included mypy can't type-check box as a third-party import.

Never even realized that was a requirement for that, thanks for heads up!


[proposal] Support EulerOS

What is your proposal:
Support EulerOS
Why is this needed:
EulerOS also has cgroup features like cpu.qos_level memory.qos_level to get different qos for different workloads, and it's open-sourced.
AnolisOS is not always available. If koordinator supports more OS(AnolisOS, EulerOS, TencentOS, ...), it can be more widely adopted.
Is there a suggested solution, if so, please add it:

sounds good.
contribution is welcomed if you have any interest.


Rancher Dashboard UI does not have continuous delivery option (fleet)

@2432234085 Please can you update the description with answers to the github issue template. There's not enough information here for us to investigate

我在 kubectl 1.24.1 上使用helm安装Rancher 2.7.1。
我能够登录到仪表板，但菜单中有持续交付。如何使用fleetas gitops将资源部署到Rancher管理的K8S集群？

我在 kubectl 1.24.1 上使用 helm 安装 Rancher 2.7.1。
我能够登录到仪表板，但菜单中有持续支付。如何使用 fleetas gitops 将资源部配置到 Rancher 管理的 K8S 集群？

I installed Rancher 2.7.1 using helm on kubectl 1.24.1.
I am able to log in to the dashboard but there are ongoing payments in the menu. How to use fleetas gitops to configure the resource department to the K8S cluster managed by Rancher?

Fleet resources are installed in the local cluster. Once they're successfully up and running the fleet menu it Continuous Delivery will appear in the side bar menu. It's worth double checking those


If flutter start fails because of INSTALL_FAILED_NO_MATCHING_ABIS, no error is displayed

Trying to run against genymotion, and when I run flutter start, here's what I see:
~/flutter/testme $ flutter start
Installing SkyShell.apk on device.
~/flutter/testme $

But nothing happens.
If I run with --very-verbose, then I see Failure [INSTALL_FAILED_NO_MATCHING_ABIS] and Error type 3 and Error: Activity class {org.domokit.sky.shell/org.domokit.sky.shell.SkyActivity} does not exist. amongst the output.
Can we detect the error/failure, and tell the developer something like "Sorry, something went wrong. Please re-run this command with --very-verbose, copy the output, and paste it into a new issue: https://github.com/flutter/flutter/issues"
Thanks!

@jason-simmons fixed our builders to produce Android x86 and x64 builds so we should no longer hit this in the common case.  I'm not sure if we give a better error message now, but it should be way harder to hit this at least.


Relax racy fairness test

Fixes #477

This looks good to me, but seems like CI is broken. I'm inclined to merge anyway and take care of that later...

seems like CI is broken

It seems due to signal-hook's MSRV was increased to 1.31: https://github.com/vorner/signal-hook/commit/e63edcf55f94ba33f8f884948b610b3cad74c86d

It seems due to signal-hook's MSRV was increased to 1.31: vorner/signal-hook@e63edcf

So we need to either:

Downgrade signal-hook's patch version in MSRV CI (add cargo update -p signal-hook --precise 0.1.13):
https://github.com/crossbeam-rs/crossbeam/blob/485971eae072592d07845e387bd5a0df87facbd7/.github/workflows/ci.yml#L40-L44

Bump crossbeam's MSRV to 1.31

One upside of the latter is that it would also mean https://github.com/crossbeam-rs/crossbeam/pull/487 no longer needs to bump the MSRV. But that's definitely minor.

I have tried the first way (downgrade deps) locally, but it seems that the MSRV of so many dependencies is actually increasing, so this seems to be difficult...

One issue here is that the docs say:

The minimum supported Rust version is 1.28. Any change to this is considered a breaking change.

That is a very strict policy. The policy should (probably) instead be "six months" or something? But as it stands, we'd need to issue new major releases of all the crossbeam crates to do that... It also definitely gets weird since people will have to run through all sorts of hoops to actually get it running with 1.28 — so are we even really supporting MSRV 1.28?

I agree with the current policy needs to be changed as suggested in https://github.com/crossbeam-rs/crossbeam/pull/444#discussion_r343737057.

It also definitely gets weird since people will have to run through all sorts of hoops to actually get it running with 1.28 — so are we even really supporting MSRV 1.28?

I mentioned this in https://github.com/crossbeam-rs/crossbeam/pull/428#issuecomment-542269227, but I think it is ok to set MSRV based on the compilable version (without downgrading the dependencies).

Let's merge and fix CI in a follow-up PR.


Your website dosen't load in India

Hi @zimmy9537 , could you please send us more details at<EMAIL_ADDRESS>Your issue seems not to be related to mailtrap-python library.


Set Visual Studio solution filename

If we could change CMakeLists.txt for the superproject then we can set the name of the solution otherwise it is always Boost.sln which is not ideal:
if( NOT DEFINED BOOST_PROJECT_NAME )
  set( BOOST_PROJECT_NAME "Boost" )
endif()
project( ${BOOST_PROJECT_NAME} VERSION 1.82.0 LANGUAGES CXX )

The problem is that if you build more than one solution for different libraries, the Task Manager shows them all with the name Boost and you can't tell one from the other when switching

No, sorry. The project name is significant and changing it just to rename the .sln file is not the right fix. You should ask in the CMake discourse whether there's a way to change the name of the generated .sln file without changing the CMake project name.

Yeah, I'll do that, but note that you are currently calling the resulting project "Boost" no matter what is in it (for example, even if you told cmake to only build one library). Although I guess that's one way of making "Boost" smaller.

https://discourse.cmake.org/t/canonical-way-to-set-the-visual-studio-solution-sln-filename/7482

"Boost" is the name of the superproject. The libraries have their own project names ("boost_lib").

"Boost" is the name of the superproject

Yes well my change renames the superproject...


feat: add method for janus-cli package metadata (simpler PR) - RHIDP-1502

What does this PR do?
feat: add method for janus-cli package metadata (simpler PR) - RHIDP-1502
Signed-off-by: Nick Boldt<EMAIL_ADDRESS>Screenshot/screencast of this PR
N/A
What issues does this PR fix or reference?
N/A (or see commit message above for issue number)
How to test this PR?
N/A
PR Checklist
As the author of this Pull Request I made sure that:

[x] The Eclipse Contributor Agreement is valid
[x] Code produced is complete
[x] Code builds without errors
[ ] Tests are covering the bugfix
[x] The repository devfile is up to date and works, if one exists
[x] Sections What issues does this PR fix or reference and How to test this PR completed
[x] Relevant user documentation updated
[x] Relevant contributing documentation updated
[x] CI/CD changes implemented, documented and communicated

Reviewers
Reviewers, please comment how you tested the PR when approving it.

Given positive feedback in https://github.com/janus-idp/backstage-plugins/pull/1627 (and a lot of silence from the people I would have liked to have a written reply) I'll just merge this and we can iterate. Need this merged so we can use the new method to load up the plugins with new metadata for 1.2


Add migrator to tasks:post scope for executing an analysis

After looking at https://docs.google.com/document/d/1O0tQUoK5naowVpy67TB5RPEgfdEhgguUms2jFY3nJq0/edit
the migrator user will need to create tasks in order to execute an analysis

+1


Modal for unlock not showing when not randomized to meme/altruistic message

Modal for unlock not showing when not randomized to meme/altruistic message

This has been fixed in pull request #68 and #65


Handle findSequenceOnDisk situations where a seq doesn't have a basename (1-2#.jpg)

This merge request addresses an issue with handling sequences that have no basename:
findSequenceOnDisk("path/1-2000#.jpg")
# fileseq.exceptions.FileSeqException: no sequence found on disk matching...

In versions previous to 1.1.3, this would actually not raise an exception, but would resolve a wrong pattern:
findSequenceOnDisk("path/1-2000#.jpg")
# path/01-999@@@.jpg

I've adjusted the disk regex, and the matching logic, and added some tests.

@sqlboy , if there are no objections by the end of the day, I will just merge this and create a 1.1.4 dist.


Inline comment support

As can be seen in test_comment_in_table inline comments are technically supported, just not widely implemented.
For all non-inter-table statements, all comments after a statement are treated as belonging to the next statement, which is not correct.
For the table they are implemented in builder.parse_table_constructor and builder.parse_field_list. This should be generalizable to all other statements

Inline comments are now associated to the correct comment, but not yet saved separately from normal line comments

As such, the following
-- Comment before
return -- Comment line
-- Comment after

is turned into
-- Comment before
-- Comment line
return
-- Comment after


Update checks, creating new ones instead of updating the existing job check

Hello!
In Convert2RHEL, we noticed that the checks for this action are not updating the job itself, but rather, they are creating new ones when the job fails.
We wanted to know if that is the correct behavior, or we are setting something wrong in our usage. We would expect that this action would update the job itself with the status, instead of creating a new one and having a confuse status report under the PR… Currently, we have the job that was executed marked as green, and another check with a red mark related to the same job that ran.
Link for the PR: https://github.com/oamg/convert2rhel/pull/528
The image might not show much, but almost all tests failed in this PR, and if you look in the checks, you will notice that we have it duplicated, one with a green mark because the job finished and one with the red mark because the job failed.

The current behavior @r0x0d explained has another negative side effect. When opening the PR's Checks tab we see all tests as green/passing even if they in fact failed. This is not only misleading but also we can't re-run just the failed tests. There's a button for that in GitHub if some of the tests are reported as failed.

Hi, thank you for creating the issue.

The current behavior @r0x0d explained has another negative side effect. When opening the PR's Checks tab we see all tests as green/passing even if they in fact failed. This is not only misleading but also we can't re-run just the failed tests. There's a button for that in GitHub if some of the tests are reported as failed.

This is intended. When a test fails, its status is red (failed), but overall result of the job is green (meaning all tests have been run and action finished as was expected). In case of some error in the action the overal result of the action is fail - red.
Question is what is the correct approach here. @phracek, any opinion?

In Convert2RHEL, we noticed that the checks for this action are not updating the job itself, but rather, they are creating new ones when the job fails.

I did not run into this issue when running our actions base on testing-farm-as-a-github-action. I need to take closer look at what has happened in your case.

Hi, I think that the double status is caused by the chained calling of the actions in the convert2rhel repository.
IMO firstly the tmt-tests.yml is called which creates first status (https://github.com/oamg/convert2rhel/blob/9a7f1032dcd7df4b18ae7b8415dfa713a0eecae7/.github/workflows/tmt-tests.yml#L86), which is in this case green, as it end with success - reuse-int-tests.yml is called successfully.
Then the testing-farm-as-github-action create its own status - in this case red, as tests failed.
Could that be it?

Hi, @zmiklank! That seems like a very plausible cause… I was wondering if there is no way to tell testing-farm-as-github-action to update an existing check instead of creating a new one.
Not sure how that would work with reusable jobs like this, but, that would be super nice to have.


private replaced to local for support zsh < 5.3

Tested widgets:

fzf-change-dir
fzf-change-recent-dir
fzf-edit-files
fzf-git-add
fzf-git-checkout
fzf-select-widget

private vars scoped current function. local vars scoped current function and inner functions.
Demo:
#!/bin/zsh

test_private() {
    private pb="func"
    test_private_inner
}

test_private_inner() {
    echo "private_inner: pb = $pb"
    private pb="func_inner"
}

echo "pa = $pa"
echo "pb = $pb"
test_private

###

test_local() {
    local lb="func"
    test_local_inner
}

test_local_inner() {
    echo "local_inner: lb = $lb"
    local lb="func_inner"
}

echo "la = $la"
echo "lb = $lb"
test_local

Output:
pa =
pb =
private_inner: pb =
la =
lb =
local_inner: lb = func

After replace private to local all tested widgets begin works on zsh 5.1.1 (Ubuntu 16.04). On older systems (zsh 5.0.2 on Ubuntu 14.04, zsh 4.3.10 on Debian 6) startup errors leaved, but widgets don't inserted results.
On zsh <= 5.0.2 was:
selector-insert:3: unknown file attribute

Fixed by extract variable definition to separate line.
Now all tested widgets except fzf-git-checkout (see #14) works for zsh 5.0.2 and most widgets works for 4.3.10.

LGTM :+1:
Thanks!


12.0.1 - Endless loop in JToken.ToObject from JToken with comments at start

Source/destination types
int[]

Source/destination JSON
// comment
[ 1, 2, 42 ]

Expected behavior
obj set to array of ints.
Actual behavior
Code hangs in endless loop inside Newtonsoft.Json.JsonReader.MoveToContent()
Steps to reproduce
var json = @"// comment
[ 1, 2, 42 ]";
var token = Newtonsoft.Json.Linq.JToken.Parse(json);
var obj = token.ToObject<int[]>();

Confirmed still exist even in 12.0.3-beta1.
The reason it loops because somehow the program fall in a strangeplace where TokenType has only been assingned by _root which happens to be also { comment}.

Fixed.
FYI, this code will actually result in obj being null.
var json = @"// comment
[ 1, 2, 42 ]";
var token = Newtonsoft.Json.Linq.JToken.Parse(json);
var obj = token.ToObject<int[]>();

You want:
var json = @"// comment
[ 1, 2, 42 ]";
var token = Newtonsoft.Json.Linq.JToken.Parse(json, new JLoadSettings { CommentHandling = CommentHandling.Ignore });
var obj = token.ToObject<int[]>();


No progress in optimised checker

As of 543626aed386cb684f7e6bdb76a52cd88c6f6970, compiling german.m with GCC 7.1.0 with anything above -02 results in a checker that never seems to make any initial progress. I haven't yet debugged what the problem is here.

This was fixed in https://github.com/Smattr/rumur/commit/ae5e7b9f8f3e31b32cc157522add0155b1eb7646.


Character encoding problem in Content-Disposition section in HTTP POST body (multipart/form-data requests)

Hi,
I have encountered interesting problem with proxying http post requests - when uploading files.
Content-Type: multipart/form-data is used and form values are each in it's own Content-Disposition section (the format is described here: https://www.w3.org/TR/html401/interact/forms.html#h-<IP_ADDRESS>).
In Content-Disposition header, characters in the filename value are malformed - different than in the original request.
Example from testing:
from the original request:
Content-Disposition: form-data; name="files"; filename="Abby Wynne - Jak se mít dobře.pdf"
Content-Type: application/pdf

from the proxied request:
Content-Disposition: form-data; name="files"; filename="Abby Wynne - Jak se m�t dobre.pdf"
Content-Type: application/pdf

There is problem when using non-ascii characters in file name. Something with character encoding...
Before, I used ProxyKit (https://github.com/proxykit/ProxyKit). It's similar library - there was not this problem. It is not supported so I switched to AspNetCore.Proxy. It works without problems in my project (all traffic from one "light" application goes to other one, instead of some local endpoints).
Could you please throw an eye on this issue? :)
Thanks

Yeah, cool. This is likely an easy fix. Will be even easier if you could add a failing test, and I will debug it.

OK, I will add the test.

Here is pull request for the failing test: #96

Thanks: I should have time to take a look this weekend!

Thanks!

Where are you capturing those files that you diffed?

The reason I ask is because I cannot repro.  When I forward the request to a an endpoint running in the same process by starting a background kestral server, the file name is correct.

@saliksaly, thoughts?

Where are you capturing those files that you diffed?

Hi,
For comparison of behaviour, in all three cases the requests are sent to https://postman-echo.com/post (defined in https://github.com/saliksaly/proxy_http_post_multipard_bad_encoding_test/blob/master/Constants.cs).
You cannot repro? Ty to upload the same file with unicode characters in name in all three forms and you will see the difference...

I think the problem is with postman, as a I said before.  Have you tried this with something other than postman?

No no, it is not the postman's problem.
Try again the test app: https://github.com/saliksaly/proxy_http_post_multipard_bad_encoding_test.
It now sends http posts to local application: https://github.com/saliksaly/proxy_http_post_multipard_bad_encoding_test (http://localhost:5141/file).
Here are the differences:

Post file - direct - file name ok

Post file - through ProxyKit - file name ok

Post file - through AspNetCore.Proxy - file name BAD

Could you try it on your own, please, to see the difference?

That's the confusing part: I did try it on my own, and the IFormFile has the correct file name.

Finally figured it out.  HttpClient uses an old school RFC for Content-Disposition, so I forced the header.

New release is here.

It already works! :-)
Thank you, very much :)


clean up the example directory

it would be nice if each example would be placed in a seperate directory. and maybe a README.md per directory, explaining what this example is about.
currently everything is in one directory. i am afraid this is rather confusing

Separating into directories is a good idea. I've also started to add information about some of them in the main README.md I think that would be a better place for the explanations with proper links to the directory and also to the respective test file.

All of them were moved to to separate directories. Some of them even got new test cases.

Thank you gabor!


Add Task Navigation

Discussed in https://github.com/aljawaid/Glancer/discussions/26

Originally posted by aljawaid January 13, 2023
@creecros Can we add this?  A back (previous numbered task in project) / next (following numbered task in project)
This would save the user from going back to the board etc to get into every task if he creates tasks in bulk as they would be numbered in order.  Even if not, the next button would go through each task to the project.
I'm guessing this would use Pagination but looking at the TaskListController I have absolutely no idea where to start.


⚠ Bofrost.at has degraded performance

In a8d2f3a, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2107 ms

Resolved: Bofrost.at performance has improved in 7c462da after 14 minutes.


whats the different ?

macd= df.ta.macd(close=df['Close'], fast=12, slow=26, signal=9, talib=True, offset=0)
the rsults

s
and
macd= ta.macd(close=df['Close'], fast=12, slow=26, signal=9, talib=True, offset=0)
the result

s
if there is no different way when i use Utillity in the first one it give me result but the other one dont?

[ ]


Highlight error with C++ code

When highlighting the code here, there're errors on line 33 and line 34.
	int m21=((result_0*0+result_1*/*0<-----*/1)%mod+mod)%mod;
	int m22=((result_0*1+result_1*/*1<-----*/0)%mod+mod)%mod;

But it should be like this, and the code itself has no error.

Would someone take a look at it?

Funny, github's highlighter also fails here. Anyway, on our side this was a (misguided I think now) attempt to catch wrong comment-ends. Thanks for the report!

Funny, github's highlighter also fails here. Anyway, on our side this was a (misguided I think now) attempt to catch wrong comment-ends. Thanks for the report!


fix metaDir usage in dev

Changes
#571 added baseUrl support to our /__snowpack__/ import generator, but ended up breaking dev mode. This PR adds back dev support with a short-term workaround for now, and performs some cleanup as well.
Test
Our lack of dev command tests strikes again! Tested manually via CSA.

I can look into adding tests for dev

@stramel oh that would be amazing! We haven't yet landed on the best way to do that. Do we spin up a dev server, and then make a certain set of requests against it, and then compare the response to our snapshots? Something else?
Would love to spin up another issue to discuss!

Chatted with @drwpow and we were able to remove the workaround for now, but we should still keep larger convo around context in mind

@FredKSchott 🎉 Look forward to a new release.

Releasing tomorrow, hopefully!


merge package from arlac77/npm-package-template

package.json

chore(package<EMAIL_ADDRESS>chore(scripts): cover@#overwrite c8 --temp-directory build/coverage ava && c8 report -r lcov --temp-directory build/coverage
chore(package): add xo from template
chore(package): add nyc from template
docs(package): remove keyword null
chore(package): set $.ava.require='esm' as in template
chore(package): set $.ava.files='tests/-test.js,tests/-test.mjs' as in template
chore(package): set $.ava.extensions='js,mjs' as in template

Codecov Report

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

@@          Coverage Diff           @@
##           master    #573   +/-   ##
======================================
  Coverage    94.4%   94.4%
======================================
  Files           7       7
  Lines        1073    1073
======================================
  Hits         1013    1013
  Misses         60      60

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 ac7db21...f227c2e. Read the comment docs.

Coverage remained the same at 93.103% when pulling f227c2ed47f897f0b96d11bbc0d426c02691a2dd on template-sync-1 into ac7db21be0fc3bbb87c56ddcac8b863b05715736 on master.


Not working in IE

Hello, this loader is not working in IE.. I just see an overlay and the spinner looks like a dot..

Provide more details, please. Browser version, OS version for starters.

@derrickpelletier it's IE 11 on Windows 7..

interesting! Thanks for the details.
Please feel free to submit a PR, otherwise going to be a while until I get to it i think

I guess you would have to detect IE by user-agent sniffing to set the bigger stroke-dasharray value. I don't think this should be in the library. Maybe just mention the workaround in the readme (I could probably find the time during the weekend to write something in the readme). Since I already have to detect IE in my app I just put the workaround into my IE stylesheet.

Hi @nponiros can you pls share the css modifications for IE?

I'm not opposed to using a 3rd party spinner here instead of the one i dropped in (like https://github.com/tsuyoshiwada/react-md-spinner or something similar?)
I'd also love to have a prop in place for people to provide their own spinner component into the lib.

@vikramtrs body.isIE svg circle { stroke-dasharray: 100,200 } and use feature testing/user agent sniffing to set isIE class to body. You can have a look at https://stackoverflow.com/questions/17907445/how-to-detect-ie11 for some ideas.
@derrickpelletier keeping the current spinner and allowing a custom spinner sounds like a good idea. What I needed to do is show a spinner with text (like your lib does) and change the text every few seconds. Maybe this is also an interesting feature for this lib.

custom spinners are supported now


Server not handling "Upgrade" header case-insensitively, as it should

According to the standard draft 10 that the README says this server conforms to, the Upgrade header should be handled case-insensitively. Currently it is handled case-sensitively.
middleware.py:
def __call__(self, environ, start_response):
    # Initial handshake validation
    try:
        if 'websocket' not in environ.get('upgrade.protocol', ''):
            raise HandshakeError("Upgrade protocol is not websocket")

The problem is still there, in cherrypyserver.py:125.

Have you tried? IIRC CherryPy header's dict is case insensitive so it doesn't need to be explicitly transformed.

Right. I think I went too fast this morning. You're quite right and i'll be looking at it as soon as I get a new computer to replace my dead one :p

I'm in no rush, but did you get that new computer yet?

Hopefully this should be taken care of now. I need to find an easy way to unit tests the tool properly.


ci: adds semantic validation for PR title

What type of PR is this?

/kind feature
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, using fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when the PR gets merged):
Fixes #
Special notes for your reviewer:
TODOs:

[x] squashed commits
[ ] includes documentation
[ ] adds unit tests

/cc @aramase

/close
changes are not possible due to https://github.com/kubernetes-sigs/secrets-store-sync-controller/pull/70#discussion_r1729587182 and https://github.com/kubernetes-sigs/secrets-store-sync-controller/pull/70#discussion_r1729588187


Deleted redundant broken line.

This is covered below One Python Way anyways.

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


Use content loaders for all values

There's still a flash of 0 in the beginning due to oraclePrice being 0, will need more investigation
Fixes #130

Removing the redundant pools state seems to fix the flashing 0 issue. Should fix #130

@FloorLamp it seems not all pools are loaded.
last one is SWGB-BNB for me, and the TVL is 46M only
also what exactly should be fixed?
we have a loading indicator for TVL now

This PR adds loaders for all values, preventing 0s from showing.


Add patchModule task in api project

Rationale
Some distributions need to use a differently licensed version of the ExtJS libraries.
Related Pull Requests

https://github.com/LabKey/gradlePlugin/pull/114

Changes

Add patchModule task for api module

No relevant changes remaining here.

No relevant changes remaining here.


504 Gateway Timeout randomly occurring

Checklist:
Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
Yes
Are you sure you're not using someone else's docker image?
Yes
Have you searched for similar issues (both open and closed)?
Yes
Describe the bug:
I am able to use NPM successfully, and it works most of the time.  Occasionally, almost at random (every day, a few times a day), the page will try to load and eventually show this message:
504 Gateway Time-out
openresty
I will restart the app and the db, then it works.  When it does show the 504 Gateway Time-out page, I can go to the NPM login page, log in successfully, and interact with the dashboard and proxy host as if it is working fine.
I only have one proxy host redirecting to Nextcloud Hub.  Nextcloud is in a separate VM, so it redirects based on IP address.
Scheme = html
Forward Hostname/IP = <IP_ADDRESS>
Forward Port = 80
Nginx Proxy Manager Version - 2.9.18
To Reproduce - Steps to reproduce the behavior:
I wish I knew.  After I restart the stack from the Portainer dashboard, it works.  Then, depending on some unknown factor, it will time out.  It may only take one minute, or a few hours.  The logs always are the same, of which I can't see any errors or issues.
Expected behavior:
It does not time out.
Screenshots:
I am not sure what to provide.
Operating System:
Ubuntu Server 20.04.4
Docker 20.10.17
Docker Container
Portainer 2.13.1
Additional Context:
Docker Compose yml file:
version: '2'
services:
app:
image: 'jc21/nginx-proxy-manager:latest'
ports:
- '80:80'
- '81:81'
- '443:443'
environment:
DB_MYSQL_HOST: "db"
DB_MYSQL_PORT: 3306
DB_MYSQL_USER: "not-real"
DB_MYSQL_PASSWORD: "also-not-real"
DB_MYSQL_NAME: "npm"
volumes:
- ./data:/data
- ./letsencrypt:/etc/letsencrypt
healthcheck:
test: ["CMD", "/bin/check-health"]
interval: 10s
timeout: 3s
db:
image: 'jc21/mariadb-aria:latest'
environment:
MYSQL_ROOT_PASSWORD: 'not-real'
MYSQL_DATABASE: 'npm'
MYSQL_USER: 'this-is-not-real'
MYSQL_PASSWORD: 'again-not-real'
volumes:
- ./data/mysql:/var/lib/mysql
DB Logs from today prior to it timing out:
2022-07-26 22:57:48 3 [Warning] Aborted connection 3 to db: 'npm' user: 'npmuser' host: '<IP_ADDRESS>' (Got an error reading communication packets)
2022-07-26 22:57:54 0 [Note] /usr/bin/mysqld (initiated by: unknown): Normal shutdown
2022-07-26 22:57:54 0 [Note] Event Scheduler: Purging the queue. 0 events
2022-07-26 22:57:55 0 [Note] /usr/bin/mysqld: Shutdown complete
[i] pre-init.d - processing /scripts/pre-init.d/01_secret-init.sh
[i] mysqld already present, skipping creation
[i] MySQL directory already present, skipping creation
2022-07-26 22:58:06 0 [Note] /usr/bin/mysqld (mysqld 10.4.15-MariaDB) starting as process 1 ...
2022-07-26 22:58:06 0 [Note] Plugin 'InnoDB' is disabled.
2022-07-26 22:58:06 0 [Note] Plugin 'FEEDBACK' is disabled.
2022-07-26 22:58:06 0 [Note] Server socket created on IP: '::'.
2022-07-26 22:58:06 0 [Warning] 'user' entry '@526f1f7a5d7d' ignored in --skip-name-resolve mode.
2022-07-26 22:58:06 0 [Warning] 'proxies_priv' entry '@% root@526f1f7a5d7d' ignored in --skip-name-resolve mode.
2022-07-26 22:58:06 0 [Note] Reading of all Master_info entries succeeded
2022-07-26 22:58:06 0 [Note] Added new Master_info '' to hash table
2022-07-26 22:58:06 0 [Note] /usr/bin/mysqld: ready for connections.
Version: '10.4.15-MariaDB'  socket: '/run/mysqld/mysqld.sock'  port: 3306  MariaDB Server
App logs from today prior to timing out:
[7/26/2022] [9:44:15 AM] [IP Ranges] › ℹ  info      Fetching https://ip-ranges.amazonaws.com/ip-ranges.json
[7/26/2022] [9:44:16 AM] [IP Ranges] › ℹ  info      Fetching https://www.cloudflare.com/ips-v4
[7/26/2022] [9:44:16 AM] [IP Ranges] › ℹ  info      Fetching https://www.cloudflare.com/ips-v6
[7/26/2022] [9:44:17 AM] [Nginx    ] › ℹ  info      Reloading Nginx
[7/26/2022] [9:44:17 AM] [Nginx    ] › ℹ  info      Reloading Nginx
[7/26/2022] [9:44:17 AM] [SSL      ] › ℹ  info      Renew Complete
[7/26/2022] [10:44:15 AM] [SSL      ] › ℹ  info      Renewing SSL certs close to expiry...
[7/26/2022] [10:44:17 AM] [Nginx    ] › ℹ  info      Reloading Nginx
[7/26/2022] [10:44:17 AM] [SSL      ] › ℹ  info      Renew Complete
[7/26/2022] [11:44:15 AM] [SSL      ] › ℹ  info      Renewing SSL certs close to expiry...
[7/26/2022] [11:44:17 AM] [Nginx    ] › ℹ  info      Reloading Nginx
[7/26/2022] [11:44:17 AM] [SSL      ] › ℹ  info      Renew Complete
[7/26/2022] [12:44:15 PM] [SSL      ] › ℹ  info      Renewing SSL certs close to expiry...
[7/26/2022] [12:44:17 PM] [Nginx    ] › ℹ  info      Reloading Nginx
[7/26/2022] [12:44:17 PM] [SSL      ] › ℹ  info      Renew Complete
[7/26/2022] [1:44:15 PM] [SSL      ] › ℹ  info      Renewing SSL certs close to expiry...
[7/26/2022] [1:44:17 PM] [Nginx    ] › ℹ  info      Reloading Nginx
[7/26/2022] [1:44:17 PM] [SSL      ] › ℹ  info      Renew Complete
[7/26/2022] [2:44:15 PM] [SSL      ] › ℹ  info      Renewing SSL certs close to expiry...
[7/26/2022] [2:44:17 PM] [Nginx    ] › ℹ  info      Reloading Nginx
[7/26/2022] [2:44:17 PM] [SSL      ] › ℹ  info      Renew Complete
[7/26/2022] [3:44:15 PM] [SSL      ] › ℹ  info      Renewing SSL certs close to expiry...
[7/26/2022] [3:44:15 PM] [IP Ranges] › ℹ  info      Fetching IP Ranges from online services...
[7/26/2022] [3:44:15 PM] [IP Ranges] › ℹ  info      Fetching https://ip-ranges.amazonaws.com/ip-ranges.json
[7/26/2022] [3:44:16 PM] [IP Ranges] › ℹ  info      Fetching https://www.cloudflare.com/ips-v4
[7/26/2022] [3:44:16 PM] [IP Ranges] › ℹ  info      Fetching https://www.cloudflare.com/ips-v6
[7/26/2022] [3:44:17 PM] [Nginx    ] › ℹ  info      Reloading Nginx
[7/26/2022] [3:44:17 PM] [Nginx    ] › ℹ  info      Reloading Nginx
[7/26/2022] [3:44:17 PM] [SSL      ] › ℹ  info      Renew Complete
[7/26/2022] [4:44:15 PM] [SSL      ] › ℹ  info      Renewing SSL certs close to expiry...
[7/26/2022] [4:44:17 PM] [Nginx    ] › ℹ  info      Reloading Nginx
[7/26/2022] [4:44:17 PM] [SSL      ] › ℹ  info      Renew Complete
[7/26/2022] [5:44:15 PM] [SSL      ] › ℹ  info      Renewing SSL certs close to expiry...
[7/26/2022] [5:44:17 PM] [Nginx    ] › ℹ  info      Reloading Nginx
[7/26/2022] [5:44:17 PM] [SSL      ] › ℹ  info      Renew Complete
[7/26/2022] [6:44:15 PM] [SSL      ] › ℹ  info      Renewing SSL certs close to expiry...
[7/26/2022] [6:44:17 PM] [Nginx    ] › ℹ  info      Reloading Nginx
[7/26/2022] [6:44:17 PM] [SSL      ] › ℹ  info      Renew Complete
[7/26/2022] [7:44:15 PM] [SSL      ] › ℹ  info      Renewing SSL certs close to expiry...
[7/26/2022] [7:44:17 PM] [Nginx    ] › ℹ  info      Reloading Nginx
[7/26/2022] [7:44:17 PM] [SSL      ] › ℹ  info      Renew Complete
[7/26/2022] [8:44:15 PM] [SSL      ] › ℹ  info      Renewing SSL certs close to expiry...
[7/26/2022] [8:44:17 PM] [Nginx    ] › ℹ  info      Reloading Nginx
[7/26/2022] [8:44:17 PM] [SSL      ] › ℹ  info      Renew Complete
[7/26/2022] [9:44:15 PM] [SSL      ] › ℹ  info      Renewing SSL certs close to expiry...
[7/26/2022] [9:44:15 PM] [IP Ranges] › ℹ  info      Fetching IP Ranges from online services...
[7/26/2022] [9:44:15 PM] [IP Ranges] › ℹ  info      Fetching https://ip-ranges.amazonaws.com/ip-ranges.json
[7/26/2022] [9:44:16 PM] [IP Ranges] › ℹ  info      Fetching https://www.cloudflare.com/ips-v4
[7/26/2022] [9:44:16 PM] [IP Ranges] › ℹ  info      Fetching https://www.cloudflare.com/ips-v6
[7/26/2022] [9:44:16 PM] [Nginx    ] › ℹ  info      Reloading Nginx
[7/26/2022] [9:44:17 PM] [Nginx    ] › ℹ  info      Reloading Nginx
[7/26/2022] [9:44:17 PM] [SSL      ] › ℹ  info      Renew Complete
[7/26/2022] [10:44:15 PM] [SSL      ] › ℹ  info      Renewing SSL certs close to expiry...
[7/26/2022] [10:44:17 PM] [Nginx    ] › ℹ  info      Reloading Nginx
[7/26/2022] [10:44:17 PM] [SSL      ] › ℹ  info      Renew Complete
[cont-finish.d] executing container finish scripts...
s6-svscanctl: fatal: unable to control /var/run/s6/services: supervisor not listening
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01_perms.sh: executing...
Changing ownership of /data/logs to 0:0
[cont-init.d] 01_perms.sh: exited 0.
[cont-init.d] 01_s6-secret-init.sh: executing...
[cont-init.d] 01_s6-secret-init.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
 Apps are accessible using IP so the problem is not on applications side. nslookup also works correctly from maching where NPM is running and from my computer where I try to open my website.
I also tried to see curl logs:
curl -vvv https://mydomain.com

it stucks at this point:
> user-agent: curl/7.81.0
> accept: */*
>
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* Connection state changed (MAX_CONCURRENT_STREAMS == 128)!
* TLSv1.2 (OUT), TLS header, Supplemental data (23):

Me too.
Sometimes it occure 1~3 times a day.
But sometimes this issue cannot found 1~2 weeks.
Most of all fixed in 1 ~ 20 min.
Envirioment
npm 2.9.18,
npm 2.9.14 (Downgraded npm due to this issue. But 2.9.14 same)
Ubuntu 21.04
Portainer 2.9.3
`[cont-finish.d] executing container finish scripts...
s6-svscanctl: fatal: unable to control /var/run/s6/services: supervisor not listening
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01_perms.sh: executing...
Changing ownership of /data/logs to 0:0
[cont-init.d] 01_perms.sh: exited 0.
[cont-init.d] 01_s6-secret-init.sh: executing...
[cont-init.d] 01_s6-secret-init.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
 You should use allowGraph instead. allowEager method will be removed in 3.0
QueryBuilder#eager method is deprecated. You should use the withGraphFetched method instead. eager method will be removed in 3.0
QueryBuilder#omit is deprecated. This method will be removed in version 3.0
Model#$omit is deprected and will be removed in 3.0.`

I solved it with "delete my wss socket proxy host." and replace it with https socket.
To reproduce this issue ,
Check websockets support in proxy host setting.
And add sockets address in advanced setting.
But I already deleted it, so I can't remember exactly what I wrote.

Reproduced today.

Me too. I added 5 proxy host, but only one get errors 504, randomly time

Same. keep happening..

I keep getting this on large file transfers.

This is happening to me too, it was working fine for 4 days and then I can't get anything from any host other than a 504 gateway error.


nl-BE translations missing for notification-dialog

Bug Report
Description

nl-BE translations missing for notification-dialog title. But works fine for en-US and sv-SE
Steps to Reproduce

go to https://engineering.cerner.com/terra-framework/tests/terra-notification-dialog/notification-dialog/hazard-medium-variant
change the locale to nl-BE
click on trigger NotificationDialog button
Warning title doesn't show up
change the locale, warning title shows up

Additional Context / Screenshots

Expected Behavior

Possible Solution

Environment

Component Name and Version: notification-dialog
Browser Name and Version: chrome
Node/npm Version: [e.g. Node 8/npm 5]
Webpack Version:
Operating System and version (desktop or mobile):

@ Mentions

looks like translations for variant hazard-medium are missing in both nl and nl-BE


Sandbox node crash: Assert_failure src/lib/unsigned_extended/unsigned_extended.ml

This crash occurred after a week of running the sandbox node and with a block height of 3330. I searched but didn't find another instance of this but feel free to close if already known.
2020-05-16 17:25:44 UTC [Error] Exception while handling REST server request: $error
        error: "(monitor.ml.Error\"Assert_failure src/lib/unsigned_extended/unsigned_extended.ml:82:6\"(\"Raised at file \\\"src/lib/unsigned_extended/unsigned_extended.ml\\\", line 82, characters 6-32\"\"Called from file \\\"src/lib/currency/currency.ml\\\", line 516, characters 6-94\"\"Called from file \\\"src/lib/currency/currency.ml\\\", line 516, characters 6-94\"\"Called from file \\\"src/lib/coda_base/user_command_payload.ml\\\", line 34, characters 12-33\"\"Called from file \\\"src/lib/coda_base/user_command_payload.ml\\\" (inlined), line 33, characters 8-312\"\"Called from file \\\"src/lib/coda_base/user_command_payload.ml\\\", line 33, characters 8-312\"\"Called from file \\\"src/lib/coda_base/user_command_payload.ml\\\", line 33, characters 8-312\"\"Called from file \\\"src/lib/coda_base/user_command_payload.ml\\\", line 64, characters 6-299\"\"Called from file \\\"src/lib/coda_base/user_command_payload.ml\\\", line 64, characters 6-299\"\"Called from file \\\"src/lib/coda_base/user_command_payload.ml\\\", line 247, characters 33-49\"\"Called from file \\\"src/lib/coda_base/user_command_payload.ml\\\" (inlined), line 247, characters 6-113\"\"Called from file \\\"src/lib/coda_base/user_command_payload.ml\\\", line 247, characters 6-113\"\"Called from file \\\"src/lib/coda_base/user_command_payload.ml\\\", line 247, characters 6-113\"\"Called from file \\\"src/lib/coda_base/user_command_payload.ml\\\" (inlined), line 265, characters 4-117\"\"Called from file \\\"src/lib/coda_base/user_command_payload.ml\\\", line 265, characters 4-117\"\"Called from file \\\"src/lib/coda_base/user_command_payload.ml\\\", line 265, characters 4-117\"\"Called from file \\\"src/lib/coda_base/user_command.ml\\\", line 27, characters 9-27\"\"Called from file \\\"src/lib/coda_base/user_command.ml\\\" (inlined), line 26, characters 6-157\"\"Called from file \\\"src/lib/coda_base/user_command.ml\\\", line 26, characters 6-157\"\"Called from file \\\"src/lib/coda_base/user_command.ml\\\", line 26, characters 6-157\"\"Called from file \\\"src/lib/coda_base/user_command.ml\\\", line 41, characters 4-171\"\"Called from file \\\"src/lib/coda_base/user_command.ml\\\", line 41, characters 4-171\"\"Called from file \\\"src/binable0.ml\\\", line 108, characters 10-41\"\"Called from file \\\"src/lib/codable/codable.ml\\\", line 95, characters 7-45\"\"Called from file \\\"src/lib/coda_graphql/coda_graphql.ml\\\", line 1353, characters 14-63\"\"Called from file \\\"src/lib/coda_graphql/coda_graphql.ml\\\", line 1965, characters 10-130\"\"Called from file \\\"src/lib/coda_graphql/coda_graphql.ml\\\", line 21, characters 25-56\"\"Called from file \\\"graphql/src/graphql_schema.ml\\\", line 277, characters 84-95\"\"Called from file \\\"src/rresult.ml\\\" (inlined), line 30, characters 38-41\"\"Called from file \\\"graphql/src/graphql_schema.ml\\\", line 276, characters 14-213\"\"Called from file \\\"graphql/src/graphql_schema.ml\\\", line 1383, characters 12-107\"\"Called from file \\\"list.ml\\\", line 88, characters 20-23\"\"Called from file \\\"graphql/src/graphql_schema.ml\\\", line 69, characters 21-34\"\"Called from file \\\"graphql/src/graphql_schema.ml\\\", line 1408, characters 6-580\"\"Called from file \\\"graphql/src/graphql_schema.ml\\\", line 1489, characters 11-48\"\"Called from file \\\"src/deferred0.ml\\\", line 56, characters 64-69\"\"Called from file \\\"src/job_queue.ml\\\" (inlined), line 131, characters 2-5\"\"Called from file \\\"src/job_queue.ml\\\", line 171, characters 6-47\"\"Caught by monitor Cohttp_async.Server.collect_errors\"))"
2020-05-16 17:25:54 UTC [Info] Coda process was interrupted by "sigterm"
2020-05-16 17:25:54 UTC [Info] Running async shutdown handler: "Close transition frontier, if exists"

The assert failure is apparently in the %%versioned_binable-generated deserialization code for Unsigned_extended.UInt64.Stable.Latest.
The assertion is a valid one, the question is, how did the data arrive with a bad version in it?

@garethtdavies What version of the sandbox node is this?

@Schmavery this happened on the "official" sandbox node codaprotocol/coda-demo:sandbox-32a.1
Commit 9babcbd on branch docker-uses-runtime-genesis

Closing this issue as it is stale for a long time.


Enable overriding CoreData stack in subclasses

Hi,
I am using the Contentful-persistence lib in my swift project and all is well. I want to change the cora data stack implementation of the CoreDataManager class to include light-wight-migration and some better error handling and managed Object Context creation. My Project is a pure swift project and i am not sure how best to extended/modify the implementation of the CoreDataManager class within my project.  The core data stack properties of the CoreDataManager class are internal to the class implementation so overriding them in a subclass is difficult (right?). I am a bit stuck here on how best to move forward. I don't want to re-write it in swift because i am not aware of all the implementation detail choices and might brake the working implementation. I am only interested, at the moment to provide my own core data stack for the CoreDataManager.

So essentially, you would want to provide your own implementations of -managedObjectContext and -persistentStoreCoordinator, right?

Correct.

Since we're dealing with an ObjC class here, you can just override the property in your subclass, using something like this:
import ContentfulPersistence

class OwnCoreDataManager: CoreDataManager {
    override init?(client: CDAClient) {
        super.init(client: client, dataModelName: "ContentfulModel")
    }

    func persistentStoreCoordinator() -> NSPersistentStoreCoordinator {
        let model = self.valueForKey("managedObjectModel") as! NSManagedObjectModel
        let coordinator = NSPersistentStoreCoordinator(managedObjectModel: model)
        _ = try? coordinator.addPersistentStoreWithType(NSInMemoryStoreType, configuration: nil, URL: nil, options: nil)
        return coordinator
    }
}

This is obviously a bit brittle, as you won't get any help from the compiler when CoreDataManager changes, so I'll add the relevant properties to the interface in an upcoming versions.

Ok, Yeah i was hoping not to have to do something like this but it will definitely work. I will think it over and decide if i will implement this solution or wait for the update. Thanks again for the support

At very least, move @property (nonatomic) NSManagedObjectModel *managedObjectModel; and @property (nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator; to CoreDataManager.h.  This enables better subclassing without having to resort to KVC.

@Conrad-m-wise You can expose these private methods and properties by adding them to your BridgingHeader.h file.  This is what we've done.  Still brittle in the case of changes in the source, but less so re: typos and type checking from the Swift compiler.
@interface CoreDataManager(Private)
    @property (nonatomic) NSManagedObjectModel *managedObjectModel;
    @property (nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;
@end


ES 1.6 ClassNotFound

Since upgrading to ES 1.6, I get the following exception in my tests
java.lang.NoClassDefFoundError: org/apache/http/ssl/SSLContexts
	at org.apache.http.conn.ssl.SSLConnectionSocketFactory.getSocketFactory(SSLConnectionSocketFactory.java:172)
	at io.searchbox.client.config.HttpClientConfig$Builder.<init>(HttpClientConfig.java:88)

Code being executed is:
HttpClientConfig clientConfig = new HttpClientConfig.Builder("http://localhost:" + properties.get("es.http.port")).build();

Downgrading to 1.5 makes the issue go away. The MVN dependency:
        <dependency>
            <groupId>io.searchbox</groupId>
            <artifactId>jest</artifactId>
            <version>0.1.6</version>
            <scope>test</scope>
        </dependency>

There were no errors when I ran the build with ES 1.6.0, please check your dependency tree for duplicate older version imports of org.apache.http*packages.

Thanks @kramer. My project also uses Apache Tika which was upgraded. Both Searchbox and Tika use httpcore. Excluding HTTPCORE seems to have fixed it with no adverse consequence. In case others encounter this issue:
        <dependency>
            <groupId>org.apache.tika</groupId>
            <artifactId>tika-parsers</artifactId>
            <version>${tika.version}</version>
            <exclusions>
                <exclusion>
                    <groupId>org.apache.httpcomponents</groupId>
                    <artifactId>httpcore</artifactId>
                </exclusion>
            </exclusions>
        </dependency>


Android only issue with pinch zooming/rotating

In my App Peaks! (https://play.google.com/store/apps/details?id=com.adventurelog.peaks) I'm embedding a flutter_inappwebview to display a 3D world based on CesiumJs.
Everything works great except for the pinch-to-zoom and pinch-rotate two finger gestures. They both do well on iOs, but not on Android.
The behaviour is that it works "a little" each time. The zooming is not intuitive. It seems the evens are captured and stopped somewhere, and only a small part of the zoom event reaches CesiumJs inside the webview. Sometimes this also applies to simple horizontal/vertical move gestures.
Can anyone point me into the right direction? I already tried with/without hybrid composition, and setting/unsetting zoom options.
I've uploaded a demonstration of the problem inside an emulator view: https://youtu.be/AGE_H3_66EU

Hi @lukey78 ! Have you by any chance found a solution?

Any solution?


Thread move edit

Summary
Cypress test: MM-T2371 Editing a post.
One more check has been added for editing a post to https://github.com/mattermost/mattermost-webapp/pull/8176
The file has been also renamed.
Ticket Link
https://automation-test-cases.vercel.app/test/MM-T2371
Release Note
NONE

Hello @yulyanaR,
Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

@yulyanaR Please apply Prapti's suggestions to

Rename the file
Modify the test case title

@josephbaylon, @prapti As requested, I've renamed the file and separated the checks into 2 different tests. Please review

You didn't have to delete deleting_scroll_spec.js. You can keep MM-T2372 in there.
Then in editing_scroll_spec.js should only have MM-T2371

@josephbaylon In this case the whole setup and verification code will be duplicated in 2 files. I believe it's not really necessary

If you want to reuse code, you can create scroll/helpers.js file to put the common function. See mark_as_unread/helpers.js as an example.

If you want to reuse code, you can create scroll/helpers.js file to put the common function. See mark_as_unread/helpers.js as an example.

I'm afraid, in this case, the setup will be duplicated anyway. But I'm happy to make these changes, if it's the common practice on the project. Will update you shortly. Thanks!

@josephbaylon, @prapti As per the previous comments, scenarios are now split into 2 files


feat(deployCommandHandler): check context path uniqueness

Issue
https://github.com/gravitee-io/gravitee-cockpit/issues/1306
Description
Before trying to create a new model from Cockpit, check that context path is unique.

Gravitee.io Automatic Deployment
📚 View the storybook of this branch here

Gravitee.io Automatic Deployment
Congrats, all the CI steps were 🟢 . The Bot was able to deploy the build of this PR, so you can now try it directly here! 🚀
Notes: The deployed app is linked to the management API of the Element Zero team's environment.

Gravitee.io Automatic Deployment
📚 View the storybook of this branch here

Gravitee.io Automatic Deployment
Congrats, all the CI steps were 🟢 . The Bot was able to deploy the build of this PR, so you can now try it directly here! 🚀
Notes: The deployed app is linked to the management API of the Element Zero team's environment.

Gravitee.io Automatic Deployment
📚 View the storybook of this branch here

Gravitee.io Automatic Deployment
Congrats, all the CI steps were 🟢 . The Bot was able to deploy the build of this PR, so you can now try it directly here! 🚀
Notes: The deployed app is linked to the management API of the Element Zero team's environment.

Gravitee.io Automatic Deployment
📚 View the storybook of this branch here

Gravitee.io Automatic Deployment
Congrats, all the CI steps were 🟢 . The Bot was able to deploy the build of this PR, so you can now try it directly here! 🚀
Notes: The deployed app is linked to the management API of the Element Zero team's environment.

ci/circleci: cypress-install has been fixed on master so you just have to update your branch

Gravitee.io Automatic Deployment
📚 View the storybook of this branch here

Gravitee.io Automatic Deployment
Congrats, all the CI steps were 🟢 . The Bot was able to deploy the build of this PR, so you can now try it directly here! 🚀
Notes: The deployed app is linked to the management API of the Element Zero team's environment.


欢迎分享CVPR 2024 论文、代码、主页、demo / Welcome to share the paper ,  code, project and demo of CVPR 2024

请按照下面的格式提交/Please submit in the following format
标题/Title:
论文/Paper:
代码/Code:
其他/Other:
For example：
Balancing Act: Distribution-Guided Debiasing in Diffusion Models
论文/Paper: http://arxiv.org/pdf/2402.18206
代码/Code: None

Multi-Task Dense Prediction via Mixture of Low-Rank Experts
论文/Paper: https://arxiv.org/abs/2403.17749
代码/Code: https://github.com/YuqiYang213/MLoRE

Traffic Scene Parsing through the TSP6K Dataset
论文/Paper: https://arxiv.org/pdf/2303.02835.pdf
代码/Code: https://github.com/PengtaoJiang/TSP6K

TI2V-Zero: Zero-Shot Image Conditioning for Text-to-Video Diffusion Models
论文/Paper: https://arxiv.org/pdf/2404.16306
代码/Code: https://github.com/merlresearch/TI2V-Zero

Holistic Features are almost Sufficient for Text-to-Video Retrieval
论文/Paper: https://openaccess.thecvf.com/content/CVPR2024/papers/Tian_Holistic_Features_are_almost_Sufficient_for_Text-to-Video_Retrieval_CVPR_2024_paper.pdf
代码/Code: https://github.com/ruc-aimc-lab/TeachCLIP


fix: Example pull_request_target: is wrong and very badly broken

see https://github.com/www-learn-study/saraswati.learn.study/pull/47
If you use pull_request_target: instead of pull_request: then the actions/checkout, at least in its current v4.1.1, will always check out the default branch, not the pull request; see https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target

Hi, I see that you're not checking out the repo as in the example: if you don't provide the ref I'm using in the example, actions/checkout will check out the default branch.
Ref I'm using: https://github.com/EndBug/pages-preview/blob/370442720282ad4bad4e2ec038a271742673eb3d/dependents/source_repo.yml#L42
Your step:
https://github.com/www-learn-study/saraswati.learn.study/blob/eee50b03e235fe3b4746008e1a656d0a33ddb1bb/.github/workflows/preview.yaml#L28-L31
Be careful with using these kinds of workflows with pull_request: is the workflow is changed in the PR, the author may be able to run something you don't expect


doesn't play well with python 2.7.9

Hey hyperframe folks,
I realized python 2 below 2.7.9 doesn't do well in SSL and wan't supported by hyper.
But my code base is 2.7.3. So in order to use http2, I commented out tobytes() call in frame.py, and make the "data" param of parse_body function call pure string instead of memoryview obj.
It seems to work for me, but I am wondering what is the bad thing about this hack.

@jinghanx There's nothing bad about this hack, but it shouldn't be necessary. The memoryview object moderately increases our speed because it means we can avoid copying data until we need to, which is convenient, but the memoryview in Python 2.7.3 doesn't support being passed to struct. That was fixed in Python 2.7.4, so I strongly recommend upgrading your Python rather than making this change.

Gotcha, thx for explaining.

No problem!


Where to combine methods from different repositories?

My question is better asked through an example.
Suppose I have 2 repositories, UserRepository and ChatRepository, like below.
public interface UserRepository
{
    /**
     * Fetches Accounts of all the users who are friends with the authenticated user.
     * @return an Observable that emits all the Accounts of friends in a List.
     */
    Observable<List<Account>> allFriendAccounts();
}

public interface ChatRepository
{
    /**
     * Fetches the number of messages sent by a peer that are unseen by the authenticated user, by the peer's userId.
     * @param peerUserId the userId of the peer.
     * @return an Observable that emits the number of unseen messages sent by the peer as a Long.
     */
    Observable<Long> unseenMessageCount(final String peerUserId);
}

The Account class is a model inside the domain layer, contains account information associated with a user and exposes them through methods like getUserId(), getUserName(), getPhotoUrl() which are self explanatory.
I also have separate UseCases for those repository methods named AllFriendAccountsUseCase and UnseenMessageCountUseCase.
Now suppose, I need to show a list of friends in my presentation layer, each item of which shows the name and photo of a friend as well as the number of unseen messages from him/her, similar to the list shown below.

Obviously I'll need to do at least 2 things.

Create a new model class which contains name and photo of a user as well as unseen message count. Possibly create separate model classes for domain and presentation layer.

Use both UserRepository and ChatRepository methods to construct a list, containing objects of the class described in 1. (In short, get the Accounts of the friends using allFriendAccounts(), and then call unseenMessageCount(final String peerUserId) for each Account, using Account.getUserId() as parameter.)

I can think of 2 approaches, each described below.
Approach 1:

Create a model class in domain layer, for example named ChatItem, containing user name, photo url and unseen message count.

Create a new UseCase, for example named GetChatItems, which uses both UserRepository and ChatRepository methods internally to build an Observable<List<ChatItem>>.

Create a model class in presentation layer, for example named ChatItemModel, corresponding to the ChatItem in domain layer. Also create the mapper to transform ChatItem to ChatItemModel and adapter class as needed.

Problem: ChatItem seems like a presentation detail and seems out of place inside domain model. Should the domain layer know about how its core models are combined and used in presentation layer?
Approach 2:

Do nothing on domain layer.

Create a model class in presentation layer, for example named ChatItemModel, containing user name, photo url and unseen message count.

Use the existing UseCases, AllFriendAccountsUseCase and UnseenMessageCountUseCase in the presentation layer to build an Observable<List<ChatItemModel>>. Also create the adapter class which uses the emitted list.

Problem: Combining UseCases in presentation layer seems ugly.
Looking for suggestions. Is there an approach 3 that I missed completely?

This is a very valid and common scenario. But I prefer approach 2. Presentation layer should handle all presentation logic and I consider your scenario a presentation logic because this is used to display values onto your screen. For me, there's noting wrong in combining multiple use cases in one UI (or presentation). It is very impossible to only have one use case in one UI. So for me, combining use cases in presentation layer should not be a problem.

@mr746866 Get rid of dirty observables away... Use callbacks. Let your presentation layer be object-oriented not procedural. All you need is just a small change in your precious ChatItemModel which is used in presentation-layer. Then, update each of those which has "Unseen-messages" when callback arrives!  What if you need fcm to notify your ChatItemModel to display "New arrived messages"? Are you going to merge another Observable into it? or perhaps use a subject? Stop right there. Rx is for streaming not for screaming.

Imho, the first approach is better. The second approach seems to add business logic in presentation layer, which is something that we do not want. If business logic does not live in domain layer then it is not transferable. Also by coupling presentation with business logic, it would be harder to change presentation layer.


Encode urlencoded_form items when editing

Resolved #1901
Encode the url encoded form before display it.
If there is any problem, please kindly let me know, thanks!

Thanks! 😃
Did you try to just make the columns col_text in https://github.com/mitmproxy/mitmproxy/blob/973406f327ceb488d4fa269b57d1e4f342e59d2c/mitmproxy/tools/console/grideditor/editors.py#L68-L69?

Updated, thanks for your advise, that would be a better solution!

Thanks!


Add unlabel versions for relation, aid col, role

Continuation of #327. I think these should be separate functions to avoid potential ambiguities.
Something like unmark_table, unmark_column, unmark_role.

Providing an unmark_column method doesn't seem useful, since table marking takes care of resetting the column labels.
Also, there isn't a corresponding mark_column method.

Yes, you're right. Let's keep table/columns marking/unmarking atomic.


Custom Workspace Names

Is your feature request related to a problem? Please describe.
I prefer using kanji for the workspace names over the usual numbers.
Describe the solution you'd like
It would be nice if there was a way to map workspace ids to text so any identifier can be used for workspaces. This would be similar to waybar.
Describe alternatives you've considered
I tried using named workspaces in Hyprland (name: 一, etc.) but hyprland-autoname-workspaces only uses the id.
Additional context
hyprland-autoname-workspaces could add support for named workspaces so the name of the workspace is used instead of the id, however this would break scripts that identify the workspace by its name. Simply adding a new config option to src/renamer/mod.rs seems like the best solution.

Thanks for the idea, I will try to implement this soon

@donovanglover the feature is add on the master branch, can you please try ?

@cyrinux It works great, thank you! If there's going to be another release soon, I can update https://github.com/NixOS/nixpkgs/pull/236515

Cool! I will do a release as soon as we can do a release of hyprland-rs. In theory I can cut a tag right now but I will no be able to publish the crate as I actually use the master branch of hyprland-rs.

@donovanglover if you have any idea about https://github.com/NixOS/nix/issues/8479 this can unlock the release then 🥹

@donovanglover I release the version 1.1.0, if you can update nixos package 🙏🏻


Allow Special Characters in Query Index Names

What
Allow special characters in Query Index Names
How
Surround  SQLite Identifier names with " to escape characters like ` `
Testing
Added new Tests for IndexCreator, IndexManager and extended End to End test for Encryption to verify it works for encrypted databases.
Reviewers
reviewer @brynh
reviewer @emlaver
Issues
#244

I think we need to quote tableName at line 647 of QuerySqlTranslator.java in method whereClauseForNot().

Fixed line 647 of QuerySqlTranslator.java in 59e373a

+1

LGTM +1


[FEATURE] Ability to write out image or videos with boxes + labels saved on them

Another minor issue but people in vpview use this a bit, though slightly more internally than externally but still a bit externally, for making powerpoint figures and things for presentations

It would be ideal to do this with a celery task since ffmpeg is really what does this.  If someone happens to have the ffmpeg script to do this handy, I know I've seen a version that Roddy has in perl.
It will require separate implementations in web and desktop.  Which is more important?

Neither are that important short-term (e.g. for tutorial), but desktop probably since this feature would see use on some other programs besides viame


Crash in NodeRed with Email Node

The code is as simple as possible :
[{"id":"b0fe7e8b.25abf","type":"e-mail","z":"1c590d17.efd25b","server":"your.email@email.com","port":"465","secure":true,"tls":true,"name":"","dname":"Email","x":910,"y":500,"wires":[]},{"id":"5bff5262.335c44","type":"inject","z":"1c590d17.efd25b","name":"Go","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":550,"y":500,"wires":[["3ff07fff.990598"]]},{"id":"3ff07fff.990598","type":"function","z":"1c590d17.efd25b","name":"Email","func":"msg.payload = 'Test';\n\nlet data = {file : 'File Content'};\n\n\nmsg.topic = 'Test Message';\nmsg.attachments = [{ filename: 'body.txt',\n                     content: data }];\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":720,"y":500,"wires":[["b0fe7e8b.25abf"]]}]

The problem would be that an object is placed, "by mistake", in the attachment. Correct would be string or an instance of Buffer or Uint8Array.
Now, we have the following situations:
1). Windows 7 Pro & 10 Pro, NodeRed 1.2.7, npm v6.14.10, and NodeJS 12.20.1
If I run the program I get the error in the console:
[error] [e-mail: xxxxxxxx] TypeError [ERR_INVALID_ARG_TYPE]: The "chunk" argument must be of type string or an instance of Buffer. Received an instance of Object.
Everything is normal so far, nothing unusual.
2). Amazon Ubuntu with NodeRed 1.2.7, npm v6.14.10, but with NodeJS v14.15.4. I also use PM2.
If I run the program, NodeRed shuts down (but restarts automatically due to PM2) :
0|node-red  | TypeError [ERR_INVALID_ARG_TYPE]: The "chunk" argument must be of type string or an instance of Buffer or Uint8Array. Received an instance of Object
0|node-red  |     at PassThrough.Writable.write (internal/streams/writable.js:285:13)
0|node-red  |     at PassThrough.Writable.end (internal/streams/writable.js:567:10)
0|node-red  |     at Immediate._onImmediate (/home/ubuntu/.node-red/node_modules/nodemailer/lib/mime-node/index.js:961:46)
0|node-red  |     at processImmediate (internal/timers.js:461:21) {
0|node-red  |   code: 'ERR_INVALID_ARG_TYPE'
0|node-red  | }
0|node-red  | 10 Jan 21:12:26 - [red] Uncaught Exception:
0|node-red  | 10 Jan 21:12:26 - TypeError [ERR_INVALID_ARG_TYPE]: The "chunk" argument must be of type string or an instance of Buffer or Uint8Array. Received an instance of Object
0|node-red  |     at PassThrough.Writable.write (internal/streams/writable.js:285:13)
0|node-red  |     at PassThrough.Writable.end (internal/streams/writable.js:567:10)
0|node-red  |     at Immediate._onImmediate (/home/ubuntu/.node-red/node_modules/nodemailer/lib/mime-node/index.js:961:46)
0|node-red  |     at processImmediate (internal/timers.js:461:21)
PM2         | App [node-red:0] exited with code [1] via signal [SIGINT]
PM2         | App [node-red:0] starting in -fork mode-
In addition to the above problem, as a suggestion, would it be possible to send a warning to the editor in the debug window in the event of an error such as "node-red exited with code [1] via signal [SIGINT]"?
I make this suggestion, because using an application like PM2 (which automatically monitors and restarts NodeRed), such a serious error can go unnoticed, and you end up in a situation where you do not know what is happening. Obviously, there are situations where you omit or it is more difficult to follow the console log.

Moving this issue over to the node-red-nodes repo where the email node lives.

Moving this issue over to the node-red-nodes repo where the email node lives.


Assert the shape for compute and compute_shape are the same

LGTM! Github wont let me approve it since its my PR.


communication Novastar H series

Hi, i'm trying to communicate with my new Novastar H9 through the Companion plug-in, but the status always remains on "connecting" and it doesn't make me work

Untill you actually send commnad to chabge oreset or brightness it will
always stay at cinnecting. Module works just fine we use it almost daily
for last 2 years.
On Sat, Aug 27, 2022, 1:07 PM LorenzoDC89 @.***> wrote:

Hi, i'm trying to communicate with my new Novastar H9 through the
Companion plug-in, but the status always remains on "connecting" and it
doesn't make me work
—
Reply to this email directly, view it on GitHub
https://github.com/bitfocus/companion-module-novastar-h-series/issues/2,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AC5RXGD25C5QZQWNR7CACNTV3JYRBANCNFSM57Z2XFPQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Sorry for the ignorant question, but I have tried to connect, then it disconnects.
Im just interested in Selecting presets from stream deck with companion, using your code.
I think something is blocking my command, or I'm doing something very wrong..   Device ID 1, Screen 1, preset 1,

Never mind, I got it. Problem was the page wasn't refreshing fast enough to keep up with the command.
Thanks for this.

Hello, can you tell me what are the custom commands for h series?
e.g. Take button

https://github.com/bitfocus/companion-module-novastar-h-series/issues/4
i tried as this link
and result show
{
"data": {},
"msg": "User_Not_Login",
"status": 106
}
how can i fix it, seeem like it not authorized yet

can help how to brother?


Improve saving behavior

This improves edit|save translations in one form.
For example, I don't have to go in translate manager if I updated a title of my news.
And the most important - source text didn't change if I updated on another language session.

@moltam thanks
It was a fast solution for me)


Gtk-WARNING **: ##:##:##.###: cannot open display: 1

The dialog refuses to display. I am on Ubuntu 20.04 LTS daily builds. Here’s what it returned:
~/Downloads$ sudo bash ra1nstorm.run
Verifying archive integrity... 100% All good.
Uncompressing ra1nstorm_stage2 100%
Checking if zenity and gawk are installed...
Launching setup...
No protocol specified
Unable to init server: Could not connect: Connection refused

(zenity:####): Gtk-WARNING **: ##:##:##.###: cannot open display: 1

However, opening a regular dialog box with Zenity works just fine.

This this be the same as this one? https://github.com/ra1nstorm/ra1nstorm-helper/issues/79

This this be the same as this one? #79

Appears to be, except I’m running it on my host PC except for a VM

Don't run sudo su

solution: xhost +


The Info log shows Successfully joined channel "collection:*",But there is no data push

@liyawawa are you still running into issues? Did you test subscribing to events?
Connecting & Subscribing to Events
The streaming rate depends on a range of factors - from the amount of collections that you’re monitoring to the type and amount of events that you’re subscribed to. For instance, if you’re subscribed to receive bid events across all collections on OpenSea, you’ll be receiving messages at a significantly higher rate than you will for a subscription to order cancellations on a small collection.


Dismissing modal in some screens crashes app

Current Behavior
I have a modal that works perfect on most screens but for some reason it completely breaks when used in one specific stack. I tried changing all the components to empty placeholders (remove all the complexity) but it keep breaking on the main/default stack.

Expected Behavior
Do modal should dismiss regardless of the underlying content.
How to reproduce
Production App
Your Environment

software
version

iOS or Android
iOS

react-navigation
4.0.10

react-navigation-stack
2.1.0

react-native-gesture-handler

react-native-safe-area-context

react-native-screens

react-native

expo

node
12

npm or yarn
yarn

Can you provide a stack trace? and also please fill the versions in issue template

@satya164 There is no stack trace. I tried profiling it to see if I could see any anomaly comparing screens/tabs but nothing stands out.

Can you provide a repro with the issue?


Realm: slow data transposes on GPUs

In connection to issue #1493, I've been seeing very slow copies between two instances located in the same GPU memory.
These two instances have different layouts (namely XYZ for the source and YXZ for the destination). You can see some examples in the timeline at this link http://sapling2.stanford.edu/~mariodr/3DPer_Pad_GPU_mod.
With the help of @artempriakhin, I've tested the branch https://gitlab.com/StanfordLegion/legion/-/commits/cuda-dma-fix-transpose but we did not see any significant improvement.
If I perform the copies myself in HTR using some deferred buffers (as described in #1493), the application becomes much faster (see this timeline for instance http://sapling2.stanford.edu/~mariodr/3DPer_Dev_GPU).
PS: @elliottslaughter could you please add this issue to #1032 with high priority?

@artempriakhin are we able to reproduce this in a standalone realm test?

Yes, we do. One of the transpose copies HTR is doing involves XYZ to YXZ (63x128x129 approx.) of vec[3] field type which is 24-byte wide. The hand-written transpose cuda kernel is only able to handle up to 16-byte wide field types and for the rest we fallback to the legacy cuda-driver path (and that's what we do in HTR). The legacy path involves looping and invoking cuMemcpy2D which is obviously slow and cuMemcpy3DAsync (which we introduced with cuda-dma) isn't handling this properly (hasn't gotten it working yet). So, for the cuda-dma there are two ways forward on this as I see it: one is to make cuda-transpose kernel handle "large"/arbitrary field sizes and/or two is to figure out whether cuMemcpy3DAsync can replace a set of 2D memcopies here and be in fact faster (Cory and myself are looking into it now).
We have all the realm tests for this now (for which we hit multiple bugs in HTR). The work so far has been done to make it all functionally correct (e.g. no crashes or bad app data)...but obviously the main objective is to speed this case up with cuda-dma and this is something that needs a bit more attention.

can we get the current kernel to work if we tell it that the 24-byte elements are actually 8 bytes in size and that there's an additional dimension with an extent of 3 and stride of 8?

Yes, we can and this something I was in fact trying to get up and running for this exact case with 24-bytes and 8 byte chunks. It's somewhat tricky to get right thought but that's in progress.

@apryakhin I've tested the new version of cuda-dma-fix-transpose and the execution is slower than before.
The version of HTR that performs the copies takes about 7s to complete its execution, the execution with the legacy version of Realm GPU copies takes about 43s, and the new version of cuda-dma-fix-transpose takes about 51s.
Unfortunately, I can't show any profile timeline with cuda-dma-fix-transpose because the profiler is broken on that branch.
Is there anything that I can do to make sure that the code is utilizing your new implementation?

Thanks! Yes, this is not what I expect as a result. I think the dma should still be falling back to the slow path for some reason. I would need logs with gpudma=1 to verify that. Since sapling1 is deprecated I don't have a preped environment to run it myself and therefore need to set everything up again. Let me build HTR on my workstation to see if I can nail it down.

Just an update on this.
There is an edge case that is failing and blocking the release of the patch for cuda-dma. In particular, "complex field types" 24B/40B for shapes that are not multiple to the tile_size (x-dim of the shared memory we use in the transpose kernel).
I am running on sapling2 and get the following (unformatted copy-past below):
prometeo_variables.hpp:183: static void UpdatePrimitiveFromConservedTask::UpdatePrimitive(const Legion::FieldAccessor<(legion_privilege_mode_t)1, MyArray<double, 5>, 3, long long, Realm::AffineAccessor<MyArray<double, 5>, 3, long long>, true> &, const Legion::FieldAccessor<(legion_privilege_mode_t)7, double, 3, long long, Realm::AffineAccessor<double, 3, long long>, true> &, const Legion::FieldAccessor<(legion_privilege_mode_t)268435458, double, 3, long long, Realm::AffineAccessor<double, 3, long long>, true> &, const Legion::FieldAccessor<(legion_privilege_mode_t)268435458, MyArray<double, 1>, 3, long long, Realm::AffineAccessor<MyArray<double, 1>, 3, long long>, true> &, const Legion::FieldAccessor<(legion_privilege_mode_t)268435458, MyArray<double, 3>, 3, long long, Realm::AffineAccessor<MyArray<double, 3>, 3, long long>, true> &, const Realm::Point<3, long long> &, const Mix &): block: [1,1,0], thread: [0,0,0] Assertion mix.CheckMixture(Yi) failed.
prometeo_variables.hpp:183: static void UpdatePrimitiveFromConservedTask::UpdatePrimitive(const Legion::FieldAccessor<(legion_privilege_mode_t)1, MyArray<double, 5>, 3, long long, Realm::AffineAccessor<MyArray<double, 5>, 3, long long>, true> &, const Legion::FieldAccessor<(legion_privilege_mode_t)7, double, 3, long long, Realm::AffineAccessor<double, 3, long long>, true> &, const Legion::FieldAccessor<(legion_privilege_mode_t)268435458, double, 3, long long, Realm::AffineAccessor<double, 3, long long>, true> &, const Legion::FieldAccessor<(legion_privilege_mode_t)268435458, MyArray<double, 1>, 3, long long, Realm::AffineAccessor<MyArray<double, 1>, 3, long long>, true> &, const Legion::FieldAccessor<(legion_privilege_mode_t)268435458, MyArray<double, 3>, 3, long long, Realm::AffineAccessor<MyArray<double, 3>, 3, long long>, true> &, const Realm::Point<3, long long> &, const Mix &): block: [0,0,0], thread: [2,0,0] Assertion mix.CheckMixture(Yi) failed.
[0 - 7f8b53058840]    1.022266 {6}{gpu}: CUDA error reported on GPU 0: device-side assert triggered (CUDA_ERROR_ASSERT)
prometeo_ConstPropMix.exec: /home/apriakhin/Development/tmp/legion3/runtime/realm/cuda/cuda_module.cc:352: bool Realm::Cuda::GPUStream::reap_events(Realm::TimeLimit): Assertion `0' failed.
I am able to isolate the problem on sapling2/HTR. Unfortunately, the exact cases covered in realm tests are passing (on my workstation) but failing when running HTR on sapling2.

@apryakhin, the assertion Assertion mix.CheckMixture(Yi) failed. usually means that something has gone very wrong in the calculation and the code crashed with a NaN.
Is there anything I can do to help isolating the copy that goes bad?

I got it fixed and run a few benchmarks
For example one of them (sapling2):
solverTests/3DPeriodic xNum:128, yNum:128, zNum:64
legacy
/home/apriakhin/Development/htr3/src/prometeo_ConstPropMix.exec -i base.json -logfile %.log -lg:registration -ll:force_kthreads -logfile ./%.log -lg:safe_ctrlrepl 2 -ll:cpu 1 -ll:ocpu 2 -ll:onuma 1 -ll:othr 9 -ll:ostack 8 -ll:gpu 4 -ll:fsize 14000 -ll:zsize 512 -ll:ib_zsize 512 -ll:util 4 -ll:io 4 -ll:bgwork 4 -ll:cpu_bgwork 100 -ll:util_bgwork 100 -ll:csize 220000 -ll:rsize 512 -ll:ib_rsize 512 -ll:gsize 0 -ll:stacksize 8 -lg:sched -1 -lg:hysteresis 0
Launched: 1 Total time: 24.769 seconds

and with cuda-dma
/home/apriakhin/Development/htr3/src/prometeo_ConstPropMix.exec -i base.json -logfile %.log -lg:registrationsolverTests/3DPeriodicsolverTests/3DPeriodicsolverTests/3DPeriodicsolverTests/3DPeriodicsolverTests/3DPeriodicsolverTests/3DPeriodicsolverTests/3DPeriodic -ll:force_kthreads -logfile ./%.log -lg:safe_ctrlrepl 2 -ll:cpu 1 -ll:ocpu 2 -ll:onuma 1 -ll:othr 9 -ll:ostack 8 -ll:gpu 4 -ll:fsize 14000 -ll:zsize 512 -ll:ib_zsize 512 -ll:util 4 -ll:io 4 -ll:bgwork 4 -ll:cpu_bgwork 100 -ll:util_bgwork 100 -ll:csize 220000 -ll:rsize 512 -ll:ib_rsize 512 -ll:gsize 0 -ll:stacksize 8 -lg:sched -1 -lg:hysteresis 0
Launched: 1 Total time: 3.447 seconds

This issue has been fixed. Thanks for the help!


Broken link

Hi there! I'm writing a blog post about this library, and I've noticed that the link to the effects manager section of the Elm guide is broken.
Cheers!

Thanks for pointing this out!
Since the effect manager section was removed from the guide it now  just points to the effect section of the guide.


how to approach the networkManager??

Attach (recommended) or Link to PDF file here:
Configuration:

Web browser and its version: chrome
Operating system and its version:
PDF.js version: 2.0.305
Is a browser extension:

Steps to reproduce the problem:
i want to stopping loading pdf file.
to solve this problem, i should approach networkManger.
how to stopping loading pdf file streaming??
method is abortAllRequests(),
link: https://github.com/mozilla/pdf.js/issues/7930

* PDF.js version: 2.0.305

That's not an official release, please refer to https://github.com/mozilla/pdf.js/releases.

Steps to reproduce the problem:
i want to stopping loading pdf file.
[...]

In that case you should call the destroy method on the loadingTask, see https://github.com/mozilla/pdf.js/blob/e716038b12919f2a6ad236dbfe1d8ea296b3b11e/src/display/api.js#L475-L480

Generally speaking, for any piece of software really, unless you've got a specific reason you should always use the stable releases.

destroy method is making worker disable. but i should use worker in my page.
so how to abort loading file like xhr.abort()?

Unfortunately these sentences are almost impossible to understand.
Closing, and cleaning up, various resources have nothing to do with using (or not using) a worker.

i want to stop streaming file loading..

The only guess that I can provide here is that you'd need to set disableStream (and possibly disableAutoFetch too) when calling getDocument; see https://github.com/mozilla/pdf.js/blob/e716038b12919f2a6ad236dbfe1d8ea296b3b11e/src/display/api.js#L188-L196

please help me.

Unfortunately it's very difficult for anyone to do so, given that it's quite hard to understand exactly what your actually asking. (Most likely this is a language barrier problem, but without clear information there's very little that anyone can do unfortunately.)

Closing for now unless actionable information is presented.