make codecov work better

source of this idea is a codecov employee:
https://github.com/codecov/codecov-action/issues/1274#issuecomment-1934646632

OK, well the verbose helped, at least: we have useful information in the log now!
info - 2024-03-14 14:58:12,067 -- Process Commit creating complete
debug - 2024-03-14 14:58:12,067 -- Commit creating result --- {"result": "RequestResult(error=RequestError(code='HTTP Error 429', params={}, description='{\"detail\":\"Tokenless has reached GitHub rate limit. Please upload using a token: https://docs.codecov.com/docs/adding-the-codecov-token. Expected available in 705 seconds.\"}'), warnings=[], status_code=429, text='{\"detail\":\"Tokenless has reached GitHub rate limit. Please upload using a token: https://docs.codecov.com/docs/adding-the-codecov-token. Expected available in 705 seconds.\"}')"}
error - 2024-03-14 14:58:12,068 -- Commit creating failed: {"detail":"Tokenless has reached GitHub rate limit. Please upload using a token: https://docs.codecov.com/docs/adding-the-codecov-token. Expected available in 705 seconds."}
Error: Codecov: Failed to properly create commit: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1

The token is not getting through somehow.

thanks for the teamwork on this one @gabalafou


File Management: Tip Selection

As a protocol designer, I would like to be able to select tip racks to use with my protocol, when creating a protocol file.
Acceptance criteria

User prompted to select one tip rack type per pipette when creating a protocol file
User can use a dropdown with a list of tip rack 'types' (string names exactly match lab ware types)
If a pipette is set to none, the tip rack field is disabled (or auto set to 'none', whichever is easiest)
Tip rack  dropdown only displays tip racks that can fit with the selected pipette

Implementation Notes

When designing a protocol, user will only have access to tip rack types selected while creating the protocol
If pipettes use the same tip rack type then you need to place 2 of the same type (pipettes don't share yet)

Designs

Nevermind, not closed yet, I forgot part 3 #1866


Helm failed to install rancher.

Installing rancher with Helm，Chart version is 2.5.3，Now an error is reported when rancher's pod starts，Check the log with kubectl logs and find the following errors:
2020/12/31 09:27:16 [INFO] APIVersion project.cattle.io/v3 Kind SourceCodeCredential
2020/12/31 09:27:16 [INFO] APIVersion project.cattle.io/v3 Kind PipelineSetting
2020/12/31 09:27:16 [INFO] APIVersion metrics.k8s.io/v1beta1 Kind NodeMetrics
2020/12/31 09:27:16 [INFO] APIVersion metrics.k8s.io/v1beta1 Kind PodMetrics
2020/12/31 09:27:17 [INFO] Reconciling GlobalRoles
2020/12/31 09:27:17 [INFO] Reconciling RoleTemplates
2020/12/31 09:27:17 [INFO] Waiting for initial data to be populated
2020/12/31 09:27:17 [ERROR] failed to call leader func: failed to add management data: error creating default pspt: the server does not allow this method on the requested resource (post podsecuritypolicytemplates.meta.k8s.io)
2020/12/31 09:27:19 [INFO] Waiting for initial data to be populated
2020/12/31 09:27:21 [INFO] Waiting for initial data to be populated
2020/12/31 09:27:22 [INFO] Reconciling GlobalRoles
2020/12/31 09:27:22 [INFO] Reconciling RoleTemplates
2020/12/31 09:27:22 [ERROR] failed to call leader func: failed to add management data: error creating default pspt: the server does not allow this method on the requested resource (post podsecuritypolicytemplates.meta.k8s.io)
2020/12/31 09:27:23 [INFO] Waiting for initial data to be populated
2020/12/31 09:27:25 [INFO] Waiting for initial data to be populated
2020/12/31 09:27:27 [INFO] Waiting for initial data to be populated
2020/12/31 09:27:27 [INFO] Reconciling GlobalRoles
2020/12/31 09:27:27 [INFO] Reconciling RoleTemplates
2020/12/31 09:27:27 [ERROR] failed to call leader func: failed to add management data: error creating default pspt: the server does not allow this method on the requested resource (post podsecuritypolicytemplates.meta.k8s.io)
2020/12/31 09:27:29 [INFO] Waiting for initial data to be populated
2020/12/31 09:27:31 [INFO] Waiting for initial data to be populated
2020/12/31 09:27:32 [INFO] Reconciling GlobalRoles
2020/12/31 09:27:32 [INFO] Reconciling RoleTemplates
2020/12/31 09:27:32 [ERROR] failed to call leader func: failed to add management data: error creating default pspt: the server does not allow this method on the requested resource (post podsecuritypolicytemplates.meta.k8s.io)
2020/12/31 09:27:33 [INFO] Waiting for initial data to be populated
2020/12/31 09:27:35 [INFO] Waiting for initial data to be populated
2020/12/31 09:27:37 [INFO] Waiting for initial data to be populated
2020/12/31 09:27:37 [INFO] Reconciling GlobalRoles
2020/12/31 09:27:37 [INFO] Reconciling RoleTemplates
2020/12/31 09:27:37 [ERROR] failed to call leader func: failed to add management data: error creating default pspt: the server does not allow this method on the requested resource (post podsecuritypolicytemplates.meta.k8s.io)
2020/12/31 09:27:39 [INFO] Waiting for initial data to be populated
2020/12/31 09:27:41 [INFO] Waiting for initial data to be populated
2020/12/31 09:27:42 [INFO] Reconciling GlobalRoles
2020/12/31 09:27:42 [INFO] Reconciling RoleTemplates
2020/12/31 09:27:42 [ERROR] failed to call leader func: failed to add management data: error creating default pspt: the server does not allow this method on the requested resource (post podsecuritypolicytemplates.meta.k8s.io)
2020/12/31 09:27:43 [INFO] Waiting for initial data to be populated
2020/12/31 09:27:45 [INFO] Waiting for initial data to be populated
2020/12/31 09:27:47 [INFO] Waiting for initial data to be populated
2020/12/31 09:27:47 [INFO] Reconciling GlobalRoles
2020/12/31 09:27:47 [INFO] Reconciling RoleTemplates
2020/12/31 09:27:47 [ERROR] failed to call leader func: failed to add management data: error creating default pspt: the server does not allow this method on the requested resource (post podsecuritypolicytemplates.meta.k8s.io)
2020/12/31 09:27:49 [INFO] Waiting for initial data to be populated
2020/12/31 09:27:51 [INFO] Waiting for initial data to be populated
2020/12/31 09:27:52 [INFO] Reconciling GlobalRoles
2020/12/31 09:27:52 [INFO] Reconciling RoleTemplates
2020/12/31 09:27:52 [ERROR] failed to call leader func: failed to add management data: error creating default pspt: the server does not allow this method on the requested resource (post podsecuritypolicytemplates.meta.k8s.io)
......
2020/12/31 09:28:00 [INFO] Shutting down management.cattle.io/v3, Kind=Project workers
2020/12/31 09:28:00 [INFO] Shutting down management.cattle.io/v3, Kind=RkeK8sSystemImage workers
2020/12/31 09:28:00 [INFO] Shutting down management.cattle.io/v3, Kind=AuthConfig workers
2020/12/31 09:28:00 [INFO] Shutting down management.cattle.io/v3, Kind=PodSecurityPolicyTemplate workers
W1231 09:28:00.968025       7 reflector.go:425] pkg/mod/github.com/rancher/client-go@v1.19.0-rancher.1/tools/cache/reflector.go:157: watch of *v3.DynamicSchema ended with: an error on the server ("unable to decode an event from the watch stream: context canceled") has prevented the request from succeeding
W1231 09:28:00.968055       7 reflector.go:425] pkg/mod/github.com/rancher/client-go@v1.19.0-rancher.1/tools/cache/reflector.go:157: watch of *v3.MultiClusterApp ended with: an error on the server ("unable to decode an event from the watch stream: context canceled") has prevented the request from succeeding
W1231 09:28:00.968070       7 reflector.go:425] pkg/mod/github.com/rancher/client-go@v1.19.0-rancher.1/tools/cache/reflector.go:157: watch of *v3.Pipeline ended with: an error on the server ("unable to decode an event from the watch stream: context canceled") has prevented the request from succeeding
2020/12/31 09:28:00 [INFO] Shutting down management.cattle.io/v3, Kind=DynamicSchema workers
2020/12/31 09:28:00 [INFO] Shutting down management.cattle.io/v3, Kind=ProjectLogging workers
2020/12/31 09:28:00 [INFO] Shutting down management.cattle.io/v3, Kind=CisConfig workers
2020/12/31 09:28:00 [INFO] Shutting down management.cattle.io/v3, Kind=GlobalDns workers
2020/12/31 09:28:00 [INFO] Shutting down management.cattle.io/v3, Kind=RkeK8sServiceOption workers
2020/12/31 09:28:00 [INFO] Shutting down project.cattle.io/v3, Kind=SourceCodeCredential workers
2020/12/31 09:28:00 [INFO] Shutting down management.cattle.io/v3, Kind=MultiClusterAppRevision workers
2020/12/31 09:28:00 [INFO] Shutting down management.cattle.io/v3, Kind=UserAttribute workers
W1231 09:28:00.968090       7 reflector.go:425] pkg/mod/github.com/rancher/client-go@v1.19.0-rancher.1/tools/cache/reflector.go:157: watch of *v3.GlobalRole ended with: an error on the server ("unable to decode an event from the watch stream: context canceled") has prevented the request from succeeding
W1231 09:28:00.968111       7 reflector.go:425] pkg/mod/github.com/rancher/client-go@v1.19.0-rancher.1/tools/cache/reflector.go:157: watch of *v3.ProjectLogging ended with: an error on the server ("unable to decode an event from the watch stream: context canceled") has prevented the request from succeeding
2020/12/31 09:28:00 [INFO] Shutting down management.cattle.io/v3, Kind=Node workers
2020/12/31 09:28:00 [INFO] Shutting down management.cattle.io/v3, Kind=Token workers
2020/12/31 09:28:00 [INFO] Shutting down management.cattle.io/v3, Kind=NodePool workers
2020/12/31 09:28:00 [INFO] Shutting down management.cattle.io/v3, Kind=NodeDriver workers
2020/12/31 09:28:00 [INFO] Shutting down management.cattle.io/v3, Kind=ClusterRoleTemplateBinding workers
2020/12/31 09:28:00 [INFO] Shutting down management.cattle.io/v3, Kind=Group workers
W1231 09:28:00.968526       7 reflector.go:425] pkg/mod/github.com/rancher/client-go@v1.19.0-rancher.1/tools/cache/reflector.go:157: watch of *v3.ProjectRoleTemplateBinding ended with: an error on the server ("unable to decode an event from the watch stream: context canceled") has prevented the request from succeeding
2020/12/31 09:28:00 [INFO] Shutting down /v1, Kind=Namespace workers
2020/12/31 09:28:00 [INFO] Shutting down management.cattle.io/v3, Kind=User workers
2020/12/31 09:28:00 [INFO] Shutting down management.cattle.io/v3, Kind=ClusterTemplateRevision workers
2020/12/31 09:28:00 [INFO] Shutting down management.cattle.io/v3, Kind=Group workers
2020/12/31 09:28:00 [INFO] Shutting down management.cattle.io/v3, Kind=PodSecurityPolicyTemplateProjectBinding workers
2020/12/31 09:28:00 [INFO] Shutting down management.cattle.io/v3, Kind=UserAttribute workers
2020/12/31 09:28:00 [INFO] Shutting down management.cattle.io/v3, Kind=MultiClusterApp workers
2020/12/31 09:28:00 [INFO] Shutting down management.cattle.io/v3, Kind=User workers
2020/12/31 09:28:00 [INFO] Shutting down management.cattle.io/v3, Kind=ClusterRegistrationToken workers
W1231 09:28:00.969818       7 reflector.go:425] pkg/mod/github.com/rancher/client-go@v1.19.0-rancher.1/tools/cache/reflector.go:157: watch of *v3.KontainerDriver ended with: an error on the server ("unable to decode an event from the watch stream: context canceled") has prevented the request from succeeding
W1231 09:28:00.969918       7 reflector.go:425] pkg/mod/github.com/rancher/client-go@v1.19.0-rancher.1/tools/cache/reflector.go:157: watch of *v3.AuthConfig ended with: an error on the server ("unable to decode an event from the watch stream: context canceled") has prevented the request from succeeding
2020/12/31 09:28:00 [FATAL] leaderelection lost for cattle-controllers
What kind of request is this (question/bug/enhancement/feature request):
question
Steps to reproduce (least amount of steps as possible):
Result:
Other details that may be helpful:
Environment information

