Add birthdate and other info for a face

Describe the enhancement you'd like
Adding a birthdate to a person (Face)  would add a lot of benefits, which I could mention below.
Faces (or people) would have their profile page where you could see the birthday (maybe even set reminders later, or compilations for that day) Their address or contact info like phone number and email. And other fields the user can fill out.
Describe why this will benefit the LibrePhotos
It could benefit a lot, and I'll number the benefits below:

You can then ignore faces when matching if the time stamp on the photo is earlier than the birthdate, since it can't be that person.
If you take one a step further, if an image is 10 years after the birthdate, you can't have baby photos match a young teen, but that's more advanced stuff.
Also adding possibly a death date, where every photo after that time could not match that person.
As mentioned in the first part, adding reminders for birthdays and maybe a collage you can use for the party, stuff like that.
Adding more info to a person, like contact info which can be used to quickly share stuff to them, or keeping that info tied to a photo in case you lose that info else where.

Next to Birth date, a death date, but also anniversary date could be useful.
Next to these dates I believe it could be useful to identify relations between people (spouse, parents, children and all other family related relations), perhaps even make this a bit dynamic so we can also add 'friends' or 'coworkers'. It would be great if we can address timeframes for said relations (especially for coworkers this can be useful)

Next to Birth date, a death date, but also anniversary date could be useful. Next to these dates I believe it could be useful to identify relations between people (spouse, parents, children and all other family related relations), perhaps even make this a bit dynamic so we can also add 'friends' or 'coworkers'. It would be great if we can address timeframes for said relations (especially for coworkers this can be useful)

Wow, I was reading that, and thinking “Is that a quote of the issue?” but now I notice I forgot to add those in. Thanks for that, yeah those are great features for sure.


AC is missing the Armor🐛

5e Armor Class is missing the armor and options that help make the AC.

AC is presented by the armor options are missing.

Configuration
CLI > 5e
Sources:
PHB

It is present when you're using plain markdown
Armor Class 16 (natural armor)
Can you verify for me how or if the Fantasy Statblock YAML format wants these additional characteristics? This is a function of the generated YAML and what FS wants to do with it..
The last I looked, the FS YAML format only accepted an number for the AC.

I'm going to close this for now, because I can't fix it. If you use plain markdown rendering (which can still work with the fantasy statblock index, initiative tracker and its encounter builder), then those attributes are available to you.


Exported values are reset to defaults once a script runs into error when using _get_property_list()

Godot version:3.2.3
OS/device including version:
Windows 10
Issue description:
If you use _get_property_list() to set a variable (say an int with default value 10) and set the value to 2 in the inspector, the moment the script produces an error the value in inspector will be reset to 10 instead of remaining at 2.
Steps to reproduce:
Create a node and a new script. Add tool to the top and the _get_property_list() function with the following code:
int test_int : int = 5
func _get_property_list() -> Array:
	var result = []
	result.append({
		name = "test_int",
		type = TYPE_INT
	})
	return result

set test_int to any value in the inspector apart from the default. Cause an error in the script (add s to results for example). Save the script. Solve the error and save again. The value is now 5 in inspector.

Just in case if anyone needs an workaround:
Since the built-in export does not reset even if script was saved with an error, we can use (read: abuse) that to save our values set in _get_property_list() for now. (Godot 3.2.3)
tool
extends Node2D
# After you fixed the error, the "selected_item" won't be reset, and you should be using this variable
# instead of "please_select_item"
# Then here's the thing to beware of:
# after fixing the error, if you write anything legit code (var a=1, #comment, etc.)
# anywhere in the code... it resets...
# Kinda managed to prevent that by making an "if statement" at func set_item()

var item_list = "None, item_1, item_2"
export(String) var selected_item = "None" # This musn't be touched in the editor inspector
var please_select_item setget set_item # workaround variable

func set_item(value):
	please_select_item = value
	if value != null: selected_item = value # see top comment
	property_list_changed_notify() # this is a must-need to change the value in the exported properties

func _get_property_list():
	var property_list = []

	property_list.append({
		"hint": PROPERTY_HINT_ENUM,
		"usage": PROPERTY_USAGE_DEFAULT, # Doesn't seems to matter
		"name": "please_select_item",
		"type": TYPE_STRING,
		"hint_string": item_list,
	})

	return property_list


Group text lines if they are centered (#382)

Description
Add a check when checking if lines should be merged to see if they are centered above each other.
Fixes #382
Note: it might also be worth having a read of #383, as there is perhaps a discussion there about how to deal with these checks for a negative line margin...
How Has This Been Tested?
Example PDF
Here is my test code (which simply loads the pdfs and prints the elements):
from pdfminer import converter, pdfdocument, pdfinterp, pdfpage, pdfparser
from pdfminer.layout import LTTextContainer, LAParams
path_to_file = "centered_text_example.pdf"

with open(path_to_file, "rb") as pdf_file:
    parser = pdfparser.PDFParser(pdf_file)
    document = pdfdocument.PDFDocument(parser)
    resource_manager = pdfinterp.PDFResourceManager()
    device = converter.PDFPageAggregator(resource_manager, laparams=LAParams())
    interpreter = pdfinterp.PDFPageInterpreter(resource_manager, device)
    for page in pdfpage.PDFPage.create_pages(document):
        interpreter.process_page(page)
        results = device.get_result()
        elements = [
            element for element in results if isinstance(element, LTTextContainer)
        ]
device.close()

print(elements)

Before this change, you get:
[
    <LTTextBoxHorizontal(0) 123.800,344.802,216.392,367.878 'Long Text 1\n'>,
    <LTTextBoxHorizontal(1) 146.100,366.002,194.070,411.778 'Text 1\nText 2\n'>,
    <LTTextBoxHorizontal(2) 146.100,302.502,194.070,348.278 'Text 3\nText 4\n'>,
    <LTTextBoxHorizontal(3) 39.700,24.176,43.200,42.152 ' \n'>,
    <LTTextBoxHorizontal(4) 395.500,24.176,399.000,42.152 ' \n'>
]

After this change you get:
[
    <LTTextBoxHorizontal(0) 123.800,302.502,216.392,411.778 'Text 1\nText 2\nLong Text 1\nText 3\nText 4\n'>,
    <LTTextBoxHorizontal(1) 39.700,24.176,43.200,42.152 ' \n'>
    <LTTextBoxHorizontal(2) 395.500,24.176,399.000,42.152 ' \n'>
]

(The last two elements in each are just artefacts in the example pdf, ignore them).
Checklist
I will do these things once I get a bit of guidance on whether this is an acceptable change. I'll also need a pointer on how to add a relevant test.

[x] I have added tests that prove my fix is effective or that my feature works
[x] I have updated the README.md and other documentation, or I am sure that this is not necessary
[x] I have added a consice human-readable description of the change to CHANGELOG.md
[x] I have added docstrings to newly created methods and classes
[x] I have optimized the code at least one time after creating the initial version

I will do these things once I get a bit of guidance on whether this is an acceptable change.

It is

I'll also need a pointer on how to add a relevant test.

Look at tests/test_layout.py for inspiration.

@pietermarsman I've added 4 new commits, addressing your comments and then adding tests.
I couldn't find any tests for the function I've changed, but think what I added tests it fairly well (even if it takes a while of figuring out bounding boxes to work out what it's doing....).
Before my change, this test would fail because the centrally_aligned_overlapping text boxes would not be included.
Please could you take a look?

@pietermarsman PR updated with your comments


pip-sync uninstalls pkg-resources, breaks psycopg2

pip-sync uninstalls pkg-resources, which in turn breaks installation of many other packages. pkg-resources is a new "system" package that was recently extracted from setuptools (since version 31, I believe). I think it must be handled similarly to setuptools.
Steps to replicate
On a fully updated Ubuntu 16.04 LTS:
semenov@dev2:~/tmp$ rm -rf ~/.cache/pip
semenov@dev2:~/tmp$ virtualenv --python=$(which python3) test
Already using interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in /home/semenov/tmp/test/bin/python3
Also creating executable in /home/semenov/tmp/test/bin/python
Installing setuptools, pkg_resources, pip, wheel...done.
semenov@dev2:~/tmp$ cd test
semenov@dev2:~/tmp/test$ . bin/activate
(test) semenov@dev2:~/tmp/test$ pip install pip-tools
Collecting pip-tools
  Downloading pip_tools-1.8.0-py2.py3-none-any.whl
Collecting six (from pip-tools)
  Downloading six-1.10.0-py2.py3-none-any.whl
Collecting first (from pip-tools)
  Downloading first-2.0.1-py2.py3-none-any.whl
Collecting click>=6 (from pip-tools)
  Downloading click-6.6-py2.py3-none-any.whl (71kB)
    100% |████████████████████████████████| 71kB 559kB/s
Installing collected packages: six, first, click, pip-tools
Successfully installed click-6.6 first-2.0.1 pip-tools-1.8.0 six-1.10.0
(test) semenov@dev2:~/tmp/test$ echo psycopg2 > requirements.in
(test) semenov@dev2:~/tmp/test$ pip-compile
#
# This file is autogenerated by pip-compile
# To update, run:
#
#    pip-compile --output-file requirements.txt requirements.in
#
psycopg2==2.6.2
(test) semenov@dev2:~/tmp/test$ pip-sync
Uninstalling pkg-resources-0.0.0:
  Successfully uninstalled pkg-resources-0.0.0
Collecting psycopg2==2.6.2
  Downloading psycopg2-2.6.2.tar.gz (376kB)
    100% |████████████████████████████████| 378kB 2.4MB/s
Could not import setuptools which is required to install from a source distribution.
Traceback (most recent call last):
  File "/home/semenov/tmp/test/lib/python3.5/site-packages/pip/req/req_install.py", line 387, in setup_py
    import setuptools  # noqa
  File "/home/semenov/tmp/test/lib/python3.5/site-packages/setuptools/__init__.py", line 10, in <module>
    from setuptools.extern.six.moves import filter, filterfalse, map
  File "/home/semenov/tmp/test/lib/python3.5/site-packages/setuptools/extern/__init__.py", line 1, in <module>
    from pkg_resources.extern import VendorImporter
ImportError: No module named 'pkg_resources.extern'

Traceback (most recent call last):
  File "/home/semenov/tmp/test/bin/pip-sync", line 11, in <module>
    sys.exit(cli())
  File "/home/semenov/tmp/test/lib/python3.5/site-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/home/semenov/tmp/test/lib/python3.5/site-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/home/semenov/tmp/test/lib/python3.5/site-packages/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/semenov/tmp/test/lib/python3.5/site-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/home/semenov/tmp/test/lib/python3.5/site-packages/piptools/scripts/sync.py", line 72, in cli
    install_flags=install_flags))
  File "/home/semenov/tmp/test/lib/python3.5/site-packages/piptools/sync.py", line 157, in sync
    check_call([pip, 'install'] + pip_flags + install_flags + sorted(to_install))
  File "/usr/lib/python3.5/subprocess.py", line 581, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['pip', 'install', 'psycopg2==2.6.2']' returned non-zero exit status 1

