readme: add discord link

Motivation for this change
The badge won't work until an admin (@zimbatm) enables it, but also open to removing  the badge if it takes away from the original intent of the other badges.
related issues:
#79787
related discussion:
https://discourse.nixos.org/t/nixos-nixpkgs-nix-discord-for-voice-communication/5845/29
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

requested review from members that I could think of that have done other community outreach activities

This would open the door to the already existing established communities for all other services, in addition to, it's possible other unofficial NixOS discords to want to add themselves to this list.
See this (probably incomplete) list:

https://nixos.wiki/wiki/Get_In_Touch#Chat

This would open the door to the already existing established communities for all other services, in addition to the existing unofficial NixOS Discords listed here to want to add themselves to this list.

Do you mind instead if I link to the the wiki page then? I didn't even know we had a discord until the thought of creating one crossed my mind.

Do you mind instead if I link to the the wiki page then? I didn't even know we had a discord until the thought of creating one crossed my mind.

Adding it to the wiki: sure, go ahead, it's there for this purpose.
Adding the wiki link to the Get In Touch page to the README? I have no strong opinion about it either way. Though I think the wording needs to make it obvious these are additional community-led resources.

I just removed the badge, and just added a link to the the wiki


request:  Override existing GoogleServie-plist

Is there an existing feature request for this?

[X] I have searched the existing issues.

Command
flutterfire configure --override-google-service=yes
Description
"Your GoogleService-Info.plist already exists, skipping write..."
Could be useful to be able to override / rewrite them through CLI.
Reasoning
Migration my flavors APP to use an other Firebase project.
Android google-service.json files were well rewrite but not the iOS one because of "Your GoogleService-Info.plist already exists, skipping write..."
Additional context and comments
No response

Will be out in the next release: https://github.com/invertase/flutterfire_cli/pull/174.


Do not prematurely return results to pool and synchronize incrementing success and setting results

cc @robskillington @martin-mao

Coverage increased (+0.04%) to 78.714% when pulling 99bd92a4b286f4c1b19974732f0a291b090d1c04 on xichen-race-fix into 7b3deb2033ed9479ab355a30443eed1a5e93c924 on master.

Coverage increased (+0.01%) to 78.694% when pulling a70607d050f26218ef5050f35abce5e685c943d1 on xichen-race-fix into 7b3deb2033ed9479ab355a30443eed1a5e93c924 on master.

Coverage decreased (-0.1%) to 78.543% when pulling a70607d050f26218ef5050f35abce5e685c943d1 on xichen-race-fix into 7b3deb2033ed9479ab355a30443eed1a5e93c924 on master.


Update release notes for TensorFlow 2.5.0

This PR is intentionally incomplete. One of the Release Owners for 2.5.0
needs to fill in the internal release notes for this version before the PR gets
submitted. Click on the :pencil2: icon in the header for RELEASE.md under
"Files Changed" above.

I don't seem to be authorized to edit this PR. Please will someone add the changes from closed PR 48581, incorporating @sanjoy's spelling correction?

Sure I will take care of it
On Tue, Apr 20, 2021 at 2:30 PM Duncan Riach @.***>
wrote:

I don't seem to be authorized to edit this PR. Please will someone add the
changes from closed PR 48581
https://github.com/tensorflow/tensorflow/pull/48581/files,
incorporating @sanjoy https://github.com/sanjoy's spelling correction?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/pull/48090#issuecomment-823612207,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AMWX6TKVIQJ4SDQX3M7DHTLTJXW65ANCNFSM4Z2NTT5A
.


Remove ast extension

Q
A

Is bugfix?
✔/❌

New feature?
❌

Breaks BC?
❌

Fixed issues

:+1:


Fixes regression of when same column name occurs multiple times in insert and update assignments

No issue to close
Description
Fixes regression of when same column name occurs multiple times in insert and update assignments
Client output
e.g. for psql
alex-dukhno=> insert into s.t (i, i) values (1, 2);
ERROR:  column "i" specified more than once
alex-dukhno=> update s.t set i = 2 + i, i = 2 * i;
ERROR:  syntax error: multiple assignments to same column "i"

Pull Request Test Coverage Report for Build 252388979

17 of 25 (68.0%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.06%) to 87.968%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/query_planner/src/planner/insert.rs
3
6
50.0%

src/query_planner/src/planner/update.rs
3
8
37.5%

Totals

Change from base Build 252351523:
-0.06%

Covered Lines:
7596

Relevant Lines:
8635

💛  - Coveralls


EIP-4844: Add beacon_block_and_blobs_sidecar gossip topic validation

Motivation

From https://github.com/ChainSafe/lodestar/pull/4774

Description

Add beacon_block_and_blobs_sidecar gossip topic validation. Implements https://github.com/ethereum/consensus-specs/blob/dev/specs/eip4844/p2p-interface.md#beacon_block_and_blobs_sidecar handling will be done in a follow up PR

@dapplion new code added to validateGossipBlobsSidecar to consume validateBlobsSidecar (check my last commit), just fyi


Feature/mps sampling

This PR adds the following features:

The measure method from MPS allows us to sample measurement outcomes in the Z basis from subsets of qubits in the state. The MPS then becomes the corresponding MPS on the rest of the qubits after projection.
The sample measure encapsulates the case above when all qubits are being measured.
The postselect method from MPS allows us to project MPS states to a subspace where certain qubits have been given a particular Z basis state. It also returns the probability of such postselection.
The get_statevector method returns the statevector of the MPS, with qubits sorted following ILO

I've also moved get_amplitude to be an MPS method, I feel it belongs there.

The expectation_value method calculates the expectation value of a given Pauli string.

I've updated the Jupyter notebook to show how to use sampling.


Typos in method/constant names

Here I suppose it means SUBTRACT instead?

get_video_texture* ?
I was fixing typos but feared that changing those is not a good idea so I made an issue instead.

Nice catch :) I was dead convinced that "substract" is correct, but actually it's the ancient form of "subtract" :D
get_video_texutre should indeed be get_video_texture.
You can't fix those directly in classes.xml, they need to be fixed in the source code, and then the doc file regenerated with -doctool. It will break the API, but at least for get_video_texutre I think it's fine, if anyone had been using it, they would have reported the typo :p

I think I'll try to get into the code and try to fix it :D
as for the 'substract' are you saying that it should remain unchanged?

as for the 'substract' are you saying that it should remain unchanged?

I think it could be fixed too, unless @reduz objects to it as it would break compatibility for users that rely on KEY_KP_SUBSTRACT. It's still quite easy for them to check the Global Scope and find the new name :)

At least KEY_KB_SUBTRACT can be added as an alias and the typo be marked as deprecated to be removed in the next version.


img to img support

Stable diffusion has img to img, is that possible with this version?

@Silver911r I work on it. im2im and inpainting functionality will be ready soon. stay with us

Awesome, this is really great, I've been 'making' art all morning, lol.

done


PR: Bugfixes & Button Clicking & Other New Functions

Added Code/Stuff

Added button interactions
Fixed some typos/bugs here and there
Added the buttons and dropdowns attribute to messages
Added a fetch_button function which gets a button with the specified label
P.S. this adds onto @ThePrivatePanda's PR

Wait wtf I can approve this

yes

Nice

The click function now returns the edited/newly created message that is created as a result of the interaction,

Importing functions directly from modules instead of doing module.func is marginally faster. I'll request some changes for that.

added responses in the form of ephemeral messages. should be able to merge now


const char * for file

Hi,
Why this member not just a const char * ?

Why should it be? This struct can be used outside of the library. Exception info is always a copy (e.g.) so the caller is free to do whatever it wants with any struct member.

if I understood the code correctly, the file member used to provide the file name (FILE) or hardcoded "..." string?
if yes - then is there any reason to copy file name into this member? why not just declare it as const char * and use the assignment like .file = __FILE__; or .file = "..."?
or I'm wrong?

Generally - yes, file would be a constant string like one coming from __FILE__ (set by newex() or other macros). However, this is not required and saneex is making no assumptions about it. file could be used for anything just like message, e.g. for function names (if the client code is somehow tracking them).
I believe this extra copying has negligible impact on the performance because file names are very short. Avoiding pointers is also a plus.


Top level array namespace

This is a part of #307, which simply adds the array API public members to the top-level cubed namespace. Later (probably after the next release), I'd like to deprecate everything in cubed.array_api for removal in the future.
Any thoughts @TomNicholas?

