get deployment resource

Is there a feature planned tp get deployment resource definitions?
I would like to ask for the replicas coont.

Do you mean something like the following:
final Deployment deployment = new KubernetesClient().create(AppsV1Api.class)
  .readNamespacedDeployment("$deploymentName", "$namespace").get();
deployment.getSpec().getReplicas();
deployment.getStatus().getAvailableReplicas();
deployment.getStatus().getReadyReplicas();
deployment.getStatus().getReplicas();

This is already possible. There are type definition and API definitions for all vanilla Kubernetes types up to 1.19.
You can also find a set of extensions for additional non-standard kubernetes types too see https://github.com/manusa/yakc/tree/master/apis or details in Javadoc.

I added a test suite for reference:
https://github.com/manusa/yakc/blob/6e6dded0e573b228aef0c0d322063e551279fa7c/tests/src/test/java/com/marcnuri/yakc/DeploymentIT.java
Please, confirm if this is what you were looking for.

@manusa Is there any kind of callback feature that allow me to implement a method in case replicas are changed?
I want to allow my application to dynamically adopt on scale.

Yes, if you are familiar with RxJava  or any other reactive library this should be easy and straightforward with the watch() method implemented by "listable" APIs.
For example, the following code in the PodIT test blocks the current thread until a pod with a given name is created or a timeout occurs:
https://github.com/manusa/yakc/blob/f89668ba34a11aeca9575b130f99c59a263f2740/tests/src/test/java/com/marcnuri/yakc/PodIT.java#L95-L100
The following code might be useful as a starting-point/scaffold
new KubernetesClient().create(AppsV1Api.class).listNamespacedDeployment("$namespace").watch()
  .filter(we -> {
    // Perform client side filtering
    return we.getObject().getMetadata().getName().equals("$myWatchedDeployment");
  })
  .timeout(
    // Add a timeout if you want (Check RxJava operations)
    20, TimeUnit.SECONDS)
  .subscribe(
    // Perform actions for any event produced on the watched resources
    deploymentWatchEvent -> {
      switch (deploymentWatchEvent.getType()) {
        case ADDED:
        case MODIFIED: {
          if (deploymentWatchEvent.getObject().getStatus().getAvailableReplicas().equals(desiredNumber)) {
            // Do something
          }
          break;
        }
        case DELETED: {
          break;
        }
      }
    },
    error -> {
      // Do something when the watch connection breaks due to an exception
    }
  );

The following recording shows how I'm doing something similar to what you need in the YAKC - Kubernetes Dashboard example (however things here are more complicated since stuff is happening in the front-end too).

What you can see here is the user scaling up and down a deployment. There is an active subscription to Deployment changes, the UI reflects whenever the number of ready replicas matches those requested by the user by setting the ReplicaSet and Deployment green or red.


How can i use polly on a simple test project?

Hi!
I'm found PollyJS on github trending repos, and i'm curious about how it works and how it can help me on my projects. So i've create a simple node app like:
const http = require('http');

const hostname = '<IP_ADDRESS>';
const port = 3000;

const server = http.createServer((req, res) => {
  res.statusCode = 200;
  res.setHeader('Content-Type', 'text/plain');
  res.end('Hello World\n');
});

server.listen(port, hostname, () => {
  console.log(`Server running at http://${hostname}:${port}/`);
});

i've already run:
npm install @pollyjs/cli -g
npm install @pollyjs/core -D

But i'm a little bit lost on where should i have to code the sample:
import { Polly } from '@pollyjs/core';

describe('Netflix Homepage', function() {
  it('should be able to sign in', async function() {
    /*
      Create a new polly instance.

      By default, Polly will connect to both fetch and XHR browser APIs and
      will record any requests that it hasn't yet seen while replaying ones it
      has already recorded.
    */
    const polly = new Polly('Sign In');

    /* start: pseudo test code */
    await visit('/login');
    await fillIn('email', 'polly@netflix.com');
    await fillIn('password', '@pollyjs');
    await submit();
    /* end: pseudo test code */

    expect(location.pathname).to.equal('/browse');

    /*
      Calling `stop` will persist requests as well as disconnect from any
      connected browser APIs (e.g. fetch or XHR).
    */
    await polly.stop();
  });
});

Thanks in advance!

But i'm a little bit lost on where should i have to code the sample

Polly hooks into test framework.  The first step is determining which test framework you want to use and how that hooks up to your workflow.  That's one layer up from Polly.  Depending on your project and comfort level, that may vary but here are two recommendations: https://mochajs.org/ and http://qunitjs.com/
Once you have that setup, continue with:
https://netflix.github.io/pollyjs/#/test-helpers/mocha or https://netflix.github.io/pollyjs/#/test-helpers/qunit

Thanks for quick answer!
I 'll take a look on it.


Anyone SBAT track a validator's group membership history

Expected Behavior
Please describe the behavior you are expecting
Current Behavior
What is the current behavior?

There are already events, what else should be added?


Create a test-container for this project

Includes methods to add to the Airlift config and add Trino AWS Proxy
plugins.
TODO - will benefit from its own base image but, for now, it's
constructed via a startup script that installs Python and uploads
the main tarball.

I'm having second thoughts about this. My use-case has changed and I don't think this has much value.


World Guard having issues with luckperms

Description

I am having issues where world guard and world edit are causing lag while trying to communicate with luckperms
Reproduction Steps
For me it is mining blocks in a mine with Token enchant
Expected Behaviour
I would expect much lower usage when world guard and world edit are communicating with luckperms
Server Details
Paper 1.20.4
LuckPerms Version
v5.4.137
Logs and Configs
No response
Extra Details
No response

Lag in that method is usually caused by slow context providers in other plugins. If you continue to drill down on the getQueryOptions, you should see some other plugin(s) involved.

To me it seems that the chain ends with a java.lang method but I can send the spark profile if needed


Implement $group stage _id expression

Description
Closes #2165.

Highlights:

expression in nested document is supported

				bson.D{{"$group", bson.D{
					{"_id", bson.D{{"nested", bson.D{{"v", "$v"}}}}},
				}}},

expression and operator combination is supported

				bson.D{{"$group", bson.D{
					{"_id", bson.D{
						{"v", "$v"},
						{"sum", bson.D{{"$sum", "$v"}}},
					}},
				}}},

Readiness checklist

[ ] I added/updated unit tests (and they pass).
[x] I added/updated integration/compatibility tests (and they pass).
[x] I added/updated comments and checked rendering.
[x] I made spot refactorings.
[ ] I updated user documentation.
[ ] I ran task all, and it passed.
[x] I ensured that PR title is good enough for the changelog.
[x] (for maintainers only) I set Reviewers (@FerretDB/core), Labels, Project and project's Sprint fields.
[x] I marked all done items in this checklist.

I guess force-merging without waiting for Mergify does that 😬 . Please re-approve


An example retrieving SQLite version number via the dedicated API

https://docs.rs/rusqlite/latest/rusqlite/fn.version_number.html
As it is just a function call, there is no example needed.


$translate from angular-translate 2.7.0 onward only works within a $timeout inside of ng-widget.

When I move a component using $translate outside of ng-widget, the $translate service works again.

This is a big issue on some other projects. We need a fix for this
I'very reproduced the same situation also.

Thanks I'll try to take a look soon, probably next week
On Fri, Sep 2, 2016, 20:18 Rodrigo Ochoa<EMAIL_ADDRESS>wrote:

This is a big issue on some other projects. We need a fix for this
I'very reproduced the same situation also.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/wix/angular-widget/issues/30#issuecomment-244435533,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABrrQQfmyeG2Q3xbw279VTjqrwfeFuEtks5qmFpcgaJpZM4Jz1uK
.

@shahata Have you had a chance to look at this issue?


python38Packages.cypari2: 2.1.1 -> 2.1.2

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python38Packages.cypari2 is: "Cython bindings for PARI"
meta.homepage for python38Packages.cypari2 is: "https://github.com/defeo/cypari2"
meta.changelog for python38Packages.cypari2 is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS

Warning: a test defined in passthru.tests did not pass

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 2.1.2 with grep in /nix/store/j64z6xcmrf303fcf37cyqsrg8rad4jfj-python3.8-cypari2-2.1.2

directory tree listing: https://gist.github.com/150ccf5b455d8e317b64e88cd991c3cc

du listing: https://gist.github.com/00cce2f825ce3ea28560e1d58603d8e4

Rebuild report (if merged into master) (click to expand)

10 total rebuild path(s)

4 package rebuild(s)

4 x86_64-linux rebuild(s)
2 i686-linux rebuild(s)
2 x86_64-darwin rebuild(s)
2 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
python38Packages.cypari2
python39Packages.cypari2
sage
sageWithDoc

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/j64z6xcmrf303fcf37cyqsrg8rad4jfj-python3.8-cypari2-2.1.2 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python38Packages.cypari2 https://github.com/r-ryantm/nixpkgs/archive/7baac43e29731ada56c579e80cd69e3c4cac7174.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/j64z6xcmrf303fcf37cyqsrg8rad4jfj-python3.8-cypari2-2.1.2
ls -la /nix/store/j64z6xcmrf303fcf37cyqsrg8rad4jfj-python3.8-cypari2-2.1.2/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
nixpkgs-review took longer than 45m and timed out

Maintainer pings
cc @timokau @omasanori @7c6f434c @collares for testing.

Please don't merge this, I am doing the update in #117123. It will be ready very soon (probably today).

Result of nixpkgs-review pr 117401 at 7baac43e run on x86_64-linux 1

2 packages skipped due to time constraints:

sage
sageWithDoc

2 packages built successfully:

python38Packages.cypari2
python39Packages.cypari2

1 suggestion:

warning: unclear-gpl
gpl2 is a deprecated license, please check if project uses gpl2Plus or gpl2Only and change meta.license accordingly.
Near pkgs/development/python-modules/cypari2/default.nix:51:5:
   |
51 |     license = licenses.gpl2;
   |     ^


docs links in main readme give 404

https://scalinglightning.com/docs/ does not exist currently.

Thanks for the report, I assume that was from the readme?
There are docs but unfortunately no index page: https://scalinglightning.com/docs/project-use-cases

Updated link in readme

@maxwedwards There's another link under the Gettinig Started header

Good catch thanks.


Errors when using multiple heatmaps on leaflet

There seems to be an issue in the leaflet plugin that causes erros when trying to use more than one HeatmapOverlay.
Below is the trace I get from chrome:
Uncaught TypeError: undefined is not a function leaflet.js:6
    o.Map.o.Class.extend._layerAdd leaflet.js:6
    o.Map.o.Class.extend.eachLayer leaflet.js:6
    o.Map.o.Class.extend._resetView leaflet.js:6
    o.Map.include.setView leaflet.js:9
    o.Map.o.Class.extend.fitBounds leaflet.js:6
    window.onload

Problem seems to be with this refering to a singular instance of the HeatmapOverlay object. I haven't been able to find a quick fix yet. Will try to add a JSFiddle to demonstrate the issue.

I tried your fix but I am not able to put two overlays. Are there any pointers you could share?
It seems, as mentioned, that if I use the same config variable, there are problems. I was able to add two layers but the first layer that was created and added doesn't show up, I can only see the second one. Upon exploring the html elements, I can see that there are two canvas tags but one of them has height and width attributes equal to 0 and wasn't able to change that.
Any help is appreciated

