Groupbar remains visible after switching to a new workspace

Hyprland Version
 System/Version info
Hyprland, built from branch  at commit 8cb38d41d203f95ea9c2be79996a5f0deda3eabf  ().
Date: 2024-03-31
Tag:

flags: (if any)

System Information:
System name: Linux
Node name: gza
Release: 6.6.23
Version: #1-NixOS SMP PREEMPT_DYNAMIC Tue Mar 26 22:22:53 UTC 2024

GPU information:
2f:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 23 [Radeon RX 6600/6600 XT/6600M] [1002:73ff] (rev c1) (prog-if 00 [VGA controller])

os-release: ANSI_COLOR="1;34"
BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues"
BUILD_ID="24.05.20240329.d8fe5e6"
DOCUMENTATION_URL="https://nixos.org/learn.html"
HOME_URL="https://nixos.org/"
ID=nixos
IMAGE_ID=""
IMAGE_VERSION=""
LOGO="nix-snowflake"
NAME=NixOS
PRETTY_NAME="NixOS 24.05 (Uakari)"
SUPPORT_URL="https://nixos.org/community.html"
VERSION="24.05 (Uakari)"
VERSION_CODENAME=uakari
VERSION_ID="24.05"

plugins:

Bug or Regression?
Bug
Description
Groupbar remains visible after switching to a new workspace
How to reproduce

Open two windows,
Group them
Change workspace

Crash reports, logs, images, videos
Kooha-2024-04-01-00-01-42.webm

group {
col.border_inactive=0xff313244
groupbar:render_titles = false
groupbar:font_size = 11
# groupbar:text_color = 0x000000
groupbar:height = 1
col.border_active	=0xffcba6f7 0xfff38ba8 45deg
groupbar:gradients = false
groupbar:col.inactive=0xff313244
groupbar:col.active	=0xffcba6f7 0xfff38ba8 45deg
}

yea i can reproduce this. probably related to https://github.com/hyprwm/Hyprland/issues/5361

can't repro, but if it's not a regression it's a dupe of https://github.com/hyprwm/Hyprland/issues/3363

Issue is fixed by https://github.com/hyprwm/Hyprland/pull/5364


Fix custom object comparisons, allow for custom uninstantiated class encoding, fix float comparisons, allow for ignoring metadata

Describe the Changes

Added support for serializing, deserialization, encoding, decoding, and comparing the Unit class which comes from the pint package.
Doing so added a layer of complexity to the metadata matching functionality where the previous code base attempted comparing a dictionary of objects to a dictionary of objects that have been decomposed into their components. Thus, the second dictionary must have its values instantiated into objects for the comparison to work.
Fixed comparison between float and float64
Added TODO and potential code (commented out) to fix file status tracking when using pytest with norecursedirs
Added capability to ignore certain metadata arguments straight from the assert_match method

Example Code
No new additions have been made to the API.
Additional Notes
Objects with a to_dict() and from_dict() method no longer follow the behavior of similar objects with only a dict or slots method.
Objects of type pint.unit.Unit are assumed to be the same as objects of type pint.unit.build_unit_class..Unit.
Specific arguments in the metadata can be skipped by adding an ignore=["arg", "names", "to", "ignore"] input to assert_match.
Future Work
Figure out what to do about custom units defined by users that aren't in base pint. Object checking is currently string-based because of this.
Clean up spaghetti code I wrote for this PR.
Figure out what to do about comparing numpy arrays to lists and floats to float64. I added in hacky stuff to get that to work but there must be a better way.
Fix bug where snappiershot reports tests unchecked when those tests are part of a norecursedirs command in pytest.

Great feature adds!

Thank you for taking this on. I will make tickets for the future work you mentioned.


fix scheduled message sending and reconcile message sending code

review by commit (though the last one is a bit big)
https://github.com/dimagi/mpact/commit/565dc6e2b30a177899a3eec95fafc4095bd225f4 is the fix. everything else is cleanup.

Does it generally feel fine to have the send code in 2 places (mpact/services.py and mpact/tasks.py)? I was thinking it probably should all be in the mpact_bot.py code to separate out the bot interactions piece from the backend, but if it works, seems fine to have it split.

I'm still wrapping my head around the current module organization, but I think the intention might be:
services.py - "api" into the models and telegram
mpact_bot.py: bot logic that interacts with services
tasks.py: scheduled tasks (this is a standard celery/django convention).
This isn't exactly how it's structured, and there's likely lots of room for improvement, but it's unclear how much will happen in the current push.

not sure exactly how to think about what is worth refactoring vs not.

(basically this)


test(enharmonic_interval): add test cases for transposeBy

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.7%) to 91.857%

Totals

Change from base Build<PHONE_NUMBER>:
0.7%

Covered Lines:
282

Relevant Lines:
307

💛  - Coveralls


fix: Correct a type error in ForwardedDeviceProtocol

node_modules/buttplug/dist/main/src/server/managers/forwardeddevices/ForwardedDeviceProtocol.d.ts(18,5): error TS2416: Property 'ParseMessage' in type 'ForwardedDeviceProtocol' is not assignable to the same property in base type 'ButtplugDeviceProtocol'.
  Type '(aMsg: ButtplugDeviceMessage) => Promise<ButtplugMessage>' is not assignable to type '(aMsg: ButtplugMessage) => Promise<ButtplugMessage>'.
    Types of parameters 'aMsg' and 'aMsg' are incompatible.
      Property 'DeviceIndex' is missing in type 'ButtplugMessage' but required in type 'ButtplugDeviceMessage'.

This type mismatch causes issues when compiling the typescript to javascript.

Closing 'cause the server impl is long gone.


Configure prettier for formatting JSON and Javascript files

Motivation
Keep consistent standard coding styles.

Close as #10 has already solved it.


Does this still work?

I've followed all instructions but so far this has had utterly no effect on my broken site in IE. Looks perfect everywhere else, including Edge, but in any version of IE the layout is broken. I've added the -js-display to my css, included the script, and the 'supportsFlexbox' function, and included the data-style attribute to my code. There are no JS errors but it's still just not working.

The last 1.0 version works for me, the 2.0 version has not worked for me no matter what i try :/ Stoked to at least be able to offer partial support for IE users, cuz i was about to ditch them entirely because of how much i love flex box ;)

Nope, doesn't seem to work in IE9. The demo in IE9 doesn't seem to work either. Is there a link to version 1 somewhere? Version 2.0 is the earliest version in the history.

Same here - Version 1.06 works for me, https://github.com/jonathantneal/flexibility/releases

@imshuffling How to use flexibility in v1.0.6 ? flexibility(document.documentElement); seems not work;

@liu-dongyu I just used version 1 and referenced flexbox in the stylesheet and it worked for me. What are you trying to achieve?

I'm using the v1.0.6 file, post css module to prefix all of my css properties when compiling, and then I have 'flexibility(document.body);' in my site.js file. However, I'm just getting the following error:
'Uncaught TypeError: flexibility is not a function'
Is anyone able to help?

Same here, demo is not working. Tried to test it in saucelabs ie9 on windows7 but doesn't work.

I can't even get the older 1v to work any ideas what's going on?

:+1:

I got version 1.0.6 to work so long as I add the prefix:  -js-flex or use it  with the postcss-flexibility plugin. It's working on a Win7/IE9 Virtual machine at least

Same here , no effect , ie11 emulation

I've tried to use this polyfill with Bootstrap 4 but no success. It'd be nice to have an official word about it since it seems this is a common problem. Thank you for the effort.

Where can I download 1.0.6?

@sunshine824
https://github.com/jonathantneal/flexibility/releases/tag/v1.0.6

Hey, guys. Version 2.0.1 works on IE9 when embedding the script and using the function flexibility(document.documentElement), as stated on README.md.
Can you check it out? :) it works for me

Is there anyone solve this problem?


split cli parsing

Hi
Firstly I know this is large, and I didn't open an issue for it, but bare with me. I firstly didn't know if it was possible, and secondly the proposed change is very difficult to discuss without digging into the rough stuff and seeing what it affects. So I did the unthinkable and coded it anyway. yolo
Goals
Before I get to the feature/refactor itself I'd like to note the following goals i tried to keep.

NO changes to existing behaviour (like none, users shouldn't even notice anything)
increase maintainability of the CLI.
make parts of the CLI reusable at the discretion of users.
Comment everything to make design choices obvious.
All existing tests must pass without changes

Feature/Refactor?
So what is this? I took the CLI (namely bin/mocha and bin/_mocha) and separated the code into easier to digest chunks without affecting how it's used.
The issue I ran into was that using mocha programmatically with a custom runner (via the Mocha interface) you lose a lot of convenience and built in functionality, namely all the CLI commands and the mocha.opts file parsing.
It's not hard to understand the value of using mocha.opts or the CLI arguments when using your own runner, yet that logic was so baked into the cli code a user had no choice but to reimplement everything he wanted.
Limitations
I tried not to take any liberties but some were inescapable (and trust me I played with many design options that all retained current functionality).

In order to keep the api simple i had to override Command.parseOptions from Commander
I force using a mocha helper to make the Commander program (namely in cli.makeCommand)

How it works
To see how it works just look at the new _mocha file.
In cli.makeCommand in the overridden Command.parseOptions function I handle all the argument expansion that was in bin/mocha and all the --opts parsing that was scattered. By doing this users (and you) don't have to give a damn about --opts it Just Works and it works in the same way it did before, with one caveat.
I tore out all the commander overloading and now theres a cli.parseArgv function that handles the parsing instead of calling Command.parse. Since the CLI is no longer going to be exposed.
I don't mutate process.argv directly.
This gives numerous benefits like making it easy to create multiple CLI command instances, it makes it more obvious what is affecting the args instead of the disparate mutation of process.argv, and it essentially is another guard against double expanding --opts which would now take a talented monkey to screw up.
Function names
All of them can be changed, I named them based on what the chunk of code I relocated from the original CLI did, since I didn't change that behaviour, just moved it around.
exposed CLI
I did expose the CLI to users, but this can easily be removed. I dont mind for my purposes using internal  parts of mocha that I shouldn't.
Outstanding issues

[ ] test/color.spec.js currently fails, and I have no idea why or how to debug this
[ ] test/cli/cli.spec.js has a few tests that I could use help trying to figure out

Again sorry for the big no issue PR, but since it doesn't change existing functionality (especially if you don't expose the CLI) I'm hoping it's less of an issue.

there is something that does worry me.
most plugins or config.js files modify global and if we have multiple CLI instances with different requires then they will pollute the global scope and could collide.
Mocha by default behaves like this anyway, so I dont think it needs be fixed in this PR. But it could be problematic with an exposed CLI