Rancher version (rancher/rancher/rancher/server image tag or shown bottom left in the UI):
Installation option (single install/HA):

Cluster information

Cluster type (Hosted/Infrastructure Provider/Custom/Imported):
Machine type (cloud/VM/metal) and specifications (CPU/memory):
Kubernetes version (use kubectl version):

v1.15.6

Docker version (use docker version):

19.03.8

Can someone answer that?

Can someone answer that?

I just came across this issue today. Any help would be appreciated. last line in kc log is:
2021/03/29 22:40:29 [INFO] Waiting for initial data to be populated
2021/03/29 22:40:31 [INFO] Waiting for initial data to be populated
2021/03/29 22:40:33 [INFO] Waiting for initial data to be populated
I0329 22:40:35.316580       8 leaderelection.go:253] successfully acquired lease kube-system/cattle-controllers
2021/03/29 22:40:35 [INFO] Steve auth startup complete
2021/03/29 22:40:35 [INFO] Starting catalog.cattle.io/v1, Kind=Operation controller
2021/03/29 22:40:35 [INFO] Starting /v1, Kind=Pod controller
2021/03/29 22:40:35 [INFO] Starting catalog.cattle.io/v1, Kind=App controller
2021/03/29 22:40:35 [INFO] Reconciling GlobalRoles
2021/03/29 22:40:35 [INFO] Reconciling RoleTemplates
2021/03/29 22:40:35 [INFO] Shutting down catalog.cattle.io/v1, Kind=App workers
2021/03/29 22:40:35 [INFO] Shutting down /v1, Kind=Pod workers
2021/03/29 22:40:35 [INFO] Shutting down catalog.cattle.io/v1, Kind=Operation workers
2021/03/29 22:40:35 [FATAL] leaderelection lost for cattle-controllers


add(hash): sha256 and sha512 hash files

Signed-off-by: danmx<EMAIL_ADDRESS>Purpose
What is the context of this pull request? Why is it being done?
There are proven collisions of SHA1 hashes. Some organisations and tools (e.g. Bazel) will require better hashes and it'll just save their time.
Notable Changes
Are there any changes that need to be called out as particularly tricky or significant?
No.
Tests and Risks?
Is this covered by existing tests? New ones? If no, why not?
Yes?
Update the SHA1SUM file
Also make sure that you update the sha1 hash by running sha1sum codecov and updating the SHA1SUM file with the output
No changes that would impact the hash of the script.

Small nit @danmx, but LGTM. Will merge after addressed

Updating the SHA sums


incorrect MAC address detection

Hello,
After start the service lookup for devices and report incorrect MAC:
[2021-01-06 17:19:11,311] DEBUG Connected to 'RM2' Broadlink device at '<IP_ADDRESS>' (MAC da:d4:fb:0d:43:b4) and started listening for commands at MQTT topic having prefix 'broadlink/RM2_0d_43_b4/'
[2021-01-06 17:19:11,345] DEBUG Connected to 'RM2' Broadlink device at '<IP_ADDRESS>' (MAC 61:ac:ef:0d:43:b4) and started listening for commands at MQTT topic having prefix 'broadlink/RM2_0d_43_b4/'
[2021-01-06 17:19:11,349] DEBUG Connected to MQTT broker, subscribing to topic broadlink/#
but the actual MAC addresses:
Broadlink_RMPROPLUS-fb-d4-da.homestudio (<IP_ADDRESS>) at b4:43:0d:fb:d4:da [ether] on enp0s3
Broadlink_RMMINI-ef-ac-61.homestudio (<IP_ADDRESS>) at b4:43:0d:ef:ac:61 [ether] on enp0s3

Thanks! Should be fixed now
Format of the MAC address has been changed in the python-broadlink library since v0.15.0

Thanks! Should be fixed now
Format of the MAC address has been changed in the python-broadlink library since v0.15.0


Add support for constrainting a template parameter with another params

fix #2616

You can try these changes at https://cadlplayground.z22.web.core.windows.net/prs/2789/
Check the website changes at https://tspwebsitepr.z22.web.core.windows.net/prs/2789/


Google meet link not working

Once I click on the genererated link, I get the following:

use your company's account


Additional Analytics: Permutation Combinations

Using the merukhand framework as a base framework, tabulating how many combinations are used in a performance.
I can send a file with all the combinations (or you can write the code to create it). But it essentially labels each combination.
1: 1
2: 2a, 1-2; 2b, 2-1
3: 3a, 1-2-3, 3b, 2-1-3, 3c, 1-3-2; 3d, 3-1-2; 3e, 2-3-1, 3f, 3-2-1
Etc.
Using the pitch-parameter tools, identifying and counting every unique phrase-cluster.
Using two approaches to set norms by ragas. 1) Using formally expressed rules (from Bhatkhande), how many and which combinations are allowed in a raga; 2) using the actual data from transcriptions, identifying how many, and which combinations are used in performances.
For example, in Raga Yaman, according the Bhatkhande's grammar:
1: 1 (allowed)
2: 2a, 1-2 (not allowed) ; 2b, 2-1 (allowed)
3: 3a, 1-2-3 (not allowed), 3b, 2-1-3 (not allowed), 3c, 1-3-2 (not allowed); 3d, 3-1-2 (not allowed); 3e, 2-3-1 (allowed), 3f, 3-2-1 (allowed), etc.
But in Imdad Khan's yaman 1-2 is allowed, as is 1-3-2
etc.

Analyst should be able to specify "valid" permutations, and "invalid" permutations. This could feed another analytic measure: How "raga-like" the performance is?


Fixup/era points

Referenced issues

Description of the Change

Fixes era-points
Fixes memory consumption in parachains

Possible Drawbacks

Checklist Before Opening a PR
Before you open a Pull Request (PR), please make sure you've completed the following steps and confirm by answering 'Yes' to each item:

Code is formatted: Have you run your code through clang-format to ensure it adheres to the project's coding standards? [Yes|No]
Code is documented: Have you added comments and documentation to your code according to the guidelines in the project's contributing guidelines? [Yes|No]
Self-review: Have you reviewed your own code to ensure it is free of typos, syntax errors, logical errors, and unresolved TODOs or FIXME without linking to an issue? [Yes|No]
Zombienet Tests: Have you ensured that the zombienet tests are passing? Zombienet is a network simulation and testing tool used in this project. It's important to ensure that these tests pass to maintain the stability and reliability of the project. [Yes|No]

lgtm


Use custom struct for Orchestrator - Node jsonrpc communication

Right now, the Orchestrator uses bitcoincore_rpc::jsonrpc::Response struct for deserialising responses from MPC nodes.
#[derive(Debug, Clone, Deserialize, Serialize)]
/// A JSONRPC response object.
pub struct Response {
    /// A result if there is one, or [`None`].
    pub result: Option<Box<RawValue>>,
    /// An error if there is one, or [`None`].
    pub error: Option<error::RpcError>,
    /// Identifier for this Request, which should match that of the request.
    pub id: serde_json::Value,
    /// jsonrpc field, MUST be "2.0".
    pub jsonrpc: Option<String>,
}

This is working as expected, since the structure follows the standardised jsonrpc response, and nodes send replies using jsonrpsee_core::RpcResult. However, we should use the same package/structure on both sides.
On top of that, I suggest using the jsonrpsee client for jsonrpc requests, instead of the reqwest library. (examples)
I suggest using jsonrpsee's Response struct for deserialization in the following places:
https://github.com/sigma0-xyz/zkbitcoin/blob/601b6a4ad94db02dff358c2f7baf92912c78e687/src/committee/orchestrator.rs#L174-L185
https://github.com/sigma0-xyz/zkbitcoin/blob/601b6a4ad94db02dff358c2f7baf92912c78e687/src/committee/orchestrator.rs#L344-L356
https://github.com/sigma0-xyz/zkbitcoin/blob/601b6a4ad94db02dff358c2f7baf92912c78e687/src/committee/orchestrator.rs#L407-L420

I can't remember why I didn't use jsonrpsee, I think I couldn't set some timeout or I had some issue customizing something... but in general if we can replace the code we have with library functions I will welcome a PR :)


[INTERNAL] Align with @ui5/logger changes to named exports

See https://github.com/SAP/ui5-logger/pull/371
Depends on https://github.com/SAP/ui5-fs/pull/478

Coverage: 94.609%. Remained the same when pulling 569b91d95b76f07c9f1354dba32c05c101a798aa on logger-named-export into b41173fadc7aa0127c3667b248f81c69a8e5c7f2 on main.


Feed Screen Base page re-design

OD Hack
This issue is part of ODHack 4.0:
description - https://x.com/OnlyDust_com/status/1791035111992934563
guidelines - https://onlydust.notion.site/ODHack-Common-Guidelines-Project-leads-5e21836f85ad493f9ca429770af0ad40
Please read the guidelines and make sure you follow them.
Please write your thoughts and how long you think it will take to complete the issue in the comments.
Feed Screen Base re-design
Feed screen should be re-designed to match the new design. The new design is available at Figma: https://www.figma.com/design/NIJ68MV1AeI8y283woXiM0/JoyBoy?node-id=101-13187&t=SqYlHcodPjhrLdTM-0
Current Feed screen be found at: https://github.com/keep-starknet-strange/joyboy/blob/main/JoyboyCommunity/src/modules/feed/index.tsx
You should implement the design as close as possible and should match 1:1 except for the post card. The post card should be implemented as a separate component and issue.
In short, you should implement the following:

Header
Stories section
Bottom bar
Create post button

Please battle test it before doing a PR.
Communication
https://t.me/JoyboyStarknet/949
May the Joy be with you!

I would love to work on this

i

@josephchimebuka Hi, I've assigned this to @kateberryd since she is the first one and included the required time. However we have other issues to look at


Do we have a prometheus dashboard for this plugin or can we use any existing one?

Yeah wondering the same thing, is there a recommended dashboard for this (standard?) prometheus exporter plugin or a list of ones that work with it?
I use this one https://grafana.com/grafana/dashboards/266 looks like it's by same author as this plugin. But it hasn't been updated in four years?
I see a lot of "No data" in the dashboard with Elasticsearch 7.5.2, like the Document Index Rate panel.

I've submitted a PR with a dashboard I put together that uses this projects cluster metrics. This would have saved me a lot of time so I hope that it saves some time for somebody else!


Server Crash in Nomifactory CEU (NFu)

Server is ran in a docker container with image itzg/minecraft-server:java8
Replaced v8.1.9 of Crafting Tweaks with v9.0 on my server and got the below
Files:

crash-2022-06-16_01.51.02-server.txt
latest.log

Swapped back to v8.1.9 and the server starts up fine.

Looks like some client code is getting run in the server thread, with an unsafe cast being performed.

Fixed with #2 PR


minor libnop tweaks for compile-time eval and move exceptions

During compile with MSVC code analyzer, some libnop code changes are suggested
Setup

Microsoft Windows [Version 10.0.19044.1466]
VS2019 v16.11.9
depthai-core v2.14.1 + thread/move fixes

Repro

Setup msvc code analyzer with /analyze:plugin EspXEngine.dll and env vars esp.extensions=CppCoreCheck.dll esp.annotationbuildlevel=ignore
cmake config for x64, debug, shared lib
cmake build

Result
A move constructor can not throw, it should be marked as such.
//  nop\types\result.h line 202
constexpr Result(Result&& other) : error_{other.error_} { other.clear(); }
// change to
constexpr Result(Result&& other) noexcept : error_{other.error_} { other.clear(); }

// same result.h line 212
constexpr Result& operator=(Result&& other) {
// change to
constexpr Result& operator=(Result&& other) noexcept {

The const variable 'element_size' can be computed at compile-time. Use constexpr
// nop\utility\buffer_reader.h line 60
const std::size_t element_size = sizeof(T);
// change to
constexpr std::size_t element_size = sizeof(T);

Thanks - will update libnop with proposed changes.
Also @diablodale, if you happen to know anyone who'd be willing to take a look at the libnop's macros and make an old MSVC preprocessor alternatives for it, I'd be happy to have a chat

I don't know anyone that might be passionate about that  ;-)
My approach on libnop was to change my projects and dependencies to be new preprocessor compliant. I knew them so well -- I could make the compliance changes rapidly.

My approach on libnop was to change my projects and dependencies to be new preprocessor compliant. I knew them so well -- I could make the compliance changes rapidly.

Thats nice - luckily we have a large user base using Python bindings especially on Windows. This preprocessor change didn't cause any issues there as well.
Thanks anyways, will look around a bit more:)

verified suggested libnop changes were merged into libnop
verified depthai-code develop at 04d5149e7cfddc4dc871d55d1a3d9ee270b76835 is using those changed.
I consider this issue resolved.


Confused about rtmdet instance segmentation config file

In the path "confil/rtmdet/", all rtmdet instance segmentation config files rely on the rtmdet_l_8xb32-300e_coco python file, which  use '../base/datasets/coco_detection.py' as base config file.
But in the other model config files, such as mask rcnn, there is the '../base/datasets/coco_instance.py' instead.
So why using rtmdet to do segmentation task need the coco detection config?

anyone？


Install output has a small error with the open_query_store_startup

Is this:
Just place "x" to indicate selection (e.g. "[x]")

[ ] feature
[x] bug:

Instance Details
Run the following instruction on your SQL Server instance:
SELECT @@VERSION

and paste the output here
Microsoft SQL Server 2012 (SP3-CU10) (KB4025925) - 11.0.6607.3 (X64)
Jul  8 2017 16:43:40
Copyright (c) Microsoft Corporation
Enterprise Edition: Core-based Licensing (64-bit) on Windows NT 6.2  (Build 9200: ) (Hypervisor)
Steps to Reproduce
Download the installer package and run it.
Attached screen shots/SSMS output

The out states:
EXECUTE [master].[dbo].[dbo.open_query_store_startup]
There is a dbo to much inside the out.

Looks like it is solved in the branch and not the release.


Error vite

I tried runnig in vite project. I had this error
    this.pathTracer = new WebGLPathTracer(this.renderer);
    this.pathTracer.filterGlossyFactor = 0.5;
    this.pathTracer.renderScale = Math.max(1 / window.devicePixelRatio, 0.5);
    this.pathTracer.tiles.set(3, 3);
    this.pathTracer.setBVHWorker(new ParallelMeshBVHWorker());
    (async () => {
      // initialize the path tracer
      await this.pathTracer.setSceneAsync(
        this.components.scene,
        this.camera.currentCamera
      );
    })();

Error: GenerateMeshBVHWorker: Could not create Web Worker.
    at WorkerBase.worker.onerror

I need to help. Thank

See https://github.com/gkjohnson/three-mesh-bvh/issues/636 - Vite apparently doesn't support valid web worker syntax so you cannot use the imported BVH Web Worker from an external package. https://github.com/gkjohnson/three-mesh-bvh/issues/636 outlines some workarounds.


Monorepo/big repo support

This is a list of ideas to support huge repositories and monorepos

[ ] Allow creating separate caches for subfolders
[ ] Allow querying specific folders. In this case, the top list of files should be filtered just for this folder
[ ] Get top files from any folder with more than X files. In addition to guaranteeing that the overall top N files are cached, guarantee that these files are also cached
[ ] Detect delimiters of "subprojects" such as git subrepos, package.json files and other files that belong to independent packages. Apart from getting the overall top list of files, get top lists from these folders and also consider this in sorting the results.
[ ] Try to find "names" for subpackages and if possible, include these as context for chunks. This way the user could be able to specify that they are looking for something from that package

I'm curious what your definition of "huge" is here.
Context: I've been playing with SeaGOAT against two private repos - one with ~4.5k files and one with ~185k. I've not found gt useful yet against the 185k repo - it returns way too much info to be helpful and takes ~3m to return from a query. I'm going to reindex excluding all of our tests to see if that helps, but am wondering if this repo is just not a good use-case for SeaGOAT.
I am connecting to a seagoat-server running on a barely-remote host (a reasonably-beefy "gaming NUC" on my local network), but that doesn't seem likely to be a huge issue - I'd anticipate any network latency to be (perhaps more-than) offset by the additional resources it has vs running on my somewhat-loaded MBP.

I'm curious what your definition of "huge" is here.
Context: I've been playing with SeaGOAT against two private repos - one with ~4.5k files and one with ~185k. I've not found gt useful yet against the 185k repo - it returns way too much info to be helpful

I would say that in theory it should be possible to make SeaGOAT useful in theory even for 500K file repos. It should be just a question of optimization. Of course analyzing that many files would take a very long time even with any sort of optimization, however with nice heuristics it should be possible to make sure that most files that the user would be looking for will be quickly analyzed.
Another thing is that it should be possible to either optionally offload the effort to a remote server or even distribute the effort in a P2P fashion. I have not done much in this area though because first I want to learn more about the use cases and optimize the results and the analysis process. That is because each time the process for analyzing the chunks is changed, of course the entire project needs to be reanalized, so I want to hopefully do most of that early on in the project and minimize such changes in the future if there is a large user base

takes ~3m to return from a query.

Regarding this, does it also happen if you do it while limiting the number of results? For example -l30?
I am considering limiting the number of results by default, and actually making the users make it manually unlimited. Also perhaps in the server config there could be a hard limit to avoid making the server hang and such. Or perhaps a timeout for queries or such.

Also for remote running, there should be better multi-core support I think. That will not make a difference with low-load situation but should at least help with higher load which I guess would be important if you are actually experimenting with something for hundreds of thousands of files

Regarding the issue with slow queries in big repositories, there should be dramatic improvements now, I have seen queries speeding up from 5-7 seconds to under 1s


Fix description of rules_group/field_format_standard

rules_group/field_format_standard had wrong description in schema and documentation (using values from jsonextract)
no logic changes
Acceptance tests

[X] Have you added an acceptance test for the functionality being added?

Output from acceptance testing: None
Release Note
Release note for CHANGELOG:
None

References
None
Community Note

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

 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.

@OranShuster Thank you very much for your fixing.
I merged it with another PR to avoid another release.


Angular 4+ compatibility

use:
import { Response,RequestOptionsArgs } from '@angular/http';
instead:
import { RequestOptionsArgs } from '@angular/http/src/interfaces';
import { Response } from '@angular/http/src/static_response';

OMG, the rest is ok? How about OpaqueToken ?

No error for OpaqueToken, but tons of other incompatibilities errors like:
Namespace ''*'' has no exported member 'NgModuleFactory'
Namespace ''*'' has no exported member 'Injector'
Type 'any' is not a constructor function type
Property 'parent' does not exist on type 'WpApiModuleInjector
...

Angular 4 is coming out in a week. They say it can be a straight replacement for Angular 2.
A good read,
https://jaxenter.com/road-angular-4-rc3-131386.html

link is 404

it is, reading link is 404.
did you caught the errors?

Dependency update for both Angular 2 and 4 would be good.

I updated to ng4 and it works. can you confirm too?

Can't see any commit..

I have not commited anything. I upgraded to ng4 and the lib works. Does it work too on your side?
The only thing that bothers you is the dependencies version?

It seems to work for me with ng4 but the factory example gave me an error:

I just mindlessly set the type to any instead.

Tomorrow I feedback my test.

OpaqueToken is Deprecated in ng4
https://angular.io/docs/ts/latest/api/core/index/OpaqueToken-class.html

yes it is but it is not removed yet so v4 should be fine. It is fine on my side.

Works with Angular 4 with current dependencies.

Warning: Can't resolve all parameters for Custom in /www/ks-com/content/themes/kli-ng-sr/node_modules/wp-api-angular/Custom.d.ts: ([object Object], [object Object], ?). This will become an error in Angular v5.x

@krokofant update package.json to Angular 4, and remove @ angular  from wp-api-angular/node_modules

those upgrade every 6 months are killing me!

But Angular 4 fixes a lot of issues that 1 and 2 suffered from, and my understanding is 4 is slotted to be an LTS version. So, you should be good to go for awhile ;-)

PRs to make it work with ng4+ are more than welcome people :)

