if I miss FieldType annotation of the first field of csv, it makes exception

Hi~
Thanks for your great CSV4POJO library.
I have a problem of my csv reading code.
For example,
If I have a csv file with this headers.
id,name,age,address
And I have the pojo class with
public class Employee {
@FieldType(dataType = Type.STRING, csvColumnName = "name")
private String name;
@FieldType(dataType = Type.INTEGER, csvColumnName = "age")
private Integer age;
@FieldType(dataType = Type.STRING, csvColumnName = "address")
private String address;
...
}
This code makes below exception.
org.csv4pojoparser.exception.FieldNotMatchedException: CSV header elements does not match with Class fields
at...

Employee class must have all the header fields in the same sequence as the header line of the csv file.
Below is the correct class you can use. I added missing field "id", assuming it as an integer.
public class Employee {
      @FieldType(dataType = Type.INTEGER)
      private Integer id;
      @FieldType(dataType = Type.STRING, csvColumnName = "name")
      private String name;
      @FieldType(dataType = Type.INTEGER, csvColumnName = "age")
      private Integer age;
      @FieldType(dataType = Type.STRING, csvColumnName = "address")
      private String address;
}

Please try this and let me know if you are facing any trouble using this library.

@smilejinho Hope you got the solution above. I am closing this issue. You can create another issue if you are facing any trouble using this library.

Hi~
I thought I can omit some fields in pojo class.
Cause the readme.txt says.
"1. Any field with missing @FieldType annotation will be ignored by CSV4POJO"
So, we can not ignore any csv fields in pojo ?

@smilejinho
Any field with missing @FieldType meaning the field which do not have this annotation will be ignored while reading or writing csv data.
Example:
For csv header:
id,name,age,address
class should have the four annotated fields in sequence.
public class Employee {
      @FieldType(dataType = Type.INTEGER)
      private Integer id;
      @FieldType(dataType = Type.STRING, csvColumnName = "name")
      private String name;
      @FieldType(dataType = Type.INTEGER, csvColumnName = "age")
      private Integer age;
      @FieldType(dataType = Type.STRING, csvColumnName = "address")
      private String address;
}

Any field with missing @FieldType meaning:
public class Employee {
      @FieldType(dataType = Type.INTEGER)
      private Integer id;
      @FieldType(dataType = Type.STRING, csvColumnName = "name")
      private String name;
      @FieldType(dataType = Type.INTEGER, csvColumnName = "age")
      private Integer age;
      private String company;
      @FieldType(dataType = Type.STRING, csvColumnName = "address")
      private String address;
      private Float salary;
}

In the above class  company and salary are not annotated, which means this two fields will be ignored while reading or writing the csv.
All the csv fields must be mapped in the class with annotation and also the class can have extra fields.

Ah,, I was misunderstanding.
Thanks you for your detail explanation.


Let's Encrypt/HTTPS integration?

Hi! Another idea from the mouth of mine.
I'm wondering (as I'm a horrible person) if HTTPS can be integrated with Koel, through a proxy, or whatnot. I've heard of doing proxies behind other programs, but all the terminology just confuses me.
I'd also like to suggest somehow integrating HTTPS easily into Koel (Let's Encrypt or pre-issued SSL certs), so users streaming over the internet can securely log in. Just a suggestion.

As much as I'm a fan of Let's Encrypt and service workers, I don't think this is within Koel's scope. You're free to configure your server however you want. My own Koel settings have Nginx proxying Apache over SSL.

Yo owen. For sure been a long time. Catch me over at gmail traviiis48 if you care anymore.

Btw you can forceSchema to https and include use Illuminate\Support\Facades\URL; in app/Providers/AppServiceProvider.php
And mine also successfully integrate with cloudflare. https://github.com/phanan/koel/blob/master/nginx.conf.example
        if ($http_x_forwarded_proto = "http") {
            return 301 https://$server_name$request_uri;
            # rewrite ^ https://$server_name$request_uri?  permanent;
        }

<?php

namespace App\Providers;

use Illuminate\Support\Facades\Validator;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\URL;

class AppServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        URL::forceSchema("https"); //force HTTPS schema
        // Add some custom validation rules
        Validator::extend('path.valid', function ($attribute, $value, $parameters, $validator) {
            return is_dir($value) && is_readable($value);
        });
    }

    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        //
    }
}

@aa6my I believe it's forceSchem**e** and not forceSchem**a**

@aa6my I believe it's forceScheme and not forceSchema


Install script fails on Windows machines (WSL)

uname -a
Linux Decarb08 <IP_ADDRESS>-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

And uname -m in particular returns x86_64. But the available files have amd64 in that place. Which seems to work for Darwin.

Fixed with https://github.com/thetillhoff/webscan/commit/454fa2ef1ba22698abaad49bcc80ba1b86398e65


validators being run even if error is raised

Given the age of this repo, I'm not sure if it is still valid or supported, but thought I would open a ticket and see. :)
I am using Django 2.2.x and Python 3.7
For some reason, even if I set a validator to skip_on_error it is still being run.
It's as though the if next_item.skip_on_error and self._has_error: never equals True for both.
During my tests, that section gets run in init, but never seems to be run as part of the function it returns.
Any help is appreciated.
Thank you.

Sorry for taking so long to respond :( I will try to look into it this week :)

Meh, looks like in Django now copies the validators out of the self.validators during the Field's initialization :( https://github.com/django/django/blob/92309e53d9921a60e667656d8dd65e59eb5cf81c/django/forms/fields.py#L116
This means that the iterator is only run during initialization and not when the validation actually happens. So, I guess, I can archive this project now 🤣
Sorry 😞


[Refactor] Remove show statement parser / analyzer deprecated code

What type of PR is this：

[ ] bugfix
[ ] feature
[ ] enhancement
[x] refactor
[ ] others

Which issues of this PR fixes ：

Fixes #
Problem Summary(Required) ：

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] I have added user document for my new feature or new function