So to update this PR is discussed here https://github.com/mochajs/mocha/issues/2578
Because of numerous limitation in Commander I abandoned the idea to make the Cli Reusable.
Issues were mainly around how to parse options and circumvent commander issues such as https://github.com/tj/commander.js/issues/584 and handle mocha's parameter expansion using the mocha.opts file.
A key use case in a reusable Cli with commander would be to use the Mocha Cli in a subcommand, which is not possible without out serious hackery due to how mocha parses (it always uses the base Command's functions instead of the subcommands' which I was overriding.
Instead I tore out the hackery and unexposed the Cli, so now it's just a code refactor.

Because of numerous limitations in  Commander  I abandoned the idea to make the Cli Reusable.

Hmm, I actually hope this comes back (perhaps after we move away from Commander? there's rumblings of trouble with Commander elsewhere: #2184). I've warmed up to the idea a lot. I'm not sure how much third-party tooling relies on the CLI, but I ran into another project in the wild that was manipulating Mocha via the programmatic API to augment its capabilities or run it in another environment (it seemed to be a competitor to Karma if I understood correct), but was itself a commandline tool, and after poking around at an issue for a while I thought, "Well, it's quite silly that this is reimplementing half of Mocha's commandline logic and leaving out the other half altogether."
So I'm going to have to set aside some time and see how the changes went here!

@ScottFreeCode thank you, and remember I'd be willing to help with implementation as this is core part of one of products, but just to let you know regardless of the CLI not being exposed, we are still using my branch in our project. And it still works. I would a way around how to make the command a subcommand as well (excuse the es6)
I basically just reimplemented the new _mocha  script in the action, which I dont think is too bad, but its not elegent.
import program from 'commander';
import * as MochaCli from 'mocha/lib/cli/cli';

const mochaCommand = program.command('mocha');
addMyArguments(mochaCommand);

mochaCommand
    .description('Straight passthrough to mocha runner\n'
                 + '\tJust with the config file already required for the test suite.\n'
                 + '\tAnd additional custom options added.\n'
                 + '\tUsage: my-test mocha --help'
    )
    .allowUnknownOption(true)
    .action(() => {
        const mocha = new Mocha(),
            newArgs = stripMyOptions(
                program.rawArgs // cuts out the subcommand
                    .slice(0, 2)
                    .concat(program.rawArgs.slice(3))
            ),
            subMocha = MochaCli.makeCommand();

        MochaCli.addActions(subMocha);
        MochaCli.parseArgv(newArgs);

        const opts = subMocha._opts(), // commander bug https://github.com/tj/commander.js/issues/584
              specs = MochaCli.resolveFiles(subMocha.args, opts);

        // set options in mocha
        MochaCli.setMochaOptions(mocha, opts);

        try {
            MochaCli.run(mocha, subMocha, specs);
        } catch (e) {
            FrameworkLogger.error(e.message);
            process.exit(1);
        }
    })
    .on('--help', () => {
        const subMocha = MochaCli.makeCommand();

        MochaCli.addActions(subMocha);

        const mochaHelp = subMocha.helpInformation();

        // commander is retarded and outputs the default help anyway
        process.stdout.write(mochaHelp.replace('Options:', 'Mocha Options:'));
    });

I don't think we're going to get anywhere with this.  I hate commander too.   happy to accept a complete rewrite of the options parsing w/ yargs or something.  sorry this dragged on forever.

There's a chance I'll do that in the not too distant future but no
promises.
On Sun, 8 Apr 2018, 00:59 Christopher Hiller<EMAIL_ADDRESS>wrote:

Closed #2553 https://github.com/mochajs/mocha/pull/2553.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/mochajs/mocha/pull/2553#event-1562373110, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AEF36Prd5PgUNhhKUepPDuFPex0z4kn2ks5tmUTNgaJpZM4KgOrl
.


Fix duplicate use_system_scm option in #17832

@googlebot I signed it!

@googlebot I signed it!

Fixes duplicate option use_system_scm in another PR: #17832

Fixes duplicate option use_system_scm in another PR: #17832

Thank you for the review!

Thank you for the review!


Pin a message

Thanks for your review @jorge-campo!
I've just updated the article, requested a screenshot, and created an issue (#412) to update this article with the screenshot once it's ready. Re-requesting a review to make sure the article's good to go now


"BiblioPixel troubleshooting" document

Generally, there are only a tiny number of possible things that have gone wrong in the past.
We should create a one-page troubleshooting document that tells people things like:

If there's an ERROR, and there isn't a clear explanation of how to fix the problem, it's probably our fault - report it to the mailing list
If there's no ERROR, then they probably got the wires wrong.
These sorts of hardware need to run as sudo (see also #582)
Here's the mailing list.

I believe at this point that we make fairly clear explanations of ERRORs resulting from the user making a mistake - bad JSON files, unknown colors like Bluck or Bloo, negative times and that sort of thing.  If the error messages aren't clear, people should be reporting them to us anyway so we can clear them up.

I'm pasting in #561 and closing it:
--
This is from my notes over the last few days, and I wanted to store them, to be put in a troubleshooting page or FAQ.
"serial.serialutil.SerialException: write failed: [Errno 5] Input/output error"
One cause for this is if your LED lights aren't powered (in my case, the power supply had become unplugged). You might see the lights work until many of them are lit up - and then crash when the processor can no longer output enough power.
We might also catch this specific error and annotate it with a suggestion when we print it (we do quite a lot of that).
SyntaxError: invalid syntax during installation of BP..
This is a normal part of the Jinja installation and can be ignored. (I knew this, both others might not.)
I'll add more here as these show up and we can eventually move this to publicly-visible documentation.
adammhaile commented on 20 Dec 2017
Regarding #1: What's actually happening there is you are USB powering and
when you start, it draws more than 500mA and the poly fuse on the AllPixel
trips. Fortunately it's a poly fuse, so it resets after removing power. But
I wanted to be specific about the reason.

+1
On Thu, Mar 8, 2018 at 6:41 AM, Tom Swirly<EMAIL_ADDRESS>wrote:

I'm pasting in #561
https://github.com/ManiacalLabs/BiblioPixel/issues/561 and closing it:
--
This is from my notes over the last few days, and I wanted to store them,
to be put in a troubleshooting page or FAQ.
"serial.serialutil.SerialException: write failed: [Errno 5] Input/output
error"
One cause for this is if your LED lights aren't powered (in my case, the
power supply had become unplugged). You might see the lights work until
many of them are lit up - and then crash when the processor can no longer
output enough power.
We might also catch this specific error and annotate it with a suggestion
when we print it (we do quite a lot of that).
SyntaxError: invalid syntax during installation of BP..
This is a normal part of the Jinja installation and can be ignored. (I
knew this, both others might not.)
I'll add more here as these show up and we can eventually move this to
publicly-visible documentation.
adammhaile commented on 20 Dec 2017
Regarding #1 https://github.com/ManiacalLabs/BiblioPixel/pull/1: What's
actually happening there is you are USB powering and
when you start, it draws more than 500mA and the poly fuse on the AllPixel
trips. Fortunately it's a poly fuse, so it resets after removing power. But
I wanted to be specific about the reason.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ManiacalLabs/BiblioPixel/issues/586#issuecomment-371463540,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA6a6o3xOPByOpXAla_DCaS2Ip4_boDQks5tcRjigaJpZM4RkPtJ
.


yolox_s stuck when training custom data

when training custom data with multi-gpus (I used 4 gpu devices), training process stuck, GPU memeory not released, and three gpus are in peak state, another one is empty。

I used the follwing training commands:

Your cuda memory is almost the upper bound, what if you reduce the batchsize?

Thank you for your excellent work. After reducing batch_size, my problem was solved. On our custom data set, after 300 epoch training, Yolox-S mAP was 4.4% higher than YoloV5-S.

what should be the bs? I reduced to bs = 8 and d = 4, then also it got stuck after 1st epoch eval


chore: remove isort

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

v3.0.2
GitHub release

Your semantic-release bot :package::rocket:


ImportError: No module named paddle.trainer.PyDataProvider2

First time to use paddle and not very familiar, so I try to do as the quickstart doc step by step.
http://www.paddlepaddle.org/doc/demo/quick_start/index_en.html
http://www.paddlepaddle.org/doc_cn/index.html
Environment: ubuntu 12.04 and install cpu-deb.
I have finished data preparation step and when i try to use dataprovider_bow.py script, it throw the error as my title,here is the log:
cloud@cloud-virtual-machine:~/paddle-git/demo/quick_start$ python dataprovider_bow.py
Traceback (most recent call last):
File "dataprovider_bow.py", line 15, in
from paddle.trainer.PyDataProvider2 import *
ImportError: No module named paddle.trainer.PyDataProvider2
What's the problem and how can i get that package imported correctly?? And i doubt if i install paddlepaddle correctly, how can i conform that??thx~

Hi, @ershersh
http://www.paddlepaddle.org/doc_cn/demo/quick_start/index.html
Most of python snippets in this page are to describe the details of our system how it works.
All python files in quick_start, including dataprovider_bow.py already in our script.
To make demo/quick_start runs, just typing following commands:

./preprocess.sh
./train.sh
you can open and modify train.sh, choose different models to train data.
./predict.sh

@ershersh
It is an import issue of python librarary named paddle.trainer.PyDataProvider2.
How did you build and install PaddlePaddle? If you didn't install it and python can't find a clue from the import commands in the script. As a fix, you may choose alternatives follows:

Install PaddlePaddle: after successfully executed make and install using make install, sudo may be necessary considering your local machines or consult your system administrator to properly install it.

Environment ablation: just add the directory of PaddlePaddle's python utilities before you could run any py script:

export PYTHONPATH=/path/to/Paddle/python:$PYTHONPATH

or simply copy the above lines to your preprocess.sh.
P.S.: The link of PaddlePaddle's quick start in Chinese you provided in the original post is wrong and maybe you could fix it?

First i have fix the link and add the English website. ^_^
@gangliao ./preprocess.sh run ok. and next I try this:
cloud@cloud-virtual-machine:~/paddle-git/demo/quick_start$ ./train.sh
/usr/bin/../opt/paddle/bin/paddle_trainer: error while loading shared libraries: libprotobuf.so.8: cannot open shared object file: No such file or directory
it shows that error about that .so library...
@stoneyang I use vmware11+ubuntu12.04 and install paddlepaddle by deb
root@cloud-virtual-machine:/home/cloud# dpkg -i paddle-0.8.0b0-Linux-cpu.deb
Selecting previously unselected package paddle.
(正在读取数据库 ... 系统当前共安装有 147560 个文件和目录。)
正在解压缩 paddle (从 paddle-0.8.0b0-Linux-cpu.deb) ...
dpkg：依赖关系问题使得 paddle 的配置工作不能继续：
paddle 依赖于 libatlas3-base；然而：
未安装软件包 libatlas3-base。
paddle 依赖于 libgflags2；然而：
未安装软件包 libgflags2。
paddle 依赖于 libgoogle-glog0；然而：
未安装软件包 libgoogle-glog0。
paddle 依赖于 libprotobuf8；然而：
未安装软件包 libprotobuf8。
paddle 依赖于 python-numpy；然而：
未安装软件包 python-numpy。
paddle 依赖于 python-pip；然而：
未安装软件包 python-pip。
paddle 依赖于 python-pip-whl；然而：
未安装软件包 python-pip-whl。
dpkg：处理 paddle (--install)时出错：
依赖关系问题 - 仍未被配置
在处理时有错误发生：
paddle
root@cloud-virtual-machine:/home/cloud# apt-get install -f
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
正在更正依赖关系... 完成
下列软件包将被【卸载】：
paddle
升级了 0 个软件包，新安装了 0 个软件包，要卸载 1 个软件包，有 686 个软件包未被升级。
有 1 个软件包没有被完全安装或卸载。
解压缩后将会空出 320 MB 的空间。
您希望继续执行吗？[Y/n]n
中止执行。
After command dpkg -i paddle-0.8.0b0-Linux-cpu.deb ,it shows that i still have error--some dependences not install, the guide doc tell me then apt-get install -f will continue install paddle, and install dependences, but the fact is it try to remove paddle so i choose canceled.Maybe there's something wrong here??
So I may try @stoneyang your ways to install later , see whether it can fix and update the result in time.thx all

meybe you should enter the paddle/python dir and run "python setup.py install"

@NIULQfromNJU i also try your method and did ont work
root@cloud-virtual-machine:/home/cloud/paddle-git/python# python setup.py.in install
Traceback (most recent call last):
File "setup.py.in", line 1, in
from setuptools import setup
ImportError: No module named setuptools

@ershersh
From your rely, you installed PaddlePaddle on your virtual machine using the shipped debian package according to the official instructions. Since you try to install CPU version of PaddlePaddle, maybe you should pay attention to the Note about the instruction set of your CPU listed at the bottom of the instructions. And make sure you have the proper access permission.
As a reminder, the two solutions I provided is about building PaddlePaddle from the source code on your local machine. You can try it out if needed.

@ershersh You should use apt-get update before apt-get install -f to make apt can find dependencies.

@ershersh Then you can follow the install instructions.

@reyoung I also try your method but it comes to the same result:  after"apt-get install -f",it tells me to delete paddle. Now I use my spare time to install paddle by docker
thanks all the same!

more than 1 months passed, so close this issue.


Rounded Button issue in MDIconButton

Description of the Bug
When the rounded_button=False property is changed in MDIconButton, it is still rounded.
Code and Logs
from kivy.app import App
from kivy.lang import Builder

kv = """
Screen:
    # KV-Code
    MDIconButton:
        rounded_button=False
"""

class MainApp(App):
    def build(self):
        self.root = Builder.load_string(kv)

if __name__ == '__main__':
    MainApp().run()

Screenshots
This is what you get

This is what should happen

Versions

OS: Windows 10

Python: 3.10.7

Kivy: 2.1.0

KivyMD: 1.1.0.dev0

@JimScope Your code contains bugs.

Sorry, it was a quick thing. Still it can be tested in any code. The problem is the property that doesn't change its value to False


⚠ ClamAV has degraded performance

In c57914e, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 193 ms

Resolved: ClamAV performance has improved in e73257a.


create my own type of file, and highlight different lines

I take notes with sigils in it.
? what I miss
! against reason
+ wide thinking
= way to do

How can I create my type of file such as 'xxx.rem', rem short for remember, and link syntax file to it. To colorize lines with differenct sigil.do I need to recomplie micro?
I take notes as soon as something come to my mind, I normally do it with dte, but it seems micro highlight is more configuable.

Creating your own syntax files is explained in help colors. The syntax file should be placed in eg. ~/.config/micro/syntax/rem.yaml. You may also look at the built-in syntaxes for inspiration.

thanks for instant response, I have some questions, and there is runtime/help instead of wiki page.


Don't verify transactions twice

When running Ledger::add_next_block, the transactions are currently verified twice:

in Ledger::check_next_block (called at vm/compiler/src/ledger/mod.rs:508)
in VM::finalize (called at vm/compiler/src/ledger/mod.rs:556)

Since this isn't a fast operation, we should only be doing it once, likely just in Ledger::check_next_block.

If extra safety is desired, we should instead use types, e.g. introduce a VerifiedBlock and/or a VerifiedTransaction that have the same contents as their unverified counterparts and are returned by e.g. Ledger::check_next_block. They would later used by methods that require verified input, and thus don't need to verify it on their own anymore.

Cc https://github.com/AleoHQ/snarkVM/issues/986

This has been fixed in testnet3.2.


[Bug]: Card Break when drag to other status

What happened?
When i drag to other status or edit modal, the view break, but the functionality okay

already npm run dev
Did i miss something?
How to reproduce the bug
<?php

namespace App\Filament\Pages;

use Mokhosh\FilamentKanban\Pages\KanbanBoard;
use App\Models\Lead;
use App\Models\Funnel;
use Illuminate\Support\Collection;
use Filament\Forms;

class DentalKanbanBoard extends KanbanBoard
{
    protected static string $model = Lead::class;
    // protected static string $statusEnum = ModelStatus::class;

    protected static string $recordTitleAttribute = 'sales_id';

    protected static string $recordStatusAttribute = 'funnel_id';

    protected function statuses(): Collection
    {
        $funnels = Funnel::where('division_id', 1)->get();
        return $funnels->map(function ($funnel) {
            return [
                'id' => $funnel->id,
                'title' => $funnel->title,
            ];
        });
    }

    protected function getEditModalFormSchema(?int $recordId): array
    {
        return [
            Forms\Components\TextInput::make('sales_id')->required(),
        ];
    }
}

Package Version
^2.7
PHP Version
8.2
Laravel Version
10
Which operating systems does with happen with?
macOS
Which browsers does with happen with?
No response
Notes
No response

I copy/pasted your code and tried to recreate missing parts by guessing, and it worked without any issues.
Can you create a reproduction repository so I can see your issue? Or maybe provide more info?

it's really weird,
somehow this < operator breaks the laravel blade,
I just try with simple logic @if(1 < 3)
when i try to move ur logic from
@if($record->timestamps && now()->diffInSeconds($record->{$record::UPDATED_AT}) < 3)

to
@if($record->timestamps && 3 > now()->diffInSeconds($record->{$record::UPDATED_AT}))

huh. maybe looking at the generated php view could help us track down the bug.
or maybe something else specific to your code makes this happen cause it seems to be working fine in my apps.
i would still appreciate a reproduction repo.

Sorry @mokhosh, i cant reproduce it too with fresh install,
I think its a problem with my project, and it is not a bug for this filament-kanban


samd21 UsbBus: Fix implementation & get itsybitsy_m0 example working

The main issue was the clocking: Driving a 48Mhz closed loop from a 32khz oscillator is a 15k multiplier, and with usb correction enabled, it was really throwing it off. Every time the USB bus would reset, the UART would stop working for a little thats how bad the timing got.
Aside from that, I've brought the samd21 implementation in line with the samd51 one, caveat minor hardware differences (ie: clocking).

I was investigating USB clock correction and figured out that the problem is that DFLLMUL.MUL needs to be set to 48000 (48 MHz / 1kHz), rather than 1464 (48 MHz / 32768 Hz). When USBCRM is enabled, the 32 kHz reference clock is ignored. If USB is connected, the DFLL runs in closed-loop mode using the 1 kHz SOF signal, otherwise it runs in open loop mode. This is described in section <IP_ADDRESS> (Atmel datasheet) or <IP_ADDRESS>.2 (Microchip datasheet) of the datasheet.
I tested various configurations on my itsybitsy_m0. The frequencies I measured depend on many external factors, but they may still give some insights. Enabling USBCRM with the current multiplier results in a frequency of around 52 Mhz, which explains why things didn't work. With the correct multiplier, I get a frequency of 47.98 MHz. In open loop mode (USB disconnected), I measured 46.50 Mhz. In closed loop mode with the 32 kHz oscillator, I measured 47.12 MHz.
Perhaps there should be an option to choose between open-loop/USBCRM or closed-loop with 32 kHz reference. I would expect that closed loop mode has better accuracy, even with the internal oscillator, so there may be some users who would prefer one over the other.

@lopsided98, could you open an issue? We have a full featured clock module coming in #450 (although only for the thumbv7em chips right now). I'd like to make sure we model this correctly there. Tagging @vccggorski and @vcchtjader


Document the building for heroku-16 stack

Currently not working as there seems to be an issue with the heroku-16.Dockerfile config in the official buildpack /cc @dzuelke

Support for heroku-16 is available in a new dev channel at https://incenteev-heroku-php-exts.s3.amazonaws.com/dist-heroku-16-develop.
There is no corresponding stable channel yet


Extend InputBase/EditContextFieldClassExtensions to support custom classes

Is your feature request related to a problem? Please describe.
I would like to use custom classes for valid/invalid fields in my form.
Describe the solution you'd like
Components such as InputText should accept ValidClass, InvalidClass and, potentially, ModifiedClass parameters.
Additional context
The default classes don't work with BlazorStrap and require modifying css to add an alias for the default classes.

Thanks for contacting us, @tstivers1990 .
We plan to address this as part of #8695.


Tests that accompany code run and produce output at default

In the case that unit tests accompany code, user may not expect, or like that at default

the tests are run,
the test run produces output (even) if all tests pass.

If tests take a negligible amount of time, running the tests at default may be fine, provided they produce no output on success.
If tests take a non-negligible amount of time, I can imagine people like to skip the tests at default.
Provided running the test at default is retained, it would be nice if the default non-running case could be achieved through a user-supplied main() in combination with a new command line option --run, or --unittest (the flag used by D).
int main(int argc, char** argv) {
    doctest::Context context(argc, argv); // initialize

    // overrides
    context.addFilter("no-run", !context.flag("run")); // control --no-run from --run
    ...
}

Note that currently configuring the context can only occur after processing the commandline options in Context's constructor, hence the comment mentioning overrides. The lack of being able to set defaults before commandline processing leads to the convoluted example above.
Supporting configuring defaults, e.g.:
int main(int argc, char** argv) {
    doctest::Context context;
    context.addFilter("no-run", true);  // default

    // --run (--unittest) on the commandline now overrides the --no-run default
    context(argc, argv);  // or context.apply(argc, argv);, or ...
    ...
}

perhaps I should eliminate the --no-overrides option altogether? and allow the user to construct a Context without passing argc/argv, then to set some options and then to apply argc/argv by calling context.applyCommandLine(argc, argv);? What do you think about this?

Conforming to Catch's Amending the config as you describe above seems like a good idea.


Scene Inventory: wrong logging

Problem
https://github.com/ynput/ayon-core/blob/3685a5e476b00106046cd9a06bc44c90defe827a/client/ayon_core/tools/sceneinventory/models/containers.py#L377-L379
This is un-implemented and crashing, hiding the real error that item is missing necessary data. Result is empty UI

Actually - where is this log_error even implemented on the Controller? I can't find the Controller class where that would be implemented. Any idea where that is?


Link jobs together like passed but without a dependency on success.

Connecting jobs together in a similar way to passed even if jobs have failed would be helpful, for example if you want to run some form of post-test despite an action job failing. You can currently easily trigger a new version to be omitted using an ensure with a put but it is not possible to draw it nicely in the GUI.
Maybe a small bar connected to the main job block could be used to display this while leaving the GUI Left to Right views clear.

This feels like it'd be better accomplished by having an ensure in the job itself. I'm not a fan of coupling jobs together in this way; limiting it to resource progression keeps it conceptually simple imo.


removed database and added subgraph docs

Removed the database and added subgraph from the docs

Thanks added the comments!


Ctrl + click

Issue Type: Feature Request
Ctrl + click is not working
Go to definition is not workin
VS Code version: Code 1.53.2 (622cb03f7e070a9670c94bae1a45d78d7181fbd4, 2021-02-11T11:48:04.245Z)
OS version: Windows_NT x64 10.0.19042

/needsMoreInfo
Language and minimal code sample required.

Yep. In general, does Ctrl+click work for you on Insiders? Alternatively, attach a screencap showing how it is not working. You can record a screencap using https://gifcap.dev.

Please find recording

Please fix! I'm experiencing this too all of a sudden and it's a pain in the butt cause I relied on that a bit...

Me too.
It works when vscode starts, but after some time the problem appears.
Vscode 1.55.2
PopOs 20.10.


Missing functions and objects in notebook 4

Hi,
I'm trying to run the lines of code in: https://github.com/aws/sagemaker-jumpstart-industry-pack/blob/main/docs/source/notebooks/finance/notebook4/SEC_10K_10Q_8K_section_extraction.rst
However, I miss the function "get_form_items" and the objects "columns_10K" and "header_mappings_10K", in the following block
https://github.com/aws/sagemaker-jumpstart-industry-pack/blob/203530c674dad6dbb6f586fa03cf319efd7b17a5/docs/source/notebooks/finance/notebook4/SEC_10K_10Q_8K_section_extraction.rst#L356
I could not find these objects in the package either. Any help appreciated.

Did you end up finding it?


Segmentation fault on Windows in wglCreateContext(hdc)

Description

Updated RenderDoc from v1.20 to v1.21 on Windows 11
I get access violation in wglCreateContext(hdc)

with pyglet:
Traceback (most recent call last):
  File "D:\Programming\zengl\examples\crate.py", line 11, in <module>
    window = Window()
  File "D:\Programming\zengl\examples\window.py", line 122, in __init__
    self._wnd = PygletWindow(*size)
  File "D:\Programming\zengl\examples\window.py", line 80, in __init__
    super().__init__(width=width, height=height, config=config, vsync=True)
  File "C:\Users\Szabi\AppData\Local\Programs\Python\Python310\lib\site-packages\pyglet\window\win32\__init__.py", line 136, in __init__
    super(Win32Window, self).__init__(*args, **kwargs)
  File "C:\Users\Szabi\AppData\Local\Programs\Python\Python310\lib\site-packages\pyglet\window\__init__.py", line 658, in __init__
    self._create()
  File "C:\Users\Szabi\AppData\Local\Programs\Python\Python310\lib\site-packages\pyglet\window\win32\__init__.py", line 297, in _create
    self.context.attach(self.canvas)
  File "C:\Users\Szabi\AppData\Local\Programs\Python\Python310\lib\site-packages\pyglet\gl\win32.py", line 231, in attach
    self._context = wgl.wglCreateContext(canvas.hdc)
OSError: exception: access violation reading 0x0000000000000020

with pygame:
pygame 2.1.0 (SDL 2.0.16, Python 3.10.4)
Hello from the pygame community. https://www.pygame.org/contribute.html
Fatal Python error: pygame_parachute: (pygame parachute) Segmentation Fault
Python runtime state: initialized

Current thread 0x00001ffc (most recent call first):
  File "D:\Programming\zengl\examples\example_project\window.py", line 13 in __init__
  File "D:\Programming\zengl\examples\example_project\main.py", line 9 in <module>

Extension modules: numpy.core._multiarray_umath, numpy.core._multiarray_tests, numpy.linalg._umath_linalg, numpy.fft._pocketfft_internal, numpy.random._common, numpy.random.bit_generator, numpy.random._bounded_integers, numpy.random._mt19937, numpy.random.mtrand, numpy.random._philox, numpy.random._pcg64, numpy.random._sfc64, numpy.random._generator, zengl, pygame.base, pygame.constants, pygame.rect, pygame.rwobject, pygame.surflock, pygame.color, pygame.bufferproxy, pygame.math, pygame.surface, pygame.display, pygame.draw, pygame.event, pygame.imageext, pygame.image, pygame.joystick, pygame.key, pygame.mouse, pygame.time, pygame.mask, pygame.pixelcopy, pygame.transform, pygame.font, pygame.mixer_music, pygame.mixer, pygame.scrap, pygame.fastevent, pygame._freetype (total: 41)

Rolling back to v1.20 resolves the problem for the pygame window. (this example used to work in the past)
The pyglet window gets stuck in a DwmFlush(). (this example was not tested in the past)
Steps to reproduce

With Python 3.10 x64 windows run any pygame OpenGL examples.

Set this to get a core profile:
        pg.init()
        pg.display.gl_set_attribute(pg.GL_CONTEXT_MAJOR_VERSION, 3)
        pg.display.gl_set_attribute(pg.GL_CONTEXT_MINOR_VERSION, 3)
        pg.display.gl_set_attribute(pg.GL_CONTEXT_PROFILE_MASK, pg.GL_CONTEXT_PROFILE_CORE)
        pg.display.set_mode((width, height), pg.OPENGL | pg.DOUBLEBUF)

Environment

RenderDoc version: v1.21 (98a93408)
Operating System: Windows 11 (build 22000.795)
Graphics API: OpenGL

I first reported this issue at https://github.com/pyglet/pyglet/issues/661. A few days ago the pygame example worked well and made me think the pyglet window breaks because of RenderDoc. Actually it does as it says white compared to pygame window, but now I assume it may also be caused by RenderDoc.

I'm not able to reproduce this. I installed pygame and downloaded the source repo (from https://github.com/pygame/pygame) to get an example, using the aliens example from the documentation I modified it as you specified, with hardcoded width/height since they weren't defined variables:
def main(winstyle=0):
    # Initialize pygame
    if pg.get_sdl_version()[0] == 2:
        pg.mixer.pre_init(44100, 32, 2, 1024)
    pg.init()
    pg.display.gl_set_attribute(pg.GL_CONTEXT_MAJOR_VERSION, 3)
    pg.display.gl_set_attribute(pg.GL_CONTEXT_MINOR_VERSION, 3)
    pg.display.gl_set_attribute(pg.GL_CONTEXT_PROFILE_MASK, pg.GL_CONTEXT_PROFILE_CORE)
    pg.display.set_mode((500, 500), pg.OPENGL | pg.DOUBLEBUF)
    if pg.mixer and not pg.mixer.get_init():
        print("Warning, no sound")
        pg.mixer = None

But when running it from RenderDoc I see an OpenGL context initialised and briefly used on a black screen then the rest of the rendering seems to not use OpenGL. Apart from a handful of context creation calls and a few swaps it doesn't seem to be using OpenGL at all, and doesn't crash.
If this is expected then I'm not able to reproduce the issue, if it's not then I'm not sure I'm following the right steps. Please provide a more complete reproducible test case that I can follow that doesn't assume familiarity with whichever library or code you are using, as I don't know anything about pygame.

Hi. Thank you for the quick reply. I made a video and pasted all the code below.
https://user-images.githubusercontent.com/11232402/182144487-c1afd792-8abb-441a-8e7d-3d6efbbfcf76.mp4
import time

import pygame as pg

class Window:
    def __init__(self, width, height):
        self.time = 0.0
        self.alive = True
        self.frames = 0

        pg.init()
        pg.display.gl_set_attribute(pg.GL_CONTEXT_MAJOR_VERSION, 3)
        pg.display.gl_set_attribute(pg.GL_CONTEXT_MINOR_VERSION, 3)
        pg.display.gl_set_attribute(pg.GL_CONTEXT_PROFILE_MASK, pg.GL_CONTEXT_PROFILE_CORE)
        pg.display.set_mode((width, height), pg.OPENGL | pg.DOUBLEBUF)
        width, height = pg.display.get_surface().get_size()
        self.size = width, height
        self.aspect = width / height

    def update(self):
        self.frames += 1
        pg.display.flip()
        pg.time.wait(10)
        self.time += 1.0 / 60.0
        for event in pg.event.get():
            if event.type == pg.QUIT:
                self.alive = False
        return self.alive

print('creating a window')
time.sleep(1.0)

window = Window(640, 480)

print('window created')
time.sleep(1.0)

while window.update():
    if window.frames % 100 == 0:
        print('+100 frames')

print('window closed')
time.sleep(1.0)

Fatal Python error: pygame_parachute: (pygame parachute) Segmentation Fault
Python runtime state: initialized

Current thread 0x000053bc (most recent call first):
  File "D:\Programming\zengl\test.py", line 16 in __init__
  File "D:\Programming\zengl\test.py", line 35 in <module>

Extension modules: pygame.base, pygame.constants, pygame.rect, pygame.rwobject, pygame.surflock, pygame.color, pygame.bufferproxy, pygame.math, pygame.surface, pygame.display, pygame.draw, pygame.event, pygame.imageext, pygame.image, pygame.joystick, pygame.key, pygame.mouse, pygame.time, pygame.mask, pygame.pixelcopy, pygame.transform, pygame.font, pygame.mixer_music, pygame.mixer, pygame.scrap, numpy.core._multiarray_umath, numpy.core._multiarray_tests, numpy.linalg._umath_linalg, numpy.fft._pocketfft_internal, numpy.random._common, numpy.random.bit_generator, numpy.random._bounded_integers, numpy.random._mt19937, numpy.random.mtrand, numpy.random._philox, numpy.random._pcg64, numpy.random._sfc64, numpy.random._generator, pygame.fastevent, pygame._freetype (total: 40)

Thanks, I'm able to run that program now but I can't reproduce the bug unfortunately - for me it runs and captures correctly on v1.21. I've tried on a couple of different GPUs with the same result. The only thing I'm unable to replicate is running on windows 11. Are you able to test on any other PCs to see if it's more widely reproducible?
Also in your video one thing that seems strange is there's no administrator prompt to update, and RenderDoc didn't re-open after the update. Is that something you removed from the video or is that how it actually happens for you? Does this problem still happen if you download the v1.21 zip from the website and run it directly?
If you're not able to test on another machine and it still reproduces with the zip download, would you be able to use nightly builds between 1ed4b561, 2021-05-27 (v1.20) and 98a93408, 2022-07-27 (v1.21) to narrow down when the problem started happening?

there's no administrator prompt to update,

there was, but it is not possible to record it with a non administrator process (ScreenToGif).

RenderDoc didn't re-open after the update

It did, after the video I found it started minimized as I had to close 2 RenderDoc UIs.
I re-recorded the video not to make this mistake, but I did it anyways.
I can only run Win11 on this machine, I have a few running Win10 I test on those too.
Actually I often reinstall my system to avoid bugs comming from updates and dangling state.
My system is quite recent (Saturday, 5 June, 2021, 3:01:25 PM).
I will test the nightly builds and I also try to get a memory dump or at least some traces.

Can you also please re-test with the latest nightly build? I made a fix that might be related to this, though I don't think it would explain a crash unless there's a driver issue.

Success! :) it works
Can you tell me more about the driver bug that should cause it?

I'm just guessing. I had a bug that would use incorrect context properties to create shared contexts for fetching resources. It wouldn't crash in RenderDoc's code that I'm aware of so it presumably was crashing in the driver. Technically in OpenGL the driver should never crash, and always just return an error code, but in practice that's not always feasible.

RenderDoc_2022_07_31_44a1de01_64 crashes
RenderDoc_2022_08_02_423da6b3_64 works


ListView example broken (onScroll)

Not sure if this is due to React Native 0.24 or not, but in the ListView example https://github.com/jaysoo/react-native-parallax-scroll-view/blob/master/examples/ListView/Talks.js#L55
This line should be onScroll={props.OnScroll} otherwise the underlying ListView will not receive proper scroll events and will not be able to update or render new rows when scrolling big lists down.

@andreialecu onScroll can used instead inplace of onReachedEnd?


Can't run branch re-write on apache with mysql

Wanting to contribute,
I dedicated a VM, clone project and switch to re-write branch.
But impossible to run app ...
Browser display "TaskBoard is Loading..."
My apache virtual host:
<VirtualHost *:80>
	DocumentRoot /home/bbichero/TaskBoard/src
	ServerName task_board

	<Directory /home/bbichero/TaskBoard/src>
    		Options +FollowSymLinks
    		AllowOverride All
        	Options All
        	Require all granted
        </Directory>

	ErrorLog ${APACHE_LOG_DIR}/task_board.log

    	# Possible values include: debug, info, notice, warn, error,
    	# crit,
    	# alert, emerg.
    	LogLevel warn

</VirtualHost>

Console log:

I can't run test with mysql, I got errors:

After changing R::setup('sqlite:tests.db') with the correct value, in for example: TaskBoard/test/api/controllers/AttachmentsTest.php, commands gulp test return exactly sames errors.

I'm just going to ignore the test issues for now as they work fine in the original SQLite environment.
As for the site not loading: any browser errors, do you have mod_rewrite enabled? The re-write branch does some logging of its own too, so you could take a look at dist/api/logs/api.log (if I remember correctly) and see if there were any API errors.

Yes all tests work with sqlite.
Yes I have mod_rewrite. I Was able to make auth form display it src/index.html was copying in /TaskBoard directory (root).
Why there is a <base href="/dist/"> line in index.html if the file is in /dist ?
Are you sure that my apache virtualhost conf file is correct ?
Now I got a POST 500 error when loading page.
And the file dist/api/logs/api.log is not present, dist/api/logs neither.

Oh, I forgot about the base href. If you've moved the dist directory contents to a directory served by Apache, then edit that to be <base href="/"> and the rewrites should work accurately.

Ok thanks, now that good, but impossible to work with mysql.
You can close this issue.
I can't find your email or a way to contact you so I will do here.
What is the point of re-write branch ? After make fun with taskBoard V1, it's better thant master branch V3.1, better I mean the design, the features. So if I contribute, the new code won't be on master branch ? Only in re-write ?
I really want to help TaskBoard community, but I want to understand the workflow.

I actually prefer TaskBoard contact through GitHub, so here is good! ;)
I appreciate the offer for help, and I'll definitely need contributions in the future. The re-write branch is a complete re-write of TaskBoard to improve design of both the UI/UX and codebase. It includes unit tests and modern development tools to make development easier and safer. It is also planned to be a simple drop-in and run install process once it's done.
I generally don't accept PRs on master, and request they all go against the dev branch. Lately however, I haven't had any so it hasn't been an issue. I've been debating just freezing PRs until re-write is ready. The idea is that once it's ready, it will be merged to master and dev, and be the new code to work against.
So basically, the workflow is (normally) to checkout dev, make changes, then submit a PR. Once accepted I then merge dev to master and do other upkeep (version numbers, etc.). There's nothing wrong with continuing that, though it will likely lead to more work for me when it comes time to switch over to the re-write branch code.
Right now, I'm won't accept PRs against re-write as it's still a work in progress and not really ready for other devs. I wanted to develop it publicly, so users could see it and make suggestions. But that's all the contribution it needs for now.
Thank you for your help so far (I enjoyed not having to answer every recent issue because your answers were good).
If you're interested, you can read through my blog and see what I've been doing on TaskBoard: https://matthewross.me/blog/

