Add the filtering parameters of the cluster in the cluster admin interface

Title: Add the filtering parameters of the cluster in the cluster admin interface
Description:
Current we curl  clusters interface(localhost:15000/clusters) will return all clusters' stats , the response will be too large when the cluster is large. I want to add a cluster_name_prefix param to get only the statistics of the cluster I care about.I don’t know if this requirement is a public requirement, if you don’t mind if I add this feature, I will propose a pr to realize it
The final result is as follows
curl localhost:15000/clusters?cluster_prefix=test_service
test_service_1::<IP_ADDRESS>:15000::cx_active::0
test_service_1::<IP_ADDRESS>:15000::cx_connect_fail::0
test_service_2::<IP_ADDRESS>:15000::cx_active::0
test_service_2::<IP_ADDRESS>:15000::cx_connect_fail::0

Seems reasonable to me, feel free to take a stab at it.

Seems reasonable to me, feel free to take a stab at it.


speed up reading from control socket

This patch solves issue #5.
The overhead of appending chunks to data buffer in each pass of the loop is too high and progressively slows down the execution with each pass. This is a problem for large amounts of data such as full BGP table. This overhead must be avoided and the chunks of data must be stored as they are read and joined only once at the very end.
This speeds up the reading of large output by more than 500x (what would not complete in 30 minutes now takes less than 5 seconds).
All tests are passing.

Looks good to me, thanks for the fix.
I'm adding the CI tests etc and we will do a release.

@mkomon the tests need a little tweaking, would you mind emailing me to discuss?

To add some numbers about the speed-up factor, reading the current full IPv6 table of 161786 routes takes 3.5 hours before this patch (on my reasonably sized VPS) and it's down to less than 9 seconds (including parsing) with the patch, which would be 1400x speedup (in reality most of the 9 seconds is spent on parsing, so the difference is even greater).
The reading of the full IPv4 table of +900k routes does not complete in 48 hours so the difference there is by the factor of 20,000x or more.
The takeaway is that this kind of growing a buffer is crazy ineffective for large amounts of data.


🐛 fix: fix docs and code about direction type desc

hello boss.
I happen that when I using ‘direction’, its type equals to 'FlexDirection'. However, there is no such fields like 'row' or 'column' in 'FlexDirection'. Thus, I believe that we need to use the types related to 'FlexDirection' at this point, in order to avoid confusion.

Yes. Thanks for the correction!


ml_pipeline DAG not running

Hi Paul,
Many thanks for the amazing course!  The issue I encounter is that the ml_pipeline DAG is not running in Airflow (see screenshots).

When running 'docker compose up airflow-init', I don't get an error message but a warning which I don't know what to do about (see screenshot)

I would appreciate your support to solve this. Thanks so much in advance!

Hello @FUenal,
I am excited you are doing my course.
Can you please click on the failed run_feature_pipeline step and access the logs? There, you will see exactly what happened. After, please send the logs here to see what is going on.
My intuition is that there is some issue with Hopsworks or the credentials.

Hello @iusztinpaul ,
Thanks for getting back to me on this! Attached are the logs for the  run_feature_pipeline step. Don't know what is going on. Thanks!
dag_id=ml_pipeline_run_id=scheduled__2024-02-13T13 00 00+00 00_task_id=run_feature_pipeline_attempt=1.log

It looks like you haven't correctly configured the .env file under your airflow directory. Note that this is a different .env file than the one from the root folder.
Follow these steps to get the main idea of it: https://github.com/iusztinpaul/energy-forecasting?tab=readme-ov-file#the-pipeline

Hi @iusztinpaul , re-doing the .env file under airflow did help, thanks! However, now the pipeline runs only partially (see screenshot).

Sending you the log for the train_from_best_c
dag_id=ml_pipeline_run_id=manual__2024-02-16T13 23 42.766166+00 00_task_id=train_from_best_config_attempt=1.log
onfig (red). The log error message says: RuntimeError: No best config found. Please run hyperparameter tuning first. Not sure it is related, but following your tutorial I added a variable to admin setting ml_pipeline_should_run_hyperparameter_tuning = False
Log file attached.
Thanks for your efforts!

You need to run it once with “true” so it finds the best config with hyperparameter tuning
After, you can set it to false so it will always use the best config.
Let me know how it works ✌

Hi @iusztinpaul , yes, that was it! Thanks!
The hyper parameter tuning step: how long is supposed to take on average?
I interrupted it yesterday, after 4 hours runtime. Is 4 hours+ regular?
Cheers

It depends greatly on your compute power, the model you use, and your search hyperparameter space.
For the sake of your example, you can reduce the search hyperparameter space from this config so it will run faster: https://github.com/iusztinpaul/energy-forecasting/blob/main/training-pipeline/training_pipeline/configs/gridsearch.py

Hi Paul,
Existing indeed! App is up and running locally :-) This issue is answered and can be closed.
Thanks for the tip with hyper parameter tuning; makes sense with compute power of course! Appreciate your support and fast responses!
Happy to contribute with the Docker image fix soon!
Cheers


Kubernetes: Non resolvable DNS when the pods are set to hostNetwork=true

Rancher Version:
Ranch Server 1.1.4
Docker Version:
Docker 1.12.1
OS and where are the hosts located? (cloud, bare metal, etc):
Ubuntu 16.04.1 LTS in DigitalOcean
Setup Details: (single node rancher vs. HA rancher, internal DB vs. external DB)
Single Node Rancher w external DB.
Environment Type: (Cattle/Kubernetes/Swarm/Mesos)
Kubernetes. 1.2.4-rancher10. Three Nodes
Steps to Reproduce:
I have been trying to get Prometheus Monitoring to work in my Env. Most services can communicate with each other correctly. The only exception is ranch-eye. Ranch-eye, under the default configuration from the Prometheus catalog, would return 505 when I try to hit the service port at http://ranch-eye:9104/metrics
In order to get it to work I have to change the image to infinityworks/ranch-eye:03 (the same image been used for Prometheus Cattle Catalog) and set hostNetwork to true (According to Prometheus Cattle Catalog ranch-eye should be running with -network=host). Once I do that then ranch-eye can return metrics correctly
But if I do that, then it seems that kubernetes/rancher no longer creates the correct dns entry for http://ranch-eye. I verify this by docker exec into the prometheus container and do a nslookup on ranch-eye, which it cannot resolve. Note that the dns is resolvable when i have hostNetwork=false, but then ranch-eye doesn't return any metrics.
Results:
/prometheus # nslookup ranch-eye
Server:    (null)
Address 1: ::1 localhost
Address 2: <IP_ADDRESS> localhost
nslookup: can't resolve 'ranch-eye': Name does not resolve
Expected:
nslookup ranch-eye is resolvable and point to the correct cluster IP address.

@wlan0 can you look into this?

@andylmtang there is no support for dns for host level containers yet, they are discussing it right now:
https://github.com/kubernetes/kubernetes/issues/17406
Keeping this bug open for the next Rancher release.

With the release of Rancher 2.0, development on v1.6 is only limited to critical bug fixes and security patches.


CODE RUB: AudioTranscriptionValidationException Class Update v2.10.1

Updated AudioTranscriptionValidationException class by removing constructors in which the error message was hard coded in. Updated all relevant service files to include message.

Closed Pull Request. Resolved in PR #555.


Property does not exist on type 'UseThemeResult' when useTheme

Current Behavior
After upgrading to v1.88.11, Typescript isn't infering color tokens from useTheme anymore.

Expected Behavior
Typescript infer all colors from my theme.
Tamagui Version
1.88.11

Platform (Web, iOS, Android)
Web, iOS, Android

Reproduction
My config file:
import { createInterFont } from '@tamagui/font-inter';
import { shorthands } from '@tamagui/shorthands';
import { tokens as tamaguiTokens, themes } from '@tamagui/themes';
import { createTamagui, createTokens } from 'tamagui';

const tokens = createTokens({
    ...tamaguiTokens,
    color: {
        ...tamaguiTokens.color,
        primary900: '#ffdbdb',
        primary500: '#8D1B15',
        primary400: '#52100d',
        secondary500: '#171923',
        secondary400: '#1a1a1c',
        secondary900: '#878cab',
    },
});

const appConfig = createTamagui({
    themes: {
        ...themes,
        light_primary_button: {
            ...themes.light_red_Button,
            background: tokens.color.primary900,
            borderColor: tokens.color.primary900,
        },
        light_secondary_button: {
            ...themes.light_blue_Button,
            background: tokens.color.secondary500,
            borderColorPress: '#50515c',
            backgroundPress: '#50515c',
            borderColor: tokens.color.secondary500,
            color: '#ffffff',
        },
    },
    tokens,
    shorthands,
    fonts: {
        heading: createInterFont(),
        body: createInterFont(),
    },
});

export type AppConfig = typeof appConfig;

declare module 'tamagui' {
    interface TamaguiCustomConfig extends AppConfig {}
}

export default appConfig;

System Info
OS: macOS 14.0
CPU: (10) arm64 Apple M2 Pro
Memory: 70.45 MB / 16.00 GB
Shell: 5.9 - /bin/zsh

Can't repro, just tested on a few apps. Please open with a reproduction!


[Question]: how to get active window resource_id?

I read the code of  active-win-pos-rs and got stuck at getting the resource_id
let mut connection =
    DisplayConnection::connect(None).expect("should connect to x11 server");
let root = connection.default_screen().root;

let mut get_active_window = || {
    let atom = connection
        .intern_atom_immediate(true, "_NET_ACTIVE_WINDOW")
        .unwrap()
        .atom;

    connection.get_property_immediate(false, root, atom, 33  /** maybe should use AtomEnum::WINDOW  */, 0, 1)
};

match get_active_window() {
    Ok(active_window) => {
        println!("active_window: {:?}", active_window.value.get(0));
    }
    Err(_) => {}
}

active_window.value32().unwrap().next().unwrap()


Home on navigation bar

[ ] Home on navigation bar

@nshamit What you are looking for is a button to go back, isn't it? Or a separate menu item named Home or Aid packages?

@NipunaMarcus suggested we include a Home button on the main website home page navigation menu.


WIP: Added Sensitive type to password params

This replaces https://github.com/sensu/sensu-puppet/pull/754

@alvagante What's the status on this?  Is it viable?

@Phil-Friderici could you please help with the tests here

I'll have a look at it and come back.

Seems we have to wait before we can successfully test sensitive data types.
PR https://github.com/rodjek/rspec-puppet/pull/464 seems to bring what we need here, but isn't merged yet.
Issue https://github.com/rodjek/rspec-puppet/issues/529 reports mostly the same, just the implementation is different.
Haven't found a way to pass the data type sensitive (Sensitive('password')) to the tests. With that in place we could at least get some very basic tests running.

Thanks for figuring this out! Let's hold off on adding this functionality until it is able to be tested.


[test] Politics static

@akrolsmir why don't you use generateStaticParams (documentation) in manifund?
It sounds like it is equivalent to getStaticPaths:

For dynamic segments (e.g. app/blog/[slug]/page.js), paths provided by generateStaticParams are cached in the Full Route Cache at build time. At request time, Next.js will also cache paths that weren't known at build time the first time they're visited.