Expected result
pip-sync keeps pkg-resources in place, psycopg2 installs normally.
Actual result
pip-sync uninstalls pkg-resources, then psycopg2 installation fails with: ImportError: No module named 'pkg_resources.extern'

Debian and derivatives have split pkg-resources from setuptools for a long time.  I ran into this issue in my first ten minutes of trying out pip-tools.

I have a similar issue:
`rnwolf  ~  workspace  cpptest4  pip-sync
Uninstalling pkg-resources-0.0.0:
Successfully uninstalled pkg-resources-0.0.0
rnwolf  ~  workspace  cpptest4  pip-compile > requirements.txt
Traceback (most recent call last):
File "/home/rnwolf/workspace/cpptest4/.direnv/python-3.5.2/bin/pip-compile", line 7, in
from piptools.scripts.compile import cli
File "/home/rnwolf/workspace/cpptest4/.direnv/python-3.5.2/lib/python3.5/site-packages/piptools/scripts/compile.py", line 16, in
from ..repositories import LocalRequirementsRepository, PyPIRepository
File "/home/rnwolf/workspace/cpptest4/.direnv/python-3.5.2/lib/python3.5/site-packages/piptools/repositories/init.py", line 3, in
from .pypi import PyPIRepository
File "/home/rnwolf/workspace/cpptest4/.direnv/python-3.5.2/lib/python3.5/site-packages/piptools/repositories/pypi.py", line 14, in
from ..cache import CACHE_DIR
File "/home/rnwolf/workspace/cpptest4/.direnv/python-3.5.2/lib/python3.5/site-packages/piptools/cache.py", line 9, in
from pkg_resources import Requirement
ImportError: No module named 'pkg_resources'
`

Work-around: pip uninstall setuptools && pip install -U setuptools

A work-around that worked for me: add a line "pkg-resources==0.0.0" to the generated requirements.txt file.
@merwok 's workaround didn't work for me.

A work-around that worked for me: add a line pkg-resources==0.0.0 to requirements.in.

doesn't work for me.
pip-sync output:

Adding pkg-resources==0.0.0 to requirements.in worked for me. Tested in following way on debian stretch:
mkvirtualenv tmp
mkdir tmp && cd tmp
echo pkg-resources==0.0.0 > requirements.in
pip install pip-tools
echo flask >> requirements.in
pip-compile
pip-sync
After that flask has been installed and pkg-resources is still there. I tested it also by adding bpython to requirements.in (and pip-compile && pip-sync) and removing it followed by pip-compile and pip-sync. It worked without any problems, i.e. pkg-resources was preserved.

It not only breaks psycopg2, but also pip-tools itself!


Azure KeyVault Support

Hey,
We have started using Kale recently, and we are very happy with it.
We are mounting all of our secrets (and some general configuration) via Azure KeyVault (AKV) in order to keep everything secure.
Currently, we have a PodDefault defined for AKV which works perfect.
We have managed to manually integrate AKV with Kale by adding the following code to the .py file:
def attachAKV(phase):
    return phase.add_volume(k8s_client.V1Volume(name='akv', flex_volume=k8s_client.V1FlexVolumeSource(
        driver="azure/kv",
        secret_ref=k8s_client.V1LocalObjectReference(name="keyvaultcreds"),
        options={
            "keyvaultname": "keyvault-name-in-azure",
            "keyvaultobjectnames": "kubeflow-config;trains-config",
            "keyvaultobjectaliases": "secrets.json;trains.conf",
            "keyvaultobjecttypes": "secret;secret",
            "tenantid": "<tenantId>"
        })
    )).add_volume_mount(k8s_client.V1VolumeMount(
        mount_path="/secrets",
        name="akv",
        read_only=True
    ))

Then we just make count(tasks) calls attachAKV(THE_TASK).
We are thinking to make a PR that will add an official support, so that we won't need to manually add this to the .py file.
One idea was to have an external plugin that allows users to define their AKV settings (you can have different pipeline mounting different AKV settings), and then maybe add to the Kale UI an option to choose AKV settings from a list. Will it make sense?

@Shaked This would be a very welcome contribution! We have been talking about supporting secrets already, especially with @LeonardAukea .
It would be great if we could have a general way to attach both standard K8s secrets and have handlers for other types, like AKV.
Let's focus on the backend side first and then think how to handle this on the frontend. If you want to start opening a PR, I will be happy to review it and provide some direction.


A question

It is very nice to put the zlib in C++ setting, I was trying to do the same.  Just a quick question, is there a wrapper for initializing the gz file?

do you need to call deflateSetHeader OF((z_streamp strm,  gz_headerp head)); before deflate() to signal he compression type?


Person instance does not belong to group after editing

For a person instance A
When the edit command is used to modify A's personal information, such as their email address, A is considered a different person. This is due to the implementation of the equals() method, which causes A to no longer be recognized as belonging to the same group as before.

Duplicate of #200


Fix model download issue

Description
This pull request addresses a bug that caused model download functionality Sae.load_from_hub("EleutherAI/sae-llama-3-8b-32x", layer=10) to fail. The issue arose due to a folder name change in the Huggingface repository. Ref: huggingface commit.
Changes Made
layer_ to layers. in sae/sae.py
Testing
Ran the model download process with the updated code without errors.

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

Already fixed in a different way thx


"ACL not found" messages logged as errors

🐞 Bug Report
Affected Services [REQUIRED]

 The issue is located in:
There are many "ACL not found" ERRORs followed by INFO messages about creating them. Are these really meant to errors? I believe these should be reduced to WARN.
Is this a regression?
Yes, the previous version in which this bug was not present was: v2.2
Description and Minimal Reproduction [REQUIRED]
sudo snap install edgexfoundry --channel=latest/edge
snap logs -n=1000 edgexfoundry | grep --ignore-case "error"

🔥 Exception or Error
edgexfoundry.consul[156574]: 2022-07-29T17:17:49.335+0200 [ERROR] agent.http: Request error: method=GET url=/v1/acl/policy/name/acl_policy_for_app-functional-tests from=<IP_ADDRESS>:52794 error="ACL not found"
edgexfoundry.security-consul-bootstrapper[157086]: level=INFO ts=2022-07-29T15:17:49.346843916Z app=security-bootstrapper source=aclpolicies.go:142 msg="successfully created a new agent policy with name acl_policy_for_app-functional-tests"
edgexfoundry.security-consul-bootstrapper[157086]: level=INFO ts=2022-07-29T15:17:49.348177934Z app=security-bootstrapper source=aclroles.go:129 msg="successfully created a role [app-functional-tests] for secretstore"

edgexfoundry.consul[156574]: 2022-07-29T17:17:49.348+0200 [ERROR] agent.http: Request error: method=GET url=/v1/acl/policy/name/acl_policy_for_device-grove from=<IP_ADDRESS>:52794 error="ACL not found"
edgexfoundry.security-consul-bootstrapper[157086]: level=INFO ts=2022-07-29T15:17:49.359151534Z app=security-bootstrapper source=aclpolicies.go:142 msg="successfully created a new agent policy with name acl_policy_for_device-grove"
 edgexfoundry.security-consul-bootstrapper[157086]: level=INFO ts=2022-07-29T15:17:49.360910761Z app=security-bootstrapper source=aclroles.go:129 msg="successfully created a role [device-grove] for secretstore"
...

🌍  Your Environment
Deployment Environment:
Snap
EdgeX Version [REQUIRED]:
2.3.0-dev.31
Anything else relevant?

@farshidtz  we could change it warning level as you suggested, please bring this up in the next Security WG meeting to prioritize this

Suggest instead of a GET  to check existence, enumerate the list of policies and filter on  existence.

As discussed in the security call, this is actually coming directly from Consul so we can't simply change it to warning. @jim-wang-intel how do you think this can be changed without doing what Brian suggests?
See also: https://github.com/hashicorp/consul/issues/9933
Maybe we can pursue this on Consul's side so it ends 404 Not Found and not logged as error.

I believe the offending lines are:
https://github.com/edgexfoundry/edgex-go/blob/main/internal/security/bootstrapper/command/setupacl/aclpolicies.go#L113
policy, err := c.getPolicyByName(tokenID, policyName)

https://github.com/edgexfoundry/edgex-go/blob/a0e04e5594f9191c51d4a9e4e045bcf4d31a8569/internal/security/bootstrapper/command/setupacl/aclpolicies.go#L186
And the policy list command:
https://www.consul.io/commands/acl/policy/list


Fix typo in tests

This patch was written by<EMAIL_ADDRESS>and<EMAIL_ADDRESS>

You all may, after merging this, want to look into set_application_protos. It seems to, itself, try to parse the list, but doesn't notice syntax errors. After https://boringssl-review.googlesource.com/c/boringssl/+/46804, BoringSSL will do this for you, but your own parsers ought to also be correct.
Beyond that, taking the wire format is not a very friendly API. BoringSSL doing it comes from OpenSSL and is probably in part because "complex" types are annoying to represent in C. But I don't see why the Rust API doesn't take a Vec<Vec<u8>> or so.

Merged, thanks!
@davidben quiche exposes a C API that wraps the Rust one, so it made sense at the time to keep them consistent, even if that meant going with the less friendly way. Though we might reconsider this later on.


How to hide the right click menu?

Hi,
It's not a issue, maybe it's feature reqiure, how to hide the right click menu? is there any option to do that? I don't want user click the right menu the "Show DevTools" and "Close DevTools" to review source code.
Thanks,
Jack

Chromely is fully configurable. Almost all features can be configured. Please be familiar with Configuration wiki. This is where the features are added or removed.
In this case you want to configure a custom handler. Please see wiki @ How to Add Custom Handlers
So to give you a guide .. in Program.cs file you will need to add the RegisterCustomHandler method to the fluent configuration. You can register as many valid handlers allowed either for CefSharp or CefGlue.
Note that if  none is registered it will use the default.
ChromelyConfiguration config = ChromelyConfiguration
                              .Create()
                              .....
                             .RegisterCustomHandler(CefHandlerKey.ContextMenuHandler, typeof(CustomContextMenuHandler));
                              ....

So assuming this is CefGlue app,  CustomContextMenuHandler is a custom handler that must inherit from CefContextMenuHandler see the default
So the custom class can be like:
    public class CustomContextMenuHandler : CefContextMenuHandler
    {
        protected override void OnBeforeContextMenu(CefBrowser browser, CefFrame frame, CefContextMenuParams state, CefMenuModel model)
        {
            // To disable the menu then call clear
            model.Clear();

            // Removing existing menu item
            // Remove "View Source" option
            model.Remove((int)CefMenuId.ViewSource);
        }

        protected override bool RunContextMenu(CefBrowser browser, CefFrame frame, CefContextMenuParams parameters, CefMenuModel model, CefRunContextMenuCallback callback)
        {
            return false;
        }

        protected override bool OnContextMenuCommand(CefBrowser browser, CefFrame frame, CefContextMenuParams state, int commandId, CefEventFlags eventFlags)
        {
            return false;
        }

        protected override void OnContextMenuDismissed(CefBrowser browser, CefFrame frame)
        {
        }

        private class DevToolsWebClient : CefClient
        {
        }
	}