Okay I understand ! As soon has I have time, I will work on dev :)
I'm happy that you apreciate my answers on recent issue, you can depend on me for all news issues.
At this time I work everyday on GitHub, so this isn't disturbing my day job.
I will check your blog !
Have a nice day.


SBP: Add benchmarks to Spacewalk pallet

Thanks for your comment, we will address this in a few weeks after we implented the 2nd milestone of the web3 grant for Spacewalk.

Closing because we now added benchmarks to all the spacewalk-related pallets with extrinsics.


JAMES-3187 Review of "Distributed Server" section

This PR is a placeholder for a thorough review of the "Distributed Server" section.
Since it is a work in progress, it has been created in draft mode.

I am about to make a commit that has a lot of structural changes. I wanted to comment here first. I don't want you to think that I am being rude or difficult or anything like that. We can always revert if necessary. 😀
Allow me to explain my motivations:

I am using the same structure that was already used for the Basic Server

Those docs are still open as a draft PR, but easy to miss, but in a sense were "there first" 😇
I think it's important to maintain a relatively consistent structure, so the sections should be somewhat similar

Even though the Distributed Server is targeted at experts, I think there still needs to be a little more context

Even experts need context
It helps provide a "big picture" to what the server is about
Even non-experts will end up reading the docs, because usually experts don't work in a vacuum (they need to work with others who also need to understand to some extent)