I faced a problem trying to plot multiple heatmaps: only first heatmapoverlay passed to layers parameter is displayed.
This is the problematic part of code:
var heatmapLayer1 = new HeatmapOverlay(cfg1);
var heatmapLayer2 = new HeatmapOverlay(cfg2);
var map = new L.Map('map', {
    center: new L.LatLng(22.0, 114.0),
    zoom: 11,
    layers: [baseLayer, heatmapLayer1, heatmapLayer2]
});
heatmapLayer1.setData(testData1);
heatmapLayer2.setData(testData2);

I don't know exactly if it is my mistake or something's wrong under the hood so I will be very happy to hear any ideas.
Thanks for attention.


Don't exclude flex from deploying assets (cron, dos, indexes etc.)

Fixes #1373
Testing this out still

it's unfortunately more complicated than this.
App Engine Flex apps don't generate yaml files into WEB-INF/appengine-generated.   Typically the files will be in the source as yamls.

on hold - see the issue for details

obsolete - see #1497


Get the badges to refer to proper branches

The current badges in the readme's do not seem to refer to the proper status - CI is failing, for example, when it is passing, and the python version is also missing

Turns out this is just not possible. We can restrict the branch name to master, however, which will make sure that this thing gives the "proper" result, and not the develop result.


chore: use v1.0.1 for exact dev dependency on core packages

Since release of v1.0.1 of core packages, typescript compilation breaks in contrib repo due to:

    Type 'import("/__w/opentelemetry-js-contrib/opentelemetry-js-contrib/node_modules/@opentelemetry/sdk-trace-web/node_modules/@opentelemetry/sdk-trace-base/build/src/Span").Span' is not assignable to type 'import("/__w/opentelemetry-js-contrib/opentelemetry-js-contrib/node_modules/@opentelemetry/sdk-trace-base/build/src/Span").Span'.
     Types have separate declarations of a private property '_spanContext'.

Until the relevant fix is made in core repo, I am updating all dev dependencies of packages in contrib that point to exact version "1.0.0" to use "1.0.1", so CI can pass and we can merge and release packages again.

We should probably be using version ranges ~ anyway, but let's talk about that in another PR/issue. Getting this merged is higher priority right now to fix the tests as they stand.

Merged as this is a high priority that was blocking other PRs

Thanks @dyladan :)


kernel_service.dart includes two new relative imports; not supported internally

pkg/vm/bin/kernel_service.dart now includes two relative imports, which are not supported internally.
Additionally these do not seem to be the convention:
$ git grep "\.\./lib/" pkg/ |wc -l
      26
$ git grep "\.\./lib/" pkg/ |grep -v /test/
pkg/analyzer/lib/src/dart/error/hint_codes.dart:   * `import '../lib/some.dart'` which references a file inside the lib
pkg/dart_messages/bin/publish.dart:const String jsonPath = '../lib/generated/shared_messages.json';
pkg/dart_messages/bin/publish.dart:/// Translates the shared messages in `../lib/shared_messages.dart` to JSON,
pkg/front_end/lib/src/compute_platform_binaries_location.dart:    return vmDirectory.resolve("../lib/_internal/");
pkg/front_end/tool/fasta_perf_test.dart:      Platform.script.resolve('../lib/src/api_prototype/file_system.dart').path;
pkg/front_end/tool/perf_test.dart:      Platform.script.resolve('../lib/src/api_prototype/file_system.dart').path;
pkg/vm/bin/frontend_server_starter.dart:import '../lib/frontend_server.dart';

Fixed.


Querying each time property gets accessed

Currently when getting related model pk's via $model->relation_ids each time query gets executed. Suggest storing result in variable will be handy for optimization purpose.

You want after the first request $this->authors_ids save into the cache result and the next calls will get data from the cache. All right?


new crash

We synced with master yesterday and are now getting a crash on startup (after a hot restart).
Here's the stack trace (not super useful):
StreamRuntime gRPC config stream closed: 14, no healthy upstream
Unable to establish new stream
StreamRuntime gRPC config stream closed: 14, no healthy upstream
Unable to establish new stream
Caught Segmentation fault, suspect faulting address 0x10
Backtrace (use tools/stack_decode.py to get line numbers):
Envoy version: 0/1.15.0-dev//RELEASE/BoringSSL
#0: __restore_rt [0x7f7cf5486890] ??:0
#1: Envoy::ThreadLocal::InstanceImpl::Bookkeeper::get() [0x562156ddfa63] ??:0

I am suspecting either https://github.com/envoyproxy/envoy/pull/10362 or https://github.com/envoyproxy/envoy/pull/10842.
The full list of changes that we picked up:
Remove hardcoded type urls Part.2 https://github.com/envoyproxy/envoy/pull/10848
upstream: fix panic on grpc unknown_service status on healthchecks https://github.com/envoyproxy/envoy/pull/10863
Fix Windows compilation of test sources https://github.com/envoyproxy/envoy/pull/10822
conn_pool: unifying status codes https://github.com/envoyproxy/envoy/pull/10854
Windows compilation: enable compiling expanded list of extensions in envoy-static https://github.com/envoyproxy/envoy/pull/10542
logger: Make log prefix configurable https://github.com/envoyproxy/envoy/pull/10693
stream_info: Collapse constructors https://github.com/envoyproxy/envoy/pull/10691
coverage: revert workarounds that are no longer neccessary https://github.com/envoyproxy/envoy/pull/10837
Update LuaJIT patch - remove MAP_32BIT https://github.com/envoyproxy/envoy/pull/10867
filter: postgres statistics network filter https://github.com/envoyproxy/envoy/pull/10642
api/faq: add initial API versioning FAQ entries. https://github.com/envoyproxy/envoy/pull/10829
Catch exception and return false in cases where std::regex_match throws. https://github.com/envoyproxy/envoy/pull/10861
redis: Fix stack-use-after-scope in test https://github.com/envoyproxy/envoy/pull/10840
http: downstream connect support https://github.com/envoyproxy/envoy/pull/10720
init: order dynamic resource initialization to make RTDS always be first https://github.com/envoyproxy/envoy/pull/10362
[test] fix fuzz tests that might crash on duplicate settings params https://github.com/envoyproxy/envoy/pull/10779
Fix clang-tidy in source/common/http/conn_manager_config.h https://github.com/envoyproxy/envoy/pull/10860
fix: upstream grpc stats on trailers only https://github.com/envoyproxy/envoy/pull/10842
ip tagging: remember tags as builtins https://github.com/envoyproxy/envoy/pull/10856
Remove vendor specific dynamo filter use from HCM config test https://github.com/envoyproxy/envoy/pull/10858
router: allow retry of streaming/incomplete requests https://github.com/envoyproxy/envoy/pull/10725
Update filter_chain_benchmark_test.cc https://github.com/envoyproxy/envoy/pull/10850
[admin] extract stats handlers to separate file https://github.com/envoyproxy/envoy/pull/10750

Maybe #10362 :
[2020-04-22 17:42:30.844][20][debug][init] [external/envoy/source/common/init/watcher_impl.cc:14] init manager RTDS initialized, notifying RDTS
[2020-04-22 17:42:30.844][20][info][runtime] [external/envoy/source/common/runtime/runtime_impl.cc:519] RTDS has finished initialization
[2020-04-22 17:42:30.844][20][debug][upstream] [external/envoy/source/common/upstream/cluster_manager_impl.cc:187] continue initializing secondary clusters
[2020-04-22 17:42:30.844][20][debug][upstream] [external/envoy/source/common/upstream/cluster_manager_impl.cc:125] maybe finish initialize state: 4
[2020-04-22 17:42:30.844][20][debug][upstream] [external/envoy/source/common/upstream/cluster_manager_impl.cc:133] maybe finish initialize primary init clusters empty: true
[2020-04-22 17:42:30.844][20][debug][upstream] [external/envoy/source/common/upstream/cluster_manager_impl.cc:141] maybe finish initialize secondary init clusters empty: true
[2020-04-22 17:42:30.844][20][debug][upstream] [external/envoy/source/common/upstream/cluster_manager_impl.cc:164] maybe finish initialize cds api ready: true
[2020-04-22 17:42:30.844][20][info][upstream] [external/envoy/source/common/upstream/cluster_manager_impl.cc:170] cm init: all clusters initialized
[2020-04-22 17:42:30.844][20][info][main] [external/envoy/source/server/server.cc:557] all clusters initialized. initializing init manager
[2020-04-22 17:42:30.844][20][debug][init] [external/envoy/source/common/init/manager_impl.cc:45] init manager Server contains no targets
[2020-04-22 17:42:30.844][20][debug][init] [external/envoy/source/common/init/watcher_impl.cc:14] init manager Server initialized, notifying RunHelper
[2020-04-22 17:42:30.844][20][info][config] [external/envoy/source/server/listener_manager_impl.cc:796] all dependencies initialized. starting workers
[2020-04-22 17:42:30.844][20][debug][config] [external/envoy/source/server/listener_manager_impl.cc:807] starting worker 0
[2020-04-22 17:42:30.844][20][debug][config] [external/envoy/source/server/listener_manager_impl.cc:807] starting worker 1
[2020-04-22 17:42:30.844][32][debug][main] [external/envoy/source/server/worker_impl.cc:111] worker entering dispatch loop
[2020-04-22 17:42:30.844][32][critical][backtrace] [bazel-out/k8-opt/bin/external/envoy/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:104] Caught Segmentation fault, suspect faulting address 0x10
[2020-04-22 17:42:30.844][32][critical][backtrace] [bazel-out/k8-opt/bin/external/envoy/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:91] Backtrace (use tools/stack_decode.py to get line numbers):
[2020-04-22 17:42:30.844][32][critical][backtrace] [bazel-out/k8-opt/bin/external/envoy/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:92] Envoy version: 0/1.15.0-dev//RELEASE/BoringSSL
[2020-04-22 17:42:30.844][33][debug][main] [external/envoy/source/server/worker_impl.cc:111] worker entering dispatch loop
[2020-04-22 17:42:30.844][32][critical][backtrace] [bazel-out/k8-opt/bin/external/envoy/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:96] #0: __restore_rt [0x7f918b769890] ??:0

cc: @yanavlasov

@rgs1 if possible can you get a proper stack trace with debug symbols?

Reverting #10362 indeed made it go away. Hmm. I might not have time to debug more of this today, so a better stack trace might need to wait unless someone else can get a repro of this first (if not I'll follow-up later/tomorrow).

OK we should probably revert #10362 in the meantime. cc @yanavlasov

Is the plan still to revert this? I might have time to look into this again later today, but in parallel we'd like to still stay close to master (without carrying a revert patch) so reverting would be nice.

@rgs1 can you file the revert PR? If not I can do it later.

Yup -- coming up.

@mattklein123 revert here: #10919.

@rgs1 stack trace would be very helpful or some pointers on how to reproduce this.