But I can't get it to work with a super simple route, see /example-ssr/[username]/[contractSlug]
This is the error I get:
[Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.] {
  digest: 'DYNAMIC_SERVER_USAGE',
  page: '/example-ssr/ian/stonker'
}
[Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.] {
  digest: 'DYNAMIC_SERVER_USAGE',
  page: '/example-ssr/ian/stonker'
}
Error: Runtime exited with error: exit status 1
Runtime.ExitError


Update to the Deploying Wave Apps Documentation Needed

Discussed in https://github.com/h2oai/wave/discussions/1803

Originally posted by tolmanam January 20, 2023
I don't understand the interactions between the waved server and the wave apps.  I'd like to be able to spin up the waved server and then run my applications with uvicorn as described in the Deploying Wave apps docs but the two commands provided do not actually seem to be equivalent.
(venv) $ wave run --no-reload --no-autostart foo

(venv) $ uvicorn foo:main

Both seem to spin up the application API, but when I start the app with the wave command it also connects up to the running waved service and registers the route.  The uvicorn command does not.
Am I missing a step?
Thanks.
versions:

waved - 0.24.2<PHONE_NUMBER>2225
h2o-wave - 0.24.2
uvicorn - 0.20.0

@mturoci helped point me in the right direction.  I hadn't included the nessasry environmental variables.
I found the following command worked.
H2O_WAVE_APP_ADDRESS="http://<IP_ADDRESS>:8000" uvicorn counter:main


fix switch on / off.

be clearer on the condition
also for switchoff, write config to 1 only when toggled on (true).

for "be clearer on the condition", personnally, i prefered the previous write, but if this write helps, it is ok to me.


Need clarity on --generate-ssh-keys

Why would one choose to specify or not specify this option? Which ssh keys are these and why would they be missing?

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

ID: d75c3a8d-1187-bea1-a7d4-7ebba71c1790
Version Independent ID: 75b0c352-762e-16ae-5cc6-d807ffc1dc3f
Content: az aks
Content Source: src/command_modules/azure-cli-acs/azure/cli/command_modules/acs/_help.py
Service: container-service
GitHub Login: @rloutlaw
Microsoft Alias: routlaw

this doc has the description for ssh.
CLI by defaults looks for  key files under ~/.ssh. If the key is unavailable, creating linux VM will fail, then you can use --generate-ssh-keys to have CLI generate one for you. This flag will do nothing if the key file exists, so using it all the time is safe

Can we add this link to the "--generate-ssh-keys" section on this page to help in discoverability?

@yugangw-msft I think they are referring to aks' --generate--ssh-keys parameter / help. I mis-labeled this issue.
@gaziqbal,  Still I tested this and the behavior is the same, the command checks your .ssh folder for an ssh key-pair, if it is not found, you need to supply --generate-ssh-keys for an ssh key-pair to be generated.
@gaziqbal, the link is about general ssh key concepts and not relevant to the command or parameter itself.  Moreover, there are about 2 or 3 other commands that use ssh key pairs. There is an expectation that users of these commands are familiar with ssh keys. I can however update the --generate-ssh-keys text to add some more clarification about its behavior


ci/fuzz: Ensure fuzz check is included in code check

address one of the issues raised here https://github.com/envoyproxy/envoy/pull/27610#issuecomment-1561577553

Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

cc @vehre-x41 this now fails - not 100% clear whether an issue with the tool or whether the count is now wrong - ill debug locally to figure
either way, i think what this tool really needs to be useful is not just a count, but a comparison, so the error can tell the user what is missing

not 100% clear whether an issue with the tool or whether the count is now wrong

turns out, both

afaict envoy.filters.network.tcp_proxy is what it detects as missing
which is commented out
the original algo may have been picking up an extra match - not sure - but i think we just need to add --extensions_fuzzed_not_counted flag pending a better solution that dumps the actual problem

either way, i think what this tool really needs to be useful is not just a count, but a comparison, so the error can tell the user what is missing

#27617

apologies @mattklein123 i pushed just as you approved


[GHSA-995f-9x5r-2rcj] Heap buffer overflow in GPU in Google Chrome prior to 107...

Updates

Affected products
CVSS
CWEs
References
Severity
Summary

Comments
Added electron 19.x as an affected product

Hey there @rajivshah3 👋
Many thanks for the link. It looks like https://github.com/electron/electron/pull/36444 got merged into the 20 branch of electron. I'm unfamiliar with the branch naming conventions in that project, but based off of the naming conventions for the npm packages https://www.npmjs.com/package/electron?activeTab=versions it seems like the range >= 20.0.0, <= 20.3.7 may also be affected.
Does that mesh with what you know about the project as well?

Hi @darakian , yep! I hadn't added that one yet since 20.3.8 wasn't released, but I can add >= 20.0.0 as an affected range

Is 20.3.8 scheduled for release? I can merge this in and add the range when that hits if that's easier.

I think it should be released at some point in the next few days, but I'm not totally sure when

Ok, well I'' go ahead and merge this in with the 19 branch. Would you mind making a second PR one when the patched 20 release lands?

@darakian sure, will do!


Firebird driver missing?

Description
In a new VM, I have installed Firebird 4, and DBeaver 23.2.3. When I try to connect to my Firebird DB, DBeaver reports that driver files are missing. However, that dialog, which has a checkbox to force driver download, is immediately overlaid by another modal dialog, so the download option is useless.
In the Driver Manager dialog, Firebird shows as present.
I have limited experience with DBeaver, so please be as clear as possible in responses.
DBeaver Version
Community Edition <IP_ADDRESS>310221533
Operating System
Windows 10 64-bit
Database and driver
Firebird 4.0.3
Driver installed by FB, I would guess, or by DBeaver. Can't check in connection dialog, as it throws this error:

Steps to reproduce

I try to connect to DB.
It reports Firebird driver files missing.
I have not discovered whether there is some way from within DBeaver to download the drivers

Additional context
No response

Please try switching the setting mentioned in the message

I did that. It made no difference yesterday. But I installed 22.2.1 yesterday, and this morning let it upgrade to 23.2.3, then changed the setting again, and it offered to install the driver. Thank you.

Thank you for update


v22.4.2 update API Doc sections

Current coverage is 100% (diff: 100%)

Merging #601 into master will not change coverage

@@           master   #601   diff @@
====================================
  Files          29     29
  Lines         439    439
  Methods       111    111
  Messages        0      0
  Branches        0      0
====================================
  Hits          439    439
  Misses          0      0
  Partials        0      0

Powered by Codecov. Last update ffa0992...ca1dbf1


[2-dev] Update to Dart 2, and Angular 5-alpha for web-angular

Note that I've created a 2-dev branch. This PR is set over 2-dev.
cc @kevmoo

@kwalrath, @kevmoo - if either of you can approve this I'll merge it into the 2-dev branch.

@kevmoo - I've cleaned out the commented lines from the .travis.yml file.


Unresponsive edges on mobile device when scaling.

Godot version:
3.0.1
OS/device including version:
iPhone SE , iOS 11.2.5
Issue description:
The edges of the screen is unresponsive when trying to click on buttons on screen. Seems to be like a margin on the edge that stops me from clicking the button.
Steps to reproduce:
Create a empty scene. Place a button at the edge of the scene. Set stretch mode to Viewport and aspect to Keep_Width (don't know if matters if it's keep_width or keep_height). Build the game for a mobile (in my case an iPhone) and try to click on the button at the edges.
Here's a video describing my issue:
https://youtu.be/TCv0cXxwksc
I've searched for an answer but haven't found anything yet. I noticed a weird behaviour with my game and decided to test with a bare bone scene and see if the problem persisted, and it did.
You can read about my issue here, note that the issue described there is from my main game, not the bare bone test scene I did:
https://godotengine.org/qa/24804/buttons-on-mobile-device-acts-weird

So, it seems as the button is getting called, but sometimes when you release it, rather when you press it (it should activate when you press it, not release it), and the visual feedback of the button being pressed isn't showing at all more times then not.
Also, I haven't tried it without any stretch mode. So I'm not sure if this is a stretch mode issue or a issue in general with buttons in Godot.
Anyone knows what's going on or having similar issues?
I will try to do some more digging next week to try and pin point the issue as it's a game breaking bug for me.

@tedwennerstrom Can you (or anyone else) still reproduce this bug in Godot 3.2.1 or 3.2.2beta4?

Closing due to lack of response. Please comment if you can still reproduce this bug.
PS: If no minimal reproduction project was included in the original bug report, please upload one as well to ease troubleshooting.


Inventory in chest does not automatically sort itself. Makes multiple stacks of non-64 items.

Go to chest, have an inventory connector touching it, attach a terminal.
Put in chest: Sticks, Logs, Planks, 64 of each.
Using the terminal, take out ALL the sticks, take out HALF the logs or planks, put the logs or planks back, then put the sticks back.
You will have 32 logs, 32 logs, 64 planks, 64 sticks, taking up 4 spaces of inventory instead of the normal 3.
With 10 enchanting books and a stack of chests, you can repeat this process to make 11 different individual stacks of chests. This is either a bug, or an oversight. Shouldn't the items going into a chest at least TRY to stack instead of just dumping into the first empty slot they see? I feel like I'll have to periodically take everything out and put it back in again to make sure the chests are properly sorted and there won't be wasted slots like that.

The pics don't have the example I described, but this is how I discovered it, when messing around with tomes in storage. I can't imagine how many potentially wasted slots there will be later on down the line when I have an entire monster of a chest room...


Refactor CLI structure for deno install support

This PR adds a section to the README file that describes how to install the CLI using deno install.
It is good practice to check import.meta.main in scripts before performing any operations. In order to obey this rule, this PR refactors the CLI structure.

deno2node is meant to be versioned per project, not installed globally with npm install --global or deno install.
As far as I'm aware, import.meta.main check is useful only when a file can be both ran and imported.
I can't use it anyway, because it's not available in Node.js as of v16.7.0.


gNOI-5.2: traceroute test : Remove hardcoded loopback0 interface

Hi,
https://github.com/openconfig/featureprofiles/blob/main/feature/gnoi/system/tests/traceroute_test/traceroute_test.go#L85
lo0 := dut.Telemetry().Interface("Loopback0").Subinterface(0)
Similar issue was fixed in https://github.com/openconfig/featureprofiles/issues/148
Same fix is needed in gNOI-5.2: traceroute test.
Thanks

Created a similar PR for traceroute test at https://github.com/openconfig/featureprofiles/pull/401

The issue has been fixed

https://github.com/openconfig/featureprofiles/pull/401


Generate proto-only libraries

The generate_library.sh should be able to generate libraries which don't have a java_gapic_library bazel target.

I would call them proto-only libraries, as they are still generated through the whole GAPIC toolchain. In addition, alloydb-connector does not have a gRPC folder as well, so we should not try to run gRPC plugin as well.
Also some other libraries like java-iam have proto and gRPC folder, but no gapic client folder. We should take those scenarios into consideration as well.

I would call them proto-only libraries, as they are still generated through the whole GAPIC toolchain.

Thanks for pointing it out, I've changed the title.

In addition, alloydb-connector does not have a gRPC folder as well, so we should not try to run gRPC plugin as well.

I noticed that even if I run the grpc plugin with the protos, there's no java file generated. I can simply delete the grpc-* folder if this folder is empty.

Also some other libraries like java-iam have proto and gRPC folder, but no gapic client folder. We should take those scenarios into consideration as well.