The restructuring I propose is not necessarily the best, but as I said it is what currently is being used for the Basic Server. If we change, we should keep it fairly consistent for all the servers.
Note that I am also introducing extra work, which I know all James committers love to do anyway. 😜
So please forgive the intrusion and keep in mind the larger picture (i.e. that we have at least 3 servers that we want to document). Also we may want to test the documentation against actual (new) Operators and Integrators. (I am more than willing, but my preference is to start doing this first with the Extendable Server.)
My assumption is that many of the concepts can be taken from the Extendable Server (like hooks, events, task management, storage to some extent, Mailets, and maybe others). So if possible, we should reuse that reference by implying that the Distributed Server is an Extendable Server++, where the "++" is the ability to have a distributed system.
One more note: as Benoit already pointed out, because a lot of the information (configuration, Mailets, etc.) will be duplicated, we'll have to figure out a good way to manage that (either DRY source files or grouping these into something like a common "Concepts" section in the output). I'm not worried about that at this point. At this stage, even having exact copies is not an issue. We can (and should) do this optimization later.
So... here comes the commit. 😀

Also we may want to test the documentation against actual (new) Operators and Integrators. (I am more than willing, but my preference is to start doing this first with the Extendable Server.)

In the coming two weeks, I would love to derivate the "advanced/extendable" server documentation from that one.