For others following along:
#0: __restore_rt [0x7f840a2ec890] ??:0
#1: Envoy::ThreadLocal::InstanceImpl::Bookkeeper::get() [0x55f3e9a71a63] ??:0
#2: Envoy::ThreadLocal::Slot::getTyped<>() [0x55f3e9b2ddac] ??:0
#3: Envoy::Stats::ThreadLocalStoreImpl::ScopeImpl::counterFromStatNameWithTags() [0x55f3e9b2dae8] ??:0
#4: Envoy::Server::GuardDogImpl::WatchedDog::WatchedDog() [0x55f3e9a8b9a6] ??:0
#5: Envoy::Server::GuardDogImpl::createWatchDog() [0x55f3e9a8b548] ??:0
#6: std::_Function_handler<>::_M_invoke() [0x55f3e9af129a] ??:0
#7: Envoy::Event::DispatcherImpl::runPostCallbacks() [0x55f3e9afb0fd] ??:0
#8: Envoy::Event::DispatcherImpl::run() [0x55f3e9afafbc] ??:0
#9: Envoy::Server::WorkerImpl::threadRoutine() [0x55f3e9af04a0] ??:0
#10: Envoy::Thread::ThreadImplPosix::ThreadImplPosix()::$_0::__invoke() [0x55f3ea034d35] ??:0
#11: start_thread [0x7f840a2e16db] ??:0

That's from a clean start, not a hot-restart.

I was able to recreate it. The conditions are:

RTDS initialized via gRPC
The cluster used for RTDS needs to have health checks enabled
No healthy upstream hosts

This leads to some invariant of the new split initialization of the cluster manager violated. It is firing an ASSERT in cluster manager in debug builds. In release builds it continues and later crashes with the stack that @rgs1 attached, which I think is red herring at this point. I will debug this further later on to figure out how the state machine in cluster manager gets out of whack.

Fixed


Set workload version

Enhancement Proposal
It would be handy if the charm set the workload version so it prints in juju status.
Ref: https://github.com/canonical/prometheus-k8s-operator/pull/350

Implemented in #100.


[devicelab] Separate build and test from Flutter gallery tests

Create BuildTestTask that can be passed args to run build and test separately via --task-args

--task-args build and --task-args test are the current supported flags

Migrate GalleryTest to BuildTestTask
Update GalleryTest based tasks to pass args
Create test command

Use
dart bin/test_runner.dart test --task flutter_gallery__start_up --task-args build

Issues
https://github.com/flutter/flutter/issues/71855 - Create test runner command
https://github.com/flutter/flutter/issues/76413 - Separate DeviceLab builds + tests

NoSuchMethodError: The getter 'length' was called on null.
Receiver: null
Tried calling: length
#0      Object.noSuchMethod (dart:core-patch/object_patch.dart:54:5)
#1      _Uri._uriEncode (dart:core-patch/uri_patch.dart:44:23)
#2      Uri.encodeFull (dart:core/uri.dart:1071:17)
#3      Cocoon._constructUpdateRequest (package:flutter_devicelab/framework/cocoon.dart:135:27)
#4      Cocoon.writeTaskResultToFile (package:flutter_devicelab/framework/cocoon.dart:116:48)
#5      runTasks (package:flutter_devicelab/framework/runner.dart:46:20)

NoSuchMethodError: The getter 'length' was called on null.
Receiver: null
Tried calling: length
#0      Object.noSuchMethod (dart:core-patch/object_patch.dart:54:5)
#1      _Uri._uriEncode (dart:core-patch/uri_patch.dart:44:23)
#2      Uri.encodeFull (dart:core/uri.dart:1071:17)
#3      Cocoon._constructUpdateRequest (package:flutter_devicelab/framework/cocoon.dart:135:27)
#4      Cocoon.writeTaskResultToFile (package:flutter_devicelab/framework/cocoon.dart:116:48)
#5      runTasks (package:flutter_devicelab/framework/runner.dart:46:20)

Thanks! I wish the flutter-dashboard bot notified us of presubmit failures.
Fixed, I missed passing the LUCI builder from bin/run.dart to runner.dart.

error • The named parameter 'luciBuilder' isn't defined • dev/devicelab/bin/run.dart:164:7 • undefined_named_parameter

01:14 +57 ~1 -1: test/tasks/build_test_task_test.dart: throws exception when build and test arg are given
VM service still not ready after 0:00:10.336232: SocketException: OS Error: Connection refused, errno = 111, address = <IP_ADDRESS>, port = 57466
Continuing to retry..
[smoke_test_build_test] [STDOUT] Running task with a timeout of null.

Thanks @jmagman, looks like testing the tests from runTask isn't supported as it will try to kill left over dart processes, like the one running the unit tests 🙃


[README Enhancement]: Concrete Compressive Strength Prediction Using Deep Learning

Deep Learning Simplified Repository (Proposing new issue)
:red_circle: Project Title : README Enhancement: Concrete Compressive Strength Prediction Using Deep Learning
:red_circle: Aim : The aim is to enhance the README file and make it eye pleasing, well documented using the given README template.
:red_circle: README to be enhanced : https://github.com/abhisheks008/DL-Simplified/blob/main/Concrete Compressive Strength/Models/Readme.Md
:red_circle: README Template : https://github.com/abhisheks008/DL-Simplified/blob/main/.github/readme_template.md

:red_circle::yellow_circle: Points to Note :

The issues will be assigned on a first come first serve basis, 1 Issue == 1 PR.
"Issue Title" and "PR Title should be the same. Include issue number along with it.
Follow Contributing Guidelines & Code of Conduct before start Contributing.

:white_check_mark: To be Mentioned while taking the issue :

Full name :
GitHub Profile Link :
Email ID :
Participant ID (if applicable):
Approach for this Project :
What is your participant role? (Mention the Open Source program)

Happy Contributing 🚀
All the best. Enjoy your open source journey ahead. 😎

Kindly assign this issue to me. @abhisheks008  .Would like to work on it. Its a good first issue.
Full Name: Mahi Singh
GitHub Profile Link :https://github.com/mahi13singh2004
Email ID<EMAIL_ADDRESS>Participant ID (if applicable): NA
Approach for this Project : Deep learning simplied repository Would make this eye pleasing, Currently it looks very dull. Would add some emojis and mention tasks and aim in points. Would make it look as good as possible!
What is your participant role? (Mention the Open Source program): GSSOC'24

Hi @mahi13singh2004 it's better to work on one issue at a time.

please assign this issue to me under gssoc'24
Full name : Shravya pamu
GitHub Profile Link :https://github.com/Shravya016
Email ID<EMAIL_ADDRESS>Participant ID (if applicable):NA
Approach for this Project : I want to enhance this project according to the template provided and make it easier to read for the user by adding points in it and more eye pleasing
What is your participant role? (Mention the Open Source program) GSSOC'24 contributor

hi @abhisheks008 i'd love to work on this issue if it's still available!
Full name : Anoushka Mahajan
GitHub Profile Link : https://github.com/iamanolive
Email ID<EMAIL_ADDRESS>Participant ID (if applicable): N/A
Approach for this Project :

add styling to headings

use emojis to make it more colorful

seperate the different sections of the document

add bullet points wherever applicable to make the document more readable

What is your participant role? : GSSoC'24 Contributor

Assigned to @Shravya016

Assigned to @Shravya016

@abhisheks008 are there any other beginner-friendly issues that i can work on? all the ones i can find have been assigned already.

Hi @iamanolive you can go through the existing projects' README files, if you find something is not correct there you can create an issue on that. I think doing documentation is a good first issue tagged issue.

Hi @iamanolive you can go through the existing projects' README files, if you find something is not correct there you can create an issue on that. I think doing documentation is a good first issue tagged issue.

will do! thanks so much @abhisheks008


Fix PositionImageExportDialog bug

説明 / Description
bug fix
チェックリスト / Checklist

MUST

[x] npm test passed
[x] npm run lint was applied without warnings
[x] changes of /docs/webapp not included (except release branch)
[x] console.log not included (except script file)

RECOMMENDED (it depends on what you change)

[ ] unit test added/updated
[ ] i18n

Codecov Report
All modified lines are covered by tests :white_check_mark:

Comparison is base (4109fe5) 70.27% compared to head (21bf0a0) 70.27%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #654   +/-   ##
=======================================
  Coverage   70.27%   70.27%
=======================================
  Files          89       89
  Lines       18155    18155
  Branches     2586     2586
=======================================
  Hits        12759    12759
  Misses       2842     2842
  Partials     2554     2554

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Override and disable applications when we have errors fetching

Resolves: #775
Description

Resolves a weird situation when OdhDashboard references a csv that changes version.
Merge criteria:

[x] The commits are squashed in a cohesive manner and have meaningful messages.
[x] Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
[x] The developer has manually tested the changes and verified that the changes work

/lgtm


Log basebackups failure reasons

The code paths this PR hooked into have been refactored and this no longer applies, are you going to refactor this to work with current master or should we just close it?


[Epic] Data Management

Tasks Needed:

[ ] Identify where are we pushing and pulling to
[ ]  Implement commands

0.22.0 Release

[ ] HF Support?

0.23.0 Release

[ ] S3 Support?

I'd like to try this out!


self.t = target_logit.mean() * 0.01 + (1 - 0.01) * self.t

Hello! In the paper, t should be calculated as:

It seems to be "self.t = target_logit.mean() * 0.99 + (1-0.99) * self.t" in the code.
But found "self.t = target_logit.mean() * 0.01 + (1 - 0.01) * self.t" in your code.  I don't know why.
Thx.

I have the same question!


Query: Allow certain unmapped constant in shaper expression

Fix for #13048 involves trying to infer the constant expression in client code which are not server correlated and may contain reference to enclosing class which in terms capture context causing memory leak.
The heuristic we are currently using is, constantExpression