java-iam has another issue, I need to exclude google/iam/v1/logging.


Replacing custom Prometheus config

I was thinking of what steps to take to get rid of the "custom" Prometheus config and have it make use of the means provided by the prometheus-operator.
Basically there is a bit of work left in bootkube regarding making all components self-hosted, but besides that I was trying to come up with a strategy on how to use Prometheus and prometheus-operator means to discover the kubernetes components. We will need to actively make sure that all kubernetes and tectonic components are properly labelled. As of right now the components are very well labelled with k8s-app=<component-name>.
If we want to utilize the ServiceMonitors then we will need to create and maintain Service manifests for all kubernetes components - even those that don't actually need a Service. This is why I think we should get started with the PodMonitor (https://github.com/coreos/prometheus-operator/issues/38), it will allow us to discover all components without having to maintain those Service manifests because we can discover them based on Pods having the k8s-app label, and have a section in the PodMonitor for a value to be used as the job label (same as the ServiceMonitor's jobLabel) and use the value of k8s-app for it.
Taking this a bit further, we should probably also start thinking of how we can have the Prometheus monitoring Kubernetes components only access the kube-system namespace, with what will hopefully result from https://github.com/prometheus/prometheus/issues/2280.
@fabxc @alexsomesan

As of right now the components are very well labelled with k8s-app=.

I recall one component being labeled with k8s_app instead. Is that fixed?
PodMonitor sounds like the right approach. At least for anything bootkube. But seems like we have to at least keep the manual one around as a template for any other setup.
Is there any news on the kubelet scraping issue where we can use our serviceaccount certs to scrape any kubelet but the one of the apiserver node? We are currently relabeling it to the (to be removed) read-only port.
I'd like to avoid enabling custom relabelings in our TPRs as long as possible.
We can already restrict namespaces from the operator side. With any changes to Prometheus, we would just make this generate a different configuration.

Did a quick check and found that you are right about that ... kube-proxy is the bad boy. Will address upstream.

For the record, upstream already fixed the label. But it is still to be done in bootkube. Will create a PR and update here.

FTR: https://github.com/kubernetes-incubator/bootkube/pull/230

Bootkube 0.2.6 was released fixing the label and exposing kube-dns metrics. So we can try generating the config with ServiceMonitors already or continue with the PodMonitor as both options should now work (although ServiceMonitors will require Service/Endpoints objects to be created for discovery purposes).

@brancz I was easily able to add Prometheus metrics and fairly easily able to add 'kube-dns' metrics (by creating a Service for the 'kube-dns' metrics port). So I can have node-exporter, kube-state-metrics, kube-dns, and Prometheus using the ServiceMonitor approach and without the custom config.
Where I think I am really stumped is I don't think I can watch the kubelet metrics, because I can't create a 'NodeMonitor' that results in a scrape config with kubernetes_sd_configs: { "role": "node" }. So while PodMonitor would be welcome, I can work around that with Services, whereas the lack of a NodeMonitor is a blocker. Or am I missing some trick/workaround?
If a NodeMonitor were added to Prometheus Operator then I think we could completely eliminate the "custom" config in kube-prometheus?
P.S. The Prometheus k8s service discovery supports 'nodes', 'services', 'pods', and 'endpoints'. It seems like 'ServiceMonitor' is really an 'EndpointsMonitor' (kubernetes_sd_configs: { "role": "endpoints" })? With Service-specific labels (which create a fairly brutal, all-namespaces watch of practically everything). If we had a PodMonitor, could ServiceMonitor could instead use kubernetes_sd_configs: { "role": "service" }?
apiVersion: "monitoring.coreos.com/v1alpha1"
kind: "ServiceMonitor"
metadata:
  name: prometheus
  namespace: prometheus
  labels:
    app: prometheus
    env: live
spec:
  namespaceSelector:
    matchNames:
    - prometheus
  selector:
    matchLabels:
      app: prometheus
  endpoints:
  - port: web
    scheme: http

apiVersion: v1
kind: Service
metadata:
  name: kube-dns-metrics
  namespace: kube-system
  labels:
    metrics: kube-dns
    env: live
spec:
  type: ClusterIP
  clusterIP: None
  ports:
  - name: metrics
    port: 10055
    protocol: TCP
    targetPort: metrics
  selector:
    k8s-app: kube-dns

apiVersion: "monitoring.coreos.com/v1alpha1"
kind: "ServiceMonitor"
metadata:
  name: kube-dns
  namespace: prometheus
  labels:
    app: kube-dns
    env: live
spec:
  namespaceSelector:
    matchNames:
    - kube-system
  selector:
    matchLabels:
      metrics: kube-dns
  endpoints:
  - port: metrics
    scheme: http

#33 is intending to replace the custom config in a similar way as you proposed, however, the problem is how the Prometheus Operator relabels the namespace label of a target onto it, that creates collisions as the kubelet and kube-state-metrics expose metrics with the namespace label themselves. And the kubelet situation I described in https://github.com/coreos/prometheus-operator/issues/173.

Great, so --kubelet-object=kube-system/kubelet-metrics option you described (once fixed) will give us a Service with Endpoints that we can ServiceMonitor. And then the labeling problem, P-O does this namespace relabeling below, and in your custom config you just don't do this? Is that the difference?
  - source_labels:
    - __meta_kubernetes_namespace
    target_label: namespace

Were you saying in #33 that the next release of 'kube-state-metrics' will allow a way around the namespace label collisions? Or does Prometheus Operator needs a further change devised for that issue? Like adding an extra label a different label name?
#33:

Updated to use latest version of Prometheus, but we can probably hold off on this until the kube-state-metrics release is done.

@whereisaaron sorry I missed to see this. Actually the Prometheus Operator introduced a feature in v0.6.0 which was released today, which allows you to disable tagging targets with a namespace label by placing an annotation on the Service it was discovered through.
#33 was deferred a couple times as we kept wanting to include new versions of everything, it upgraded kube-state-metrics, the Prometheus Operator and now generates the config through ServiceMonitors rather than a static configuration.
As #33 is closed, I'm closing this.


fix pipeline by move docutils pin into setup.py

@changlong-liu went over this with @lmazuel and we want to update the pip freeze and keep the docutils dep in the requirements.txt. I went ahead and did a PR to unblock the CI and fixed the issue. Sorry for the confusion, and thanks for your work!

@changlong-liu went over this with @lmazuel and we want to update the pip freeze and keep the docutils dep in the requirements.txt. I went ahead and did a PR to unblock the CI and fixed the issue. Sorry for the confusion, and thanks for your work!

I see. Good to get CI fixed.
Closing this PR.


Creating the Home Page Front End

The home page in our storyboard contains multiple data sets, and is essential for movement throughout the app. As such, to complete we must create a functional home menu ui containing buttons and links to many activities, and serve as the central location of the app.
It should contain a bottom navigation bar that leads to:

Daily Habit View
All Habits
Social Feed
Calendar View

As well, it should contain a add habit button on appropriate menus that links to the add habit activity, and a top navigational bar containing a drop down menu that leads to follow requests, logout, and potentially a settings menu if it is determined to be necessary.

Potential slight mislabeling on this issue.  The nature of the main menu dictates changes as the program evolves.  Modifying status to In Progress.  Note that major portions of the front-end work necessary to complete this task are finished at this point, but change is likely to be necessary in future.

Working and verified.  Closing.


⚠ Samsung has degraded performance

In 672e02e, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 5280 ms

Resolved: Samsung performance has improved in 7b9377f.


Access Denied when trying to run gproxy in Windows

I keep getting an access denied error and my account does not even have permissions to execute or delete / modify the .exe file. Am I missing some config here?

It should try to create C:\Users\yourusername\wsl-vpnkit folder. Does the folder exist, and does wsl-gvproxy.exe exist in the folder?
If you then run wsl-gvproxy.exe, it should exit immediately but not show any permission errors. If you get permission errors, you may have a similar issue as #104.

I am getting the same but I think know what's going on, my company uses Carbon Black Cloud its blocking wsl-gvproxy.exe as a potential malware because of this https://cve.circl.lu/cve/CVE-2021-4024. Any chance there's a updated version of this that fixes the vulnerability and can be included in the next build?

@haani86 The CVE is due to the confugration in Podman, and not a part of gvisor-tap-vsock/gvproxy. wsl-gvproxy.exe should not be listening to any ports.

I see, I’ll get the security team to add that file as an exception then thanks!

oh and you might want to change the code in standalone script
from
USERPROFILE=$(wslpath "$(powershell.exe -c 'Write-Host -NoNewline $env:USERPROFILE')")
to
USERPROFILE=$(wslpath "$(/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe -c 'Write-Host -NoNewline $env:USERPROFILE')")
as most people won't have alias added to .bashrc :D

@haani86 Windows PATH should include powershell.exe by default, which should then be available from within WSL as well by default. Is this not the case for you?

running $PATH I do see the path for powershell but just using powershell.exe from within the script gave me an error of command not found I had to use the full path for powershell.

Closing this issue due to inactivity related to the original issue.


Tuffon/cas 348

hey @tuffon  this is good to go. Just need to fix the merge conflict here after a big refactor on app.go got merged in. It shouldn't impact your fix, I think the line you've fixed has now moved to helpers.go

@rvmelkonian the merge conflicts have been resolved but still requires an approving review to merge


Add an option to disable crosshair

We need a flag or a method to hide the crosshair. Moreover this feature should disable long tap on canvas.
The case:

Make the crosshair invisible
Start the chart
Make a long tap on canvas
The chart looks like freezed

Any news on this? Even though I am hiding crosshair (visually) on mobile, the chart script seems to think it exists, disabling panning around on the chart until i double touch the chart.


Fixed issue with undefined flyfile

Fixes #192
@lukeed

@hzlmn When you get a chance to make those minor adjustments (the ones that are possible), I'll get this in 👍

And let's contain this PR just to what's already been done. If you continue to tackle #181, it should be its own PR.
Thanks!

@lukeed ok, I gonna submit updates when i will be at home

@lukeed updated, sorry for late response

@hzlmn there's no deadline!

You the man @hzlmn, thank you 🎉


added missing space for markdown

Ok.  When we figure out the website update workflow I'd be glad to update the simplified contribution info there.

There is a little bug in build_release.sh. At line 289, it tries to rm dvdimage* options console vnmr
It is in the OpenVnmrJ directory when the rm command is issued but those directories are in the parent directory of OpenVnmrJ


[Tutorial Docs] Fix incorrect reference

name: :memo: Documentation Fix
about: Fixing a problem in an existing docs page
Checklist

[ ] Is there an existing issue for this PR?

link issue here

[ ] Have the files been linted and formatted?

What docs page needs to be fixed?

Section: Tutorial
Page: 5

What is the problem?
 should be
What changes does this PR make to fix the problem?

Thanks!


Output of script not being saved to file or piped

Hi, I am trying to save the output of the script, for example like this:
python3 LFImap/lfimap.py -U "http://localhost/vulnerabilities/fi/?page=include.php" -C "..." -a > fi.txt
Or by using subprocess.Popen and then using iter to get the output, but id does not print anything.
Also tryed with subprocess.run and capture_output, and printing it at the end... Still nothing.
Am I doing something wrong?

Hello, thank You for taking interest in LFImap.
I have reproduced this issue and will provide the fix ASAP, perhaps with the new switch to allow users to output to a specified file.