My assumption is that many of the concepts can be taken from the Extendable Server (like hooks, events, task management, storage to some extent, Mailets, and maybe others). So if possible, we should reuse that reference by implying that the Distributed Server is an Extendable Server++, where the "++" is the ability to have a distributed system.

The existing documentation on https://james.apache.org/documentation.html mixes together servers, and makes it hard to understand what is and what is not applicable to each and every server.
Also, the "Distributed Server" is not and "Advanced Server ++". The storage technologies are different. The supported feature set is different (not by design, but more because some underlying interfaces were not implemented in JPA).
The vision that I defend is:

Duplicate the content from a reader point of view. That way I don't need to "convert" information from a given server context into another one. I don't need to click several links to get the information I need
We of course needs to centralize what could be centralized from a writing documentation perspective. https://docs.antora.org/antora/2.0/asciidoc/include-page/ could be a way to do it.

Many thanks for this review that I finaly (vacation!) have time to read carefully.
This is a great opportunity to improve this work.
I will takle most comments as part of #237

Thanks @chibenwa, and welcome back! I will help as much as I can, but I will not be available for the next few days.

Also, the "Distributed Server" is not and "Advanced Server ++". The storage technologies are different. The supported feature set is different (not by design, but more because some underlying interfaces were not implemented in JPA).
The vision that I defend is:

Duplicate the content from a reader point of view. That way I don't need to "convert" information from a given server context into another one. I don't need to click several links to get the information I need
We of course needs to centralize what could be centralized from a writing documentation perspective. https://docs.antora.org/antora/2.0/asciidoc/include-page/ could be a way to do it.

Ok, this is clear, and it makes the direction much clearer to me. Thank you for pointing this out. I will need to take another look when I get back.

Ok, this is clear, and it makes the direction much clearer to me. Thank you for pointing this out. I will need to take another look when I get back.

Yes, sorry because I started with a single server (and intend to document them one after one) I ended up not setting things for deduplication. I will start with mailet/matchers to provide an example.

Yes, sorry because I started with a single server (and intend to document them one after one) I ended up not setting things for deduplication. I will start with mailet/matchers to provide an example.

No problem. I think it's ok for the first iteration if there is duplication. We can optimize later. 😀

I'm closing this 17 month old PR doing a review.
Feel free to re-open / re-trigger separate discussions if relevant.


Can not log in

Good day.
Looks like this problem come up now and then.
Please assist in solving it, i keep on getting incorrect username or password when i try to login.
I even changed my password.
Thanks

Same here, even tried on 2 different computers and OS

I am having the same issue with Mac

Same here cannot Login !
Its showing Username/ Password incorrect while the entered Username and Password are absolutely correct

I am using version v.1.4.1 which seems to work fine.

there is an issue on login system which says that incorrect username/password eve if the credentials are correct.

For me guys this worked 👍
https://github.com/FaisalUmair/udemy-downloader-gui/releases/tag/v1.5.0

I have released a new version v1.6.3 which includes a workaround for the login problem. The new version brings Udeler Authenticator (A chrome extension for easily authenticating a Udemy account with Udeler).
How to use Udeler Authenticator?

Install the extension from here

After installing/enabling the extension, open udeler desktop app, you will see a new anonymous icon on the login page. Click the icon and it will start to listen for any login requests from your chrome web browser.