whose value is not null
& which are not mapped by current provider (since we don't send constants to server during client eval).

The set of conditions also includes certain other cases here. While it may not be always accurate but probably can be improved. 2 Failing cases right now.
        [ConditionalTheory]
        [MemberData(nameof(IsAsyncData))]
        public virtual Task GroupBy_empty_key_Aggregate_Key(bool isAsync)
        {
            return AssertQuery<Order>(
                isAsync,
                os =>
                    os.GroupBy(
                            o => new
                            {
                            })
                        .Select(
                            g => new
                            {
                                g.Key,
                                Sum = g.Sum(o => o.OrderID)
                            }));
        }

Group by empty key and then projecting such key (it works if key is not used in projection). Here we receive constant of anonymous type.
We added these pattern for dev expression (ref #11905)
But we cannot find if the anonymous constant references enclosing class or not.
See also #15712 If that is fixed then perhaps we can fix this case.
[ConditionalTheory]
        [MemberData(nameof(IsAsyncData))]
        public virtual async Task ToString_with_formatter_is_evaluated_on_the_client(bool isAsync)
        {
            await AssertQuery<Order>(
                isAsync,
                os => os.Where(o => o.OrderDate != null)
                    .Select(
                        o => new Order
                        {
                            ShipName = o.OrderID.ToString(new CultureInfo("en-US"))
                        }),
                e => e.ShipName);
        }

CultureInfo is not mapped type. In future we could allow certain types we know not coming from client code to be in tree as we can be certain it cannot contain enclosing class.

Notes from triage: @smitpatel to look at fixing the first case, since this is important for control vendors. Beyond that we still want to revisit this post 3.0.

Both of the cases worked using fix for #15712. So closing this alongwith.


Quick preview not staying

Hello,
I love the idea of this plugin, but when I hold down the buttons to see the quick preview, the window appears and disappears instantly.
I tried try disabling the following plugins (thinking it was a conflict), but that doesn't seem to be the problem.

Hover editor
Page preview
Do you know if I'm doing something wrong?

Thank you for your help, and great idea of plugin, congratulations !

Thanks for the report.
That's weird, I haven't experienced something like that. But from your video, it seems that you are using some other plugins that interact with the link suggester. It may be conflicting with this plugin.
Can you provide a minimal set of plugins to reproduce this in the sandbox vault? I mean, if you can reproduce it in the sandbox vault and send me the result of the "show debug" info command, it would be super helpful.
If it's difficult, it will also help a lot if you could show me the output of the command in your current vault. Thank you!

Also, what modifier key are you using?

Do you still have this problem?
I'm not trying to rush you, just a reminder.

Hello @RyotaUshio , no problem for the reminder thank's, sorry for the late i was on holidays.
I tried the plugin on a sandbox vault and i have the same problem.
I was wondering if the problem was'nt my keyboard, but the problem is the same when i unplug my keyboard to use the keyboard on my portable computer.
I tried to unplug my mouse too, but that's the same
That's wierd, maybe a problem on my pc.
Sorry for not helping you with this issue ^^.
If i'm the only one to have this problem so let it go.

I see. Could you show me the result of the "show debug info" command? I'm curious where this problem comes from, and that information might help me identify it.

I 'dont know if that's what you really want (tell me if not), but here it is with the sandbox vault :
SYSTEM INFO:
Obsidian version: v1.5.3
Installer version: v1.4.13
Operating system: Windows 10 Home 10.0.22631
Login status: logged in
Catalyst license: insider
Insider build toggle: on
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: off
Plugins installed: 1
Plugins enabled: 1
1: Quick Preview v0.5.11

Yeah this is exactly what I wanted, thank you!
I'm not sure but there might be Windows-specific issue cause I don't have a Windows machine. I'll look into it when I get a chance.

Ok thank you for your help and good luck ;).

Yeah this is exactly what I wanted, thank you!
I'm not sure but there might be Windows-specific issue cause I don't have a Windows machine. I'll look into it when I get a chance.

Hello,
@RyotaUshio Apologies for the interruption, but I've encountered a similar issue.
While using your other plugin, LaTeX-like Theorem & Equation Referencer, I found that without loading the Quick Preview plugin, I couldn’t access the latest version. To address this, I attempted to install this plugin. However, I noticed that when using it, the preview content flickers briefly before disappearing.
Below, I’ve attached debug info and a screen recording from the sandbox environment. In this environment, only this third-party plugin was loaded, yet the issue persists. If you need any additional information, please feel free to let me know, and I’ll provide it as quickly
https://github.com/user-attachments/assets/4e034944-aa73-4040-9111-965f6792494a
as possible.
SYSTEM INFO:
	Obsidian version: v1.7.5
	Installer version: v1.7.5
	Operating system: Windows 11 Pro 10.0.22631
	Login status: logged in
	Language: en
	Catalyst license: none
	Insider build toggle: off
	Live preview: off
	Base theme: adapt to system
	Community theme: none
	Snippets enabled: 0
	Restricted mode: off
	Plugins installed: 1
	Plugins enabled: 1
		1: Quick Preview v0.6.1

RECOMMENDATIONS:
	Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.

https://github.com/user-attachments/assets/2b00ab17-7097-48f0-8487-e0e89c8c54b2
Thank you!


divide by zero

When I use ImportanceWeightedClassifier (IW) iwe=kda, the console shows that
C:\Users\Administrator\Anaconda3\envs\libtlda\lib\site-packages\scipy\stats\kde.py:262: RuntimeWarning: invalid value encountered in true_divide
result = result / self._norm_factor
Besides, FLDA also has this problem (divided by zero).
Is there something wrong in my dataset ?
Any comments will be appreciated.

Hi TissueC, thanks for your interest in the library.
I think this is a numerical stability issue. Scipy's kde will only return a divide-by-zero if all estimated weights are 0, and that only occurs if every target point is so far away from a source point that exp(-distance(..)) is rounded off to 0. So, I suspect that your data sets are too far apart in feature space.
ImportanceWeightedClassifier cannot deal with data sets that don't overlap to at least some extent. I did not explicitly mention this anywhere, but I'll try to find a place to do that.
You say you get the same problem with FLDA? Can you tell me a bit more about how you're using it?


Fix public

fixes issue 242
implementation of recursive file list from here

There are many ways of doing this. @danielcondemarin used klaw in the plugin, which is more elegant IMHO. I think you should chat with him and enquire how he would like it done.

Thanks folks. I'm happy with the implementation as is. I've just added a test to make sure there are no regression issues introduced later.


Fix handling of single dimensional array hash codes

Single dimensional array hash code calculation should consider its rank to be 1, not -1
Add a unit test to verify the above behavior

LGTM


Update Crate.io to latest version

Currently compiling exa breaks because locale doesn't compile using the latest rust. It seems like you already fixed that on master, but didn't publish a new version on crates.io.
So, this is just a reminder to do that :)

Done! I'm so clever...


Add grep to the table

I am not sure if this would be worth adding to the list, but grep mostly works with some shortcomings such as this issue with passwords being printed to the console.

Perhaps with a warning about the password in the note. I would give it a lower rating due to the seriousness of the bug. Interested to hear other opinions however.

Alright, I will probably add something about grep in the coming days if no one else has opinions.
pinging @all to see what people think.


Restore default PropTypes export (fixes #3342)

This addresses a regression in react-router version 2.2.0 where the default export of PropTypes had some useful shapes removed. Fixes #3342.

Per discussion in https://github.com/reactjs/react-router/issues/3342 I'm going to close this out for now. I'm going to put up a PR in a bit that brings back everything but deprecates it all and sets up new, external-safe prop types.


Select all checkbox on header

How to setup to allow select all checkbox in  using this library.
<vue-good-table
  :columns="columns"
 :rows="rows"
 :paginate="true"
:lineNumbers="true">
     <template slot="table-column" scope="props">

          <input type="checkbox" v-model="checkboxMultiple" />

     </template>
     <template  slot="table-row" slot-scope="props">

          <input type="checkbox" @click="checkboxAction(props)" v-model="selected" />

    </template>
</vue-good-table>

Where checkboxAction(props) will select only one item at time on click action (currently when I click on one item all checkboxes are triggered to store and check date in an array.
And using computed property to get all values when checkboxMulitple modle is triggered.
As shown in fiddle https://jsfiddle.net/thanhmabo/atxj3786/.
Though I am not getting it working up.
I have other fields but such as ids, name as I think not required to be mentioned here to save space.
Also, how to remove that sortable criteria for this checkbox column. I have set sortable to false in columns data, still its filtering the rows when checkbox is clicked.
Thanks

@sarath49 I created a checkbox example here:
https://xaksis.github.io/vue-good-demos/#/dynamic-table
closing.

updated here
https://xaksis.github.io/vue-good-table/guide/advanced/checkbox-table.html


feat: allow listing file contents with debug:log

Hey, I just made a Pull Request!
This further improves the debug functionality to be able to actually see what is the content of the files generated by the template
:heavy_check_mark: Checklist

[x] A changeset describing the change and affected packages. (more info)
[x] Added or updated documentation
[x] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)
[x] All your commits have a Signed-off-by line in the message. (more info)

hey team, this PR removed the extra parameter from the input schema, which broke our automation templates.
Should the extra parameter make a comeback, please let us know.
If not, please mention it in the release notes 🙏


Migrate changelogs CLI to *.data files for Vitepress

Example https://github.com/igorkamyshev/farfetched/commit/cf1b02d8c74b7e70022f1077b16f62d4e7ca8515

I see no reason. Now it is robust, simple and does not require any attention.


Tool fails because 'institute' key is not found

After the latest PR (#632), the tool fails for every recipe (I tested all examples) with the following error:
Traceback (most recent call last):
  File "~/ESMValTool/esmvaltool/_main.py", line 215, in run
    conf = main(args)
  File "~/ESMValTool/esmvaltool/_main.py", line 143, in main
    process_recipe(recipe_file=recipe, config_user=cfg)
  File "~/ESMValTool/esmvaltool/_main.py", line 189, in process_recipe
    recipe = read_recipe_file(recipe_file, config_user)
  File "~/ESMValTool/esmvaltool/_recipe.py", line 56, in read_recipe_file
    raw_recipe, config_user, initialize_tasks, recipe_file=filename)
  File "~/ESMValTool/esmvaltool/_recipe.py", line 803, in __init__
    raw_recipe['diagnostics'], raw_recipe.get('datasets', []))
  File "~/ESMValTool/esmvaltool/_recipe.py", line 834, in _initialize_diagnostics
    raw_diagnostic.get('additional_datasets', []))
  File "~/ESMValTool/esmvaltool/_recipe.py", line 915, in _initialize_preprocessor_output
    self._initialize_variables(raw_variable, raw_datasets)
  File "~/ESMValTool/esmvaltool/_recipe.py", line 893, in _initialize_variables
    drs=self._cfg['drs'])
  File "~/ESMValTool/esmvaltool/_data_finder.py", line 260, in get_input_fx_filelist
    files = _find_input_files(var, rootpath, drs, fx_var)
  File "~/ESMValTool/esmvaltool/_data_finder.py", line 235, in _find_input_files
    input_dirs = _find_input_dirs(variable, rootpath, drs, fx_var)
  File "~/ESMValTool/esmvaltool/_data_finder.py", line 209, in _find_input_dirs
    for dirname_template in _replace_tags(path_template, variable, fx_var):
  File "~/ESMValTool/esmvaltool/_data_finder.py", line 116, in _replace_tags
    "your recipe entry".format(tag, variable))
KeyError: "Dataset key institute must be specified for {'preprocessor': 'preprocessor_1', 'field': 'T3M', 'fx_files': ['sftlf'], 'short_name': 'ta', 'diagnostic': 'ta_diagnostics', 'dataset': 'bcc-csm1-1', 'project': 'CMIP5', 'mip': 'Amon', 'exp': 'historical', 'ensemble': 'r1i1p1', 'start_year': 2000, 'end_year': 2002, 'cmor_table': 'CMIP5', 'filename': '/scratch/b/b309141/work_v2/recipe_ncl_20181017_085921/preproc/ta_diagnostics_preprocessor_1_ta/CMIP5_bcc-csm1-1_Amon_historical_r1i1p1_T3M_ta_2000-2002.nc', 'frequency': 'mon', 'modeling_realm': ['atmos']}, check your recipe entry

I used my old config-user.yml and a new one with a list as rootpaths; both fail. The old version (8e39c7ce) still works.

Funny. Where did you try this?
I've successfully tested this PR with and without multiple rootpaths on both DKRZ and our cluster.

@valeriupredoi reported a similar issue in #656, could this be related to it?

Weird...I ran it on DKRZ.

Maybe an issue of the config-user.yml? I used a fresh one from the repo and just adapted the paths:
###############################################################################
# User's configuration file for the ESMValTool
###############################################################################
---

# Diagnostics create plots? [true]/false
write_plots: true
# Diagnositcs write NetCDF files? [true]/false
write_netcdf: true
# Set the console log level debug, [info], warning, error
log_level: info
# verbosity is deprecated and will be removed in the future
# verbosity: 1
# Exit on warning? true/[false]
exit_on_warning: false
# Plot file format? [ps]/pdf/png/eps/epsi
output_file_type: pdf
# Destination directory
output_dir: .../work_v2
# Use netCDF compression true/[false]
compress_netcdf: false
# Save intermediary cubes in the preprocessor true/[false]
save_intermediary_cubes: false
# Remove the preproc dir if all fine
remove_preproc_dir: true
# Run at most this many tasks in parallel null/[1]/2/3/4/..
# Set to null to use the number of available CPUs.
# Make sure your system has enough memory for the specified number of tasks.
max_parallel_tasks: 8
# Path to custom config-developer file, to customise project configurations.
# See config-developer.yml for an example. Set to None to use the default
config_developer_file: null
# Get profiling information for diagnostics
# Only available for Python diagnostics
profile_diagnostic: false