This will remove those commands. You can add more commands as you like.
I may have to reconsider making this the default and create a separate handler for debugging purpose. I will look into that.
Please let me know if you have more questions.

thanks mattkol,
I used CefSharp and implement handler class like below to hide the menu, it works well, thanks a lot for your help.
One more question, I find CefSharp based on version 63, and CefGlue based on 65, why CefSharp used the lower version and not up to date?
public class CustomContextMenuHandler : IContextMenuHandler
{
void IContextMenuHandler.OnBeforeContextMenu(IWebBrowser browserControl, IBrowser browser, IFrame frame, IContextMenuParams parameters, IMenuModel model)
{
// To disable the menu then call clear
model.Clear();
        // Removing existing menu item
        // Remove "View Source" option
        model.Remove(CefMenuCommand.ViewSource);

    }

    bool IContextMenuHandler.OnContextMenuCommand(IWebBrowser browserControl, IBrowser browser, IFrame frame, IContextMenuParams parameters, CefMenuCommand commandId, CefEventFlags eventFlags)
    {
        return false;
    }

    void IContextMenuHandler.OnContextMenuDismissed(IWebBrowser browserControl, IBrowser browser, IFrame frame)
    {
    }

    bool IContextMenuHandler.RunContextMenu(IWebBrowser browserControl, IBrowser browser, IFrame frame, IContextMenuParams parameters, IMenuModel model, IRunContextMenuCallback callback)
    {
        return false;
    }

}
Thanks,
Jack

Hi Jack,
Good to know the issue is fixed.
On CefSharp/CefGlue version, since Chromely is a consumer of these products, I think it will be more appropriate to release Chromely based on their version final releases.
CefSharp v65 is pre-release, As soon as it is a final release, Chromely will be updated.
CefGlue current release is v66. This will be done soon.
Thanks.

Got it, thanks a lot and good job!

Appreciated! Thanks.


Data

On the one hand,Do you have any preprocessing of the dataset? Since I didn't see the data folder in this repo. Can I just drop the ASTE-Dataset-V2 into the corresponding folder without any preprocess?
On the other hand,I can't find your code for processing the ASTE-Dataset-V2 data set, the relevant code seems to be processing the V1 data set. (evaluation.py->class TagReader->def read_inst->(line 159))

Hi, we are indeed using the V2 data, and the call to data preprocessing can be found here in main.py line 174.
The evaluation code is general and not specific to V1 or V2 data.
When you run setup.sh, the data will be downloaded to Span-ASTE/aste/data, and you can replace the files with your own data as long as the format is the same.
Hope this is helpful!

Hi, we are indeed using the V2 data, and the call to data preprocessing can be found here in main.py line 174. The evaluation code is general and not specific to V1 or V2 data. When you run setup.sh, the data will be downloaded to Span-ASTE/aste/data, and you can replace the files with your own data as long as the format is the same. Hope this is helpful!

thanks for your reply！
I didn’t look at the files carefully before,Now I have reproduced it successfully


The first Example Component does not work

`
import {ReactEmailMarkdown} from "md-to-react-email"
export default function EmailTemplate() {
return (

<ReactEmailMarkdown markdown={# Hello, World!} />

)
}
The first component in the example doesn't work and shows an error for some reason  Email, Head, and Section are components but are not Defined initially and when trying to import it manually like so belowimport {Head, Email, Section} from "md-to-react-email"
`
another error shows up in console
export 'Email' (imported as 'Email') was not found in 'md-to-react-email' (possible exports: ReactEmailMarkdown, camelToKebabCase, parseCssInJsToInlineCss, parseMarkdownToReactEmail, parseMarkdownToReactEmailJSX, patterns, styles)

This package is used alongside react-email. The other components are from react-email.
You can not use this package without using react-email


RpcResponse.error() missing

RpcResponse.error() is documented, but doesn't appear to exist in reality.

Many thanks for raising this issue, we are working on it now and it should be available in the next release.

This has been fixed and released in 0.4.1


[ENHANCEMENT] Allow for dynamically set suite variables

We discussed this functionality in the #vscode slack on the RobotFramework workspace.
Problem description
RobotCode only performs a static analysis, i.e. it does not analyse which keyword may have been called at some point previously and whether a variable may have been set somewhere there. This creates a lot of red lines in our repositories since we set suite variables at different times during test suites, which are then re-used in other tests.
For example we reuse data from an API response here:
POST /api/Afspraken/Put
    ${RESPONSE}    Post On Session    ${SESSIENAAM}    /api/Afspraken/Put    json=&{json}
    Set suite Variable    ${ZORGAFSPRAAKID}    ${response.json()['id']}

GET /api/Afspraken/Get/{dossierId}
    ${response}    GET On Session    ${SESSIENAAM}    /api/Afspraken/Get/${dossierId}
    Should Be Equal As Strings    ${response.json()[0]['id']}    ${ZORGAFSPRAAKID}

The variable ${ZORGAFSPRAAKID} is picked up by the linter as not assigned.
Solution I would like
Take these suite variables into account in some way.
Additional context
As an alternative I switched back to the Robocorp language server for the time being.

Thanks for submitting this enhancement.
I'll have a look at it after RoboCon...

a little bit late but, the easiest solution is. Define a suite variable before the keywords, so that you and the robotcode analyser knows that this is the correct variable.


[DOC] Creating nested RESTful resources routes

This is how that can be done:
'rules' => [
    [
        'class' => 'yii\rest\UrlRule',
        'controller' => ['collaborators' => 'v1/collaborator'],
        'prefix' => 'v1/projects/<projectId:\d+>',
    ],
],

After that api will have next endpoints:

/projects/1/collaborators
/projects/1/collaborators/1

P.S. All issues which requests such feature after that can be complettely closed. Feature there from start.

Would be cool if you'll help with docs. Also it would be great if you'll point to these other issues.

I hope we can do this
'rules' => [
    [
        'class' => 'yii\rest\UrlRule',
        'controller' => [
            'v1/<controller>' => '<controller>',
            'v2/<controller>' => 'v2/<controller>',
        ],
    ],
],

@mdmunir Its not possible, this syntax is already taken.

this is most straightforward implementation we can have at the moment, we probably can create an example application utilizing nested routes

the application will have to demonstrate not just query adjustment based on the nested URL but also modification of the model to be created on something like:|
POST /projects/1/collaborators
``

here's my suggested example:
https://github.com/yiisoft/yii2/issues/7184#issuecomment-73396628

@creocoder I think you mean :
'rules' => [
    [
        'class' => 'yii\rest\UrlRule',
        'controller' => ['collaborators' => 'v1/collaborator'],
        'prefix' => 'projects/<projectId:\d+>',
    ],
],

instead of 'prefix' => 'v1/projects/<projectId:\d+>' or am I wrong ?
One more think I'm not getting. If docs is saying :
$prefix: The common prefix string shared by all patterns.

