Automaic aliases

What do you think of using automatic aliases on joins, but only as option (need to decide where and how to put this as option), so it will not break backward compatibility, and it will solve ambiguous column problems. Basically it will be like this:
class Employee extends ActiveRecord
{

    public function getEmployeeToProject()
    {
        return $this->hasMany(EmployeeToProject::class, ['employee_id' => 'id'])
                    ->andWhere(['enabled' => 1]);
    }

    public function getProjects()
    {
        return $this->hasMany(Project::class, ['id' => 'project_id'])
                    ->via('employeeToProject')
                    ->andWhere(['deal' => 1]);
    }
}

class Company extends ActiveRecord
{

    public function getProjects()
    {
        return $this->hasMany(Project::class, ['company_id' => 'id'])->orderBy('[[id]]');
    }
}

class Project extends ActiveRecord
{

    public function getCompany()
    {
        return $this->hasOne(Company::class, ['id' => 'company_id']);
    }

    public function getEmployees()
    {
        return $this->hasMany(EmployeeToProject::class, ['project_id' => 'id'])->andWhere(['enabled' => 1]);
    }
}

and doing:
Employee::find()->joinWith(['company', 'projects'])->andWhere(['id' => [1,2,3]])->orderBy(['id' => SORT_DESC])->all();

Will produce query:
SELECT `employee`.*  FROM `employee` LEFT JOIN `company` `Employee<company><company>` ON `employee`.`company_id` = `Employee<company><company>`.`id` LEFT JOIN `project` `Company<projects><project>` ON `Employee<company><company>`.`id` = `Company<projects><project>`.`company_id` WHERE `employee`.`id` IN (1, 2, 3) ORDER BY `employee`.`id` DESC, `Employee<company><company>`.`id`, `Company<projects><project>`.`id`

Also, it will be possible to easily get relation column, prefixed with automatic alias, for using in filters:
        $query = Employee::find()->joinWith(['company.projects'])->andWhere(['id' => [1,2,3]])->orderBy(['id' => SORT_DESC]);
        $query = $query->andWhere([$query->getRelationColumn('projects', 'status') => 4])->orderBy([$query->getRelationColumn('company', 'visible') => SORT_DESC])->all();

will produce query:
SELECT `employee`.* FROM `employee` LEFT JOIN `company` `Employee<company><company>` ON `employee`.`company_id` = `Employee<company><company>`.`id` LEFT JOIN `project` `Company<projects><project>` ON `Employee<company><company>`.`id` = `Company<projects><project>`.`company_id` WHERE (`employee`.`id` IN (1, 2, 3)) AND (`Company<projects><project>`.`status`=4) ORDER BY `Employee<company><company>`.`visible` DESC, `Employee<company><company>`.`id`, `Company<projects><project>`.`id`

This way you will never need to pay attention to aliasing relations because of ambiguous column problems.
You can even use same relation model twice thru different relations, like:
public function getCompany()
    {
        return $this->hasOne(Company::class, ['id' => 'company_id'])
                    ->orderBy('[[id]]');
    }

    public function getEnabledCompany()
    {
        return $this->hasOne(Company::class, ['id' => 'company_id'])
            ->andWhere(['enabled' => 1])
                    ->orderBy('[[id]]');
    }

        $query = Employee::find()->joinWith(['company', 'enabledCompany'])->andWhere(['id' => [1,2,3]])->orderBy(['id' => SORT_DESC]);
        $query = $query->andWhere([$query->getRelationColumn('company', 'status') => 4, $query->getRelationColumn('enabledCompany', 'status') => 8])->all();

will produce query:
SELECT `employee`.* FROM `employee` LEFT JOIN `company` `Employee<company><company>` ON `employee`.`company_id` = `Employee<company><company>`.`id` LEFT JOIN `company` `Employee<enabledCompany><company>` ON `employee`.`company_id` = `Employee<enabledCompany><company>`.`id` WHERE (`employee`.`id` IN (1, 2, 3)) AND ((`Employee<company><company>`.`status`=4) AND (`Employee<enabledCompany><company>`.`status`=8)) AND (`Employee<enabledCompany><company>`.`enabled`=1) ORDER BY `employee`.`id` DESC, `Employee<company><company>`.`id`, `Employee<enabledCompany><company>`.`id`

Alias is done by: calling_class_name<relation_name><table_of_relation_model> and this way it will be always unique.
If you by any chance use your own alias for relation, it will use that name for prefixing columns, like
        $query = Employee::find()->joinWith(['company' => function ($q) {
            $q->alias('custom_company_relation');
            return $q;
        }, 'enabledCompany'])->andWhere(['id' => [1,2,3]])->orderBy(['id' => SORT_DESC]);
        $query = $query->andWhere([$query->getRelationColumn('company', 'status') => 4, $query->getRelationColumn('enabledCompany', 'status') => 8])->all();

query:
SELECT `employee`.* FROM `employee` LEFT JOIN `company` `custom_company_relation` ON `employee`.`company_id` = `custom_company_relation`.`id` LEFT JOIN `company` `Employee<enabledCompany><company>` ON `employee`.`company_id` = `Employee<enabledCompany><company>`.`id` WHERE (`employee`.`id` IN (1, 2, 3)) AND ((`custom_company_relation`.`status`=4) AND (`Employee<enabledCompany><company>`.`status`=8)) AND (`Employee<enabledCompany><company>`.`enabled`=1) ORDER BY `employee`.`id` DESC, `custom_company_relation`.`id`, `Employee<enabledCompany><company>`.`id`

Another example, pay attention that we joining relation 'projects' two times, thru different models, and they are auto aliased different:
        $query = Employee::find()->joinWith(['company' => function ($q) {
            $q->joinWith(['projects']);
            $q->andWhere([$q->getRelationColumn('projects', 'enabled') => 1]);
            return $q;
        }, 'enabledCompany', 'projects'])->andWhere(['id' => [1,2,3]])->orderBy(['id' => SORT_DESC]);
        $query = $query->andWhere([
            $query->getRelationColumn('company', 'status') => 4,
            $query->getRelationColumn('enabledCompany', 'status') => 8,
            $query->getRelationColumn('projects', 'enabled') => 0,
        ])->all();

query:
SELECT `employee`.* FROM `employee` LEFT JOIN `company` `Employee<company><company>` ON `employee`.`company_id` = `Employee<company><company>`.`id` LEFT JOIN `project` `Company<projects><project>` ON `Employee<company><company>`.`id` = `Company<projects><project>`.`company_id` LEFT JOIN `company` `Employee<enabledCompany><company>` ON `employee`.`company_id` = `Employee<enabledCompany><company>`.`id` LEFT JOIN `employee_to_project` `Employee<employeeToProject><employee_to_project>` ON `employee`.`id` = `Employee<employeeToProject><employee_to_project>`.`employee_id` LEFT JOIN `project` `Employee<projects><project>` ON `Employee<employeeToProject><employee_to_project>`.`project_id` = `Employee<projects><project>`.`id` WHERE (`employee`.`id` IN (1, 2, 3)) AND ((`Employee<company><company>`.`status`=4) AND (`Employee<enabledCompany><company>`.`status`=8) AND (`Employee<projects><project>`.`enabled`=0)) AND (`Company<projects><project>`.`enabled`=1) AND (`Employee<projects><project>`.`deal`=1) ORDER BY `employee`.`id` DESC, `Employee<company><company>`.`id`, `Company<projects><project>`.`id`

I have ready made solution for this, and it is totally optional for using, just need to decide where to put that option for enabling, and it passing all test (also for YII3 Active Record package).

Might me complicated. See:

#10813
#10817
#10253

and silimar issues.

I am aware of all previous issues regarding this matter.
Just need to sort some things out, and will make PR. So far, with this changes, which make mention queries, all YII2 and YII3-AR tests pass

Cool. If this is done already, a pull request would be very handy to check if it is a good change for the framework.

@ntesic I think this will not work properly. In your example you have 3 tables with an id property. If you do
Employee::find()->joinWith(['company.projects'])->andWhere(['id' => [1,2,3]])->orderBy(['id' => SORT_DESC])->all();