# Rootpaths to the data from different projects (lists are also possible)
rootpath:
  CMIP5: .../
  OBS: [.../, .../]
  obs4mips: [.../, .../]
  Ozone_CMIP5_ACC_SPARC: .../
  default: .../

# Directory structure for input data: [default]/BADC/DKRZ/ETHZ/etc
# See config-developer.yml for definitions.
drs:
  CMIP5: DKRZ

I use the config-developer.yml of the repo. Exchanging institutes by institute in the CMIP5 section didn't solve the problem...

@schlunma can you make sure that _recipe.py is the same as the one in version2_development (specifically the institute key gets a value at line 880). My problem stemmed from exactly those two lines of code not being placed in there after a git merge version2_development into my branch (which was very odd, because I have been doing branch merging since neolithic times, and am fairly positive I didnt cock anything up)

I can confirm this is a problem with the institute key, since it works perfectly with the ETHZ drs which does not require such key.

@mattiarighi and @schlunma can you guys pls confirm that _recipe.py is up to v2_dev standards - see my comment above; if that's true, then it is a problem with institute indeed and suggest reviving my PR that I closed on Monday, if not, that means you are hitting the same problem I hit on Friday - git is messing up

@valeriupredoi I'm currently on the version2_development branch:
12:33:43 ~/ESMValTool > git status
On branch pubv2
Your branch is up to date with 'public/version2_development'.

nothing to commit, working tree clean
12:33:48 ~/ESMValTool > git diff public/version2_development -- esmvaltool/_recipe.py
12:33:50 ~/ESMValTool >

So i guess we need to revive your PR.

branch: version2_development
commit: c39788
md5sum: 4ac58a9aa6166e3c4bd9c0f71a3d53e3  _recipe.py
_recipe.py:880 institute = get_institutes(variable)

I even downloaded _recipe.py from the browser interface and made a diff with the file in the repo (to make sure git diff is not fooling me), both files are equal.


Spike buffer realloc

use std::vector instead of new allocated memory, permitting easy realloc.
filter negative gid inside spike_buffer (shouldnt it be already filtered in setup anyway ?)

I have just reverted those changes on multicore.c

After validation, everything is working as expected.

I have just updated with changes required


Allow falsey but non-None grant uri params

There are use cases where you want to pass 0 to authorize_redirect, for example Auth0 allows you to force login again by passing max_age=0, as described here.
The current code for prepare_grant_uri filters out such parameters. This PR changes that to explicitly filter out None instead.
What kind of change does this PR introduce? (check at least one)

[x] Bugfix
[ ] Feature
[ ] Code style update
[ ] Refactor
[ ] Other, please describe:

Does this PR introduce a breaking change? (check one)
Debatable? Technically a breaking change if someone was passing a non-None falsey value to authorize_redirect() previously.

[x] You consent that the copyright of your pull request source code belongs to Authlib's author.

Thanks


Collect disk utilization information

Users can write to /tmp, which then survives through container re-usage. This is data that is hard to get w/o using a tool like IOpipe.

collect percentage of use as well as absolute values


Make README PyPI-friendly

https://packaging.python.org/en/latest/guides/making-a-pypi-friendly-readme/
Required for #244

Addressed in ace90bf


feat: [PIPE-22045]: file explorer

File Explorer Exported out of Repo-Files Page
State maintained for opened folders in a Repo

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


Fix wrong usage of discriminator map in complex document inheritance chains

Q
A

Type
bug/improvement

BC Break
yes

Fixed issues
#2024 (partially)

Summary
See #1962 for details. This brings the wanted functionality into 2.0 as we can't have it in 1.x due to a regression with partial discriminator maps. While #2024 wants the same behaviour for inheritance chains without discriminators, this isn't possible since the subclasses of a particular class aren't known.

Thanks @alcaeus!


Icons that are linked are flagged by page speed insights that "Links do not have discernible names"

Expected Behaviour
When an icon is linked, attributes should be set not cause accessibility issues. I think this could be handled in a few ways (aria label/aria-labelledby, sr-only text, etc.), but ideally if the svg contains a <title>, that is used, and if not, it falls back to the icon name.
Actual Behaviour
No aria label or sr text is set, so links are flagged by the accessibility checks. This seems to only be a problem for the svg use references from the sprite, when svgs are inlined, if those svgs have a <title> it seems to be fine from my testing.
Reproduce Scenario (including but not limited to)
see https://pagespeed.web.dev/analysis/https-surest-com/yknkix6bfs?form_factor=mobile but reproducible across many Franklin sites who have icons that are linked (very common in header and footer)
Steps to Reproduce
Platform and Version
Sample Code that illustrates the problem
Logs taken while reproducing problem

closing, as icon decoration has changed a lot since this opened.


Rustup 1.4 fixed the permissions of the extracted files

This means we can remove the work-around of manually marking things as executable.

This is good news! For other projects, too.


cmd/go: pseudo-versions for post-v1 commits use the wrong major version

Go version:
go version devel +976bab6003 Fri Dec 14 09:10:02 2018 +0000 darwin/amd64
rsc.io/quote's latest released version is v1.5.2.
But go chooses v0.0.0-... as the pseudo version selected when using the master branch.

> go list -m -versions -json rsc.io/quote@master
go: finding rsc.io/quote master
{
	"Path": "rsc.io/quote",
	"Version": "v0.0.0-20180710144737-5d9f230bcfba",
	"Versions": [
		"v1.0.0",
		"v1.1.0",
		"v1.2.0",
		"v1.2.1",
		"v1.3.0",
		"v1.4.0",
		"v1.5.0",
		"v1.5.1",
		"v1.5.2",
		"v1.5.3-pre1"
	],
	"Time": "2018-07-10T14:47:37Z",
	"Dir"<EMAIL_ADDRESS>	"GoMod"<EMAIL_ADDRESS>}

Possibly related to #27171 but needs investigation.
@bcmills

This might not be an exact duplicate of #27171, since it also interacts non-trivially with v2 and +incompatible.

At current head:
$ go list -f '{{.Version}}' -m<EMAIL_ADDRESS>go: finding github.com/sylr/prometheus v2.9.2+sylr.2
v0.0.0-20190510132036-085fc219838d

It should instead be something like
v2.9.3-0.20190510132036-085fc219838d+incompatible

(CC @sylr)

It should instead be something like

v2.9.3-0.20190510132036-085fc219838d+incompatible

For readability it would be nice if the tag would be kept in the go.mod -> v2.9.2+sylr.2+incompatible

For readability it would be nice if the tag would be kept in the go.mod

That's (an interesting special case of) #25898.

FWIW, from looking at this somewhat briefly (and hence might not be correct), it seems this issue is specific to a v2+ module and asking for a commit (current meaning of @master in this case) where the most recent semver tag at that commit is for a different major version than the major version in the go get request. I had a slightly longer write up in https://github.com/golang/go/issues/27171#issuecomment-470134255 (along with some links to the possibly corresponding code):

In #29262, rsc.io/quote at master has two different major versions following the Major Subdirectory approach. It has a v1 module in the root of the repo, and a v3 module in a /v3 subdirectory. If you ask for go get rsc.io/quote@master, that is asking for v1 of rsc.io/quote, which is a valid request, but the most recent tag on master matching that glob pattern ends up being v3.0.0, which I think is what is returned by RecentTag. The v3 is not what is desired, and the caller gives up and falls back to a v0.0.0- pseudo version (probably here). This could be viewed as a variation of 1., or could be viewed as a separate problem.

I suspect but have not confirmed that this particular problem pattern would not happen for someone following the "Major Branch" approach for a v2+ module with different branches for v1 vs v2 vs v3 with the appropriate semver tags on their respective branches.
CC @rogpeppe

It should instead be something like
v2.9.3-0.20190510132036-085fc219838d+incompatible

That commit actually has a go.mod file, and the module path it declares is github.com/prometheus/prometheus.
However, the +incompatible suffix is generally not allowed in conjunction with a go.mod file: the +incompatible suffix is intended only for projects predating modules, not as an ongoing bypass for versioned import paths. That probably means that we should use the highest tag matching the path (v1.8.2) as the base for the pseudo-version, rather than the v2.[…] tag with the +incompatible suffix.
It also means I need to find a different example for +incompatible pseudo-versions. 😞


Bad denoising results on the provided model

While the provided model in sessions/001 works well on NSDTSEA test files, the results on my own noisy files (recorded in real conditions) are much worse.
What did I do:

Cloned the entire project
Put my files into the 'test' subdir of the project dir
Run the command
THEANO_FLAGS=optimizer=fast_compile,device=gpu python main.py --mode inference --config sessions/001/config.json --noisy_input_path test
Took results from sessions/001/samples/samples_1

Large part of speech was suppressed, although SNR is not very low.
Maybe I do something wrong?
To try it yourself: https://drive.google.com/open?id=1njlPLNjbTuY1QlW_19y06a1ywuImBUHo