Then how to do to get only  /projects or ``` /projects/1`` or a different not-related collection to preject ?

mmm I finally understood what you've been trying to do. I didn't know that we can chain rules :
'rules' => [
    [
        'class' => 'yii\rest\UrlRule',
        'controller' => [
            'projects' => 'v1/project',
            'collaborators' => 'v1/collaborator'
        ],
    ],
    [
        'class' => 'yii\rest\UrlRule',
        'controller' => ['collaborators' => 'v1/collaborator'],
        'prefix' => 'projects/<projectId:\d+>',
    ],
],

This will make all those working :
/projects
/projects/1
/collaborators
/collaborators/1
/projects/1/collaborators/1
/projects/1/collaborators?a=b

where the last one will be converted by yii\rest\UrlRule::createUrl() method to something like
collaborators?projectId=1&a=b&page=1

Here is what I like about this approach :
If you customize your Controller and make it accept params as suggested by @samdark here : https://github.com/yiisoft/yii2/issues/4479#issuecomment-50285867 (or also as suggested by most common REST api designs like in this great article),
then, if you make your indexAction use those params (if matching your model safe attr) to filter results within a custom dataProvider instance (i'd rather use the ModelSearch class for it + adding Sort to it),
then by setting prefix with the attribute used by ActiveRecord to retrieve the parent model related to it :
'prefix' => 'projects/<project_id:\d+>',

This way, an url like /projects/1/collaborators?organization=abc&sort=name after being translated to collaborators?project_id=1&organization=abc&sort=name&page=1 will be filtered by default using its project_id attribute which brings the resources that we've been looking for.
It needs more customization, as example when doing PUT or PATCH to /projects/99/collaborators/1 a ServerErrorHttpException need to be thrown if projects#99 doesn't exist. But all can be handled in the Controller Side and I think this looks more like the Yii way to solve things.


[glib] update to 2.80.0

Library name
glib
New version number
2.80.0
Other information that may be useful (release notes, etc...)
https://github.com/GNOME/glib/blob/763cc3b238398614c20069fd67642730e3a6519b/NEWS

gtk_doc option has been renamed to documentation, man is now man-pages, and we need #32966


Beam 1514

Be sure to do all of the following to help us incorporate your contribution
quickly and easily:

[ ] Make sure the PR title is formatted like:
[BEAM-<Jira issue #>] Description of pull request
[ ] Make sure tests pass via mvn clean verify. (Even better, enable
Travis-CI on your fork and ensure the whole test matrix passes).
[ ] Replace <Jira issue #> in the title with the actual Jira issue
number, if there is one.
[ ] If this contribution is large, please file an Apache
Individual Contributor License Agreement.

close it due to misoperation

Coverage increased (+0.01%) to 69.203% when pulling ad4c208992f1c8612bd319d82f6a28754032c9ad on XuMingmin:BEAM-1514 into d66029cafde152c0a46ebd276ddfa4c3e7fd3433 on apache:master.


A basic working example of a Custom Input implentation?

Expected behavior
An example showing interaction of a picker controlled via a custom input implementation.
Actual behavior
Existing example in code base is hard to decipher and is using a button, not an input text control for demonstration.
Steps to reproduce
Look at it... I'm not new at this and I can't figure it out.

I have to agree that the current examples do a poor job at describing how you can make your own input components. But I can give you one of my own examples instead. Hopefully that can shed some light on questions you might have:
`import React, { Component } from 'react'
import DatePicker from 'react-datepicker'
class CustomInputExample extends Component {
render() {
const inputProps = this.props;
return <input
{...inputProps}
/>
}
}
class DatePickerExample extends Component {
render() {
return
}
}`

Well, yeah, but that is nothing more than the standard input.
Not sure what this does for me over overriding styles of the built in input.

I also had a hard time figuring it out , then I saw the examples :
https://reactdatepicker.com/#example-43
And what it does is turn the input into a button.


Create unit tests for the litmus godog framework

Is this a BUG REPORT or FEATURE REQUEST?
FEATURE REQUEST

What happened:

The litmus godog-framework, (source available here: https://github.com/openebs/litmus/tree/master/pkg) needs the unit-tests to be written.

What you expected to happen:

Create the unit-tests (along with refactoring of the source, where needed) for the litmus go-code.

Anything else we need to know?:

References: Good starting points

https://blog.alexellis.io/golang-writing-unit-tests/
https://jonathanmh.com/golang-unit-testing-for-absolute-beginners/

cc: @AmitKumarDas for thoughts & guidance!

This is a good thought @ksatchit
It might be good to import packages from openebs/maya while refactoring go code.

Created sub-issues #298 #299 #300 #301 #302 for this

The go-based executor has been deprecated for now, with plans for the same being developed independently in a separate repo. Closing this issue now. Will be created on the new repo once available.


FIXES #81: Add tests for checking color of spinner in stdout

Description of new feature, or changes
_get_test_output has been refactored to take a no_ansi arg,
which defaults to True. We then use this in the new test to keep
the ANSI escape characters and compare them to those supplied by
colorama.
It feels a little like we're testing another library with this
test but I can understand why you feel like you need to have it
in there.
I am only able to run the py36 tests at present, and they do not
currently pass for me (see my other PR for a fix for that test). To
keep this PR clean I have left them like that. The test that I have
written obviously passes, though.
Checklist

[x] Your branch is up-to-date with the base branch
[x] You've included at least one test if this is a new feature
[x] All tests are passing

Related Issues and Discussions
Fixes #81
People to notify
@manrajgrover

Pull Request Test Coverage Report for Build 288

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.6%) to 92.157%

Totals

Change from base Build 285:
0.6%

Covered Lines:
272

Relevant Lines:
289

💛  - Coveralls

@eoinnoble Looks like test cases are failing. Could you please look into it?

It was the assert statement, should be self.assertEquals(color_ascii in output[1], True) if you don't want to use a bare one. I'm not sure if git has picked up my change, can you restart the automated checks from your end?

It was the assert statement, should be self.assertEquals(color_ascii in output[1], True) if you don't want to use a bare one. I'm not sure if git has picked up my change, can you restart the automated checks from your end?

It was the assert statement, should be self.assertEquals(color_ascii in output[1], True) if you don't want to use a bare one. I'm not sure if git has picked up my change, can you restart the automated checks from your end?

It was the assert statement, should be self.assertEquals(color_ascii in output[1], True) if you don't want to use a bare one. I'm not sure if git has picked up my change, can you restart the automated checks from your end?

@eoinnoble Thanks for fixing. Currently, Github is facing a lot of issues. Once they are fixed, I'll rerun Travis.

Hi @eoinnoble, apologies for the delay! Thanks for working on it! :100:
We should also test halo notebook. I'll keep the issue open if you're up for it.

Sure, I can take a stab at that over the coming days.


wiredep not working with bootstrap 3.3.5

https://github.com/twbs/bootstrap/issues/16663

@joaocc - This is technically not wiredep's fault, this is a tool getting shafted by another. Bower deciding to change the spec for "main" and made a gigantic mess of things. You will have the same problem with font-awesome ~4.4.0
Workaround ( In your bower.json )
  "overrides": {
      "bootstrap": {
         "main":[
            "dist/css/bootstrap.css"
         ]
      },
      "font-awesome": {
         "main":[
            "css/font-awesome.css"
         ]
      }
   },

All that being said, the statement "let wiredep work it's magic" really no longer applies as you now have to verify every single package you add and want to inject.

Hi.
I agree with you that wiredep is not the cause of the situation, but if you follow the conversations it seems to be more about the blame than the alleviation of pain this has caused :).
I very much prefer an approach to get things rolling again, which is what you did!
Thanks!

Still not working.
I tried this on a freshly installed skeleton (https://github.com/softserveinc/generator-ng-ss).
Doing "gulp inject" includes other components but not bootstrap.
I tried both your workaround and with  bootstrap <= 3.3.2 (which has the "old-style" bower.json main.
I will also open the issue in the generation tracker, because it may be something else causing it.
Any hints?
Thx

@joaocc - Give me a few minutes, I'll clone that repo and take a look at it.

I just did that now, to be sure. It seems that bootstrap.css is being copied to app/vendor.css. This makes sense, because wiredep is being configures in ./gulp/conf.js to  exclude: [/bootstrap.js$/, /bootstrap\.css/],.
Removing the exclude makes bootstrap.js show up.
Adding your workaround makes bootstrap.css show up.
I'm sorry for the false alarm.
Once again thanks for taking the time and congrats for the amazing tool.

Not ideal, but I rolled back to BS version 3.3.4 and setting up like this:
bower install --save bootstrap#3.3.4

bower_concat: {
  all: {
    dest: {
      'js': 'path/to/file/_bower.js',
      'css': 'path/to/file/_bower.css'
    }
  }
}


Bad-behavior-of-CWA-when-WLAN-has-no-connection

Description
the app is loading for one min in case of a poor network when connected to WiFi, the bug tickets requires making the timeout 10 sec max
Link to Jira
https://jira-ibs.wbs.net.sap/browse/EXPOSUREAPP-14416

This fixes: https://github.com/corona-warn-app/cwa-app-ios/issues/4931


Update skiko to 0.8.11

It's based on skia m126
Skiko update PR: https://github.com/JetBrains/skiko/pull/969
Testing

The demo runs on all platforms
The tests passed

This should be tested by QA
Release Notes
Highlights - Multiple Platforms

Skiko version was updated to 0.8.11 (It is based on skia m126 release)

For the future:

hotfix version should be reserved only for real hot fix updates. A Skia update should increase either the third, or better the second number.
if we need a dev build, we need to build 0.8.10+my-build. Everything after + is ignore by Gradle order comparator. but we need to modify Skiko Gradle scripts a little.

Compose tests passed

It should be mentioned in a changelog (please restore this part of the description template)

Do we really need it? Nothing change for users.
If we decided to keep it, I wouldn't mention it is a Highlight, and don't mention Skiko, only Skia

skia + moving to features block lgtm


Cleanup: Clean obsolete state variables in UI server

The UI server contains several unused state variables that need to be cleaned, as well as duplicates (e.g. selected_id, parsed_id)

Some obsoletes/duplicates removed in 31618bdec2de7093f0ef221e040f2413b856b64f TBD if there is more


Test CDN configuration in a staging environment

for example: setup:
https://franklin.ororafresh.com/

@meejain , assigning to you to give the go-ahead when everything is set up

Issue fixed. Post validation on stage, successfully tested on PROD as well.


Add Helm option to use webhook with host network

While deploying with the Helm chart to an AWS managed EKS cluster, I noticed that the webhook needs to be adapted to the host network.
This makes the admission webhooks work.
I have prepared a PR to add this option.

Hi @ttretau !
Thanks for the issue and the PR.
Could you please link me any documentation in AWS that explains why this is required ? Thanks.

Hi @alexandrevilain,
sure, here is a link to the AWS docs and even better explanations that describe the situation:
https://medium.com/@denisstortisilva/kubernetes-eks-calico-and-custom-admission-webhooks-a2956b49bd0d
https://cert-manager.io/docs/installation/compatibility/#aws-eks

Thanks @ttretau !
Let's merge this.


Random crashing while typing in PowerToys Run

Microsoft PowerToys version
0.68.0
Installation method
GitHub
Running as admin
None
Area(s) with issue?
PowerToys Run
Steps to reproduce
Happening a lot lately while trying to search for random things.
But happened more then once when trying to type a word starting with mob and on the B it crashed.
2023-03-05.txt
✔ Expected Behavior
Tried to type mob
Expected to see an app called "Mobalytics"
❌ Actual Behavior
Crashed after i typed B
Other Software
No response

this also happened to me right now, but i have powertoys installed from the microsoft store

2023-03-05.txt

Not able to repro this, going to close. Let us know if you see this again!

Not able to repro this, going to close. Let us know if you see this again!

Yeah maybe it was fixed in the meantime. No problem in past weeks.


Use 'squash and merge' if possible when publishing posts

I mentioned this in the Gitter chat and was told to write up an issue on this.
Current behavior:
When the CMS publishes a post, it merges the post behind the scenes. However the resulting commit history shows every single minor update done to the post, it keeps the entire commit history.
Suggested change in behavior:
The CMS should use the 'Squash and Merge' functionality instead when available.
Reasoning:
This would make sense for the CMS because when you publish a post, most people (at least I hope so) don't want to see the commit history of the post, it just creates a bunch of visual noise in the git log/commit history.

I’m working on a PR that would allow configuration of the merge_method passed to the GitHub API, which would allow you to set:
# config.yml
backend:
  merge_method: squash

Are there any opinions on implementation details? I have it defaulting to merge so it’s backwards-compatible, but I’m not doing any tests on the string to make sure it’s a valid value. Also, rebase merges don’t seem to make all that much sense in this context. Would it be more user friendly to have a Boolean option for squash merges instead?
backend:
  squash_merges: true

I have it defaulting to merge so it’s backwards-compatible

Good.

Also, rebase merges don’t seem to make all that much sense in this context. Would it be more user friendly to have a Boolean option for squash merges instead?

I agree with this, adding a third option just complicates things.


Finetune on ljspeech or libritts?

StyleTTS 2 surpasses human recordings on the single-speaker LJSpeech dataset and matches it on the multispeaker VCTK dataset as judged by native English speakers. Moreover, when trained on the LibriTTS dataset, our model outperforms previous publicly available models for zero-shot speaker adaptation

The abstract seems to suggest that the ljspeech model is better. should I finetune using the ljspeech or libritts model?

moving to discussion


DNM: Machine config server authentication

Port of: https://github.com/openshift/hypershift/pull/92
Integrates a haproxy side car server with the machine config server that can enable it to do authentication using the node bootstrapper token.
Adds a controller that handles syncing any changes to the node bootstrapper token in a user cluster to the control plane and updating of the asssociated user-data secret to update the auth for the initial call workers use to auth to the ignition server.
Moves the ignition route to have E2E tls validation. CAs are passed to the user-data that workers use to make the initial ignition call to validate TLS.

/test e2e-aws

/test e2e-aws

Can someone help me understand why we need to orchestrate haproxy with configuration templating in order to secure a low volume HTTP endpoint? This seems like a massive step backwards. With all the native API driven programmable servers/proxies available to us, why would we want to ship and support haproxy in this context? What alternatives were considered? I would speculate that the Go stdlib HTTP server would be more than sufficient for this task until proven otherwise.
I think we need to have a discussion about the requirements here.

Thinking about this again, it does occur to me that the larger architectural question about MCS in this case is outside the scope of this PR's proposal and I'm moving that discussion elsewhere. What you have here assumes we continue to use MCS for the purpose and expands upon it, which seems reasonable.
If we're going to continue building on MCS for this, configuring it via its own mechanisms (the raw HAproxy config template) would make sense. I would still ask that we wait for @csrwng's overarching refactor in the controller and then make this fit the pattern.

pretty sure this is superseded by https://github.com/openshift/hypershift/pull/248


⚠ T:Riza Community Forum has degraded performance

In 9b1fad2, T:Riza Community Forum (https://community.triza.dev) experienced degraded performance:

HTTP code: 200
Response time: 3126 ms

Resolved: T:Riza Community Forum performance has improved in d1c87e3.


Update to version 1.0.0

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


[CodeClean/Service] functions for offloading service

Code clean,

define internal functions for offlading service.
fix mem leak case when getting json string.
update log message details.

:octocat: cibot: @jaeyun-jung, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://ci.nnstreamer.ai/nnstreamer-api/ci/repo-workers/pr-checker/486-202404041903270.78176403045654-a8ee65fda28f2062e93f4abd8432c48536190c59/.

:octocat: cibot: @jaeyun-jung, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://ci.nnstreamer.ai/nnstreamer-api/ci/repo-workers/pr-checker/486-202404042001360.51098704338074-df9e77e005258fc805ea6caf7152ee393edb71d1/.

:octocat: cibot: @jaeyun-jung, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://ci.nnstreamer.ai/nnstreamer-api/ci/repo-workers/pr-checker/486-202404111636490.73744297027588-8fcb38dcf7509627ee66f773d23be0fe391515b4/.

:octocat: cibot: @jaeyun-jung, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://ci.nnstreamer.ai/nnstreamer-api/ci/repo-workers/pr-checker/486-202404111815210.69748497009277-85bfb0f48655e445c79056d1d80124bb3ad25c09/.

:octocat: cibot: @jaeyun-jung, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://ci.nnstreamer.ai/nnstreamer-api/ci/repo-workers/pr-checker/486-202404111849050.86621499061584-c4055bb12bde3b6f35131f1cf4d20404d5bd4929/.


Why does git bisect increase number of steps?

This is weird:
...\pajam> git bisect bad 8708e07f32d5a6c27e932b80008b4e6ad95586bd
You need to start by "git bisect start"
Do you want me to do it for you [Y/n]? y

...\pajam> git bisect good 698ee45aed3f908db4449fbe426007b98b782c1d
Bisecting: 57 revisions left to test after this (roughly 6 steps)

...\pajam> git bisect good 06582977c65f8698ea82985639d2a6d45b45f76c
Bisecting: 28 revisions left to test after this (roughly 5 steps)

...\pajam> git bisect good 670ce8ee3fc65ded9b719f855570440ee0c2fcec
Bisecting: 28 revisions left to test after this (roughly 5 steps)

...\pajam> git bisect bad ddac275d712a6e6c3166384c6a6feedb3a24cf1b
Bisecting: 304 revisions left to test after this (roughly 8 steps)

Answer, apparently: checking commits which are outside of the range, erase the previous edge markers.


Make classes of Sphere/Teapot etc internal

Now that we can control the aspects of types and processes
Check also Materials, Lights etc. all those which do that This -> Setup trick

f5338e1e62455db48c8d50c139aeb487b1d2a351

f5338e1e62455db48c8d50c139aeb487b1d2a351


Update quick-tour.md

[Quick Tour] Issue in project initialization #959
Purpose

Initialising a Ballerina Project using init is not including Ballerina.toml which is necessary for pushing Ballerina Central. So using int -i will resolve this issue.

We have fixed this issue by creating Ballerina.toml when a initializing a project using ballerina init. This fix is available in 0.976.1-SNAPSHOT. Closing this PR, since the issue is fixed.


Remove brush splitting when layout switches from unaggregated to aggregated mode

Can we just clear the brush splitting when switching a group to aggregate and re-split it when switching back to unaggregated mode?


Each run of greedy_decode may generate different result

Hello, hope you are doing good. I tried to use malaya_speech on a call in singlish, but found out each run may generate different result. Sometimes it will generate the correct full transcript, but sometimes it can't produce anything. Do you have any comments on this? Thanks.
Code:
con_model = malaya_speech.stt.deep_transducer(model = 'large-conformer-singlish')
samp_audio = librosa.load(<file_path>, sr = 8000)
samp_audio = librosa.resample(samp_audio, orig_sr = 8000, target_sr = 16000)
result = con_model.greedy_decoder([samp_audio])

Link: https://github.com/Beast-Leon/RandomStuff
Hi, thanks for your quick response. I have attached the link to the jupyter notebook and the audio. Basically each run will generate a different result, appreciate it if you can give it a look.

import malaya_speech
import malaya_speech.train.model.conformer as conformer
import malaya_speech.train.model.transducer as transducer
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
import numpy as np
import json
import malaya_speech
from malaya_speech.utils import (
    check_file,
    load_graph,
    generate_session,
    nodes_session,
)
from malaya_speech.utils.tf_featurization import STTFeaturizer

y, _ = malaya_speech.load(<audio_file>)
g = malaya_speech.load_graph('output-large-singlish-conformer/frozen_model.pb')
featurizer = STTFeaturizer(normalize_per_feature=True)
inputs = [
    'X_placeholder',
    'X_len_placeholder',
    'encoded_placeholder',
    'predicted_placeholder',
    'states_placeholder',
]
outputs = [
    'encoded',
    'ytu',
    'new_states',
    'padded_features',
    'padded_lens',
    'initial_states',
    'greedy_decoder',
    'non_blank_transcript',
    'non_blank_stime',
]
input_nodes, output_nodes = nodes_session(g, inputs, outputs)
#sess = generate_session(graph = g)
with g.as_default() as g:
   tf.random.set_random_seed(10)
   for i in range(5):
       with generate_session(graph = g) as sess:
           transducer_model = Transducer(
                                     input_nodes,
                                     output_nodes,
                                     featurizer,
                                     vocab,
                                     time_reduction_factor,
                                     sess,
                                     'large-conformer-singlish',
                                     'speech-to-text-transducer',
                                     wavs = [random_wav1, random_wav2, random_wav3],
                                     dummy_sentences = dummy_sentences,
                                     stack = False
                                     )
       cur_sentence = transducer_model.greedy_decoder([y])
       print(cur_sentence)

From the above code, I am trying to set a graph-level seed to see if I can reproduce same result each time, but it seems the result is still different in each for loop. And I also happen to see the graph have some randomization happening, is the different result each time because of that?
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
with tf.io.gfile.GFile('output-large-singlish-conformer/frozen_model.pb', 'rb') as f:
    graph_def = tf.GraphDef()
    graph_def.ParseFromString(f.read())
with tf.Graph().as_default() as graph:
    tf.import_graph_def(graph_def)
graph.get_operations()[49:54]

Result:
[<tf.Operation 'import/while/random_normal/mean' type=Const>,
 <tf.Operation 'import/while/random_normal/stddev' type=Const>,
 <tf.Operation 'import/while/random_normal/RandomStandardNormal' type=RandomStandardNormal>,
 <tf.Operation 'import/while/random_normal/mul' type=Mul>,
 <tf.Operation 'import/while/random_normal' type=Add>]

Appreciate if you can have a look. Thanks!

nothing much can do about this, some of the operations inside TF are non-deterministic, eg, https://github.com/tensorflow/tensorflow/issues/3103

tried,
import malaya_speech
con_model = malaya_speech.stt.deep_transducer(model = 'large-conformer-singlish')
y, _ = malaya_speech.load('speech/singlish/singlish0.wav')
con_model.greedy_decoder([samp_audio])

returned a result for me. is it really got voice activities inside the audio? Or you can try to use malaya_speech super resolution first to get, 8k -> 44k -> malaya noise reduction -> 16k -> conformer.

Hi, sorry for not trying this method first. But I just tried it and it seems to produce more reproducible results each time. So does it mean we can generate more reproducible results with clearer audios?

Of course.


Special case date lookups for searching

Fixes #5967. I didn't delve too deep into why date lookups have nested lhs clauses, but this seems to fix the problem.

Do the tests still pass? (https://docs.wagtail.io/en/latest/contributing/developing.html#testing)
Yes
Does the code comply with the style guide? (Run make lint from the Wagtail root)
Yes
For Python changes: Have you added tests to cover the new/fixed behaviour?
Yes
For front-end changes: Did you test on all of Wagtail’s supported browsers? Please list the exact versions you tested.
N/A
For new features: Has the documentation been updated accordingly?
N/A

So I think the problem here is that elastic can't do a query like "after the 15th of every month" (e,g, Querset.filter(day__gt=15)). If I'm reading this bit of the docs right sending something like  gt: 15||//d (15th day) translates to after the the 15th of Jan.
So this fix will work for years, since es will round down or up based on the query, but not won't work for wildcard type queries for days and months. Maybe the best we can do is make it work for years and throw an error when a queryset is filtered by day or month? Or maybe someone who is better at constructing elastic queries can see how to make it work

So I think the problem here is that elastic can't do a query like "after the 15th of every month" (e,g, Querset.filter(day__gt=15)). If I'm reading this bit of the docs right sending something like  gt: 15||//d (15th day) translates to after the the 15th of Jan.
So this fix will work for years, since es will round down or up based on the query, but not won't work for wildcard type queries for days and months. Maybe the best we can do is make it work for years and throw an error when a queryset is filtered by day or month? Or maybe someone who is better at constructing elastic queries can see how to make it work

Thanks for looking into this!

Maybe the best we can do is make it work for years and throw an error when a queryset is filtered by only day or month?

This sounds fine to me! I'm not sure if having the ability to filter by a day of the month in all months is useful in many cases.

Thanks for looking into this!

Maybe the best we can do is make it work for years and throw an error when a queryset is filtered by only day or month?

This sounds fine to me! I'm not sure if having the ability to filter by a day of the month in all months is useful in many cases.

Thanks for you feedback @kaedroho, I've added some extra tests and also some exception throwing on bad queries.


Pass along resource CoAP_Res_t as a member of CoAP_Message_t

This closes #14.
The idea is to pass along the CoAP resource (CoAP_Res_t) as a member of CoAP_Message_t in the request message for the callback handler.
To the request which can be used in a shared callback to easily identify which resource to process. Instead of implementing a single callback for each and every CoAP resource.
Edit: No longer a breaking change 👼

Hmm. I could throw the CoAP resourse pointer into CoAP_Message_t instead. which would not be a breaking API change and the pReq parameter would contain the pointer to the resource for the request

Thanks for the PR and sorry for the delay on my side. I appreciate your commitment to the project 👍


upgrading dependencies

Dirty upgrade

I'm OK with adding typings support, as long as someone else volunteers to maintain it :)

@dcharbonnier Are you willing to help maintain the typings?

@RyanZim as much as I use the lib yes but it's not a big problem to maintain it and if it's inside we will get PR and issues reported, and that's all the work. if you get an issue ping me, no problem

@tarruda is the original writer of this type definition

thx @RyanZim


[FEATURE_REQUEST] healthchecks continues checking

Is your feature request related to a problem? If so, please describe.
No response
Describe the solution you'd like
Currently the healthchecks status widget loads the status on the first load of the dashy dashboard. It would be super useful if it could display the most up to date info from healthchecks.io just like the with the normal status checks, where it refreshes the data on an interval.
Priority
Medium (Would be very useful)
Is this something you would be keen to implement
Maybe

Hey @Emiliaaah
I like the idea, and I agree it'd be really useful. I'll keep this in mind for a future version.
I have been thinking about extend the functionality of Item to be able to show live data (for example a Health Check status from an API). But I don't think this will be implement anytime soon.


Feature/ie window scroll

requires https://github.com/thisissoon/angular-inviewport/pull/21 to be merged and @thisissoon-inviewport v3.0.1 to be released first.

👍 will wait until @thisissoon/angular-inviewport is updated first to merge


Linkify bare URLs

I've noticed that my README contains the following markdown:
* http://mearie.org/projects/esotope/bfc/
* http://calmerthanyouare.org/2015/01/07/optimizing-brainfuck.html
* [http://xn--2-umb.com/10/brainfuck-using-llvm](http://xn--2-umb.com/10/brainfuck-using-llvm)

On GitHub, this gives me three links, but on docs.rs, only the third bullet is rendered as an anchor tag.
Link to the readme: https://docs.rs/crate/bfc

Thanks for reporting, I wanted to make sure github is automatically converting links before using AUTOLINK extension. Looks like we need it.


[Feature request] Add canny edge detector to ndimage

It would be great to see the Canny edge detector available in scipy.ndimage.
Implementations exist in

cv2 (https://github.com/opencv/opencv/blob/master/modules/imgproc/src/canny.cpp)
scikit-image (https://github.com/scikit-image/scikit-image/blob/master/skimage/feature/_canny.py)

Perhaps one of these could be ported here?

Thanks for the suggestion!  But instead of porting that code to scipy, I recommend that you just use scikit-image.
I don't have any hard-and-fast rules about what functionality should be added to scipy  and what should be left in more specialized projects, but in this case, I don't think we should duplicate the image processing functionality that scikit-image specializes in.  scikit-image is a high quality project under active development.  Duplicating something like the Canny edge detector in scipy is an inefficient use of developer time.

Agreed, closing.


Adding support for the builder annotation

The ART team has asked for a way to inject an architecture specific tag for cli.  This code looks for the new "release.openshift.io/builder" annotation, if found it passed it along to the mirror and ultimately passes it directly into the "oc adm" jobs that have been failing for multi-arch support.

/assign @smarterclayton

ack'ing this based on what was discussed

@smarterclayton do you want to review this or should we just merge it

Closing PR since this capability exists via the Release.Config definition.


Is there a way to access the external trigger-in events?

My goal is to use your FrequencyCam, but instead of “exporting” the frequency images at a certain frame rate, I want to export them at the time stamps of the trigger-in events (This way I want to synchronize the output with the frames of a frame-based camera). Therefore, I need to get access to these external trigger-in events. Is this possible with this decoder?

Yes, just implement this virtual method:
void eventExtTrigger(uint64_t, uint8_t, uint8_t) override {}

You can also access the trigger events in python with the
event_array_py repo. It uses the event_array_codecs repository under the hood.
If it helps I can write you a little pybind11 adapter so you can use FrequencyCam from python. Of course if you are a hardcore c++ guy I can save myself the effort :)

Thanks a lot for the guidance. I'm definitively not a hardcore c++ guy, but enough comfortable with it (It's the language I used most, hate most and would like to replace with Rust or Julia but didn't have the time yet to do so). Therefore, I appreciate your offer, but in this case you can save yourself the effort.


Fix .js importants and replace crypto.randomUUID()

List of fixed issues (if they exist):

#788

@jennydaman , can you add types for uuid?
https://www.npmjs.com/package/@types/uuid

Ok, rebase on main and let’s see how it goes.

@hanayik bundling with tsup is not working as it should, I might need your help to figure this one out.
The uuid package has different modules for browser and node, and the browser-specific files to use are set in its package.json.
https://github.com/uuidjs/uuid/blob/bc46e198ab06311a9d82d3c9c6222062dd27f760/package.json#L41-L47
The browser section of package.json is supposed to be read by the bundler. In our case, the bundler is tsup (which itself uses esbuild).
Running npx tsup creates the file dist/index.js as expected, however the node files are bundled instead of the browser versions.
$ grep -F '// node_modules/uuid' dist/index.js
// node_modules/uuid/dist/esm-node/rng.js
// node_modules/uuid/dist/esm-node/stringify.js
// node_modules/uuid/dist/esm-node/native.js
// node_modules/uuid/dist/esm-node/v4.js

Do you have any ideas for a proper fix? Or we could use a different library, e.g.

https://github.com/lukeed/uuid#lukeeduuid
https://github.com/ai/nanoid

@hanayik The default platform for tsup is "node"
Setting platform to "browser" causes daikon to fail to build: esbuild errors on lib/charLS-DynamicMemory-browser.js
✘ [ERROR] Could not resolve "fs"

    node_modules/daikon/lib/charLS-DynamicMemory-browser.js:36:735:
      36 │ ...rintErr"])Module["printErr"]=function printErr(x){process["stderr"].write(x+"\n")};var nodeFS=require("fs");var nodePath=require("path");Module["read"]=function read(filename,binary){filename=nodePath["norma...
         ╵                                                                                ~~~~

  The package "fs" wasn't found on the file system but is built into node. Are you trying to bundle
  for node? You can use "platform: 'node'" to do that, which will remove this error.

✘ [ERROR] Could not resolve "path"

    node_modules/daikon/lib/charLS-DynamicMemory-browser.js:36:762:
      36 │ ...=function printErr(x){process["stderr"].write(x+"\n")};var nodeFS=require("fs");var nodePath=require("path");Module["read"]=function read(filename,binary){filename=nodePath["normalize"](filename);var ret=nod...
         ╵                                                                                ~~~~~~

  The package "path" wasn't found on the file system but is built into node. Are you trying to
  bundle for node? You can use "platform: 'node'" to do that, which will remove this error.

ESM Build failed

My understanding is that  lib/charLS-DynamicMemory-browser.js was (pre-)compiled with emscripten, which produces a JavaScript file which attempts to be compatible with both node and the browser. However, esbuild is angry about how it tries to support node.


fix 3 misc issues

Signed-off-by: Chen Jing<EMAIL_ADDRESS>This change fix 3 issues:

As 0.1 has been released, currently we should not change the image tagged with 0.1, we should play with 0.2.
The remove_clusterrolebinding does't work at all.
The default opensearch endpoint need a change.

for 2, the cnsi-manager-rolebinding and cnsi-proxy-rolebinding has been handled here:
https://github.com/vmware-tanzu/cloud-native-security-inspector/blob/main/src/Makefile#L157

Codecov Report

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

@@           Coverage Diff           @@
##             main      #95   +/-   ##
=======================================
  Coverage        ?   42.36%
=======================================
  Files           ?        6
  Lines           ?      897
  Branches        ?        0
=======================================
  Hits            ?      380
  Misses          ?      487
  Partials        ?       30

Flag
Coverage Δ

unittests
42.36% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


PaLm link not working

PaLM link in the model list not working. Links to a page not found.

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

ID: 2c2ae573-95d7-dea2-6f9f-18b7605d80fc
Version Independent ID: 2c2ae573-95d7-dea2-6f9f-18b7605d80fc
Content: External models in Databricks Model Serving - Azure Databricks
Content Source: databricks/generative-ai/external-models/index.md
Service: azure-databricks
GitHub Login: @mssaperla
Microsoft Alias: saperla

@swamivenk-db
Thanks for your feedback! We will investigate and update as appropriate.

@swamivenk-db
Thanks for bringing this to our attention.
I'm going to assign this to the document author so they can take a look at it accordingly.

Thanks for providing feedback that helps improve our documentation. We've created an internal work item (DOC-12180) to address your feedback. The timeline for resolution varies based on resourcing.

#please-close

#please-close


AutoConfig not honouring Guice Singleton annotation on resource classes

Whenever a Jersey resource class is annotated with @Singleton (guice annotation) hk2 doesnot honour it as it searches java's @Singleton annotation. This is solved by using java's Singleton annotation but without a proper warning or documentation provided this issue might go unsolved.
In my case this resulted in in-memory caches being intialised for every request as hk2 doesnot honour Guice annotation.
Atleast a fair warning in javadocs or github documentation might help the developer.

Could you please extend your issue description by the fully-qualified names of the Singleton annoations you refer to?
This is a library to glue Dropwizard and Guice. Why should it keep HK2 (which is an alternative to Guice) in mind?


Timebounds handling is broken

In transaction builder, timebounds handling is behaving badly.

It is not possible to not set timebounds.

When I leave timebounds fields empty, the generated XDR contains the timebounds field set to two zeros.
(Aside: is this even legal? The network accepts it but it seems such transaction is semantically equivalent to one that omits the timebounds field. In Trezor we conflate timebounds 0/0 with unset, omit the field, and the produced signature is invalid for the provided XDR. We could fix that, but I'm not particularly happy with allowing this sort of weirdness. I am inclined to instead reject transaction that has timebounds set but zero.)

It is not possible to set only lower timebound.

When I fill out lower timebound but leave upper timebound unset, the resulting XDR has timebounds 0/0 again.
This makes it difficult to investigate https://github.com/trezor/trezor-firmware/issues/1699

It is not possible to not set timebounds.

That's an interesting point. Maybe Laboratory should allow this. However, the js sdk  doesn't allow bypassing the time-bounds check. We'll file an issue and discuss over the js-sdk.

It is not possible to set only lower timebound.

This is how the stellar protocol works. Timebounds are always set together. as evident in the XDR definitions. 0/0 timebonuds are legal according to the protocol and effectively mean that the transactions is always valid from a timebonuds perspective. Trezor should support this.

It is not possible to not set timebounds.

To build the full variety of XDR that can technically be generated, including not set the time bounds, I recommend using the stc tool. It allows you to use simple text files to construct any valid XDR.

@matejcik, you will rarely see a transaction being submitted without timebounds as most sdks enforce this. It is also recommended by the dev docs:

We highly advise for all transactions to use time bounds, and many SDKs enforce their usage. If a transaction doesn’t make it into the transaction set, it is kept around in memory in order to be added to the next transaction set on a best-effort basis. Because of this behavior, we highly advise that all transactions are created with time bounds in order to invalidate transactions after a certain amount of time, especially if you plan to resubmit your transaction at a later time.

Dne pá 23. 7. 2021 0:53 uživatel tomerweller @.***>
napsal:

It is not possible to set only lower timebound.
This is how the stellar protocol works.

no, the issue here is that Laboratory doesn't allow me to set timebounds
999/0. When the upper timebound is set to 0, the resulting XDR has
timebounds 0/0

you will rarely see a transaction being submitted without timebounds

This is good to know.
However, my problem is that zero timebounds are still legal, as it is to omit the timebounds fields completely.
(To be extra clear: when I say omit timebounds, I mean that the optional field timeBounds in the transaction is unset. When I say timebounds 0/0, i mean that the field timeBounds is set to two zeroes. Two transactions that are semantically identical can differ in whether the timeBounds field is set or unset.)
Note that Laboratory did support omitting timebounds in the past! Our test vectors are generated through Laboratory and we omit timebounds in most of them.
Trezor currently doesn't support setting timebounds to 0/0. If you submit a transaction that has timebounds 0/0, Trezor will sign a transaction where timebounds are omitted.
We could explicitly allow timebounds 0/0 as separate from "no timebounds", but it would look identical for the user, which is undesirable.
We could also reject transactions that do not set timebounds, and only allow explicitly setting to 0/0. It seems that you think this is preferable, correct?

However, the js sdk doesn't allow bypassing the time-bounds check.

despite that, Laboratory sets timebounds to 0/0 by default, allows me to submit and sign such transaction, and it is accepted by the network.

no, the issue here is that Laboratory doesn't allow me to set timebounds 999/0. When the upper timebound is set to 0, the resulting XDR has timebounds 0/0

You're right! That appears to be a bug.

Note that Laboratory did support omitting timebounds in the past! Our test vectors are generated through Laboratory and we omit timebounds in most of them.

Yeah, I believe your test vectors predate the sdk timebounds enforcement. stc is a more low level transaction builder and can give you more freedom in building test vectors.

despite that, Laboratory sets timebounds to 0/0 by default, allows me to submit and sign such transaction, and it is accepted by the network.

Right again, I should have been clearer. The sdk checks that timebounds are set, but doesn't care about the value. So 0/0 passes the sdk test and is a valid transaction so you can sign it and it will be accepted by the network.

We could also reject transactions that do not set timebounds, and only allow explicitly setting to 0/0. It seems that you think this is preferable, correct?

I don't think trezor should be opinionated about this. Both are valid and in both cases trezor should sign the exact transaction it's sent.

Setting min timebounds only should be fixed: https://github.com/stellar/laboratory/pull/542

We could also reject transactions that do not set timebounds, and only allow explicitly setting to 0/0. It seems that you think this is preferable, correct?

I don't think trezor should be opinionated about this. Both are valid and in both cases trezor should sign the exact transaction it's sent.

Keep in mind that Trezor doesn't accept Stellar's interchange formats directly. In particular, here I'm considering setting timebounds_start and timebounds_end to required in the protobuf schema, so it would technically be impossible to send a timebounds-less transaction to Trezor. You call it "opinionated", I'm calling it "removing a feature (that was buggy to begin with)" ;)
Properly fixing the feature does not introduce any significant complexity so that's not an issue, regardless of how this discussion goes. However, I'm wondering if there's any point in keeping it, when your own SDK rejects such transactions.
Any results from the SDK discussion you mentioned in https://github.com/stellar/laboratory/issues/541#issuecomment-885286366 ?

@matejcik Please join the discussion in the SDK github repo https://github.com/stellar/js-stellar-base/issues/438.
I'd like to close this issue as we've addressed the actual bug here; the ability to only set the min timebounds. The rest of the discussion can happen at the SDK base level. Please let us know if this unblocks trezor/trezor-firmware#1699

I'd like to close this issue as we've addressed the actual bug here

agreed, closing


Loading encryption subkey to smartcard mutates fingerprint

Hello, I am trying to generate a ed+cv25519 signing+encryption key on a smartcard. When I push the keys to the smartcard using gpg-connect-agent, the encryption subkey fingerprint gets mutated relative to the one in my keyring.
Here is my debugging code to create an entity and output a secret key file
ent := []byte{
	0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,
	0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10,
	0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18,
	0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f, 0x20,
	0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28,
	0x29, 0x2a, 0x2b, 0x2c, 0x2d, 0x2e, 0x2f, 0x30,
	0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38,
	0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f, 0x40,
}
now := time.Unix(1709329403, 0)
cfgTime := func() time.Time { return now }
cfg := &propacket.Config{
	Rand:            bytes.NewReader(ent),
	Algorithm:       propacket.PubKeyAlgoEdDSA,
	Curve:           propacket.Curve25519,
	KeyLifetimeSecs: 0, // no expiration
	Time:            cfgTime,
	V5Keys:          false,
}
entity, err := propgp.NewEntity(keyID, "", "", cfg)

...

serNew := bytes.NewBuffer(nil)
err := entity.SerializePrivate(serNew, nil)
if err != nil {
	panic("SerializePrivate new" + err.Error())
}
_ = os.WriteFile(secretPath, serNew.Bytes(), 0644)

I load that key into my keyring and get the fingerprints + keygrips
>gpg --import <secretPath>
gpg: key EA0063F6C7ACB985: public key "test-sc" imported
gpg: key EA0063F6C7ACB985: secret key imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg:       secret keys read: 1
gpg:  secret keys unchanged: 1

>gpg --show-key --with-colons <secretPath>
sec:-:255:22:EA0063F6C7ACB985:1709329403:::-:::scESC:::::ed25519:::0:
fpr:::::::::D3A4BD8DD05557DC6C469D37EA0063F6C7ACB985:
grp:::::::::11FA927B453C99646DCE42A4EC33E7CDE9B5D80A:
uid:-::::1709329403::26898656831648DBFB10988947B1523808F13B24::test-sc::::::::::0:
ssb:-:255:18:9090FA627420EF33:1709329403::::::e:::::cv25519::
fpr:::::::::3CDC4501333D5FA52B98F28A9090FA627420EF33:
grp:::::::::6BD4B392CE9CA0994038B4ACB2A8EEA33C42B73B:

> gpg --with-subkey-fingerprints --list-key test-sc
pub   ed25519 2024-03-01 [SC]
      D3A4BD8DD05557DC6C469D37EA0063F6C7ACB985
uid           [ unknown] test-sc
sub   cv25519 2024-03-01 [E]
      3CDC4501333D5FA52B98F28A9090FA627420EF33

The fingerprints from the file match the ones in my keyring, as expected.
I then load the keys to the card:

NOTE: I am formatting the key's timestamp by converting it to a time.Time object and formatting with keyTimestamp.UTC().Format("20060102T150405")

>gpg-connect-agent
> KEYTOCARD 11FA927B453C99646DCE42A4EC33E7CDE9B5D80A D2760001240100000006199714170000 OPENPGP.1 20240301T214323
> KEYTOCARD 6BD4B392CE9CA0994038B4ACB2A8EEA33C42B73B D2760001240100000006199714170000 OPENPGP.2 20240301T214323
> /bye

However, when I run gpg --card-status, I see the following fingerprints:
Signature key ....: D3A4 BD8D D055 57DC 6C46  9D37 EA00 63F6 C7AC B985
      created ....: 2024-03-01 21:43:23
Encryption key....: 7684 69AC 284E EABB 2000  4B7C CFF6 8A7F 6CBA 9554
      created ....: 2024-03-01 21:43:23

The signature key's fingerprint matches the one in my keyring, but the encryption subkey does not.
If I instead generate a key with gpg, both fingerprints stay the same when loading to a smartcard:
>gpg --batch --passphrase "" --quick-generate-key test-sc-2 ed25519 sign never
gpg: revocation certificate stored as '~/.gnupg/openpgp-revocs.d/0A842270AB61EFC33F2E298B1717B3D9583B854F.rev'

>gpg --batch --passphrase "" --quick-add-key 0A842270AB61EFC33F2E298B1717B3D9583B854F cv25519 encr never

> gpg --export-secret-key 0A842270AB61EFC33F2E298B1717B3D9583B854F > foo

> gpg --show-key --with-colons foo
sec:u:255:22:1717B3D9583B854F:1709585144:::u:::scESC:::::ed25519:::0:
fpr:::::::::0A842270AB61EFC33F2E298B1717B3D9583B854F:
grp:::::::::6D886491D5771C42D8ADF0BE748E79B86F7D8B4E:
uid:u::::1709585144::6B8541341C8D57622DF9AD9AE28036BCD5DB5D97::test-sc-2::::::::::0:
ssb:u:255:18:C5721B49EBE22FE3:1709585186::::::e:::::cv25519::
fpr:::::::::3F718B3457D3AC317031DCA2C5721B49EBE22FE3:
grp:::::::::7038DDE1064A68FB96BAF95D0EC985E309290599:

> gpg-connect-agent
> KEYTOCARD 6D886491D5771C42D8ADF0BE748E79B86F7D8B4E D2760001240100000006199714170000 OPENPGP.1 20240304T204544
> KEYTOCARD 7038DDE1064A68FB96BAF95D0EC985E309290599 D2760001240100000006199714170000 OPENPGP.2 20240304T204626
> /bye

> gpg --card-status

...
Signature key ....: 0A84 2270 AB61 EFC3 3F2E  298B 1717 B3D9 583B 854F
      created ....: 2024-03-04 20:45:44
Encryption key....: 3F71 8B34 57D3 AC31 7031  DCA2 C572 1B49 EBE2 2FE3
      created ....: 2024-03-04 20:46:26
...

This behavior indicates some discrepancy being created in the go-crypto serialized secret file, like perhaps a field is not getting set, and then gets set by gpg-connect-agent when loading. However, I've tried a lot of different flags and the depth of Entity configuration is a bit dizzying so I thought I'd see if any of the maintainers have thoughts here.
A few notes:

Importantly, the encryption key cryptographically works just fine; if encryption/decryption functionality targets the card's primary key (i.e. ed25519) fingerprint, the encryption subkey is used, as you would expect. However, it's unsettling to see a discrepancy like this.
I am using go-crypto specifically to feed curated entropy into the rand reader, as I can find no way to do this with gpg. I need my gpg keys to be determinsitic
It is not possible to export a key/keyfile from a smartcard due to limitations in OpenPGP data persistence, so I can't see exactly what changed. And as mentioned above, I cannot find a way to feed specific entropy bytes to pgp when generating keys, so I can't cross compare that way either.
This issue presents itself for multiple smartcard types and manufacturers (Yubikey 5A + C, Nitrokey 3A + C)

Any help would be appreciated! Hopefully I've just overlooked something obvious in the configuration.

The problem was two-fold:

I was not adding the ECDH params to KEYTOCARD. I should have been using e.g. KEYTOCARD 6D886491D5771C42D8ADF0BE748E79B86F7D8B4E D2760001240100000006199714170000 OPENPGP.1 20240304T204544 03010A09
Even with the added ECDH params, I needed to update gpg, as older versions (2.3) do not work with this argument.

Hope this helps someone! I will close the issue as it is unrelated to this repo :)


:book: add post about KCD Amsterdam and Paris 2023

What this PR does / why we need it:
A little summary about my experience at KCD Amsterdam and Paris. I liked this format, but please tell me if you prefer a different one, or if you'd be expecting something more to add.
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #1067

Really nice to hear about people approaching and being interested!

really nice! Thanks @mauromorales !


Do not rely on replacing GENERATED_RES to hook up the plugin

Prefer using addGeneratedSourceDirectory API instead
See https://github.com/usefulness/easylauncher-gradle-plugin/issues/382 and  https://issuetracker.google.com/issues/237421684 for more details

Just tested with 7.4. Looks good. Great work.


Installation script for betterlockscreen

I've written a script in bash which takes care of the whole installation of this script, that is it takes care of the dependencies as well.  Currently it's for Debian based systems. Feel free to add it to your repo.
https://github.com/UtkarshVerma/installer-scripts/blob/master/betterlockscreen.sh

@AUTplayed what do you think?
We can leave a link to this issue in our readme for making installation easier for debain and derivatives.

yeah, I agree, it would fit perfectly under the "for arch users" section


feat: Refactoring Param system and adding new ones

Summary
Modifications to parameters for LightBGM and Vowpal Wabbit APIs

Create common unit testable utilities (core/utils/ParamsStringBuilder) for creating native library command-line argument strings
Refactor VowpalWabbit and LightGBM to use the utilities
Add more explicit setters for some requested LightGBM parameters
Add ability for LightBGM user to set custom args that aren't defined explicitly by SynapseML (as Vowpal Wabbit does now)

Tests
Added unit tests for new arg string generation utilities

/azp run

/azp run

Codecov Report

Merging #1444 (add96d5) into master (435e99c) will decrease coverage by 83.48%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master   #1444       +/-   ##
==========================================
- Coverage   84.58%   1.09%   -83.49%
==========================================
  Files         288     263       -25
  Lines       14335   13300     -1035
  Branches      701     696        -5
==========================================
- Hits        12125     146    -11979
- Misses       2210   13154    +10944

Impacted Files
Coverage Δ

...re/synapse/ml/core/utils/ParamsStringBuilder.scala
0.00% <0.00%> (ø)

...osoft/azure/synapse/ml/lightgbm/LightGBMBase.scala
0.00% <0.00%> (-94.95%)
:arrow_down:

...azure/synapse/ml/lightgbm/LightGBMClassifier.scala
0.00% <0.00%> (-91.12%)
:arrow_down:

...t/azure/synapse/ml/lightgbm/LightGBMDelegate.scala
0.00% <0.00%> (-50.00%)
:arrow_down:

...oft/azure/synapse/ml/lightgbm/LightGBMRanker.scala
0.00% <0.00%> (-60.57%)
:arrow_down:

.../azure/synapse/ml/lightgbm/LightGBMRegressor.scala
0.00% <0.00%> (-74.14%)
:arrow_down:

...rosoft/azure/synapse/ml/lightgbm/SharedState.scala
0.00% <ø> (-88.47%)
:arrow_down:

...zure/synapse/ml/lightgbm/TaskTrainingMethods.scala
0.00% <ø> (-100.00%)
:arrow_down:

...crosoft/azure/synapse/ml/lightgbm/TrainUtils.scala
0.00% <0.00%> (-85.99%)
:arrow_down:

...e/synapse/ml/lightgbm/params/BaseTrainParams.scala
0.00% <0.00%> (ø)

... and 285 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 435e99c...add96d5.


bump version before release

Pull Request summary:
bump version befeore release 0.17.0
Checklist:

[x] Make sure to run pre-commit before committing changes
[x] Make sure all checks have passed
[x] PR description is clear and comprehensive
[x] Mentioned the issue that this PR solves (if applicable)
[x] Make sure you test the changes

This issue was migrated from an old repository: https://github.com/CiscoDevNet/catalystwan/pull/392


Traduit en français

프랑스어 번역
Translated in french

Hi @JiHong88,
i discover your rich text editor and like it
Thanks & good lucky

Hi @sudwebdesign
Thank you so much : )


[DOCS] Contributing to next js branch

Description
In the docs/contributing folder create a file called contributing-to-nextJS-branch.md
Provide full instructions for how to fork, clone, contribute and make a pull request to contribute to the nextJS branch (use contributing.md but modify to fit the needs of this particular contribution.
Provide a screenshot highlighting folks to uncheck the 'Fork main branch only' option when forking the repo.
Screenshots
No response
Additional information
No response

Can I try  this issue?

Hey, @EmmaDawsonDev I just submit the PR regarding this issue take a look at that and tell me about any further changes.

@vasucp1207 please see that someone asked to assigned 11hours ago. It’s not good etiquette to make a PR on an issue someone else was hoping to do.

I close the PR

Thanks for assigning me this issue @EmmaDawsonDev

I think we can close this as there nextjs has been merged


Typride reduce unnecessary links

Adjusted the Hub page.
Updated broken links.
Adjusted link text to clarify that users can get to the docs by clicking on overviews.
Created similar structure between Unity/Unreal to be easier to read and highlight fewer, high-value docs.

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


to add working steps in multiplicative inverse to calculate in decimal

Is your feature request related to a problem? Please describe.
to add working steps in multiplicative inverse to calculate in decimal

Hi, I want to work on this issue I will start working on it as soon as I get assigned!! I am a part of GSSoC'21.
Kindly assign this issue to me!
Discord Username : Abhijeet Sinha(P)
Discord Tag: #4018


💡 [Feature]: UI update for more contemporary look

We are done changing the header. Here is the issue to do the rest.
@mverissimo I'm assigning this to you to make changes to the rest of the app.

@mverissimo please pick this up. The header one is merged.

@atapas tks, I will work on the SeachBar right now.

Great!


Support plugins in sigs/scheduler-plugins?

https://github.com/kubernetes-sigs/scheduler-plugins
This idea should be discussed if it is really needed or not.
If we want to support it, we also need to support CRD (like podgroup). Supporting each CRDs can be a big task. Therefore, we need to think of some better way to do that, like handle CRDs together... etc (I have no good vision for it now 😓  )
But, #35 will make it easy to use custom-scheduler. So, even if they are not supported here, users will be able to use that plugins with #35 feature. In that case, since CRDs are not supported in the WebUI, users need to create CRD from another client. #55 will enable other clients (like kubectl, client-go... etc) to communicate with api-server.
To sum up my opinion, if there are many users who want to use plugins in sigs/scheduler-plugins, it is better to support them and support CRD in webui as well. But if not, we don't need to support them.
And there is a possibility that "scheduler-plugins will not be supported but a handling CRDs feature will be.".

Hi @sanposhiho , I have an experimental branch that made CRDs work , well at least it accepts the CRD and create them appropriately.
The idea is copying how kube-api-server create its aggregate server and extending it into the simulator - k8sapiserver.
It is quite a huge change to the simulator, so I am not sure whether you would like this added...

I would be interested in simulating my custom plugins too for testing reasons on scale, is that possible in your branch @matthewygf?

@marcobarlo , it depends whether your custom plugins implement the "Filter/Score" interface. Also It depends whether you need to handle any CRDs, in which case you might need to add a controller instance within the simulator.
If you don't need to handle any CRDs, you can probably fork and register your plugin in the simulator (probably need to add a few lines of code).

I think we can close this by #121.
Thanks a lot @matthewygf !
/close


Questions about import defer * have to add a new DeferredNamespace

I don't queit understand “Why import defer * gives a different namespace object from import *” section，is there any problem in the example？It seems that the import file "module-that-throws"  doesn't match any file in the example,  makes me confuse why defer import doesn't throw error.

see https://github.com/tc39/proposal-defer-import-eval/pull/43

module-that-throws would be a file with these contents:
throw new Error();

It doesn't throw when you do import defer because it doesn't evaluate the module.


[#217,#218] Remove Python 2 support code, implement proper thread state handling (main)

Addresses #217
Addresses #218 (WIP)
Not tested yet, could probably be improved.
Since I am currently testing with 4-3-stable, progress may be followed in #220 instead of in this PR.

just noticing the std::lock_guard is pulled out of the try/catch, in case that's important.

just noticing the std::lock_guard is pulled out of the try/catch, in case that's important.

Throws any exceptions thrown by m.lock().

There's a reason for that. I'll probably end up moving it back in, but I need to tweak some exception handling

Since I am currently testing with 4-3-stable, progress may be followed in #219 instead of in this PR.

this is #219.   i think you're suggesting #220

#'d

Is this identical to the PR for 4-3-stable?

Yes


Support for adding Adobe Digital Editions

Hi Emmanuel,
I'd like to package the Adobe Digital Editions Windows application.
I'm currently looking at your repository and use some apps for reference, but I don't understand how to:

figure out why the build fails and how to fix
find directories/files that are written by the Windows app (to find out what to persist)

If this is not too much to ask, I'd appreciate your input and in exchange I can offer to document the process in a general manner (so that others can benefit from it) and add this to your repository.
Thanks,
Peter

When you execute the launcher script that mkWindowsApp produces, a temporary directory is created in /tmp. This directory has the extention .mkWindowsApp. This happens during the winAppRun stage, which is when your target Windows app is executed.
Inside of that temporary directory there are two directories of interest: wineprefix and upper. The wineprefix subdirectory is the actual $WINEPREFIX which is used by Wine. The upper directory is where union-fs stores it's meta-data; This is the writable layer, so if you look inside the upper directory you can see the finds and directories that are written by the application. That will give you a clue as to what needs to be persisted. Note: It's OK to look inside of upper, but it's not OK to make changes within.
As for builds failing, I really don't know what to advise. It depends on the nature of the failure.
A tool which may help during the development process is wineshell-wine*.  They give you a Bash shell with a specific Wine configuration ready to go. You get a temporary directory, as I described above, which is then deleted when you exit the shell.
You can see the available options with the command: nix flake show github:emmanuelrosa/erosanix | grep wineshell
The current options are:

wineshell-wine: package 'wineshell-wine-0.2.0'
wineshell-wine-base: package 'wineshell-wine-0.2.0'
wineshell-wine-base-vulkan: package 'wineshell-wine-0.2.0'
wineshell-wine-vulkan: package 'wineshell-wine-0.2.0'
wineshell-wine64: package 'wineshell-wine64-0.2.0'
wineshell-wine64-base: package 'wineshell-wine64-0.2.0'
wineshell-wine64-base-vulkan: package 'wineshell-wine64-0.2.0'
wineshell-wine64-vulkan: package 'wineshell-wine64-0.2.0'
wineshell-wineWow64: package 'wineshell-wineWow64-0.2.0'
wineshell-wineWow64-base: package 'wineshell-wineWow64-0.2.0'
wineshell-wineWow64-base-vulkan: package 'wineshell-wineWow64-0.2.0'
wineshell-wineWow64-vulkan: package 'wineshell-wineWow64-0.2.0'

The base packages contain the smallest Wine install, while the others use the Wine full packages.
For example, you can run nix run github:emmanuelrosa/erosanix#wineshell-wine64 to get a Bash shell with the full installation of wine64.


Testing new fork with only title of Task 1.8 inserted

Testing new fork with only title of Task 1.8 inserted

Closing draft pull request


BRPC socket_max_unwritten_bytes should be configurable

We have some queries failed with the following logs
W0429 15:19:08.580521 38042 data_stream_sender.cpp:136] failed to send brpc batch, error=The server is overcrowded, error_text=[E1011]The server is overcrowded @xx.xx.xx.xx:8060 [R1][E1011]The server is overcrowded @<IP_ADDRESS>:8060 [R2][E1011]The server is overcrowded @xx.xx.xx.xx:8060 [R3][E1011]The server is overcrowded @xx.xx.xx.xx:8060

The reason is that the query needs to shuffle some large batches (with big value like HLL or bitmap), and the default limit for BRPC socket_max_unwritten_bytes (64MB) is exceeded.
I think we should allow user to config that parameter, just like 'brpc_max_body_size'.

From the error message, it seems that server is too busy. However the config socket_max_unwritten_bytes seems like a client config.
Are you sure that changing this config can resolve the problem you met?