You can see a basic print( to logging.info replacement here:
https://github.com/hansmach1ne/LFImap/pull/55
And the outcome of it that creates example.log:
INFO:root:
[i] Testing GET 'page' parameter...
INFO:root:
[i] Testing GET 'page' parameter...
INFO:root:
[i] Testing GET 'page' parameter...
INFO:root:
[i] Testing GET 'page' parameter...
INFO:root:
[i] Testing GET 'page' parameter...
INFO:root:
----------------------------------------
LFImap finished with execution.
INFO:root:Parameters tested: 1
INFO:root:Requests sent: 14
INFO:root:Vulnerabilities found: 4
INFO:root:
[i] Testing GET 'page' parameter...
INFO:root:
----------------------------------------
LFImap finished with execution.
INFO:root:Parameters tested: 1
INFO:root:Requests sent: 14
INFO:root:Vulnerabilities found: 4
INFO:root:
[i] Testing GET 'page' parameter...
INFO:root:
----------------------------------------
LFImap finished with execution.
INFO:root:Parameters tested: 1
INFO:root:Requests sent: 14
INFO:root:Vulnerabilities found: 4
INFO:root:
[i] Testing GET 'page' parameter...
INFO:root:
----------------------------------------
LFImap finished with execution.
INFO:root:Parameters tested: 1
INFO:root:Requests sent: 14
INFO:root:Vulnerabilities found: 4
INFO:root:
[i] Testing GET 'page' parameter...
INFO:root:
[i] Testing GET 'page' parameter...
INFO:root:[+] LFI -> 'http://localhost:4280/vulnerabilities/fi/?page=php%3A%2F%2Ffilter%2Fresource%3D%2Fetc%2Fpasswd'
INFO:root:[+] RCE -> 'http://localhost:4280/vulnerabilities/fi/?page=php%3a%2f%2finput&cmd=cat%20%2Fetc%2Fpasswd' -> HTTP POST -> '<?php echo(shell_exec($_GET['cmd']));?>'
INFO:root:[+] LFI -> 'http://localhost:4280/vulnerabilities/fi/?page=file%3A%2F%2F%2Fetc%2Fpasswd'
INFO:root:[+] LFI -> 'http://localhost:4280/vulnerabilities/fi/?page=/etc/passwd'
INFO:root:
----------------------------------------
LFImap finished with execution.
INFO:root:Parameters tested: 1
INFO:root:Requests sent: 14
INFO:root:Vulnerabilities found: 4

There is more work to do though, like color removal, understand why it prints the outcome a few times, etc

@nrathaus
Hey, first of, thanks for the suggestion.
This would be great, however we would need to account the ANSI escape sequences, which color the certain output in a colored way.  Logging library will print these ANSI strings (unformatted) directly to the file.
With that said, planning to continue to have the colored output support, because when the user tests large amount of URLs, the output is too clustered. The colors solve this problem. Additionally, in the future there will be command-line switches so that user can output to the XML, HTML, and TXT files sort of like a output 'report'. The TXT switch would output the LFImap output as is to the specified file location.

For me at least, the ANSI part wouldn't be a problem, as I have already written a small function that deletes any ANSI sequences in a string, I could put it here if it's any help.

@X-l-l-l Of course, if you have it already written and ready, mind pasting it here? Thanks. :)

Sure thing, here it is:
def rm_ansi(line):
    ansi_escape = re.compile(r'\x1b\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]')
    plain_text = ansi_escape.sub('', line)
    return plain_text

Haven't tested it in every situation, but worked well in the cases i needed it.

The problem is identified as incorrect buffering done by the python for some unknown reasons (Guessing because we use ANSI escape sequences, buffers are not flushed correctly -> not a hundred percent on that).
However, executing export PYTHONUNBUFFERED=1  before running the script, outputs STDOUT correctly and confirms the issue is related to buffering.

@X-l-l-l Could you git pull the latest update and test if it now works for you?
Added flushing after printing to STDOUT - should fix the problem.
Default colored:

No colors:

Tested it now. That seems like it fixed it. Tried it as you did, with outputting to a file and also tried it with subprocess.run and Popen and piping the stdout to other scripts or areas. Thank you very much! Amazing work!

👍 Thanks for raising this


Unable to complete Pull request

You have to commit your code into your fork, you fork right now is identical to the main repo.

Right, sorry.


@callable type hint parameters by using it like @method parameters

According to
https://phpdoc.org/docs/latest/references/phpdoc/tags/method.html
we can define method parameters easily with correc type hints.
Why not using this also for @callable or Closure?
Example:
class Test{
    /**
     * Add a callback
     * @param Closure $closure(integer $id, string $foo)
     */
    public function addCallback(Closure $closure){
        // IDE's now can pick-up this information and providing for example auto completion or something usefull
    }
    /**
     * Add a callback by callable
     * @param callable $callable(integer $id, string $foo)
     */
    public function addCallbackByCallable(callable $callable){
        // IDE's now can pick-up this information and providing for example auto completion or something usefull
    }
}

Documenting anonymous functions is an ongoing discussion as this has several caveats to take into account. Since this is covered in other issues I will be closing this as a duplicate. Nonetheless I would like to thank you for bringing this helps us to gauge interest in this improvement


Open Source Report Card

I quite enjoyed the prose generated by Open Source Report Card
https://github.com/dfm/osrc
could that be integrated?

Christian, http://osrc.dfm.io is down 'due to breaking changes in GitHub' API, so we can't look at it at the moment. If you see there ideas that you want to be implemented in Sourcerer, could you post them here?

Hi @cleder
Closing this issue for now. Feel free to reopen it if there is any updates on http://osrc.dfm.io status, it's down at the moment.


Fix 5.7 dependencies

Looks like a few references to main where missed in #1104 which breaks the 5.7 branch of SwiftPM.

@swift-ci please test


useFetch runaway effect not caught

stop-runaway-react-effects version: 1.2.0
node version: 10.15.3
npm (or yarn) version: 6.9.0

Relevant code or config

function useGetProjects() {
  const projects = useFetch(endpoint, {
    method: 'post',
    body: JSON.stringify({ Token })
  })
  return projects
}

// useFetch
import { useEffect, useState } from 'react'

function useFetch(path, options) {
  const [result, setResult] = useState(null)
  useEffect(() => {
    let shouldCancel = false
    async function fetchData(path, options) {
      const response = await fetch(path, options)
      const result = await response.json()
      if (!shouldCancel) {
        setResult(result)
      }
    }
    fetchData(path, options)
    return () => {
      shouldCancel = true
    }
  }, [path, options])
           // ^ cause of runaway effect: options should be memoized
  return result
}

Since the options object passed to useFetch is recreated every call and not memoized, this caused a runaway effect. I tried using this module to catch future accidents like this, but it does not seem to catch it.
What you did:

Created bootstrap-hijack.js file from documentation
Imported it in the root file (index.js)
Tried importing in the relevant file (App.jsx)

What happened:

The runaway hook was not caught

Reproduction repository:

I will try to get a repro repo together another time.
Problem description:
Suggested solution:

Yeah, this is tricky. You can customize the callCount and timeLimit if you like. But the really tricky thing is it's just hard to determine whether something's a "runaway" or if it's supposed to be functioning the way that it is. I'm not sure how best to determine that (which is why this probably isn't built-into React).

Thanks, I will try that when I find some more time to test it.
It's a neat idea though, that potentially can save you from accidentally DDoS'ing your endpoints...

I ran into something similar today where an effect that relies on an animation loop was flagged as runaway. Like @kentcdodds said, there is not a very reliable way to determine if a runaway effect is false positive. What I would like though is some way to manually disable the runaway detection per effect.

This eslint rule ("react-hooks/exhaustive-deps": "warn") may help you prevent this kind of thing happening:
https://github.com/facebook/react/blob/master/packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js#L516

This eslint rule ("react-hooks/exhaustive-deps": "warn") may help you prevent this kind of thing happening:
https://github.com/facebook/react/blob/master/packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js#L516

This rule actually does the opposite for me, it causes these sorts of things, like infinite setState loop. That's probably because of some other problem though.


Expense Manager

Readme Updated

you did them in the last commit right? @akshitgrover

Oh yes Sorry, My Bad.

It's totally merged don't worry you don't have to do this again !!😊


Output .IGES File Not Compatible

Before submitting the issue

[X] I have searched among the existing issues
[X] I am using a Python virtual environment

Description of the bug
Hi,
I tried to output the geometry of this tutorial in .IGES format. The commands I used save the CAD file are
mapdl.cdopt('IGES')
mapdl.cdwrite('...direcotry...')
I also used mapdl.aplot() to demonstrate the plot and it shows the same as the tutorial shows. But when I use SpaceClaim to open this .IGES file, the CAD file that I opened in SpaceClaim has some clashes on the center part and not compatible to the CAD file I created in PyAnsys.

Steps To Reproduce

Code to create the geometry

length = 0.4
width = 0.1
notch_depth = 0.04
notch_radius = 0.01

mapdl.clear()
mapdl.prep7()

circ0_kp = mapdl.k(x=length / 2, y=width + notch_radius)
circ_line_num = mapdl.circle(circ0_kp, notch_radius)
circ_line_num = circ_line_num[2:]  # only concerned with the bottom arcs

# create a line and drag the top circle downward
circ0_kp = mapdl.k(x=0, y=0)
k1 = mapdl.k(x=0, y=-notch_depth)
l0 = mapdl.l(circ0_kp, k1)
mapdl.adrag(*circ_line_num, nlp1=l0)

# same thing for the bottom notch (except upwards
circ1_kp = mapdl.k(x=length / 2, y=-notch_radius)
circ_line_num = mapdl.circle(circ1_kp, notch_radius)
circ_line_num = circ_line_num[:2]  # only concerned with the top arcs

# create a line whereby the top circle will be dragged up
k0 = mapdl.k(x=0, y=0)
k1 = mapdl.k(x=0, y=notch_depth)
l0 = mapdl.l(k0, k1)
mapdl.adrag(*circ_line_num, nlp1=l0)

rect_anum = mapdl.blc4(width=length, height=width)

# Note how pyansys parses the output and returns the area numbers
# created by each command.  This can be used to execute a boolean
# operation on these areas to cut the circle out of the rectangle.
# plate_with_hole_anum = mapdl.asba(rect_anum, circ_anum)
cut_area = mapdl.asba(rect_anum, "ALL")  # cut all areas except the plate

# mapdl.aplot(vtk=True, show_line_numbering=True)
mapdl.lsla("S")
# mapdl.lplot(vtk=True, show_keypoint_numbering=True)
mapdl.lsel("all")

# Next, extrude the area to create volume
thickness = 0.01
mapdl.vext(cut_area, dz=thickness)
mapdl.aplot()

# Save as IGES
mapdl.cdopt('IGES')
mapdl.cdwrite('SOLID',r'save_directory\file_name')

Open the .IGES file in SpaceClaim

Which Operating System are you using?
  MAPDL can read in the IGES file that is created.  Use the following SCDM option when importing that IGES file and SCDM will properly create the volume:

Also there are lines and keypoints in the MAPDL database that do not belong to the volume due to the way the volume was created.  This won't make a difference on this part, but to have a cleaner iges file issue the following command prior to writing the IGES file:
mapdl.vsel('s','volu','','all',kswp=1)
This will select all volumes and only the areas/lines/keypoints associated with the volume.
Mike

Hi Mike,
Thank you for your quick reply! So I added the command mapdl.vsel command prior to writing the IGES file
mapdl.vsel('s','volu','','all',kswp=1)

But the .IGES file I opened in SpaceClaim is still not the same as the one created in Pyansys.
Thanks again

Hi @yc2647 Did you change that import option in SCDM?  Which version of SCDM are you using?
Mike

Hi @germa89 this issue can be closed.  yc2647 accidentally was looking at different file type options in SCDM; once the setting shown above was set the iges file imported into SCDM for them.
For anyone else reading this - a long time ago (pre my joining Ansys) a coworker and I had created a APDL macro to write out a STL file of a surface mesh.  I wanted to see if I could recreate it in Python + Numpy and did.  Look for it in the Discussions if interested.
Mike

Hi @mikerife
Thank you very much for working on this!
It might be an interesting feature to include in pymapdl. I will contact you for following up on this.


Very Quick Calls Generate the Same ID

Hi! Not sure if you are using Github issues for this, but I was trying out the project and found that calling generateNew("prefix") quickly generates the same ID, and I was wondering if this was intentional? I can get around it by using encodeFromUUID and generating a UUID, but it looks like I lose the locality.
// Example code
  new Array(30).fill(0).map((_, i) => {
    console.log(generateNew("knot"));
  });

Example Output:
knot_1g64w3jc9g6gs2tchncdjjtdsk
knot_1g64w3jc9g6gs2tchncdjjtdsk
knot_1g64w3jc9g6gs2tchncdk2tdsk
knot_1g64w3jc9g6gs2tchncdk2tdsk
knot_1g64w3jc9g6gs2tchncdk2tdsk
knot_1g64w3jc9g6gs2tchncdk2tdsk
knot_1g64w3jc9g6gs2tchncdk2tdsk
knot_1g64w3jc9g6gs2tchncdk2tdsk
knot_1g64w3jc9g6gs2tchncgr2tdsq
knot_1g64w3jc9g6gs2tchncgr2tdsq
knot_1g64w3jc9g6gs2tchncgr2tdsq
knot_1g64w3jc9g6gs2tchncgr2tdsq
knot_1g64w3jc9g6gs2tchncgrjtdv3
knot_1g64w3jc9g6gs2tchncgrjtdv3
knot_1g64w3jc9g6gs2tchncgrjtdv3
knot_1g64w3jc9g6gs2tchncgrjtdv3
knot_1g64w3jc9g6gs2tchncgrjtdv3
knot_1g64w3jc9g6gs2tchncgs2tdv3
knot_1g64w3jc9g6gs2tchncgs2tdv3
knot_1g64w3jc9g6gs2tchncgs2tdv3
knot_1g64w3jc9g6gs2tchncgs2tdv3
knot_1g64w3jc9g6gs2tchncgs2tdv3
knot_1g64w3jc9g6gs2tchncgs2tdv3
knot_1g64w3jc9g6gs2tchncgs2tdv3
knot_1g64w3jc9g6gs2tchncgs2tdv3
knot_1g64w3jc9g6gs2tchncgs2tdv3
knot_1g64w3jc9g6gs2tchncgs2tdv3
knot_1g64w3jc9g6gs2tchncgs2tdv3
knot_1g64w3jc9g6gs2tchncgs2tdv3
knot_1g64w3jc9g6gs2tchncgs2tdv3

Hi Ellisande,
Thanks for discovering this. I think it could be the uuidv7 generator that I am using. Let me try fixing it!

I think the UUID slow down might be intentional since its introduced in later versions. I will have to downgrade to uuidv7 v0.4.4 and test.

Ok I fixed it. It's not the uuidv7 package, it's the byte conversion code. You can update to v0.2.3 now for the change :D

Whoa, thanks for the fast turn around!


HDDS-4799. Remove redundant backticks and add Override to methods

What changes were proposed in this pull request?
1. Remove redundant backticks
https://ci-hadoop.apache.org/view/Hadoop Ozone/job/ozone-doc-master/lastSuccessfulBuild/artifact/hadoop-hdds/docs/public/interface/cli.html

2. Add Override to methods

An overridden method from an interface or abstract class should be marked with @Override annotation
The Intellij IDE always prompts error message

What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-4799
How was this patch tested?
No new unit tests.

@adoroszlai thanks for your advice, will pay attention next time. The pr updated(fix missing @Override annotation in tests).

Thanks @lamber-ken for the update, LGTM.  I have added one more missing @Override and committed to master.

Thanks @lamber-ken for the update, LGTM. I have added one more missing @Override and committed to master.

Welcome, thanks.


Missing extension point to supply other implementations of IStackTraceParser

Hi,
While trying to use the library to handle other types of stacktraces, specificly in the format Bugsnag for ReactNative supplies the stacktraces:
[
  {
    "function": "onerror",
    "line": 109,
    "column": 2655,
    "filename": "main.jsbundle"
  },
  {
    "function": "value",
    "line": 94,
    "column": 1505,
    "filename": "main.jsbundle"
  },
  {
    "function": "value",
    "line": 93,
    "column": 7697,
    "filename": "main.jsbundle"
  },
  {
    "function": "value",
    "line": 93,
    "column": 4437,
    "filename": "main.jsbundle"
  },
  {
    "function": "value",
    "line": 31,
    "column": 1524,
    "filename": "main.jsbundle"
  },
  {
    "function": "value",
    "line": 19,
    "column": 1592,
    "filename": "main.jsbundle"
  },
  {
    "function": "value",
    "line": 0,
    "column": 0,
    "filename": "[native code]"
  }
]

I encountered issues with the parser and wanted to extend the parser, but have no way to supply our own implementation of the parser that I can see, without using tons of reflection to extend the StackTraceDeminfierFactory.GetStackTraceDeminfier() or directly on the constructor of  StackTraceDeminifier.
How should I go about doing this the proper way? Creating a overload on the Factory-method that allows a user to pass in a implementation of StackTraceParser seems like the proper way to go about doing it to me?

An overload sounds like a good way to go about it

I've open PR #68 to add overloads to the factories

Closed with #68


If more than 3 tabs in the BottomNavigationBar, the tabs turn white.

Overview
I always appreciate the development of Flutter!
Is it a known issue that having more than 3 tabs in the BottomNavigationBar causes the tabs to turn white?
I am trying to display 4 items in a tab with the following code.
I don't get an error, but the icons are no longer visible.
I can see the icons when I tap on them.
If the tab has 3 items, you can view them.
Environment
———————————————
Mac/Android Studio 4.0
Xcode 11.3.1
Flutter 1.22.1 • channel stable
Framework • revision f30b7f4db9 (4 days ago) • 2020-10-08 10:06:30 -0700
Engine • revision 75bef9f6c8
Tools • Dart 2.10.1
————————————————
Code
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'BottomNavigationBar'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Container(),
      bottomNavigationBar: BottomNavigationBar(
        items: <BottomNavigationBarItem>[
          BottomNavigationBarItem(icon: Icon(Icons.home), title: Text('1')),
          BottomNavigationBarItem(icon: Icon(Icons.home), title: Text('2')),
          BottomNavigationBarItem(icon: Icon(Icons.home), title: Text('3')),
          BottomNavigationBarItem(icon: Icon(Icons.home), title: Text('4')),
        ],
      ),
    );
  }
}

ScreenShot

Workaround
A workaround for now.
If you specify "type: BottomNavigationBarType.fixed", the tab will be displayed.
Every Thanks.

This is designed, see also: https://github.com/flutter/flutter/blob/f30b7f4db9/packages/flutter/lib/src/material/bottom_navigation_bar.dart#L52

Thanks for your reply.
I understand.

I'm grateful.

[Solved] Flutter BottomNavigationBar not working with more than three items


Loading spinner configurable animation time

REDMINE-17701

Coverage remained the same at 99.208% when pulling 1430fab64a65f24c466bc5b79bccdd1dd906f849 on awaismbajwa:loading-spinner-animation-time into 3dec875afd51d78449e865d7c9c11deb32a449eb on codevise:master.


Move CRFWrapper to tfa.text with crf module

Description
Brief Description of the PR:
Per discussion in the monthly meeting... I don't think we yet have a compelling case for making tfa.models a new subpackage with Addons.
Previous PR was https://github.com/tensorflow/addons/pull/2555
Type of change

[ ] Bug fix
[ ] New Tutorial
[ ] Updated or additional documentation
[ ] Additional Testing
[ ] New Activation and the changes conform to the activation contribution guidelines
[ ] New Callback and the changes conform to the callback contribution guidelines
[ ] New Image addition and the changes conform to the image op contribution guidelines
[ ] New Layer and the changes conform to the layer contribution guidelines
[ ] New Loss and the changes conform to the loss contribution guidelines
[ ] New Metric and the changes conform to the metric contribution guidelines
[ ] New Optimizer and the changes conform to the optimizer contribution guidelines
[ ] New RNN Cell and the changes conform to the rnn contribution guidelines
[ ] New Seq2seq addition and the changes conform to the seq2seq contribution guidelines
[ ] New Text addition and the changes conform to the text op contribution guidelines

Checklist:

[x] I've properly formatted my code according to the guidelines

[ ] By running Black + Flake8
[x] By running pre-commit hooks

[ ] This PR addresses an already submitted issue for TensorFlow Addons
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] This PR contains modifications to C++ custom-ops

How Has This Been Tested?
If you're adding a bugfix or new feature please describe the tests that you ran to verify your changes:
*

@howl-anderson when time allows could you fix this code module so it complies with our source code tests. Creating a new subpackages requires more than was done in #2555 which is why these tested were not performed prior to merging.
For example, see https://github.com/tensorflow/addons/blob/master/tools/testing/source_code_test.py#L27-L37
cc @fsx950223 @bhack

@seanpmorgan Sure, I will do that. Thank you for your work on the code.


Shields wieldview problem

Shields wieldview problem
The wieldview of all Shields is incorrect, it's 4x too big, and the 3d_armor model can't displayed it all.
Old bug(not fixed anymore ?), need to fix it ASAP...
APPLIED it to All servers which use 3d_armor ! (classic & HG)

We need a screenshot please to determine the precise origin of the problem, and resizing those textures proved to be a mess after a while.

Oh, then it's not preview, it's wield. And that was probably caused by the fact that we resired the shields. I will investigate on that.

https://github.com/MinetestForFun/server-minetestforfun/commit/1c13721b34ee9218995dbdb0b6b2e6310cfe537b
Fixed the wield, now it's the preview wich is bugging. I think it's my fix about the textures piling that is messed up.


Fix PolygonGeometry when height equals extrudedHeight

We were trying to create an extrusion of height 0; which produced NaNs in the normals (because normalize calls were producing NaN). Now we just compare them and consider them equal at epsilon 10, which was determined experimentally.

The perPositionHeight polyline in the sandcastle example doesn't render correctly

Thanks, ready.

Looks good, thanks @mramato!


ent cmd tool installation failure

go get github.com/facebook/ent/cmd/ent
throws this errror:
go get github.com/facebook/ent/cmd/ent: module github.com/facebook/ent@upgrade found (v0.5.0), but does not contain package github.com/facebook/ent/cmd/ent

same here, i think there is a change with this package