Open Udemy webiste on your chrome web browser and simply login to your account. Udeler app will detect the login and will let you in. If you are already logged in to Udemy, you can simply vist the website and it will still detect your account.

Use this method to download courses from Udeler for now. Meanwhile I will work on a proper fix for login.

I have released a new version v1.6.3 which includes a workaround for the login problem. The new version brings Udeler Authenticator (A chrome extension for easily authenticating a Udemy account with Udeler).
How to use Udeler Authenticator?

Install the extension from here
After installing/enabling the extension, open udeler desktop app, you will see a new anonymous icon on the login page. Click the icon and it will start to listen for any login requests from your chrome web browser.
Open Udemy webiste on your chrome web browser and simply login to your account. Udeler app will detect the login and will let you in. If you are already logged in to Udemy, you can simply vist the website and it will still detect your account.

Use this method to download courses from Udeler for now. Meanwhile I will work on a proper fix for login.

Thank you very much for this solution, I value your work very much and I like the program, I will be making you a donation.

Thank you @jeffersontpb Really appreciate your support 👍

AS of today it looks like version 1.5.0 and 1.6.3 is NOT working anymore on the Mac..

@JohnathanMarkSmith v1.6.3 has a workaround for the login issue. The login will not work directly, you have to use Udeler Authenticator (chrome extension).

I have released a new version v1.6.3 which includes a workaround for the login problem. The new version brings Udeler Authenticator (A chrome extension for easily authenticating a Udemy account with Udeler).
How to use Udeler Authenticator?

Install the extension from here
After installing/enabling the extension, open udeler desktop app, you will see a new anonymous icon on the login page. Click the icon and it will start to listen for any login requests from your chrome web browser.
Open Udemy webiste on your chrome web browser and simply login to your account. Udeler app will detect the login and will let you in. If you are already logged in to Udemy, you can simply vist the website and it will still detect your account.

Use this method to download courses from Udeler for now. Meanwhile I will work on a proper fix for login.

Thank you very much for this solution, I value your work very much and I like the program, I will be making you a donation.

I have released a new version v1.6.3 which includes a workaround for the login problem. The new version brings Udeler Authenticator (A chrome extension for easily authenticating a Udemy account with Udeler).
How to use Udeler Authenticator?

Install the extension from here
After installing/enabling the extension, open udeler desktop app, you will see a new anonymous icon on the login page. Click the icon and it will start to listen for any login requests from your chrome web browser.
Open Udemy website on your chrome web browser and simply login to your account. Udeler app will detect the login and will let you in. If you are already logged in to Udemy, you can simply visit the website and it will still detect your account.

Use this method to download courses from Udeler for now. Meanwhile I will work on a proper fix for login.

Great dude.Your support is awesome

I think lots of people facing the same authentication issue. For  udeler lover I had created a video how you can successfully authenticate to udemy  in V1.6.3  https://youtu.be/adhMIaL6i9A . Hope this will solve your problem. Cheers !

I have released a new version v1.7.0 which should allow you to login easily using the Udemy website itself.
The new version will support all kind of accounts, be it business, google or facebook. Download, test and provide feedback.


Document admission control plug-ins for Kube 1.0

Fixes #7895
There are many configuration guides that configure Kubernetes API server wrong by not turning on the right admission control flags to get the features we want.  This documents what each plug-in choice does and why you would want to use it.

Thanks.
Please add links to this:
https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/cluster-admin-guide.md
https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/devel/writing-a-getting-started-guide.md

I'm going to merge this and then make the suggested changes.

Thanks.  It was on my todo list to get back to so appreciate the help.
Sent from my iPhone

On Jun 2, 2015, at 7:09 PM, Eric Tune<EMAIL_ADDRESS>wrote:
I'm going to merge this and then make the suggested changes.
—
Reply to this email directly or view it on GitHub.

This broke the build.

And only oncall should merge.

For future reference, curious how doc breaks a build so I can know what was missed

You apparently don't have presubmit hooks installed.
https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/devel/development.md#hooks
verify-gendocs failed.
All .md files must have analytics tags. We're trying to use them to improve our docs. See the last line of docs/devel/development.md, for example.

Thanks I had to recreate my local environment and missed doing this on the new setup.   Apologies for the omission.
Sent from my iPhone

On Jun 2, 2015, at 10:10 PM, Brian Grant<EMAIL_ADDRESS>wrote:
You apparently don't have presubmit hooks installed.
https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/devel/development.md#hooks
verify-gendocs failed.
All .md files must have analytics tags. We're trying to use them to improve our docs. See the last line of docs/devel/development.md, for example.
—
Reply to this email directly or view it on GitHub.


Fix blocked_gibbs method of lgssm

Also fix the hmc demo and replace the attribute 'covariates_shape' of LinearGaussianSSM to 'inputs_shape' to make it consistent

I'll resolve these merge conflicts and merge soon...


Partial response request does not return all folder entries

- Request a list of all folders (my test site has 1000+ entries)
- Set Q to "mimeType = 'application/vnd.google-apps.folder' and trashed = false"
- Set Fields to "items(title,id,parents, userpermission)"

An error is returned on userpermission, not sure why. After leaving that field
out, the first batch (100 entries) is returned properly with just title,id, and
parents. However, NextPageToken field is null! If you don't specify a Fields
setting, then it works properly, and all entries are returned in multiple
batches.

1.9.0 Google APIs Client Library for .NET
Windows 8.1
Target .Net framework is 4.5
IDE is Visual Studio Prof. 2013 Update 4

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 17 Feb 2015 at 6:57

Closing as stale. Please open a new issue if follow-up is required.


Merge in Mark's stuff

Mark has added more cspyce functions.  He also automated the generation of the cspyce0_info.py files from the .i files.
This is his changes, with some slight cleanup by me

I think I made all changes this time.


publish to npm registry

In order for best usage of CommonJS module, this should be installable via npm, too... browserify & webpack users try to not use bower anymore

You speak of CommonJS, is there anything more to do than publishing the package on npm registry?

no, your module is perfectly prepared:

set up main in package.json
point it to index.js
export the module name in index.js

only thing missing is npm publishing, preferably with a new version including your current HEAD :)

Right, someone contributed the CommonJS compatibility :)
I will release as soon as #18 is fixed ;) and push to npm registry.
Thanks for the suggestion!

+1

@ctaepper @SpencerCarstens It should be available on npm registry. Can you confirm it's OK please?
Thanks!

confirmed! thank you

Great ;)


Rethink validation pattern for names

Issue was raised her in regards to team contact person: #577
Description
We've occurrences of the concept of a name (not "username"):

KwTenantModel contactPerson
TeamModel contactPerson

The validation for these names is currently too strict. e.g. it does not allow Umlaute (ä, ü etc).
It seems (*) that we're not using the concepts of firstname lastname - which also can be tricky, because this would assume there's always a firstname/lastname and often also comes with the assumption that lastname equals to familiyname etc.
(*) as far as I could see in a quick skim, backend please jump in and update if that's not tree 🙈
Notes
Validating names can be tricky (min. character, no special characters etc) and we should look into how we define the concept of "names" in Klaw and if there's room for improvement, also in regards to allowed pattern.

Currently in the backend there is regex validation in TeamModel "^[a-zA-Z ]*$"
In the existing angular 1 UI the only validation is in modifTeam.js and manageTeam.js to ensure the contactperson is not null or equal in size to 0.
From what I can see the contact person is not used for email notifications.
I would be interested in learning from the best practices that other opensource projects use to validate names and hopefully allow it to be as inclusive as possible.

I would be interested in learning from the best practices that other opensource projects use to validate names and hopefully allow it to be as inclusive as possible.

Yes, that sounds like a good idea!
I found this article and links in it pretty helpful in general:
https://dev.to/carlymho/whats-in-a-name-validation-4b41

From my (limited) point of view the question is how strict a name validation should be in the specific case of klaw team contact. The whole dataset is used to group user-accounts (which would have complete contact data) only. Not every use-case might have a contact at all. Maybe marking a group member as contact would be simpler.
also telephone number validation is very strict (e.g. +497112021 ) 🤐

Just thinking of the various patterns for telephone numbers, all of the below are relatively common patterns and are often intermixed with each other.

353 87 555-555-555
00 49 88 555 555 555
(089) 555.555.555
555555555

The only real information I could find here is the ITU standard which doesnt deal with formats. https://en.wikipedia.org/wiki/E.164
I think it makes the most sense for us to store a simple string in the db, and format that string on retrieval either in the UI or on the server to a desired format, that format we could make configurable or dependent on a user location setting?
Also the userInfoModel currently has validation turned off for username but a relatively restrictive validation for 'fullname'.
There is a great example here for providing for european accents & special characters, but I would need to do some testing and checks on names and characters that originate outside Europe. https://stackoverflow.com/questions/37655606/need-help-on-regex-to-include-european-accents-and-special-characters
None of this address' If we should always require a contact name though although if a phone number is required as a team contact I think it should generally match the contact name.

@haassm I am just looking at this at the moment, for now I am going to update the validation to allow accented characters and also allow the international leading + on phone numbers.
But I think if we require a phone number contact that Team Contact Person should be required so people know who they are calling.
But I am happy to have a discussion on this?


Recalculation of change detction after schema change is slowed by json_equals on fingerprint

When a recalculation is triggered by a schema change, the majority of recalculation time is in the database taken by queries performing json_equals on fp.fingerprint
e.g.
SELECT MIN(timestamp) FROM datapoint dp LEFT JOIN fingerprint fp ON dp.dataset_id = fp.dataset_id WHERE dp.variable_id = $1 AND (timestamp > $2 OR (timestamp = $3 AND $4)) AND json_equals(fp.fingerprint, $5)
and
select d1_0.id,d1_0.dataset_id,d1_0.timestamp,d1_0.value,d1_0.variable_id from DataPoint d1_0 left join Fingerprint f1_0 on d1_0.dataset_id=f1_0.dataset_id where d1_0.variable_id=$1 and d1_0.timestamp between $2 and $3 and $5=json_equals(f1_0.fingerprint,$4) order by d1_0.timestamp desc,d1_0.dataset_id desc
Hashing and indexing the fingerprint, and filtering by hash should speed up the calculation

Reopening because #963 caused #1127

#963 has been reverted: https://github.com/Hyperfoil/Horreum/pull/1150

Any PR for this issue should take into account: https://github.com/Hyperfoil/Horreum/issues/1002


can not change xhr.xhrParams.body_params.body before send_message

Hi,
I am developing a Google Chrome Extension and want to encrypt the message before sending. When I use the gmail.js and run the example to change to subject of the send_message, it works. However, I cannot change the body parameter. Does anyone know how to change the body of message before sending, such as replace it with the encrypted body? Some examples would be perfect, thanks.