[FE PR Coverage Check]
:disappointed: fail : 193 / 259 (74.52%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/sql/ast/ShowPluginsStmt.java
0
2
00.00%
[27, 32]

:large_blue_circle:
com/starrocks/sql/ast/ShowTriggersStmt.java
0
2
00.00%
[27, 32]

:large_blue_circle:
com/starrocks/sql/ast/ShowFrontendsStmt.java
0
9
00.00%
[12, 16, 17, 18, 19, 20, 25, 30, 35]

:large_blue_circle:
com/starrocks/sql/analyzer/PrivilegeChecker.java
0
8
00.00%
[1094, 1095, 1097, 1099, 1104, 1105, 1107, 1109]

:large_blue_circle:
com/starrocks/sql/ast/ShowRepositoriesStmt.java
4
11
36.36%
[11, 19, 20, 21, 22, 23, 28]

:large_blue_circle:
com/starrocks/sql/ast/AstVisitor.java
3
6
50.00%
[126, 138, 142]

:large_blue_circle:
com/starrocks/sql/ast/ShowBackupStmt.java
12
19
63.16%
[35, 36, 37, 38, 39, 44, 54]

:large_blue_circle:
com/starrocks/mysql/privilege/Auth.java
2
3
66.67%
[1665]

:large_blue_circle:
com/starrocks/sql/ast/ShowBackendsStmt.java
6
9
66.67%
[24, 29, 34]

:large_blue_circle:
com/starrocks/sql/ast/ShowBrokerStmt.java
8
11
72.73%
[25, 26, 28]

:large_blue_circle:
com/starrocks/sql/parser/AstBuilder.java
48
61
78.69%
[2814, 2819, 2881, 2886, 2891, 2896, 2901, 2929, 2934, 2981, 2982, 2986, 2987]

:large_blue_circle:
com/starrocks/sql/ast/ShowUserStmt.java
6
7
85.71%
[23]

:large_blue_circle:
com/starrocks/sql/ast/ShowIndexStmt.java
23
27
85.19%
[38, 43, 52, 62]

:large_blue_circle:
com/starrocks/sql/ast/ShowOpenTableStmt.java
10
11
90.91%
[27]

:large_blue_circle:
com/starrocks/sql/ast/ShowResourcesStmt.java
10
11
90.91%
[27]

:large_blue_circle:
com/starrocks/sql/ast/ShowDeleteStmt.java
12
13
92.31%
[43]

:large_blue_circle:
com/starrocks/sql/ast/DropResourceStmt.java
6
6
100.00%
[]

:large_blue_circle:
com/starrocks/sql/ast/ShowAuthorStmt.java
8
8
100.00%
[]

:large_blue_circle:
com/starrocks/sql/analyzer/ShowStmtAnalyzer.java
1
1
100.00%
[]

:large_blue_circle:
com/starrocks/sql/ast/ShowWarningStmt.java
2
2
100.00%
[]

:large_blue_circle:
com/starrocks/sql/ast/ShowProcStmt.java
7
7
100.00%
[]

:large_blue_circle:
com/starrocks/sql/ast/CreateResourceStmt.java
14
14
100.00%
[]

:large_blue_circle:
com/starrocks/sql/ast/ShowEnginesStmt.java
11
11
100.00%
[]

run starrocks_fe_unittest

run starrocks_fe_unittest

run starrocks_fe_unittest

[FE PR Coverage Check]
:disappointed: fail : 193 / 259 (74.52%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/sql/ast/ShowPluginsStmt.java
0
2
00.00%
[27, 32]

:large_blue_circle:
com/starrocks/sql/ast/ShowTriggersStmt.java
0
2
00.00%
[27, 32]

:large_blue_circle:
com/starrocks/sql/ast/ShowFrontendsStmt.java
0
9
00.00%
[12, 16, 17, 18, 19, 20, 25, 30, 35]

:large_blue_circle:
com/starrocks/sql/analyzer/PrivilegeChecker.java
0
8
00.00%
[1104, 1105, 1107, 1109, 1114, 1115, 1117, 1119]

:large_blue_circle:
com/starrocks/sql/ast/ShowRepositoriesStmt.java
4
11
36.36%
[11, 19, 20, 21, 22, 23, 28]

:large_blue_circle:
com/starrocks/sql/ast/AstVisitor.java
3
6
50.00%
[127, 139, 143]

:large_blue_circle:
com/starrocks/sql/ast/ShowBackupStmt.java
12
19
63.16%
[35, 36, 37, 38, 39, 44, 54]

:large_blue_circle:
com/starrocks/mysql/privilege/Auth.java
2
3
66.67%
[1665]

:large_blue_circle:
com/starrocks/sql/ast/ShowBackendsStmt.java
6
9
66.67%
[24, 29, 34]

:large_blue_circle:
com/starrocks/sql/ast/ShowBrokerStmt.java
8
11
72.73%
[25, 26, 28]

:large_blue_circle:
com/starrocks/sql/parser/AstBuilder.java
48
61
78.69%
[2823, 2828, 2890, 2895, 2900, 2905, 2910, 2938, 2943, 2990, 2991, 2995, 2996]

:large_blue_circle:
com/starrocks/sql/ast/ShowUserStmt.java
6
7
85.71%
[23]

:large_blue_circle:
com/starrocks/sql/ast/ShowIndexStmt.java
23
27
85.19%
[38, 43, 52, 62]

:large_blue_circle:
com/starrocks/sql/ast/ShowOpenTableStmt.java
10
11
90.91%
[27]

:large_blue_circle:
com/starrocks/sql/ast/ShowResourcesStmt.java
10
11
90.91%
[27]

:large_blue_circle:
com/starrocks/sql/ast/ShowDeleteStmt.java
12
13
92.31%
[43]

:large_blue_circle:
com/starrocks/sql/ast/DropResourceStmt.java
6
6
100.00%
[]

:large_blue_circle:
com/starrocks/sql/ast/ShowAuthorStmt.java
8
8
100.00%
[]

:large_blue_circle:
com/starrocks/sql/analyzer/ShowStmtAnalyzer.java
1
1
100.00%
[]

:large_blue_circle:
com/starrocks/sql/ast/ShowWarningStmt.java
2
2
100.00%
[]

:large_blue_circle:
com/starrocks/sql/ast/ShowProcStmt.java
7
7
100.00%
[]

:large_blue_circle:
com/starrocks/sql/ast/CreateResourceStmt.java
14
14
100.00%
[]

:large_blue_circle:
com/starrocks/sql/ast/ShowEnginesStmt.java
11
11
100.00%
[]

run starrocks_admit_test


A customized welcome email

Describe the feature
I am expecting a welcome email tells me the following information once I deployed the solution.

Console access URL
Email & Temp password
A welcome message, and a getting started guide link

Use Case
Welcome email
Proposed Solution
No response
Other Information
No response
Solution version used
v1.0.0

Duplicated with https://github.com/aws-solutions/centralized-logging-with-opensearch/issues/142


" AVDECC controller command line application" on linux ubuntu

Hi,
I am trying to install 'AVDECC' on Linux ubuntu to recognize AVB endpoint connected.
I downloaded the source code for AVDECC library and jdksavdecc-c git repository. I was able to build it successfully.
But, I couldn't make out how to run the 'command line application' for interfacing the AVDECC controller.
I have connected 2 PCs directly (PC <--> PC). i210 cards are inserted in both PCs.
Run avdecc commandline application on both PCs.
$ sudo ./avdecccmdline
AVDECC Controller version: v0.6.2
1 (lo, address: <<IP_ADDRESS>>)
2 (eth0, address: <<IP_ADDRESS>>)
3 (eth2, address: <<IP_ADDRESS>>)
Enter the interface number (1-3): 3
Enter "help" for a list of valid commands.
$ connect
End Station                            Instream                   Stream Format
End Station                            Outstream               Stream Format
$
$ list
End Station  |  Name                  |  Entity ID         |  Firmware Version  |  MAC
C - End Station Connected.
D - End Station Disconnected.
$
When I try to connect both PCs it is not getting connected. It is listing zero connected end stations.
Will you please help me know the steps for usage the command line application.
Do I need to provide any input arguments?
When I do help connect it is showing as below.
$ help connect
connect [s_e_s] [s_d_i] [d_e_s] [d_d_i] [f]
Connect an instream to an outstream.
Parameters:
s_e_s    : the source End Station (index as int or Entity ID)
s_d_i    : the source descriptor index (type int)
d_e_s    : the destination End Station (index as int or Entity ID)
d_d_i    : the destination descriptor index (type int)
f        : the set of flags (type string)
Valid flags are class_b, fast_connect, saved_state, streaming_wait,
supports_encrypted, encrypted_pdu, and talker_failed.
connect [d_e_s] [d_d_i]
Display all the available outstreams for all End Stations that can connect with
the instreams.
Parameters:
d_e_s    : the destination End Station (index as int or Entity ID)
d_d_i    : the destination descriptor index (type int)
connect
Display all the available instreams for all End Stations.
$
I am not clear about the input arguments. Could you please help me on this.
Thanks in Advance.
Regards,
Ashlin

What 1722.1 capable entities do you have on your network?

I have connected 2 PCs directly  (PC <--> PC).
i210 cards are inserted in both PCs. OpenAVB stack is running on both PCs.
I am trying to implement AVDECC on both PCs.
Could you please let me know is there any other pre-requisite required?
What are the steps I need to follow to establish the AVDECC controller and to list the capable entities.

The OpenAVB stack does not have any 1722.1 support in it at this time, so you won't see anything in the command line application.

The is a branch in OpenAVB where some work has been started on this. See https://github.com/AVnu/Open-AVB/tree/feature-avdecc.

Thank you Andrew. :)


[AGPUSH-2179] Update installation metrics producer

Description:
Installation Metrics producer is outdated
Implementation:

Use Kafka CDI latest (0.0.8)
Move topic out of annotation
Update Installation Metrics producer to only send pushMessageId (variant not used)

Ticket: AGPUSH-2179

@matzew @polinankoleva


ExYos Personality

Description

Added a random message that identifies the originating user.
(May contain sass).
Motivation and Context

I thought that it would be more fun than seeing Courtesy of <Username>
How Has This Been Tested?

I did not :( all of the other tests pass though. Did not feel like testing rando method.
Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] My code follows the code style of this projectRef.
[x] My change requires a change to the documentation.
[ ] I wrote tests for added functionality.
[x] I updated the version.
[x] I updated the changelog with the new functionality.


Slim SlotV2 components are rendered as escaped HTML

closes https://github.com/github/view_component/issues/571
Summary
This PR adds a way to delegate html safety to the component's content instead of always being false. This will fix an issue where temple was escaping the component HTML since it was flagged as unsafe
Benchmarks
No noticeable changes here

Before
After

And here I was adding to_s for several months without wondering 😆 Should have updated more often :)
Thank you very much for fixing this! 😍


Proxy integration

Integrating a inbuild proxy to bypass country restrictions.

As YouTube and the GEMA agreed on the usage of copyright music this feature is not needed any more. In Germany all music is now available without any problems. If you're living in a country that is blocking YouTube completely you should consider using a VPN to bypass this.


Fletcher32 decode out keyword does not work

Minimal, reproducible code sample, a copy-pastable example if possible
# Your code here

Problem description
Explain why the current behavior is a problem, what the expected output/behaviour
is, and why the expected output/behaviour is a better solution.
Version and installation information
Please provide the following:

Value of numcodecs.__version__
Version of Python interpreter
Operating system (Linux/Windows/Mac)
How NumCodecs was installed (e.g., "using pip into virtual environment", or "using conda")

Also, if you think it might be relevant, please provide the output from pip list or
conda list depending on which was used to install NumCodecs.

Maybe I was confused, closing until I can reproduce

It was necessary to rebuild the extensions before testing


comment tag in HTML source code

Environment

Operating System: Windows_NT
Node Version: v18.14.0
Nuxt Version: 3.5.0
Nitro Version: 2.4.0
Package Manager<EMAIL_ADDRESS>Builder:  vite
User Config:  imports, app, modules, plugins, build, vue, vite, svgo, css, content, image, tailwindcss
Runtime Modules<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>
Reproduction
nuxt.com -> ctrl+u -> see the html source code
Describe the bug
Going to see the page sergeant code appears this code at the beginning and end of certain tags. The error shown in the attachment is also present on nuxt.com . I have the same error

Additional context
No response
Logs
No response

This is related with this: https://github.com/nuxt/nuxt/issues/18754#issuecomment-1416683065
It's not an error and there is no significant impact on page speed.

I understand your point of view well, but from my point of view introducing unrequired, superfluous and redundant code may not generate significant effects in the front-end but remains technically and conceptually wrong. Just think of the case where you need to copy that HTML code for "n" reasons.

I understand your point of view well, but from my point of view introducing unrequired, superfluous and redundant code may not generate significant effects in the front-end but remains technically and conceptually wrong. Just think of the case where you need to copy that HTML code for "n" reasons.

Hi @giticon, your concerns regarding the potential issues with introducing unneeded or redundant code are certainly valid. However, the extra HTML comments actually serves a role in Vue's reactivity system. It acts as a placeholder for Vue's reactive Shadow DOM, which in turn allows us to manipulate our components efficiently.
In the context of Vue, what might appear to be superfluous actually aids in improving the performance and reactivity of the application.


Make string map lookups for .Params in sort, index and where case insensitive

https://discourse.gohugo.io/t/sort-by-custom-date-parameter/19150/11

This is fixed.


aws-lambda-developer-guide does not mention consumer arn

AWS Lambda now supports enhanced consumers. When reading https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-api I suppose EventSourceArn also understands the consumer arn, but this is not reflected in aws-lambda-developer-guide

Fixed upon syncing markdown build. Thanks!


Merge RetroSGJacobs master

Setting ref to EventCalendar to call methods (onRef prop)
Ability to set header to upper case (upperCaseHeader prop)
Callback for tapping / swiping to change date (dateChanged prop)
Specify start and end times to show part of a day (start & end props)
Override previous / next button icons by specifying own element (headerIconLeft & headerIconRight props)
Method call to go to a specified date (_goToDate method)
Override event background color by specifying the color attribute in the event object

For now I am including everything as a single PR. If necessary I can looking at splitting it up where I can, although I am unable to do that for the moment (at least until I have time on the weekend).

Thanks for the contribution @RetroSGJacobs, I'll look at this as soon as I can over the next couple of days!

Great, glad to help! Yeah, my IDE wasn't liking the tabbing and I didn't bother to sort it out properly. My bad.


[Feature Request]: add codeql workflow

Is your feature request related to a problem? Please describe.
The repository contains code in javascript, it does not have workflow for code scanning.
Describe the solution you'd like
I want to add the codeql workflow to automate security checks. CodeQL is the code analysis engine developed by GitHub to identify vulnerabilities in code. It will analyze your code and display the results as code scanning alerts. It will be enabled on every push, commit and pull request using GitHub actions.
Record

[x] I agree to follow this project's Code of Conduct
[x] I'm a GSSoC'23 contributor
[x] I want to work on this issue

Hey @harmeetsingh11! 🙂
It seems like you are not following proper guidelines !! 👀
Read documentation properly !!🙏
If you have any queries reach out to us on Discord🕹 .

Hey @harmeetsingh11 !
Thank you for raising an issue 💗
You can self assign the issue by commenting /assign in comment 😀
Make sure you follow CODE OF CONDUCT and CONTRIBUTING GUIDELINES 🚀
Don’t Forget to ⭐ our GameZone🎮
Make sure you join our Discord🕹

Hey @harmeetsingh11 ! Thank you so much for your raising the issue💗
It’s all yours, you can come anytime again and make some contributions! 🚀
Alone, we can do little, but together we can do so much! 😇

/assign

@kunjgit please reopen this issue and please review the PR to this issue.


T.265: Question to to contributors here

I'm close to finish a little web application, which is designed to run client-only, so no internet connectivity required.
This app completes my already published proof of concept T.265 REST API  and thus forms the basis of a turnkey solution, so to speak.  All you need is a T.265, a host for the T.265 (laptop, miniPC, Raspberry PI), my Python scripts and a browser for the webapp. Although still far from going productive, the maturity level of the overall solution is not bad. First of all it allows to test the T.265 and especially its firmware and SDK very fast and to evaluate it in different environments w/o overwhelming pre-requirements. At the moment, I'm still completely undecided how I'm going to "bring it to the market"; it is a spare time activity. Right now I'm only interested in opinions.
In particular, the webapp in cooperation with the Python scripts described above makes the following things possible:

Geo-referencing a floor plan and defining a geo-graphical start reference point on a map or floor plan, from which the initial mapping of a site has to be done. Following runs can then rely on the stored reference point and its meaning in real real world,
Remote control of a T.265 via the REST API described above,
Real-time display of WGS84 or X/Y/Z coordinates on the map or the floor plan (optional).

If you agree, I would (before the release) produce a small video and link it here as well as provide more details. If not, let me know too, then this post will disappear from the issues ASAP :)

Everyone are welcomed to share and discuss ideas
I'll label the issue to make sure it's not closed prematurely

@dorodnic Cool. Thanks for this. So then - will produce the little video tomorrow :)

OK, please find the videos here. I'm a bit tired today, need a bit sleep. No time anymore for explanations.
But I hope you will enjoy the videos and will not be overwhelmed be the mass of information.
The videos are not fully published yet, maybe some review is required. But they have all been recorded just with one take.
Mall Of Berlin I
The video shows the definition of a "geo-reference" on a map and the remote control of the T.265 from a browser using the T.265 REST API
Mall Of Berlin II
Pretty much the same as above, but it now shows, how to geo-reference your floor plan so that it can be used as canvas for the coordinate display.
Home
A little test in the first floor of my home, using a hand drawn but pretty good scaled floor plan. About 15 by 5 m area covered. Coordinates anonymized.
I hope you find it informative and not too boring...
Let me know, what you think.

Could you by any chance also add real path to see the drift?

The drift is really not remarkable. It is most the time less than +- 50cm, if not at the point. Please note: All the videos have been created with the first or at maximum second run on a map.
The accuracy indoors is pretty good, but once I have published the web app everybody can judge by himself.

Hi @neilyoung . Thanks for sharing your work. Did you face any random crashes while using T265 ? I am operating in a corridor sort of an area so it can be a bit offsetting for the tracker beause of less features and lighting but T265 crashes sometimes because of frame arrival timeout. Please share your experience if you had a simiar scenario. Thanks

@zainmehdi Well, you know about my main concerns (https://github.com/IntelRealSense/librealsense/issues/5756), a lot of them are still present, even with the latest version.
In my environments I don't have that "frame arrival timeouts" very often, but if it appears, my camera  recovers from that, if I move to more featured places. The crash while saving a map is unfortunately more annoying.
If I would be asked today, if the T.265 is a production ready device for me, then I would have to deny it. It might be sufficient for demoing and prototyping, but  the stability of the firmware/SDK is not sufficient for productive usage, which needs absolute reliability or at least no crashes. This is not the case in March 2020.
Anyway, the potential of the camera is pretty high and I still love it. I'm convinced the team and community will be able to fix the most horrible issues finally, even though I sometimes wish, it would go faster.

@neilyoung Thanks alot for replying. I wish the same. And hats off for your application. I will be looking forward to checking it out.

@zainmehdi Thanks. I expect to be able to publish it during this week. I can only work on this in my spare time.

am operating in a corridor sort of an area so it can be a bit offsetting for the tracker because of fewer features and lighting but T265 crashes sometimes because of frame arrival timeout.

It crashes very consistently in low lighting conditions. The easiest way to reproduce is to put camera in black box or make it face dark wall in dim light conditions and it won't even start.

I'm having published it. Maybe you find it useful.
https://neilyoung.serveblog.net/

I'm having provided an update to the web app part. There is now a new geo-reference option, which allows you to drop the floor plan where you like, in case you are not interested in real GPS (WGS84) coordinates. In order to restore the real world dimensions you would have to provide width and height of a known structure on your floor plan.
Find version 0.3.1 here: https://neilyoung.serveblog.net
There is also a little 30 secs video, which describes the new feature:
https://youtu.be/4XoHloDS8ag

Hi all. The great discussion here did encourage me to prepare some enhancements in the upcoming v.0.4.0. :) The solution is now able to record video along with poses and navigate using a recorded ROSBAG.
The video here shows what is about to come soon.
https://youtu.be/ogALlpxyApU

I have bundled the web app with the Python scripts. More on this here https://github.com/IntelRealSense/librealsense/issues/6063#issuecomment-600548083

Deployed the stuff to a Raspberry Pi driven Robot car. A video: https://youtu.be/riBsZoSrcpI

@neilyoung one step closer to DIY ROOMBA ... Wife will be happy ;-)

@patrickpoirier51 Right :) Not my business, but this is the idea... Thanks

BTW we had a great presentation from @radfordi at the ArduPilot 2020 conference:
https://youtu.be/nO_y6BRBBOg?t=3095
I want to thank him for this very interesting presentation... and for answering my "tricky" question on the startup issue ;-)

Thanks for sharing.

...and nice to meet Jim in person. He was not too chatty with me the last weeks :) ....flies away....


Setup swagger ui for api documentation

setup swaggerui/openapi for api documentation, so that frontend developers will be able to know each an every api contract easily
references: https://docs.nestjs.com/openapi/introduction

It will be a good leap to start with open API and swagger.

Do you want to work on it?

yes i can work on it

Great then, do you also want to work on readme, or I assign it to someone else if you are more busy.

yes i can work on both of them


Attempted to transition from state RESPONDER_INACTIVE_PRESS_IN to RESPONDER_ACTIVE_LONG_PRESS_IN, which is not supported.

Having this issue #5823 even that you're applying the solution
import Ionicons from 'react-native-vector-icons/Ionicons'

<Ionicons.Button
    name="ios-arrow-back"
    size={50}
    color="..."
    underlayColor="..."
    backgroundColor="..."
    onPress={Actions.pop}
/>

Experiencing the exact same thing using react-native-material-design which includes react-native-vector-icons/Ionicons

Hi, this is a bug in the react native core. After reading though the threads it seems to be an issue with the clocks on device/computer getting out of sync.
I'm going to close it for now, but if you have a workaround you can reopen this.

How can I  avoid it? thx

even if this has been closed I just wanted to attach a screenshot. RN 0.34, RN-vector-icons 2.1.0
I never saw this error in month of development... and today I haven't really changed any code. I am on an Android simulator so I believe the clock out of sync could be an issue here.

+1

+1

+1

+1

+1

RN 0.46.2 and still present ... 😢

In RN42.3 It used to work when you add  inside your TouchableHighlight; however, it is no longer working on RN43.3 above.

+1

+1

+1
Android 8.0
Chrome Remote Debugging on

+1

+1

+1
"react": "16.8.3",
"react-native": "0.59.10",

how is this closed without a solution? is there a separate issue that this references to track progress?

+1
"react": "16.8.3",
"react-native": "0.59.2

",


SSL Error

Hello. I got this error when I tried to generate a new SSL certificate
Error: Command failed: /usr/bin/certbot certonly --non-interactive --config "/etc/letsencrypt.ini" --cert-name "npm-39" --agree-tos --email<EMAIL_ADDRESS>--preferred-challenges "dns,http" --domains "go.arialclient.com"
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for go.arialclient.com
Using the webroot path /data/letsencrypt-acme-challenge for all unmatched domains.
Waiting for verification...
Challenge failed for domain go.arialclient.com
http-01 challenge for go.arialclient.com
Cleaning up challenges
Some challenges have failed.

    at ChildProcess.exithandler (child_process.js:308:12)
    at ChildProcess.emit (events.js:314:20)
    at maybeClose (internal/child_process.js:1051:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)

How do I fix this? Or what failed exactly? I contacted Let's encrypt and they said its proxy manager's fault.
I changed some permissions for folders on my Server. Maybe its cause of that? Also if so, how can I grant the docker container of NPM root access?

@stavros-k, could you try the latest image to see if it helps ?  If it doesn't, can you try to remove /config/.local from the container and restart it ?

Unfortunately still having this problem :/ Here is the detailed steps i did.

Updated to latest image
Docker logs had no errors
run certbot renew on console, got parsing errors (cloudflare dns)
rm -r /config/.local
restart container
again logs had no errors
run certbot renew on console, got parsing errors (cloudflare dns)
run pip3 install certbot-dns-cloudflare
run certbot renew without errors

If instead of doing pip3 install certbot-dns-cloudflare you do pip3 install certbot-dns-cloudflare==1.8.0, is it still working ?

If instead of doing pip3 install certbot-dns-cloudflare you do pip3 install certbot-dns-cloudflare==1.8.0, is it still working ?
You need to re-create the container to remove the previous certbot-dns-cloudflare installation.

Re created container, (tested certbot renew and failed), did pip3 install certbot-dns-cloudflare==1.8.0 and certbot renew again. It works.

Thanks for this test.
So I'm not sure if we are looking at the right thing.  Invoking cerbot from the shell is not the same thing as when it is invoked by Nginx Proxy Manager.
Can you try to renew the cert from NPM ?  Once you get the failure, look at /config/log/letsencrypt/letsencrypt.log for more details.