yeah 2 hours ago the developers switched from entc to ent

yeah, 2 hours ago the developers switched from entc to ent

i see that in the repo, but what does that mean

Hey @jason-shen and @sinnrrr,
Let me release a new version and see if that fixes the problem.
Some context about the issue - https://github.com/facebook/ent/issues/981

Can you please upgrade ent to latest (v0.5.1), and report here the status. Thanks

@a8m running go get -u github.com/facebook/ent/cmd/ent did not help, so I cleared cache from $GOPATH, and all ran well
thanks for contributing to open source world!

Thanks for reporting this @sinnrrr 😃

all works as it should by just doing go get -u


Remove dependency substitutions from Micronaut Framework 4.0 documentation

closes #361

I'm not sure what broke that test. All I changed was docs, and the version of build-plugins (which didn't break it either).


Binary that depends on cloudflare/circl can't be built cross-platform

What version of rules_go are you using?
0.50.1
What version of gazelle are you using?
0.39.1
What version of Bazel are you using?
7.4.0
Does this issue reproduce with the latest releases of all the above?
Yes
What operating system and processor architecture are you using?
Darwin ARM64
Any other potentially useful information about your toolchain?
This is related to the infamous circl dependency.
What did you do?
I have a go_binary that through a long list of dependencies ends up depending on circl. I do get circl from the BCR:
bazel_dep(
    name = "circl",
    version = "1.3.8",
)

My binary rule is defined as such:
go_binary(
    name = "api",
    embed = [":api_lib"],
    gotags = ["purego"],
    pure = "on",
)

I try to build it like:
bazel build //control-plane/api --platforms=@rules_go//go/toolchain:linux_arm64

My error:
ERROR: /private/var/tmp/_bazel_amir/3dbd0b78d662a8a6e641b2d6e1f7442e/external/bazel_tools/tools/cpp/BUILD:58:19: in cc_toolchain_alias rule @@bazel_tools//tools/cpp:current_cc_toolchain:
Traceback (most recent call last):
        File "/virtual_builtins_bzl/common/cc/cc_toolchain_alias.bzl", line 26, column 48, in _impl
        File "/virtual_builtins_bzl/common/cc/cc_helper.bzl", line 225, column 17, in _find_cpp_toolchain
Error in fail: Unable to find a CC toolchain using toolchain resolution. Target: @@bazel_tools//tools/cpp:current_cc_toolchain, Platform: @@rules_go~//go/toolchain:linux_arm64, Exec platform: @@bazel_tools//tools:host_platform
ERROR: /private/var/tmp/_bazel_amir/3dbd0b78d662a8a6e641b2d6e1f7442e/external/bazel_tools/tools/cpp/BUILD:58:19: Analysis of target '@@bazel_tools//tools/cpp:current_cc_toolchain' failed

What did you expect to see?
I expected this build to not need the C++ toolchain.
What did you see instead?
An error for C++ toolchain.

Please test whether https://github.com/bazel-contrib/rules_go/commit/87e66bb70858570ac668f95662d6070417d5a416 fixes this for you.

I've added
git_override(
    module_name = "rules_go",
    commit = "87e66bb70858570ac668f95662d6070417d5a416",
    remote = "https://github.com/bazel-contrib/rules_go.git",
)

And unfortunately
bazel build //control-plane/api --platforms=@rules_go//go/toolchain:linux_arm64

ERROR: /private/var/tmp/_bazel_amir/3dbd0b78d662a8a6e641b2d6e1f7442e/external/bazel_tools/tools/cpp/BUILD:58:19: in cc_toolchain_alias rule @@bazel_tools//tools/cpp:current_cc_toolchain:
Traceback (most recent call last):
        File "/virtual_builtins_bzl/common/cc/cc_toolchain_alias.bzl", line 26, column 48, in _impl
        File "/virtual_builtins_bzl/common/cc/cc_helper.bzl", line 225, column 17, in _find_cpp_toolchain
Error in fail: Unable to find a CC toolchain using toolchain resolution. Target: @@bazel_tools//tools/cpp:current_cc_toolchain, Platform: @@rules_go~//go/toolchain:linux_arm64, Exec platform: @@bazel_tools//tools:host_platform
ERROR: /private/var/tmp/_bazel_amir/3dbd0b78d662a8a6e641b2d6e1f7442e/external/bazel_tools/tools/cpp/BUILD:58:19: Analysis of target '@@bazel_tools//tools/cpp:current_cc_toolchain' failed

Fails

This might be a significantly simpler repro.
bazel build --repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1 --@rules_go//go/config:pure=true  @circl//dh/x448:x448

bazel query "somepath(//control-plane/api, @rules_go//:cgo_context_data)"

//control-plane/api:api
@rules_go//:go_context_data
@rules_go//:cgo_context_data

bazel query "somepath(//control-plane/api, @rules_go//:cgo_context_data)"

//control-plane/api:api
@rules_go//:go_context_data
@rules_go//:cgo_context_data

What about if you try cquery? @rules_go//:go_context_data does depend on @rules_go//:cgo_context_data depending on transitions.

Heh interesting..
//control-plane/api:api (92fba1e)
@rules_go//:go_context_data (8754af7)
@@rules_go~~go_sdk~io_bazel_rules_nogo//:nogo (4bda251)
//ci/analyzers:limited_nogo (4bda251)
//ci/analyzers:limited_nogo_actual (da2a0f7)
@rules_go//:stdlib (f0a298a)
@rules_go//:cgo_context_data (f0a298a)

I disabled nogo and after that cquery returns empty.
However, even after removing nogo:
bazel build --repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1 --@rules_go//go/config:pure=true @circl//dh/x448:x448

Fails to build
ERROR: /private/var/tmp/_bazel_amir/3dbd0b78d662a8a6e641b2d6e1f7442e/external/bazel_tools/tools/cpp/BUILD:58:19: in cc_toolchain_alias rule @@bazel_tools//tools/cpp:current_cc_toolchain:
Traceback (most recent call last):
        File "/virtual_builtins_bzl/common/cc/cc_toolchain_alias.bzl", line 26, column 48, in _impl
        File "/virtual_builtins_bzl/common/cc/cc_helper.bzl", line 225, column 17, in _find_cpp_toolchain
Error in fail: Unable to find a CC toolchain using toolchain resolution. Target: @@bazel_tools//tools/cpp:current_cc_toolchain, Platform: @@bazel_tools//tools:host_platform, Exec platform: @@bazel_tools//tools:host_platform
ERROR: /private/var/tmp/_bazel_amir/3dbd0b78d662a8a6e641b2d6e1f7442e/external/bazel_tools/tools/cpp/BUILD:58:19: Analysis of target '@@bazel_tools//tools/cpp:current_cc_toolchain' failed
INFO: Analyzed target @@circl~//dh/x448:x448 (8 packages loaded, 4748 targets configured).
WARNING: errors encountered while analyzing target '@@circl~//dh/x448:x448', it will not be built.

And unfortunately I can't run:
bazel cquery --@rules_go//go/config:pure=true --repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1  "somepath(@circl//dh/x448:x448, @rules_go//:cgo_context_data)"

To see why this is happening since it fails with that same error.

So, I've added a bunch of patches on top of the circl dependency. Specifically, they remove the select statement in deps. E.g.:
--- dh/x448/BUILD.bazel
+++ dh/x448/BUILD.bazel
@@ -19,12 +19,7 @@
     visibility = ["//visibility:public"],
     deps = [
         "//math/fp448",
-    ] + select({
-        "@rules_go//go/platform:amd64": [
-            "@org_golang_x_sys//cpu:go_default_library",
-        ],
-        "//conditions:default": [],
-    }),
+    ],
 )

And, they remove the cdeps statement:
--- dh/x448/BUILD.bazel
+++ dh/x448/BUILD.bazel
@@ -14,7 +14,6 @@
        "table.go",
    ],
    cgo = True,