beta8 should fix any errors with Angular4, please re open if you see any problem. I tested with AOT on Ionic 3 and Angular 4 via the CLI.


testing gh action

can also try it out on another repo so you can move faster

does chatgpt know how to write these things yet?

No worries I think I've got it — I just didn't resolve because I passed out at my desk last night 😆 😭

Also ChatGPT's not great but Phind FTW!

ooo go phind
also nooo get enough sleep!

Boom! Alright Now it will work on any push to main or PR!
GH actions are super cool. Are people still using Jenkins or do I sound like a boomer asking that question? lol

@seanoliver yeah github actions have replaced jenkins
this one is worth a quick blogpost fyi


the install.sh script stopped working since the latest v0.21.0 release

This part is failing as the new file name does not match.
VER=$(curl -s https://api.github.com/repos/Mirantis/cri-dockerd/releases/latest|grep tag_name | cut -d '"' -f 4)
wget https://github.com/Mirantis/cri-dockerd/releases/download/${VER}/cri-dockerd-${VER}-linux-amd64.tar.gz

Thank you for the report. The filenames on the cri-dockerd repo were changed in this release. This adjustment will address it:
VER=$(curl -s https://api.github.com/repos/Mirantis/cri-dockerd/releases/latest|grep tag_name | cut -d '"' -f 4 | cut -b 2-)
wget https://github.com/Mirantis/cri-dockerd/releases/download/v${VER}/cri-dockerd-${VER}.amd64.tgz
tar xvf cri-dockerd-${VER}.amd64.tgz

Will also update the script.

There were a few changes to the new cri-dockerd tar files that affected this script:

The naming of the tar files went from cri-dockerd-<version>-linux-amd64.tar.gz to cri-dockerd-${VER}.amd64.tgz
The cri-dockerd binary was moved from the top level of the tarball into a directory, cri-dockerd/cri-dockerd

We have made adjustments to the script to address those breaks. Please try this script again when you are able to. Once again, thank you for the report.

The latest version of this script uses containerd instead of cri-docker. Barring a major break between containerd and Kubernetes, this should be quite future proof.
Ticket will be closed; thank you for the report once again!


Is it possible to get PID commands return data faster?

Hey there,
Is there any way I can get the PID command return data faster?
Im using the code exactly same as Demo project. It is very slow for each PID command finish. it maybe takes more than 200+ms to read one data. I guess we can do something for transmitMultipleCommands function to improve the speed of loading.
-(void)updateSensorData
{
    LTOBD2PID_ENGINE_RPM_0C* rpm = [LTOBD2PID_ENGINE_RPM_0C pidForMode1];
    LTOBD2PID_VEHICLE_SPEED_0D* speed = [LTOBD2PID_VEHICLE_SPEED_0D pidForMode1];
    LTOBD2PID_COOLANT_TEMP_05* temp = [LTOBD2PID_COOLANT_TEMP_05 pidForMode1];

    [_obd2Adapter transmitMultipleCommands:@[ rpm, speed, temp ] completionHandler:^(NSArray<LTOBD2Command *> * _Nonnull commands) {

        dispatch_async( dispatch_get_main_queue(), ^{

            self->_rpmLabel.text = rpm.formattedResponse;
            self->_speedLabel.text = speed.formattedResponse;
            self->_tempLabel.text = temp.formattedResponse;

            dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.3 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
                [self updateSensorData];
            });

        } );

    }];
}

NSlog:
-[LTOBD2AdapterInternalCommand didCompleteResponse:protocol:protocolType:] (LTOBD2Adapter.m:58) <LTOBD2PID_COOLANT_TEMP_05:0x28382ca20 = '0105'> complete [226 ms] => '83F1114105804B'

In general: No. With OBD2-commands, the bottleneck is the OBD2 adapter waiting for more responses.
That said, there are ways to manipulate these timings. You can try adjusting the init sequence with commands like:

ATAT0 (disable adaptive timing, use hardcoded timing)
ATSTn (with n being the number of milliseconds to wait * 4)

Be warned though, don't set n too low, otherwise the adapter might stop waiting too early and respond with NO DATA.
If this still does not lead to enough speed, there are even more ways, but for these you will have to hack LTAutomotiveSupport:

If you are sure that you will only communicate with one ECU, you can add a 1 as the prefix of every command. This will tell the adapter to not wait any longer as soon as it received one command. If your vehicle has more than one ECU, you might need to gather the targeted ECU's physical address first and set the masks with ATSH and ATCRA.
OBD2 supports sending multiple PIDs with one command. Try sending, e.g., 01 04 05 0B 0C which will query four PIDs in a row from the current frame.
If all that is still not enough and you have a CAN-BUS, you might be able to drop down to UDS where you can programmatically create combined PIDs (search for "dynamically defined data identifier").

Hey @mickeyl thanks for the explanation regarding waiting time.Can you please tell me where to add 1 as suffix ,i am preety beginner to ios development .A single code line demo will be really appriciated .

Try applying the following diff to LTOBD2PID.m in +(instancetype)pidForMode1 (line 33).
-    NSString* string = [@"01" stringByAppendingString:suffix];
+    NSString* string = [NSString stringWithFormat:@"01%@1", suffix];

This way, an '1' will be appended to the PID, hence the adapter will stop after receiving one data message. Make sure you don't use this with broadcast addressing, otherwise you'll miss responses you actually want.
Note also that due to a bug in many ELM327ish implementations, this will not work with ISOTP multi-line answers (e.g. the answer to 0902) – the adapter stops listening after the first frame.