Re-created container, from NPM i didn't got any errors, and docker logs show
The following certificates are not due for renewal yet:
/etc/letsencrypt/live/npm-94/fullchain.pem expires on 2021-08-13 (skipped)
No renewals were attempted`

So i guess it parses ok. But i can confirm 100% once i have a cert that needs renewal

Hi,
I am trying to create a new certificate for a new subdomain and I am also having the same issue. It seems that Nginx Proxy Manager can't root the request to the right folder, or can't create the file (I am guessing).
 But i can confirm 100% once i have a cert that needs renewal

Even automatic renewals have failed.  After installing via pip, and restarting docker, automatic still failed.
[6/21/2021] [6:15:38 PM] [SSL ] › ✖ error Error: Command failed: /opt/certbot/bin/certbot renew --non-interactive --quiet --config "/etc/letsencrypt.ini" --preferred-challenges "dns,http" --disable-hook-validation

Challenge failed for domain collabora.domain.me

Failed to renew certificate npm-76 with error: Some challenges have failed.

Challenge failed for domain cctv.domain.me

Failed to renew certificate npm-87 with error: Some challenges have failed.

Challenge failed for domain test.domain.me

Failed to renew certificate npm-89 with error: Some challenges have failed.

Challenge failed for domain vpn.domain.me

Failed to renew certificate npm-91 with error: Some challenges have failed.

The following renewals failed:

/etc/letsencrypt/live/npm-76/fullchain.pem (failure)
/etc/letsencrypt/live/npm-87/fullchain.pem (failure)
/etc/letsencrypt/live/npm-89/fullchain.pem (failure)
/etc/letsencrypt/live/npm-91/fullchain.pem (failure)
4 renew failure(s), 0 parse failure(s)

at ChildProcess.exithandler (child_process.js:308:12)
at ChildProcess.emit (events.js:314:20)
at maybeClose (internal/child_process.js:1022:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)

after pip with certbot renew it works.

Tried the pip certbot install and still getting an error, all be it a different one regarding permissions to write to the log.
``
Error: Command failed: /opt/certbot/bin/certbot certonly --non-interactive --config "/etc/letsencrypt.ini" --cert-name "npm-24" --agree-tos --email<EMAIL_ADDRESS>--preferred-challenges "dns,http" --domains "doggycam.dyndns.com"
The following error was encountered:
[Errno 13] Permission denied: '/var/log/letsencrypt/letsencrypt.log'
Either run as root, or set --config-dir, --work-dir, and --logs-dir to writeable paths.
at ChildProcess.exithandler (child_process.js:308:12)
at ChildProcess.emit (events.js:314:20)
at maybeClose (internal/child_process.js:1022:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)

``

@StevenJonSmith, are you sure your DNS name is properly configured ?  This is what I see in the logs:
Detail: DNS problem: query timed out looking up A for doggycam.dyndns.com

@stavros-k, do you have the logs when the automatic renew attempted by NPM was done ?

@stavros-k, do you have the logs when the automatic renew attempted by NPM was done ?

Docker logs is what i posted above, if you need logs from the container itself, which logs are you interested into?
If they are not auto deleted, I should have them

Sorry, I was talking about /var/log/letsencrypt/letsencrypt.log in the container.  The file is rotated, so yes you should still have it.

Relevant errors:
2021-06-21 12:24:52,243:ERROR:certbot._internal.renewal:All renewals failed.
Domain: collabora.DOMAIN.me
Type:   connection
Detail: Fetching http://collabora.DOMAIN.me/.well-known/acme-challenge/7yITh-dAFelimmfYj_awGx2mTZ4n08Wv43K4YjS5k3E: Timeout during connect (likely firewall problem)

To fix these errors, please make sure that your domain name was entered correctly and the DNS A/AAAA record(s) for that domain contain(s) the right IP address. Additionally, please check that your computer has a publicly routable IP address and that no firewalls are preventing the server from communicating with the client. If you're using the webroot plugin, you should also verify that you are serving files from the webroot path you provided.
2021-06-21 11:25:22,794:DEBUG:certbot._internal.error_handler:Encountered exception:
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/certbot/_internal/auth_handler.py", line 91, in handle_authorizations
    self._poll_authorizations(authzrs, max_retries, best_effort)
  File "/usr/lib/python3.8/site-packages/certbot/_internal/auth_handler.py", line 179, in _poll_authorizations
    raise errors.AuthorizationError('Some challenges have failed.')
certbot.errors.AuthorizationError: Some challenges have failed.

2021-06-21 11:25:22,794:DEBUG:certbot._internal.error_handler:Calling registered functions
2021-06-21 11:25:22,795:INFO:certbot._internal.auth_handler:Cleaning up challenges
2021-06-21 11:25:22,795:DEBUG:certbot._internal.plugins.webroot:Removing /data/letsencrypt-acme-challenge/.well-known/acme-challenge/7yITh-dAFelimmfYj_awGx2mTZ4n08Wv43K4YjS5k3E
2021-06-21 11:25:22,796:DEBUG:certbot._internal.plugins.webroot:All challenges cleaned up
2021-06-21 11:25:22,797:ERROR:certbot._internal.renewal:Failed to renew certificate npm-76 with error: Some challenges have failed.
2021-06-21 11:25:22,797:DEBUG:certbot._internal.renewal:Traceback was:
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/certbot/_internal/renewal.py", line 481, in handle_renewal_request
    main.renew_cert(lineage_config, plugins, renewal_candidate)
  File "/usr/lib/python3.8/site-packages/certbot/_internal/main.py", line 1245, in renew_cert
    renewed_lineage = _get_and_save_cert(le_client, config, lineage=lineage)
  File "/usr/lib/python3.8/site-packages/certbot/_internal/main.py", line 129, in _get_and_save_cert
    renewal.renew_cert(config, domains, le_client, lineage)
  File "/usr/lib/python3.8/site-packages/certbot/_internal/renewal.py", line 341, in renew_cert
    new_cert, new_chain, new_key, _ = le_client.obtain_certificate(domains, new_key)
  File "/usr/lib/python3.8/site-packages/certbot/_internal/client.py", line 374, in obtain_certificate
    orderr = self._get_order_and_authorizations(csr.data, self.config.allow_subset_of_names)
  File "/usr/lib/python3.8/site-packages/certbot/_internal/client.py", line 424, in _get_order_and_authorizations
    authzr = self.auth_handler.handle_authorizations(orderr, best_effort)
  File "/usr/lib/python3.8/site-packages/certbot/_internal/auth_handler.py", line 91, in handle_authorizations
    self._poll_authorizations(authzrs, max_retries, best_effort)
  File "/usr/lib/python3.8/site-packages/certbot/_internal/auth_handler.py", line 179, in _poll_authorizations
    raise errors.AuthorizationError('Some challenges have failed.')
certbot.errors.AuthorizationError: Some challenges have failed.

The log files either they would have NO tracebacks, or they would have both of the above. With the 1st only appear on the end of the file once, and the 2nd many times in the file.

Detail: Fetching http://collabora.DOMAIN.me/.well-known/acme-challenge/7yITh-dAFelimmfYj_awGx2mTZ4n08Wv43K4YjS5k3E: Timeout during connect (likely firewall problem)

Are the failed certificates associated to a DNS provided ?

Yes, all are with cloudflare dns

Then I'm not sure that we are looking at the right thing.  The provided logs are showing that HTTP challenge has failed...

Yea, that puzzled me too, i have NO http challenges defined. And all works after installing the certbot-dns-cloudflare package.
I don't "really" because it's only 1 time per 3 months.


fallback to PoW if cannot recertify for poet

Motivation
Fallback to PoW if cannot recertify after poet registration failed with 401 (unauthorized).
Description
Test Plan
added a test covering this scenario
TODO

[x] Explain motivation or link existing issue(s)
[x] Test changes and document test plan
[ ] Update documentation as needed
[ ] Update changelog as needed

bors merge


error on execute

"invalid or corrupt jarfile Alchemistry.Image.Generator-1.0.0.jar"
Responds the same in and out of administrator mode, all directories with valid files, and in legacy console mode

figured out what happened, the jar wasnt fully downloaded.


[NEW] DB modeling

Member
{
  id: uuid,
  member_no: number,
  auth_token: string,
  name: string,
  role_level: number
}

role_level:

0: blog master
1: blog admin (may not be implemented)
2~8: reserved
9: ordinary

Post
{
  id: uuid,
  post_no: number,
  ref_category_no: number,
  ref_tag_no_list: Array<number>,
  ref_series_no: number,
  title: string,
  content: string,
  thumbnail_content: string,
  created_date: Date,
  updated_record_list: Array<{post_id: uuid, updated_date: Date}>,
  is_last_updated_version: boolean,
  comment_count: integer
}

Batch job for synchronizing post.comment_count and count(comment) is necessary.
Category
{
  id: uuid,
  category_no: number,
  ref_parent_category_no: number,
  name: string
}

Category has a tree structure.
Number of categories wouldn't be big enough (less than 1000), so direction of reference is single-directed.

Tag
{
  id: uuid,
  tag_no: number,
  name: string,
  ref_post_no_list: Array<number>
}

Series
{
  id: uuid,
  series_no: number,
  name: string
}

Comment
{
  id: uuid,
  comment_no: number,
  ref_post_no: number,
  ref_comment_no: number,
  ref_member_no: number,
  is_post_author: boolean,
  content: string
}

comment_no: Comments in each post has its own numbering system.
ref_comment_no:

If comment B is a reply for comment A, ref_comment_no of B is comment_no of A.
If comment A doesn't refer any other comments, ref_comment_no of A is null.

Indexing might be helpful for performance.db.collection.createIndex({ ref_post_no: 1, comment_no: -1 })
db.collection.find({ref_post_no: 111, ref_comment_no: null}).sort({comment_no: -1})
db.collection.createIndex({ ref_comment_no: -1, comment_no: -1 })
db.collection.find({ref_comment_no: 222}).sort({comment_no: -1})

Find out how to test if indexing is working well.

Since I decided to use **_no field as a unique field, there is no need to use uuid for _id field.
To prepare DBMS migration (i.e. MongoDB -> PostgreSQL), just ignore _id and using **_no everywhere would be enough, while MongoDB DBMS will be using _id with default value ObjectId internally.

I've reached to the conclusion that I don't need to think about DBMS migration in this time. If a unique field exists as a primary key, then anyway data can be migrated to another DBMS.
So I decided not to use **_no fields except of post_no and category_no, which will be contained in URL.


storage/file#getSignedUrl example for uploading to signed URL fails

I cannot upload to signed URLs generated by storage/file#getSignedUrl. I've even tried implementing the official example from the documentation and it fails:
let bucket = gcs.bucket('aBucket')
let cloudFile = bucket.file('aFile')
cloudFile.getSignedUrl({
  action: 'write',
  expires: `03-17-2025`,
}, (error, signedUrl) => {
  if (error == null) {
    // The file is now available to be written to.
    let request = require('request')
    var writeStream = request.post(signedUrl);
    writeStream.end('New data');
    writeStream.on('complete', function(resp) {
      if (resp.statusCode !== 200) {
        console.log('Writing to file failed:', resp.statusCode)
      } else {
        // Confirm the new content was saved.
        cloudFile.download(function(err, fileContents) {
          if (err != null) {
            console.log(`Download failed:`, err.message)
          } else {
            console.log('Contents:', fileContents.toString());
          }
        });
      }
    });
  }
})

The status code from POSTing to the file is 400, with the message <?xml version='1.0' encoding='UTF-8'?><Error>InvalidPolicyDocument<Message>The content of the form does not meet the conditions specified in the policy document.</Message>Missing policy</Error>%.

Bug caught, PR sent: #1313! When action is write, we generate a signed url expecting a PUT request.

Note: The HTTP verb POST is not supported in signed URL strings, except as noted above. You can use POST to define signed policy documents, which specify the characteristics of objects that can be uploaded to a bucket. Learn more in the POST Object documentation
- https://cloud.google.com/storage/docs/access-control/signed-urls

Thanks @stephenplusplus! PUT doesn't quite work for me either, although it fails in a different way. If I try curl -X put -d "{}" $SIGNED_URL it fails like this:
<?xml version='1.0' encoding='UTF-8'?><Error>AccessDenied<Message>Access denied.</Message>Anonymous callers do not have storage.objects.create access to bucket arve.muzhack.com.</Error>

If I try to PUT via XMLHttpRequest, it fails differently:
let request = new XMLHttpRequest()
request.onreadystatechange = () => {
  if (request.readyState === XMLHttpRequest.DONE) {
    if (request.status === 200) {
      console.log('Uploaded successfully')
    } else {
      console.log(`Upload was not successful: ${request.status}`)
    }
  }
}

request.open('PUT', signedUrl, true)
request.send(file)

Resulting in the following response:
<?xml version='1.0' encoding='UTF-8'?><Error>SignatureDoesNotMatch<Message>The request signature we calculated does not match the signature you provided. Check your Google secret key and signing method.</Message><StringToSign>PUT

image/png
1463260982
/arve.muzhack.com/u%2Faknudsen%2Ftest%2Fpictures%2FIMG_20160511_132145.jpg</StringToSign></Error>

I figured out that the reason that XMLHttpRequest fails is that it sends a content-type header, f.ex. image/png, which the call to getSignedUrl fails to match by default. I worked around it by sending a fixed value for content-type, which I also configured getSignedUrl with.

@stephenplusplus I have another question though. How do I ensure that a file created through uploading via a signed URL is publicly readable?

I believe you can use the extension headers option: https://googlecloudplatform.github.io/gcloud-node/#/docs/v0.33.0/storage%2Ffile?method=getSignedUrl
See https://cloud.google.com/storage/docs/access-control/signed-urls#about-canonical-extension-headers looks like maybe "x-goog-acl: public"

@stephenplusplus How do I set extensionHeaders properly? I've tried, but the signature verification fails.

@stephenplusplus I think there is a bug when supplying extensionHeaders actually. You have to add a \n at the end for it to work, due to the implementation of getSignedUrl:
var sign = crypto.createSign('RSA-SHA256');
sign.update([
  options.action,
  (options.contentMd5 || ''),
  (options.contentType || ''),
  expiresInSeconds,
  (options.extensionHeaders || '') + options.resource
].join('\n'));
var signature = sign.sign(credentials.private_key, 'base64');

You'll see that options.extensionHeaders is prepended to options.resource. I don't see any good reason for this, and it means in practice a newline has to be appended to extensionHeaders in order to match the incoming request.

@stephenplusplus I created an issue on the matter, with accompanying PR.


Investigate and address performance regression on async-integration branch.

Like-for-like comparisons of performance with the miniapp default networks between devel/async-integration and master indicate that the asynchronous integration code is barely affected by event delivery, but wears a significant overhead in time stepping.
Median time-stepping times over five runs on greina7 (P100, 8 cores without hyperthreading):

time (s)
branch
device
t
g
n

9.62
devel
cpu
100
1
1000

95.67
devel
cpu
100
1
10000

9.30
devel
cpu
100
4
1000

0.69
devel
gpu
15
1000
1000

1.44
devel
gpu
30
1000
1000

6.22
devel
gpu
100
1000
1000

23.45
devel
gpu
100
10000
10000

7.89
master
cpu
100
1
1000

78.32
master
cpu
100
1
10000

12.10
master
cpu
100
4
1000

0.56
master
gpu
15
1000
1000

26.75
master
gpu
30
1000
1000

Note that in these models, stopping at t = 15 avoids any event delivery. Times for the master branch gpu version with the default t = 100 took too long to be worth benchmarking.
Based on these figures, without event delivery, integration is taking approximately 22% longer on both CPU and GPU in the development branch:

device
t
g
n
master (s)
devel (s)
overhead

cpu
100
1
1000
7.89
9.62
21.9%

gpu
15
1000
1000
0.56
0.69
23.2%

This overhead is likely larger than it need be: profile the code and reduce this overhead.

The primary culprit is the added time in the nrn_state() function on simple exponential synapses: the indirect look-ups for dt calculation adds roughly 40% work to the function.
@bcumming proposes pre-computing cell dt values per compartment; this should remove at least two thirds of the added overhead in time-stepping.

Update: implemented separate dt vector in (vide devel/async-integration-dt-vec branch at halfflat/nestmc-proto).
Performance appears to be 1-2% slower. Investigation continues.

It is 1-2% on top of the 21-23% slowdown?

Yup, it is moar slower.

Updated comparison with the separate dt version:

device
t
g
n
master (s)
devel (s)
devel-dt-vector (s)
old overhead
new overhead

cpu
100
1
1000
7.89
9.62
8.96
21.9%
13.6%

gpu
15
1000
1000
0.56
0.69
0.72
23.2%
28.6%

The GPU is more sensitive to additional memory transactions because we operate in bandwidth limited mode on the GPU, whereas we optimize for cache on the CPU?

I think that may have a lot to do with it. But it needs more of stick poked at it to be sure.

If these different operation modes persist in having an optimization on one device penalize performance on another, we might need to consider splitting the device-specific implementations further, possibly to the point of having unicellular groups for 'multicore' with lower-overhead event handling.

Despite the launch time of the first kernel in the integration step taking a surprisingly long time, the fundamental problem is that these kernels cannot be stacked up in advance owing to the explicit host-side loop termination check that happens each step.
Only doing the minimum time test when we have to, and only checking the times in the placeholder sampler code when there is a chance that a sampler could be triggered, reduces the overhead significantly.

device
t
g
n
master (s)
devel (s)
devel-dt-vector-reduce-checks (s)
old overhead
new overhead

cpu
100
1
1000
7.89
9.62
8.85
21.9%
12.2%

gpu
15
1000
1000
0.56
0.69
0.62
23.2%
10.7%

Addressed by #290 but we should consider specializations for synchronous (i.e. one cell or gap junction-connected cell group) and asynchronous (wide, GPU cell groups).


Add sigstore-java to the test set

Add sigstore-java to the custom client tests:

Use the new --staging-with-tuf-url-override flag
The CLI used here is not a real application but a testing tool so we need to build it from source: try to checkout the latest release tag to do that

For context, I'm not 100% convinced root-signing* should test all possible clients in the future... but for the production tuf-on-ci migration a test matrix as large as possible seems like good idea.

test run https://github.com/jku/root-signing-staging/actions/runs/9300975021/job/25598173281


Fixed issues of 2352 and 2245

Description (required)
Fixes #{GitHub issue number} {Github issue title}
What changes did you make and why?
Tests performed (required)
Tested {build variant, e.g. ProdDebug} on {name of device or emulator} with API level {API level}.
Screenshots showing what changed (optional - for UI changes)
Need help? See https://support.google.com/android/answer/9075928

Note: Please ensure that you have read CONTRIBUTING.md if this is your first pull request.

Codecov Report

Merging #2451 into master will decrease coverage by <.01%.
The diff coverage is 0%.

@@            Coverage Diff            @@
##           master   #2451      +/-   ##
=========================================
- Coverage    5.81%   5.81%   -0.01%
=========================================
  Files         257     257
  Lines       12210   12212       +2
  Branches     1097    1098       +1
=========================================
  Hits          710     710
- Misses      11442   11444       +2
  Partials       58      58

Impacted Files
Coverage Δ

...ava/fr/free/nrw/commons/nearby/NearbyFragment.java
0% <0%> (ø)
:arrow_up:

...r/free/nrw/commons/contributions/MainActivity.java
0% <0%> (ø)
:arrow_up:

.../fr/free/nrw/commons/nearby/NearbyMapFragment.java
0% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

Closing in favour of #2454 and #2301


rbd: fix broken Image.Copy() and add an exhaustive test for it

The arguments passed to Copy() would normally be pointers, just like it
is done with other similar functions. This never worked correctly, as
the arguments were not validated correctly (not recognized) and the
error "Must specify either destination pool or destination image" always
got returned.
Modifying Image.Copy() into something usable would result in a complete
rewrite. Instead of a single Image.Copy() function that tries to cover
rbd_copy() and rbd_copy2(), provide Image.Copy() and Image.Copy2() so
that the API matches the librbd.so interface.

Rebased on top of #130, please merge that one before this PR.

Generally LGTM. I'll give a final pass over this when we have the parent PRs merged.

This now needs to be rebased on #124 as that PR moves rbd_test.go into the rbd package.


Discuss: Auto-detection discussion and it's difficulties

If js and yaml included both, js code is generally detected as yaml.
Examples below are all detected as yaml.
// Calculate distance between two points
var result = calcDistance({
    from: {
        x: 12,
        y: -5
    },
    to: {
        x: 4,
        y: 2
    }
});
// log(result);

var options = {
    opt1: 1,
    opt2: 2,
    opt3: 3
};
mylib.someFunc(options, function (err, result) {
    console.log(err || result);
});
// result:
[
  {
    from: "some name",
    to: "some other name",
    details: {
      prop1: 123,
      text: "some text"
    },
    prop: undefined,
    timestamp:<PHONE_NUMBER>380
  }
]

Is { legal in YAML outside of strings?

@onury Please provide a reproducible example or https://jsfiddle.net of this issue.  I tried to reproduce it just now and I can't get yaml to flag for those samples.  dts does seem eager to grab them, but that would be a slightly different issue than the one you're describing here. :)

@egor-rogov  @marcoscaceres
Can we come up with a template response for requests like this (that after some investigation) prove truly impossible to fix?  I've looked into a few now and my response in usually something along these lines of:

Highlight.js does not contain a FULL syntax/grammar parser for every languages.  It only makes a "best-guess" effort to determine the type of language.  If the sample size is large enough it does a can do a pretty great job for many languages.  However, If the sample size is small and bears a resemblance to a LOT of different languages then this can become an almost impossible problem.

There are likely some languages combos where we could carefully craft samples so that EVEN A HUMAN familiar with both couldn't tell one language from another.  So given that, it's going to be impossible for us to get it right some of the time.

If you have any specific suggestions for improving the detection and preventing false positives we're all ears and would love PRs (that don't break any of the tests- they are a very interconnected web).

Obviously I'm not suggesting to just ignore any response... if someone has time they should take a look and see if there is a larger problem... but in this case it's just that key: value is so common a concept.

If I lower the relevance of dts to 0 then properties starts claiming them
If I lower properties then yaml starts grabbing it again

We should probably have 0 relevance for all key value pair type thingies, but that would no doubt break a lot of the auto detection.
Thoughts?

It's possible a more liberal use of illegal could help with some of this, but I don't think we currently have a great test framework in place for "anti" cases like this:
"Given this snippet, it SHOULD always be JS, period".
OR
"Given this snippet it should score 0 on properties."
"Given this snippet it should score 0 on dts."
I'm not sure we want to start coding specific failing cases into the tests like that because there will be no end...

FYI: The current web of detect tests would seem to be a bit of a deterrent for contributors (not sure if that's intentional or not).  I understand we need a way to monitor for regressions, but at some point it also feels a bit contrived... since sometimes we just have to alter the samples to make the detection happy.
It seems it'd be better (but harder) to have a huge library of KNOWN snippets (for every language) and then let the parser loose on ALL of them... and have a certain hit ratio... like our auto-detection must be 90% for tests to pass. (accepting that 100% isn't feasible with a wider sampling)  Or maybe it's 95 or 85, but you take the point.
Not saying that would be easy to do, but it's food for thought.  In fact (and I just realized this) you could even change our existing system to do that - simply by dropping the requirement from 100% to some other number. And having nicer output about failures (for people who want to try and improve the tuning).
In some ways this would be more "honest" and would allow us to surface some visibility to these types of issues, like:

dts, javascript, and properties are fighting over the same files
blah-synax will match ALMOST anything if you give it a chance

It would also provide a framework for using illegal better:
Before:
- javascript.sample.txt
- 15 languages have claimed some relevance
- 3 languages have a STRONG claim (dts, javascript, properties)
- - JS: 23
- - DTS: 34
- - properties: 20

After:
- javascript.sample.txt
- 12 languages have claimed some relevance
- 3 languages rejected as illegal
- 1 languages has a STRONG claim (javascript) [GOOD]
- - JS: 23

That's just a rough idea.

Then instead of just saying "well, thank goodness all the test still pass!"
You could say things like

dts andproperties auto-detection improved 15%

Just by looking at the things they WANTED to match before, and now seeing that they are no longer inclined to do so (because of tuning, adding illegal, etc).

Autodetection is a nice feature, and still it often fails, especially on small snippets.
But I wonder if this is a real problem? When you want to highlight some snippet, you usually know your language and it should be no problem to specify it. There is one case, though, when you can't do it explicitly: there are languages that contain other languages. An example is an SQL-like language for PostgreSQL (pgsql), in which you can write a function header, while function body is written in some other language. And in this case we usually have a limited number of sub-languages.
Just a thought: Having a library of snippets it probably should be possible to autotomatically tune relevances so that all/most snippets are detected correctly...

Having a library of snippets it probably should be possible to autotomatically tune relevances so that all/most snippets are detected correctly...

Could you elaborate just a bit more?

There is one case, though, when you can't do it explicitly: there are languages that contain other languages.

I think in some cases you could, but that's another discussion and not super related to this. :)

When you want to highlight some snippet, you usually know your language and it should be no problem to specify it.

People who file issues seem to really like the auto-detection. :-)  But I agree in principal if we depreciated how valued it was except in the circumstance it's really useful that'd be good I think.

For example another way of thinking out matching. I haven't quite worked out the terminology or the way to talk about it yet, but this is the early version.
tex 37 0.09
  3 cpp 0.01
  7 awk 0.01
  21 crmsh 0.01
  4 crystal 0.01
  15 dsconfig 0.01
  9 jboss-cli 0.01
  4 properties 0.02

The only grammar in use here is tex.  It's being asked to analyze itself and report a score (based on density of relevance per size of file)... then it's asked to do the same to ALL the other detect cases (since that's all the samples we have laying around).
You'll see Tex (a CRAZY simple grammar) matches almost 10% of it's size with relevance. That's pretty within the range of "normal".  A lot of grammars will match themselves in the 5-15% range quite easily - so by that we know that Tex isn't an outlier, or just crazy about itself (ie, overly self-relevant, which some other grammars are).  If it were ridiculous crazy about self that would make the other numbers less relevant, so that matters.  But tex seems to have a good head on its shoulders.
And the rest of the list are things tex MIGHT misidentify all the way down to one whole magnitude of difference in density.  And the key here is that there are only 7 possibles (out of 185). And the difference between tex identifying itself and "not tex" is about an order of magnitude.
This means imperially (irregardless of anything else, and assuming the tex sample is reasonable), that tex is a VERY good grammar at detecting itself.  We can say that without knowing anything about what the OTHER grammars might think about tex files.

Now it might be true that another grammar is really good at false-positives on Tex, but that's not really tex's problem (so I don't think it makes sense to think about at the macro level).  It might be the other grammar's problem, or they might just be very similar languages.  But irregardless I think that something can be said for the above... that tex is very "picky"/"sticky" or some concept to it's own files.  And that's a useful metric to have.

So now perhaps you're saying "well, tex is an easy one, it's very distinctive"... pick something else... and I will... but I think that is exactly the point.  If we come to the (general) conclusion "these 10 grammars are GREAT at auto-detect", those other 170 really are so loosy gossy as to be almost meaningless then I think we need to change our tests to take that into account - and focus the VALUE - not just the meaningless raw relevancy numbers.
So might we want to test for?

Tex can identify itself in a given density range (a reasonable range)
Tex does not falsely identify other languages (by a given margin)

Those type of metrics could be coded into the languages themselves... then as long as tex always performs the same, tests pass.  If suddenly it performs much worse, tests fail.  If suddenly it performs much better, tests also fail - and someone decides if we've hit a new norm or if there is some type of "too self-important" glitch happening.
Of course all this is most useful as a before/after metric... making changes and watching these numbers go up or down, etc.

As a point of comparison:
smalltalk 28 0.03
  6 cpp 0.02
  15 autoit 0.04
  10 awk 0.02
  6 bash 0.02
  12 bnf 0.02
  15 cos 0.03
  5 csp 0.02
  43 ebnf 0.08
  2 excel 0.04
  14 gherkin 0.02
  4 golo 0.02
  8 hsp 0.03
  11 http 0.04
  5 ini 0.03
  16 json 0.07
  4 makefile 0.02
  13 mel 0.03
  13 mipsasm 0.03
  45 perl 0.05
  28 mojolicious 0.04
  13 moonscript 0.02
  12 n1ql 0.03
  11 nix 0.03
  15 powershell 0.04
  20 puppet 0.02
  24 purebasic 0.03
  24 rib 0.04
  27 ruleslanguage 0.03
  13 sql 0.04
  31 step21 0.03
  11 stylus 0.02
  23 taggerscript 0.03
  23 tcl 0.04
  36 xquery 0.04

Now smalltalk is on the low end of the density scale (which doesn't help it), so perhaps it could be improved to identify itself better...
I've included all languages that are 25% less dense than it or greater.  Remember with Tex I went all the way down to 90% less dense, and only found 7.  Here we go down just a little and find 34 languages. And several of them look more like Smalltalk than Smalltalk itself does.  Gone is the order of magnitude difference we saw with Tex.
So we can conclude that Smalltalk is pretty bad about identifying itself vs other languages.  Now we just need to conclude is that because it's too similar or because it's own relevance isn't well tuned?

And there you have 2 discrete analysis of TWO grammars, only looking at sample files... ie, entirely isolated from OTHER grammars.  Ie, we're duding the grammars on their OWN merits, nothing else.  I find this a very refreshing way of looking at the problem.  And one that's super helpful for grammar contributors writing 3rd party grammars.

So what implications might this have more broadly?  Well let's say we have an unknown snippet.
Smalltalk scores it x relevance.
Tex scores it y relevance.
We can't just compare x and y directly.  We need to take density into account.  Smalltalk doesn't think of itself as highly as Tex, so Tex naturally might beat it at score... by taking that into account you eliminate the advantage some languages have of being more "self-important" than others.
but after we take that into account... lets say they have an equally density... ie, it's a tex file that has enough smalltalk-ness (density wise) to perhaps pass for smalltalk (in smalltalk opinion)...
Then we might look at the fact that Tex is (say) 10x more likely to correctly identify itself than Smalltalk... making it far more likely it would be correct than Smalltalk.
Tex wins.

Having a library of snippets it probably should be possible to autotomatically tune relevances so that all/most snippets are detected correctly...

Could you elaborate just a bit more? I'm not sure I follow.

It's probably possible to build a neural network or genetic algorithm to calculate relevance coefficients automatically (:

Interesting research. I think a weak point in it is that you're relying heavily on our autodetection tests, which are just random code-like fragments. I think you need to collect a library of real-life snippets, to get figures you can trust.

It's probably possible to build a neural network or genetic algorithm to calculate relevance coefficients automatically (:

We will assign that task to you. :-)

I think a weak point in it is that you're relying heavily on our autodetection tests, which are just random code-like fragments.

Oh, for sure.  More data samples would be great.  I'm trying to flesh out the reasoning and a way of thinking about this that doesn't get entangled in every grammar having to be expressly tuned against every other grammar, which is a losing battle IMHO - and shown by the fragility of the existing testing framework.
You mentioned needed more tests and better samples for access log - I was actually a little afraid to add a better sample because there is a high likelihood that a larger sample will cause one of the other grammars to now see something it doesn't like and now the tests are broken and I"m going down a rabbit hole trying to fix the balance again. :-)
That's what I'm trying to get us in a place to avoid... where someone could add better samples, a better grammar for any language... and it could be accepted based on those merits alone, not whether some other language suddenly decide the new samples look "too much like X".

A good start would actually be adding longer more fully representative samples for each language... but how to go about that without breaking the existing tests...
Should we just copy all the autodetect files into samples folder and then go from there, building up better samples?  Then a new minimal test could be added such that:

Ruby most always successfully parse all Ruby samples (ie, not bailing because of an illegal error, etc)

@onury Sorry to copt your issue, but all of this is relevant to the core issue you reported. :-)

For me something like (non-mandatory) samples folder is fine. You can first use it solely for research purposes, and after a while we can switch tests to make use of it, too.

What do you mean by non-mandatory?  Not sure I followed there.

I just mean we mustn't rely on this folder to exist for all languages.

I just mean we mustn't rely on this folder to exist for all languages.

Why not?  We'd start by populating it with the detect samples... so there would be a sample for every language already. :-)
And we're not accepting more languages into core presently, so seems like a solved problem? :)

It seems so.
(I don't quite see how external repos are included in the overall picture, but probably it's not that important at this stage.)

Is it possible that we run a formal benchmark between highlight.js and other programming language detection tools? That way we might be able to see how accurate it is.

Are you going to provide the benchmark? :-)  It'd be great if there was such a thing just laying around that one could use.

@yyyc514 we can start with https://github.com/andreasjansson/language-detection.el#model-performance https://github.com/src-d/enry#benchmarks as a start, but we can surly come up with even better benchmarks later on once we can source it.

Ok, where are the samples I'm language-detection from?  They are divided into Linguist/StackOverflow and rosetta folders... but Linguist is just a project and Stackoverflow is a website... so I'm not sure I'm 100% positive where they are getting these samples from.
Are they aggregating them from other places?  Are you involved with any of these projects?

@yyyc514 it is more of a heavy observation than an involvement, as I would like to see the software used in such systems be tested through benchmarks. This is the dataset https://github.com/andreasjansson/language-detection.el/tree/master/test/data

Yeah I saw that, I just wondered if they were pulling those 3 folders in from other sources.

I would like to see the software used in such systems be tested through benchmarks.

FYI, we already do tune the auto-detection against our own samples, but that's a very small and biased sample set, which is why we'd benefit from a larger set like this.
Thanks for bringing this to my attention. :-)

I think the README is wrong... once you fix a bug or two in the analysis (with regards to how we handle php and html/xml) and filter out items < 100 bytes (which we know we will do poorly on) we do reasonably well IMHO:
73% correct, 83% correct (if you count the 2nd guess as matching)
I would start bragging about how great that is but if they messed up the stats on us so badly perhaps they also messed up the stats on the others. :-/

@yyyc514 We should definitely try and "earn" the bragging rights by comparing our tool with the list in #2299

If you have time to work on this feel free.  There are probably some low hanging fruit wins to be had.  I found two just by glancing at the list of things we failed to auto-detect from language-detection.el.  So finding "obvious" things and fixing grammars is only going to help.
Really we need a formalized benchmark.  If I have time I might whip up something a bit nicer based on the  language-detection.el stuff since that gives us 3 different data sets to work from.  So you could make an improvement and then test and see (across all 3) if you were moving in the right direction or not.
So what would be worth doing for sure:

more formalized benchmark with better output
analysis of failures for "low hanging fruit" fixes

Closing and referencing at https://github.com/highlightjs/highlight.js/issues/2762.


doc: minor enhancements

Description
This PR provides some minor enhancements for the documentation.
It adds logLevels to values.yaml and more profiles examples.
Fixes # (issue)
Type of change
Please delete options that are not relevant.

[x] Refactor/improvement

How Has This Been Tested?
N/A
Checklist
N/A

:tada: This PR is included in version 1.9.0-beta.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


React & Web component: Card section - simple - beginning and ending boundary for the card is not conveyed for the screen reader user.

Detailed description
Issue:

The beginning and ending boundary for the card is not conveyed for the screen reader user.
In tab / shift tab navigation, when focus reaches the link in each card, Screen reader announces a lengthy text which makes it oververbose.

Expected:

Provide each card within the landmark region and give appropriate label.
It may be possible if the entire content in the card is given in anchor tag. In this scenario, only the heading can be given in anchor tag. Note: the link text/label should be concise and convey only the relevant information.

Note: working fine on react version.
Additional information

this fix should address the bug included in issue (#5504 ). Engineer should check to be sure this fix addresses the bug included in (#5504 )
Reach out to kenny for additional details.

@Praveen-sr I'm not sure this is the correct approach for card links. As I understand it, landmark roles are meant to identify larger regions of a page, not individual elements within it. I also don't understand why we'd want to reduce the amount of copy read by screen readers, since it is meant to inform users of the content they'd expect to see when clicking on it.
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Region_role#Accessibility_concerns
cc: @jeffchew @RobertaJHahn

@Praveen-sr I'm not sure this is the correct approach for card links. As I understand it, landmark roles are meant to identify larger regions of a page, not individual elements within it. I also don't understand why we'd want to reduce the amount of copy read by screen readers, since it is meant to inform users of the content they'd expect to see when clicking on it.
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Region_role#Accessibility_concerns
cc: @jeffchew @RobertaJHahn

@ariellalgilmore Ram re tested the PR provided, here is the report

@ariellalgilmore Can this issue and (#5504 ) be closed?

@RobertaJHahn We just confirmed with the team the changes that will be made for this issue to be closed, so next sprint I will finish this issue. 5504 and mostly all the other card accessibility bugs require this fix being made.


How could I get offered credentials?

Im finding the listener for the state changing in credentials to be a bit unreliable at the moment. I would like to add a refresh button to find new offered credentials. Does anyone by chance know how I could fetch all offered credentials for my agent?
So instead of using this
     agentContext.agent.credentials.events.removeAllListeners(CredentialEventType.StateChanged)       agentContext.agent.credentials.events.on(CredentialEventType.StateChanged, handleCredentialStateChange)
Have a button that onPress I can fetch the offered credentials for my existing connections.
Thanks allot!

Not possible at the moment, but should definitely be possible. This is more a limitation of Aries Framework JavaScript than the mobile agent however. Can you open this issue over there?

Sorry I will close this issue, the problem wasnt with the mobile app but with my aca-py demo.

We already have query methods, but they don't store state at the moment. What other parameters would you like to query on?


[FEATURE] drop me into the docs

Requirements
I think the content on this page: https://docs.openfeature.dev/
should actually just get put on openfeature.dev directly.
Going to docs.openfeature.dev should drop us into https://docs.openfeature.dev/docs/reference/intro
Or maybe the main page there should have a clearer "here are the 4 docs areas. pick one" CTA rather than showing the code.

What do you think about just moving the docs to openfeature.dev? We could setup a redirect for anyone trying to hit docs.openfeature.dev directly.

I buy that. If we do that, the docs url should redirect to the docs portion.


Fix overwritten var in snippet

Category

[x] Content fix
[ ] New article

Related issues

closes #6538

What's in this Pull Request?

as reported by user, code was resetting previously defined
object, blocking code from working

Docs Build status updates of commit 1ba2ebb:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/sp-add-ins/using-csom-for-dotnet-standard.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


SoQt FullViewer Not Clickable Buttons

I was using qt5 with soqt1.6.0. Then I updated qt version to 6.5.2 and soqt to 1.6.2. After that I have seen a bug in my application.
SoQt FullViewer has a method called addAppPushButton(QWidget*); and I am giving my QPushButtons to this method to place them at the left side of the 3d viewer at the top of the rotation wheel. In the previous version, the buttons were clickable, but now buttons cannot be clickable.
Actually, buttons are previously owned by another widget inside a vertical layout. When I use addAppPushButton, they are added to the left side of the view. After the qt update it makes buttons unclickable

Thanks for the bug report.
I was trying to reproduce the issue with the current SoQt 1.6.2 version and Qt 6.6.0 and Visual Studio 2019 but failed.
I used the following small program that did not show the faulty behaviour. It's the default viewer example from SoQt with added push buttons and a FullViewer derived from SoQtFullViewer.
Is there something special to your FullViewer class? Can you try to build the program in your environment and report its output? Thanks for your assistence to reproduce the issue.
soqtapp.cpp
#include <Inventor/Qt/SoQt.h>
#include <Inventor/Qt/viewers/SoQtFullViewer.h>
#include <Inventor/Qt/viewers/SoQtExaminerViewer.h>
#include <Inventor/nodes/SoBaseColor.h>
#include <Inventor/nodes/SoCone.h>
#include <Inventor/nodes/SoSeparator.h>
#include <QPushButton>
#include <QMessageBox>

class FullViewer : public SoQtFullViewer {
public:
    FullViewer(QWidget* parent,
        const char* name,
        SbBool embed,
        SoQtFullViewer::BuildFlag flag,
        SoQtViewer::Type type,
        SbBool build) : SoQtFullViewer(parent, name, embed, flag, type, build)
    {}
};

int
main(int argc, char ** argv)
{
  // Initializes SoQt library (and implicitly also the Coin and Qt
  // libraries). Returns a top-level / shell Qt window to use.
  QWidget * mainwin = SoQt::init(argc, argv, argv[0]);

  // Make a dead simple scene graph by using the Coin library, only
  // containing a single yellow cone under the scene graph root.
  SoSeparator * root = new SoSeparator;
  root->ref();

  SoBaseColor * col = new SoBaseColor;
  col->rgb = SbColor(1, 1, 0);
  root->addChild(col);

  root->addChild(new SoCone);

  // Use one of the convenient SoQt viewer classes.
  static const char name[] = "fullviewer";
  auto eviewer = new FullViewer(mainwin, name, true, SoQtFullViewer::BuildFlag::BUILD_ALL, SoQtViewer::Type::BROWSER, true);
  eviewer->setSceneGraph(root);
  auto widget = new QWidget();
  auto pb1 = new QPushButton(QString("1"), widget);
  auto pb2 = new QPushButton(QString("2"), widget);
  eviewer->addAppPushButton(pb1);
  eviewer->addAppPushButton(pb2);
  QObject::connect(pb1, &QPushButton::clicked, [pb1](bool checked = false) { QMessageBox::information(pb1, "", "clicked 1"); });
  QObject::connect(pb2, &QPushButton::clicked, [pb2](bool checked = false) { QMessageBox::information(pb2, "", "clicked 2"); });
  eviewer->show();

  // Pop up the main window.
  SoQt::show(mainwin);
  // Loop until exit.
  SoQt::mainLoop();

  // Clean up resources.
  delete eviewer;
  root->unref();
  SoQt::done();

  return 0;

The CMakeLists.txt script to build that against Coin and SoQt (Qt5 and Qt6) is looking as follows:
cmake_minimum_required(VERSION 3.0)

project(SoQtApp)

option(SOQTAPP_USE_QT6 "Prefer Qt6 over Qt5 if available" OFF)
option(SOQTAPP_USE_QT5 "Prefer Qt5 over Qt4 if available" OFF)

find_package(OpenGL REQUIRED)
find_package(Coin REQUIRED)
find_package(SoQt REQUIRED)

if(SOQTAPP_USE_QT6)
  find_package(Qt6 COMPONENTS Core Gui OpenGL Widgets QUIET)
endif()

if(NOT Qt6_FOUND AND SOQTAPP_USE_QT5)
  find_package(Qt5 COMPONENTS Core Gui OpenGL Widgets QUIET)
endif()

if(NOT Qt6_FOUND AND NOT Qt5_FOUND)
  set(QT_USE_IMPORTED_TARGETS ON)
  find_package(Qt4 COMPONENTS QtCore QtGui QtOpenGL REQUIRED)
endif()

add_executable(soqtapp soqtapp.cpp)
target_link_libraries(soqtapp PUBLIC SoQt::SoQt)

set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT soqtapp)
if (SOQTAPP_USE_QT6)
set_property(TARGET soqtapp PROPERTY VS_DEBUGGER_ENVIRONMENT "PATH=C:/Data/Volker/Github/issue80soqt/coin3dqt6/bin;C:/Qt/6.6.0/msvc2019_64/bin")
else()
set_property(TARGET soqtapp PROPERTY VS_DEBUGGER_ENVIRONMENT "PATH=C:/Data/Volker/Github/issue80soqt/coin3dqt5/bin;C:/Qt/5.15.2/msvc2019_64/bin")
endif()


⚠ Bofrost.be has degraded performance

In 1a34f21, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1101 ms

Resolved: Bofrost.be performance has improved in 06aad95 after 6 minutes.


KeyboardInterrupt after every command

Issue:
After freshly installing stash on Pythonista3, every single command is followed by a keyboard interrupt.
Usage:
This hinders installations from git and running other commands like pip installing pandas.
Example:
[~/Documents]$ ls
launch_stash.py Welcome.md _objc_exception.txt Templates site-packages stash_extensions stash_install.py Examples
stash: ^C
KeyboardInterrupt: Exit: 0
Environment:
This runs on python 3 with currently no additional modules installed.

Installing Pandas will not work because Pythonista already bundles Pandas.
>>> import pandas
>>> pandas.__version__
'1.4.4'


Parcels v2.0.0 - ParticleSet.populate_indices and ParticleFile.export Errors

Hi. I am running Ocean Parcels v2.0.0. Trying a tutorial on nemo curvilinear data. I get the following errors when running the two lines of code:
pset = ParticleSet.from_list(field_set, JITParticle, lon=lonp, lat=latp) pfile = ParticleFile("nemo_particles", pset, outputdt=delta(days=1))
pset.populate_indices()
pfile.export()
'ParticleFile' object has no attribute 'export' and 'populate_indices'

Thanks, This was solved by updating from v2.00 to v2.2.2. Thank you.


What if the ref allele is a common SNP?

I was wondering how SNPs should be handled. If one uses the germline reference (a common SNP in this case) as ref, the variant effect prediction runs into the below error. How is one supposed to encode such a somatic variant? Using two distinct variants, one for the SNP and one for the somatic variant?
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-4-a2c9a6cebb7d> in <module>()
----> 1 var.effects()

/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/varcode/variant.py in effects(self, raise_on_error)
    360     def effects(self, raise_on_error=True):
    361         return predict_variant_effects(
--> 362             variant=self, raise_on_error=raise_on_error)
    363
    364     def effect_on_transcript(self, transcript):

/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/varcode/effects/effect_prediction.py in predict_variant_effects(variant, raise_on_error)
     84                         effect = predict_variant_effect_on_transcript(
     85                             variant=variant,
---> 86                             transcript=transcript)
     87                     else:
     88                         effect = predict_variant_effect_on_transcript_or_failure(

/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/varcode/effects/effect_prediction.py in predict_variant_effect_on_transcript(variant, transcript)
    202
    203         exonic_effect_annotation = exonic_transcript_effect(
--> 204             variant, exon, exon_number, transcript)
    205
    206         # simple case: both start and end are in the same

/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/varcode/effects/effect_prediction.py in exonic_transcript_effect(variant, exon, exon_number, transcript)
    340                  genome_end,
    341                  variant,
--> 342                  cdna_ref))
    343
    344     utr5_length = min(transcript.start_codon_spliced_offsets)

ValueError: Found ref nucleotides 'A' in sequence of Transcript(transcript_id=ENST00000296589, name=SLC45A2-001, gene_id=ENSG00000164175, gene_name=SLC45A2, biotype=protein_coding, location=5:33944721-33984835) at offset 1133 (chromosome positions 33954511:33954511) but variant Variant(contig='5', start=33954511, ref='C', alt='A', reference_name='GRCh37') has 'G'

What distinguishes a somatic from germline variant in the GT field. A variant with both should look something like:
#CHROM	POS	ID	REF	ALT	QUAL	FILTER	INFO	FORMAT	Sample_normal	Sample_cancer
# homozygous germline and somatic change AA -> CC and GG
chr1	123123123	rsXXX A	C,G	3455	PASS	.	GT	1/1	2/2
# or in case of heterozygous changes. AA -> AC and AG
chr1	123123123	rsXXX A	C,G	3455	PASS	.	GT	0/1	0/2

The REF has to always match the reference used to do the variant calling, nor the germline.
Some discussion https://www.biostars.org/p/12964/

We tried to only put required/non-optional fields on the Variant class itself. I could add a helper property called either GT or genotype which either returns the metadata value for "GT" or None. Would that be helpful?

Oh, @joaoe, I might have misunderstood. Do you want Varcode to parse alts such as "A,T" and then use the GT to determine each samples value for the alt field?

Do you want Varcode to parse alts such as "A,T" and then use the GT to determine each samples value for the alt field?

I don't know how that would be implemented since current varcode does not provide a way to know which sample the variant applies to, in case the VCF file has multiple samples. Varcode just splits the ALT field and returns the same number of variants as ALT alleles, with the info from CHROM, POS, REF and ALT.
VCF files produced with a germline and cancer sample will typically contain both samples, so if you want varcode to be useful for these cases, there should be a way to tell to which sample the variant applies to. So, for each column after FORMAT, varcode needs to produce different variants.
Having the GT is actually not directly useful as it still has to be parsed.
I'd vote for something simple like a sample_index integer which would refer to the proper column right of FORMAT.
Example:
#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT sample_1 sample_2
chr1 123123 . A C,G . . . GT 1/2 0/0
# variant only in normal sample, produces
# Variant(..., ref=A, alt=C, sample_index=0)
# Variant(..., ref=A, alt=G, sample_index=0)
chr1 123123 . A C,G . . . GT 1/1 1/2
# variant in both samples
# Variant(..., ref=A, alt=C, sample_index=0)
# Variant(..., ref=A, alt=C, sample_index=1)
# Variant(..., ref=A, alt=G, sample_index=1)
chr1 123123 . A C . . . GT 0/0 0/0
# variant does not apply to any of the samples.

If the GT field is not there, then parse as before, sample_index can be None.
This would change the behavior of the API so it should be behind an option to load_vcf.
It can get complicated further. If the VCF file was 'phased', the the GT field is split by a pipe |, not a back slash. In this case, the position of each number in GT then matters, because the position will tell how to group close-by variants originating from the same group of reads, used to disambiguate heterozygous variants. So, including a gt_allele_index perhaps.
PS: A example containing multiple variants grouped by mouse strain. ftp://ftp.ncbi.nih.gov/snp/organisms/mouse_10090/VCF/genotype/SC_MOUSE_GENOMES.genotype.vcf.gz


Tapping on "undo" after "new game" produces three buttons

Original issue submitted by @fxedel at the 2048-android repository.

If you tap on "undo", a screen with two buttons ("undo", "cancel") appears. And normally, if you tap on "new game", a screen with also two buttons ("ok", "cancel") appears.
But if you tap on "undo", don't dismiss the screen and tap additionally on "new game", there are three buttons: "undo", "ok" and "cancel". I'd expect the two buttons from one screen to be replaced by the two buttons from the other screen.
The three buttons' actions do work as intended.

Merged the fix. :+1:

Maybe you can also close the original issue?


"Escaping" RollTable Names

If your rolltable's name is something like "10 gp Gemstones," Loot Table seems to want to compute the table as currency and cannot do that conversion. It would be helpful to understand how to represent a table name explicitly instead of using the implied logic that (presumably) "10 gp" represents to the module.

Upon further consideration, it could be my particular nesting. I'm using the plutonium library as my Entity. RollTable target: e.g. @Compendium[plutonium.items.JsmXTlVR13dMEd5O]{Periapt of Health} (description text). So my guess is further that this syntax is confusing RollTable when it gets an item.

It's likely the curly brackets in the string. As BRT uses this for parsing currency when you have entries in the table (not the currency field at the top).
Normal way to generate items from compendiums would be as show in the screenshot (entry 1):


Move extension methods to different namespace to not cause conflicts

Is your feature request related to a problem? Please describe.
In the Google.Api.CommonProtos assembly v2.0 and v2.1, there is a new type called Google.Type.DateTime.  We generally don't use this in our protos, but we do use Google.Type.Date.  There are helpful extension methods for use with Google.Type.Date that convert them to and from System.DateTime.  The trouble is that the extension methods live in the Google.Type namespace.  This means that to access these extension methods, you must have using Google.Type; in your file which, assuming using System; is also present, causes there to be a conflict between System.DateTime and Google.Type.DateTime.
Error	CS0104	'DateTime' is an ambiguous reference between 'Google.Type.DateTime' and 'System.DateTime'
Here is a console app demonstrating this which uses only the Google.Api.CommonProtos 2.1 NuGet package.  The below program builds successfully using Google.Api.CommonProtos version 1.7 (which does not have Google.Type.DateTime).
using System;
using Google.Type;

class Program
{
    static void Main(string[] _)
    {
        var desiredSystemDateTime = new DateTime(2020, 1, 1);
        var desiredGoogleTypeDate = desiredSystemDateTime.ToDate();
    }
}

Describe the solution you'd like
I would like the extension methods to be moved to a new Google.Type.Extensions namespace.  This would allow us to import and use the built-in conversion extension methods (which we love), and through judicious use of var, generally not have to import Google.Type.  This would also let us not have to go through all of our code bases and figure out which DateTime we meant in every file as we upgrade to newer versions of Google.Api.CommonProtos.
Describe alternatives you've considered
In theory we could wrap the extensions we want in our own namespace and import that, or else just qualify System.DateTime everywhere, but this seems like a lot of work.  I guess we could also do DateTime = System.Datetime, but again I'd prefer to just change the namespace for the extensions as this seems less likely to have breakage long-term.
Additional context
This is totally our fault as a Namely engineer was the person who contributed the Google.Type.Date extensions in the first place.  https://github.com/googleapis/gax-dotnet/pull/251/files  At that time, though, there were no types that conflicted with the name of a type in the System namespace, however, so this wasn't conceived of as an issue.  Thanks for all of your hard work on this library.  I am willing to make a PR to move the extension methods to a Google.Type.Extensions namespace if that is of interest to you as a solution.

No, we can't move the extension methods - that would be a breaking change, and creating a major version bump for this library would require a major version bump for dozens of others too - which I really don't think it justified here.
Fortunately there's a really simple way of avoiding it being a problem: use using static instead to import the class containing the extension methods you want:
using System;
using static Google.Type.DateExtensions;

class Program
{
    static void Main(string[] _)
    {
        var desiredSystemDateTime = new DateTime(2020, 1, 1);
        var desiredGoogleTypeDate = desiredSystemDateTime.ToDate();
    }
}

Ah - well done.  We will proceed with that.  Thank you.


Number of edge segment not mentioned in Default guardrails

Could you confirm the guardrails on number of Edge segments per sandbox. Default guardrails mention only streaming and batch. Is it a miss in the public docs?
https://experienceleague.adobe.com/docs/experience-platform/profile/guardrails.html?lang=en

Thank you for submitting this issue. We will review the documentation and make the necessary updates as quickly as possible. Tracking internally in PLAT-130128.

@asha-pathik - we have updated the guardrails with information on the number of Edge segments per sandbox. Thank you for reporting this. Closing the issue.


Doesn't work

Was looking for an autotool example to test something, followed the instructions...
autoreconf -vfi
./configure
make

It didn't work. Fairly typical for autoconf projects IMO :)
toollib/print.cpp:1:10: fatal error: 'toollib.h' file not found
#include <toollib.h>
         ^
1 error generated.

@mulle-nat Looks like your platform is missing the required header files to compile with.

Hardly. It's in your project. toollib.h

Well yes actually it is, did you run sudo make install in the project root?

I did what I wrote in the first comment.
How is sudo make install gonna work, if make already fails ?

Maybe you should tell me what you're trying, as a statement like: doesn't work is not really helpful.

What exactly is unclear and non-reproducable about the original text ?
Here I am explaining to you what I am trying to do, with steps to reproduce

Was looking for an autotool example to test something, followed the instructions...
autoreconf -vfi
./configure
make

Here I am explaining what the error is I am getting

It didn't work. Fairly typical for autoconf projects IMO :)
toollib/print.cpp:1:10: fatal error: 'toollib.h' file not found
#include <toollib.h>
       ^
 1 error generated.

Well sorry but, you're stating it yourself: fairly typical for autoconf projects, maybe you should do some more research about it before you start asking questions.


Make goodhosts really work with Hyper-V

Really solve #40 , use read_guest_ip to handle Hyper-V with dynamic IP.
Original @machine.config.vm.provider :hyperv do ... end's block is never executed since provider configuration blocks are only possible to be executed in a very early stage(at least before VM boot, while read_guest_ip need booted VM), and its read_guest_ip usage is incorrect(Hyper-V driver's read_guest_ip accept 0 argument).
Also:

Remove useless networks.empty? check, since there is always the default forwarded_port network for ssh.

Note this removal does NOT make the code vulnerable, since networks.each do |network| .... end do nothing if networks is empty.

Correct action hooks timing: "add" after "up" should correspond to "remove" before "halt".

Without this, we cannot RemoveHosts when halting or destroying Hyper-V VM, since read_guest_ip can only work with running or suspended VMs.

I am ok for this PR but I cannot do any test for hyper-v as I don't have any windows machine.
What do you think @tomjn to me the code is fineas we are just prepending everything.

New release avalaible :-)


Add fix for strided GEMMs near the end of allocated memory

Fix the pre-calculated number of elements passed into GEMM kernels for the strided cases to not include the stride past the end.

All Tensile and rocBLAS CI tests pass on standalone gfx900 and gfx906 machines


Improve the telemetry section display

As a ...,
I want to ...
So that ...
Acceptance Criteria:

[ ] The platform correctly displays all the steps' sections

Definition of Done:

[ ] All acceptance criteria are met.
[ ] Code is reviewed and approved.
[ ] The code is covered by tests.
[ ] Documentation is updated.
[ ] Docker images are updated on docker-hub.

Waiting for the job discussion (@PN-picsell)


/cf barely works.....

/cf interact-block-secondary minecraft:crafting_table true override is the command i typed
output:
https://i.gyazo.com/9ab6d2e8e1c7190f956387e49374365d.png
and this still will not allow players to use a table in a admin claim
you should consider testing this command more

I'll leave this ticket open until I fix output of command to be more clear.

i just downloaded the latest files for every thing lp works fine and other people are complaining about this command i was just stating the obvious and i love to test

No problem. I'll push a fix soon so it shows output properly.