-    cdeps = ["//math/fp448:header"],
    importpath = "github.com/cloudflare/circl/dh/x448",
    visibility = ["//visibility:public"],
    deps = [

With these changes, I'm getting it closer and closer to working. I think whats happening is that unfortunately cgo = True in the dependency is forcing the go toolchain to look for C++ toolchain.
Any help to figure out how to fix this would be appreciated

I tried a different strategy. In this strategy I do not use circl from BCR and instead:
go_deps.gazelle_override(
    directives = [
        "gazelle:build_tags purego",
        "gazelle:exclude **/*_amd64*",
    ],
    path = "github.com/cloudflare/circl",
)

This allows me to build the go_binary target below:
go_library(
    name = "api_lib",
    srcs = ["main.go"],
    importpath = "github.com/spirl/spirl/control-plane/api",
    deps = ["//control-plane/api/cmd"],
)

go_binary(
    name = "api",
    embed = [":api_lib"],
    gotags = ["purego"],
    pure = "on",  # No CGO
    x_defs = {
        "github.com/spirl/spirl/common/version.version": "${STABLE_VERSION}",
    },
)

However. It does not allow me to build the api_lib target.

Perhaps you could use with_cfg to transition your binary? That way you can set gotags on it from build.bazel instead of affecting everything from CLI?

I am running into similar problems. it look like remove the _lib and directly add the source codes and deps to go_ binary will work
go_binary(
    name = "api",
    srcs = ["main.go"],
    deps = ["//control-plane/api/cmd"],
    gotags = ["purego"],
    pure = "on",  # No CGO
    x_defs = {
        "github.com/spirl/spirl/common/version.version": "${STABLE_VERSION}",
    },
)

looks like gotags are not properly passed to embed?


Implemented RecyclerView to enhance application performance

This enhancement is done. It makes performance much faster when clicking on segments button now.


Help required

Hi Leo,
I need some help with decryption assignment. Would it be possible to communicate privately through email?
<EMAIL_ADDRESS>Best regards,
Anjum

Take care, it's gonna cost you a bunch of bitcoins.


fix(cli): Pin minisign to 0.7.3 to prevent issues with empty key passwords

Using 0.7.5 will give me Error incorrect updater private key password: Wrong password for that key and since we want to release soon i thought pinning it would be faster than figuring out the issue (cause i have no idea what's going on lol)
What kind of change does this PR introduce?

[x] Bugfix
[ ] Feature
[ ] Docs
[ ] New Binding issue #___
[ ] Code style update
[ ] Refactor
[x] Build-related changes
[ ] Other, please describe:

Does this PR introduce a breaking change?

[ ] Yes, and the changes were approved in issue #___
[x] No

Checklist

[ ] When resolving issues, they are referenced in the PR's title (e.g fix: remove a typo, closes #___, #___)
[ ] A change file is added if any packages will require a version bump due to this PR per the instructions in the readme.
[ ] I have added a convincing reason for adding this feature, if necessary

Other information

Weird, it actually works on my end. Though https://github.com/jedisct1/rust-minisign/commit/2de779230e1f8ef727da4e5ef51aa2b25bf43461 indeed looks scary.

maybe windows only idk - no idea how that could be possible tho.
If running cargo install in a local copy of tauri I also had to rebuild tauri-cli twice sometimes for some weird reason. -> If you run it locally you have to run cargo update to see the issue,
cargo install from git/1.3 without the frozen-lockfile flag pulled 0.7.5 automatically and repros the issue 100% consistent for me.

I can reproduce it on Windows omg :| we should file an issue.


Enable gradle tests for ballerina observability

Purpose
Purpose of this PR is to $subject.

Codecov Report

Merging #14629 into master will decrease coverage by 3.64%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master   #14629      +/-   ##
============================================
- Coverage        64%   60.35%   -3.65%
  Complexity      523      523
============================================
  Files          2274     2280       +6
  Lines         99054   109119   +10065
  Branches      13164    14108     +944
============================================
+ Hits          63397    65860    +2463
- Misses        30659    37906    +7247
- Partials       4998     5353     +355

Impacted Files
Coverage Δ
Complexity Δ

...llerinalang/stdlib/time/nativeimpl/ToTimeZone.java
75% <0%> (-25%)
0% <0%> (ø)

...in/java/org/ballerinalang/logging/BLogManager.java
19.84% <0%> (-19.05%)
0% <0%> (ø)

...llerinalang/stdlib/time/nativeimpl/CreateTime.java
86.66% <0%> (-13.34%)
0% <0%> (ø)

.../org/ballerinalang/stdlib/time/util/TimeUtils.java
72.72% <0%> (-11.49%)
0% <0%> (ø)

...rinalang/runtime/threadpool/ThreadPoolFactory.java
61.9% <0%> (-4.77%)
0% <0%> (ø)

...n/java/org/ballerinalang/bre/bvm/BVMScheduler.java
43% <0%> (-3%)
0% <0%> (ø)

...g/ballerinalang/stdlib/time/nativeimpl/Format.java
7.14% <0%> (-2.86%)
0% <0%> (ø)

...lerinalang/stdlib/time/nativeimpl/MilliSecond.java
25% <0%> (ø)
0% <0%> (ø)
:arrow_down:

...g/ballerinalang/stdlib/time/nativeimpl/Minute.java
25% <0%> (ø)
0% <0%> (ø)
:arrow_down:

...alang/stdlib/time/nativeimpl/SubtractDuration.java
8.33% <0%> (ø)
0% <0%> (ø)
:arrow_down:

... and 29 more

Continue to review full report at Codecov.

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


Add UpdateQueues API

This removes the reload worker calls and gives the AdminServer responsibility for restarting push workers when needed.
This goes with https://github.com/AppScale/appscale-tools/pull/636
This also depends on https://github.com/AppScale/hawkeye/pull/114

https://ocd.appscale.com:8080/job/Daily Build/3519/

https://ocd.appscale.com:8080/job/Daily Build/3533/


Resource handler returned message: "null

Raising this issue here because I don't know how else I would reach the RUM team.
When I try to create a RUM monitor via an L1 CDK construct, CloudFormation outputs the following error.
Resource handler returned message: "null (Service: Rum, Status Code: 403, Request ID: 25882675-8906-45e6-8494-2bb0d62bdb28)" (RequestToken: 4aab9635-1c07-613e-52ae-34085dd4f896, HandlerErrorCode: AccessDenied)

I have admin permission when executing cdk deploy.
Is there more info to this than just "null that I can find anywhere? Also checked if there are any CW logs, but without success.
The CloudFormation stack is afterwards in ROLLBACK_COMPLETE, but I can see that the Cogito identity pool and the CW RUM app have been created. I have tried this multiple times, and every time made sure that there is no existing identity pool and no CW RUM app. The same code seems to work in the account of another team, but not in ours. I'm running out of ideas what to try.
Below is the CDK code we use, with<EMAIL_ADDRESS><EMAIL_ADDRESS>and<EMAIL_ADDRESS>import { Stack } from "aws-cdk-lib";
import { CfnIdentityPool, CfnIdentityPoolRoleAttachment } from "aws-cdk-lib/aws-cognito";
import { FederatedPrincipal, PolicyDocument, PolicyStatement, Role } from "aws-cdk-lib/aws-iam";
import { CfnAppMonitor } from "aws-cdk-lib/aws-rum";
import { Construct } from "constructs";

export interface RumProps {
    /**
     * Provide a domain that will be allowed to send telemetry data to the Real
     * User Monitoring agent
     */
    readonly topLevelDomain: string;
    /**
     * The name for the App Monitor that will be created
     *
     * @unique
     */
    readonly appMonitorName: string;
}

/**
 * The RUM custom resource can be used to setup Real User Monitoring using AWS
 *
 * The resource itself creates all the required infrastructure.
 * Adapted from https://blog.simonireilly.com/posts/cloudwatch-rum-end-to-end-monitoring
 *
 * @example
 * const rum = new Rum(this, "SiteRum", {
 *   topLevelDomain: "*.s3-website-eu-west-1.amazonaws.com",
 *   appMonitorName: "canary-stack-rum",
 * });
 *
 */
export class Rum extends Construct {
    protected unauthenticatedRumRole: Role;

    readonly appMonitor: CfnAppMonitor;
    readonly topLevelDomain: string;
    readonly appMonitorName: string;
    readonly identityPool: CfnIdentityPool;

    constructor(scope: Construct, id: string, props: RumProps) {
        super(scope, id);
        this.topLevelDomain = props.topLevelDomain;
        this.appMonitorName = props.appMonitorName;

        this.identityPool = this.createIdentityPool();
        this.unauthenticatedRumRole = this.createRumRole();
        this.appMonitor = this.initializeRum();
    }

    private initializeRum() {
        this.createRoleAttachment();
        return this.createApplicationMonitor();
    }

    private createIdentityPool() {
        return new CfnIdentityPool(this, "RumAppIdentityPool", {
            allowUnauthenticatedIdentities: true,
        });
    }

    private createRumRole() {
        // See https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-get-started-authorization.html
        return new Role(this, "UnauthenticatedRumRole", {
            assumedBy: new FederatedPrincipal(
                "cognito-identity.amazonaws.com",
                {
                    StringEquals: {
                        "cognito-identity.amazonaws.com:aud": this.identityPool.ref,
                    },
                    "ForAnyValue:StringLike": {
                        "cognito-identity.amazonaws.com:amr": "unauthenticated",
                    },
                },
                "sts:AssumeRoleWithWebIdentity",
            ),
            inlinePolicies: {
                RUMPutBatchMetrics: new PolicyDocument({
                    statements: [
                        new PolicyStatement({
                            actions: ["rum:PutRumEvents"],
                            resources: [
                                Stack.of(this).formatArn({
                                    service: "rum",
                                    resource: "appmonitor",
                                    resourceName: this.appMonitorName,
                                }),
                            ],
                        }),
                    ],
                }),
            },
        });
    }

    private createRoleAttachment() {
        new CfnIdentityPoolRoleAttachment(this, "RumAppRoleAttachment", {
            identityPoolId: this.identityPool.ref,
            roles: {
                unauthenticated: this.unauthenticatedRumRole.roleArn,
            },
        });
    }

    private createApplicationMonitor() {
        return new CfnAppMonitor(this, "RumAppMonitor", {
            name: this.appMonitorName,
            domain: this.topLevelDomain,
            appMonitorConfiguration: {
                allowCookies: true,
                enableXRay: false,
                sessionSampleRate: 1,
                telemetries: ["errors", "performance", "http"],
                identityPoolId: this.identityPool.ref,
                guestRoleArn: this.unauthenticatedRumRole.roleArn,
            },
        });
    }
}

This should be fixed. There was an issue with the service CloudFormation resource.

Thank you! After deleting the CloudFormation stack and any stale resources (i.e. RUM app) I successfully deployed the app. That was an incredibly fast fix :)


TEST - Catch

EE-2075

GitHub Comment

Test Comment
[author: Michael Clarke, created at: 2021-11-23T13:58:57.980+1300]
[created from EE-2075, comment 15210]

Test Image

[author: Michael Clarke, created at: 2021-11-23T13:59:14.153+1300]
[created from EE-2075, comment 15211]

Comment
[author: Michael Clarke, created at: 2021-11-23T14:05:40.855+1300]
[created from EE-2075, comment 15212]

Jira Comment
[author: Michael Clarke, created at: 2021-11-24T08:53:45.886+1300]
[created from EE-2075, comment 15246]


Fix pull merge 500 error caused by git-fetch breaking behaviors

Fixes #8133
The git version before 1.8.4 would not update remote refs automatically.
That causes the following git-diff-tree command to get 'bad revision' errors.
Use refspec for git-fetch explicitly to avoid the problem.

Why is this kind/enhancement?

@guillep2k This PR lets gitea support older git version, I don't think it's a bug since a git >= 1.9 should work.

@guillep2k This PR lets gitea support older git version, I don't think it's a bug since a git >= 1.9 should work.

Fair enough. But then what is the minimum supported git version?

It seems it's
	// GitVersionRequired is the minimum Git version required
	GitVersionRequired = "1.7.2"

OK. Let's label it as a bug.

@typeless Could you give the link about the fetch command syntax on older git?

@lunny I've found this:

"git fetch origin master" unlike "git fetch origin" or "git fetch"
did not update "refs/remotes/origin/master"; this was an early
design decision to keep the update of remote tracking branches
predictable, but in practice it turns out that people find it more
convenient to opportunistically update them whenever we have a
chance, and we have been updating them when we run "git push" which
already breaks the original "predictability" anyway.

From: https://github.com/git/git/blob/master/Documentation/RelNotes/1.8.4.txt
I'm not sure if this is what @typeless is talking about.

@lunny @guillep2k Yes, that is it. https://github.com/git/git/blob/master/Documentation/RelNotes/1.8.4.txt#L226-L232


Behave in docker introduced

Based on:

https://eshlox.net/2016/11/22/dockerize-behave-selenium-tests/
https://sourabhbajaj.com/blog/2017/02/07/gui-applications-docker-mac/

Are we getting this merged, or does it need more work?

@adamgajzlerowicz it needs a little bit more work. I put [WIP] at the beginning of title here.

Not applicable at the moment.


Updated Visibility Calculation

I re-orginized the visibility calculation.
I found a condition if Air Temp and Dew Point are within a degree then the result is negative.  I originally oversimplified the formula not to take into account the minimum visibility will always be 0.25 miles at sea level; that bit me when there is a small difference between the two.
I also did not previously take into account negative temperature (i.e. <0C)
Also, also did not take into account stations that could be below sea level.  Set a minimum of 2 meters to prevent issues.
Added an absolute function call which should work without any other includes.
So, this will either be better or much worse.  Only time will tell.

need to fix elevation forgot to change a varable


chore: upgrade electron

Summary
Update packages that have high severity vulnerabilities.
...
Changelog
- Update electron to 19.0.16
- Update electron-builder to 23.5.1
- Fix shell-qoute subdependency to 1.7.3 to mitigate vulnerability

Relevant Issues
closes: https://github.com/iotaledger/firefly/issues/4525
...
Testing
Try also compiling the app locally, since electron-builder also changed.
Platforms

Please select any platforms where your changes have been tested.

Desktop

[ ] MacOS
[ ] Linux
[ ] Windows

Mobile

[ ] iOS
[ ] Android

Instructions

Please describe the specific instructions, configurations, and/or test cases necessary to test and verify that your changes work as intended.

...
Checklist

Please tick all of the following boxes that are relevant to your changes.

[ ] I have followed the contribution guidelines for this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have added or modified tests that prove my changes work as intended
[ ] I have verified that new and existing unit tests pass locally with my changes
[ ] I have verified that my latest changes pass CI workflows for testing and linting
[ ] I have made corresponding changes to the documentation

Compile and installs without issue on Windows 10! 💪🏻


Use relative url for overlay image

So it can be correctly resolved when importing vegas.css by other processor (e.g. snowpack)

Thanks!

Thanks!


Can we delete the google docs describing the chart format

Can we delete the google docs https://docs.google.com/document/d/15gZgpxApRYjCFqbE95DITqAcrOW8bEEbPcXnTcRNzgY/edit
The reference for the chart should be the json schema in this repository right?

OK the document was deleted


[python-package] deprecate support for H2O 'datatable'

Contributes to #6662
Deprecates support for H2O's datatable in the Python package. See the linked issue for details.

Please add (deprecated) mark here as well.

done, thanks for catching that one


Update huggingface_tools.ipynb

Typo in notebook, 'uprade' -> 'upgrade'
Typo in HuggingFace_tools documentation

Fixes # (issue)
Before submitting

Who can review?
Community members can review the PR once tests pass. Tag maintainers/contributors who might be interested:

thanks @anamhira47!


ImportError: librt.so.1: No such file or directory

Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template
System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): RHEL6
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: N/A
TensorFlow installed from (source or binary): pip install tensorflow
TensorFlow version: 1.13.1
Python version: 3.7.2
Installed using virtualenv? pip? conda?: pip
Bazel version (if compiling from source): N/A
GCC/Compiler version (if compiling from source): N/A
CUDA/cuDNN version: N/A
GPU model and memory: 16GB RAM