The change I've presented only adds the '1' for all PIDs in "current frame" (01xy), so you should be clear for all PIDs from 0100 to 01FF.  If you were to do the same for PIDs in the range of "vehicle information" (09xy), then it won't work because most of these PIDs return ISOTP multi line answers like, e.g., VIN (0902).
With regards to broadcast addressing… OBD2 supports broadcast addressing e.g. in CAN11-mode it's when you send anything to 0x7DF. In that case, all of your OBD2-capable ECUs will answer. However – if you're applying the patch from above – you will only get the first ECU answering, since the adapter stops listening after the first answer. That's why you have to be a bit careful with broadcast addressing.
Of course, it would be best, if the library would support this, and in particular, if it could tune itself to work with many kinds of adapters, not just dumb ELM327 clones. All these ideas are way too complex to solve without the proper base infrastructure though.
(FWIW, I have realized all that in a Swift-based successor library Swift-UDS [which was open source for a short time], but I'm afraid this library is going to be have a proprietary license and will remain closed source.)

@mickeyl The libraray is working fine getting all the required data but sometime when adater state changed ,I am getting crash with odd logs .Whenever you have have time can you please check.Here the log which i am getting during crash -
Unhandeld adapter state OBD2AdapterStateReady

thread #53, queue = 'LTBTLESerialTransporter', stop reason = EXC_BAD_ACCESS (code=1, address=0x2ce66b20)
frame #0: 0x0000000198499880 libobjc.A.dylibobjc_retain + 16 libobjc.A.dylibobjc_retain:
->  0x198499880 <+16>: ldrb   w10, [x9, #0x20]
0x198499884 <+20>: tbz    w10, #0x2, 0x1984998b4    ; <+68>
0x198499888 <+24>: tbz    w8, #0x0, 0x1984998dc     ; <+108>
0x19849988c <+28>: mov    x9, #0x200000000000
Target 0: (Runner) stopped.

Hey @mickeyl any update on above crash things .It crashed multiple time with same error .

for some reasons I cannot find any documented behaviour of ELM327 to alter the wait behavior with a suffix?!
Pretty sure the suffix will be sent as raw data on the CAN bus...

@rs38 Straight from the horses mouth on page 31:

There is a way to speed up the retrieval of information, if you know how many responses will be sent. By telling the ELM327 how many lines of data to receive, it knows then it is finished, so does not have to go through the final timeout, waiting for data that is not coming. Simply add single hex digit after the OBD request bytes - the value of the digit providing the maximum number of response to obtain, and the ELM327 does the rest.

@mickeyl thanks, I should read more carefully!
will test it and wonder if I can speed up also UDS $22 readbyID commands!
(You advice with dynamically defined data identifier $2C seems unsupported for many BEVs?!)

@rs38 Yes, UDS $2C might not be supported. Note that it's definitely only supported for direct adressing, not for broadcast addressing.

can you give 1-2 examples of cars that support $2c? My last try always returns like negative responses 7F ?? 11 or similar.
BTW: The suffix "1" for single DID $22 UDS queries works but not tested for performance improvements 👍

@rs38 Should be quite a lot of cars, actually. 0x2C is supported by many BOSCH ECUs, e.g. the EDC45CP45 I have here:
>2c01f300f1900111
7E8 6C 01 F3 00

>22f300
7E8 7F 22 78
7E8 62 F3 00 57 44 44 32 31 32 30 39 34 31 42 32 30 34 32 35 35

@mickeyl good point! I think I only tested the BMS (11bit CAN id 0x7E5, ECU 0x8C) by physically addressing, so the success could be different from ECU to ECU in one car?!
may I add another question now that I have contact to an UDS guru? :)
Is there a way to translate from ECU ID like VAG cars use

to physical 11 bit and/or 29bit CAN headers ID? in many VW BEVs you can reach certain ECUs by either 11 or 29 bit addressing at least from diag OBD port and probably the gateway routing either way.


Cannot Deserialize timestamp with milliseconds

My code is simple:
use serde::{Deserialize, Serialize};
use time::OffsetDateTime;

// Adds milliseconds support to timestamps
time::serde::format_description!(ts_milliseconds, OffsetDateTime, "[unix_timestamp precision:millisecond]");

#[derive(Debug, Deserialize)]
pub struct Profile {
    pub id: String,
    pub name: String,
    #[serde(with = "ts_milliseconds")]
    pub createdAt: OffsetDateTime,
    #[serde(with = "ts_milliseconds")]
    pub updatedAt: OffsetDateTime,
}

When I go to use the structure to deserialize from a JSON I get the following error.
invalid type: integer `1617099399918`, expected a(n) `OffsetDateTime` in the format \"[unix_timestamp precision:millisecond]\"

The truth is that I have run out of ideas, I understand that it should work as it is, but it does not. In the cargo.toml I have the following:
time = { version = "~0.3", features = ["formatting", "macros", "parsing", "serde"] }

The value is expected to be a string, not an integer. Formatting and parsing is always done with strings.

The value is expected to be a string, not an integer. Formatting and parsing is always done with strings.

I understand then that it is impossible to deserialize a timestamp with milliseconds coming in an integer.
And you have not thought about including this possibility? It is not so rare nowadays to work with timestamps with milliseconds and the most normal thing is that they come as integers and not as strings.
In fact, I think it would be very interesting if it was even a module, something like time::serde::timestamp_millis. What do you think?

I have previously rejected that (on multiple occasions) because I assumed it could be replicated using the time::serde::format_description! macro. Given that it cannot and that time::serde::timestamp is serialized/deserialized as an integer, I would be fine with a PR adding it for milliseconds, microseconds, and nanoseconds.


Inconsistent BITCOUNT: BITCOUNT against test vector #5

Steps to reproduce
Run the commands mentioned in the test on Line 68 in the file https://github.com/AshwinKul28/dice-tests/blob/main/tcltests/unit/bitpos.tcl#L68.
Expected output
The expected output when the above set of commands when run on Redis
Expected [r bitcount str 0 -1 bit]

Observed output
The observed output when the above set of commands when run on DiceDB
10 (context: type eval line 5 cmd {assert {[r bitcount str 0 -1 bit]

The steps to run the test cases are mentioned in the README of the dice-tests repository.
Expectations for resolution
This issue will be considered resolved when the following things are done:

Changes in the dice repository code to meet the expected behavior.
Successful run of the tcl test behavior.

You can find the tests under the tests directory of the dice repository and the steps to run are in the README file. Refer to the following links to set up DiceDB and Redis 7.2.5 locally

Setup DiceDB locally
Setup Redis 7.2.5 locally
Setup DiceDB CLI

Hi @lucifercr07 , can you assign this task to me?

@Nijin-P-S assigned, thanks for contributing.

Hi @lucifercr07 ,
I wanted to reach out regarding the issues I was assigned. Despite my efforts, I’m finding it challenging to make progress on them. Additionally, I have a busy period at my full-time job coming up and won’t be able to dedicate the time needed for the next couple of weeks.
I think it would be best for me to unassign these issues so someone else can take them on. Thank you for understanding, and I hope to contribute again in the future!

@lucifercr07 - I can pick this up.

@lucifercr07  - can you  please assign this issue to me? i would like to work on a PR

Closing, fixed as part of https://github.com/DiceDB/dice/pull/699


Fix JSON example (not working) and added reference for Custom Roles.

The example for the custom role does not work for start vm on connect - formatting wrong.
Please update this section "https://docs.microsoft.com/en-us/azure/virtual-desktop/start-virtual-machine-connect#create-a-custom-role-with-a-json-file-template" to the following:
{
  "Name": "Start VM on connect (Custom)",
  "IsCustom": true,
  "Description": "Start VM on connect with AVD (Custom)",
  "Actions": [
    "Microsoft.Compute/virtualMachines/start/action",
    "Microsoft.Compute/virtualMachines/read"
  ],
  "NotActions": [],
  "DataActions": [],
  "NotDataActions": [],
  "AssignableScopes": [
    "/subscriptions/00000000-0000-0000-0000-000000000000"
  ]
}

To use the JSON template, simply save JSON file, add subscription information for Assignable Scopes, and run the following from PowerShell:
New-AzRoleDefinition -InputFile "C:\temp\filename"

For more information, reference RBAC Custom Roles :
https://docs.microsoft.com/en-us/azure/role-based-access-control/custom-roles-powershell#create-a-custom-role-with-json-template

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

ID: fac2ed89-73b2-b382-d331-bef4df300297
Version Independent ID: a4364f7a-f260-36db-b08e-08c5a3a4762c
Content: Start virtual machine connect - Azure
Content Source: articles/virtual-desktop/start-virtual-machine-connect.md
Service: virtual-desktop
GitHub Login: @Heidilohr
Microsoft Alias: helohr

@shbabylo Thanks for the feedback! I have assigned the issue to content author to check and update the document as appropriate. We will update you accordingly.

@Heidilohr Can you please check and add your comments on this doc update request as applicable

@psmanhas Thank you for bringing this to my attention. I'll add this code to a new pull request as soon as I can.

Closing the loop on this - this was changed on 6 August 2021.
#please-close


AccessViolationException when using register or memory

In current version, System.AccessViolationException throwed when I use register ebx or push something.
I thought it's problem allocating memory using VirtualAlloc, so I changed that part like this.
var buffer = Marshal.AllocCoTaskMem(bytecode.Length);
// var buffer = WinAPI.VirtualAlloc(IntPtr.Zero, (uint)bytecode.Length, WinAPI.AllocationType.Commit, WinAPI.MemoryProtection.ExecuteReadWrite);

I tried to use Marshal.AllocCoTaskMem instead of VirtualAlloc, and I ran some test cases. When I access ANY of registers it throwed AccessViolationException. It was much worse.
Is there any way to use " unsafe " memory/register accessing?

https://github.com/phillyai/AssemblySharp/blob/62c94a4cddf206de75abe9d21e4d3cc46055af0c/AssemblySharpTests/X86AssemblyTests.cs#L72
Use [UnmanagedFunctionPointer(CallingConvention.Cdecl)] attribute.


Some issues I encountered when deploying this project.

I stopped at the step of running test.py because I don't have an OpenAI API Key. In the previous steps, I encountered some problems. Hope this issue could help others.

Two different versions of numpy would be required in the requirements.txt. I chosen the version 1.25.2.
utils.py is not included in the reverie/backend_server and you should create it by yourself.
After generating the utils.py, you should revise the code of the test.py or it will raise an error that "NameError: name 'openai_api_key' is not defined". You should replace the code "from utils import *" with "from reverie.backend_server import utils".
Before running test.py, remember to install some needed packages which are not included in the requirements.txt. The required packages you need to install are as follows:
openai, python-dotenv, litellm, gpt4all, utils, selenium

2023/10/13
文档里发现还有Requests、selenium重复了，asgiref还得改，其他的重复自己每次报错查找吧→整了三个小时，一条条改，已经改了很多条，感觉有点问题啊，搞不定。
我怀疑……

使用我在pull request中的 dev/aibot/fix分支提供的requirements文件，创立python 3.9环境。试一下。


How should I use Uni3D to train multiple datasets？

First of all, thank you for your outstanding contribution to 3D object detection.
As can see from the paper, you don't directly perform dataset-level merging. I'm currently working on cross-domain multi-dataset training in 2D and would like to learn from your ideas from Uni3D. I would like to know how I can run uni3D to train multiple datasets (what specific code to call on the terminal, or what specific .py file to run.), and I'd like to know how you fed multiple datasets separately into the network training.

@YangBo0411
Thanks for your approval towards.
For performing the multi-dataset training using Uni3D, you could refer to train a Uni3D detection model on the merged dataset for the training script, refor to train_multi_db.py for training code, and refer to uni3d config file for experimental setting file.

@YangBo0411
For your issue of how to merge multi-datasets, you could merge two batches from different datasets using common_utils.merge_two_batch_dict(batch_1, batch_2). Please refer to here


Update homework.sh - shell

Benjamin completed homework for shell, please review and kindly comment. Thanks!
What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)
What did you learn from the changes you have made?
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
How were these changes tested?
A reference to a related issue in your repository (if applicable)
@mentions of the person or team responsible for reviewing proposed changes (At least 2 people)

@michaeladrouillard
@dtxe
Checklist

[ ] I can confirm that my changes are working as intended

Thank you @michaeladrouillard for your inputs! Will study more on bash scripting :-)


[sai-gen] Simplify condition for table action generation.

Problem
Currently, we have a very complicated check for when a table action should be generated, for example:

The reason of this check being introduced is to enable us ignore the SAI_VIP_ENTRY_ACTION_DENY and SAI_PA_VALIDATION_ENTRY_ACTION_DENY action while still keep the action generated for them, as these entries only has 1 action which will be ignored.
However, this check is too narrowed, and also create some issues, for example - an object (not entry) with 1 action will also have the action type generated, which is not ideal.
What are we doing in this change
Ideally, the condition to generate the action type should be really straightforward:

If the table entry has more than 2 valid actions (not deny), the action type should be generated.
If the table entry is an entry, not object, the action type should be generated.
Otherwise, the action type should not be generated.

This simple logic simplify the mind model a lot, and the only case it didn't cover is the eni_eth_address_map_entry, which IMO, should follow the same pattern as many other similar tables (direction lookup, VIP, PA validation) and have the action type created too.

Hence, proposing the change to make our life easier.

thanks Mukesh for reviewing the change!


Can u please add examples like "reading csv" & plotting using cpplot lib

TODO:

reading csv lib --> DataFrame
plotting using your lib.

Actually, its' getting very difficult to import & starting project. Basically, if you can add "Getting Started" section.
NOTE: There was a mention in the README of C++ API. What's the status of the project?

This is my opinion in terms of simplicity of using your lib.
In Python, we simply install the package & get started very conveniently. But I tried doing this here using your lib.
But I started getting errors like this:
In file included from plot.cpp:1:0:
../src/cpplot.h:30:10: fatal error: Eigen/Dense: No such file or directory
 #include <Eigen/Dense>
          ^~~~~~~~~~~~~
compilation terminated.

And this is not a great thing.

OSS/GitHub Issues Etiquette
Generally it helps OSS project maintainers if an issue relates to one thing, with a well crafted question. StackOverflow has a good guide on how to ask questions, I suggest taking a look, it'll help you get better answers online.
Also, starting an issue with a TODO list for the maintainers is likely to get people annoyed with you pretty quickly. Remember you're asking strangers to do work for free for you. At least be polite about it, instead of bluntly listing things you want then ranting about the current state of the project, especially when you're learning a new language and clearly haven't figured out it all out yet.
Answers
Build systems
Unfortunately C++ build systems aren't nearly as simple as python, but that's not my fault!
In your case, Eigen is missing, which is already listed here in the readme as a third party dependency. If you're not familiar with building in c++, I'd suggest doing a few tutorials with CMake, which is a very useful build system.
You may also want to check out conan and vcpkg - cpplot isn't on those package mangers yet as it's not sufficiently mature, but they may help you with other things.
You can check one of my other libraries, es-flow for an example of how to actually use eigen and cpplot in a project, although I should say I'm currently upgrading es-flow's build systems and work is ongoing, but they're already a pretty good example.
However, feedback is noted - I'll add a Getting Started in due course, but fair warning, it'll assume basics of knowledge working with C++. I have created an issue to track this and I also need to do a wide range of stuff to spin this up toward a sensible project, now it's getting a bit of traction - my plan is to add proper project roadmap, documentation etc etc like i have with es-flow.
Examples
Also covered in the above new issue. In the meantime, I'd strongly recommend looking at the test code - each test is basically an example for how to make a different kind of plot.
C++ API
It's already in C++ and therefore its API is in C++. No idea what you're talking about here!
Project Status
Current status of the library is that it's maintained, although like most OSS maintainers I have limited time and it's a project of passion!
CSV Reader
On your request for a CSV reader, that would be way way way out of the scope of this project. There are plenty of examples (from a quick google search) of how to do this.
Although if you submit some example code (and a csv file) to read a CSV into an Eigen matrix then plot it with cpplot, I'd happily turn that into an example in the docs for others to use.
Dataframes
Dataframes look really interesting, again I'd welcome a standalone example demonstrating how to plot from them. There's no need for a specific integration though - it's straightforward to initialise an Eigen array from a std::vector so you can get data (sliced, reduced, windowed, whatever) out of a dataframe, point an Eigen array to it then plot using cpplot.


ui: Table sorting and improvements

Please see the commits for details.
This is a repetition of an earlier PR, with change requests addressed.

This is a repetition of an earlier PR

For documentation purposes, that earlier PR is https://github.com/eclipse-apoapsis/ort-server/pull/1386.


Handle retriable errors when talking to the storage adapter

Type of issue

[ ] Bug
[ ] New feature
[x] Enhancement

Description
When talking to the storage adapter, the client might receive a retriable error and the app should retry accordingly with a smart timing that doesn't overload the remote service.

Done


kemai: wayland support, set mainProgram, update

Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

There's an issue where LICENSE.txt ends up in /bin, but it seems to be an upstream cmake thing that existed before this PR.

Result of nixpkgs-review pr 261258 run on x86_64-linux 1

1 package built:

kemai

do we know why the aarch64-darwin build fails?

Done

I think this is good to go if you mark darwin as broken or fix it.

@ofborg build kemai

Marked as broken on darwin


[AetheryteLinkInChat] Filtering of special characters in teleport shortcut

Some users use the special characters for server names. That means it won't get matched with a server and the teleport won't get you there. Would it be possible to convert those to regular characters before trying to parse server names?

 A
 B
 C
 D
 E
 F
 G
 H
 I
 J
 K
 L
 M
 N
 O
 P
 Q
 R
 S
 T
 U
 V
 W
 X
 Y
 Z

All in-game special characters are available here

Thanks for the request!
I'm busy at work this week, so I'll do it this weekend.

Hi!
Sorry for the late response. I just released v6.58.10.
Release 6.58.10 · SlashNephy/Divination
Can you close the Issue once you are sure the issue has been resolved?


feat: add Clear Chat btn & Refresh Select Output Folder btn

Hey! I ended up implementing this on the last update before I saw your PR. I am happy to switch mine out for yours if it is better or more preferred. Let me know your thoughts, thanks again for all the interest and help debugging!


Stereo Implementation

Hey there,
I'm doing my masters degree on Sonic Arts and trying to come up with a good thesis on applications of machine learning on audio. I've been playing around with magenta and wavenet (thanks to you people!). Magenta is interesting as well but synthesizing sound from scratch, sample by sample is super interesting and revolutionary in my opinion. So, I decided to put my efforts on this one and I've been trying to coming up with some nice ideas lately.
I'll try to explain some stuff that I did so far.
Training the model with Impulse Response files (IR) :
I thought it would be a nice experiment to train the model with some IR (reverb impulse response) dataset and get the model synthesize some arbitrary spaces for me... So, I prepared a folder contains 115 IR samples of real spaces such as tunnel, hall, convention center etc.
I generated 20 second of IR sample after training the model up to 20000 steps by using the initial settings. This is what it gave me.
https://soundcloud.com/pullahs/generated-irs/s-WQW2v?in=pullahs/sets/wavenet/s-sx05a
which is quite interesting actually. (it worked...)
I sliced the IR wave file and extract some IRs out of it then placed it on a convolutional reverb plugin (that's how you use the IRs) to see the resulting space.
there is a straight forward playlist.
https://soundcloud.com/pullahs/sets/wavenet/s-sx05a
What I learned from this is that it promises a lot... With a better conditioning and more specific design approach on coding (which I'm super bad..) this can lead up to something much more useful. Designing auditory spaces...
The downside of my experiments is that this model only works in mono. To give a better perspective the model should work on stereo (at least). On "how could it be done (audiowise)" side of things, only thing that comes up to my mind is that while training the model it should also check the de-correlation between Left and Right channel. The phase difference between samples of Left channel and Right channel.
If the stereo implementation would be done or anyone would like to guide me on this, I have a lot to try out.
Best.

I am reading this and I am super intrigued by it. I was wondering if you continued to work on this and if you made any progress in the stereo implementation? Also the links don't work anymore.
Hope to hear either from you or someone who picked this up.

Thanks for upping this, I had forgotten the thread. 😕 Also interested if anyone has done further experiments. (Been busy with other stuff like https://arxiv.org/abs/1811.00334, https://arxiv.org/abs/1804.09593)
There's another WaveNet repo that provides mixture density training plus local and global conditioning
https://github.com/r9y9/wavenet_vocoder
As for conditioning room impulse response generation, one approach could be global conditioning with room metadata or maybe T60 (https://en.wikipedia.org/wiki/Reverberation#Reverberation_time).
Another thing I think is worth trying would be local conditioning with the IR envelope for more precise control.


Prepare form v1.0.5

README follows HUd-Software requirements
Fix clippy error

Codecov Report
Base: 100.00% // Head: 100.00% // No change to project coverage :thumbsup:

Coverage data is based on head (cb6d2e4) compared to base (b57c135).
Patch has no changes to coverable lines.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@            Coverage Diff            @@
##              main        #2   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            6         6
  Lines          238       238
=========================================
  Hits           238       238

Impacted Files
Coverage Δ

src/crc32c/mod.rs
100.00% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Import Error: Cannot import name certs - Second time onwards!

In [1]: import requests
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
/usr/local/python2.7/lib/python2.7/site-packages/Django-1.3.4-py2.7.egg/django/core/management/commands/shell.pyc in <module>()
----> 1 import requests

/usr/local/python2.7/lib/python2.7/site-packages/requests/__init__.py in <module>()
     56     pass
     57
---> 58 from . import utils
     59 from .models import Request, Response, PreparedRequest
     60 from .api import request, get, head, post, patch, put, delete, options

/usr/local/python2.7/lib/python2.7/site-packages/requests/utils.py in <module>()
     23 from . import __version__
     24 from . import certs
---> 25 from .compat import parse_http_list as _parse_list_header
     26 from .compat import (quote, urlparse, bytes, str, OrderedDict, unquote, is_py2,
     27                      builtin_str, getproxies, proxy_bypass)

/usr/local/python2.7/lib/python2.7/site-packages/requests/compat.py in <module>()
      5 """
      6
----> 7 from .packages import chardet
      8
      9 import sys

/usr/local/python2.7/lib/python2.7/site-packages/requests/packages/__init__.py in <module>()
      1 from __future__ import absolute_import
      2
----> 3 from . import urllib3

/usr/local/python2.7/lib/python2.7/site-packages/requests/packages/urllib3/__init__.py in <module>()
     14
     15
---> 16 from .connectionpool import (
     17     HTTPConnectionPool,
     18     HTTPSConnectionPool,

/usr/local/python2.7/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py in <module>()
     14     from queue import LifoQueue, Empty, Full
     15 except ImportError:
---> 16     from Queue import LifoQueue, Empty, Full
     17     import Queue as _  # Platform-specific: Windows
     18

ImportError: cannot import name LifoQueue

In [2]: import requests
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
/usr/local/python2.7/lib/python2.7/site-packages/Django-1.3.4-py2.7.egg/django/core/management/commands/shell.pyc in <module>()
----> 1 import requests

/usr/local/python2.7/lib/python2.7/site-packages/requests/__init__.py in <module>()
     56     pass
     57
---> 58 from . import utils
     59 from .models import Request, Response, PreparedRequest
     60 from .api import request, get, head, post, patch, put, delete, options

/usr/local/python2.7/lib/python2.7/site-packages/requests/utils.py in <module>()
     22
     23 from . import __version__
---> 24 from . import certs
     25 from .compat import parse_http_list as _parse_list_header
     26 from .compat import (quote, urlparse, bytes, str, OrderedDict, unquote, is_py2,

ImportError: cannot import name certs

I have a module Queue that mirrors python's default Queue.
This is why the LifoQueue import fails.
But having failed there the first time, every successive import of requests fails at 'Cannot import certs' which I find bizarre!
Also, I have not fixed the Queue conflict. Just want to know why the import error is different for the first time and the successive times are all some cert error!

This isn't a bug in requests. If you want to know why the import machinery is working this way, you should as on python-list or StackOverflow


Implement usage of built-in writefile function

Vim provides a built-in function that writes a string to a file so creating a buffer to do so is not necessary. I've implemented said function in the body of the WriteStdout (previously WriteTTY) function, and also tweaked the function arguments a bit to reduce some redundancy.
Tested against Vim 9.0.1424 and Neovim 0.9.1, works with both.

Originally created this PR to fix an issue I was having caused by this plugin calling :new and thus (very briefly) creating a split in the window, but it seems that writefile causes unreliable behaviour for this usage. Closing, will work on creating the buffer in the background instead.

Nevermind, this does work. The issue was with an auto command I had elsewhere in my config. Please go ahead and merge at your earliest convenience (unless you find have anything you'd like me to change)!

Originally created this PR to fix an issue I was having caused by this plugin calling :new and thus (very briefly) creating a split in the window, but it seems that writefile causes unreliable behaviour for this usage. Closing, will work on creating the buffer in the background instead.

Please disregard this -- the issue was with something else in my personal config. This PR is ready to go!


build(rollup): upgrade rollup from 1.x to 2.x

Upgrade rollup and susequent dependencies from 1.x to 2.x
Previously discussed in https://github.com/vuejs/vue-test-utils/pull/1629#issuecomment-668925267. To summarize:
The upgrade from Rollup 1.x to 2.x isn't super involved and is handled in this PR
A gist of the bundle diff is available for the team/community review. None of the semver or acorn variables are actually used in the current bundle, and the other changes can be explained by https://github.com/rollup/plugins/blame/master/packages/commonjs/src/helpers.js#L38 and https://github.com/rollup/plugins/blob/master/packages/commonjs/src/helpers.js#L58 / rollup/plugins#206.
Even though a regression is unlikely, we should test the build and check for regressions, and I would recommend a minor release just in the rare case we would need to patch.

What kind of change does this PR introduce? (check at least one)

[ ] Bugfix
[ ] Feature
[ ] Code style update
[ ] Refactor
[x] Build-related changes
[ ] Other, please describe:

Does this PR introduce a breaking change? (check one)

[ ] Yes
[x] No

If yes, please describe the impact and migration path for existing applications:
The PR fulfills these requirements:

[x] It's submitted to the dev branch.
[x] When resolving a specific issue, it's referenced in the PR's title (e.g. fix #xxx[,#xxx], where "xxx" is the issue number)
[x] All tests are passing: https://github.com/vuejs/vue-test-utils/blob/dev/.github/CONTRIBUTING.md#development-setup
[x] New/updated tests are included

If adding a new feature, the PR's description includes:

[ ] A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

Other information:

Oops, conflicts. I guess we will review/merge these one by one to avoid this problem.
thank you!

@lmiller1990 glad to help! I have a feeling the yarn.lock is going to cause conflicts on each merge into dev. I can just rebase them as we merge/review! This should be ready to go now.

@lmiller1990 another rebase :laughing:

Seems legit


Restoring kanboard from backup "breaks" all attached documents

EDIT:
Changed title from "Restoring MySQl DB "breaks" all attached documents" to "Restoring kanboard from backup "breaks" all attached documents"

Hello!
I've stumpled across a problem when I restore a MySQL DB. All attached documents are broken! You can see the attachements and click on "download" but when you try to open them they are either empty or you get a message that the file is broken.
This is what I did:
System A - Windows

I export the whole MySQL DB using phpmyadmin
I export the entire "data" folder of kanboard
I export the conf.php

System B - Linux/Debian

I installed a new version of kanboard
In MySQL I created an empty DB "kanboard" and a user "kanboard" wich has all rights on the DB "kanboard" using the commands:

CREATE DATABASE kanboard CHARACTER SET utf8;
CREATE USER 'kanboard'@'localhost' identified by 'password';
GRANT ALL on kanboard.* to 'kanboard'@'localhost';

I imported the whole MySQL DB using the command:

mysql -u root -p kanboard < /home/admin/kanboard.sql

I replaced the new folder "data" with my exported folder "data"
I put the exported config.php in place

After all of that everything is properly restored (users, setting, projects, tasks ...) BUT I can't open attachments because they're broken or they're empty.
I tried this at least 3 times and everytime the attached documents are broken.
Am I doing something wrong here? Or is this a bug?
Thank you in advance

Hello again.
I REALLY worked the whole day an this and I'm not even close to an solution! But I think this is a importend thing to konw:
I think that this is not a MySQL problem because it also happens with sqlite!
System A - Windows 7 / XAMMP

I installed a new version of kanboard
I did not change or create a individual config.php therefore sqlite is going to be used
I created a test project and some tasks
I attached some different files to some tasks (doc, docx, xls, txt)
Then I exported only the "data" folder!

System B - Debian/Raspbian 8.0 (jessie) / nginx & php5-fpm

I installed a new version of kanboard
I delet the folder "data" of the newly installed kanboard
I put the exportet "data" folder into the kanboard folder

After all of that everything is properly restored (users, setting, projects, tasks ...) BUT I still can't open attachments because they're broken or they're empty.
So this is not a MySQL problem as I assumed (why I assumed that in the first place is beyond me :-) )
If I can provide you with additional information (log, zipfile of the data folder using sqlite ...) feel free to ask! Any help on that would be highly appreciated!
Thank you very much!

I have some additional information.
I'm on the original kanboard installation (not the restored one):
Now when I delet an attached file (in the browser) the corresponding file in /kanboard/data/files/# is going to be deleted!
Now I'm on the maschine with the restored kanboard installation:
When I delet an attachment (also in the browser) the corresponding file in /kanboard/data/files/# is **NOT **going to be deleted!
So the problem is that the "connection" ist lost!
How can I fix this? And still: is this a bug or am I doing something wrong?
Thank you!

In terms of your files not showing up try the following.
cd /var/www/html
sudo chown -R www-data:www-data kanboard/data
this give apache owner rights to the kanboard/data folder which holds your files.
Reference the documentation for Ubuntu 14.04 http://kanboard.net/documentation/ubuntu-installation

@seancarson
Thanks for your answer.
Rights/permissions are not the problem in this case. I even tried chmod 777...
Owner/group of course is www-data for the folder "kanboard" and all subfolders.
Bye the way I'm not using apache but nginx.

FINALLY!!!
I found the problem!
Since windows using backslashes "" and unix-based systems using normal slashes "/" the problem is the path-decleration in the SQL database!
As I said I switched from a windows to a unix-based system. Therefore one has to correct the path-declecation in the SQL database.
Just in case someone has to deal with the same in the future I used this SQL command to substitute "" with "/":
UPDATE files SET path = REPLACE(path,"\","/");
After this everything I working again!


Batch consumer - first message not moved to error queue

Is this a bug report?
(Yes)
Can you also reproduce the problem with the latest version?
(Yes)
Environment

Dotnet version: 6.0
Operating system: WIN
IDE (Visual Studio):

Steps to Reproduce
Create a simple MassTransit project (attached) with the batch consumer that throws on the Consume  method.
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddMassTransit(busRegistreation =>
{
    busRegistreation.AddConsumer<TestConsumer>(typeof(OrderAuditConsumerDefinition));
    busRegistreation.UsingRabbitMq((context, config) =>
    {

        config.Host("localhost", "/", h =>
        {
            h.Username("guest");
            h.Password("guest");
        });

        config.ConfigureEndpoints(context);
    });

});

public class TestConsumer : IConsumer<Batch<ITestMessage>>
    {
        public Task Consume(ConsumeContext<Batch<ITestMessage>> context)
        {
            throw new NotImplementedException();
        }
    }

    class OrderAuditConsumerDefinition :
        ConsumerDefinition<TestConsumer>
    {
        public OrderAuditConsumerDefinition()
        {
            Endpoint(x => x.PrefetchCount = 1000);
        }

        protected override void ConfigureConsumer(IReceiveEndpointConfigurator endpointConfigurator,
            IConsumerConfigurator<TestConsumer> consumerConfigurator)
        {
            consumerConfigurator.Options<BatchOptions>(options => options
                .SetMessageLimit(100)
                .SetTimeLimit(1000)
                .SetConcurrencyLimit(10));
        }
    }

Publish 10 messages to consumer.
Observe _error queue.
Expected: 10 messages should be on _error queue.
Actual: 9 messages are on _error queue. 1-st one is missing.
testBatch.zip

Looks like BatchConsumer<TMessage> creates the BatchConsumeContext with same context as a first message:
return _dispatcher.Push(() => Deliver(messages[0], messages, BatchCompletionMode.Time));
So RecieveContext of the BatchConsumeContext and RecieveContext  of the 1-st message  are the same object.
Then when batch ReceiveContext.IsFaulted of BatchConsumeContext is set to "true" because of exception, the same happens to the 1-st message since it is the same reference.
At line 55 of BatchConsumer, there is a test for :
context.ReceiveContext.IsFaulted
This test fails for 1-st message since its ReceiveContext.IsFaulted is set to true together with BatchConsumer.
As a result, the 1-st message is not thrown.

Yeah, that seems to be the spot. I'll test with removing that line, since I'm not sure why it would swallow the exception from a faulted message since without the exception, the message isn't moved to the error queue. I added a couple of failing unit tests prior to the change, will report back the results.


HBASE-26726 Allow disable of region warmup before graceful move

We have encountered two issues with region warmup before the assignment manager gracefully moves a region from one regionserver to another.
The first instance is HBASE-26722. Part of the failure chain is temporary double assignment like conditions where both the source and destination regionservers think they have exclusive rights to storefile management (as they should) but warmup opens a region before it is closed and then both regionservers take compaction related actions. While this can be remediated with more care to this case, it is unclear if warmup affords significant advantage. The motivation of the original commit in 2015 introducing this feature was avoidance of blockcache misses once region ownership transfer was advertised to clients. Depending on use case and additional default-false schema options (like preload) this could be valuable. Or not.
The second instance is in place upgrade from HBase 1 to HBase 2. In a scenario where regionservers have been replaced by HBase 2 versions, but the master is still HBase 1, the region warmup RPC request fails. This is not particularly harmful but indicates it will not be useful during the transition period.
We think it would be good to allow for warmup before move to be optionally disabled by a site configuration setting. In particular there have been many unrelated changes committed since 2015 and expectations of invariants in the contribution of the warmup-on-move feature have been invalidated. HBASE-26722 may be the only case, or it might not. This is a fairly trivial change.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
2m 10s
Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s
No case conflicting files found.

+1 :green_heart:
hbaseanti
0m  0s
Patch does not have any anti-patterns.

+1 :green_heart:
@author
0m  0s
The patch does not contain any @author tags.

_ branch-2 Compile Tests _

+1 :green_heart:
mvninstall
5m 11s
branch-2 passed

+1 :green_heart:
compile
4m  5s
branch-2 passed

+1 :green_heart:
checkstyle
1m 20s
branch-2 passed

+1 :green_heart:
spotbugs
2m 43s
branch-2 passed

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
4m 17s
the patch passed

+1 :green_heart:
compile
4m  6s
the patch passed

+1 :green_heart:
javac
4m  6s
the patch passed

+1 :green_heart:
checkstyle
1m 25s
the patch passed

+1 :green_heart:
whitespace
0m  0s
The patch has no whitespace issues.

+1 :green_heart:
hadoopcheck
16m 17s
Patch does not cause any errors with Hadoop 3.1.2 3.2.1.

+1 :green_heart:
spotbugs
2m 45s
the patch passed

_ Other Tests _

+1 :green_heart:
asflicense
0m 17s
The patch does not generate ASF License warnings.

54m 21s

Subsystem
Report/Notes

Docker
ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-4086/1/artifact/yetus-general-check/output/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/4086

Optional Tests
dupname asflicense javac spotbugs hadoopcheck hbaseanti checkstyle compile

uname
Linux ec977d68adbf 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/hbase-personality.sh

git revision
branch-2 / 5e01534494

Default Java
AdoptOpenJDK-1.8.0_282-b08

Max. process+thread count
96 (vs. ulimit of 12500)

modules
C: hbase-server U: hbase-server

Console output
https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-4086/1/console

versions
git=2.17.1 maven=3.6.3 spotbugs=4.2.2

Powered by
Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
1m 28s
Docker mode activated.

-0 :warning:
yetus
0m  6s
Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck

_ Prechecks _

_ branch-2 Compile Tests _

+1 :green_heart:
mvninstall
4m 43s
branch-2 passed

+1 :green_heart:
compile
1m 11s
branch-2 passed

+1 :green_heart:
shadedjars
7m 41s
branch has no errors when building our shaded downstream artifacts.

+1 :green_heart:
javadoc
0m 45s
branch-2 passed

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
4m 26s
the patch passed

+1 :green_heart:
compile
1m 12s
the patch passed

+1 :green_heart:
javac
1m 12s
the patch passed

+1 :green_heart:
shadedjars
9m  9s
patch has no errors when building our shaded downstream artifacts.

+1 :green_heart:
javadoc
0m 54s
the patch passed

_ Other Tests _

+1 :green_heart:
unit
165m 44s
hbase-server in the patch passed.

199m 10s

Subsystem
Report/Notes

Docker
ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-4086/1/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/4086

Optional Tests
javac javadoc unit shadedjars compile

uname
Linux 1fed1f3055e1 4.15.0-65-generic #74-Ubuntu SMP Tue Sep 17 17:06:04 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/hbase-personality.sh

git revision
branch-2 / 5e01534494

Default Java
AdoptOpenJDK-11.0.10+9

Test Results
https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-4086/1/testReport/

Max. process+thread count
3737 (vs. ulimit of 12500)

modules
C: hbase-server U: hbase-server

Console output
https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-4086/1/console

versions
git=2.17.1 maven=3.6.3

Powered by
Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
1m 27s
Docker mode activated.

-0 :warning:
yetus
0m  6s
Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck

_ Prechecks _

_ branch-2 Compile Tests _

+1 :green_heart:
mvninstall
4m  6s
branch-2 passed

+1 :green_heart:
compile
1m  1s
branch-2 passed

+1 :green_heart:
shadedjars
6m 29s
branch has no errors when building our shaded downstream artifacts.

+1 :green_heart:
javadoc
0m 40s
branch-2 passed

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
3m 37s
the patch passed

+1 :green_heart:
compile
1m  6s
the patch passed

+1 :green_heart:
javac
1m  6s
the patch passed

+1 :green_heart:
shadedjars
6m 39s
patch has no errors when building our shaded downstream artifacts.

+1 :green_heart:
javadoc
0m 37s
the patch passed

_ Other Tests _

+1 :green_heart:
unit
177m 20s
hbase-server in the patch passed.

205m 12s

Subsystem
Report/Notes

Docker
ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-4086/1/artifact/yetus-jdk8-hadoop2-check/output/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/4086

Optional Tests
javac javadoc unit shadedjars compile

uname
Linux 391bb7b6532d 4.15.0-65-generic #74-Ubuntu SMP Tue Sep 17 17:06:04 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/hbase-personality.sh

git revision
branch-2 / 5e01534494

Default Java
AdoptOpenJDK-1.8.0_282-b08

Test Results
https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-4086/1/testReport/

Max. process+thread count
3229 (vs. ulimit of 12500)

modules
C: hbase-server U: hbase-server

Console output
https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-4086/1/console

versions
git=2.17.1 maven=3.6.3

Powered by
Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.


How to get values from NamedFieldDocument

I am trying to write a web server that serves that serves up search request for an otherwise static website. I am using a fork of Zola that uses tantivy (version 12.0) to create a search index with all of the webpages. The plan is for the server to use actix and yarte templates so that I can serve up as many request per second as (and thus get the most out of small VPS). I am having some issues getting data from the indexes. The same person that made the fork for zola also made a fork of the tantivy-cli to use tantivy version 12. I stole some of the source code for my server.
Here's what I'm working with right now.
fn main() {
    let index_directory = PathBuf::from("/home/doc/Code/Neo-Sites/Wiki/tantivy-index");
    let query = String::from("help");
    let num_hits = 10;
    let index_server = IndexServer::load(&index_directory);
    let serp = index_server.search(query, num_hits).unwrap();
    let resp_json = serde_json::to_string_pretty(&serp.hits).unwrap();
    println!("{}",resp_json)
}

#[derive(Serialize)]
struct Serp {
    q: String,
    num_hits: usize,
    hits: Vec<Hit>,
}

#[derive(Serialize)]
struct Hit {
    score: Score,
    doc: NamedFieldDocument,
    id: u32,
}

struct IndexServer {
    reader: IndexReader,
    query_parser: QueryParser,
    schema: Schema,
}

impl IndexServer {
    fn load(path: &Path) -> IndexServer {
        let index = Index::open_in_dir(path).unwrap();
        index.tokenizers().register(
            "commoncrawl",
            TextAnalyzer::from(SimpleTokenizer)
                .filter(RemoveLongFilter::limit(40))
                .filter(LowerCaser)
                .filter(AlphaNumOnlyFilter)
                .filter(Stemmer::new(Language::English)),
        );
        let schema = index.schema();
        let default_fields: Vec<Field> = schema
            .fields()
            .filter(|&(_, ref field_entry)| match *field_entry.field_type() {
                FieldType::Str(ref text_field_options) => {
                    text_field_options.get_indexing_options().is_some()
                }
                _ => false,
            })
            .map(|(field, _)| field)
            .collect();
        let query_parser =
            QueryParser::new(schema.clone(), default_fields, index.tokenizers().clone());
        let reader = index.reader().unwrap();
        IndexServer {
            reader,
            query_parser,
            schema,
        }
    }

    fn create_hit(&self, score: Score, doc: &Document, doc_address: DocAddress) -> Hit {
        Hit {
            score,
            doc: self.schema.to_named_doc(&doc),
            id: doc_address.doc(),
        }
    }

    fn search(&self, q: String, num_hits: usize) -> tantivy::Result<Serp> {
        let query = self
            .query_parser
            .parse_query(&q)
            .expect("Parsing the query failed");
        let searcher = self.reader.searcher();
        let (top_docs, num_hits) = {
            searcher.search(&query, &(TopDocs::with_limit(num_hits), Count))?
        };
        let hits: Vec<Hit> = {
            top_docs
                .iter()
                .map(|(score, doc_address)| {
                    let doc: Document = searcher.doc(*doc_address).unwrap();
                    self.create_hit(*score, &doc, *doc_address)
                })
                .collect()
        };
        Ok(Serp {
            q,
            num_hits,
            hits,
        })
    }
}

I was printing resp_json to verify that I am able to successfully read the index, but I am at a loss to how I can get data from it. If at all possible I'd like to not use json since I am going to push the strings into a template. I was reading through the documentation and saw that A NamedFieldDocument is a simple representation of a document as a BTreeMap<String, Vec<Value>>, but it doesn't look like you can get any data from it.
For my use case I know if I get at least 1 hit that it will contains a title, description, datetime, and permalink field. What is the best way to get the values of these fields for each result I get back from a search?

I solved it. Sorry for making an issue.

@Th3Whit3Wolf Glad you find your answer and thanks for the super detailed issue!


english version

foreigners really need a translate of this program ;---;

nvm, i found the option which translate the client into english


Can't build using MSYS2/MinGW-w64

I tried using both "MSYS Makefiles" and "Unix Makefiles" generators.
I get the following error:
$ make
Scanning dependencies of target libnpkStatic
[  1%] Building C object libnpk/CMakeFiles/libnpkStatic.dir/src/npk.c.obj
In file included from C:/msys64/home/Guillaume/npk/libnpk/include/npk.h:11:0,
                 from C:/msys64/home/Guillaume/npk/libnpk/src/npk.c:12:
C:/msys64/home/Guillaume/npk/libnpk/include/npk_conf.h:41:15: error: conflicting types for 'mode_t'
   typedef int mode_t;
               ^~~~~~
In file included from C:/msys64/mingw32/i686-w64-mingw32/include/sys/stat.h:26:0,
                 from C:/msys64/home/Guillaume/npk/libnpk/src/npk.c:11:
C:/msys64/mingw32/i686-w64-mingw32/include/sys/types.h:77:17: note: previous declaration of 'mode_t' was here
 typedef _mode_t mode_t;
                 ^~~~~~
make[2]: *** [libnpk/CMakeFiles/libnpkStatic.dir/build.make:64: libnpk/CMakeFiles/libnpkStatic.dir/src/npk.c.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:90: libnpk/CMakeFiles/libnpkStatic.dir/all] Error 2
make: *** [Makefile:139: all] Error 2

Though I use MSYS2 64-bit, I tried to build using the 32-bit version of mingw-w64 (since the 64-bit version gives a different error).
Don't hesitate to ask if you need more info.

Thank you for reporting. It looks like _mode_t is different from int in your platform.
Could you provide me your build environment in detail?

Windows Server 2008 R2 x64 (also happens on Windows 10 x64)
MSYS2 64-bit, with mingw-w64-i686

Got it. Thanks.

Getting the same problems on my end (Same environment as williamjcm) (Win 10 x64), is it possible for you to include a pre compiled binary (looking a Windows one) in the repo as i can't get it going in VS either, and prefer not to mess with VS if i can help it.
Thanks.

mode_t from <sys/types.h> of mingw is:
#ifndef _MODE_T_
#define _MODE_T_
    typedef unsigned short _mode_t;
#ifndef NO_OLDNAMES
    typedef _mode_t mode_t;
#endif
#endif /* Not _MODE_T_ */

So I guess that just to add this checking would resolve the conflict.
#if defined(_WIN32) || defined(_WIN64)
    #define NPK_PLATFORM_WINDOWS
+   #if !defined _MODE_T || defined(NO_OLDNAMES)
        typedef int mode_t
+   #endif

@cometkim I missed this comment. Could you make a PR for this?


website: Command Documentation

Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
konstantin@debian:~$ go version
go version go1.8.3 linux/amd64
What operating system and processor architecture are you using (go env)?
debian
What did you do?
Read documentation on web site https://golang.org/doc/cmd
What did you expect to see?
Not clear organization of "command":

some ...
full command reference

What did you see instead?
Merge 2 list of commands to one solid list, like we see in page https://golang.org/pkg/ for packages and . Preliminary :

go                | Descriptions for go

go commands | Descriptions for go commands
go build | Descriptions for go build
go clean | Descriptions for go clean
...

But I want to clarify some points:

If we open link go on page https://golang.org/doc/cmd, then we will see big good information about go doc. But, If we open on link full command reference https://golang.org/doc/cmd, after that link doc - then we see short information.
On page https://golang.org/doc/cmd link cmd ---> result documentation from X tools. But on page https://golang.org/cmd/ link cmd ---> result looks nice.

Please separate page https://golang.org/cmd/go/ to single small parts.
The reason
Simple organization of documents is clear and easy to translate.

Hello!
May be I can help, if you clarify to understood- how you see the result?

Run the godoc binary locally:
$ godoc -http=:6060

And go to http://localhost:6060/doc/cmd

Yes, thanks. I know about that option.
I mean - I can help to change official /doc/cmd.html.
If you agree, I will follow in according to Contribution Guide.

Go for it.

Could you clarify - May I continue that issue if you close the issue?

@Konstantin8105, you were the one who closed the issue, not us.

All task from that issue are closed. So, we can close.


NLP library dependencies should only be installed if they need to be used

We need to trim down on dependencies. Do we need nltk, sentencepiece, protobuf, etc?

@chakravarthik27 @ArshaanNazir  please definitely remove pyspark, sparknlp, etc


Deploy not show '/bin/bash: line 94: /root/.: Is a directory' in .init_ssh

I already set variable at CI / CD Setting

My Config:

.init_ssh: &init_ssh |
eval $(ssh-agent -s)
echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
mkdir -p ~/.ssh
chmod 700 ~/.ssh
[[ -f /.dockerenv ]] && echo -e "Host \n\tStrictHostKeyChecking no\n\n" > ~/.
.change_file_permissions: &change_file_permissions |
find . -type f -not -path "./vendor/" -exec chmod 664 {} ;
find . -type d -not -path "./vendor/*" -exec chmod 775 {} ;
chmod 777 -R storage;
stages:

deploying

cache:
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
staging:
stage: deploying
image: lorisleiva/laravel-docker:latest
Pseudocode describing roughly what we're trying to achive
script:
- *init_ssh
- *change_file_permissions
- php artisan deploy <IP_ADDRESS> -s=upload

But i got this error. why it go to /root/. where can i find this code on?

Hi there 👋
I have no idea but I think this is more a debug question that you should ask on StackOverflow or other forums.
Please reopen if you find a bug that you can reproduce on Laravel Docker.

Closed
I found the problem here

for the small screen, it shows only
[[ -f /.dockerenv ]] && echo -e "Host \n\tStrictHostKeyChecking no\n\n" > ~/.
the actual one is # after scroll to right

Haha okay no prob. Thanks for sharing.