where should PHP know from which id is meant? If you take the employee one (because it's the initial AR), but would like to sort by projects one, how will you achieve that? I think it would be more confusing...

@simialbi
in that case it would be:
        $query = Employee::find()->joinWith(['company.projects']);
        $query->andWhere(['id' => [1,2,3]])->orderBy([$query->getRelationColumn('projects', 'id') => SORT_DESC])->all();

🤔 IMHO it's confusing. If you don't exactly know this behavior, you do not expect it. And if you still have to get relation columns manually, it may be to slow to have a real benefit.

yes, of course you need to get relation columns manually, but not need to worry about alias, since even now you need to set alias manually and also to include it in relation column manually, to achieve something like above


Force sorting on a date columns we select

This prevents error in default setups of MySQL 5.7.x
In the core, we select the non GMT version and show the non GMT version:
a user could reasonably expect the sort to be done on the shown value.
Fixes #2878
RE #2517

cc @wdebusschere


Testing pdf and blui

Hi all,
I'd love to understand if it will be possible to render pdf files directly inserted into project, locally or via URL.
Thanks!

You should be able to do that with something like https://github.com/mozilla/pdf.js which renders pdf in javascript

Already implemented PDF.js, however CEF has specific protection in opening js and local files (locked). So, I recompiled Unreal source code with plugins enabled and now it's working.
Getnamo blui is rendering them and works, but for the moment it has problems with scrolling (see precedent posts) and doesn't compile.


host storage misc fix:

这个 PR 实现什么功能/修复什么问题:

add accessible timeout
add force detach host storage

是否需要 backport 到之前的 release 分支:
release/3.2
/cc @swordqiu @zexi @ioito
/area region host

Codecov Report

Merging #6621 into master will increase coverage by 0.01%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master    #6621      +/-   ##
==========================================
+ Coverage    7.15%    7.16%   +0.01%
==========================================
  Files         647      647
  Lines      109327   109353      +26
==========================================
+ Hits         7818     7831      +13
- Misses     100909   100922      +13
  Partials      600      600

Flag
Coverage Δ

#aFlag
7.16% <0.00%> (+0.01%)
:arrow_up:

Impacted Files
Coverage Δ

pkg/apis/input.go
0.00% <ø> (ø)

pkg/compute/models/storages.go
0.91% <0.00%> (-0.03%)
:arrow_down:

pkg/hostman/hostinfo/hostinfo.go
0.00% <0.00%> (ø)

pkg/appsrv/response.go
69.11% <0.00%> (+2.94%)
:arrow_up:

pkg/cloudcommon/cronman/cronman.go
53.95% <0.00%> (+5.11%)
: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 c05e243...690a5f2. Read the comment docs.


std.array.uninitializedArrayExtend, std.array.initializedArray

bearophile_hugs reported this on 2012-06-21T17:19:31Z
Transfered from https://issues.dlang.org/show_bug.cgi?id=8280
CC List

safety0ff.bugz

Description
Maybe it's useful to add two small functions to std.array similar to std.array.minimallyInitializedArray and std.array.uninitializedArray, that increase the length of an already allocated array:

uninitializedArrayExtend(arr, 50_000);

and

minimallyInitializedArrayExtend(arr, 50_000);

Are similar to:

arr.length += 50_000;

bearophile_hugs commented on 2014-06-13T20:48:19Z
(In reply to bearophile_hugs from comment #3)

> auto funcs = initializedArray!(int function(int)[])(10, i => i);

There can be some very uncommon strange cases, but that's a value and not a lambda to fill the array.

bearophile_hugs commented on 2014-06-13T20:10:18Z
I also suggest to add a "std.array.initializedArray" function similar to std.array.uninitializedArray, that accepts another extra argument that is the initialization value or a lambda to fill the array:

This allocated an array of 100 spaces:

auto data = initializedArray!(char[])(100, ' ');

It is equivalent to:

auto data = uninitializedArray!(char[])(100);
data[] = ' ';

Another example usage (note the result is immutable):

immutable data = initializedArray!(int[])(50, i => i);

That is equivalent to (but there is no data_ temporary variable):

auto data_ = uninitializedArray!(int[])(50);
foreach (immutable i; 0 .. 50)
    data_[i] = i;
immutable data = data_.assumeUnique;

Another example usage:

immutable mat = initializedArray!(int[][])(20, 20, (i, j) => i * j);

That is equivalent to (but there is no mat_ temporary variable):

auto mat_ = uninitializedArray!(int[][])(20, 20);
foreach (immutable i; 0 .. 20)
    foreach (immutable j; 0 .. 20)
        mat_[i][j] = i * j;
immutable mat = mat_.assumeUnique;

safety0ff.bugz commented on 2014-06-13T20:13:57Z
See also: Issue #12444


Quasars with microlensing

Implement quasar microlensing simulator. See notebook:
https://github.com/Ciela-Institute/caustic-analyses/blob/main/notebooks/microlensing.ipynb

Closed by #218


sitesavailable foleder does not exit.

I'm trying to find the sitesavailable folder in proxyginx, but it doesn't exist. Can't I divide vhosts into sitesavailable folders?
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/blob/master/MANUAL-CONFIGURATION.md
I'm going to apply this automatically. But some folders don't exist.

Maybe this will help you: https://stackoverflow.com/questions/17413526/nginx-missing-sites-available-directory
Closing this because it is specific to nginx and has nothing to do with this repo.


[ci skip] Revamp Configuration docs page.

Revised configuration.rst as discussed in issue #2554

Very nice pass at this whole section, thanks for the work!

Associated issue #2554 was addressed by this merge and should be closed


fixes angular-ui/bootstrap#4018

Could you also write a test with three stacked bars, each with values that total 100% but round to greater than 100%?

Linking #4018 for reference.

Sure thing.

I adjusted the code and added a test case.

This looks good - thanks for the good work here


Add checkout and order promotions

Allow creating promotions that applies on checkout/order level
Covers https://github.com/saleor/saleor/issues/13330

The solution allows the creation of promotion rules that define checkoutAndOrder discount applied on checkout/order level.
Current implementation applies the discount only on Checkout, it's not applicable on Order yet.
The limit of possible PromotionRule with checkoutAndOrder predicate was introduced. It's set to 100 for the default.

Measurement:
In case checkout applies for all 100 rules, the checkout calculation time is extended a bit.
Case 1

checkout with one line
100 promotion rules with checkoutAndOrder predicate
all rules applies on the checkout

Mutation
Time in s

CheckoutCreate
0.638

Checkout delivery method update
0.896

Checkout complete
0.775

Case 2

checkout with 1 line
no promotion rules

Mutation
Time in s

CheckoutCreate
0.426

Checkout delivery method update
0.569

Checkout complete
0.713

Case 3

checkout with 100 lines
100 promotion rules with checkoutAndOrder predicate
all rules applies on the checkout

Mutation
Time in s

Checkout delivery method update
0.947

Checkout complete
1.64

Case 4

checkout with 100 lines
no promotion rules

Mutation
Time in s

Checkout delivery method update
0.604

Checkout complete
2.2

Impact

[ ] New migrations
[ ] New/Updated API fields or mutations
[ ] Deprecated API fields or mutations
[ ] Removed API types, fields, or mutations

Docs

[ ] Link to documentation:

Pull Request Checklist

[ ] Privileged queries and mutations are either absent or guarded by proper permission checks
[ ] Database queries are optimized and the number of queries is constant
[ ] Database migrations are either absent or optimized for zero downtime
[ ] The changes are covered by test cases

From the benchmark above:
add checkout lines with reservations queries increased from 157 to 181, where duplicates are increased by 9 queries. It may be worth checking why the number is so high. The rest of the tests increase the queries by 2, and it looks correct


get_results returns TypeError: Expected str or file, got '<type 'Element'>' instead

openvas_results = scanner.get_report_id(scan_id)
print openvas_results
Returns
TypeError: Expected str or file, got '<type 'Element'>' instead
Why??????

I dig into the code actually report_parser expecting a file or string as argument, but the get_result method giving and Element object. so I comment it out the parse part

and I wrote my own function to parse the result as follow
def parse(res):
    output = []
    results = res.getchildren()

    for result in results:
        children = result.getchildren()
        obj = {}
        for child in children:
            obj[child.tag] = child.text
        output.append(obj)
    return output

I can now call it like this
parse(scanner.get_results(scan_id))

which returns a python list contains all results
I don't know how to fix the original parse function, I believe they will patch it soon :sparkle:

Hello,
I would like to know where do you write this code in the init_.py file ?
Thanks
Sylvain

Im still same issue:
File "/Users/openvas-stuffs/lib/python2.7/site-packages/openvas_lib/ompv7.py", line 1099, in get_report_xml
raise TypeError("Expected string, got %r instead" % type(report_id))
TypeError: Expected string, got <type 'NoneType'> instead


unbound action with parameter as collection of complex values

Hello,
I've struggled in calling unbound action where one of the params is ODataCollection of ODataComplexValue. It ends up with NullPointerException somewhere in Simple.OData.Client.V4.Adapter.RequestWriter.<WriteOperationParameterAsync>. It seems that it cannot find appropriate Type, referenced in metadata.
So basically, how should one call unbound action where metadata looks like this:
<Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="MyProject">
     <ComplexType Name="MyObject">
          <Property Name="Value" Type="Edm.String"/>
     </ComplexType>
</Schema>

<Action Name="SampleCommand">
     <Parameter Name="Parameters" Type="Collection(MyProject.MyObject)"/>
</Action>

Thank you for reporting the issue. I will investigate this.


[BUG] Can't run command publish-local 'e2e-registry' task not found

Describe the bug
Tried the suggested way to publish my changes locally so I can use them on my projects. Used "Cmder" terminal emulator so the "cp" command is available on Windows, but then it fails again with the message "ERROR: Task not found: "e2e-registry"".
To Reproduce
Steps to reproduce the behavior:

Run the command: yarn publish-local

Expected behavior
The command finish without errors.
Screenshots

Environment:

OS: Windows 10
Version: 1.8.0
Affected Packages: all

Duplicate of #309


Consider accessing ApplicationInsights instance via import

Currently the recommended way to access to access the ApplicationInsights instance seems to be to set it as a global, if I want to access it from another module, or to pass it to every module that needs it.
I would love it if I could simply do something like this:
index.js:
import { ApplicationInsights } from '@microsoft/applicationinsights-web';

var appInsights = new ApplicationInsights({
    config: {
        instrumentationKey: 'YOUR_INSTRUMENTATION_KEY_GOES_HERE'
    }
});
appInsights.loadAppInsights();

other-module.js:
// This imports the appInsights instance that was configured with `loadAppInsights()` in index.js
import appInsights from '@microsoft/applicationinsights-web';

// appInsights.trackX();

Ideally index.js would probably looks something like this, but this would be very breaking, so probably not possible:
import { initAppInsights } from '@microsoft/applicationinsights-web';

initAppInsights({
    config: {
        instrumentationKey: 'YOUR_INSTRUMENTATION_KEY_GOES_HERE'
    }
});

This doesn't seem to work for me. appInsights is never set in other-module.js even after initialization.

Hi @bryantee
I’m not sure I understand. This is a feature request, so it doesn’t work atm. Or do you think my feature request couldn’t possibly work?

Ah, gotcha...I was just configuring our app using the example provided and am not seeing how it would work and having to rely on accessing appInsights from window.

This is how I've got about implementing it and seems to be good
import { ApplicationInsights } from '@microsoft/applicationinsights-web';
import { ReactPlugin } from '@microsoft/applicationinsights-react-js';

class TelemetryService {
  reactPlugin = new ReactPlugin();
  appInsights = null;

  /**
   * Initialize the Application Insights class
   * @param {string} instrumentationKey - Application Insights Instrumentation Key
   * @param {Object} browserHistory - client's browser history, supplied by the withRouter HOC
   * @return {void}
   */
  initialize = (instrumentationKey, browserHistory) => {
    if (!instrumentationKey || !browserHistory) {
      throw new Error('Could not initialize Telemetry Service');
    }

    this.appInsights = new ApplicationInsights({
      config: {
        instrumentationKey,
        maxBatchInterval: 0,
        enableCorsCorrelation: true,
        disableFetchTracking: false,
        extensions: [this.reactPlugin],
        extensionConfig: {
          [this.reactPlugin.identifier]: {
            history: browserHistory,
          },
        },
      },
    });

    this.appInsights.loadAppInsights();
  };
}

const ai = new TelemetryService();

export { ai };

``


Uncaught TypeError: Cannot read property 'numberOfItems' of undefined

tsparticules does not load when use din browser due to error. tested on v1.13.5 with Firefox 74.0 and Vivaldi 2.10.1745.27
To Reproduce
<script<EMAIL_ADDRESS><script>tsParticles.load('particles-js', particlesConfig);</script>

where particlesConfig is taken from the polygon mask example : https://particles.matteobruni.it/# and select preset "Pylogon Mask" in the drop down menu
Desktop (please complete the following information):

OS: Windows 1909
Browser: Firefox 74.0 and Vivaldi 2.10.1745.27
Version: v1.13.5

Workaround
Add the pathseg polyfill
<script<EMAIL_ADDRESS><script<EMAIL_ADDRESS><script src="https://on-cdev.codeanyapp.com/idemia-biometrics/particles.js"></script>

I might have skipped it but it should be indicated in the docs that this polyfill should be added.

Just realized this is already in the README, 🤦♂

You may have notices the * near dependency free. Well almost all features works without any dependency, but... Well there's a but. The Polygon Mask feature requires pathseg for some browsers to work fine, and obviously the Icon Fonts (like FontAwesome) must be included in your page.

source : https://github.com/matteobruni/tsparticles#dependencies
Well this issue might still help others to quickly find the solution !


Pay

[ ] Fixes issue #15   : "Add features to show feedback to post"
[x] Other checks

Reason for pull request:
"To add new feature to provide feedback to post"
Description of changes or additions:
"Added a form to comment on a post and all the comments are shown below the post
"
Screenshots:
""

@gaurav618618 Great job. I really appreciate your efforts. I am merging your PR right now but I want you to make some changes:

The comment template takes a lot of space of the page.
Please add a quick like option.
Please add option to reply to any of the comments.
Thanks :)

Sure ,I will make all the changes.


register and final splash screen up

We are using yarn, so I think you can delete the package-lock.json file so it doesn't cause conflict going forward


Generate binary data for format=binary

Closes #197

Codecov Report

Merging #234 into master will decrease coverage by 0.94%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #234      +/-   ##
==========================================
- Coverage    99.9%   98.96%   -0.95%
==========================================
  Files          19       19
  Lines        1060     1063       +3
  Branches      160      160
==========================================
- Hits         1059     1052       -7
- Partials        1       11      +10

Flag
Coverage Δ

#unittests
98.96% <100%> (-0.95%)
:arrow_down:

Impacted Files
Coverage Δ

src/schemathesis/_hypothesis.py
100% <100%> (ø)
:arrow_up:

src/schemathesis/__init__.py
100% <100%> (ø)
:arrow_up:

src/schemathesis/runner/events.py
93.54% <0%> (-6.46%)
:arrow_down:

src/schemathesis/models.py
95.31% <0%> (-4.69%)
:arrow_down:

src/schemathesis/extra/pytest_plugin.py
97.67% <0%> (-2.33%)
:arrow_down:

src/schemathesis/lazy.py
98.41% <0%> (-1.59%)
:arrow_down:

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 9e99da7...2015303. Read the comment docs.


Refreshing Identity Providers page loads Applications

Describe the issue:
A page refresh from Identity Providers page loads the Applications page in Product IS Console.
How to reproduce:

Navigate to Identity Providers in Console.
Refresh page.

Expected behavior:
Identity Providers page should reload after refresh.
Environment information (Please complete the following information; remove  any unnecessary fields) :

Product Version: IS 5.12.0 Alpha 17
OS: Ubuntu 20.04

This issue is being closed due to extended inactivity. Please feel free to reopen it if further attention is needed. Thank you for helping us keep the issue list relevant and focused!


feat: made activity inventory data immutable

Related Issue(s)

resolves #291

Quick overview of the change
Activity entry changes
https://user-images.githubusercontent.com/11084692/196739493-edd74849-0f2d-4fa0-a1d8-d88cf6f94788.mp4
Activity details changes

Made activity inventory data immutable
Added UI and UX flow for legacy activities
Added UI and UX flow for in-use activities

Quick testing guide

Minor nit: When giving a warning dialog, isn't the flow usually giving the option to go back and continue.

Minor nit: When giving a warning dialog, isn't the flow usually giving the option to go back and continue.

@andrewpratheepan that is indeed a better flow, I will make the change in the next PR


test: use x-dist in tests

What I did

Speeds up test runs by utilizing x-dist
Fixes warnings from coverage
Fixes flakey script test

How I did it

How to verify it

Checklist

[ ] All changes are completed
[ ] New test cases have been added
[ ] Documentation has been updated

The tests run more than 3x faster in CI and 10x faster locally (For me) from this PR!
No more long waits!!! Way less build times in GH. Yay and yay!


Monitor password changing of system users

Has been fixed here: https://github.com/OrienteerBAP/wicket-orientdb/commit/b7ebfd2dd8fc973b786f7c9222ab16a02db04750


"New" camera not showing up in Homekit Add Accessory

Describe the bug
Camera not showing in Homekit to be added
To Reproduce
I created a "new" camera. This one had been added before but, due to fumble fingers, was deleted. When I try to re-add it it doesn't appear in the list of Accessories that can be added.
It works OK in the Camera UI Interface but does not show up to be added in Homekit.
Expected behavior
I wanted to add the camera to Homekit but it doesn't show up. The "Driveway Camera" was also added this morning but that one was added easily in Homekit.
Logs
N/A
Screenshots

Environment

Node.js Version: v18.12.1
Homebridge Version: v1.6.0
Camera UI Version: v5.0.27
Operating System: Raspbian Bullseye
Browser: Safari

Config:
{
    "name": "CameraUI",
    "port": 8081,
    "atHomeSwitch": false,
    "logLevel": "info",
    "mqtt": {
        "active": false,
        "tls": false,
        "port": 1883
    },
    "http": {
        "active": false,
        "port": 7272,
        "localhttp": false
    },
    "smtp": {
        "active": false,
        "port": 2727,
        "space_replace": "+"
    },
    "ftp": {
        "active": false,
        "useFile": false,
        "port": 5050
    },
    "ssl": {
        "active": false
    },
    "options": {
        "videoProcessor": "/var/lib/homebridge/node_modules/homebridge-camera-ui/node_modules/ffmpeg-for-homebridge/ffmpeg"
    },
    "cameras": [
        {
            "name": "Driveway Camera",
            "manufacturer": "Wyze",
            "model": "Cam 3 Pro",
            "serialNumber": "D03F2791A57E",
            "motion": false,
            "motionTimeout": 15,
            "unbridge": true,
            "hsv": true,
            "prebuffering": true,
            "prebufferLength": 4,
            "videoConfig": {
                "source": "-i rtmp://hyrule.local:1935/roam-3",
                "subSource": "-i rtmp://hyrule.local:1935/roam-3",
                "stillImageSource": "-i rtmp://hyrule.local:1935/roam-3",
                "maxStreams": 2,
                "maxWidth": 0,
                "maxHeight": 0,
                "vcodec": "copy",
                "acodec": "libfdk_aac",
                "audio": false
            },
            "smtp": {
                "email": "Driveway Camera"
            },
            "videoanalysis": {
                "active": false
            },
            "mqtt": {}
        },
        {
            "name": "Front Camera",
            "manufacturer": "Amcrest",
            "model": "IP4M",
            "serialNumber": "AMC027927A9CDE4B57",
            "motion": false,
            "unbridge": true,
            "hsv": true,
            "prebuffering": true,
            "prebufferLength": 4,
            "videoConfig": {
                "source": "-i rtsp://weathercam:we1hav7lar@<IP_ADDRESS>:554/cam/realmonitor?channel=1&subtype=0",
                "subSource": "-i rtsp://weathercam:we1hav7lar@<IP_ADDRESS>:554/cam/realmonitor?channel=1&subtype=1",
                "maxStreams": 2,
                "maxWidth": 0,
                "maxHeight": 0,
                "vcodec": "copy",
                "acodec": "libfdk_aac",
                "audio": false,
                "stillImageSource": "-i rtsp://weathercam:we1hav7lar@<IP_ADDRESS>:554/cam/realmonitor?channel=1&subtype=0"
            },
            "videoanalysis": {
                "active": false
            },
            "motionTimeout": 15,
            "smtp": {
                "email": "Front Camera"
            },
            "mqtt": {}
        }
    ],
    "platform": "CameraUI"
}

Hi all,
unfortunately i have the same issue.
Stream is working via vlc and device shown in the ui but not added to Home app.
regards,
Ede

Ah! I totally forgot to post the solution, sorry!
What I had to do was go into the Homebridge setting and clear the stale cameras from the cache. I had a few in there for things that were no longer in HB. Once I cleared them the new camera was shown in Home to add.

Ah! I totally forgot to post the solution, sorry!
What I had to do was go into the Homebridge setting and clear the stale cameras from the cache. I had a few in there for things that were no longer in HB. Once I cleared them the new camera was shown in Home to add.

Did not help me out :(

Had same problem - Under Homebridge Settings Unpair Bridges / Cameras / TVs / External Accessories clear out any cameras. in my case I did all of them. When the hub restarted camera.ui reloaded the current cameras and they showed up in Homekit


10042 http proxy

https://github.com/open-cluster-management/backlog/issues/10042

/hold

/unhold


Fish habitat modelling summary tables needs to be updated to reflect species found in parsnip watershed

the kid is on it

I ran this object with bt_rearing_km in place of st_rearing_km and got values of 0 for upstream habitat. So that means there is no modelling for this yet?

I actually have a model run that includes it and will update the remote server soon

Any chance you've updated the server yet with that bull trout model?


aws-cloudfront-apigateway Documentation Error

The sample code on the readme page says
const _api = defaults.RegionalApiGateway(stack, func);

which leads to this error:
▶ cdk synth
Cannot read property 'deployLambdaFunction' of undefined
Subprocess exited with error 1
I believe the correct example code should say:
  const [_api] = defaults.RegionalLambdaRestApi(this, func);

This agrees with the test code.
Environment

CDK CLI Version      : 1.56.0
CDK Framework Version: 1.56.0
AWS Solutions Constructs Version     : 1.56.0
OS                   : MacOS
Language             : typescript

Other

This is :bug: Bug Report

purplebari@ The documentation has been fixed in the latest release v1.58.0


A wildcard '*' cannot be used in the 'Access-Control-Allow-Origin' header when the credentials flag is true.

I get the following when using analytics:
XMLHttpRequest cannot load https://analytics.ionic.io/api/v1/events/54579a21. A wildcard '*' cannot be used in the 'Access-Control-Allow-Origin' header when the credentials flag is true. Origin 'http://localhost:8100' is therefore not allowed access.
did I do something wrong?
Cheers & Thanks!

not sure if that's the correct fix, but I have opened a pull request:
https://github.com/driftyco/ionic-service-analytics/pull/21


[Enhancement] add more error msg for restore if schema check fail (#26794)

Fixes #26794
What type of PR is this:

[ ] BugFix
[ ] Feature
[x] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Checklist:

[x] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[x] I have checked the version labels which the pr will be auto-backported to the target branch

[ ] 3.1
[ ] 3.0
[ ] 2.5
[ ] 2.4

[FE PR Coverage Check]
:disappointed: fail : 0 / 66 (00.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/catalog/OlapTable.java
0
50
00.00%
[1383, 1384, 1385, 1388, 1389, 1391, 1392, 1393, 1396, 1397, 1398, 1399, 1400, 1401, 1402, 1404, 1405, 1407, 1408, 1409, 1412, 1413, 1414, 1415, 1416, 1417, 1418, 1422, 1423, 1425, 1426, 1427, 1428, 1429, 1433, 1434, 1435, 1436, 1437, 1438, 1439, 1440, 1441, 1442, 1443, 1444, 1445, 1446, 1448, 1450]

:large_blue_circle:
com/starrocks/backup/RestoreJob.java
0
16
00.00%
[516, 518, 521, 522, 523, 524, 525, 526, 527, 528, 533, 534, 537, 540, 554, 556]


CADENZA-37227 feat: Add 'action' event, which is fired as 'action' event when clicking a postMessage action Cadenza link in views shown via CadenzaClient#show

https://jira.disy.net/browse/CADENZA-37227
This adds a 'action' event analogously to 'drillthrough'. 'drillthrough' postmessages are sent always with a values object and an optional context string. The new action event only has a context string sent along with the pm. The context to be optional (Designed as such to make it similar to 'drillthrough' - It is also optional on the UI).
'action' postmessages are sent when clicking an 'postMessage action' link. Those links are defined per External URL in the Management Center and can be used in Text, Indicator and Image views in Workbooks. Despite being organized per URL, the URL is absolutely irrelevant here (same situation with existing postMessage Drillthroughs).

The context to be optional (Designed as such to make it similar to 'drillthrough' - It is also optional on the UI).
What's the point of an action if you don't know which one it is?

Despite being organized per URL, the URL is absolutely irrelevant here (same situation with existing postMessage Drillthroughs).
It's not completely irrelevant, the URL is used to derive the target origin.


bufio: altered value when reading from tcpstream

goversion  "1.5"
arch "debian8-linux-amd64"
What did I do? "Read line from TCP stream"

I received altered data when reading from tcpstream.
Pointer receivedAAA is partially overwritten by pointer receivedBBB. (side effect of readSlice()?)
Only appears on unit testing.
Works fine with go1.4.2, go 1.4.3.
Here is a way to reproduce the issue:
package hello

import (
	"bufio"
	"fmt"
	"net"
	"os"
	"testing"
)

const (
	str1 = "AAAAAAAAAAAA"
	str2 = "BBBB"
)

func TestGetCommand(t *testing.T) {

	// Run TCP Server
	address, err := net.ResolveTCPAddr("tcp", fmt.Sprintf("<IP_ADDRESS>:%d", 30299))
	if err != nil {
		panic(fmt.Sprintf("Error starting message server: %s", err))
	}
	l, err := net.ListenTCP("tcp", address)
	if err != nil {
		panic(fmt.Sprintf("Error starting message server: %s", err))
	}
	defer l.Close()

	go func() {
		for {
			// Listen for an incoming connection.
			conn, err := l.AcceptTCP()
			if err != nil {
				// Connection closed
				os.Exit(0)
			}
			_, err = fmt.Fprintf(conn, str1+"\n")
			if err != nil {
				panic(fmt.Sprintf("Error sending session ID: %v", err))
			}
			_, err = fmt.Fprintf(conn, str2+"\n")
			if err != nil {
				panic(fmt.Sprintf("Error sending session ID: %v", err))
			}
			conn.Close()
		}
	}()

	// TCP client
	addr, err := net.ResolveTCPAddr("tcp", "localhost:30299")
	if err != nil {
		t.Error("Error resolving address: %v", err)
	}
	connection, err := net.DialTCP("tcp", nil, addr)
	if err != nil {
		t.Error("Error during dial : %v", err)
	}
	defer connection.Close()

	reader := bufio.NewReader(connection)
	receivedStr1, _, err := reader.ReadLine()

	if err != nil {
		t.Error(err)
	}

	receivedStr2, _, err := reader.ReadLine()
	if err != nil {
		t.Error(err)
	}

	fmt.Printf("VALUE -- type %T: q=%p\n", receivedStr1, receivedStr1)
	fmt.Printf("VALUE -- type %T: q=%p\n", receivedStr2, receivedStr2)

	if string(receivedStr1) != str1 {
		t.Error("Bad Str1, should receive " + str1 + " but got " + string(receivedStr1))
	}
	if string(receivedStr2) != str2 {
		t.Error("Bad Str2, should receive " + str2 + " but got " + string(receivedStr2))
	}

}

Output
?   	github.com/myapp	[no test files]
=== RUN   TestGetCommand
VALUE -- type []uint8: q=0xc8200a8000
VALUE -- type []uint8: q=0xc8200a8000
--- FAIL: TestGetCommand (0.00s)
	hello_test.go:76: Bad Str1, should receive AAAAAAAAAAAA but got BBBB
		AAAAAAA
FAIL
ok  	github.com/myapp/hello	0.002s

Error seems to be due to client bufio, since tcp dump is correct
####
T <IP_ADDRESS>:30299 -> <IP_ADDRESS>:43386 [AP]
  AAAAAAAAAAAA.
##
T <IP_ADDRESS>:30299 -> <IP_ADDRESS>:43386 [AP]
  BBBB.
####

I'm sorry, we cannot accept an issue report with zero error checking.
Please add appropriate error handling to your program.
On Fri, 22 Jan 2016, 00:04 Benjamin Chenebault<EMAIL_ADDRESS>wrote:

goversion "1.5"
arch "debian8-linux-amd64"
What did I do? "Read line from TCP stream"

I received altered data when reading from tcpstream.
Pointer receivedAAA is partially overwritten by pointer receivedBBB. (side
effect of readSlice()?)
Only appears on unit testing.
Works fine with go1.4.2, go 1.4.3.
Here is a way to reproduce the issue:
package hello
import (
"bufio"
"fmt"
"net"
"testing"
)
func TestBug(t *testing.T) {
AAA := "AAAAAAAAAAAA\n"
BBB := "BBBB\n"

// TCP Server
address, _ := net.ResolveTCPAddr("tcp", fmt.Sprintf("<IP_ADDRESS>:%d", 30299))
l, _ := net.ListenTCP("tcp", address)

go func() {
    for {
        // Listen for an incoming connection.
        conn, _ := l.AcceptTCP()
        fmt.Fprintf(conn, AAA)
        fmt.Fprintf(conn, BBB)
        conn.Close()
    }
}()

// TCP client
addr, _ := net.ResolveTCPAddr("tcp", "localhost:30299")
connection, _ := net.DialTCP("tcp", nil, addr)
defer connection.Close()

reader := bufio.NewReader(connection)
receivedAAA, _ := reader.ReadSlice('\n')
receivedBBB, _ := reader.ReadSlice('\n')

fmt.Printf("VALUE -- type %T: q=%p\n", receivedAAA, receivedAAA)
fmt.Printf("VALUE -- type %T: q=%p\n", receivedBBB, receivedBBB)

if string(receivedAAA) != AAA {
    t.Error("should receive " + AAA + " but got " + string(receivedAAA))
}
if string(receivedBBB) != BBB {
    t.Error("should receive " + BBB + " but got " + string(receivedBBB))
}

}
Error seems to be due to client bufio, since tcp dump is correct

T <IP_ADDRESS>:30299 -> <IP_ADDRESS>:43386 [AP]
AAAAAAAAAAAA.

T <IP_ADDRESS>:30299 -> <IP_ADDRESS>:43386 [AP]
BBBB.

—
Reply to this email directly or view it on GitHub
https://github.com/golang/go/issues/14055.

Sorry, issue updated.

@BenC- thanks for your issue report, i've confirmed this is a possible issue related to inlining or escape analysus. Running the sample program with -gcflags=-l resolves the issue. This is at revision 505fa7b42338f0aba7e4235acbc8274a20f3c1f0 which was around the beta2 release,
However, at 33a784e1f7fc56ecea696ab07558ca220e3bef0f the issue is gone. I suspect that this was fixed by @dr2chase 's recent escape analysis fixes.

@BenC- if you are able, you can try building master from source to verify the fix. If you don't want to build form source, the next beta or rc candidate should be out in a week or so.

@davecheney  Maybe i'm wrong but the issue seems to persist at 33a784e.
[GoProject:myapp]bchenebault@bchenebault ~/myapp> go version
go version devel +33a784e Thu Jan 21 01:35:07 2016 +0000 linux/amd64
[GoProject:myapp]bchenebault@bchenebault ~/myapp> go test -v github.com/...
?   	github.com/myapp	[no test files]
=== RUN   TestGetCommand
VALUE -- type []uint8: q=0xc820095000
VALUE -- type []uint8: q=0xc820095000
--- FAIL: TestGetCommand (0.00s)
	hello_test.go:76: Bad Str1, should receive AAAAAAAAAAAA but got BBBB
		AAAAAAA
FAIL
FAIL	github.com/myapp/hello	0.002s
[GoProject:myapp]bchenebault@bchenebault ~/myapp> go test -gcflags='-l' -v github.com/...                          1
?   	github.com/myapp	[no test files]
=== RUN   TestGetCommand
VALUE -- type []uint8: q=0xc8200a1000
VALUE -- type []uint8: q=0xc8200a1000
--- FAIL: TestGetCommand (0.00s)
	hello_test.go:76: Bad Str1, should receive AAAAAAAAAAAA but got BBBB
		AAAAAAA
FAIL
FAIL	github.com/myapp/hello	0.002s

Program is invalid. It assumes that ReadLine returns a string (the "str" variables), but it's not a string. It's a slice of memory and you don't own it. See:
https://golang.org/pkg/bufio/#Reader.ReadLine

The returned buffer is only valid until the next call to ReadLine.

OK got it. Sorry for the inconvenience.

That we my mistake, sorry, I thought ReadLine returned a string not a
[]byte. But I guess that is why ReadLine was replaced with bufio.Scanner.
On Fri, 22 Jan 2016, 04:25 Benjamin Chenebault<EMAIL_ADDRESS>wrote:

OK got it. Sorry for the inconvenience.
—
Reply to this email directly or view it on GitHub
https://github.com/golang/go/issues/14055#issuecomment-173644027.


Update to HttpClient

can we have the bridge updated to use the new httpClient instead of http.

Any movement on this? Without it using HttpClient, we can't intercept the requests to append any type of authorization headers native to Angular 4

It's on the list. Just need to set aside some time. Currently haven't needed it on any of our own projects, so it's remained a lower priority.

Just following up on this especially since angular 5 is out

Sorry about the continued delay. I'm working on this now, however making it work with Angular 5 apparently isn't as straight forward as I hoped. I have to redo the library to make it consumable in Angular 5. Hopefully won't take too long. I'm aiming for next week, but I'm waiting on a dependency that should be released this weekend before I can build the library.

The beta for the new package supporting HttpClient has been released.
https://github.com/Breeze/breeze.bridge2.angular


Support for ACL (Hnsv2)

Support for ACL (Windows - Hnsv2). This is needed so that access to wireserver can be blocked from inside the container.
Also added an ACL rule for blocking the access to wireserver by default.
Testing : Singetenancy - containerd.
docker  pending

@ashvindeodhar / @pjohnst5 - Let me if it is ok to put these in the default conf file [single tenant] or not, I think it is a good idea.

@ninzavivek are done with docker testing? The comment in the description says -
Testing : Singetenancy - containerd.
docker pending
I think it should be ok to add those ACLs by default. I have resolved the review comment.
The tests are failing though.


Enhance Settlement Engine client to support the following:

[ ] GET /accounts/:id
[ ] DELETE: /accounts/:id

These endpoints are not required at present.

This has been merged with #220


Mupx - failed to deploy with "MONGO_URL" set to replica set

Hi,
The "verifying deployment" part fails when I'm setting the MONGO_URL to a replica set.
Setting the MONGO_URL to each one of the servers under the replica set works fine.
I'm able to connect to the replica set when running locally.
Works with mupx:
mongodb://USER:PASSWORD@staging-shard-00-00-oafp7.mongodb.net:27017/admin?ssl=true
Works locally. Does not work with mupx:
mongodb://USER:PASSWORD@staging-shard-00-00-oafp7.mongodb.net:27017,staging-shard-00-01-oafp7.mongodb.net:27017,staging-shard-00-02-oafp7.mongodb.net:27017/admin?replicaSet=Staging-shard-0&ssl=true
mupx output:
[ec2-52-209-43-204.eu-west-1.compute.amazonaws.com] x Verifying deployment: FAILED
-----------------------------------STDERR-----------------------------------
t new MongoConnection (packages/mongo/mongo_driver.js:213:27)
    at new MongoInternals.RemoteCollectionDriver (packages/mongo/remote_collection_driver.js:4:16)
    at Object.<anonymous> (packages/mongo/remote_collection_driver.js:38:10)
    at Object.defaultRemoteCollectionDriver (packages/underscore/underscore.js:750:1)
    at new Mongo.Collection (packages/mongo/collection.js:103:40)
    at AccountsServer.AccountsCommon (packages/accounts-base/accounts_common.js:23:18)
    at new AccountsServer (packages/accounts-base/accounts_server.js:18:5)
    at meteorInstall.node_modules.meteor.accounts-base.server_main.js (packages/accounts-base/server_main.js:9:12)
    at fileEvaluate (packages/modules-runtime/.npm/package/node_modules/install/install.js:153:1)
    - - - - -
    at /bundle/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/mongodb/mongo_client.js:329:26
    at process._tickCallback (node.js:458:13)

=> Redeploying previous version of the app

-----------------------------------STDOUT-----------------------------------

To see more logs type 'mup logs --tail=50'

----------------------------------------------------------------------------

Thanks,
Yossi

This might help, setup mup.json such:
 // Install MongoDB on the server. Does not destroy the local MongoDB on future setups
  "setupMongo": false,

found the answer here:
https://github.com/arunoda/meteor-up/issues/1073
Hope this helps.

Thanks @nisdis.
"setupMongo" on mup.json is already set to false.
My problem is only with connecting to a replica set. Connecting to any of the databases under the replica set works fine.


Adding 2.5 release notes

Signed-off-by: Amit Galitzky<EMAIL_ADDRESS>Description
adding 2.5 release notes
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #779 (8e7981d) into main (a5d60ee) will decrease coverage by 0.04%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##               main     #779      +/-   ##
============================================
- Coverage     79.56%   79.52%   -0.05%
+ Complexity     4297     4296       -1
============================================
  Files           302      302
  Lines         17972    17971       -1
  Branches       1894     1894
============================================
- Hits          14299    14291       -8
- Misses         2771     2776       +5
- Partials        902      904       +2

Flag
Coverage Δ

plugin
79.52% <ø> (-0.05%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

.../java/org/opensearch/ad/AnomalyDetectorRunner.java
37.64% <0.00%> (-5.89%)
:arrow_down:

...ansport/handler/AnomalyResultBulkIndexHandler.java
83.87% <0.00%> (-3.23%)
:arrow_down:

...ain/java/org/opensearch/ad/model/ModelProfile.java
77.08% <0.00%> (-2.09%)
:arrow_down:

...rch/ad/transport/AnomalyResultTransportAction.java
79.95% <0.00%> (-0.93%)
:arrow_down:

.../main/java/org/opensearch/ad/NodeStateManager.java
73.85% <0.00%> (-0.66%)
:arrow_down:

...ava/org/opensearch/ad/model/TimeConfiguration.java
100.00% <0.00%> (ø)

...ava/org/opensearch/ad/task/ADTaskCacheManager.java
89.19% <0.00%> (+0.45%)
:arrow_up:

...rch/ad/transport/ForwardADTaskTransportAction.java
97.45% <0.00%> (+3.38%)
:arrow_up:

waiting on potential changes to jackson dependencies before merging

Actually jackson dependency removal was never backported to 2.x and 2.5 so no change on 2.5 release notes


Feature request: Please implement dependency injection support

Please add abstracted interfaces at least for the basic types such as JsonSerializer or at least for JsonSerializerSettings, so we're able to initialize a class in an IoC-managed project as follows:
public class FilesController
{
  readonly IJsonSerializerSettings _JsonSerializerSettings;
  public FilesController(IJsonSerializerSettings jsonSerializerSettings)
  {
    _JsonSerializerSettings = jsonSerializerSettings;
  }

  public async Task<IActionResult> Post()
  {
    MultipartSection jsonSection = ExtractJsonSection();
    Stream jsonStream = jsonSection.Body;

    using (var streamReader = new StreamReader(jsonStream))
    using (var jsonReader = new JsonTextReader(streamReader))
    {
      var serializer = JsonSerializer.Create(_JsonSerializerSettings);
      var model = serializer.Deserialize<MyEntityType>(jsonReader);
    }
  }
}

Apparently it's simpler than I thought:
https://github.com/aspnet/Mvc/issues/6816#issuecomment-350651930


Geotiff Writer does not use the right number of pixels

Expected situation
When I save a tile from a  RasterFrameLayer as GeoTiff, I would expect that the size of the pixel would be the same for the output GeoTiff than the RasterFRameLayer.
Current situation
When I use a filter condition to keep only a tile from a  RasterFrameLayer and I write it as GeoTiff, the resulting GeoTiff has the number of pixels than the original image instead of the number of pixels of the tile.
How to reproduce
See: https://gist.github.com/jdenisgiguere/980ca9f28d5ded5da0d30c39fea17e2f based on code provided by @metasim on gitter.im.

Here's where the actual pixel size is computed:
https://github.com/locationtech/geotrellis/blob/990f146da8217450fe037daeb058bbdbb4a9075c/raster/src/main/scala/geotrellis/raster/io/geotiff/tags/TiffTags.scala#L115-L116
So the bug is likely to do with the extent being used.


Fix commit hash length

https://github.com/open-web3-stack/open-runtime-module-library/blob/8f0a4ee1763c22969abbcefbd1585ef187eb34bd/build-script-utils/src/version.rs#L42
https://github.com/paritytech/substrate/pull/11404

Removed by #829


bower version 0.2.3

Hi. When would the 0.2.3 version be published in bower? I'm stil waiting for my commits in production, don't want to install it from my fork.
Btw, you didn't fix the version in bower.json.

Hey @Alex, ill get to it as soon as possible.
בתאריך 20 במרץ 2015 02:08, "Alex Danilenko"<EMAIL_ADDRESS>כתב:

Hi. When would the 0.2.3 version be published in bower? I'm stil waiting
for my commits in production, don't want to install it from my fork.
Btw, you didn't fix the version in bower.json.
—
Reply to this email directly or view it on GitHub
https://github.com/hakib/MassAutocomplete/issues/24.

Bumped version. Try it now.

.min version still doesn't have preventDefault(). Did you forgot to rebuild?

Very odd. Regenerated.

Thanks :+1:

When installing 0.2.3 from bower, there is no preventDefault() yet...

Hey Alex, Make sure you don't you fetch the package from the cache.
I just bower installed and it included the fix.

I've installed in on a new server today. No preventDefault on enter button. Had to install it from my fork again... :(


Make systems used in initialization of this Plugin public

It is often useful to create custom Stages or SystemSets but your Plugin does not allow for putting the systems into custom Stages or SystemSets. I need to be able to insert and delete Client and Server resource at runtime and run their systems when appropriate. Simply using the following is not flexible enough:
app
.add_plugin(QuinnetClientPlugin::default())
.add_plugin(QuinnetServerPlugin::default());

I need the controll so that I can manage when the Client and Server resource is created and manage when the systems run.
So make these pub please:
bevy_quinnet::client::create_client
bevy_quinnet::client::update_sync_client
bevy_quinnet::client::update_sync_client
bevy_quinnet::server::update_sync_server
and maybe also AsyncRuntime?

Thanks for your input, I will have a look at it tonight as I may want to modify some bits about the Client and Server resources if I come to expose create_... as public.
Could you tell me a bit more about your specific use case, needing to modify the plugin scheduling ?

So first: yes I need to (want to) be able to change the app scheduling / when the updates happen. I have an app which contains both the Client and the Server and which one gets used (connected to other instance) is determined at runtime. Currently I have to add both ClientPlugin and ServerPlugin and then at runtime setup (connect) one of them. Now why should there even exist a Client/Server instance (Resource) and why should its corresponding update system run when it is not in use?
And then lets say that inside my app I start running the Client and after some time I want to stop the Client and start running the Server. Then I could just remove the Client resource and insert the Server resource. And have all my custom systems set up to only run when the Client/Server resource exists.
If you want you can take a look at my work in progress game: https://github.com/tomaspecl/gravishot

I made some changes to help with these needs. You can find them in a bevy-0.10.0 branch here.
I will wait for Bevy 0.10.0 (which should happen in a week or so) before releasing these changes as it directly relates to the bevy scheduling which is modified by the stageless RFC going live with the 0.10.0 release.

AsyncRuntime is now pub
[client & server] You can still use the convenient .add_plugin(QuinnetClient/ServerPlugin::default()) in the same way as before.
[client & server] In order to have maximal control and only do the strict necessary, which is registering systems and events in the Bevy schedule [*], you can also use .add_plugin(QuinnetClient/ServerPlugin { initialize_later: true }) which will not create the Client/Server Resource.

You can then do a commands.init_resource::<Client/Server>(); later on when needed.
Client & server plugins systems are scheduled to only run if their respective resource exists.
You can remove their respective Resource through a command at runtime.

[*] Events & Systems scheduling: you still need to provide Bevy with events and systems to be scheduled at initialization time as bevy schedule is not dynamic (events modify the schedule too by adding their own systems).
Note that, even in the current version, server and client update systems won't do any work and just return if respectively, the server endpoint is closed, the client connections are all closed.
With the above changes, the client & server systems simply won't get called instead of returning. This is also the difference between Bevy 0.9 and 0.10 with_run_criteria (return early from a system) versus run_if (before entering a system)

Now part of main, released in 0.4.0


Use moditect for multi-release module-info

Jackson was using moditect to generate multi-release module.
I've tested on release 1.14.3.

Strange, github checks all failed because of moditect: Invocation of jdeps failed

Tested on master, jsr305 is not required in module-info because it's in the scope provided and it's not modular.

Thanks all - I have module support with #2025.
It would be great if folks could test this out and report back with confirmation of success or any issues. Please report back on the PR #2025 (or a new issue if any problems) as there are a few duplicate issues for this. To use a snapshot, git pull && mvn install, and use version 1.17.1-SNAPSHOT in your project.


Add queue-watcher lambda to provide custom metrics on queue work

What is this PR trying to achieve?
In order to allow application autoscaling to prevent scale down while messages are still being worked on, we need to react to in-flight & visible message counts.
A prototype has been running for the last couple of weeks and the data looks ok:

Who is this change for?
⚖ 🤖

Actually one question before merging: have you checked the impact on cloud watch costs? If I read the code correctly this is sending metrics every minute without batching the metric data...

Actually one question before merging: have you checked the impact on cloud watch costs? If I read the code correctly this is sending metrics every minute without batching the metric data...

Costs don't seem significant, I think because the once a minute send rate is relatively low.


Back key handling improvements

Demos change: https://github.com/gearvrf/GearVRf-Demos/pull/388
GearVRf-DCO-1.0-Signed-off-by: Mihail Marinov<EMAIL_ADDRESS>

Adds an onBackPress method to GVRScript/GVRMain giving a chance to the app to go back a level or let the framework show the Oculus exit UI.

Tested with both the black and white headsets. Ready for review.

needs rebase

Rebased

looks good to me

Will merge in the afternoon


Add native PyTorch support

Similar to #224, which is about numpy.
Codon seems very promising in its ability to accelerate computationally-heavy Python applications. However, its adoption currently faces an important issue - the lack of native support for important Python computational frameworks and libraries.
Maybe it would be useful to have one issue that would aggregate the most important libraries to port?

@janekb04 In my opinion, that may not be the most appropriate approach. Porting all the necessary libraries to make PyTorch Codon native would be a never-ending process since there are so many libraries involved:

astunparse
expecttest
hypothesis
numpy
psutil
pyyaml
requests
setuptools
types-dataclasses
typing-extensions
sympy
filelock
networkx
jinja2
fsspec

Also, Codon performance is on par with Numpy performance. Perhaps the best approach is to port the program from NumPy to Codon. The same goes for PyTorch.

Please see https://docs.exaloop.io/codon/general/roadmap for details. Definitely planned for the future.

Merging into #608 .


Crashes when Buffer is not available

Hey.
With the new release 2.0.2 including this change you are no longer able to use ts-case-convert in an environment where Buffer is not defined without poly-filling (most browsers). I think it would be awesome if the library could check for the existance of Buffer before using it to avoid having to polyfill 🙂

This is still an issue and should not be closed.


Add check to determine if the scan is ready

Failing integration tests are due to an outdated server deploy (last deployed end of december 2020). We cannot create a new release until these tests are passing.


sea-orm-cli truncates mysql passwords with special characters

Description
sea-orm-cli 0.9.3 couldn't connect to local mysql server.
In .env file,
DATABASE_URL="mysql://user1:vnsiwQci23$s@localhost/db1"
debug to sea-orm-cli 0.9.3/src/cli.rs , and the url string became
"mysql://user1:vnsiwQci23@localhost/db1"
Notice the password was truncated at char $.
It is in this function in src/cli.rs,  the truncated url was found.
pub async fn run_cli<M>(migrator: M)
where
    M: MigratorTrait,
{
    dotenv().ok();
    let url = std::env::var("DATABASE_URL").expect("Environment variable 'DATABASE_URL' not set");
    let db = &Database::connect(&url).await.unwrap();
    let cli = Cli::parse();

    run_migrate(migrator, db, cli.command, cli.verbose)
        .await
        .unwrap_or_else(handle_error);
}

Hey @Ajkcki, try to encode the $ as %24. That means your connection string would be... DATABASE_URL="mysql://user1:vnsiwQci23%24s@localhost/db1".
Btw... I think one should avoid using " ' $ , [ ] * ? { } ~ # % \ < > | ^ ; as password of database user to avoid this pitfall.

Mysql Validate Password Plugin specifically requires passwords contain at least on special char, it will be very difficult to avoid all these chars. In addition,  the same url string with char $ works in sqlx,  upon which sea-orm is built.  It would be reasonable to expect sea-orm accepts such a string as well.

Okay, changing the double quote DATABASE_URL="mysql://user1:vnsiwQci23$s@localhost/db1" into single quote should solve the issue DATABASE_URL='mysql://user1:vnsiwQci23$s@localhost/db1'.
The dollar sign is being treated as a variant in bash, i.e. $s. The variable will be evaluated when wrapped inside double quote but not when wrapped inside single quote.


[New Tool] cffreference:  Cite Existing CITATION.cffs in Yours

Who needs the new tool?
Any people who would like to automate the citing of other projects by their CITATION.cffs.  Hence, it is also great for build routines.
What should the new tool enable users to do?
People who would like to use cffreference can give it the path to an existing, readable and valid input CITATION.cff which will then be analysed regarding the lines to add to their own CITATION.cff.  If there is a preferred-reference configured, it will be used, by default.  If the output file is omitted, the results will be written to stdout, otherwise, the output will be appended to the given readable and writable output file (if it does not already exist, it will be created that way).
For instance, when having a local copy of this repository in order to provide the input file, one can cite it in the own repository using:
cffreference ../path/to/citation-file-format/CITATION.cff ../path/to/my-project/CITATION.cff

What benefit would the new tool add?
Users will be able to automatically cite other projects in theirs.
Implementation suggestions
My implementation suggestion can be found here:  https://github.com/kevinmatthes/cffreference.  It is written in Haskell (according to Haskell2010) and has a GNU Octave-based build routine.  The license is GPL 2.0.
It is just a draft (or "rapid prototype" in the terms of software engineering) but it sufficed to create a valid CITATION.cff for its own repository.
Can you help?

[x] Yes
[ ] No

About an hour ago, I released version 0.2.

Version 0.4 fixes the citation of preferred-citation sections.  Furthermore, it applies the configured type of a preferred citation automatically and assumes the input file to be of type: software, by default.

Version 0.5 introduces two new placeholders to place in a CITATION.cff, at option:  --- and ....  They are considered comments and will, hence, be skipped.

@kevinmatthes Thanks! As mentioned in #375, this is really helpful. Should we add it to the list of tools?

Yes, you are free to do so!
Please note that I am about to refactor the application in Rust, at the moment.  The original Haskell prototype still works, just the Rust version is not completely stable, yet.  When I finish the work on the Rust version, the Haskell prototype would become deprecated and is going to be replaced by the Rust executable in future releases.
I begun to refactor the prototype in Rust since it is easier to add command line option parsing in Rust than in Haskell.  In future releases, I plan to add some features using options, so the maintenance overhead would decrease.  Furthermore, the installation procedure is easier and the portability higher; the Haskell Platform appears to have different default content on multiple platforms what would disadvantage their users since they would need to install the respective missing libraries by hand using Cabal.
Anyway, you can add it as Haskell application since the Rust version is not finished, yet.  The Haskell version does not need any exotic libraries, so it is expected to work on multiple platforms.

Thanks @kevinmatthes! I've opened #384 to add this as a Haskell tool for now.
I'll let the PR auto-close this issue, but please reopen (or create a new one) when the Rust tool is implemented, and I'll make the necessary changes to the tools table then.

Okay, I will open a new issue, then. :+1:


None of the video shows in browser of OBS by webRTC

Which version are you using?
v1.0.3
Which operating system are you using?

[ x] Linux amd64 standard
[ ] Linux amd64 Docker
[ ] Linux arm64 standard
[ ] Linux arm64 Docker
[ ] Linux arm7 standard
[ ] Linux arm7 Docker
[ ] Linux arm6 standard
[ ] Linux arm6 Docker
[ ] Windows amd64 standard
[ ] Windows amd64 Docker (WSL backend)
[ ] macOS amd64 standard
[ ] macOS amd64 Docker
[ ] Other (please describe)

Describe the issue

Describe how to replicate the issue

start the server
publish with chrome by webrtc: https://<IP_ADDRESS>/ty/publish
read with of browser of OBS: [https://19](https://<IP_ADDRESS>/ty
none of the video shows in OBS but only chrome.

Did you attach the server logs?

no
Did you attach a network dump?

no

The server has nothing to do with the fact that the OBS web view is unable to handle WebRTC streams, this is evidently a OBS limitation that should be reported in the OBS bug tracker.


Use of LGPL Licence within an MIT Licenced Product is incorrect.

Yes

VS Code Version: All versions
OS Version: All OS's

VSCode uses an LGPL 2.1 library JSChardet, which is licensed under an LGPL2.1 licence. As the library is bundled and packaged with the product as it is distributed, I believe this means that the licence should be applied to VSCode as well.
If there is a reason why this doesn't apply it would be useful to know why.
Thanks,
Paul

Hi, thanks for opening this issue and asking the question!
To start, please know that I am not a lawyer :). I will do my best to answer your question here, but if you have additional concerns, it may be best for you to consult with an attorney.
In a nutshell, JSChardet is JavaScript port of Python’s chardet. It is not statically linked to either the binary or source of VSCode, it is an independent package. As a result, it does not change the licensing of VSCode.
I hope this helps!
Chris


[iOS] support expirationHandler

This is just a feature request, but it would be very helpful to me if this library supported passing a JS callback for the iOS-only expiration handler that allows you to 'clean up' for 1 second before your task is ended.
https://developer.apple.com/documentation/uikit/uiapplication/1623031-beginbackgroundtask
I am essentially incompetent as an Objective C developer, or I'd happily contribute a PR. :P

@petergaultney thanks for the feedback! I will take a look at it and come back to you as soon as I get something.


Standard vectors fix

This PR applies the fix @maciejhirsz mentioned in #17  (giving co-author credit). It also includes @wigy-opensource-developer's test and reverts back to using the rust only crypto crates.
Fixes #17

So a Japanese and English mnemonic for the same entropy results in a different seed based on BIP39. That I overlooked as well. Thanks.

Looking at adding that in.

@steveatinfincia Could you please have a look and consider merging this PR to v0.6, which includes the failing tests in #17 plus the fixes in the seed generation?

@steveatinfincia Any chance to review this yet?

Okay, this PR went a bit stale. I keep this fork up-to-date with the fixes for now, but I would be glad to drop it in favor of this upstream.

I've done the same on my own account, and I've just published that fork on crates, as cargo isn't happy about having a git-based dependency (not even a dev-dependency).

Hi Stephen @steveatinfincia ! Do you have some plans on how to progress forward with stabilizing the 0.6 release with or without this branch? You have not reacted to this PR for a month now and I am considering to replace dependency to the tiny-bip39 create from Maciej's fork soon if you stay unresponsive. Still thanks a lot for this tool, it was a great help to deal with the complexity this BIP-0039 hides.


Finishing UI Touch Ups and Fixes

Overview
In this issue, @waleedza99 will go through the UI and make sure that all the input labels are capitalized and consistent. Waleed will also ensure that all the input fields are equally and properly spaced. In addition to that, all input fields that are required should have the * label.
To Do

[ ] Add space between deployment image and deployment version select in the create and edit deployment form
[ ] Capitalize deployment name input field in create deployment form
[ ] Add the * to all input fields that are mandatory
[ ] Add (GBs) for the storage input field in the create and edit deployment form

@waleedza99 has finished roughly 50% of this issue and is going to continue polishing our UI over the next few days.


Passkey support

https://github.com/nextauthjs/next-auth/pull/6065

https://github.com/nextauthjs/next-auth/pull/8808


Schedoscope service reactive w external views

@utzwestermann , @lofifnc
PR summary:

implementated Futures along in org.schedoscope.scheduler.{service, rest} ( => make app complety reactive)
Added Tests for all main public SchedoscopeServiceImpl Class methods (with some additional params options checks to increase overall coverage) + SchedoscopeServiceRestClientImpl (via sendRequest mocking), which basically test json marshalling;
Changed schedoscope base conf (reference.conf) for Spray Server + Client config - timeouts not infinite, rather ~ 3x default, as they refer to client connections  (plus verbosity in comments)
Merged with lofifnc PR for External Views support to have consistency in Schedoscope Object + Actors implementation (aka: schemaManagerRouter + viewManagerActor);

Note 1: the import schedoscope.scheduler.rest.server points to test are SchedoscopeServiceRestClientImpl main public methods, which already have been tested. Thus skipped it;
Note 2: did not migrate to Akka-HTTP due to scala version capping the Akka-HTTP server that could be used (which is still behind Spray);

This PR has been merged with PR #115


TypeError: undefined is not an object (evaluating 'context.uiTheme.actionButton')

(https://user-images.githubusercontent.com/22549080/36246469-fac1907a-1255-11e8-8a74-72411d190780.jpg)

Same here!
// imports here...

type Props = {};
export default class App extends Component<Props> {
  render() {
    return (
      <View>
        <ActionButton /> // default with icon (default icon is +)
        <ActionButton icon="done" /> // with done icon
      </View>
    );
  }
}

// propsTypes here...

"prop-types": "^15.6.0",
"react": "16.2.0",
"react-native": "0.53.0",
"react-native-material-ui": "^1.19.0",
"react-native-vector-icons": "^4.5.0"

@hjbramos I've resolved it. It actually works when you nest it within ThemeProvider like this.
<ThemeProvider uiTheme={uiTheme}>  //your code here </ThemeProvider>
P.S. : If you can figure out how to use custom styles for button, drop a comment. Thanks

@dottnit Glad you got it. I've nested it within ThemeProvider but my app always crashes. Thanks.
To be honest, I started using react-native-material-ui today. I haven't used custom styles yet but in the readme.md it says that we can override like this: <Button style={{ container: { backgroundColor: 'blue' }}} />

I'll try those styles out.
Try to put up things afresh. Make sure you've included all necessary packages. If possible, please share error screens, I'll help amap.

Works fine!  I can close now! Thanks.
type Props = {};
export default class App extends Component<Props> {
  render() {
    return (
      <ThemeProvider uiTheme={uiTheme}>
        <View style={styles.container}>
          <ActionButton />
        </View>
      </ThemeProvider>
    );
  }
}


Would you want to add support for built-in GUI in the future?

TamaGo is based on Ubuntu. It is not friendly for Windows users who want use TamaGo with GUI. In the experience of my old project, the best way for Windows users is built-in GUI. Would you want to add support for built-in GUI? If the answer is yes, I am glad to work for it and I want to know which framework you like, tkinter, pygame or others. Thanks!

Close the issue because it do not make sense.


Process_Builder hangs if program output is too large

I have found out that our Enso Process_Builder hangs if the program that it runs returns too large output. Note that the threshold when this starts happening is not very large - it seems to be somewhere around 4-10kB (possibly OS-specific).
Repro:
from Standard.Base import all

prog = """
    const n = parseInt(process.argv[2]);
    for (var i = 0; i < n; i++) {
        console.log("A");
    }

run_proc n =
    IO.println "Running with arg="+n.to_text
    result = Process.new_builder "node" ["printer.js", n.to_text] . create
    result_n = result.stdout.length
    IO.println "   ==> has returned "+result_n.to_text

main =
    prog.write (File.new "printer.js")
    [1, 20, 100, 200, 500, 1000, 2000, 4000, 9000, 30000].each run_proc

for me yields the following results:
Running with arg=1
   ==> has returned 2
Running with arg=20
   ==> has returned 40
Running with arg=100
   ==> has returned 200
Running with arg=200
   ==> has returned 400
Running with arg=500
   ==> has returned 1000
Running with arg=1000
   ==> has returned 2000
Running with arg=2000
   ==> has returned 4000
Running with arg=4000
<HERE the program hangs forever>

I think I've already encountered a similar behaviour in the past.
This happens only if we don't inherit IO, but redirect the stdout of the child process to a Pipe that is connected to a ByteArrayOutputStream.
The problem is a kind of a 'deadlock':
https://github.com/enso-org/enso/blob/develop/engine/runtime/src/main/java/org/enso/interpreter/runtime/system/System.java#L112-L126
Our System.create_process builtin does the following sequence of operations:

Write ALL provided input to the child process's stdin (if specified).
Wait until the child process exits (waitFor).
Read all of stdout that the process wrote.
Read all of stderr that the process wrote.

However, this means that the other end of the stdout Pipe is only read after the process exits. If the process writes a lot of data to the Pipe, it gets 'saturated' and further writes are blocked by the OS, waiting for the other side of the Pipe to 'unclog' and read something from it. But this never happens, because Enso waits until the process exits before it will start reading. But the other process will not exit before it can finish the write operation, that needs to 'free buffer space' in the Pipe. So we get a deadlock.

To fix this, we need to be reading the stdout and stderr of the child process concurrently, a bit similarly to how I did it in one of our old tests:
https://github.com/enso-org/enso/blob/develop/lib/scala/testkit/src/main/scala/org/enso/testkit/process/WrappedProcess.scala#L23-L52
This way, we can buffer the read data on Java heap instead of within the Pipe that usually has a small buffer, and thus the child process will be able to continue writing even large chunks of output.
We may want to consider limiting the size of the buffered output to avoid OOM, but in case we exceed it, we should not block the child process but close the stream to indicate to it that no further writes will succeed. In such case, we should probably throw an exception.

I suspect this may be causing CI failures for me:
https://github.com/enso-org/enso/actions/runs/7542291021/job/20565495886?pr=8761#step:10:13702
 INFO ide_ci::program::command: cmdℹ Found 2 cases to execute (ETA 50s)
 INFO ide_ci::program::command: cmdℹ Benchmarking 'Startup.empty_startup' with configuration: [warmup={2 iterations, 5 seconds each}, measurement={3 iterations, 5 seconds each}]
 INFO ide_ci::program::command: cmdℹ [DRY-RUN] Benchmark 'Startup.empty_startup' finished in 3945.615 ms
 INFO ide_ci::program::command: cmdℹ Benchmarking 'Startup.hello_world_startup' with configuration: [warmup={2 iterations, 5 seconds each}, measurement={3 iterations, 5 seconds each}]
error: process didn't exit successfully: `target/rust/buildscript\enso-build-cli.exe backend ci-check` (exit code: 0xc000013a, STATUS_CONTROL_C_EXIT)
Error: The operation was canceled.

Although I'm not sure why they weren't occurring before.

Duplicate of #9549


Update version to 1.2.0

Also: Change email/github pointers to keyme

LGTM

LGTM. What repo is this?

@penguinland: A library I wrote a while back that we're now using in production.  Made sense to just absorb it here for ease of review :)


fix: set correct fetch-depth for semantic release

Summary
set fetch-depth to 0 for checkout action
Checklist

[x] Does your PR title have the correct title format?
Does your PR have a breaking change?:  no

This is for checkout action. Set fetch-depth: 0 means to fetch all history for all branches and tags

what are we trying to achieve by fetching all branches and tags? just wanted to make sure the PR has enough context on what the issue it's trying to solve

is this to fetch the tags to determine the new correct version to bump to?

Yes, semantic release need whole commit history to get new version. Otherwise it can only see the last commit.


Adding support for Prisma's datamodel syntax

Adding support for Prisma 2's new datamodel syntax for .prisma extensions.

Not sure if I've got everything, so all feedback/suggestions are welcome! 😀

Description
Adds support and grammar for Prisma 2's new datamodel syntax language for .prisma files.

Information about the new datamodel syntax can be found on Prisma 2's docs.

Documentation References

Prisma 2's Data Modeling docs
Prisma schema file usage docs

Checklist:

[x] I am adding a new language.

[x] The extension of the new language is used in hundreds of repositories on GitHub.com.

Search results for each extension:

https://github.com/search?q=extension%3Aprisma+NOT+nothack&type=Code

[x] I have included a real-world usage sample for all extensions added in this PR:

Sample source(s):

schema.prisma
datasource-mongo.prisma
datasource-postgres.prisma
datasource-mysql.prisma
datasource-sqlite.prisma

Sample license(s):

All are under apache-2.0

[x] I have included a syntax highlighting grammar: github-lightshow
[ ] I have updated the heuristics to distinguish my language from others using the same extension.

Not sure if the section below is applicable?

[ ] I am changing the color associated with a language

[ ] I have obtained agreement from the wider language community on this color change.

[URL to public discussion]
[Optional: URL to official branding guidelines for the language]

@pchaigno regarding the config.prisma files, I'm honestly not sure what or where they come from, however, they are not related to this pull request. Any ideas on how we can make sure we differentiate these files?

@pchaigno regarding the config.prisma files, I'm honestly not sure what or where they come from, however, they are not related to this pull request. Any ideas on how we can make sure we differentiate these files?

There are only 116 such files, so we can probably ignore them for now. Since Prisma is a data language, having these files detected as Prisma shouldn't have too many user-visible impacts.

Hey @pchaingo still having trouble adding the license from the vscode prisma repo. Any help here would be greatly appreciated!

Did you use scripts/add-grammar to add that grammar?

Yes!


if i want to add svg icon , how should i do ?

if i want to add svg icon , how should i do ?
/**
* SVG used by DPlayer
*/

const svgSource = {
    'play': ['0 0 16 32', 'M15.552 15.168q0.448 0.32 0.448 0.832 0 0.448-0.448 0.768l-13.696 8.512q-0.768 0.512-1.312 0.192t-0.544-1.28v-16.448q0-0.96 0.544-1.28t1.312 0.192z']
};

how create the play svg icon data?

The items in svgSource have the same format: 'type': ['viewbox', 'path']. type is a custom name, you can get viewbox and path in your specific .svg file.
You can only use svg which has only one <path>. SVG editor software generated files usually have more elements, it's a pity that you can't use them.


Fixed

Fixes #6 and #9, supercedes #8 and #10
CC @exocode you are apparently now the maintainer 💃
If you'd like help you are welcome to add me!

Hey, any chance of merging this @exocode  ? It supercedes my fix #8 and brings ssh-doctor up to date. It's a really useful plugin! :)

Can someone tag a new version? The latest tag is 1.0.0 from 5 years ago. @exocode ?

Ping @exocode , this gem needs a new release!


Make API and Open source more obvious to users [OSF-6710]

Purpose
To make the API more obvious to users, add link to API docs in footer and a link the API docs in help/support.
Changes
changes the static html in the page footer reflect suggestions.
Ticket
https://openscience.atlassian.net/browse/OSF-6710

Two minor changes and this should be good. Pass complete. 🐧


Improvement: add ability for numbers and special characters on passphrase

As someone who mostly uses passphrases I like having the ability to add numbers and specified special characters to the generation. I am willing to work on this myself if you are ok with it, just wanting to make an issue tracking it incase you do not want anyone else contributing.

Hey there. I am open to contributors, but at the moment, I'm planning to make some changes (mostly design-related) to this project. So, we can either brainstorm on how to implement this feature, and I will add it myself while making the changes, or if you want to do it yourself, we can wait until I'm done, and then I'll ping you here to let you know when it's ready to be worked on. Let me know what you think.

I am ok with either route, if you want to add it yourself while making the changes. My first thought as a rough thing is to have the checkboxes for including numbers and symbols show on the passphrase screen and just add them to either the end or the beginning. This would be a rough first start and looking at the code appears to be the fastest route.
A more in depth change would be to have the symbols be the word separators with an option to add them on add one or both ends along with the numbers being at one or both ends.


select version by priority rather than picking first

uses master version of kube for this with the newly merged kube::core::Version add (will be avialable in 0.66.0)
only did the basics here of linking up the feature we did in https://github.com/kube-rs/kube-rs/pull/764
we still need some way of testing this - and haven't gotten a crd to test out multi version atm.
replaces #24 for #23 - but needs some way of testing it. @imp if you are free - some review / future help here would be great.
if not, i'll pick this up at some point over the new year - and enjoy the end of your year :-)

Looks good. Nice touch sorting all_versions - if there happen to be a lot of them - the highest priority shows up first.


Unable to Run Test Suite Class Not Enclosed

I'm attempting to run test suites using sbt test, however, I am unable to resolve a runtime exception from the dispatcher. I've created the below repository to replicate the issue.
https://github.com/D3Castro/Junit5ModuleTestSuite

[error] WARNING: TestExecutionListener [net.aichler.jupiter.internal.event.Dispatcher] threw exception for method: executionFinished(TestIdentifier [uniqueId = [engine:junit-platform-suite]/[suite:com.test.TestSuite]/[engine:junit-jupiter]/[class:com.test.junit.SimpleClassTest], parentId = [engine:junit-platform-suite]/[suite:com.test.TestSuite]/[engine:junit-jupiter], displayName = 'SimpleClassTest', legacyReportingName = 'com.test.junit.SimpleClassTest', source = ClassSource [className = 'com.test.junit.SimpleClassTest', filePosition = null], tags = [], type = CONTAINER], TestExecutionResult [status = SUCCESSFUL, throwable = null])
[error] java.lang.RuntimeException: Test class com.test.junit.SimpleClassTest is not enclosed by com.test.TestSuite
[error]         at net.aichler.jupiter.internal.event.TaskName.nestedSuiteId(TaskName.java:135)
[error]         at net.aichler.jupiter.internal.event.TaskName.of(TaskName.java:110)
[error]         at net.aichler.jupiter.internal.event.Dispatcher.lambda$executionFinished$2(Dispatcher.java:99)
[error]         at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705)
[error]         at net.aichler.jupiter.internal.event.Dispatcher.executionFinished(Dispatcher.java:95)
[error]         at org.junit.platform.launcher.core.CompositeTestExecutionListener.lambda$executionFinished$10(CompositeTestExecutionListener.java:69)

Hi,
thank you for reporting this issue.
I'm on vacation and can't check it out right now but maybe someone else has
an idea what's going on in the meantime?
On Tue, Sep 20, 2022, 00:35 D3Castro @.***> wrote:

I'm attempting to run test suites using sbt test, however, I am unable to
resolve a runtime exception from the dispatcher. I've created the below
repository to replicate the issue.
https://github.com/D3Castro/Junit5ModuleTestSuite
[error] WARNING: TestExecutionListener
[net.aichler.jupiter.internal.event.Dispatcher] threw exception for method:
executionFinished(TestIdentifier [uniqueId =
[engine:junit-platform-suite]/[suite:com.test.TestSuite]/[engine:junit-jupiter]/[class:com.test.junit.SimpleClassTest],
parentId =
[engine:junit-platform-suite]/[suite:com.test.TestSuite]/[engine:junit-jupiter],
displayName = 'SimpleClassTest', legacyReportingName =
'com.test.junit.SimpleClassTest', source = ClassSource [className =
'com.test.junit.SimpleClassTest', filePosition = null], tags = [], type =
CONTAINER], TestExecutionResult [status = SUCCESSFUL, throwable = null])
[error] java.lang.RuntimeException: Test class
com.test.junit.SimpleClassTest is not enclosed by com.test.TestSuite
[error] at
net.aichler.jupiter.internal.event.TaskName.nestedSuiteId(TaskName.java:135)
[error] at
net.aichler.jupiter.internal.event.TaskName.of(TaskName.java:110)
[error] at
net.aichler.jupiter.internal.event.Dispatcher.lambda$executionFinished$2(Dispatcher.java:99)
[error] at
java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705)
[error] at
net.aichler.jupiter.internal.event.Dispatcher.executionFinished(Dispatcher.java:95)
[error] at
org.junit.platform.launcher.core.CompositeTestExecutionListener.lambda$executionFinished$10(CompositeTestExecutionListener.java:69)
—
Reply to this email directly, view it on GitHub
https://github.com/sbt/sbt-jupiter-interface/issues/54, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAFBC4NIGTLUYSCGTHELHCLV7DTB5ANCNFSM6AAAAAAQQQTXYU
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Is there anything related to the setup which may be causing this that I could investigate?

I think the issue is caused by using @Suite, which is part of the relatively new suite support in JUnit 5. Suite support comes with its own engine (engine:junit-platform-suite) which modifies the test identifier in such a way that TaskName can't handle it correctly anymore and makes the wrong assumptions.
To be sure I have to investigate a bit more and try to isolate it in a test case to see how we can fix it. But this might take a while I'm afraid.
Best bet for a short term solution would be to not use @Suite for now, if that's possible.

Any chances for @Suite support? :)

The original problem is - like @maichler explained – that TaskName cannot handle the name.
TaskName was added to handle nested tests (@Nested annotation) properly.
Credit for the idea behind the fix goes to @maichler, too.
As the JUnit 5 suite support is added via an own engine, we can just extend the check in TaskName for the nested tests to additionally check if the test engine is the JUnit5-Engine.
Just to be on the safe side, I added nested tests inside the suite definition and the test ran by the suite definition to make sure I didn't break it.
https://github.com/Nezisi/sbt-jupiter-interface/compare/bump-sbt-1_8...Nezisi:sbt-jupiter-interface:fix-junit5-suite-support
The PR is based up on the SBT 1.9 pull request, I'll wait with the PR until it's merged.

Here's https://github.com/sbt/sbt-jupiter-interface/pull/87, which takes the above branch and applies it on top of main now that I've bumped sbt version etc.


[feature] StreamX On Kubernetes For Helm Deployment Charts

Feature Request
功能简介
【English】Due to the cumbersome deployment procedures of StreamX On K8s, users cannot quickly experience the functions of Flink On K8s and experience a complete cloud native application. Therefore, Helm Charts can be used to quickly deploy a StreamX application, shielding the required underlying JDK, Scala, front-end and other environments. A StreamX On K8s deployment can be completed by helm install [app-name] StreamX/streamx-app -f /XXXX /values.yaml.Now we are investigating whether there are users with this part of demand. If there is demand, welcome to join this issuse to discussion
【中】由于用户在StreamX On K8s 部署步骤繁琐，无法进行快速拥有体验Flink On K8S功能和体验完整的云原生应用，故使用Helm Charts 能快速部署一个StreamX应用，屏蔽所需的底层JDK、Scala、前端等环境，通过容器进行快速构建出StreamX所需的基本环境，用户只需要通过helm install [app-name] streamx/streamx-app -f /xxxx/values.yaml 即可完成一次StreamX On K8s部署。现在调研是否有用户有这一部分需求，如果有需求欢迎加入此ISSUSE讨论
功能实现

StreamX DockerFiles From UI
StreamX DockerFiles From Console
StreamX Charts From Deployment.yaml
StreamX Charts From ConfigMap.yaml
StreamX Charts From Services.yaml
StreamX Charts Values Demo Files demo-value.yaml
Use helm charts to deployment streamX demo doc

Expired proposal


Update deps

Hey!
Found this library and it had some warnings and errors due to old libraries, so I updated the dependencies.

Nice one!


RFM - EasyZip

https://chocolatey.org/packages/Easy7zip/<IP_ADDRESS>

A updated package have been approved.


Can we use TypeDoc to document a .d.ts file generated by TypeScript?

Hello,
It seems we can't use TypeDoc to document a .d.ts file generated by TypeScript.
I would like:
main.js > TypeScript > main.d.ts > TypeDoc > main.html
(providing the .js file directly as the TypeDoc entry point doesn't work well: module.exports is considered as a property, and classes does not appear).
So I tried:
tsconfig.json
{
  "files": ["main.js"],
  "compilerOptions": {
    "allowJs": true,
    "declaration": true,
    "emitDeclarationOnly": true
  },
  "typedocOptions": {
    "entryPoints": ["main.d.ts"],
    "out": "docs"
  }
}

TypeScript generates the main.d.ts properly. Then TypeDoc fails with Unable to locate entry point, which is normal because main.d.ts has not been included.
But if I add it in files or include, TypeScript fails with Cannot write file 'main.d.ts' because it would overwrite input file.
Can we work around this?

I'd recommend making a tsconfig.docs.json and pointing typedoc at that instead with --tsconfig

Indeed. Thanks a lot.

Sorry for being a bit dense here, but @motla could I trouble you to post an example of the working configuration? I tried to follow this same issue myself and was not successful.

@aaclayton
If I remember correctly, you need to create two files:

tsconfig.json to convert your javascript code to a .d.ts file

{
  "files": ["main.js"],
  "compilerOptions": {
    "allowJs": true,
    "declaration": true,
    "emitDeclarationOnly": true
  }
}

(follow https://www.typescriptlang.org/docs/handbook/declaration-files/dts-from-js.html)

tsconfig.docs.json to convert your .d.ts file to HTML documentation

{
  "files": ["main.d.ts"],
  "typedocOptions": {
    "entryPoints": ["main.d.ts"],
    "out": "docs"
  }
}

Then you call typescript to execute the first one and typedoc --tsconfig tsconfig.docs.json for the second one.


Add the ability to download all the files attached to an issue

What a great idea!

@andjosh I've updated the PR.

Thanks!
Released in v1.7.0


Training this for other objects, e.g. Pedestrians

Hello,
First of all, this is great work! We really enjoyed reading this paper and thanks for sharing the code. We have been trying this approach out for other objects, e.g. pedestrians (in the current paper you have done this for vehicles). We have been finding issues with the training here and specifically, observing that the model is not able to learn at all. Is this something you have observed? Have you tried this with other objects other than vehicles?
Thanks,
Rishabh

me too


About Smesher ID duplication.

I'm asking below questions many times in Discord. But no one answer. So if someone can, please help me.
Q1.
https://user-images.githubusercontent.com/1897530/261271958-ad5c44d0-0fd9-48d5-b72a-66b44ad0f885.png
Am I correct in assuming that nodes that have not been rewarded so far will be able to earn rewards from the next Round if the errors listed here are not present?
Q2. Please provide specific steps to resolve the issue of duplicate Smesher IDs due to re-creation of PoS data.
I would like to be guided through the steps, not URLs or other links.
Also, I am asked why I recreated the data, but please just explain the steps, as replying to a question with a question will not solve my problem.
Thank you,

Q1. "Genesis config was updated after initializing a node" means that you have changed something in genesis params (time / extra-data or smth else). So your Node cannot sync and smesh well against the Mainnet. Remove the genesis prop from your node-config.7c...json and restart Smapp.
Q2.

First of all you need to ensure that you're using duplicated Smesher ID. To do so you need to check all your key.bin files, for example: shasum -a256 ./path/to/one/pos-data/key.bin and compare it with shasum -a256 ./path/to/another/pos-data/key.bin
If they are not equal — all good. Otherwise...
Turn off one of Nodes ASAP (to prevent being banned if it has not happened yet) and check does your identity already was banned or not.
If it is banned — then you need to recreate SmesherID and PoS data for all machines (which uses the same banned Smesher ID).
If it is not banned — then keep PoS of bigger size, and create another SmesherID and PoS data in another directory / another machine.
To create a new SmesherID you just need to NOT have any key.bin file in the PoS data directory. It will be created automatically. When it will be created you can ensure that it is a new one (see first step) without waiting to finish PoS initialization.

Thanks.
Q1. I was asking if that error was shown, but all my nodes were not shown after updated to 1.0.18.
Q2. Is this an investigation of duplication among multiple PCs and nodes?
When I recreated the PoS data, I deleted the key.bin file.
I am assuming that as long as this file is deleted, the re-created PoS data will not use duplicate IDs, is this correct?

Is this an investigation of duplication among multiple PCs and nodes?

We fined one of the possible problems in Smapp v1.0.18
There are also cases when the User may accidentally reuse the same identity.
We're working on how to help Users avoid shooting themselves in their feet.
However, if you're doing everything right, don't cut corners, and follow all recommendations, there should be no problems.
The basic recommendation: if you want to create another PoS data (for smeshing on another machine/node) — ensure that you've moved previous PoS directory entirely, and you have a different key.bin file in the newly created directory.

Also, if I delete key.bin, won't the PoS data I have created so far be wasted?

Correct. So don't delete it if you're using the PoS data.
--
I'm closing the issue. GitHub is not the best place for such questions and non-tech discussions.
It's for bug reports, feature requests, etc. Otherwise, we'll end up with a mess in Github issues.
So please, next time ask questions in Discord. If nobody helps you — mention someone from the Spacemesh team ;)

Hello, I'm very clear because your kindness support.
Sometime no one answer in discord. I asked this 3 4 times.
I could get now. I accept ticket closing. thanks.
Outlook for iOShttps://aka.ms/o0ukef を入手

差出人: Kirill Shumilov @.>
送信日r: Saturday, August 19, 2023 10:13:08 PM
宛先: spacemeshos/smapp @.>
CC: Hiroyuki Shibata @.>; Author @.>
件名: Re: [spacemeshos/smapp] About Smesher ID duplication. (Issue #1464)
Closed #1464https://github.com/spacemeshos/smapp/issues/1464 as completed.
―
Reply to this email directly, view it on GitHubhttps://github.com/spacemeshos/smapp/issues/1464#event-10136021492, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAS6MI25U6Z765A6VXGJWKLXWC3WJANCNFSM6AAAAAA3WLHTTA.
You are receiving this because you authored the thread.Message ID: @.***>


Set CICE restart frequency to yearly

Following on from https://github.com/payu-org/payu/issues/471, and to match the output frequency of other model components & run length, we need to set cice to produce annual restarst.
In cice.nml:
we need to set dumpfreq       = 'y'
and document somewhere that to change the run length you need to also change this setting?
Questions from me:
Which branches do I make the PR to ?
Which bit of documentation does this go in ?

Which branches do I make the PR to ?

The dev-* ones
https://github.com/ACCESS-NRI/access-esm1.5-configs/branches/all?query=dev-

Which bit of documentation does this go in ?

Would be good to have an inline comment in the namelist explaining this needs to be changed if runtime is set to < 1 year.
@atteggiani and @blimlim are working on the Hive docs run a model page, which is where this should also be noted I think.


Fixes actor metadata information in dashboard

Dashboard 0.11 introduced a regression making actor metadata not available at all (previously it showed only the actors in one of multiple replicas). This fixes the regression and should show all actors across all replicas.
Also upgrades insecure node modules for the frontend.

Verified in selfhosted and in Kubernetes with runtime RC 1.10.0-rc.4

I will release this as a hotfix.


Set pipefail and reset -e before return.

Set pipefail and reset -e before return
Otherwise set -e is turned off.
Close #4082
Signed-off-by: Sophia Guo<EMAIL_ADDRESS>

Grider on xlinux with arm jdk, exit instantly
https://ci.adoptopenjdk.net/view/Test_grinder/job/Grinder/6258/console

run aqa --sdk_resource nightly --build_list functional --target floatSanityTests --jdk_version 11 --jdk_impl hotspot --platform x86-64_linux

run aqa --help

https://ci.adoptopenjdk.net/view/Test_grinder/job/Grinder/6259


Create a release-1.1 build from the latest release-1.1 SHA 3ca97810

Create a release-1.1 build from the latest release-1.1 SHA 3ca97810

@lei-tang: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/release-e2e-simpleTests
38a574fc257958484136372c7a5ff514b44fcebe
link
/test release-e2e-simpleTests

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test release-e2e-simpleTests