Describe the problem

If I run python with $ python3, then import tensorflow, I get an ImporError: librt.so.1: cannot open shared object file: No such file or directory
If I run python with $ LD_LIBRARY_PATH=/home/kmonisit/.linuxbrew/lib:$LD_LIBRARY_PATH python3, then import tensorflow, it succeeds.
I will be using tensorflow from within C code, i.e. C code calls Python code calls tensorflow. I want to find a way where I can use tensorflow without having to specify LD_LIBRARY_PATH.

Provide the exact sequence of commands / steps that you executed before running into the problem
$ brew install binutils linux-headers
$ brew install glibc --force-bottle
$ brew install gcc --force-bottle
$ brew install python3
$ pip3 install tensorflow

Now I have glibc in $HOME/.linuxbrew/lib. Next step is:
$ python3
>>> import tensorflow

Traceback (most recent call last):
  File "/home/kmonisit/.linuxbrew/Cellar/python/3.7.2_2/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "/home/kmonisit/.linuxbrew/Cellar/python/3.7.2_2/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "/home/kmonisit/.linuxbrew/Cellar/python/3.7.2_2/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
  File "/home/kmonisit/.linuxbrew/Cellar/python/3.7.2_2/lib/python3.7/imp.py", line 242, in load_module
    return load_dynamic(name, filename, file)
  File "/home/kmonisit/.linuxbrew/Cellar/python/3.7.2_2/lib/python3.7/imp.py", line 342, in load_dynamic
    return _load(spec)
ImportError: librt.so.1: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/kmonisit/.linuxbrew/Cellar/python/3.7.2_2/lib/python3.7/site-packages/tensorflow/__init__.py", line 24, in <module>
    from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
  File "/home/kmonisit/.linuxbrew/Cellar/python/3.7.2_2/lib/python3.7/site-packages/tensorflow/python/__init__.py", line 49, in <module>
    from tensorflow.python import pywrap_tensorflow
  File "/home/kmonisit/.linuxbrew/Cellar/python/3.7.2_2/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 74, in <module>
    raise ImportError(msg)
ImportError: Traceback (most recent call last):
  File "/home/kmonisit/.linuxbrew/Cellar/python/3.7.2_2/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "/home/kmonisit/.linuxbrew/Cellar/python/3.7.2_2/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "/home/kmonisit/.linuxbrew/Cellar/python/3.7.2_2/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
  File "/home/kmonisit/.linuxbrew/Cellar/python/3.7.2_2/lib/python3.7/imp.py", line 242, in load_module
    return load_dynamic(name, filename, file)
  File "/home/kmonisit/.linuxbrew/Cellar/python/3.7.2_2/lib/python3.7/imp.py", line 342, in load_dynamic
    return _load(spec)
ImportError: librt.so.1: cannot open shared object file: No such file or directory

Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/errors

for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.

Successful case
If I do:
$ LD_LIBRARY_PATH=/home/kmonisit/.linuxbrew/lib:$LD_LIBRARY_PATH python3
>>> import tensorflow
>>> # import success!

Any other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
Full traceback already included above.

Can you please let me know the output of following:
$ LD_LIBRARY_PATH=/home/kmonisit/.linuxbrew/lib:$LD_LIBRARY_PATH python3 -V

$ LD_LIBRARY_PATH=/home/kmonisit/.linuxbrew/lib:$LD_LIBRARY_PATH python3 -V
Python 3.7.2

Just came back to the office and the compilation I did last night completed successfully. To compile Tensorflow, here's what I did:
# LD_LIBRARY_PATH should be clean (does not have $HOME/.linuxbrew/lib)
# Download and compile bazel

$ cd ~
$ mkdir build-bazel
$ cd build-bazel
$ wget https://github.com/bazelbuild/bazel/releases/download/0.20.0/bazel-0.20.0-dist.zip
$ unzip bazel-0.20.0-dist.zip
$ env EXTRA_BAZEL_ARGS="--host_javabase=@local_jdk//:jdk" bash ./compile.sh

# At this point I now have bazel without jdk. That's sufficient to compile Tensorflow

# Let's get started with Tensorflow
$ cd ~
$ mkdir build-tensorflow
$ cd build-tensorflow
$ wget https://codeload.github.com/tensorflow/tensorflow/zip/v1.13.1 -O tensorflow-1.13.1.zip
$ unzip tensorflow-1.13.1.zip
$ cd tensorflow-1.13.1
$ ./configure
$ PATH=$HOME/build-bazel/output:$PATH bazel build --config=monolithic //tensorflow/tools/pip_package:build_pip_package

# Compilation will take a long time. I did this overnight.

$ ./bazel-bin/tensorflow/tools/pip_package/build_pip_package $HOME/tmp/tensorflow_pkg
$ cd $HOME/tmp/tensorflow_pkg
$ pip3 install tensorflow-1.13.1-cp37-cp37m-linux_x86_64.whl
$ python3
>>> import tensorflow
>>> :)

Thanks for sharing the installation steps. I will close this issue now since its resolved. Thanks!


Remove driver.ResultNoRows in internal/xsql

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en
Pull request type
Please check the type of change your PR introduces:

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, renaming)
[x] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Documentation content changes
[ ] Other (please describe):

What is the current behavior?
Issue Number: #630
What is the new behavior?
Other information

Codecov Report
Patch coverage has no change and project coverage change: -19.16 :warning:

Comparison is base (23ef9d6) 63.76% compared to head (69bb963) 44.60%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@             Coverage Diff             @@
##           master     #631       +/-   ##
===========================================
- Coverage   63.76%   44.60%   -19.16%
===========================================
  Files         226      152       -74
  Lines       21781    15611     -6170
===========================================
- Hits        13888     6964     -6924
- Misses       7167     8327     +1160
+ Partials      726      320      -406

Flag
Coverage Δ

1.16.x
44.28% <0.00%> (-19.06%)
:arrow_down:

1.19.x
44.67% <0.00%> (-18.76%)
:arrow_down:

1.20.x
44.66% <0.00%> (-18.84%)
:arrow_down:

insecure
?

integration
?

macOS-latest
44.60% <0.00%> (-0.01%)
:arrow_down:

secure
?

ubuntu-latest
44.60% <0.00%> (-19.12%)
:arrow_down:

unit
44.60% <0.00%> (-0.13%)
:arrow_down:

windows-latest
?

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

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

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


Uncaught ReferenceError: exports is not defined

I'm able to load server side html as well as get the styles using getStyleTags().
However, getScriptTags() is returning a bunch of "Uncaught ReferenceError: exports is not defined" errors on browser console.
I've searched as well as tried to fix, but nothing sticks so far.
Any insight appreciated, thank you.
This is my webpack config:

I ran into this and it was a nightmare to debug. For me setting sourceType: 'unambiguous' in my babel configuration worked.
https://babeljs.io/docs/en/options#sourcetype


Explicitly call wandb as a python module.

This change allows wandb to be called on systems that do not automatically add python modules to $PATH

merged, thanks


[Bug] Fix Date-Time Parsing in Token Expiration Calculation for Multiple Formats

Core Library
MSAL.js (@azure/msal-node)
Core Library Version
latest
Public or Confidential Client?
Confidential
Description
The method responsible for calculating token expiration (expires_on) in MSAL (Managed Identity) is not handling various date-time formats correctly. This leads to errors or incorrect results when processing expiration times in different formats provided by the Managed Identity service.
more info : https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/issues/4963
Error Message
No response
MSAL Logs
No response
Network Trace (Preferrably Fiddler)

[ ] Sent
[ ] Pending

MSAL Configuration
Added parsing logic for Unix timestamps, ISO 8601

Relevant Code Snippets
Added parsing logic for Unix timestamps, ISO 8601

Reproduction Steps
Added parsing logic for Unix timestamps, ISO 8601
Expected Behavior
Added parsing logic for Unix timestamps, ISO 8601
Identity Provider
Entra ID (formerly Azure AD) / MSA
Browsers Affected (Select all that apply)
None (Server)
Regression
No response

Right now, expiresOn is received from the MI as a Unix Timestamp number. I can add functionality to check if expiresOn is a string, and if it is, that means it's in ISO 8601 format and it'll be converted to a Unix timestamp.
@gladjohn Before I add this functionality, I need your assurance that if expiresOn is not received as a unix timestamp number, then it'll be received as a string ISO 8601. It'll be either/or, and will never be a string Unix Timestamp. Can you confirm this?

Right now, expiresOn is received from the MI as a Unix Timestamp number. I can add functionality to check if expiresOn is a string, and if it is, that means it's in ISO 8601 format and it'll be converted to a Unix timestamp.
@gladjohn Before I add this functionality, I need your assurance that if expiresOn is not received as a unix timestamp number, then it'll be received as a string ISO 8601. It'll be either/or, and will never be a string Unix Timestamp. Can you confirm this?

take a look the fix here : https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/blob/ac1cb0522a011e0a6e0802a2535bf03cfd8d9fab/src/client/Microsoft.Identity.Client/Utils/DateTimeHelpers.cs#L77


Feature Request: don't show decorations on files with conflict markers

I just started using this awesome extension. Thanks a ton for the functionality.
One suggestion I found while rebasing recently is that error lens is shown on files that have git conflict markers. These are files that are almost always syntactically/semantically invalid, and they have errors. I found it really hard to see the conflicts and resolving them, while my entire file/window is colored in red because of errors. And while some languages/LSPs are smart and don't try to parse/validate files with conflict markers, most of them don't. In order to unblock myself, I have to disable the codelens extension during rebase, and then enable it afterwards.
Is it possible to read the contents of the file before adding the VSCode decorations, and not do that if there are conflict markers?
<<<<<<< HEAD
foo
=======
bar
>>>>>>> cb1abc6bd98cfc84317f8aa95a7662815417802d

"errorLens.enabledInMergeConflict": false,

Thank you!