By the way, I can change the compose dom, but when sending, the change has no effect. What is the relationship between the compose dom and xhr or email_data. The latter two record exactly what I input in the compose box. I am know to this, thanks for any explanation.

Hello @shaosongli unfortunately gmail hashes the message data before sending and this is a common issue with this library (you can search this in issues). The solution to this is to get the message content and modify that before the send action

If I remember correctly, there's a cmml parameter that represents length of gmail message. You could update that parameter to reflect the new body length.

Thanks for the reply @KartikTalwar Do you mean the solution in issue #86 . which means making the update to the body on the mousedown event for the send button rather than the click event. Sorry I am new to this area and do not even know how to catch the mouse down event of the send button.

Hi @keven425 , I think you have a similar problem to modify the body in issue #90, any luck for that. And could you give me some refer or example code, thanks.

@shaosongli sorry I don't have any sample code. But you can approach this in two ways:

modify url parameter "cmml" to reflect updated length of body. Length will be body.length. body you can get from the post data. However, cmml is passed in xhr open() call. Last time I checked gmail.js didn't provide a way to intercept the open().
modify body in dom before send API request happens. There are two places body lives. Inside content-editable div ($('.M9 [contenteditable=true]') which user can see), and in a form input with name="body" ($('.M9 input[name=body]')). I believe the form input reflects what's in content-editable div. But to guarantee your change takes effect, you can update both places.

Here is my solution and it works fine:
gmail.observe.before('send_message', function(url, body, data, xhr) {
    var oldCmml = xhr.xhrParams.url.cmml;

    var body_params = xhr.xhrParams.body_params;
    var string = '

hello

';

    if (string.length > oldCmml) {
        xhr.xhrParams.url.cmml = string.length;
    } else {
        string += '
';
        while(string.length<oldCmml){
            string += ' ';
        }
        string += '
';
        xhr.xhrParams.url.cmml = string.length;
    }

    body_params.body = string;

    console.log(oldCmml, xhr.xhrParams.url.cmml, string);

});

So if the oldCmml is less then the new newCmml (the body's length) then you simply set the newCmml. Otherwise if the oldCmml is greater then the newCmml then you can't reduce the cmml value, you have to add (oldCmml-newCmml) characters to the body. This is what the while cycle do.
You can replace the "string" variable with your new body string value.
Best Regards,
Gyozo

@kolczagy Great solution!! It Works! Thanks. This example should be in the documentation.

Seems this one is already solved. Closing.


feature request: show lines matching search string

This is a wonderful app. Thank you for creating it. I'd like to request a feature. It'd be really useful if the search results could show just the lines from notes that match the search string, perhaps with the note title as a prefix to the line.

Also partial matches don't seem to hit every time. e.g. search for "discor" won't find "discord"


Warning messages

Question
Is there a possibility, to show certain warning messages (with yellow color) just as the error/validation messages are shown, under each field?
We are experimenting with a solution using hintStart, but using that, the input box does not get a yellow (warning) border.
Maybe somebody has implemented a solution like this. Or is this a new feature request ? :)

use Wrapper https://formly.dev/docs/guide/custom-formly-wrapper, you may check prefix/suffix example https://formly.dev/docs/examples/other/material-prefix-suffix


Remove olbs

Remove references to an OLB directory that no longer exists

grr, this picked up the markdown patch as well-- my branches are a little confused at the moment, I'll resubmit it.


is there anyway to avoid inputting Node address manually when access ES cluster?

I think it is unreasonable to input node address manually every time when I access Cerebro .
it there anyway to skip that step and get the ES cluster status straightly ?

@huangyonghome You can always simply use the URL http://localhost:9000/#/overview?host=http:%2F%2Flocalhost:9200
This will skip the connection screen and hop directly to the overview page. Something that has been asked for in the past is that, if there is a single known cluster configured, that cerebro connects to it directly (which I guess makes sense). If I find enough time to work on it I will keep this in mind, as it should not be too much work.


Unable to restart HA when integration is configured

Hello,
Been using this integration for a while, now I faced an issue while trying to restart Home Assistant the following error can be seen:
Configuration validation
Validate your configuration if you recently made some changes to your configuration and want to make sure that it is all valid.
Configuration invalid

Platform error sensor.powercalc - cannot import name 'max_28_days' from 'homeassistant.components.utility_meter' (/usr/src/homeassistant/homeassistant/components/utility_meter/__init__.py)
Platform error sensor.powercalc - cannot import name 'max_28_days' from 'homeassistant.components.utility_meter' (/usr/src/homeassistant/homeassistant/components/utility_meter/__init__.py)
Platform error sensor.powercalc - cannot import name 'max_28_days' from 'homeassistant.components.utility_meter' (/usr/src/homeassistant/homeassistant/components/utility_meter/__init__.py)
Platform error sensor.powercalc - cannot import name 'max_28_days' from 'homeassistant.components.utility_meter' (/usr/src/homeassistant/homeassistant/components/utility_meter/__init__.py)
Platform error sensor.powercalc - cannot import name 'max_28_days' from 'homeassistant.components.utility_meter' (/usr/src/homeassistant/homeassistant/components/utility_meter/__init__.py)
Platform error sensor.powercalc - cannot import name 'max_28_days' from 'homeassistant.components.utility_meter' (/usr/src/homeassistant/homeassistant/components/utility_meter/__init__.py)
Platform error sensor.powercalc - cannot import name 'max_28_days' from 'homeassistant.components.utility_meter' (/usr/src/homeassistant/homeassistant/components/utility_meter/__init__.py)

Not sure how to further debug this, please let me know what other information is required. Haven't touched any configuration, HA version is 2021.10.6 and has been working for weeks, restart also worked a few days ago.
My sensors configuration:
    entity_id: climate.eloszoba_floor
    fixed:
      states_power:
        hvac_action|heating: 450
        hvac_action|off: 0
  - platform: powercalc
    entity_id: climate.emelet_floor
    fixed:
      states_power:
        hvac_action|heating: 900
        hvac_action|off: 0
  - platform: powercalc
    entity_id: climate.furdo_floor
    fixed:
      states_power:
        hvac_action|heating: 300
        hvac_action|off: 0
  - platform: powercalc
    entity_id: climate.alagsor_furdo_radiator
    fixed:
      states_power:
        hvac_action|heating: 300
        hvac_action|off: 0
  - platform: powercalc
    entity_id: switch.hmv_heater
    fixed:
      power: 4400

Please let me know what can be done to fix this.
thanks,
Daniel

Hi Daniel,
This issue was introduced in v0.13.1. In this version of powercalc I started referring a certain constant which is only available in HA 2021.12.x and higher.
So you can do two things to resolve.

Upgrade HA
Downgrade powercalc to v0.13.0

I will have a look if I can solve another way, to keep powercalc compatible with 2021.10.x, but don't have much time coming days.
Hope this helps.

Hi,
No worries, I just upgraded HA, that was the plan anyway. No idea how the integration got updated to this version though.
Googling the specific error didn't help, so maybe this thread will help next people facing the issue.
Thanks, I will update the close the case as well.

It is related to utility meter
https://www.home-assistant.io/integrations/utility_meter/


Pre-trained models

Dear @yunjey,
Thank you for your nice work. Would you please release your pre-trained models?

Dear @yunjey,
my email is<EMAIL_ADDRESS>you can send the Pre-trained models  to me, I will be very grateful！
thank you！

Sorry for late reply. We upload a script to download pretrained models. Please see here.

Thank you !!!


add setSocketUnixPath function

Hi,
A really simple PR: I just added this little function for my own usage.
Maybe could I add a check to test if the path exists ?
Thank you for this awesome CURL binding.

Maybe could I add a check to test if the path exists ?

No, caller should ensure this.


[MODEL] Add mllama support

Note: This PR is PARTIAL MLamma support. Only text layers (layeres repsonsible for text generation) are quantized. The Cross-attention layers are not yet quantized. As result, 4bit quant of 11B vision model results in 50% reduction and not ~1/4 as expected.


modify service fabric articles to add example and links for endpointcertificate in Service Fabric applications

modify service fabric articles to add example and links for endpointcertificate in Service Fabric applications

Learn Build status updates of commit f7dfdda:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

articles/service-fabric/service-fabric-application-and-service-manifests.md
:white_check_mark:Succeeded

articles/service-fabric/service-fabric-application-and-service-security.md
:white_check_mark:Succeeded

articles/service-fabric/service-fabric-assign-policy-to-endpoint.md
:white_check_mark:Succeeded

articles/service-fabric/service-fabric-best-practices-security.md
:white_check_mark:Succeeded

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

@tomvcassidy
Can you review the proposed changes? When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
Note: @jagilber - Microsoft FTEs who have access to the private repo should open PRs there.  Append -pr to the repo name in the GitHub URL, and you'll see the same article in the private repo.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team


Most relation fields (except Author) do not display their relations in the Submission form.

Describe the bug
The majority of relation fields (except the Author field on the Publication form) do not display their selected relations in the submission form.
Known Relation fields that work:

The "Author" field on the Publication form (this is a repeatable field which allows free text entry)

Know Relation fields that do not work:

The "Publication" field on the Person form (this is a non-repeatable field which doesn't allow free text entry)
The "Journal" field on the Journal Volume form (this is a non-repeatable field which doesn't allow free text entry)
The "Volume" field on the Journal Issue form (this is a non-repeatable field which doesn't allow free text entry)

Fields that do not work all exhibit the same behavior.  You can select a relation & it appears to be created. However, after closing the popup, the relation does not appear on the form.
While all the fields that do not work have the same configuration, changing their configuration (e.g. to repeatable or to allow free-text entry) doesn't seem to allow them to work.  They continue to behave in the same manner, regardless of configuration.
To Reproduce
My testing environment:

Using current main branch of dspace-angular (as of April 12, 2021)
On the REST API backend, I'm using the sample Entities data set
I'm using the latest version of main (again from April 12) including having https://github.com/DSpace/DSpace/pull/3224 applied/merged.
I've enabled all the Entity related collection mappings: https://github.com/DSpace/DSpace/blob/main/dspace/config/item-submission.xml#L36-L49 (to more easily test various Entity submission forms)
UPDATE: As of today, this same environment exists on https://api7.dspace.org  It has Entity-related Collection mappings uncommented & all of the above applied.

One example which doesn't work (Linking a new Issue to an existing Volume)

Start a new Submission in the "Journal Issues" collection. This will use the "Journal Issue" Entity form
The first field gives the ability to select a "Journal Volume" associated with this Issue. This is a non-repeatable field.
Click the lookup &  select from existing Journal Volumes.
Selecting a Journal Volume will work, but the Volume name is not displayed after closing the popup.
If you open the popup again, the linked Volume will be shown. (Relationship was created)

Another example which doesn't work (Linking a new Person to an existing Publication)

Start a new Submission in the "People" collection. This will use the "Person" Entity form
The first field gives the ability to link the Person to a single Publication. This is a non-repeatable field.
Click the lookup & select a Publication
Selecting the Publication will work, but the Publication is not displayed after closing the popup.
If you open the popup again, the linked Publication will be shown. (Relationship was created)

An example which works (Linking a new Publication to an existing Person)

Now start a new Submission in the "Articles" collection. This will use the "Publication" Entity form.
This has an "Author" field as the first field. It's a repeatable field.
Using the Lookup button, select one or more existing Persons as authors
They immediately appear back in the Submission form. (Everything works!)

I've also attempted changing fields from non-repeatable to repeatable (no effect on results) and other minor configuration changes. It's currently unclear to me why the Author field works while others do not.
Further testing
Because of the discussion in #1092, I attempted to rollback dspace-angular to before #1025 was applied. This had seemingly no effect on the results above. I still cannot get relationships to work.
Here's how I rolled back my UI to before #1025:
# Checkout the commit before #1025
git checkout 3815bdbd8c1e458ea88d906459b823eaa33dbe25
# Reapply #1055 only, as this is needed to run a current REST API backend (as entity types are in a different metadata field now)
git cherry-pick -m 1 0f7a32d0dfcee30f0436ba0b762e87c812b8b48a
yarn clean
yarn install
yarn start:dev

Again, after those steps, I retested the above examples & got the same results. The Author field works while others do not.
Expected behavior
All relation fields (regardless of backend configuration) should show display their selected value(s) in the Submission Form.  Obviously some are only allowed one value, while others can have multiple values (depending on the repeatable setting).
Related work
Related to discussions in #1092 , but this bug seems unrelated to repeatable fields in my opinion.

I've tentatively scheduled this for Beta 5, as I feel it is very high priority to resolve (there's no clear workaround).  However, if we cannot find an immediate volunteer, we may have to consider fixing it during Testathon and flagging it as a "known bug" to any testers until it is solved.

I created a PR to fix this issue: #1096. Kristof and I spent 4h on this. Since it's urgent, we decided to go ahead and fix it rather than estimate and wait for approval first

Thanks @artlowel !  I'll add the estimate and help get the PR reviewed immediately.
Since your PR looks to be dependent also on #1092, I'd appreciate your help/support (or someone on your team) in moving that forward quickly too.  Thanks again.


[Toggle] 'onToggle' works different in production and development build...

Problem description
render code:
<Toggle labelPosition="left" label="Label" toggled={this.state.toggled} onToggle={this.onToggle}/>
for development build code:
onToggle = (e, isInputChecked)=> {     this.setState({         toggled: !isInputChecked     }); };
this code works good at only development build.
for production build code:
onToggle = (e, isInputChecked)=> {     this.setState({         toggled: isInputChecked     }); };
this code works good at production build.
Link to minimal working code that reproduces the issue

Versions

Material-UI: ^0.18.0
React: ^15.5.4
Browser: Chrome 58.0.3029.81 (64-bit)

i think it's relevant to #6626

sorry It's was not NODE_ENV problem...
but it's different

What was the issue? Just saw this exact same thing...
I was able to fix it without finding out the exact cause, but I would still be interested to know what caused the behaviour for you.

So the issue resolution is to not relie on isInputChecked arg?


haproxy-marathon-bridge   error

[root@docker-128 haproxy]# sh -x /usr/local/haproxy/haproxy-marathon-bridge

set -o errexit -o nounset -o pipefail
/usr/local/haproxy/haproxy-marathon-bridge:行170: 未预期的符号 `>' 附近有语法错误

Hi @xuedihualu !
Could you please post which version of Marathon, Linux distribution and Docker image you are using?
Thank you.
@lloesche

@aldipower haproxy-marathon-bridge should not be used anymore. https://github.com/mesosphere/marathon-lb is doing the same thing just in a more robust way.

Thank you @lloesche !
@xuedihualu Does it help you, if you upgrade to the marathon-lb ?

@aldipower
marathon 0.13 docker 1.9
Thank you , I will tell you , if i try it successfully.

@lloesche
I use the images based centos. Do you have any practical examples, I would like to refer to it,thank you.


dep: update xupercore version to support caller in contract

Description
What is the purpose of the change?
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
Type of change
Please delete options that are not relevant.

[x] New feature (non-breaking change which adds functionality)

Brief of your solution
Please describe your solution to solve the issue or feature request.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Codecov Report

Merging #19 (142f448) into main (3d29a76) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #19   +/-   ##
=======================================
  Coverage   59.38%   59.38%
=======================================
  Files          14       14
  Lines         746      746
=======================================
  Hits          443      443
  Misses        249      249
  Partials       54       54

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 3d29a76...142f448. Read the comment docs.


Fix/nonce in ssr

Fixes #3571
Reverts #3415 and #3446
#3415 was a fix for issue #3414 but I believe the issue wasn't in styled-components but maybe just lack of documentation on how __webpack_nonce__ should be used. And #3446 was just a fix on top of #3415.
__webpack_nonce__ is a magic variable and webpack does some special handling for it. To my understanding it should be set at the beginning of entry point and used directly like __webpack_nonce__ = 'secret' instead of through window (which doesn't even exist on server).

Any chance to get this reviewed and merged? For now I have patched this myself in my project with patch-package, but it would be nice to have this fix in styled-components v5.

@probablyup I don't use webpack personally, but this looks good at a glance, and seems to match more closely to what's in v6.


net/http: reading from hijacked bufio.Reader should not cause r.Context to be cancelled

I was working on https://nhooyr.io/websocket when I noticed that when the connection returned from Hijack is closed, r.Context() is cancelled. This is bizarre behaviour given after Hijack, there should be no way for net/http to cancel the request context. After all, how could it know the connection is closed?
I tracked down the issue to the bufio.Reader returned from Hijack. When a read errors, it causes r.Context to become cancelled.
In my library I'm using the returned bufio.Reader for all reads. When a goroutine would close the connection, another goroutine would read from the connection and so due to this line, the context would be cancelled.
I think its best that reads on the bufio.Reader not cause r.Context to be cancelled as after Hijack, net/http should not be involved at all.

Thank you for reporting this issue @nhooyr!
Might you be able to perhaps work out a repro which we could turn into a test as @bradfitz has requested in your CL?
I have started a seed test case https://play.golang.org/p/gidrGk8M5Dq but just shutting down my computer to be up for a long event, please help me carry on to see it this can make your repro
(or inlined below)
package main

import (
	"context"
	"fmt"
	"io/ioutil"
	"log"
	"net/http"
	"net/http/httptest"
	"strings"
	"time"
)

func main() {
	cst := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
		hj, ok := w.(http.Hijacker)
		if !ok {
			w.WriteHeader(http.StatusNotImplemented)
			return
		}
		conn, bufw, err := hj.Hijack()
		if err != nil {
			http.Error(w, err.Error(), http.StatusInternalServerError)
			return
		}
		defer conn.Close()

		reqBlob, _ := ioutil.ReadAll(conn)
		fmt.Printf("request blob: %s\n", reqBlob)
		bufw.Write([]byte("HTTP/1.1 200 OK\r\nConnection: keep-alive\r\nContent-Encoding: chunked\r\nContent-Length: 2\r\n\r\nok"))
		bufw.Flush()
	}))
	defer cst.Close()

	ctx, cancel := context.WithCancel(context.Background())
	defer cancel()

	req, _ := http.NewRequest("POST", cst.URL, strings.NewReader("aaaaaaa*****aaaaaaaaaaaa"))
	req = req.WithContext(ctx)

	resultCh := make(chan []byte)
	go func() {
		defer close(resultCh)
		res, err := cst.Client().Do(req)
		log.Print("Made request!")
		if err != nil {
			log.Fatalf("failed http request: %v", err)
		}
		blob, _ := ioutil.ReadAll(res.Body)
		_ = res.Body.Close()
		resultCh <- blob
	}()

	select {
	case <-ctx.Done():
		log.Fatalf("Surprisingly context was ended with error: %v", ctx.Err())
	case <-time.After(5 * time.Second):
		log.Fatal("Waited for too long!")
	case blob := <-resultCh:
		// Great case!
		// fmt.Printf("%s\n", blob)
		if len(blob) == 0 {
			log.Fatal("Failed to get back response data")
		}
	}
}

The essence of the problem is replicated by Hijacking the connection, closing it, then reading from the bufio Reader returned by Hijack and observing that context.Context is cancelled.

Cool, thank you @nhooyr! So perhaps https://play.golang.org/p/k5S0LVVXFhb will suffice for your test
package main

import (
	"io/ioutil"
	"net/http"
	"net/http/httptest"
	"strings"
	"testing"
)

func TestConnCloseNoCancellation(t *testing.T) {
	cst := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
		hj, ok := w.(http.Hijacker)
		defer func() {
			ctx := r.Context()
			select {
			case <-ctx.Done():
				t.Fatalf("client.Context Done with error: %v", ctx.Err())
			default:
			}
		}()
		if !ok {
			w.WriteHeader(http.StatusNotImplemented)
			return
		}
		conn, bufrw, err := hj.Hijack()
		if err != nil {
			http.Error(w, err.Error(), http.StatusInternalServerError)
			return
		}
		conn.Close()

		_, _ = ioutil.ReadAll(bufrw)
		bufrw.Write([]byte("HTTP/1.1 200 OK\r\nConnection: keep-alive\r\nContent-Encoding: chunked\r\nContent-Length: 2\r\n\r\nok"))
		bufrw.Flush()
	}))
	defer cst.Close()

	req, _ := http.NewRequest("POST", cst.URL, strings.NewReader("aaaaaaa*****aaaaaaaaaaaa"))
	res, _ := cst.Client().Do(req)
	if res != nil {
		_, _ = ioutil.ReadAll(res.Body)
		_ = res.Body.Close()
	}
}

which produces
=== RUN   TestConnCloseNoCancellation
--- FAIL: TestConnCloseNoCancellation (0.00s)
    prog.go:18: client.Context Done with error: context canceled
FAIL

Hey @nhooyr, I recall in an issue you commented that I should carry this on. @clairerhoda would like to take this on so she'll continue with it and submit it for Go1.14.


[Bug] : Nav bar mismatch color fixed

hello @subhadeeproy3902 ,
Related Issue  && Description
[Bug] : Nav bar mismatch color fixed
Type of PR

[x] Bug fix
[ ] Feature enhancement
[ ] Documentation update
[ ] Other (specify): _______________

Screenshots / videos (if applicable)
Before

After

Checklist:

[x] I have performed a self-review of my code
[x] I have read and followed the Contribution Guidelines.
[x] I have tested the changes thoroughly before submitting this pull request.
[x] I have provided relevant issue numbers, screenshots, and videos after making the changes.
[X] I have commented my code, particularly in hard-to-understand areas.

Additional context:
[Include any additional information or context that might be helpful for reviewers.]

@sivaprasath2004 Please read Contributing.md

hello @subhadeeproy3902 , added my name in the ContributorsData.ts