Same bad results with the pretrained model, even for the NSDTSEA test files. :(.

Hi, kfmn,
I want to know the parameter size of wanenet?   But i use the python 3, there are some problems on them.  I just want to know the size of this model.  Can you tell me the results of model.summary()?
Thank you very much!


Systemd::JournalError: No such file or directory

Im continually getting this warning when running this container in kubernetes.
I've searched and found the:
env:
- name: FLUENTD_SYSTEMD_CONF
value: "disable"
which I've added under the containers section but its not making a difference.
Any idea how to remove those warnings?

thoughts?

I don't work on this project anymore, but can try to help. I'll assume you're using the associated fluentd-deployment project to deploy this to Kubernetes and that you do not have a need for sourcing logs from systemd and want to disable this.
If so, remove this line from your ConfigMap in Kubernetes: https://github.com/solarwinds/fluentd-deployment/blob/master/kubernetes/fluentd-daemonset-papertrail.yaml#L80
...which will skip loading the following file that manages the systemd sources and filters: https://github.com/solarwinds/fluentd-deployment/blob/master/docker/conf/systemd.conf
Good luck.

awesome, thanks @cmrust . that works to remove the warning.  i don't know if I want to remove logging of systemd logs, do I?  I just wanted to suppress that warning that happens 2x per second.

With that error, it would appear that you are missing at least some of the logs that you're trying to pull. You need to ssh to one of the worker nodes itself and use a tool like journalctl to review the kubelet and docker paths specified in the systemd.conf linked above, if you do indeed have systemd logging on the host machines you've chosen. That last part can vary wildly by OS. You may need to customize that systemd.conf (or some other logging rules to capture wherever your daemon logs are going), and then get that new conf loaded into the pod either with a volume mount or by repackaging your own fluentd docker image.


Documentation differences

After following the wiki documentation guide, we encountered some small issues while building the sample. These are some points where we found some differences:
Step 3

The interface to configure SharePoint and Power Apps has changed; you should click the Add button first, then search for the connection.

Step 4

In the getItems card of the Edit the BARNotifyApprover Power Automate sub-step, the SharePoint address and the required list (BAR_Requests) should be updated.

Step 5

After updating the cards that have the warning symbol according to the note section that deals with how to use the “Save as new flow” option when importing the BARCalendarReservation flow, an error appears:

Some of the connections are not authorized yet. If you just created a workflow from a template, please add the authorized connections to your workflow before saving.

The problem comes from another card; its connection must be updated but since it is nested within other cards, it is not visible. One way to access it is to use the flow checker as seen in the next image:

After this, if you try to save the flow, the next error might show up:

Flow save failed with code 'DynamicOperationRequestClientFailure' and message 'The dynamic operation request to API 'sharepointonline' operation 'GetTable' failed with status code 'Unauthorized'. This may indicate invalid input parameters. Error response: { "error_description": "Exception of type 'Microsoft.IdentityModel.Tokens.AudienceUriValidationFailedException' was thrown." }'.

To solve this, you should continue with the Edit the BARCalendarReservation flow sub-steps and save afterwards.
Step 6

BuildingAdmin.zip is on /Deployment/Power Apps

Step 8

For the “Todays snapshot breakdown” page to work correctly, you must first remove the  “Address is 30 Test Street…” filter on PowerBI desktop

Other considerations

If we do not configure a default approver for the Building Admin app, the notification must reach the channel of the team that we have configured as admin team. When we make a request with the Building Access app, the following error appears as soon as we start creating the request:

Office365Users.ManagerV2 failed: {"error":{"code":"Request_ResourceNotFound","message":"Resource 'manager' does not exist or one of its queried reference-property objects are not present.","innerError":{"date":"2021-05-17T16:43:07","request-id":"---","client-request-id":"---"}}}

However, if the request is completed, the notification is created and it reaches the channel correctly.

Wow! I have the same problem in the last step but I just didn´t think to continue and complete the request. I posted an issue about that because the developer didn´t answer me again by e-mail. From what I see, if you posted this in May and nothing changed in the deployment guide and theses problems were put in the troubleshooting guid, maybe this is discontinued. it´s a pitty because it´s a good app.
Saludos desde Argentina


Fix for markdown in strategies

Note: this branch is pointed to snapshot-labs/snapshot.js#markdown-in-strategy

Looks good!

Closing this, not relevant anything


Feature: (sort-classes) Add custom-groups to sorting capabilities

What rule do you want to change?
perfectionist/sort-classes
Describe the problem
It would be nice if we could include custom groups similar to perfectionist/sort-objects. Mainly the issue that I am trying to solve is ensuring that Angular Dependency Injections are sorted to the top of the class they are being injected in.
Code example
Which used to look like this before the inject syntax came out:
export class ExampleComponent {
  public user = this.authService.user;

  constructor(private readonly authService: AuthService) {
  }
}

Becomes something like this:
export class ExampleComponent {
  public user = this.authService.user;
  private readonly authService = inject(AuthService);
}

However, this leads to an error similar to #118. If you are accessing the injected dependency before initialization (due to it's sorting order in the component).
Ideally, it would become this instead:
export class ExampleComponent {
  private readonly authService = inject(AuthService);
  public user = this.authService.user;

}

Additional comments
While this issue is Angular specific, I think the implications of being able to create a custom group would solve this issue, as well as other issues that users could potentially face down the line. This would also help prevent a growing complexity when it comes to adding additional groups to the sorter.
Validations

[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.

@azat-io How create custom group for Input decorator   class SomeClass { @Input() someValue = '' } ?


TP2000-891 Multi-version + same transaction indent causes ME32

TP2000-891 Multi-version + same transaction indent causes ME32

Why

As per TARIC3, it's valid to have multiple instances of an indent that provide different start dates within the same transaction. This arrangement of indents in TAP data isn't catered for in commodity tree snapshot code, causing incorrect commodity extent values and therefore ancestor commodities within the tree.
What

In addition to ordering indents by transaction when loading the commodity collection, also apply a secondary ordering of start_date. This ensures correct indent selection when constructing a commodity tree snapshot.

Checklist

Requires migrations? No
Requires dependency updates? No

tests?

Codecov Report
Patch coverage: 81.25% and project coverage change: -0.01 :warning:

Comparison is base (233284f) 92.52% compared to head (3e158be) 92.51%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #920      +/-   ##
==========================================
- Coverage   92.52%   92.51%   -0.01%
==========================================
  Files         416      416
  Lines       29033    28994      -39
  Branches     2207     2206       -1
==========================================
- Hits        26862    26825      -37
+ Misses       1754     1753       -1
+ Partials      417      416       -1

Impacted Files
Coverage Δ

quotas/forms.py
100.00% <ø> (+6.38%)
:arrow_up:

quotas/validators.py
95.65% <ø> (-0.35%)
:arrow_down:

workbaskets/tasks.py
78.12% <0.00%> (-2.53%)
:arrow_down:

commodities/models/dc.py
76.14% <75.00%> (ø)

quotas/views.py
99.25% <100.00%> (-0.08%)
:arrow_down:

settings/common.py
77.27% <100.00%> (ø)

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


Tesla P4 - CUDA error cudaErrorIllegalAddress

While previously I have run bladebit CUDA with my Tesla P4, after noticing a few other people reporting issues with the card I tried again and was able to consistently recreate the crash.  For this first failure I was using the Ubuntu binary from https://github.com/Chia-Network/bladebit/actions/runs/4129720923/jobs/7135639600#step:3:5.
https://gist.github.com/altendky/3ad52845cbb71c106dbe276f3d95bba1
Completed table 1 in 29.27 seconds with<PHONE_NUMBER> /<PHONE_NUMBER> entries ( 79.84% ).
Compressing tables 2 and 3...
 Step 1 completed step in 4.59 seconds.
CUDA error: 700 (0x2bc) cudaErrorIllegalAddress : an illegal memory access was encountered

*** Panic!!! *** Fatal Error:
CUDA error cudaErrorIllegalAddress : an illegal memory access was encountered.
./bladebit_cuda(+0xcf8cb)[0x564cf43288cb]
./bladebit_cuda(+0xcf0af)[0x564cf43280af]
./bladebit_cuda(+0x5217a)[0x564cf42ab17a]
./bladebit_cuda(+0x52443)[0x564cf42ab443]
./bladebit_cuda(+0x36e6d)[0x564cf428fe6d]
./bladebit_cuda(+0x2e7f0)[0x564cf42877f0]
./bladebit_cuda(+0x1c98b)[0x564cf427598b]
./bladebit_cuda(+0x18245)[0x564cf4271245]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x7f30b9f79083]
./bladebit_cuda(+0x1974e)[0x564cf427274e]

After Harold requested debug info, I made https://github.com/Chia-Network/bladebit/pull/271 to get debug builds with the following results from https://github.com/Chia-Network/bladebit/actions/runs/4149269955
https://gist.github.com/altendky/25ef339f5cfd28345dd641bdd9a1e4bb
Completed table 1 in 505.43 seconds with<PHONE_NUMBER> /<PHONE_NUMBER> entries ( 79.85% ).
Compressing tables 2 and 3...
 Step 1 completed step in 40.28 seconds.
Assertion Failed @ /home/runner/work/bladebit/bladebit/cuda/GpuStreams.cpp:571 UploadArray().
fish: “./bladebit_cuda -f b0a374845f4f…” terminated by signal SIGTRAP (Trace or breakpoint trap)

https://github.com/Chia-Network/bladebit/blob/62af65914fa4e05eb989f15ed82322f83722efad/cuda/GpuStreams.cpp#L571
void GpuUploadBuffer::UploadArray( const void* hostBuffer, uint32 length, uint32 elementSize, uint32 srcStride,
                                   uint32 countStride, const uint32* counts, cudaStream_t workStream )
{
    ASSERT( hostBuffer );
    ASSERT( self->outgoingSequence - self->lockSequence < 2 );

Just hit the same with a new P4.  It crashed but and the process hung, couldn't stop or kill the process, had to reboot.
`Completed table 1 in 31.05 seconds with<PHONE_NUMBER> /<PHONE_NUMBER> entries ( 79.85% ).
Compressing tables 2 and 3...
Step 1 completed step in 4.46 seconds.
CUDA error: 700 (0x2bc) cudaErrorIllegalAddress : an illegal memory access was encountered
*** Panic!!! *** Fatal Error:
CUDA error cudaErrorIllegalAddress : an illegal memory access was encountered.
./bladebit_cuda(+0xcf8cb)[0x5571133c18cb]
./bladebit_cuda(+0xcf0af)[0x5571133c10af]
./bladebit_cuda(+0x5217a)[0x55711334417a]
./bladebit_cuda(+0x52443)[0x557113344443]
./bladebit_cuda(+0x36e6d)[0x557113328e6d]
./bladebit_cuda(+0x2e7f0)[0x5571133207f0]
./bladebit_cuda(+0x1c98b)[0x55711330e98b]
./bladebit_cuda(+0x18245)[0x55711330a245]
/lib/x86_64-linux-gnu/libc.so.6(+0x29d90)[0x7f539c4efd90]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80)[0x7f539c4efe40]
./bladebit_cuda(+0x1974e)[0x55711330b74e]
`

Don't know if this adds anything, but have been trying to debug a bit more too, here's a gist with output from compute-sanitizer during the crash (ignore the 'About to uploadArray', was just me trying to see where it might be having issues.
https://gist.github.com/vb216/852194bc9e7307e46cc01f1880134f67
Alot of repetition of CudaConvertRMapToLinePoints hitting address out of bounds on different locations

The UploadArray has been fixed (but not published yet), pending still to determine if it is related to the invalid memory address issue

Great news, keen to test

The UploadArray has been fixed (but not published yet), pending still to determine if it is related to the invalid memory address issue

Do you have an estimate when this might be released or at lease available to build/test?
Thanks

Same issue heren also with a P4

Do you have an estimate when this might be released or at lease available to build/test?

This should likely be landing before the weekend

Do you have an estimate when this might be released or at lease available to build/test?

This should likely be landing before the weekend

it seems fixed?
Bladebit Chia Plotter
Version      : 3.0.0-alpha1-dev
Git Commit   : b40fce737fe4d72b7882e9b0cd03f1bf8230a90a
Compiled With: gcc 11.3.0

[Global Plotting Config]
 Will create 1 plots.
 Thread count          : 20
 Warm start enabled    : false
 NUMA disabled         : false
 CPU affinity disabled : false
 Farmer public key     : xxx
 Pool contract address : xxx
 Benchmark mode        : disabled

[Bladebit CUDA Plotter]
Selected cuda device 0 : Tesla P4
 CUDA Compute Capability   : 6.1
 SM count                  : 20
 Max blocks per SM         : 32
 Max threads per SM        : 2048
 Async Engine Count        : 2
 L2 cache size             : 2.00 MB
 L2 persist cache max size : 0.00 MB
 Stack Size                : 1.00 KB
 Memory:
  Total                    : 7.43 GB
  Free                     : 7.32 GB

Allocating buffers (this may take a few seconds)...
Kernel RAM required       :<PHONE_NUMBER>8  bytes ( 86060.07  MiB or 84.04  GiB )
Intermediate RAM required :<PHONE_NUMBER>   bytes ( 2860.07   MiB or 2.79   GiB )
Host RAM required         :<PHONE_NUMBER>40 bytes ( 160640.00 MiB or 156.88 GiB )
Total Host RAM required   :<PHONE_NUMBER>28 bytes ( 246700.07 MiB or 240.92 GiB )
GPU RAM required          :<PHONE_NUMBER>   bytes ( 5855.03   MiB or 5.72   GiB )
Allocating buffers

Generating plot 1 / 1: xxx
Plot temporary file: /chia/temp/plot-k32-2023-03-05-13-47-xxx.plot.tmp

Generating F1
Finished F1 in 4.83 seconds.
Table 2 completed in 21.48 seconds with<PHONE_NUMBER> entries.
Table 3 completed in 30.51 seconds with<PHONE_NUMBER> entries.
Table 4 completed in 34.54 seconds with<PHONE_NUMBER> entries.
Table 5 completed in 34.38 seconds with<PHONE_NUMBER> entries.
Table 6 completed in 33.51 seconds with<PHONE_NUMBER> entries.
Table 7 completed in 31.85 seconds with<PHONE_NUMBER> entries.
Finalizing Table 7
Finalized Table 7 in 14.61 seconds.
Completed Phase 1 in 205.72 seconds
Marked Table 6 in 18.12 seconds.
Marked Table 5 in 15.48 seconds.
Marked Table 4 in 14.73 seconds.
Marked Table 3 in 14.46 seconds.
Marked Table 2 in 14.35 seconds.
Completed Phase 2 in 77.14 seconds
Compressing Table 1 and 2...
 Step 1 completed step in 4.61 seconds.
 Step 2 completed step in 24.21 seconds.
Completed table 1 in 28.82 seconds with<PHONE_NUMBER> /<PHONE_NUMBER> entries ( 79.84% ).
Compressing tables 2 and 3...
 Step 1 completed step in 4.63 seconds.
 Step 2 completed step in 15.01 seconds.
 Step 3 completed step in 29.83 seconds.
Completed table 2 in 49.48 seconds with<PHONE_NUMBER> /<PHONE_NUMBER> entries ( 80.08% ).
Compressing tables 3 and 4...
 Step 1 completed step in 9.50 seconds.
 Step 2 completed step in 21.46 seconds.
 Step 3 completed step in 29.52 seconds.
Completed table 3 in 60.48 seconds with<PHONE_NUMBER> /<PHONE_NUMBER> entries ( 80.69% ).
Compressing tables 4 and 5...
 Step 1 completed step in 4.60 seconds.
 Step 2 completed step in 20.93 seconds.
 Step 3 completed step in 29.83 seconds.
Completed table 4 in 55.35 seconds with<PHONE_NUMBER> /<PHONE_NUMBER> entries ( 82.24% ).
Compressing tables 5 and 6...
 Step 1 completed step in 8.15 seconds.
 Step 2 completed step in 18.78 seconds.
 Step 3 completed step in 37.09 seconds.
Completed table 5 in 64.02 seconds with<PHONE_NUMBER> /<PHONE_NUMBER> entries ( 86.44% ).
Compressing tables 6 and 7...
 Step 1 completed step in 5.47 seconds.
 Step 2 completed step in 24.07 seconds.
 Step 3 completed step in 42.06 seconds.
Completed table 6 in 71.61 seconds with<PHONE_NUMBER> /<PHONE_NUMBER> entries ( 100.00% ).
Serializing P7 entries
Completed serializing P7 entries in 19.75 seconds.
Completed Phase 3 in 349.51 seconds
Completed Plot 1 in 632.37 seconds ( 10.54 minutes )

/chia/temp/plot-k32-2023-03-05-13-47-xxx.plot.tmp -> /chia/temp/plot-k32-2023-03-05-13-47-xxx.plot
Completed writing plot in 0.07 seconds
Final plot table pointers:
 Table 1:<PHONE_NUMBER> ( 0x000000004cc379f4 )
 Table 2:<PHONE_NUMBER>0 ( 0x00000003c12a4b7a )
 Table 3:<PHONE_NUMBER>0 ( 0x00000007026aab0e )
 Table 4:<PHONE_NUMBER>5 ( 0x0000000a49dab7a1 )
 Table 5:<PHONE_NUMBER>5 ( 0x0000000da13c9a4d )
 Table 6:<PHONE_NUMBER>0 ( 0x0000001123f6a28c )
 Table 7:<PHONE_NUMBER>0 ( 0x0000001532b4f07c )
 C 1    :             4096 ( 0x0000000000001000 )
 C 2    :          1718980 ( 0x00000000001a3ac4 )
 C 3    :          1719156 ( 0x00000000001a3b74 )

Final plot table sizes:
 Table 1: 14150.43 MiB
 Table 2: 13332.02 MiB
 Table 3: 13431.00 MiB
 Table 4: 13686.12 MiB
 Table 5: 14379.63 MiB
 Table 6: 16619.89 MiB
 Table 7: 16865.45 MiB
 C 1    : 1.64 MiB
 C 2    : 0.00 MiB
 C 3    : 1226.58 MiB

Closing as it appears the fixe was successful as confirmed by 2 independent users.
Commit b40fce737fe4d72b7882e9b0cd03f1bf8230a90a

what is your Tesla P4 clock speed when plotting/farming


Add responsive sizing of VCAuthn login page for mobile devices

This PR resolves #420 using media queries as well as bootstrap.
Here is the new desktop view

To ensure uniform rendering of the boarder it no longer uses a dedicated svg and instead uses CSS boarders
On mobile devices the card style is removed and instead the entire screen is used to make the most of the smaller displays.

With the removal of media queries the css is simplified. I have also migrated the button css to make use of bootstrap. Here is the updated look on desktop

and on mobile

@Gavinok can you resolve the conflicts - likely with code from the last merged PR?

@esune Ready for review

@esune resolved the conflict

@Gavinok see comment above, not working with form action, needs to be an href link I believe.
Probably: https://stackoverflow.com/questions/45542773/how-to-style-an-anchor-as-a-button-in-bootstrap-4

Can we do some additional tweaks to the widths of the "header-desc" (and possibly other) containers?
They're thinner in which is crowding texts.
Existing:

Current:
Initial text (also could use a top margin here when opening the "other device" section)

Declined

(Probably same with approved and expired states)
Scanned mask over the qr code is thinner

@Gavinok see comment above, not working with form action, needs to be an href link I believe.
Probably: https://stackoverflow.com/questions/45542773/how-to-style-an-anchor-as-a-button-in-bootstrap-4

Dang that was what made is able to remove all that custom button CSS :(

I'm wondering if we should tackle the UI redesign/tweaks as part of the full move to Bootstrap, rather than potentially do the work twice? https://github.com/bcgov/vc-authn-oidc/issues/431

@Gavinok see comment above, not working with form action, needs to be an href link I believe.
Probably: https://stackoverflow.com/questions/45542773/how-to-style-an-anchor-as-a-button-in-bootstrap-4

Dang that was what made is able to remove all that custom button CSS :(

No should just need to change button to a I just did that on my local and it worked.

Reference in new issue
Edit
Hide
Delete

It was more to do with the css not indicating the button was disabled but I was able to work around this anyways

@loneil is it just me or does the qr code expire extremely fast now? Did I make a change that could effect that?

Can we do some additional tweaks to the widths of the "header-desc" (and possibly other) containers?
They're thinner in which is crowding texts.
Existing:
Current:
Initial text (also could use a top margin here when opening the "other device" section)
Declined  (Probably same with approved and expired states)
Scanned mask over the qr code is thinner

I have just updated this. There should be a little more space. I figured we should add some line breaks for more consistent text formatting while I was at it.


Determining what a transducer has accepted

Hi,
I've successfully built a transducer to normalize numbers. However, besides the normalization string I would like to obtain the normalized original number. For example, this is what I'm getting currently:
10 --> ten
25 --> twenty five

I would like to get the oroginal number inside some sort of XML tags:
10 --> <x>10</x> ten
25 --> <x>25</x> twenty five

How can I achieve this?
Thanks

I don’t think that’s possible in the general case with FSTs since it looks
suspiciously like an extension of the “copy language”, which FSTs cannot
compute. However in Python code you can always concatenate the input and
the output strings along an FST. To get the input string, project onto the
input and call .string() (if there is but one path) or the .paths()
iterator (if there are many).
On Fri, Sep 23, 2022 at 5:36 AM anderleich @.***> wrote:

Hi,
I've successfully built a transducer to normalize numbers. However,
besides the normalization string I would like to obtain the normalized
original number. For example, this is what I'm getting currently:
10 --> ten
25 --> twenty five
I would like to get:
10 --> 10 ten
—
Reply to this email directly, view it on GitHub
https://github.com/kylebgorman/pynini/issues/58, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AABG4OJCZ54D6HTA6XL55NTV7V2ZXANCNFSM6AAAAAAQTZ5NCY
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Hi @kylebgorman ,
Thanks for your answer!  I don't understand whta you mean by project
Thanks

Projection is an algorithm that converts a transducer to an acceptor over the domain or range of the FST.
Simple example that doesn't require projection:
lattice = istring @ rule
ostring = lattice.string()
your_desired_result = f"<x>{istring}</x> {ostring}"

Or if you've already computed the lattice, you can get istring via input project as follows:
istring = pynini.project(lattice, "input").string()

then compute your_desired_result as above

Awesome that works as expected! However, if I use pynini.cdrewrite istring returns the whole sentence instead of the FST range.
rule = pynini.cdrewrite(pynini.cross("2", "two") + pynutil.insert(" ") + pynini.cross("3", "three"), "", "", byte.BYTE.closure())
istring = "233"
lattice = istring @ rule
pynini.project(lattice, "output").string()  # 'two three3'
pynini.project(lattice, "input").string() # '233'

The desired output would be:
<x>23</x>two three3

Is there any way I can achieve that using cdrewrite?
Thanks

I don't know what an "FST range" is, but I don't see any way to do what you
have in mind in a CDRewrite, I'm sorry. I think might be outside of the
scope of what FSTs can compute.
There's an example of writing an "FST tagger" in chapter 7 (I think) of the
Pynini book which may or may not help you.
On Fri, Sep 23, 2022 at 11:15 AM anderleich @.***>
wrote:

Awesome that works as expected! However, if I use pynini.cdrewrite istring
returns the whole sentence instead of the FST range.
rule = pynini.cdrewrite(pynini.cross("2", "two") + pynutil.insert(" ") + pynini.cross("3", "three"), "", "", byte.BYTE.closure())
istring = "233"
lattice = istring @ rule
pynini.project(lattice, "output").string()  # 'two three3'
pynini.project(lattice, "input").string() # '233'
The desired output would be:
23two three3
Is there any way I can achieve that using cdrewrite?
Thanks
—
Reply to this email directly, view it on GitHub
https://github.com/kylebgorman/pynini/issues/58#issuecomment-1256346804,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AABG4OO3H65UCZ35Q4UYXD3V7XCPHANCNFSM6AAAAAAQTZ5NCY
.
You are receiving this because you were mentioned.Message ID:
@.***>

Mmm... I see. I think I might have not approached/explained the task in the right way at the first place.
What I am seeking is number normalization in text, where numbers can be anywhere on that text. Additionally, I need some sort of aligment between the normalized number and the original one to know where the normalization has been applied. So for instance the sentence There are 2 dogs in the street. would become There are two dogs in the street.. This is a trivial task which I've already managed to accomplish like this:
normalizer = pynini.cross("2", "two")
text_normalizer = pynini.cdrewrite(normalizer, "", "", byte.BYTE.closure())

In order to know which numbers in that sentence have been normalized, I would do the following:
normalizer = pynutil.insert("<x>") + pynini.cross("2", "two") + pynutil.insert("</x>")
text_normalizer = pynini.cdrewrite(normalizer, "", "", byte.BYTE.closure())

Which results in There are <x>two</x> dogs in the street.
Now what I'm missing is that the normalized number two belongs to the original number 2. So I need to somehow obtain that information either from the FST itself or programatically in Python by comparing the strings. The second option is the one that I'm trying to avoid if there is a more straightfroward way of doing it with Pynini. The method you mentioned in the previous post returned the whole sentence as I'm using cdrewrite. I just need the normalizer part.
So is there a way to get that done with the FST or should I move to Python?
Thank you for your time ;)

If you take the text_normalizer and apply it via composition to a input string, then you can get the byte-by-byte alignment using the paths() method, which yields an iterator object with .ilabels() and .olabels() methods. Crucially these are lists of integers of the same length (with epsilons) so you can read the alignment off this.
istring = "There are 2 dogs in the street."
lattice = istring @ text_normalizer
paths = lattice.paths()
while not paths.done():
   ilabels = = paths.ilabels()
   olabels = paths.olabels()
   ...  # Do something with these two lists.
   paths.next()

Anyways, this is a pretty advanced feature and not terribly easy to use and out of scope for the issue tracker ;)

That definitely works! That's what I needed.
The only thing I'm missing is the interger to char conversion. I've seen a solution here: https://github.com/kylebgorman/pynini/issues/55#issuecomment-1186517938
It seems if I add a character to the SymTable that it already has a fixed integer associated. The SymTable is not created by default so how can I be sure I've added all the necessary chars and no one is missing? If it already has intergers associated to chars why can't I just simply do the opposite (int2char)? I'm using symtable.find("a") method to convert the integers after having added them to the SymTable.
PD: Is there any forum or something similar I could ask these type of questions or doubts instead of using the issue tracker?

The easiest thing to do here would be to use the built-in Python chr function which converts integers to the corresponding Unicode character string:
# Suppose we already have `ilabels`.
ichars = [chr(ilabel) for ilabel in ilabels if ilabel]

PD: Is there any forum or something similar I could ask these type of questions or doubts instead of using the issue tracker?

There used to be a Pynini forum on the website but nobody ever used it so I decomissioned it. I'm happy to take questions over email (within reason of course).

I'm having some trouble converting back accented chars: dógs --> dÃ³gs. Those chars are broken in pieces due to encoding. How can I treat them correctly? I found there is a token_type="utf8" parameter but it is only available in acceptors (pynini.accep)

You should use utf8 mode everywhere in your. That means instead of taking advantage of the implicit conversion from strings to byte-mode FSTs, youi have to explicitly compile them with accep or use the default_token_type context manager which changes the default token type mode for implicit conversions within a block. Read the in-module docs for the above (e.g., help(pynini.accep)), and/or chapter 2 of the book. Here is a description of what this is doing at the lowest level.

Great! The context manager solved it without a significant change in the code
with pynini.default_token_type("utf8"):
    ... # Previous code

I'm closing this issue. Thanks for your time and explanations ;)

Hi @kylebgorman ,
Just one little thing regarding the encoding. There seems to be some issues with some utf8 characters if I use context cdrewriter and BYTE.closure() as sigma star. See:
with pynini.default_token_type("utf8"): ("▁" @ pynini.cdrewrite(pynini.cross('▁', "_"), "", "", pynini.lib.byte.BYTE.closure())).paths().ilabels()
>>> []

If I set the defualt_token_type to byte instead of utf8, it returns the 3-byte utf8 character as expected:
with pynini.default_token_type("byte"): ("▁" @ pynini.cdrewrite(pynini.cross('▁', "_"), "", "", pynini.lib.byte.BYTE.closure())).paths().ilabels()
>>> [226, 150, 129]

Not using the cdrewrite returns the correct result, as I'm not using the sigma star:
with pynini.default_token_type("utf8"): ("▁" @ pynini.cross('▁', "_")).paths().ilabels()
>>> [9601]

It seems I need to change the sigma star. Which should I use to accept all utf8 characters?

As the name suggests the definitions in the byte submodule are only appropriate for the byte mode. If you're using utf8 mode you should use the definitions in the utf8 submodule, or (and I suggest this) just compute the closure of the union of all the characters actually using.

Great! Computing the closure of the union of all the characters should do the trick. I'll need to be cautious while hard-coding all the possible characters not to miss one though ;)
Thanks!


SVDConv silently fails on Linux to --generate=sfr

SVDConv silently fails on Linux to "--generate=sfr". This is probably due to the missing sfrcc2.exe that only exists/is called on Windows.
SVDConv should generate some error in this case of missing sfrcc2.exe.
And also the documentation should mention, that "--generate=sfr" is only supported on Windows.

I've just run into this problem myself and was confused as to why until I took a look at how svdconv attempts to generate SFR files.
Is there any chance the CMSIS Toolbox itself could include SfrCC2 that could be compiled for different platforms? At my place of employment, though we develop on Windows, we have CI machines that run Linux on amd64/aarch64. My intention was to generate SFR files during build to alleviate git performance issues, however that seems impossible as SfrCC2 is shipped with uVision

Sorry, we have no plans of porting SfrCC2. As you rightly say it is part of Keil MDK uVision which is available for Windows only.


Subsampling of large runs seems to be biased

Maybe the summary file is not randomly parsed when subsampled (Promethion runs)

fixed in v1.4.0


apps wc: Confiugrable namespace for user-alertmgr

What this PR does / why we need it:
To deploy user-alertmanager in custom namespace.
Which issue this PR fixes:
fixes #78
Special notes for reviewer:
Checklist:

[x] Added relevant notes to WIP-CHANGELOG.md
[x] Proper commit message prefix on all commits
[ ] Updated the public facing documentation
Is this changeset backwards compatible for existing clusters? Applying:

[x] is completely transparent, will not impact the workload in any way.
[ ] requires running a migration script.
[ ] will create noticeable cluster degradation.
E.g. logs or metrics are not being collected or Kubernetes API server
will not be responding while upgrading.
[ ] requires draining and/or replacing nodes.
[ ] will change any APIs.
E.g. removes or changes any CK8S config options or Kubernetes APIs.
[ ] will break the cluster.
I.e. full cluster migration is required.

and also same for:
helmfile/charts/user-rbac/templates/rolebindings/alertmanager-configurer.yaml:  namespace: monitoring
helmfile/charts/user-rbac/templates/roles/alertmanager-configurer.yaml:  namespace: monitoring

Good catches @geoff-elastisys i will check them out :)


torch.aten.exponential

Issue create for tracking in the task list. Originally tracked by torch-mlir#2646.


Spiral Print Algorithm in 2D arrays

Is your feature request related to a problem? Please describe.
I want to add an algorithm for spiral traversal on 2D arrays
Describe the solution you'd like

First, four variables containing the indices for the corner points of the array are initialized.
The algorithm starts from the top left corner of the array, and traverses the first row from left to right. Once it traverses the whole row it does not need to revisit it, thus, it increments the top corner index.

Once complete, it traverses the rightmost column top to bottom. Again, once this completes, there is no need to revisit the rightmost column, thus, it decrements the right corner index.

Next, the algorithm traverses the bottommost row and decrements the bottom corner index afterward.

Lastly, the algorithm traverses the leftmost column, incrementing the left corner index once it’s done.

Additional context
@Kumar-laxmi Please assign me this issue in C++.

Can you assign this issue to me in Java and Python @Kumar-laxmi

Please assign this to me in C.

Assigned!
@Vanraj8169 : Java
@VaibhavArora314 : C
@Dharnish38 : Python
@Ultimateutkarsh11 : C++

@Vanraj8169 @Ultimateutkarsh11 What is your status on this issue?

@Vanraj8169 @Ultimateutkarsh11 What is your status on this issue?

My exams just finished yesterday, will raise a PR by today itself.

@Vanraj8169 are you still working on this issue if not then please @Kumar-laxmi  sir assign this to me in java.

Assigned!
@mahendraDew : Java


How to make it work on windows with xampp

I extracted the files to htdocs and imported the school_erp.sql, found in the extracted files, into the school_erp database that I created in myphpadmin. I opened the admin table in the database and checked the credentials, used all of them to try to log in at localhost but none worked. 404 page not found. What am I doing wrong? Please help. Thanks.

Please Change the directory name in the .htaccess file in root directory according to your directory name.

I fixed this issue:
the issue was about the port80.
Solution: there are two ways actually!

Disabling the access of port  80 to other apps:
Go to CMD(Admin Mode)->net stop http
press Y.
Open Apache in port 80 (The default one)
//////////////////////////////////////////////////
Changing the Default Port of the Porject.
tbh, I really dont know how to do that. Even by changing the listening port of httpconfg of the apache does not work because when you login with correct Credentials, it redirects to port 80...

Please Change the directory name in the .htaccess file in root directory according to your directory name.

Please give an example because over here, even after changing the htaccess to correct directory, it still shows 404 on every page clicked

 RewriteEngine On
 #rename "codeIgniter213" with your application directory
 #For example you rename the entire CodeIgniter application as "mysite"
 #then, the "RewriteBase /" will be like this "RewriteBase /mysite"
 #same as at line number 10, "RewriteRule ^(.*)$ /codeIgniter213/index.php #/$1 [L]" will be like this "RewriteRule ^(.*)$ /mysite/index.php/$1 [L]"
RewriteBase /example_directory_folder_name
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /example_directory_folder_name/index.php/$1 [L]

complicated


DocsArchive-<IP_ADDRESS>Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-archive-test-target_a104c4d8-ba89-4f00-985c-1db01ea3a4db/pull/1 is merged into live branch.
Auto archive content to https://github.com/VSC-Service-Account/docs-archive-test-target_a104c4d8-ba89-4f00-985c-1db01ea3a4db.git

Docs Build status updates of commit 6fd2923:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error-ServiceAccountCannotAccessRepository] Your repository https://github.com/VSC-Service-Account/docs-archive-test-source has enabled Docs Build service account. It seems that at least one of the accounts, e2ebd4, does not have Read permission to the repo. Please ask your repo admin to grant correct permission to service accounts (refer to this document: https://review.docs.microsoft.com/en-us/engineering/projects/ops/engdocs/how-to-grant-service-account-permission-in-your-repository?branch=master#ops-e2e-ppe) and then retry the build. Don't know who to contact? Refer https://repos.opensource.microsoft.com/VSC-Service-Account/repos/docs-archive-test-source/permissions/ to get admin list of the repo if the repo is in one of the organizations Microsoft owns.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


Could Not Detect any of the COCO dataset Objects

@jkjung-avt Thanks for nice work , I have converted yolov3-tiny.weights(yolov3-tiny-288.weights) to yolov3-tiny.trt(yolo-tiny-288.trt).For conversion inTensorRt , I have follow following steps
https://github.com/jkjung-avt/tensorrt_demos#yolov3
But After completing the conversion process, I could not get any detection and bounding box list having empty. Can you guide what I am doing wrong in conversion. I am not getting any error during the conversion.

I cannot give much advice based on this description...
Do you mean the "yolov3-tiny-288" TensorRT engine could not detect anything in this dog.jpg image?

Yeah,It does not detect and draw bounding box on dog.jpg. It also does not draw any other image or video. I do not know why but I follow your instruction steps given on github repo.

Secondly , I am not using the jetson-nano for the testing, I have my own GTX-1080 Gpu. Is could be the reason?

I've tested the code on my GTX-2080 Ti.  It should work.

Closing this issue since it's a duplicate to https://github.com/jkjung-avt/tensorrt_demos/issues/240.