This seems sensible, my main question is just whether this would prevent it working with hypothesis for any reason (see https://github.com/cubed-dev/cubed/issues/307#issuecomment-1854571104)

This seems sensible, my main question is just whether this would prevent it working with hypothesis for any reason (see #307 (comment))

Seems to work fine:
>>> from hypothesis.extra.array_api import make_strategies_namespace
>>> import cubed as xp
>>> xps = make_strategies_namespace(xp)
>>> xps.arrays(xp.int8, (2, 3)).example()
cubed.Array<array-169, shape=(2, 3), dtype=int8, chunks=((2,), (3,))>
>>> import cubed.array_api as xp
>>> xps = make_strategies_namespace(xp)
>>> xps.arrays(xp.int8, (2, 3)).example()
cubed.Array<array-2396, shape=(2, 3), dtype=int8, chunks=((2,), (3,))>


B 20978 int show links for documents for DDASIT and DDDSIT

B-20978
Summary
This backlog adds links to download documents uploaded by the Prime for DDASIT and DDDSIT service items. Previously the links only displayed for Origin SIT service items.
Verification Steps for the Author
These are to be checked by the author.

[ ] Tested in the Experimental environment (for changes to containers, app startup, or connection to data stores)
[ ] Have the Agility acceptance criteria been met for this change?

Verification Steps for Reviewers
These are to be checked by a reviewer.

[ ] Has the branch been pulled in and checked out?
[ ] Have the BL acceptance criteria been met for this change?
[ ] Was the CircleCI build successful?
[ ] Has the code been reviewed from a standards and best practices point of view?

Setup to Run the Code

Instructions for starting storybook
Instructions for starting the MilMove application
Instructions for running tests

How to test

Access the Prime Simulator
You can use any shipment and add a service item for destination SIT or use the DSTSIT move code which already has SIT service items added.
Click the Upload Document button for DDASIT and upload a document then save. Note the name of the document so you can verify the proper file link is displayed.
Click the Upload Document button for DDDSIT and upload a document.
Logout and login as a TOO and do a search for DSTSIT under move search or find the shipment you used and select it.
Go to the Move Task Order page and scroll down and verify that there are links for the uploaded documents in the service items section for DDASIT and DDDSIT.

Frontend

[ ] There are no aXe warnings for UI.
[ ] This works in Supported Browsers and their phone views (Chrome, Firefox, Edge).
[ ] There are no new console errors in the browser devtools.
[ ] There are no new console errors in the test output.
[ ] If this PR adds a new component to Storybook, it ensures the component is fully responsive, OR if it is intentionally not, a wrapping div using the officeApp class or custom min-width styling is used to hide any states the would not be visible to the user.
[ ] This change meets the standards for Section 508 compliance.

Backend

[ ] Code follows the guidelines for Logging.
[ ] The requirements listed in Querying the Database Safely have been satisfied.

Database
Any new migrations/schema changes:

[ ] Follows our guidelines for Zero-Downtime Deploys.
[ ] Have been communicated to #g-database.
[ ] Secure migrations have been tested following the instructions in our docs.

Screenshots

ANDI screenshots. Ambiguous link is because I uploaded the a document with same name for two service items. All others for the links pass ANDI.


Add programatic Sedona Python API documentaion

Expected behavior
Python API docs that are programatically generated.
Actual behavior
There is a Python API, but the docs don't have the programatic Python API documented yet.  Here's an example:
from sedona.sql.st_functions import ST_Length

There's some opportunity for improvement here but they are documented: https://sedona.apache.org/latest/api/sql/DataFrameAPI/
Perhaps primarily there is a navigability issue

@james-willis - yea, the existing docs are great and perhaps docs that are generated from the Python code aren't necessary.
Let's look at the ST_GeomFromEWKT function for example.
It's not immediately obvious how to use this function with Python, but perhaps we can just add an example on that page.  If we use Python type hints, then the programmatically generated Python docs could be readable, but I am open to brainstorming!


@sce.trustAsHtml and 'TM' symbol lock up mobile browser

I have found that when I try pulling html via ajax and "injecting" it into an angular view with code such as:
                    $scope.loadedViaAjax = $sce.trustAsHtml(data);
                    $scope.$apply();

or...
                    var injector = $('#ngCourseDrilldown').injector();
                    var $compile = injector.get('$compile');

                    // Compile the HTML into a linking function...
                    var linkFn = $compile(data);

                    // HEre's another way to get the scope for the controller
                    var theScope = $('#mainController').scope();

                    var elem = linkFn($scope);

                    $('#ajaxTarget').append(elem);

                    // Now that the content has been compiled, linked,
                    // and added to the DOM, we must trigger a digest cycle
                    // on the scope we used in order to update bindings.
                    $scope.$digest();

A "TM" symbol (ascii 8482) in the html being injected will cause mobile browsers to lock up completely.  Very strange.  Doesn't happen on any of the desktop browsers I've tried (chrome, IE, Firefox), but it does happen on mobile Chrome, Dolphin and Safari.
Took me about 6 hours to track this down, and I still don't believe it.  But took the TM symbol out of the html and now it works.

I should add that the first code example only works because there is a directive involved that I failed to mention...looks like this...
.directive('myNgCompile', function ($compile, $parse) {
return {
restrict: 'A',
link: function (scope, element, attr) {
var parsed = $parse(attr.ngBindHtml);
        //Recompile if the template changes
        scope.$watch(
          function () {
              //alert('a');
              return (parsed(scope) || '').toString();
          },
          function () {
              // alert('b');
              $compile(element, null, -9999)(scope);  //The -9999 makes it skip directives so that we do not recompile ourselves
          }
        );
    }
};

@legendarytoe, could you create a live demo of the issue (e.g. using CodePen, Plnkr etc) ?
Something that we can ran in a mobile browser and see it crashing ?
That would help identify and solve the problem more quickly.

I spend some time trying to reproduce this issue independent of our
application and I couldn't do it.  Very puzzling. I now have the sense this
is more of a browser issue that is independent of angular completely.
Please close this issue.  False alarm, sorry!
On Sat, Jan 9, 2016 at 8:38 AM, Georgios Kalpakas<EMAIL_ADDRESS>wrote:

@legendarytoe https://github.com/legendarytoe, could you create a live
demo of the issue (e.g. using CodePen, Plnkr etc) ?
Something that we can ran in a mobile browser and see it crashing ?
That would help identify and solve the problem more quickly.
—
Reply to this email directly or view it on GitHub
https://github.com/angular/angular.js/issues/13713#issuecomment-170243909
.

Thx for looking into this. Closing...


Upgrade Accumulo version to 1.9.3

In line with Gaffer issue #2249, the accumulo version needs to be upgraded in Gaffer tools. Upgrade any deprecated functions from the Accumulo API.
Backwards compatibility should be ensured such that anyone still using older versions of Accumulo can still use the new version of Gaffer without having to upgrade their Accumulo installation.
Info about 1.9.3 here: https://accumulo.apache.org/release/accumulo-1.9.3/

Issue:
When gaffer-tools builds for accumulo 1.9.3 I get a compile error with:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile(default-compile) on project performance-testing-aws:Compilation failure[ERROR] .../performance-testing/performance-testing-aws/src/main/java/uk/gov///performancetesting/aws/PublishAccumuloMetricsToCloudWatch.java:[100,57] error: incompatible types: Map<String,String> cannot be converted to SortedMap<String,String>
Explanation:
The AWS CloudWatch reporter obtains information from the Accumulo system - a list of tables in the database. This information used to be returned (ver. 1.8.1) as a SortedMap<String, String> but in the newer version of Accumulo (ver. 1.9.3) this has been changed to a Map<String, String> (SortedMap's superclass).
Solution:
I have changed the code so the local attribute is now a Map<String, String> and this cures the compilation error. The attribute is private and only used in this immediate area of the code.
The change compiles OK when used with either of the above mentioned accumulo versions.

Merged into develop


Docker-hub: Automated build to follow tags from source repo

Currently the docker hub allows following a single gittag to automatically build new images based on that tag. What i'd like to propose is that the hub follows not only a single tag, but all tags. Thus if i push a new 'tag' to my repo, that tag is used for a new tag in my automatic built image.
This would allow far easier tag usage in automated builds since my public images have the same versions automatically as my source repo.

Hi all this is a great idea. But since it is hub specific and not a bug with anything in this repo I am going to close this, but feel free to email<EMAIL_ADDRESS>with your requests!

Have already raised issues with<EMAIL_ADDRESS>over problems with automated builds.  Gets replies but no action.

Excellent idea. I emailed support too.

@fakewaffle have had very little success with asking for any improvements to hub.  Seems like a waste of time, with little/no change or fixes delivered to automated building in over a year.  We got sick of waiting and have moved onto other infrastructures for build management.

:+1: on this

:+1:  for this

@pbelmann Doesn't look like this will happen, I'm in the process of moving my repos over to https://quay.io by the CoreOS guys, much nicer Docker image repo, and with git tag -> docker tag tracking. Only change will be prepending quay.io/ to author/project.

@jpillora thanks for reporting this. Maybe I will switch to quay.io too.

Thanks @jpillora!

They mention having added an internal issue related to this ( https://forums.docker.com/t/auto-builds-for-all-tags/682 ).

:+1: +1 mailed to<EMAIL_ADDRESS>


Processing of invalid gradientTransform

What happened?

lib
pic

svg

ink

resvg

rsvg

What should have happened?

I assume the middle square should not be rendered at all (as firefox)

Copyright
source https://commons.wikimedia.org/wiki/File:SVG_edge_case_-_zero_scale_gradient.svg
author TilmannR
license Public Domain

An invalid gradientTransform is an undefined behavior. We can do whatever we want. resvg/rsvg simply skips the gradientTransform. Chrome and Inkscape are keeping only the last stop. Firefox ignores the element completely. And Batik crashes.

PS: As you may noticed, an undefined behavior is a common theme in the SVG. You can't even imagine how many things are not defined. The resvg test suite has like 50 test files with UB. I've even plan to create a list of all undefined I know.

is gradientTransform="scale(0)" invalid ?
inkscape assumes something different:
https://gitlab.com/inkscape/inbox/issues/1928#note_296375486

the entire shape is rendered in the color of the second stop

But why? Spec doesn't specify this. I mean, this is how it rendered by other applications:

Given how different the results are I'm not sure we can interpreter the spec this way.

But why?

Because it is the limes of x to zero in gradientTransform="scale(x)"
<?xml version="1.0" encoding="UTF-8"?>
<svg viewBox="-20 -20 40 40" xmlns="http://www.w3.org/2000/svg">
	<linearGradient id="a" gradientTransform="scale(0)">
		<stop stop-color="#00f" offset="0"/>
		<stop stop-color="#ff0" offset="1"/>
	</linearGradient>
	<rect x="-29" y="-20" width="40" height="40" fill="url(#a)"/>
</svg>

<?xml version="1.0" encoding="UTF-8"?>
<svg viewBox="-20 -20 40 40" xmlns="http://www.w3.org/2000/svg">
	<linearGradient id="a" gradientTransform="scale(0.1)">
		<stop stop-color="#00f" offset="0"/>
		<stop stop-color="#ff0" offset="1"/>
	</linearGradient>
	<rect x="-20" y="-20" width="40" height="40" fill="url(#a)"/>
</svg>

<?xml version="1.0" encoding="UTF-8"?>
<svg viewBox="-20 -20 40 40" xmlns="http://www.w3.org/2000/svg">
	<linearGradient id="a" gradientTransform="scale(1)">
		<stop stop-color="#00f" offset="0"/>
		<stop stop-color="#ff0" offset="1"/>
	</linearGradient>
	<rect x="-20" y="-20" width="40" height="40" fill="url(#a)"/>
</svg>

Limit? This is an affine transform. And 0,0,0,0,0,0 considered invalid.


Add a note to install python-dev in README

Before submitting

[ ] Was this discussed/approved via a Github issue? (no need for typos, doc improvements)
[X] Did you read the contributor guideline?
[X] Did you make sure to update the docs?
[ ] Did you write any new necessary tests?

What does this PR do?
Add a note for the python-dev requirement
Did you have fun?
yes

prevents such install error:
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python3.6m -c fairseq/clib/libbleu/module.cpp -o build/temp.linux-x86_64-3.6/fairseq/clib/libbleu/module.o -std=c++11 -O3
    fairseq/clib/libbleu/module.cpp:9:20: fatal error: Python.h: No such file or directory
     #include <Python.h>

First-time contributors need a maintainer to approve running workflows ?

"First-time contributors need a maintainer to approve running workflows" #2


NIFI-10904 Changed the font color for drop down menus to avoid the app…

…earance of menu items being disabled

Summary
NIFI-00000 - Changed the font color for drop down menus in controller and processor properties. The current color gives the appearance that the drop down option is disabled.
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking

[X] Apache NiFi Jira issue created

Pull Request Tracking

[X] Pull Request title starts with Apache NiFi Jira issue number, such as NIFI-00000
[X] Pull Request commit message starts with Apache NiFi Jira issue number, as such NIFI-00000

Pull Request Formatting

[X] Pull Request based on current revision of the main branch
[X] Pull Request refers to a feature branch with one commit containing changes

Verification
Please indicate the verification steps performed prior to pull request creation.
Build

[X] Build completed using mvn clean install -P contrib-check

[X] JDK 17

Licensing

[ ] New dependencies are compatible with the Apache License 2.0 according to the License Policy
[ ] New dependencies are documented in applicable LICENSE and NOTICE files

Documentation

[ ] Documentation formatting appears as expected in rendered files

Thank you for your feedback @exceptionfactory. I've changed it to use .combo-option-text instead of .unset to set the color. This should only affect the color of drop down menu texts.

@markobean Yes, that's what I expected it to be displayed. Thank You.

I checked in Chrome and the unset class still takes precedence.

I wonder if we just need to remove the unset class. It seems like this class is used for disabled, unavailable, or sensitive items. Also not a bad idea to italicize Reference parameter... and Create Controller Service... options to help differentiate from other options.

@mtien-apache Yea, so for those 2 cases, Reference parameter and Create Controller Service, the unset tag does take precedence, However, I thought this was intended for these 2 options, as well as any disabled options. If there are any other options, they will get the new tag and be colored black. I can remove the unset tag for these 2 options and italicize them. That way they will be colored black, but still be distinguishable from other non disabled options.

@Freedom9339 Looks like the unset tag is initially added when the the option item is created, but should have probably been removed after verifying the option is valid. I don't think the new tag is necessary. If the unset tag is not present, then the text color will default to black.


Mrjs examples page clips to the ground when entering AR mode

https://mrjs.io/

related to https://github.com/Volumetrics-io/mrjs/issues/383

https://github.com/mrdoob/three.js/issues/27727


Add pre-commit to cookitcutter

This PR adds the discussed pre-commit support as an optional choice for users.

You don't want {{cookiecutter.repo_name}}/.pre-commit-hooks.yaml - that's how a repo provides hooks, and the typical CMS user isn't building a linting tool.


feat: add macro impls for events

Known limitations to be addressed at a later date:
events can only comprise of exclusively Field elements

Benchmark results
Metrics with a significant change:

batch_insert_into_append_only_tree_32_depth_ms (256): 130 (-63%)
batch_insert_into_append_only_tree_32_depth_hash_ms (256): 0.448 (-63%)
batch_insert_into_indexed_tree_20_depth_ms (256): 181 (-59%)
batch_insert_into_indexed_tree_20_depth_hash_ms (256): 0.479 (-59%)
avm_simulation_time_ms (Token:mint_public): 608 (+695%)
avm_simulation_time_ms (Token:assert_minter_and_mint): 74.5 (-66%)
avm_simulation_time_ms (Token:transfer_public): 37.5 (-36%)
l2_block_processing_time_in_ms (4): 748 (-58%)

Detailed results
All benchmarks are run on txs on the Benchmarking contract on the repository. Each tx consists of a batch call  to create_note and increment_balance, which guarantees that each tx has a private call, a nested private call, a public call, and a nested public call, as well as an emitted private note, an unencrypted log, and public storage read and write.
This benchmark source data is available in JSON format on S3 here.
Proof generation
Each column represents the number of threads used in proof generation.

Metric
1 threads
4 threads
16 threads
32 threads
64 threads

proof_construction_time_sha256_30_ms
11,494 (+1%)
3,254 (+5%)
1,764 (+1%)
1,454 (-1%)
1,469 (+1%)

proof_construction_time_sha256_100_ms
45,681 (+2%)
12,278 (+2%)
5,730 (+1%)
5,619 (+1%)
5,555 (+1%)

proof_construction_time_poseidon_hash_ms
79.0 (+1%)
34.0 (-3%)
34.0
58.0 (+2%)
87.0 (-2%)

proof_construction_time_poseidon_hash_30_ms
1,536 (+1%)
423 (+1%)
203
221 (-3%)
267

proof_construction_time_poseidon_hash_100_ms
5,802 (+1%)
1,606 (+2%)
728
785 (+1%)
807 (+1%)

L2 block published to L1
Each column represents the number of txs on an L2 block published to L1.

Metric
4 txs
8 txs
16 txs

l1_rollup_calldata_size_in_bytes
1,412
1,412
1,412

l1_rollup_calldata_gas
9,476
9,474
9,476

l1_rollup_execution_gas
610,297
610,295
610,297

l2_block_processing_time_in_ms
:warning: 748 (-58%)
1,401 (-1%)
2,679 (-9%)

l2_block_building_time_in_ms
25,447 (-12%)
50,421 (-4%)
100,147 (-13%)

l2_block_rollup_simulation_time_in_ms
25,350 (-12%)
50,115 (-4%)
99,795 (-14%)

l2_block_public_tx_process_time_in_ms
21,796 (-13%)
46,389 (-4%)
96,085 (-13%)

L2 chain processing
Each column represents the number of blocks on the L2 chain where each block has 8 txs.

Metric
3 blocks
5 blocks

node_history_sync_time_in_ms
7,046
9,764 (-2%)

node_database_size_in_bytes
12,181,584
16,117,840 (+1%)

pxe_database_size_in_bytes
16,254
26,813

Circuits stats
Stats on running time and I/O sizes collected for every kernel circuit run across all benchmarks.

Function
time_ms
bytecode_size_in_bytes

GasToken:_increase_public_balance
67.4 (-1%)
13,873

GasToken:set_portal
16.9 (-1%)
3,495

Token:constructor
93.1
24,207

FPC:constructor
62.1 (+1%)
13,893

GasToken:mint_public
52.2 (+1%)
10,241

Token:mint_public
:warning: 608 (+695%)
19,216

Token:assert_minter_and_mint
:warning: 74.5 (-66%)
13,034

AuthRegistry:set_authorized
32.5 (+2%)
7,869

FPC:prepare_fee
81.5 (-3%)
15,187

Token:transfer_public
:warning: 37.5 (-36%)
31,425

FPC:pay_refund
65.8 (+13%)
20,080

Benchmarking:increment_balance
2,655 (-6%)
15,465

Token:_increase_public_balance
59.4 (+3%)
15,089

FPC:pay_refund_with_shielded_rebate
53.0 (+2%)
21,167

Public DB Access
Time to access various public DBs.

Function
time_ms

get-nullifier-index
0.182 (-2%)

Tree insertion stats
The duration to insert a fixed batch of leaves into each tree type.

Metric
1 leaves
16 leaves
64 leaves
128 leaves
256 leaves
512 leaves
1024 leaves

batch_insert_into_append_only_tree_16_depth_ms
10.3 (-5%)
16.6 (-5%)
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_count
16.8
31.7
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_ms
0.596 (-5%)
0.510 (-5%)
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_32_depth_ms
N/A
N/A
48.3 (-5%)
75.3
:warning: 130 (-63%)
244
467

batch_insert_into_append_only_tree_32_depth_hash_count
N/A
N/A
95.9
159
287
543
1,055

batch_insert_into_append_only_tree_32_depth_hash_ms
N/A
N/A
0.493 (-5%)
0.463
:warning: 0.448 (-63%)
0.442 (-1%)
0.436

batch_insert_into_indexed_tree_20_depth_ms
N/A
N/A
59.1 (-5%)
111 (-5%)
:warning: 181 (-59%)
350 (-1%)
688

batch_insert_into_indexed_tree_20_depth_hash_count
N/A
N/A
109
207
355
691
1,363

batch_insert_into_indexed_tree_20_depth_hash_ms
N/A
N/A
0.500 (-5%)
0.498 (-5%)
:warning: 0.479 (-59%)
0.475 (-1%)
0.473

batch_insert_into_indexed_tree_40_depth_ms
N/A
N/A
72.5 (-7%)
N/A
N/A
N/A
N/A

batch_insert_into_indexed_tree_40_depth_hash_count
N/A
N/A
133
N/A
N/A
N/A
N/A

batch_insert_into_indexed_tree_40_depth_hash_ms
N/A
N/A
0.516 (-7%)
N/A
N/A
N/A
N/A

Miscellaneous
Transaction sizes based on how many contract classes are registered in the tx.

Metric
0 registered classes
1 registered classes

tx_size_in_bytes
85,672
670,983

Transaction size based on fee payment method
| Metric |  |
| - |  |


Goal seeking somehow conflicts with the appealing enchantment from aquaculture

Noticed this while working on my modpack, may want to look into it. Changing the ID does not help.

Not reproducible (at least in the latest version)


Enable CI e2e job against single minikube cluster

This updates the pre-commit CI job. It continues to run integration tests but now runs unmanaged instead of managed e2e tests i.e. a single minikube k8s cluster.
This works because we are requesting an Ubuntu 16.04 distro (Xenial) from Travis in order to use systemd. This distro is not actually documented in Travis, but appears to be available as an experimental feature.

Nice work, and it's passing!  Minor nits as per @irfanurrehman.  Also, would it be possible to redirect output of minikube setup to a file instead of dumping to stdout to have less noise to filter through when tests fail?

Also, would it be possible to redirect output of minikube setup to a file instead of dumping to stdout to have less noise to filter through when tests fail?

The minikube setup actually doesn't really output that much to stdout. I think the problem you're referring to is the -x debug output from the entire pre-commit.sh script that is passed in the travis config. I also felt like it was excessive. However, with the recent update to check /healthz for cluster readiness, it now comes back as ok immediately (somewhat concerning) so the log becomes much shorter and manageable.
Alternatively, if we feel the debug output is not useful, I can add a DEBUG flag that is not set by default. If an error occurs we'd just have to update the travis config to investigate.

I kicked the travis build so we can be sure this still works. This looks like a very fine start and is LGTM to me.

/lgtm


failing unit test 23

Haven't fixed it yet so leaving myself an issue -- test_23 failing for BFGTStateGraph.
Input:
[
  {"Add": [1, 2]},
  {"Add": [3, 2]},
  {"Add": [2, 1]},
  {"Add": [2, 3]},
  {"Close": 2},
  {"Close": 1}
]

Expected output:
{
  "live": [],
  "dead": [],
  "unknown": [1, 2],
  "open": [3]
}

Actual output:
thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `Some((Open, Level(0)))`,
 right: `Some((Unknown, Level(0)))`', src/graph.rs:172:9

New output: ExampleOutput { live: [], dead: [1, 2, 3], unknown: [], open: [] }


added mavenCentral() for gradle builds

As jCenter is shutting down so adding mavenCentral() so that gradle builds fail

Done on main. Thank you!


implement a reduce operator & ZQL group-by on top of it

All aggregate functions can be modeled as reduce
This adds a reduce operator so we can do:

group by
avg, sum, count, min, max, etc.
group_array

This targets SQL behavior for group-by.

note to self: pullHistory messages can stop at a reduce operator if the operator has already been seeded with history.

Not sure that I like the aggregation API:
https://github.com/rocicorp/rails/pull/45/files#diff-c88168576b354654e2ec061b5bbab48370b2e04ff6aeec9f2a52d741558d68daR449-R454
 stmt = q
    .select('status')
    .groupBy('status')
    .array('assignee')
    .min('created')
    .prepare();

maybe it should be:
 stmt = q
    .select('status', agg.array('assignee'), agg.min('created'))
    .groupBy('status')

Another strawman:
q
  .select('status').
  .agg('array', 'assignee')
  .agg('min', 'created')

But I think I prefer the first suggested API.

updated the API to allow putting aggregate calls in select:
q
    .select(
      'status',
      agg.array('assignee'),
      agg.min('created', 'minCreated'),
      agg.max('created', 'maxCreated'),
    )


Doesnt work correctly for portrait window

Godot Version 4.2.1.stable.mono
I tried using the addon with a portrait game, and scalates the image when traying to.
It happens to me with any portrait value. The error starts when the viewport height value is greater than the viewport width value.

Ooo nice catch! Yeah looks like the code just handles aspect ratio's greater than 1,  I'll have a look into fixing this soon

@Javigor this has been fixed now, thanks for reporting!
I've updated the release on GitHub and it will available on the asset library soon. Let me know if you have any other issues.

It works fine!
Thx!!


can-import: rename "as" to "export-as"

Going to keep it backwards compatible.
What this does in reality is export the property on the template's viewModel, so "export-as" is more appropriate than "as".

Closed via #1967


Test/item data panel

Implemented Changes
In this pull request we create a tests file for the ItemDataPanel.jsx Component, and we are testing the next

The component renders witouth crashing
The component renders properly concert's data
The reserve button redirects to reserve

@danifromecuador Thanks for sharing your comments, I've updated the URL, so now the test will get the base URL to be intercepted from the.env file, avoiding problems on each local development environment, this should fix the issue with some test not passing because they were not intercepting the request from components to the API

@danifromecuador Thanks for your insights buddy!


Fan Placement in the Sensors Box

Figure out a way to place fans inside of the sensors box as to make sure the Sensors computers don't over heat.

Does not seem to be a priority


New Testimonial for Ali Mora

Name
AliMora83
Title
The Coding Genius and Team Player We all Need
Description
Working with @AliMora83  on our Chingu Voyages project was fantastic. He's a coding genius, making tough problems look easy. Plus, he's great at explaining things and working together. If you need a talented developer who's also a great teammate, @AliMora83 is your guy!

Hey there 🥳
There is no button to toggle Testimonies:

My page:

Please help me add a testimony 🙏🏼

Sorry to ask this way @eddiejaoude, @eddiejaoude2  🤗
Thank you in advance.

Thanks for asking. Sorry for the confusion, we have a bug we are working on it at the moment to load new testimonials, they will appear soon


Unable to generate NER model

Getting error as follows while doing pip3 install

Looks like torch==1.7.1 is no more exists. So I upgraded versions as follows
torch==2.1.2
transformers==4.36.2
onnx
onnxruntime

After that I am able to complete pip3 install -r requirements.txt but I am unable to complete python3 generate_ner.py step.  Getting following error:

Hi @sivagollapalli, thanks for reporting! Updated the scripts to use Optimum in the commit above.


ppink unfolding itself when closing windows

I am not 100% sure if this is a feature or not, but I was unable to find an option for this in the settings.
When folded, sometimes ppink will unfold itself when you close some windows. I have been unable to replicate exactly what the behavior is. I tried a few times for it to unfold for the video but some times it will unfold and some times it doesn't. Am I missing something here or is this a bug?
https://user-images.githubusercontent.com/19545604/126201075-25564fa0-9e91-4cd8-98d6-9c5cb0fb362f.mp4

When ppInk get Focus, either using alt+tab or because, of closing other windows, it finally gets focus. I can not change its position in the Z-order stack as the window(s) is/are topmost to be visible which is incompatible.
Nothing to be done

Thanks, this explains it! this should make preventing this from happening unintendedly easier. I'll close the issue then.


[WIP] configure module details into UI

Codecov Report

Merging #66 into ui will decrease coverage by 1.00%.
The diff coverage is 0.00%.

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 3c01f92...210093a. Read the comment docs.


Add files via upload

Uploaded Image will be used to provide clarity to the step Add a tag to your device.
Issue Resolves: MicrosoftDocs/11836

@andrewbrownmsft
Can you review the proposed changes?
When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

Hi. This PR appears to just be uploading an image file. Is there a separate PR for the page where the image will be displayed? I'd like to see the context for the image to understand exactly what the customer will experience.

Hi @andrewbrownmsft, the image uploaded will be displayed 4th step of Add a tag to your device section. This image will be referenced in the PR#112048. Hope this clarifies. Please recommend if there is a better way to represent this to enhance customer experience.
Best regards,
Leela Rajesh.

Yes, the other PR link was what I was looking for.
With that context, I am fine with this change, but wanted to note that we have multiple tutorials that share the same basic "Add a tag" step. Is it possible to make your same change (adding the image) here as well:
https://learn.microsoft.com/en-us/azure/iot-hub-device-update/device-update-raspberry-pi#add-a-device-update-group-tag-to-your-device
That way we will have consistency.

Hi @andrewbrownmsft, I have made changes to the other article as well. Here is the PR corresponding to it  PR#112116
Best regards,
Leela Rajesh.

Thank you, looks good. I will sign off here so the image can get populated.

#sign-off


build: Fetch missing helm dependencies automatically

If a Helm dependency is missing, fetch it in the helm-deploy target.
Thanks to @zusorio for reporting in #1545

This seems like a better solution, although I think it doesn't address the issue of the missing grafana repository

This seems like a better solution, although I think it doesn't address the issue of the missing grafana repository

The repository is defined in the Chart.yaml. A dependency update should fetch all defined repositories.
I don't have the repository in the list of global helm repositories (helm repo list) doesn't show any repositories and the make deploy-without-build target works.

When I had tested it with the command helm told me to use it gave me an error but the make command doesn't have the same issue so this should be good


Sub-sites without layout

local test with centrarium-master:

Edit _config:yml: url: "http://<IP_ADDRESS>:4000"
Jekyll serve
browse http://<IP_ADDRESS>:4000
--> the Startsite is ok, but a sub-site (for instance http://<IP_ADDRESS>:4000/jekyll/2015/04/18/welcome-to-jekyll.html) is without layout

What's the problem?

I tried following those steps and couldn't access the site at all at http://<IP_ADDRESS>:4000. I could get to it at http://<IP_ADDRESS>:4000/centrarium/.
You shouldn't need to change the url field in _config.yml when you're developing locally with jekyll serve. You can keep it set to the URL you'll be deploying the site to.
What is the value of baseurl in _config.yml?. In the demo, the default is /centrarium/, which means you can access the site (after running jekyll serve) at http://localhost:4000/centrarium/.

Thank you for your answer, but no improvement. Here are some details:

use jekyll under win7
unzip centrarium-master
open a commandline and change to the directory centrarium-master
bundle install
jekyll serve
open http:///<IP_ADDRESS>:4000 in a browser: --> Error: 'not found'
edit _config.yml: change baseurl: "/centrarium/" to baseurl: ""
restart jekyll
reopen http:///<IP_ADDRESS>:4000 in the browser: --> homepage is starting with correct layout
click on a header of any post: --> the post-site starting without layout

Where is the mistake?

See if https://github.com/bencentra/centrarium/pull/15 fixes the issue for you. It makes all of the paths in the project more sane (i.e. no worrying about a preceding "/")

Yes, that is the solution. Thank you!
I close this issue. Bye!


[#5281] Add owner support to Gravitino CLI

What changes were proposed in this pull request?
Add owner support to Gravitino CLI
Why are the changes needed?
To continue adding to the CLI.
Fix: #5281
Does this PR introduce any user-facing change?
No, but it expands on the CLI.
How was this patch tested?
Compiled and tested locally.

@shaofengshi This is ready to review

@shaofengshi can you can review this again please

BTW, the lack of UTs for the CLI module makes the code vulnerable, we should add more UTs for the CLI module.


Add remote client configuration using the http-api relation

Something weird is happening after running juju config prometheus advertised-port=9001 with this code. From Juju's perspective, everything SEEMS fine as you can see via the logs and juju status below:
application-prometheus: 01:38:00 DEBUG unit.prometheus/0.juju-log on_config_changed_handler: <ops.charm.ConfigChangedEvent object at 0x7fe6fe3e6da0>
application-prometheus: 01:38:00 DEBUG unit.prometheus/0.juju-log build_pod_spec
application-prometheus: 01:38:01 DEBUG unit.prometheus/0.juju-log Building Juju pod spec
application-prometheus: 01:38:01 DEBUG unit.prometheus/0.juju-log {'containers': [{'name': 'prometheus', 'imageDetails': {'imagePath': 'prom/prometheus:v2.18.1', 'username': '', 'password': ''}, 'ports': [{'containerPort': 9001, 'protocol': 'TCP'}], 'readinessProbe': {'httpGet': {'path': '/-/ready', 'port': 9001}, 'initialDelaySeconds': 10, 'timeoutSeconds': 30}, 'livenessProbe': {'httpGet': {'path': '/-/healthy', 'port': 9001}, 'initialDelaySeconds': 30, 'timeoutSeconds': 30}, 'files': [{'name': 'config', 'mountPath': '/etc/prometheus', 'files': {'prometheus.yml': "global:\n  external_labels: {}\n  scrape_interval: 15s\nscrape_configs:\n- job_name: prometheus\n  scrape_interval: 5s\n  static_configs:\n  - targets: ['localhost:9001']\n"}}]}]}
application-prometheus: 01:38:01 DEBUG unit.prometheus/0.juju-log Configuring pod
application-prometheus: 01:38:01 DEBUG unit.prometheus/0.juju-log Checking k8s pod readiness
application-prometheus: 01:38:01 DEBUG unit.prometheus/0.juju-log GET kubernetes.default.svc//api/v1/namespaces/lma/pods?labelSelector=juju-app=prometheus
application-prometheus: 01:38:01 DEBUG unit.prometheus/0.juju-log Received k8s pod status: <adapters.k8s.PodStatus object at 0x7fe6fe3988d0>
application-prometheus: 01:38:01 DEBUG unit.prometheus/0.juju-log Built unit status: <ops.model.ActiveStatus object at 0x7fe6fe398978>

Model  Controller  Cloud/Region        Version  SLA          Timestamp
lma    mk8s        microk8s/localhost  2.7.6    unsupported  01:41:32Z

App         Version  Status   Scale  Charm       Store  Rev  OS          Address         Notes
prometheus           waiting      1  prometheus  local    0  kubernetes  <IP_ADDRESS>

Unit           Workload  Agent  Address    Ports     Message
prometheus/0*  active    idle   <IP_ADDRESS>  9001/TCP  Unit is ready

BUT, when inspecting it from the k8s layer, this is what I get:
$ microk8s.kubectl -n lma get pods
NAME                    READY   STATUS    RESTARTS   AGE
prometheus-0            0/1     Running   0          28s
prometheus-operator-0   1/1     Running   0          20m

Notice that prometheus-0 READY is 0/1 which means the pod is not ready to receive requests. Running kubectl describe yields the following:
$ microk8s.kubectl -n lma describe pod prometheus-0
Name:         prometheus-0
Namespace:    lma
Priority:     0
Node:         dev-18-04-2/<IP_ADDRESS>
Start Time:   Wed, 20 May 2020 01:38:05 +0000
Labels:       controller-revision-hash=prometheus-645c6df44d
              juju-app=prometheus
              statefulset.kubernetes.io/pod-name=prometheus-0
Annotations:  apparmor.security.beta.kubernetes.io/pod: runtime/default
              juju.io/controller: e64c4d29-c9ae-4ed7-8c4f-9aaf55324e65
              juju.io/model: 067696a4-2e5f-4c8a-876e-9c067b84ad4f
              juju.io/unit: prometheus/0
              seccomp.security.beta.kubernetes.io/pod: docker/default
Status:       Running
IP:           <IP_ADDRESS>
IPs:
  IP:           <IP_ADDRESS>
Controlled By:  StatefulSet/prometheus
Init Containers:
  juju-pod-init:
    Container ID:  containerd://adcb0c7acc53b9717f807aa2ce35bd5a1d6aa619429c9d8592cacf0c64011e38
    Image:         jujusolutions/jujud-operator:2.7.6
    Image ID:      docker.io/jujusolutions/jujud-operator@sha256:866eccf1961604db3a4710142f77632519c6627da7ebdebd26c8c17c03df48e6
    Port:          <none>
    Host Port:     <none>
    Command:
      /bin/sh
    Args:
      -c
      export JUJU_DATA_DIR=/var/lib/juju
      export JUJU_TOOLS_DIR=$JUJU_DATA_DIR/tools

      mkdir -p $JUJU_TOOLS_DIR
      cp /opt/jujud $JUJU_TOOLS_DIR/jujud
      initCmd=$($JUJU_TOOLS_DIR/jujud help commands | grep caas-unit-init)
      if test -n "$initCmd"; then
      $JUJU_TOOLS_DIR/jujud caas-unit-init --debug --wait;
      else
      exit 0
      fi

    State:          Terminated
      Reason:       Completed
      Exit Code:    0
      Started:      Wed, 20 May 2020 01:38:06 +0000
      Finished:     Wed, 20 May 2020 01:38:09 +0000
    Ready:          True
    Restart Count:  0
    Environment:    <none>
    Mounts:
      /var/lib/juju from juju-data-dir (rw)
      /var/run/secrets/kubernetes.io/serviceaccount from default-token-cwgnw (ro)
Containers:
  prometheus:
    Container ID:   containerd://9ee321f8f170810791010e475937f962118008fa1b773ba880114e7b711ff63e
    Image:          prom/prometheus:v2.18.1
    Image ID:       docker.io/prom/prometheus@sha256:5880ec936055fad18ccee798d2a63f64ed85bd28e8e0af17c6923a090b686c3d
    Port:           9001/TCP
    Host Port:      0/TCP
    State:          Running
      Started:      Wed, 20 May 2020 01:42:26 +0000
    Last State:     Terminated
      Reason:       Completed
      Exit Code:    0
      Started:      Wed, 20 May 2020 01:41:36 +0000
      Finished:     Wed, 20 May 2020 01:42:26 +0000
    Ready:          False
    Restart Count:  5
    Liveness:       http-get http://:9001/-/healthy delay=30s timeout=30s period=10s #success=1 #failure=3
    Readiness:      http-get http://:9001/-/ready delay=10s timeout=30s period=10s #success=1 #failure=3
    Environment:    <none>
    Mounts:
      /etc/prometheus from prometheus-config-config (rw)
      /prometheus from database-79099c77 (rw)
      /usr/bin/juju-run from juju-data-dir (rw,path="tools/jujud")
      /var/lib/juju from juju-data-dir (rw)
      /var/run/secrets/kubernetes.io/serviceaccount from default-token-cwgnw (ro)
Conditions:
  Type              Status
  Initialized       True
  Ready             False
  ContainersReady   False
  PodScheduled      True
Volumes:
  database-79099c77:
    Type:       PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
    ClaimName:  database-79099c77-prometheus-0
    ReadOnly:   false
  juju-data-dir:
    Type:       EmptyDir (a temporary directory that shares a pod's lifetime)
    Medium:
    SizeLimit:  <unset>
  prometheus-config-config:
    Type:      ConfigMap (a volume populated by a ConfigMap)
    Name:      prometheus-config-config
    Optional:  false
  default-token-cwgnw:
    Type:        Secret (a volume populated by a Secret)
    SecretName:  default-token-cwgnw
    Optional:    false
QoS Class:       BestEffort
Node-Selectors:  <none>
Tolerations:     node.kubernetes.io/not-ready:NoExecute for 300s
                 node.kubernetes.io/unreachable:NoExecute for 300s
Events:
  Type     Reason     Age                    From                  Message
  ----     ------     ----                   ----                  -------
  Normal   Scheduled  5m6s                   default-scheduler     Successfully assigned lma/prometheus-0 to dev-18-04-2
  Normal   Pulled     5m5s                   kubelet, dev-18-04-2  Container image "jujusolutions/jujud-operator:2.7.6" already present on machine
  Normal   Created    5m5s                   kubelet, dev-18-04-2  Created container juju-pod-init
  Normal   Started    5m5s                   kubelet, dev-18-04-2  Started container juju-pod-init
  Normal   Pulled     4m5s (x2 over 5m1s)    kubelet, dev-18-04-2  Container image "prom/prometheus:v2.18.1" already present on machine
  Normal   Created    4m5s (x2 over 5m1s)    kubelet, dev-18-04-2  Created container prometheus
  Normal   Started    4m5s (x2 over 5m1s)    kubelet, dev-18-04-2  Started container prometheus
  Normal   Killing    4m5s                   kubelet, dev-18-04-2  Container prometheus failed liveness probe, will be restarted
  Warning  Unhealthy  3m18s (x9 over 4m48s)  kubelet, dev-18-04-2  Readiness probe failed: Get "http://<IP_ADDRESS>:9001/-/ready": dial tcp <IP_ADDRESS>:9001: connect: connection refused
  Warning  Unhealthy  5s (x17 over 4m25s)    kubelet, dev-18-04-2  Liveness probe failed: Get "http://<IP_ADDRESS>:9001/-/healthy": dial tcp <IP_ADDRESS>:9001: connect: connection refused

Both the Liveness and Readiness probes are failing and true enough, Prometheus is not accessible when I try to browse to it.

Ah! I get it now. I changed the advertised-port from from 9090 to 9001 but we didn't actually tell the prometheus process in the container to listen to that port thus the failed liveness and readiness probes. I don't think it's necessary for anyone to change the listen-address of prometheus ever so I'm just going to remove that option in a future PR. There are more important things to deal with lol.

So trying out this branch with:
juju config prometheus external-labels='{ "cluster": "datacenter1" }'

Results in a successful update of the prometheus config file:
$ microk8s.kubectl -n lma exec prometheus-0 -- cat /etc/prometheus/prometheus.yml
global:
  external_labels: {cluster: datacenter1}
  scrape_interval: 15s
scrape_configs:
- job_name: prometheus
  scrape_interval: 5s
  static_configs:
  - targets: ['localhost:9090']

Something weird is happening after running juju config prometheus advertised-port=9001 with this code. From Juju's perspective, everything SEEMS fine as you can see via the logs and juju status below:

I've also seen this, so I filed a https://github.com/relaxdiego/charm-k8s-prometheus/issues/8 issue. However, I am not sure if we really need to change the Prometheus listening port? Although it would be nice to have, I can't imagine the scenario why it might be required in reality.

No we don't need to actually change the advertised port ever. Let's avoid doing that. I'm going to push a PR later hardcoding 9090 and not making it a configuration option. But first, I will review this PR one last time before merging as well as finish #4 before I do that.


Simplify Display name of NuvlaBoxes

The last item in the list should simply say: "Meb's NuvlaBox Nano", with the description in the second line. UUIDs should only be used if name and description are not present

Name and description of nuvlabox, infra-swarm, infra-minio, cred, swarm-token are defined by api-server at creation time. So naming changes will be visible only for newly created NuvlaBox


Security Vulnerabilities of Application

As a program area leads, we need to have an established approach and someone with security/technical skills to maintain and update the OpenShift application.

May 16 - Igor sent email message noting 37 security vulnerabilities
May 17 - consulted with Warren who noted two possible approaches 1) scheduled updates (weekly or monthly) or 2) Repo/alert system, almost daily updates
In short term, our team will ask Warren/someone to review the vulnerabilities
In the longer term, we will need to have a resource to address this essential work to keep the application updated (noting the single-sign authentication on reduces the risk).
Given this work would be a full-time job, we will connect with BP/other PSA product owners about how they are doing this work and if we could have a shared resource who oversees this work, given this person will likely be working on many PSA product teams.

OCIO resources
• OCIO  Vulnerability Patch Standard: https://www2.gov.bc.ca/assets/gov/british-columbians-our-governments/services-policies-for-government/information-management-technology/information-security/defensible-security/ocio_patch_guidelines_-_2021-02-18.pdf
• OCIO Security Standard for Application and Web Development and Deployment: security_standard_application_web_development_deployment.pdf (gov.bc.ca)

all issues completed


Fix Address4.bigInt return type

Love the removal of jsbn, thank you!
Was converting my code but had an issue where I kept getting ts: Operator '+' cannot be applied to types 'BigInt' and 'bigint'. errors. Appeared the return type was accidentally statically set to BigInt the function not bigint the primitive type.

great find, thanks! will release later tonight

Hey @beaugunderson, just replying to see if this is getting released soon. Thank you! 😄

@timcole just released in 10.0.1, thanks again! 🙏


FEATURE: change API of WordVectorSerializer. Add posibility to read m…

Add possibility to read Word2Vec models from any InputStream. Not only from files.
The goal of present modification is to allow read Word2Vec models from any InputStream: network connections, data stores, etc.
(Please fill in changes proposed in this fix)
How was this patch tested?
All existing testes are passing. Two new testes was added.
Quick checklist
The following checklist helps ensure your PR is complete:

[x] Eclipse Contributor Agreement signed, and signed commits - see IP Requirements page for details
[x] Reviewed the Contributing Guidelines and followed the steps within.
[x] Created tests for any significant new code additions.
[x] Relevant tests for your changes are passing.

@hosuaby Thanks for the PR - and sorry we didn't get to this sooner.
Looks like it just got forgotten.
I've opened a new PR with your commits (plus a few fixes) here: https://github.com/eclipse/deeplearning4j/pull/8893
I've cleaned up a few things and re-adde some of the file methods (to avoid a breaking API change)
You'll still get credit as a contributor for your work here.


Trying to consume Date and 'Accounting' formats differently while parsing XLSX to JSON

Hi
I have an excel sheet that contains dates in the data formatted as 'mm/dd/yy' and it also has Accounting format applied on few of the fields. Hence, the negative numbers are changed into (number) eg. -50 is formatted as (50).
The challenge that I face is, I need to consume the date in the same format as I have to show the same date to user for consistency. But for the (50) i.e. negative numbers, I wanna consume it as -50 and validate if it is a number or not.
If I set 'raw: true' in
XLSX.utils.sheet_to_json(worksheet, { raw: true});
The parser reads -50 correctly but it messes up the date because it reads the underlying integer depicting the date.
cellDates:true - It helped but then again it reads the date in a timestamp format which I dont need as changing it back to the original format of the date will be a pain.
The output of the XLSX.read gives me : v=
'Sun Jul 01 2018 00:00:00 GMT-0500 (Central Daylight Time)' , w="7/1/18" for type dates. But when I use the XLSX.utils.sheet_to_json(); the ouput I receive takes the data from v and not from w.
Am I missing anything here? Is there any flag that can be used in the XLSX.utils.sheet_to_json() to have the value of w be set in the JSON that we get.
I tweaked the xlsx.js in the library. I edited the sheet_to_library function and added a if statement telling to consume the 'w' value if the datatype 't' =d.
if(val.t==='d'){
v = val.w;
}
else{
v = val.v;
}
Kindly share your comments if I am missing any existing functionality of the parser or if there is an easier way to achieve the desired goal.
Best
Satvir

Same problem here. I have date formatted like 'DD-MM-YYYY' in excel.
When i load it via xlsx.utils.sheet_to_json, it gets converted to:
    "date": 42757,

I tried both:
xlsx.readFile( path, {
    cellNF: true,
    dateNF: "DD-MM-YYYY"
})

and it still displays number
This one loads dates as real Date objects into  cell's {v:Date}
xlsx.readFile( path, {
    cellDates: true
})

but then in JSON instead of formatted value (w,z) i get plain v converted to json
"date": "2017-01-21T23:00:00.000Z",

Which is too much. It is not using Date.UTC, but local Date. Therefore its shifted for my local timezone.
I have accounting past data. I need only Date, without time and definetly without timezones.
How can i export to json using my formating for numbers and dates?

for (var cell, i = 2; (cell = sheet["B" + i]) && cell; i++) {
    delete cell.w;
    cell.z = "DD-MM-YYYY";
    xlsx.utils.format_cell(cell);
    // Overwrite value with formated one :<
  cell.v = cell.w;
}

#1310 is a similar issue.  The essence of the sheet_to_json function is simple enough to implement directly.
We may consider an option to sheet_to_json that would allow you to control the value.  If this is of interest, make_json_row can be changed as follows:
	var isempty = true;
+	var use_get_value = !!o.get_value;
	var row/*:any*/ = (header === 1) ? [] : {};

...

		}
-		var v = val.v;
+		var v = use_get_value ? o.get_value(val, hdr[C]) : val.v;
		switch(val.t){

...

			} else {
-				row[hdr[C]] = raw || (o.rawNumbers && val.t == "n") ? v : format_cell(val,v,o);
+				row[hdr[C]] = use_get_value || raw || (o.rawNumbers && val.t == "n") ? v : format_cell(val,v,o);
			}

The callback would be specified as the get_value option.  With this implementation, the callback would be called with the cell object and the expected header name.

I cannot agree with
The essence of the sheet_to_json function is simple enough to implement directly.
I copied all the functiaonlity from this helper and it taks A LOT of other functions. Why there is no any formatting rules for sheet_to_json  helper?

@Lonli-Lokli most of the formatting happens in the parse step.  https://docs.sheetjs.com/#common-spreadsheet-format start from the example there.
As for the original question, pass the options cellNF: true to recover the original formats, then just do a loop yourself. The formatted text will be placed in the w field.  For example, with a real file in NodeJS:
var wb = XLSX.readFile(path, { cellNF: true, cellText: false });
// var wb = XLSX.read(u8, { cellNF: true, cellText: false, type: "array" }); // for Uint8Array

var ws = wb.Sheets[wb.SheetNames[0]];

var range = XLSX.utils.decode_range(ws["!ref"]);
var aoa_of_data = [];
for(var R = range.s.r; R <= range.e.r; ++R) {
  aoa_of_data[R] = [];
  for(var C = range.s.c; C <= range.e.c; ++C) {
    var cell_address = {c:C, r:R};
    var cell_ref = XLSX.utils.encode_cell(cell_address);
    var cell = ws[cell_ref];
    if(!cell) continue;
    aoa_of_data[R][C] = [cell.v, cell.w || XLSX.utils.format_cell(cell), cell.z]; // value, formatted text, number format
  }
}

This thing will give you an array of arrays of triplets [raw_value, formatted_value, number_format]


Multipass and multi-domain requests

Hello,
I'm using multipass to perform basic-auth form filling across a set of sites. However, it seems that multipass does not fill in additional requests once the main site has been successfully authenticated.
What I mean is, say we have domain site.domain.com which requires basic-auth. Multipass correctly identifies and authenticates to this site using the regex https*://.+.domain.com (as indicated by the green dot on the extension icon)
However, if that page then loads additional domain content, hosted for instance on images.domain.com, a new basic auth popup appears that is not caught by the multipass plugin.
In this case such additional basic-auth requests are done to a dozen different domains. All use (in this case) the exact same credentials, so I would like to keep it simple in MP and just have the single regex catch all of these.
Is this possible?

Hi @DutchessNicole ,
I am not sure I understand, are the additional requests loaded by the webpage itself ? If so it is a usecase I never tested.
I will have to try and check, but probably Chrome isn't using the same mechanism to load content loaded by a page as one opened in a tab. Not sure I can do something here.

Yes, the page that is loaded then loads additional content from other servers (same domain in this case) which each require another basic-auth login

Hi there,
I did multiple tests and wasn't able to reproduce your issue.
You can try for yourself my latest test :

https://files.crettenand.info/test/index.html with test / test for access
loads https://files.crettenand.info/test/test.jpg with test2 / test2 for access

If you configure Multipass using the following :
[
    {"url":"https://files.crettenand.info/test/", "username":"test", "password":"test", "priority":"2"},
    {"url":"https://files.crettenand.info/test/test.jpg", "username":"test2", "password":"test", "priority":"1"}
]

Both the HTML and image should load without asking for any password.
I also tested with both ressources having the same username / password, and it works fine if you remove the Multipass rule for the image.
Can you provide a screenshort (or describe if you have sensible information), what you can see if you open the Multipass panel on the page that poses an issue ?
Is the small "pill" on the icon red ? Are their multiple lines colored in yellow ?

Thank you for the reply. As it turns out the company started messing around with my account just as I installed the plugin and for that reason it didn't properly work.
Your test case does indeed work correctly, so I guess Multipass does handle the situation properly.
This issue is resolved.


Allow searching for an account by its Ethereum address

Description:
This PR modifies the search function in order to allow searching for an account by its Ethereum address.
This feature was already supported by the Mirror Node's API side.
Also, this PR move dependency from ethers.js to hethers.js for Ethereum related stuff.
Related issue(s):
N/A
Notes for reviewer:
Searching by Ethereum address can return multiple results. We need to create an ad-hoc page to support showing a result with a list of multiple accounts.
Checklist

[x] Documented (Code comments, README, etc.)
[x] Tested (unit, integration, etc.)

According Mirror Node API spec, api/v1/accounts/{idOrAliasOrEvmAddress} returns an AccountBalanceTransactions entity.
Where does this AccountsBalanceTransactionsResponse entity come from ?

I created AccountsBalanceTransactionsResponse as a structure to handle multiple results (multiple accounts can use the same ECDSA key, and so they can have the same evmAddress), but I can get rid of it if you prefer, waiting for an official implementation in the schema and Node's API.

@ericleponner I removed the new schema, we will introduce that in the future. I also moved the dependency from ethers.js to hethers.js

Hi @ericleponner, the PR has now conflicts with the main branch. If you plan to accept this, I can resolve those conflicts; otherwise I'll close this.

Hi Giuseppe,
Please hold your PR until friday.
Thanks.

Implemented here: https://github.com/hashgraph/hedera-mirror-node-explorer/pull/272


Suggestion: skipBits

It'd be useful in some use cases to have a skipBits function, which just advances the offset without reading any bits - if you know you don't care about the value of some bits, you shouldn't have to read them and compute their value.

Simply read bits without storing the result in a variable.


gpio: esp32: fix gpio mapping

Pin 20 was missing from pinctrl definitions.
Fixes #178
Signed-off-by: Sylvio Alves<EMAIL_ADDRESS>

@marekmatej @LucasTambor PTAL


error

during update i found this error
no matching function for call to 'ESP8266HTTPUpdate::update(const char*&, int, const char*&, const char*&)'

I also have the same problem, has anyone managed to solve it?

It seems that with ESP8266 V.2.7.4 this function is deprecated.
You have to use ESP8266 V2.7.3
https://github.com/esp8266/Arduino/issues/8052#issuecomment-843792413


RBAC resources in helm chart will need to be updated for k8s 1.8

The v1beta1 version of RBAC no longer exists in 1.8 - we will need to move the charts to v1
It's worth taking a small amount of time to consider how best to factor the chart - it would be good to have a target-k8s-version parameter that would just DTRT for that version.

Is it really going away? That doesn't seem right.

It seems that v1beta1 does still exist in k8s 1.8, it is v1alpha1 that went away. There is a v1 now as well so that should be used.


[BUG] document.head is sometimes blank when meta tags occur before <html>

First off, thanks for making this project! :)
I ran into this issue while migrating from jsdom over to linkedom.
Repro:
const linkedom = require('linkedom');
function JSDOM(html) { return linkedom.parseHTML(html); }
const {document} = new JSDOM(await fetch('https://xdaforums.com/t/double-tap-to-wake.3306272/').then(r => r.text()))
console.log(document.title) // ''

// head isn't detect despite it existing in the original page
document.head.innerHTML // ''
document.head.getElementsByTagName('title') // NodeList (0) []

This problem seems to be related to this website having meta and link tags before the <html> tag opens (removing them manually fixes the issue):

I'm not sure if this is allowed per spec or not, but Chrome seems to handle the meta/link tags, so I think it makes sense to handle them in linkedom as well:

This is easily out of project's goal/scope ... the moment I sanitize the entire Internet is the moment this project makes no sense anymore and no performance will ever exist neither ... you have playwright or any other crawler to sanitize via real browsers the Web and I don't think this should ever affect LinkeDOM logic.


RC2 SQLite not working with dotnet

I'm updating to dotnet RC2 and the SQLite Provider does not work. I tried the different possiblities from what I found but always recieve the same bug. If I use the OnConfiguring method in the context, I recieve a different problem, table not found.
git repo:
https://github.com/damienbod/AspNet5Localization/tree/rc2Test
Startup class:
 // init database for localization
var sqlConnectionString = Configuration["DbStringLocalizer:ConnectionString"];

//var sqlConnectionString = "Data Source=C:\\git\\damienbod\\AspNet5Localization\\AspNet5Localization\\src\\AspNet5Localization\\LocalizationRecords.sqlite";

services.AddEntityFrameworkSqlite()
	.AddDbContext<LocalizationModelContext>(options =>
		options.UseSqlite(
			sqlConnectionString,
			b => b.MigrationsAssembly("Localization.SqlLocalizer")
		)
	);

//services.AddEntityFrameworkSqlite()
//     .AddDbContext<LocalizationModelContext>(
//         options => options.UseSqlite(sqlConnectionString));

Error message when running:
Now listening on: http://localhost:5000
Application started. Press Ctrl+C to shut down.
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 GET http://localhost:5000/api/about?culture=it-ch
fail: Microsoft.AspNetCore.Server.Kestrel, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=adb9793829ddae60[13]
      Connection id "0HKRRV5URVING": An unhandled exception was thrown by the application.
System.InvalidOperationException: No database provider has been configured for this DbContext. A provider can be configured by overriding the DbContext.OnConfig
uring method or by using AddDbContext on the application service provider. If AddDbContext is used, then also ensure that your DbContext type accepts a DbContex
tOptions<TContext> object in its constructor and passes it to the base constructor for DbContext.
   at Microsoft.EntityFrameworkCore.Internal.DatabaseProviderSelector.SelectServices()
   at Microsoft.EntityFrameworkCore.Internal.LazyRef`1.get_Value()
   at Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkServiceCollectionExtensions.<>c.<AddQuery>b__1_1(IServiceProvider p)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.ScopedCallSite.Invoke(ServiceProvider provider)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ConstructorCallSite.Invoke(ServiceProvider provider)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.ScopedCallSite.Invoke(ServiceProvider provider)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ConstructorCallSite.Invoke(ServiceProvider provider)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.ScopedCallSite.Invoke(ServiceProvider provider)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderExtensions.GetService[T](IServiceProvider provider)
   at Microsoft.EntityFrameworkCore.Infrastructure.AccessorExtensions.GetService[TService](IInfrastructure`1 accessor)
   at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.<.ctor>b__2_0()
   at Microsoft.EntityFrameworkCore.Internal.LazyRef`1.get_Value()
   at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.System.Linq.IQueryable.get_Provider()
   at System.Linq.Queryable.Where[TSource](IQueryable`1 source, Expression`1 predicate)
   at Localization.SqlLocalizer.DbStringLocalizer.SqlStringLocalizerFactory.GetAllFromDatabaseForResource(String resourceKey) in C:\git\damienbod\AspNet5Localiz
ation\AspNet5Localization\src\Localization.SqlLocalizer\DbStringLocalizer\SqlStringLocalizerFactory.cs:line 86
   at Localization.SqlLocalizer.DbStringLocalizer.SqlStringLocalizerFactory.Create(Type resourceSource) in C:\git\damienbod\AspNet5Localization\AspNet5Localizat
ion\src\Localization.SqlLocalizer\DbStringLocalizer\SqlStringLocalizerFactory.cs:line 69
   at Microsoft.Extensions.Localization.StringLocalizer`1..ctor(IStringLocalizerFactory factory)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ConstructorCallSite.Invoke(ServiceProvider provider)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.TransientCallSite.Invoke(ServiceProvider provider)
   at Microsoft.Extensions.Internal.ActivatorUtilities.GetService(IServiceProvider sp, Type type, Type requiredBy, Boolean isDefaultParameterRequired)
   at lambda_method(Closure , IServiceProvider , Object[] )
   at Microsoft.AspNetCore.Mvc.Internal.TypeActivatorCache.CreateInstance[TInstance](IServiceProvider serviceProvider, Type implementationType)
   at Microsoft.AspNetCore.Mvc.Controllers.DefaultControllerFactory.CreateController(ControllerContext context)
   at Microsoft.AspNetCore.Mvc.Internal.FilterActionInvoker.<InvokeAllActionFiltersAsync>d__40.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.Internal.FilterActionInvoker.<InvokeExceptionFilterAsync>d__39.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNetCore.Mvc.Internal.FilterActionInvoker.<InvokeAsync>d__32.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.Internal.MvcRouteHandler.<InvokeActionAsync>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Builder.RouterMiddleware.<Invoke>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.<Invoke>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Hosting.Internal.RequestServicesContainerMiddleware.<Invoke>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Server.Kestrel.Http.Frame`1.<RequestProcessingAsync>d__2.MoveNext()
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 433.5848ms 200

Any ideas?
Greetings Damien

@damienbod do you have a constructor that takes in DbContextOptions and passed it to the base constructor?
public class LocalizationModelContext : DbContext
{
    public LocalizationModelContext(DbContextOptions<LocalizationModelContext> options)
      :base(options)
    { }

Also, we changed how AddDbContext works in RC2. You don't need to call "AddEntityFrameworkSqlite" unless you are configuring a custom internal service provider for your DbContext.

Hi @natemcmaster
Thanks that solved the connection problem. Now I have the no table problem, table does exist. I have updated the repo with your changes. Thanks for your help.
Now listening on: http://localhost:5000
Application started. Press Ctrl+C to shut down.
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 GET http://localhost:5000/api/about?culture=it-ch
info: Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommandBuilderFactory[1]
      Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
      PRAGMA foreign_keys=ON;
info: Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommandBuilderFactory[1]
      Executed DbCommand (0ms) [Parameters=[@__resourceKey_0='?'], CommandType='Text', CommandTimeout='30']
      SELECT "data"."Id", "data"."Key", "data"."LocalizationCulture", "data"."ResourceKey", "data"."Text", "data"."UpdatedTimestamp"
      FROM "LocalizationRecords" AS "data"
      WHERE "data"."ResourceKey" = @__resourceKey_0
fail: Microsoft.EntityFrameworkCore.Query.RelationalQueryCompilationContextFactory[1]
      An exception occurred in the database while iterating the results of a query.
      Microsoft.Data.Sqlite.SqliteException: SQLite Error 1: 'no such table: LocalizationRecords'.
         at Microsoft.Data.Sqlite.Interop.MarshalEx.ThrowExceptionForRC(Int32 rc, Sqlite3Handle db)
         at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
         at Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommand.Execute(IRelationalConnection connection, String executeMethod, IReadOnlyDictionary
`2 parameterValues, Boolean openConnection, Boolean closeConnection)
         at Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommand.ExecuteReader(IRelationalConnection connection, IReadOnlyDictionary`2 parameterValu
es, Boolean manageConnection)
         at Microsoft.EntityFrameworkCore.Query.Internal.QueryingEnumerable.Enumerator.MoveNext()
         at Microsoft.EntityFrameworkCore.Query.QueryMethodProvider.<_ShapedQuery>d__3`1.MoveNext()
         at Microsoft.EntityFrameworkCore.Query.Internal.LinqOperatorProvider.<_TrackEntities>d__15`2.MoveNext()
         at Microsoft.EntityFrameworkCore.Query.Internal.LinqOperatorProvider.ExceptionInterceptor`1.EnumeratorExceptionInterceptor.MoveNext()
Microsoft.Data.Sqlite.SqliteException: SQLite Error 1: 'no such table: LocalizationRecords'.
   at Microsoft.Data.Sqlite.Interop.MarshalEx.ThrowExceptionForRC(Int32 rc, Sqlite3Handle db)
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
   at Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommand.Execute(IRelationalConnection connection, String executeMethod, IReadOnlyDictionary`2 par
ameterValues, Boolean openConnection, Boolean closeConnection)
   at Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommand.ExecuteReader(IRelationalConnection connection, IReadOnlyDictionary`2 parameterValues, Bo
olean manageConnection)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryingEnumerable.Enumerator.MoveNext()
   at Microsoft.EntityFrameworkCore.Query.QueryMethodProvider.<_ShapedQuery>d__3`1.MoveNext()
   at Microsoft.EntityFrameworkCore.Query.Internal.LinqOperatorProvider.<_TrackEntities>d__15`2.MoveNext()
   at Microsoft.EntityFrameworkCore.Query.Internal.LinqOperatorProvider.ExceptionInterceptor`1.EnumeratorExceptionInterceptor.MoveNext()
fail: Microsoft.AspNetCore.Server.Kestrel, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=adb9793829ddae60[13]
      Connection id "0HKRS6GCCMHSM": An unhandled exception was thrown by the application.
Microsoft.Data.Sqlite.SqliteException: SQLite Error 1: 'no such table: LocalizationRecords'.
   at Microsoft.Data.Sqlite.Interop.MarshalEx.ThrowExceptionForRC(Int32 rc, Sqlite3Handle db)
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
   at Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommand.Execute(IRelationalConnection connection, String executeMethod, IReadOnlyDictionary`2 par
ameterValues, Boolean openConnection, Boolean closeConnection)
   at Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommand.ExecuteReader(IRelationalConnection connection, IReadOnlyDictionary`2 parameterValues, Bo
olean manageConnection)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryingEnumerable.Enumerator.MoveNext()
   at Microsoft.EntityFrameworkCore.Query.QueryMethodProvider.<_ShapedQuery>d__3`1.MoveNext()
   at Microsoft.EntityFrameworkCore.Query.Internal.LinqOperatorProvider.<_TrackEntities>d__15`2.MoveNext()
   at Microsoft.EntityFrameworkCore.Query.Internal.LinqOperatorProvider.ExceptionInterceptor`1.EnumeratorExceptionInterceptor.MoveNext()
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)

   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector)
   at Localization.SqlLocalizer.DbStringLocalizer.SqlStringLocalizerFactory.GetAllFromDatabaseForResource(String resourceKey) in C:\git\damienbod\AspNet5Localiz
ation\AspNet5Localization\src\Localization.SqlLocalizer\DbStringLocalizer\SqlStringLocalizerFactory.cs:line 86
   at Localization.SqlLocalizer.DbStringLocalizer.SqlStringLocalizerFactory.Create(Type resourceSource) in C:\git\damienbod\AspNet5Localization\AspNet5Localizat
ion\src\Localization.SqlLocalizer\DbStringLocalizer\SqlStringLocalizerFactory.cs:line 69
   at Microsoft.Extensions.Localization.StringLocalizer`1..ctor(IStringLocalizerFactory factory)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ConstructorCallSite.Invoke(ServiceProvider provider)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.TransientCallSite.Invoke(ServiceProvider provider)
   at Microsoft.Extensions.Internal.ActivatorUtilities.GetService(IServiceProvider sp, Type type, Type requiredBy, Boolean isDefaultParameterRequired)
   at lambda_method(Closure , IServiceProvider , Object[] )
   at Microsoft.AspNetCore.Mvc.Internal.TypeActivatorCache.CreateInstance[TInstance](IServiceProvider serviceProvider, Type implementationType)
   at Microsoft.AspNetCore.Mvc.Controllers.DefaultControllerFactory.CreateController(ControllerContext context)
   at Microsoft.AspNetCore.Mvc.Internal.FilterActionInvoker.<InvokeAllActionFiltersAsync>d__40.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.Internal.FilterActionInvoker.<InvokeExceptionFilterAsync>d__39.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNetCore.Mvc.Internal.FilterActionInvoker.<InvokeAsync>d__32.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.Internal.MvcRouteHandler.<InvokeActionAsync>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Builder.RouterMiddleware.<Invoke>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.<Invoke>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Hosting.Internal.RequestServicesContainerMiddleware.<Invoke>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Server.Kestrel.Http.Frame`1.<RequestProcessingAsync>d__2.MoveNext()
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 1071.1632ms 200
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 GET http://localhost:5000/favicon.ico
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 22.3831ms 404

Greetings Damien

The new provider is looking for LocalizationRecords, the RC1 used table LocalizationRecord, has this changed?
Greetings Damien

Hi @natemcmaster, I renamed the table to LocalizationRecords and everything works. Thanks a million for your help.
Greetings Damien


[feat]: AlicanAkyuz/TX-493/Balance check for saved bank accounts

The type of this PR is: Feature
This PR solves TX-493
Description
This PR allows checking a previously saved bank account's balance before moving to the review step in the checkout flow. The feature is already in place for newly-added bank accounts; this PR utilises the same flow for saved bank accounts.
Video with insufficient and sufficient balances
https://user-images.githubusercontent.com/42584148/183430187-34d05ca4-4aa8-407f-8954-0f4354abe513.mov

currently I set the base as my other PR: https://github.com/artsy/force/pull/10703
I'll change the base to main here once it's merged there.


upgrade amalgamation code

Coverage remained the same at 50.364% when pulling a1e7f13af06ed68fa2505661d0ddbc93208bad89 on sqlite-amalgamation-3300100 into 4d8693d6ee0f25c2cfa598aeda2d9c2a5d11f8eb on master.

Coverage remained the same at 50.364% when pulling a1e7f13af06ed68fa2505661d0ddbc93208bad89 on sqlite-amalgamation-3300100 into 4d8693d6ee0f25c2cfa598aeda2d9c2a5d11f8eb on master.


refactor usePlaylist, add Player and Queue, some styling and cleanup

The player works so far. A few things are still missing:

[x] deduplication in the playlists
[x] remove entries in the queue
[x] load playlists into the queue
[x] a little more styling and some beauty touches

i will work on it tomorrow and at the weekend and i think until monday the whole handling of playlists, queue etc. will be done
If there are already changes to the mapping somewhere let me know, then I can also revise the display of the contentItems again.

Reviewing now. First nitpick:
One thing that stood out to me: The file names are not very consistent.
It's a bikeshedding topic for sure, but should be consistent.
I propose the following (which is my usual scheme):  all filenames are lower kebab-case (so only lowercase, dashes to separate words)
I wouldn't mind other schemes too much but some more conistency would be good.
E.g. currently some imports have a capital first character, some don't.

This was merged in #76


Fix typos via typos-cli

Automated by typos-cli
Also, I noticed there is a lingering Rust file in the repository, which isn't included anywhere as a rust module:
https://github.com/teloxide/teloxide-core/blob/6e9109b72881886b069f91712d00cdd5c59f3ffe/src/serde_multipart/unserializers.rs#L1-L113
I didn't study the project carefully yet to confirm it can be removed. However, it clearly uses a macro that isn't defined anywhere, so it is probably broken

fyi: https://github.com/teloxide/teloxide/pull/759 got merged, so you can now re-open this PR against the teloxide/teloxide repository :)


Spectrum reporter

Hey,
this PR adds an energy-spectrum-reporter to lettuce.
The tests compare the discrete energy to the spectral energy
In addition the initialized spectrum of decay2d is compared to the spectrum of the reporter itself after initialization.

Thanks for the comments.
Please take a look on the changes.

perfect. thanks!


Incompatible install in (summarize your environment)

pip  install command is not been support(issue use it)  by the kali linux 2020 operation system how should fix the problem is let me know

Your best option is to use pip. If you are maintainer of Kali Linux, please reach out to the pip team with any issues. If you are a user of Kali Linux, please reach out to the Kali Linux for help.
Good luck.

thanks Pypa/Setuptools
i using python -m pip instal ..
it is helpful for time been
On Sat, Jul 25, 2020 at 6:26 AM Jason R. Coombs<EMAIL_ADDRESS>wrote:

Your best option is to use pip. If you are maintainer of Kali Linux,
please reach out to the pip team with any issues. If you are a user of Kali
Linux, please reach out to the Kali Linux for help.
Good luck.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/pypa/setuptools/issues/2267#issuecomment-663786597,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AO32UDMNDGFFUBGWVJJEODTR5IUSZANCNFSM4PBZVGVQ
.


duplicate "with" in the line

duplicate "with" in the line

@raghul-ravi Thank you for fixing this, I am merging it now and it should be live soon. Thank you!


How to call the distribution to compute wages in a heterogeneous firms model ?

Greetings
I am building a model with heterogeneous firms with discrete adjustment costs, a la Khan & Thomas (2008).
I am struggling on the way to calculate wages, which require the distribution of firms over their capital stock and their idiosyncratic productivity.

First idea was to create a seperate function out of the blocks that would take the distribution from the firms Het block, calculate the wages over the capital and productivity grids with the distribution, and obtain the wages that would be feed into the relevant simple blocks (households and market clearing). But I am not sure it is legit, as, (from the tutorials), blocks seem to receive as inputs only outputs from other blocks and parameters.

Second idea was to create a simple block "labor market" that would determine the wages. But I understand from the RBC tutorial that only univariate variables can be input in simple blocks. However, the distribution is defined over two variables (productivity and capital), unless I misunderstand the "univariate" aspect ?

Thus is there a way to build it in the SSJ framework ?
Addedum : I see that hetblocks generate D and Dbeg distribution (Krusel & Smith and Tutorial 1 workbooks). What is the difference between the two?
Thank you in advance for any help on the matter !

Reworking the tutorials, the solution would actually to compute the wage as the marginal value of labor within the hetblock itself, as part of the backward step. Then the block would aggregate it as a total wage bill. Divide it by the measure of firms, and so we obtain the wage paid on the labor market. Or am I missing something ?


very weird tags for "self" in ug

-- tagging 'intern friend' to self seems weird
--- noticed that stanley mentioned earlier that tag isn't a field for edit although accpetedd
(iff don't want it as a field then need to remove from ug)

Merged into #299


Screen garbling at 2m TX with full power

Hi Armel!
v 2.5 (and earlier versions as far as I can tell) display the following  behavior - when transmitting at 2m, the screen gets garbled, turned upside down or blanked out if you don't hold the radio in your hand and use One Push PTT. It reverts back to normal when you take the radio back in your hand in some cases, and always reverts back when you turn the transmission off. If you hold the radio in your hand, there's no problem. The exact frequencies depend on the antenna in question, but with the stock antenna I can reproduce it between 145 and 149 MHz.
Only transmitting at high power causes this effect, mid and low power modes doesn't seem to do that.
This doesn't happen with the stock firmware v.2.6 at the same frequencies, nor does it with IJV v.3, so this doesn't appear to me to be a hardware issue.
Both of my radios, UV5R Plus and K5(8) show the same behavior.
I've tried reflashing the radios and resetting the settings, and this didn't help. Resetting the calibration to stock values didn't help, either.
Video's too big to attach it here, so here's the cloud link. And my CHIRP config file in the zip archive.
Thanks for your work!
Quansheng_UV-K5 (egzumer + f4hwn)_20240415_new_squelch.zip

Turns out that switching the mic bar off helps with that, it's not 100% effective but makes it much better.

What are you talking about ?


Update Secrets App to v0.11

Update Secrets App to v0.11

Rename to Secrets App / secrets-app / secrets_app
Add credentials limit, and set to 50
Send serial number
Change dependency to use 0.11.0-rc1

To discuss:

[ ] where to keep the constant for the credentials limit

LGTM


Batch Size 1 in training code

The paper refers to using a batch size of 5, and indeed a batch size of 5 is requested from the dataloader.
However, the code explicitly iterates and backprops over each sample in the batch separately - effectively a batch size of 1.
The relevant code is here: https://github.com/gtolias/how/blob/master/how/stages/train.py#L91-L97
The ContrastiveLoss function used supports multiple queries - there's no reason to compute the loss per-tuple. Additionally, why does the model iterate over each image in the tuple instead of processing them as a batch?

Apologies, I misread the indentation on where the optimizer step happened - https://github.com/gtolias/how/blob/master/how/stages/train.py#L99
I still think this is inefficient, but at least it's correct.

Backpropagating for each tuple saves GPU memory as the computational graph is stored only for one tuple at a time. Images from a tuple are processed one by one as each image has a different size. This behavior is consistent with training in cirtorch. If you have enough GPU memory or decrease the image size, you can straightforwardly adapt the code to minimize training time.


Upgrade to use Spring Framework CORS support

Update this guide to take advantage of latest Spring Framework 4.2 / Spring Boot 1.3 capabilities.

@gregturn I have updated my PR, could you please have a look?
Is there a way to preview exactly what will be displayed on spring.io?

The only way to preview exactly is to run Sagan locally and host the guide elsewhere. I think it's easier to apply the patch and then tube the guide based outcome.

OK, I am going to fix a few things thanks.


[TEST] Use last Chrome version with Ubuntu Precise support on Travis

no issue

pins chrome version to 49.0.2623.112-1 which is the last version that supports Ubuntu Precise
installs via deb package as it's not possible to specify anything other than latest version through apt-get

Closing in favour of #6716


Quick Switch broken

In 5.3.4-beta.6:

Dark mode does not work and causes text (and icons if they're white) to be invisible
The input field does not get auto-focused (It does when I launch Ferdi, but after switching to a different service, it stops auto-focusing)
It's quite tall

OS: macOS 10.14.6
Version: 5.3.4-beta.6

Oh, I'll have to fix the issues with dark mode.
The input field is an issue I know of, but unfortunately it is a known problem in electron: If Ferdi's focus is inside a webview/service, there is no way to gain back focus to Ferdi itself and the search input.
I could add a height limit to the list to avoid having such a long list.

@vantezzen In the comments of that Electron issue, the first comment mentions finding a workaround, and another comment says window.blurWebView() works. Have you tried those?
It could have a height limit, and if exceeded it can scroll. Individual items can also have a much smaller height. When the search field is empty, it could either show no items or the previous 1 or 3 items. Discord's quick switcher might be a good reference:

Yes, I've tried the comment on the issue, but as already discussed there, this does not allow to focus on the embedder page.
I also tried Electron's win.blurWebView() method (this is still implemented), but it looks like it doesn't do what it should? - Unless I implemented it wrong.
I now fixed the DarkMode and height issues. Your other suggestions may require feedback from other users. I don't think we should show no services when no search query is provided - you shouldn't need to search services in order to switch to them.
Please vote:
What should the QuickSwitch show, when no search query is provided?

QuickSwitch will now sort services by last used when no search query is provided.

What is the keyboard shortcut to view the shortcut window?


[Question] OOM Is there a way not to load the whole dataset in the dataloader?

Hello,
I have a very large parquet file that the Loader is trying to load on a 24 GB GPU. Is there any way not to load the whole dataset into the dataloader?

Solved following the NVTabular documentation for good practices.
I added train.to_parquet("../../data/processed/merlin_train", engine="pyarrow", **row_group_size=10000**) and I can load the dataset.
Thanks