How to interpolate {build.number} to actual build number?

Hey!
When using this, {build.number} is not interpolated/replaced, resulting in something like this: 0.4.2.{build.number}
First I run a npm script with node ./node_modules/teamcity-build-number-cli/src/cli, then a powershell build step which looks like this
$buildNumber = "%build.number%"

Write-Host "setting env.APP_VERSION to $buildNumber"
Write-Host "##teamcity[setParameter name='env.APP_VERSION' value='$buildNumber']"

I'm no powershell and/or teamcity expert, so a nudge in the right direction would be nice :)

Hi
I have set the "Build number format" in the teamcity build configuration settings to %build.counter%, which I believe is the default.
When teamcity starts building, the internal build number (%build.counter%) displays first, but when the cli eventuelly gets called the build number in TeamCity changes to {package.version}.%build.counter%.
Example:

%build.counter% is 5
package.json is version 1.2.3
Teamcity starts building, shows it is building #5
The cli outputs ##teamcity[buildNumber '1.2.3.{build.number}']
Teamcity parses the command and replaces {build.number} with %build.counter%
Teamcity changes the number of the build to #<IP_ADDRESS>

I hope this helps, and I will update the readme. Sorry for taking so long to respond, but you are the first to create an issue in my personal repositories. :) Thanks.

Updated the readme. I might have explained things better there. Thanks for your feedback, closing the issue.

Sorry, I wasn't clear enough, the part with TeamCity actually works great.

The problem is, I want to use the same build number (<IP_ADDRESS>) in my app as well. Maybe this is out of scope of this script, but I was hoping that
$buildNumber = "%build.number%"

Write-Host "setting env.APP_VERSION to $buildNumber"
Write-Host "##teamcity[setParameter name='env.APP_VERSION' value='$buildNumber']"

would set the env parameter APP_VERSION to <IP_ADDRESS>, but instead it is set to 1.0.2.{build.number}, probably because TeamCity doesn't interpolate it.

@jonespen Haven't tried this. But maybe it is already set in env as BUILD_NUMBER after the cli has run?
https://confluence.jetbrains.com/display/TCD9/Predefined+Build+Parameters

@jonespen I got curious and tried to solve the problem.
The solution is here:
# teamcity-build-script.ps1

npm install --save-dev teamcity-build-number-cli

# finding the buildIterator
$buildIterator = $env:build_number
write-host "`$env:build_number is '$buildIterator'"

# run the cli and store the output
$cliOutput = ./node_modules/.bin/teamcity-build-number.cmd | out-string

# output the cli's output to teamcity
write-host $cliOutput

$stringFromCliOutput = [regex]::match($cliOutput, "(\d\.\d\.\d\.{build.number})").Groups[1].Value
$wantedResult = ($stringFromCliOutput -replace "{build.number}", $buildIterator)
write-host "What you want is '$wantedResult'."

write-host "##teamcity[setParameter name='env.APP_VERSION' value='$wantedResult']"


CreateAssets(): Got memory pressure notification (critical)

Hi,
I try to upload 400 Pictures to the camera roll and after 5 seconds i got the following errors and the app crashed:
RNPhotosFramework.createAssets({
                images : images,
                album : album,
                includeMetadata : false
            }).then((res) => {
                console.log('done');
            }).catch((err) => {
                console.log(error);
            });

[812:43385] Error: Timeout waiting for response from assetsd in -[PHChangeRequestHelper _generateUUIDIfNecessary:]
[812:43385] [PhotoKit] Timeout waiting for response from assetsd in -[PHChangeRequestHelper _generateUUIDIfNecessary:] (retries 3)
[812:43001] Got memory pressure notification (critical)
Message from debugger: Terminated due to memory issue

The pics are very big and the first 5 pics are uploaded to the camera roll.
Is there anything i can do to avoid that or improve the memory?
Many thanks!

Have you tried uploading the pictures in batches? If you have 400 images, you can try uploading them in batches of 50 for example, maybe that could help with the memory pressure.


Updates

This is a PR to do some housekeeping and get a few PRs merged by adding tests for them and other various tweaks.
Currently includes #44 and #30, but will also deal with a few other PRs and Issues.

This is a major revision because it removes the rootElementClass in favor of defining the validity class selector.

@AmpersandJS/core-team This is ready for discussion now.  PR #42 is still being discussed too and doesn't affect anything in here from what I can see.

FYI the validity class binding is all wrong in this PR right now, working on another approach

@AmpersandJS/core-team +1 from me after applying those small patches

+1 here.

This will go out as 4.0.0


How to add a scroll bar in the left panel?

I have a lot of inputs and buttons in the left panel, and some of these fields in the bottom will not be shown in the page.  My question is:  how to add a scroll bar in the left panel?
Thanks!

it might be possible with css. see this issue: https://github.com/adamhajari/spyre/issues/85


UnhandledPromiseRejectionWarning

I use nodejs 13.11.0 with --module option enabled by default (package.json contains {'type': 'module'} and thus all .js files are handled as es6 module), rollup 2.1.0 and rollup-plugin-gzip 2.3.0.
The output is:
(node:18047) UnhandledPromiseRejectionWarning: [rollup-plugin-gzip] Error compressing additional file dest/minified.css
(node:18047) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection,
 use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:18047) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

The .js file is compressed.
The css file, produced by the same input file, coming from rollup-plugin-css-porter is generated, but not compressed.

Have you tried setting the additionalFilesDelay option to a higher number?
When your CSS file is generated by a different plugin, we cannot determine when the other plugin is finished, so we assume a default delay of 2 seconds. If your CSS file takes longer to generate, it might not be there yet by the time this plugin tries to compress it.
If that doesn't help, could you try and create a minimal reproduction for your problem?

I was wrong, as I misspelled the filenames in additionalFiles vs. the file created by rollup-plugin-css-porter.  Aligning the filenames helped.
Isn't the additionalFIlesDelay solved now by https://github.com/rollup/rollup/issues/2305 so that its default can be set to 0ms?

@dilyanpalauzov glad you could solve your problem!
You might be right - rollup 2.0.0 removed the old APIs that made this hack necessary.
There is still the possibility that a plugin just writes to the file system directly, so I won't remove the additionalFilesDelay, but disabling it by default sounds like a good idea. I created https://github.com/kryops/rollup-plugin-gzip/issues/9 for that.


[BUG] : The text is not properly highlighted in Read a Shlok section

Description
The Text in Read a Shlok section is not properly highlighted.
Reproduction Steps
Steps to reproduce the behavior:

Go to the website
Click on Read a Shlok
See error

Expected result:
This must be the Expected outcome

Actual result:
This is what we see now,

Additional Information
Device (please complete the following information):

OS: Windows
Browser: Chrome

Additional context:
Hello @akshitagupta15june
Please assign me this issue under GSSOC'24.
Thank You

Please assign this issue to me. I am a Technical Executive at the IEEE CUIET Organization.
I would like to work on this issue. Providing you with the best results. I have already worked on projects like this and would like to contribute.

@akshitagupta15june Please assign me this issue under GSSOC24.


allow issuance of multiple cred at same revocation index

This PR proposes an option for the issuer to specify a cred_rev_id (index in revocation registry) when a credential is issued.This gives more control for an issuer to manage revocation registry, a few examples can be

Alice issues credentials with same cred_rev_id multiple times to Bob, who wants the same credential to be stored in multiple wallets, In this case Alice can revoke a credential of Bob by revoking a single index, this allows Alice to create a better controller logic for revocation registry
Alice issues credentials with same cred_rev_id to multiple Holders e.g. Coupons

@DaevMithran
Signed-off-by: Pritam Singh<EMAIL_ADDRESS>

@andrewwhitehead can you review this ?


Host bazel-lib

This issue follows the process at https://bazel-contrib.github.io/SIG-rules-authors/hosting-policy.html#adding-a-repo
As a consequence of https://github.com/orgs/bazelbuild/discussions/3,
Aspect would like to donate https://github.com/aspect-build/bazel-lib to the Linux Foundation under the bazel-contrib GH org.

Apache-2.0 license
Wide applicability: has 38 dependents on registry.bazel.build
Clear POC: @kormide and @fmeum with devrel help from @alexeagle
Production quality: is a 2.0 release, has several years of stability. Good documentation and testing.
Reply to issues/PRs in 2-3weeks: yes we will make this our goal
More than one person in CODEOWNERS
Follows semver carefully (as a low-level library it's consequential)
Tests with Bazel 6, 7, and rolling, will continue to support LTS
Published to https://registry.bazel.build/modules/aspect_bazel_lib

As part of the donation, we expect to move the repository to bazel-contrib/bazel-lib. This means that github-generated archives will remain stable, even as they redirect to existing releases. (The archive is sensitive to the repo name but not the org).
We also expect to rename the module from aspect_bazel_lib to bazel_lib to make it vendor-neutral. This poses a larger migration challenge. Users can be instructed how to use_repo, but we'll need to ensure that transitive deps work correctly. We also need to deal with toolchain_type symbols which are referenced by label.
Two changes may be considered by the maintainers following the move:

The aspect_bazel_lib module currently depends on bazel_skylib, as it was intended to augment the "Bazel standard library" rather than supplant it. Now that skylib is effectively "read-only" to the community, it may be desirable to port the remaining APIs from bazel_skylib so that it becomes a full replacement, and drop any dependency on bazel_skylib.
bazel-lib could also gain a "compatibility layer" such that users can keep load() statements which refer to @bazel_skylib but redirect the repository/module to bazel-lib, e.g with repo_name or --override_repository.

I wonder if contrib_bazel_lib would be a better name for the module, similar to contrib_rules_jvm.

This was approved at the Bazel Rules Author SIG meeting on 2024-08-20.

The transfer took place.


Devices parenthood is wrong in case of multiple hubs in the network

I have 2 hubs in the same network.
Each hub has 2 devices - door and TH sensors.
Everything was correct after adding the integration.
But after rebooting I see the following:
Hub#1:

Xiaomi Gateway 3 #1
Xiaomi Door Sensor #1
Xiaomi TH Sensor #1
The integration for all 3 devices is "Xiaomi Gateway 3, Xiaomi Gateway 3"

Hub#2:

Xiaomi Gateway 3 #2 (the integration "Xiaomi Gateway 3")
Xiaomi Door Sensor #2 (the integration "Xiaomi Gateway 3")
Xiaomi TH Sensor #2 (the integration "Xiaomi Gateway 3")
Xiaomi Gateway 3 #1 (the integration "Xiaomi Gateway 3, Xiaomi Gateway 3")
Xiaomi Door Sensor #1 (the integration "Xiaomi Gateway 3, Xiaomi Gateway 3")
Xiaomi TH Sensor #1 (the integration "Xiaomi Gateway 3, Xiaomi Gateway 3")

BTW, the state of Xiaomi Door Sensor #1 is unavailable now, but the battery level is available for this device.
The state of Xiaomi Door Sensor #2 is ok.

Waiting second gateway for test this case

Seems fixed in 0.2.0. Thanks


Idea: show level-up's in the XP Tracker

maybe add a green +1 next to the skill name when a level had been gained, with the correct number of levels of course.
For example (quick n dirty inspect element):


Channel information/add component

Description
-add channel-information component channelInformation.js to render info

add CSS file to customize the component
add story to storybook to test

Fixes # (issue)
How to test?
npm run storybook component name channel information
Checklist

[* ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] This PR is ready to be merged and not breaking any other functionality

I am sorry about pake-json file I tried to remve it but is not working


Update My-PR-Contribution-Practice.md

#ISSUE-NO
What does this PR do?
Description of Task to be completed?
How can this be manually tested?
Any background context you want to provide?
What is the relevant issue link?
Screenshots (if appropriate)
Questions:

I actually needed to correct some stuffs 😅
The arrangement was kind 'a odd.
But I already did it and merged it

Congratulations on your pull request🥳🎉.
Changes added .... Changes approved! 🚀
If you would love to join the community, please let me know!

Yeah sure! I want to join the community.

Okay, just follow the community Twitter handle. Tou would be directed on how to go about it.
Link https://twitter.com/ChryzHub


Remove server-core dependency from cf server starter

Since the s-c-d-deployer-cf already depends on s-c-d-server-core, we can remove it from the starter dependencies

For now, this makes sense. However, as soon as we are able to switch to the generic deployer SPI, the dependency relationship will look something like this:
spring-cloud-dataflow-server-cloudfoundry
  |__spring-cloud-starter-dataflow-server-cloudfoundry
         |__spring-cloud-dataflow-server-core
         |__spring-cloud-deployer-cloudfoundry

yeah, the caveat here is that the ApplicationModuleDeplolyer (which btw would change to ApplicationDeployer or something) requires AdminProperties that comes from the server-core and this is needed to set the --remoteRepositories values for module launcher.

Yep, in general I think all deployers will need that dependency

@ilayaperumalg all of that will change when we switch over to a generic deployer [0]... the properties for deployment, such as "repositories", will no longer be at the spring-cloud-dataflow-server-core layer.
[0] (prototype) https://github.com/markfisher/spring-cloud-deployer


The in-place operation on 'update' seems to affect the 'exp_avg'. Is this behavior expected?

When the parameter is a vector, the in-place operation of the variable update seems to affect the value of the variable exp_avg. Is this behavior expected?
In this code segment, when not factored, update is first assigned to exp_avg and then multiplied by lr, which results in exp_avg also being multiplied by lr.
if factored:
    exp_avg_res_row = state["exp_avg_res_row"]
    exp_avg_res_col = state["exp_avg_res_col"]

    exp_avg_res_row.mul_(group["betas"][2]).add_(
        res.mean(dim=-1), alpha=1.0 - group["betas"][2]
    )
    exp_avg_res_col.mul_(group["betas"][2]).add_(
        res.mean(dim=-2), alpha=1.0 - group["betas"][2]
    )

    # Approximation of exponential moving average of instability
    res_approx = self._approx_sq_grad(exp_avg_res_row, exp_avg_res_col)
    update = res_approx.mul_(exp_avg)
else:
    update = exp_avg
if group["weight_decay"] != 0:
    p.data.add_(
            p.data, alpha=-group["weight_decay"] * group["lr"]
        )

update.mul_(group["lr"])
p.data.add_(-update)

When use update = exp_avg.clone()， the rate of convergence is faster.
Here is a test on rosenbrock function:

Thanks for pointing it out! Yes, we fixed this error in the final implementation but uploaded an older version. Actually, we didn't find a significant difference between the two versions when training GPT models, but we still recommend using the modified version.

Hi @lzhqw, your rosenbrock function example is so clear! Would you please share the scripts to produce the results of the toy examples and to generate the gif files? Thanks!

Hi @lzhqw, your rosenbrock function example is so clear! Would you please share the scripts to produce the results of the toy examples and to generate the gif files? Thanks!

I referred to the video https://www.youtube.com/watch?v=zvp8K4iX2Cs
import numpy as np
import torch
from Came import CAME, CAME_Fix
import matplotlib.pyplot as plt

def f(xy):
    x, y = xy
    return (1 - x) ** 2 + 100 * (y - x ** 2) ** 2

def run_optimizer(xy_init, optimizer_class, n_iter, **optimizer_kwargs):
    xy_t = torch.tensor(xy_init, requires_grad=True)
    optimizer = optimizer_class([xy_t], **optimizer_kwargs)

    path = np.empty((n_iter + 1, 2))
    path[0, :] = xy_init
    for i in range(1, n_iter + 1):
        optimizer.zero_grad()
        loss = f(xy_t)
        loss.backward()
        optimizer.step()
        path[i, :] = xy_t.detach().numpy()
    return path

def create_trace(names, paths):
    x = np.linspace(-0.5, 2, 300)
    y = np.linspace(0.5, 3, 300)
    x, y = np.meshgrid(x, y)
    z = f([x, y])

    plt.figure(figsize=(8, 6))
    contour = plt.contour(x, y, z, colors='black')
    plt.clabel(contour, inline=True, fontsize=8)
    plt.imshow(z, extent=[-0.5, 2, 0.5, 3], origin='lower', cmap='RdBu_r', alpha=0.5)
    plt.colorbar()
    minimum = (1.0, 1.0)

    for i, path in enumerate(paths):
        plt.plot(path[::10, 0], path[::10, 1], label=names[i])
        plt.scatter(path[::10, 0], path[::10, 1])
    plt.plot(*minimum, "rD")
    plt.xlabel('x')
    plt.ylabel('y')
    plt.legend()
    plt.show()

xy_init = (0.0, 2.5)
path1 = run_optimizer(xy_init=xy_init,
                      optimizer_class=CAME,
                      n_iter=1500,
                      lr=0.1,
                      eps=(1e-30, 1e-16),
                      clip_threshold=1.0,
                      betas=(0.9, 0.999, 0.9999),
                      weight_decay=0.0,
                      )
path2 = run_optimizer(xy_init=xy_init,
                      optimizer_class=CAME_Fix,
                      n_iter=1500,
                      lr=0.1,
                      eps=(1e-30, 1e-16),
                      clip_threshold=1.0,
                      betas=(0.9, 0.999, 0.9999),
                      weight_decay=0.0,
                      )
create_trace(["Came", "Came_use_clone"], [path1, path2])

Hi @lzhqw, your rosenbrock function example is so clear! Would you please share the scripts to produce the results of the toy examples and to generate the gif files? Thanks!

I referred to the video https://www.youtube.com/watch?v=zvp8K4iX2Cs
import numpy as np
import torch
from Came import CAME, CAME_Fix
import matplotlib.pyplot as plt

def f(xy):
    x, y = xy
    return (1 - x) ** 2 + 100 * (y - x ** 2) ** 2

def run_optimizer(xy_init, optimizer_class, n_iter, **optimizer_kwargs):
    xy_t = torch.tensor(xy_init, requires_grad=True)
    optimizer = optimizer_class([xy_t], **optimizer_kwargs)

    path = np.empty((n_iter + 1, 2))
    path[0, :] = xy_init
    for i in range(1, n_iter + 1):
        optimizer.zero_grad()
        loss = f(xy_t)
        loss.backward()
        optimizer.step()
        path[i, :] = xy_t.detach().numpy()
    return path

def create_trace(names, paths):
    x = np.linspace(-0.5, 2, 300)
    y = np.linspace(0.5, 3, 300)
    x, y = np.meshgrid(x, y)
    z = f([x, y])

    plt.figure(figsize=(8, 6))
    contour = plt.contour(x, y, z, colors='black')
    plt.clabel(contour, inline=True, fontsize=8)
    plt.imshow(z, extent=[-0.5, 2, 0.5, 3], origin='lower', cmap='RdBu_r', alpha=0.5)
    plt.colorbar()
    minimum = (1.0, 1.0)

    for i, path in enumerate(paths):
        plt.plot(path[::10, 0], path[::10, 1], label=names[i])
        plt.scatter(path[::10, 0], path[::10, 1])
    plt.plot(*minimum, "rD")
    plt.xlabel('x')
    plt.ylabel('y')
    plt.legend()
    plt.show()

xy_init = (0.0, 2.5)
path1 = run_optimizer(xy_init=xy_init,
                      optimizer_class=CAME,
                      n_iter=1500,
                      lr=0.1,
                      eps=(1e-30, 1e-16),
                      clip_threshold=1.0,
                      betas=(0.9, 0.999, 0.9999),
                      weight_decay=0.0,
                      )
path2 = run_optimizer(xy_init=xy_init,
                      optimizer_class=CAME_Fix,
                      n_iter=1500,
                      lr=0.1,
                      eps=(1e-30, 1e-16),
                      clip_threshold=1.0,
                      betas=(0.9, 0.999, 0.9999),
                      weight_decay=0.0,
                      )
create_trace(["Came", "Came_use_clone"], [path1, path2])

Thank you very much for your reply, which is very helpful to me ！


Usage in client-only applications (e.g. single page javascript app)

It would be nice if you can describe if and how PowerAuth can be used in applications without server side (e.g. single page javascript application), which can hardly store any confidential informations.

Working on it... ;)
What I don't like about the straight forward approach is that I lose the "multi-factor" bonus I embedded in PowerAuth. Also, PowerAuth assumes having a persistent "activation" which is a bit of an issue (pure OAuth has the same one). It needs more work and bit of a cleverness;)...

@martin-dostal After doing some market research, I will close this issue. Let's discuss this in person some time soon, I will try to sum up the information bluntly and briefly here.
As it turns out, the approach I am taking with the banking API is probably the correct one. Based on the multiple company interviews, no-one really cares that much about the "read only" API features (like transaction overviews etc.) Most of the current companies for invoicing / PFM systems are quite happy with the current means, such as with processing the e-mails from the bank. Even some fresh and young startups are preferring this approach.
IMO Banking API must be secure enough to be able to process payments. This is the key and new feature it can introduce. As a result, it does not have to be that much "convenient" (unless you need students doing their school projects with banking data) or work in insecure environments such as JavaScript only apps.
Also, by interviewing real end users, they are really scared about providing their data to any third party, so I will have to improve the end-to-end encryption (by using the transport key to encrypt the communication from the bank to the client device, so that any intermediate system - including us - is unable to intercept sensitive data).


getbootstrap.com examples link goes to 404

At the bottom of main site (http://getbootstrap.com/) link examples go to 404 not found http://getbootstrap.com/examples/

Should be replaced with this link: http://getbootstrap.com/docs/4.0/examples/

This is corrected in latest version of beta. I think latest git repo is pending to push on live site.

Duplicate of #23555.


Option to mark grades as presentations uwu then display which performance is better

Basics

[x] Edit grade
[x] new grade
[x] option to disbvale this in settings
[x] sorting option for written type
[x] gradelist section titles wrong
[x] newgrade toast on darkmdoe wrong background color

Step 2: new screen

[ ] lk & gk zwei tabllen
[ ] icons mit farben für münd/scvhriftlich
[ ] schlechtere note grau

Design concept

closed for now :/


Migrating alerts/dashboards from monitoring v1 to v2

https://github.com/bashofmann/rancher-monitoring-v1-to-v2
The dashboards script will take all dashboards from a v1 Grafana, either from the cluster monitoring or from a project monitoring and create ConfigMaps that you can create in a cluster with v2 monitoring.
The alerts will take all user generated metrics based rules from the cluster alerting or from a project alerting and create PrometheusRules that you can create in a cluster with v2 monitoring.
Non metrics based rules are not migrated since all these cases are already covered already by the default rules shipping with v2.
Need to validate the scripts, migrate over to rancher and add it in docs and support KB.

Thank you @bashofmann for the awesome contribution! I tried using these scripts on an existing cluster and they work great. However, I had a couple of thoughts on the scripts.
Dashboards
Concerns
Cluster Dashboards
Question: Does it make sense to import dashboards that already have equivalents in V2 feature charts (e.g. default dashboards) or should we introduce a flag that requires a user to specifically turn it on to import those dashboards?

[x] Yes, because the user is introducing two sets of dashboards that encode the same information. The purpose of the script should only be to migrate user-added dashboards since we want users to switch to using Monitoring V2 / Feature V2 default dashboards. A user should be able to choose to import those dashboards via a flag, but the default should encourage them to use the new dashboards and, if any specific dashboards are missing, they should be encouraged to ask us to open an issue to introduce those dashboards to Monitoring V2 / Feature V2 instead.
[ ] No, because there is slightly different information / a slightly different layout encoded in Monitoring V1 dashboards that a user who is migrating would be more familiar with. We should let them keep those by default.

Project Dashboards
Question: Does it make sense to import the default dashboards that are also found on a cluster level?

[x] No, because all the default dashboards deployed for Projects are already found on a cluster level (see table below). The reason why this encoded different information in the past was because the Project Grafana pointed to a completely different Project Prometheus, which was collecting different data than the Cluster Prometheus (metrics only specific to the project it was in). However, in Monitoring V2, we only have one (Cluster) Prometheus, so these dashboards no longer serve any purpose on a project level.

Question: Does it make sense to pre-pend the project name in the title of the dashboard?

[x] No, because ConfigMap-based dashboards are supposed to be cluster-agnostic. We shouldn't introduce dashboards that rely on a specific project name since those won't be exportable to other cluster and don't fit into the Monitoring V2 expectation that there is just one (Cluster) Prometheus.

PR with proposed fixes
https://github.com/bashofmann/rancher-monitoring-v1-to-v2/pull/1
Context
The current script migrates the following default Dashboards for Monitoring:

Dashboard Name
Cluster or Project
Dashboard Exists in Monitoring V2?

StatefulSet
Cluster / Project
Yes, slightly modified with modified panels

Etcd
Cluster
Yes, slightly modified with different panels

Pods
Cluster / Project
Yes, slightly modified with different panels

Cluster
Cluster
Yes, but missing several panels

Kubernetes Components
Cluster
Yes, but missing panels like Nginx Ingress Request Rate

Nodes
Cluster
Yes but missing panels like Used Root FS

istio
Cluster
Yes, but this is introduced by Istio

Istio Citadel Dashboard
Cluster
Yes, but this is introduced by Istio

Istio Galley Dashboard
Cluster
Yes, but this is introduced by Istio

Istio Mesh Dashboard
Cluster
Yes, but this is introduced by Istio

Istio Mixer Dashboard
Cluster
Yes, but this is introduced by Istio

Istio Performance Dashboard
Cluster
Yes, but this is introduced by Istio

Istio Pilot Dashboard
Cluster
Yes, but this is introduced by Istio

Istio Service Dashboard
Cluster / Project
Yes, but this is introduced by Istio

Istio Workload Dashboard
Cluster / Project
Yes, but this is introduced by Istio

Rancher Components (FluentD)
Cluster
No, but should be introduced by Logging

DaemonSet
Cluster / Project
No

Deployment
Cluster / Project
No

Kubernetes Resource Requests
Cluster
No

These dashboards have rough equivalents in Monitoring V2, such as for StatefulSets as show in the screenshots below:

But there are certain panels that exist in V1 that don't exist in V2 such as:

Rules
Concerns
The current set of scripts only migrates the PrometheusRules, but ideally we should migrate the Alertmanager Config Secret stuff as well so that the user's entire Alerting configuration can be migrated over to Monitoring V2. This secret exists in the cattle-prometheus namespace in the system project and requires modifications.
Also, I think the script needs to be modified to just get all the PrometheusRules from your cluster (from all projects) rather than just the ones that you supply via command-line arguments since it should be one command that you run that generates the Alertmanager Config Secret for your entire cluster as well.
PR with proposed fixes
https://github.com/bashofmann/rancher-monitoring-v1-to-v2/pull/2

The validation for the migrating alerts part is done.

the namespace cattle-monitoring-system is included
the secret alertmanager-cluster-alerting is included
the receiver is included when

it is NOT webhook-config based
it is used by at least one PrometheusRule

the PrometheusRule is included when

it is created by the user
it has a receiver assigned
at least 1 of its rule uses metrics

the Rule is included when

it uses metris

The validation for the migrating dashboards part is done.
The following dashboards can be exported by the script:

the default dashboards on the cluster Grafana
the istio dashboards on the cluster Grafana
the user-created dashboards and folders on both the cluster Grafana and the project Grafana

The output yaml file can be applied into the cluster with Monitoring v2 enabled, and dashboards show up on the Grafana.

reopen the issue to wait for this PR to be merged: https://github.com/bashofmann/rancher-monitoring-v1-to-v2/pull/4

Validation is done.


[incubator/kafka] Fix some API versions for Kubernetes 1.16 compatibility

What this PR does / why we need it:
Kubernetes 1.16 has changed made a few API versions stable and deprecated the non-stable ones.
Which issue this PR fixes
./.
Special notes for your reviewer: ./.
Checklist

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/chart])

/assign @benjigoldberg

/ok-to-test

/lgtm


There is a compatibility problem with the web browser plugin

When you enter the embedded web page provided by the browser plugin and then enter the normal notes, the plugin completely loses its effect and the console displays the following error
👇
caught (in promise) DOMException: Failed to execute 'setStart' on 'Range': The offset<PHONE_NUMBER> is invalid.
at __moveCursor (plugin:ninja-cursor:100:21)
at async moveCursor (plugin:ninja-cursor:59:7)

Sorry for being late!
I did not reproduce this but it has probably been fixed at v0.0.13.
Could you please check the behaviour?

Yes, the bug disappeared after I updated the plugin, thanks a million,  I'm used to enabling this plugin, and this bug exclusion has greatly improved my experience


added travis.yml file

Closed as it was working okay. Do let me know if you need any other changes


fix ghcr login 404 again

I pulled the latest code and tested it locally, it seems doesn't work.
Enter Password:
DEBU[0000] Ignoring hosts dir "/etc/containerd/certs.d"  error="stat /etc/containerd/certs.d: no such file or directory"
DEBU[0000] Ignoring hosts dir "/etc/docker/certs.d"      error="stat /etc/docker/certs.d: no such file or directory"
DEBU[0000] len(regHosts)=1
/v2/
ERRO[0001] failed to call tryLoginWithRegHost            error="unexpected status code 404" i=0
FATA[0001] unexpected status code 404

Originally posted by @Junnplus in https://github.com/containerd/nerdctl/issues/715#issuecomment-1021943642
Fixes: https://github.com/containerd/nerdctl/issues/715
Thanks @dylanrhysscott

[N] ❯ nerdctl login ghcr.io -u junnplus --debug-full
Enter Password:
DEBU[0004] Ignoring hosts dir "/etc/containerd/certs.d"  error="stat /etc/containerd/certs.d: no such file or directory"
DEBU[0004] Ignoring hosts dir "/etc/docker/certs.d"      error="stat /etc/docker/certs.d: no such file or directory"
DEBU[0004] len(regHosts)=1
DEBU[0006] Ignoring hosts dir "/etc/containerd/certs.d"  error="stat /etc/containerd/certs.d: no such file or directory"
DEBU[0006] Ignoring hosts dir "/etc/docker/certs.d"      error="stat /etc/docker/certs.d: no such file or directory"
DEBU[0006] len(regHosts)=1
Login Succeeded

I test locally this PR is working.

Thanks for fixing this @Junnplus my bad put change in wrong place 🤦♂


Pagination is not responsive on mobile

We should just break the rows per page section and the arrow section into two lines. Also, if the user chooses to show pages, we need to change the max number of pages to something that will fit on their device.

Fixed in 0.1.0


User - topic filter - being able to explore possible topic of interest

As a user, I want the topic list to have filters and the ability to be ranked by heat, so that I can easily navigate and engage with topics of interest based on current trends and my preferences

Estimate: 8 Hours
Acceptance Criteria:

[x] Users are provides with options to filter topics based on categories, tags, etc.
[x] After the user chooses a filter, topics can be ranked by "hotness," a metric determined by engagement levels such as views, likes, comments, etc
[x] Changes in filters or ranking preferences are reflected immediately in the topic list, ensuring users get information in real-time.

commit 08277fa3f531fdbca1e0291f257b08ba56b64ba8


[SUGGESTION] Loading Bar for Updating

Is your feature request related to a problem? Please describe.
I don't know how much do I have to wait
Describe the solution you'd like
Loading bar and percentage (and maybe ETA)
Additional context

okay, so i don't think this is the downloading, but it was stuck on this and then it gave me an Error (I was downloading something else in the bg)


Decrease shader TIME rollover to 30 seconds on mobile platforms (3.x)

3.x version of https://github.com/godotengine/godot/pull/59990.
This avoids precision issues that became obvious when exporting a project to a mobile platform.
Shader animations will have to loop over 30 seconds to avoid visual discrepancies when TIME is reset back to 0.

I don't think we should merge this in 3.x. It will be a visually breaking change and will be confusing and non-intuitive for users.

I don't think we should merge this in 3.x. It will be a visually breaking change and will be confusing and non-intuitive for users.

On the other hand, a lot of shaders are broken on mobile right now because of this. The only case where this change would actually worsen things is for users who manually enabled high float precision in the project settings.

I noticed that Unity also has similar problems with time.
Imo though the only foolproof way to solve this mobile, say for water shaders, is for the client code to calculate a repeatable range (e.g a specific sin frequency) then e.g. send it as e.g. 0.0 to 1.0 in a custom uniform. Or multiple of these if there are multiple versions needed in a shader.
Sending time in a uniform and then doing these calculations in the shader seems like it will always introduce some kind of error on low precision hardware. Basically for low end mobile, TIME is probably best avoided I suspect.


Error importing Burp Scan results with API

When i'm trying to import burp scan results with API, I get the following error:
{"error": "[u'This field cannot be blank.']"}
I am using the API Docs in defect dojo to test run all the API calls.
My API call:
{   "minimum_severity": "Low",   "scan_date": "2017-10-15",   "verified": true,   "file":"path/to/burp/scan/result.xml",   "tags": null,   "active": true,   "engagement": "/api/v1/engagements/42/",   "scan_type": "Burp Scan" }

@devGregA , we have the null set to True in our local code base.

@s-rohil would it be possible to get a sample scan?

Should be fixed. Feel free to reopen if it isn't


Bump GitHub actions

This PR bumps the used version of actions/checkout to v3, which apparently may improve Windows CI times a bit: https://github.com/actions/checkout/releases/tag/v3.5.1

This also eliminates the GitHub actions warnings, compare, e.g.,
https://github.com/ocaml-multicore/multicoretests/actions/runs/5173787104 (before)
https://github.com/ocaml-multicore/multicoretests/actions/runs/5174264386 (after)

CI summary

1 Windows bytecode trunk timeout due to excessive Lin Out_channel test runtime
3 Cygwin timeouts

I'll go ahead and merge


Classify and cleanups

This comes from me trying to integrate it in OM, since it has its own segment manager, handles instantiation, etc.
The big changes are that any sort of segment access goes through protected methods (so supposedly you just subclass it and provide your own stuff), and loads the segments in a round-robin, so you can always look at the last state you saw from an ally. The rest is mostly style cleanups.
Better look at the individual commits. I can definitely slice and dice stuff if it feels not appropriate (I realize writing this that caching all that stuff makes it hard on the heap usage, for example).

I don't love this. Caching all the ally data is going to add a lot of heap. Have you done profiling on potential heap usage increases, coinciding gc and cpu costs? @tiennou


fibonacci-modified

Solution of the fibonacci-modified problem
Your checklist for this pull request
🚨Please review the guidelines for contributing to this repository.

[x] Make sure your files are in the right folder!
[x] Make sure you add the extension of the file (.cpp, .python, .java, etc).
[x] If your code is a solution for a code problem, please tell which one.
[x] Make sure your code is working, test for a lot of cases.

Description
Please describe your pull request.
:heart: Thank you!

hey i have modified  the file extension plz can you please review and approve it


Something wrong with dubbo-demo-annotation

[ ] I have searched the issues of this repository and believe that this is not a duplicate.
[ ] I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: latest master branch
Operating System version: xxx
Java version: 1.8

Steps to reproduce this issue

run org.apache.dubbo.demo.provider.Application
run org.apache.dubbo.demo.consumer.Application

Pls. provide [GitHub address] to reproduce this issue.
Expected Result
work fine
Actual Result
consumer side throws an exception
If there is an exception, please attach the exception trace:
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'demoServiceComponent': Injection of @org.apache.dubbo.config.annotation.Reference dependencies is failed; nested exception is java.lang.IllegalStateException: Failed to check the status of the service org.apache.dubbo.demo.DemoService. No provider available for the service org.apache.dubbo.demo.DemoService from the url multicast://<IP_ADDRESS>:1234/org.apache.dubbo.registry.RegistryService?anyhost=true&application=dubbo-demo-annotation-consumer&bean.name=ServiceBean:org.apache.dubbo.demo.DemoService&check=true&default.check=true&default.init=false&default.injvm=false&default.lazy=false&default.sticky=false&dubbo=2.0.2&generic=false&group=&init=false&injvm=false&interface=org.apache.dubbo.demo.DemoService&lazy=false&methods=sayHello&pid=20456&register.ip=<IP_ADDRESS>&remote.application=dubbo-demo-annotation-provider&remote.timestamp=1549878480376&side=consumer&sticky=false&timestamp=1551085801200 to the consumer <IP_ADDRESS> use dubbo version
	at org.apache.dubbo.config.spring.beans.factory.annotation.AnnotationInjectedBeanPostProcessor.postProcessPropertyValues(AnnotationInjectedBeanPostProcessor.java:133)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1268)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
	at org.springframework.context.annotation.AnnotationConfigApplicationContext.<init>(AnnotationConfigApplicationContext.java:84)
	at org.apache.dubbo.demo.consumer.Application.main(Application.java:36)
Caused by: java.lang.IllegalStateException: Failed to check the status of the service org.apache.dubbo.demo.DemoService. No provider available for the service org.apache.dubbo.demo.DemoService from the url multicast://<IP_ADDRESS>:1234/org.apache.dubbo.registry.RegistryService?anyhost=true&application=dubbo-demo-annotation-consumer&bean.name=ServiceBean:org.apache.dubbo.demo.DemoService&check=true&default.check=true&default.init=false&default.injvm=false&default.lazy=false&default.sticky=false&dubbo=2.0.2&generic=false&group=&init=false&injvm=false&interface=org.apache.dubbo.demo.DemoService&lazy=false&methods=sayHello&pid=20456&register.ip=<IP_ADDRESS>&remote.application=dubbo-demo-annotation-provider&remote.timestamp=1549878480376&side=consumer&sticky=false&timestamp=1551085801200 to the consumer <IP_ADDRESS> use dubbo version
	at org.apache.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:398)
	at org.apache.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:306)
	at org.apache.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:230)
	at org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor$ReferenceBeanInvocationHandler.init(ReferenceAnnotationBeanPostProcessor.java:162)
	at org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor$ReferenceBeanInvocationHandler.access$100(ReferenceAnnotationBeanPostProcessor.java:146)
	at org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.buildInvocationHandler(ReferenceAnnotationBeanPostProcessor.java:140)
	at org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.buildProxy(ReferenceAnnotationBeanPostProcessor.java:122)
	at org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.doGetInjectedBean(ReferenceAnnotationBeanPostProcessor.java:116)
	at org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.doGetInjectedBean(ReferenceAnnotationBeanPostProcessor.java:49)
	at org.apache.dubbo.config.spring.beans.factory.annotation.AnnotationInjectedBeanPostProcessor.getInjectedObject(AnnotationInjectedBeanPostProcessor.java:342)
	at org.apache.dubbo.config.spring.beans.factory.annotation.AnnotationInjectedBeanPostProcessor$AnnotatedFieldElement.inject(AnnotationInjectedBeanPostProcessor.java:522)
	at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
	at org.apache.dubbo.config.spring.beans.factory.annotation.AnnotationInjectedBeanPostProcessor.postProcessPropertyValues(AnnotationInjectedBeanPostProcessor.java:129)
	... 12 more

What system did you use? I have tried it, and everything is ok. Is it something wrong with your system ?

What system did you use? I have tried it, and everything is ok. Is it something wrong with your system ?

Win 10. provider and consumer run in the same machine. I debug this, seems same issue as #3401

Same system,same issue.

Same system,same issue.how to fix?

pls config unicast to true，like
<dubbo:application name="demo-consumer">
        <dubbo:parameter key="unicast" value="false" />
</dubbo:application>

or
<dubbo:consumer>
        <dubbo:parameter key="unicast" value="false" />
</dubbo:consumer>

When I run dubbo-demo/dubbo-demo-annotation, I run the provider and consumer on a single computer at the same time.
Using the protocol="multicast" as the registry, the same exception occurred: Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'demoServiceComponent': Injection of @Reference dependencies is failed; nested exception Is java.lang.IllegalStateException: Failed to check the status of the service org.apache.dubbo.demo.DemoService. No provider available for the service org.apache.dubbo.demo.DemoService from the url multicast://<IP_ADDRESS> :1234/org.apache.dubbo.registry.RegistryService?application=dubbo-demo-annotation-consumer&dubbo=2.0.2&interface=org.apache.dubbo.demo.DemoService&lazy=false&methods=sayHello&pid=4720&register.ip=<IP_ADDRESS>&side= Consumer&sticky=false&timestamp=1563670839437 to the consumer <IP_ADDRESS> use dubbo version . Then I added the parameter @Reference(parameters = {"unicast","false"}) to the interface introduced in the consumer project, and the project runs normally. The strange thing is that when I remove the parameters, I can't reproduce the exception again and still run normally.

When I run dubbo-demo/dubbo-demo-annotation, I run the provider and consumer on a single computer at the same time.
Using the protocol="multicast" as the registry, the same exception occurred: Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'demoServiceComponent': Injection of @reference dependencies is failed; nested exception Is java.lang.IllegalStateException: Failed to check the status of the service org.apache.dubbo.demo.DemoService. No provider available for the service org.apache.dubbo.demo.DemoService from the url multicast://<IP_ADDRESS> :1234/org.apache.dubbo.registry.RegistryService?application=dubbo-demo-annotation-consumer&dubbo=2.0.2&interface=org.apache.dubbo.demo.DemoService&lazy=false&methods=sayHello&pid=4720&register.ip=<IP_ADDRESS>&side= Consumer&sticky=false&timestamp=1563670839437 to the consumer <IP_ADDRESS> use dubbo version . Then I added the parameter @reference(parameters = {"unicast","false"}) to the interface introduced in the consumer project, and the project runs normally. The strange thing is that when I remove the parameters, I can't reproduce the exception again and still run normally.

pls check if the cache in dir /{user home}/.dubbo has an impact

When I run dubbo-demo/dubbo-demo-annotation, I run the provider and consumer on a single computer at the same time.
Using the protocol="multicast" as the registry, the same exception occurred: Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'demoServiceComponent': Injection of @reference dependencies is failed; nested exception Is java.lang.IllegalStateException: Failed to check the status of the service org.apache.dubbo.demo.DemoService. No provider available for the service org.apache.dubbo.demo.DemoService from the url multicast://<IP_ADDRESS> :1234/org.apache.dubbo.registry.RegistryService?application=dubbo-demo-annotation-consumer&dubbo=2.0.2&interface=org.apache.dubbo.demo.DemoService&lazy=false&methods=sayHello&pid=4720&register.ip=<IP_ADDRESS>&side= Consumer&sticky=false&timestamp=1563670839437 to the consumer <IP_ADDRESS> use dubbo version . Then I added the parameter @reference(parameters = {"unicast","false"}) to the interface introduced in the consumer project, and the project runs normally. The strange thing is that when I remove the parameters, I can't reproduce the exception again and still run normally.

pls check if the cache in dir /{user home}/.dubbo has an impact

Sure enough. Using @Reference(parameters = {"unicast","false"}) , the cache file dubbo-registry-dubbo-demo-annotation-consumer-<IP_ADDRESS> is generated under \user.dubbo. Removing the cache file exception reappears. Thank you

When I run dubbo-demo/dubbo-demo-annotation, I run the provider and consumer on a single computer at the same time.
Using the protocol="multicast" as the registry, the same exception occurred: Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'demoServiceComponent': Injection of @reference dependencies is failed; nested exception Is java.lang.IllegalStateException: Failed to check the status of the service org.apache.dubbo.demo.DemoService. No provider available for the service org.apache.dubbo.demo.DemoService from the url multicast://<IP_ADDRESS> :1234/org.apache.dubbo.registry.RegistryService?application=dubbo-demo-annotation-consumer&dubbo=2.0.2&interface=org.apache.dubbo.demo.DemoService&lazy=false&methods=sayHello&pid=4720&register.ip=<IP_ADDRESS>&side= Consumer&sticky=false&timestamp=1563670839437 to the consumer <IP_ADDRESS> use dubbo version . Then I added the parameter @reference(parameters = {"unicast","false"}) to the interface introduced in the consumer project, and the project runs normally. The strange thing is that when I remove the parameters, I can't reproduce the exception again and still run normally.

pls check if the cache in dir /{user home}/.dubbo has an impact

Sure enough. Using @Reference(parameters = {"unicast","false"}) , the cache file dubbo-registry-dubbo-demo-annotation-consumer-<IP_ADDRESS> is generated under  /{user home}/.dubbo. Removing the cache file exception reappears. Thank you

When I run dubbo-demo/dubbo-demo-annotation, I run the provider and consumer on a single computer at the same time.
Using the protocol="multicast" as the registry, the same exception occurred: Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'demoServiceComponent': Injection of @reference dependencies is failed; nested exception Is java.lang.IllegalStateException: Failed to check the status of the service org.apache.dubbo.demo.DemoService. No provider available for the service org.apache.dubbo.demo.DemoService from the url multicast://<IP_ADDRESS> :1234/org.apache.dubbo.registry.RegistryService?application=dubbo-demo-annotation-consumer&dubbo=2.0.2&interface=org.apache.dubbo.demo.DemoService&lazy=false&methods=sayHello&pid=4720&register.ip=<IP_ADDRESS>&side= Consumer&sticky=false&timestamp=1563670839437 to the consumer <IP_ADDRESS> use dubbo version . Then I added the parameter @reference(parameters = {"unicast","false"}) to the interface introduced in the consumer project, and the project runs normally. The strange thing is that when I remove the parameters, I can't reproduce the exception again and still run normally.

pls check if the cache in dir /{user home}/.dubbo has an impact

I have the same question with you.


Adding footer and sidebar for build repo wiki

Description
Move build system overview to top of the home page before detailed sections
It is logical to read the overview before go into each individual workflow.
Issues Resolved
https://github.com/opensearch-project/opensearch-build/issues/4489
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Example Wiki Home: https://github.com/peterzhuamazon/opensearch-build/wiki

Before:

After:


Skip a few hover tests if sourcekitd doesn’t return raw documentation in cursor info

The formatting of these hover responses contains a newline if we don’t have a raw documentation response. Skip these tests if sourcekitd doesn’t return the raw documentation in cursor info, like we do with other tests in this file.
This ensures that all tests are passing in Xcode 15.4 again.

@swift-ci Please test


Added phone-home feature

Hi guys,
This pull request adds a WebHook for handling phone-home POST request made by cloud-init.
Having those, you now can optionally wait for a slave to phone home, before attempting to connect via SSH.
This solves a lot of timing-related problems with VM provisioning.

Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests

could you please describe use-cases of that feature in details?
what erros/situations do you want to avoid?
how do you want to use these phones home?

The use-cases are pretty easy and obvious (at least to me and for those who know cloud-init). Here are some examples where normal approach of retrying a SSH-connection can fail:

Jenkins connects at a time when ssh is up and running but the keys or users to be used are not yet provisioned on the slave.
The "Use preinstalled JDK" flag is enabled and jenkins connects at a time where the JDK is not yet provisioned on the slave. It scp's the slave.jar, but starting it fails.

For example, In our environment, provisioning can take up to 15 minutes until everything is ready to use on the slave. This is where coud-init (our main provisioning tool - a de-facto standard, available  on many pre-configured cloud images) can help:
After provisioning is finished on the slave, cloud init can issue a POST request back to jenkins, signalling it that the slave is now ready to be used.
The pull request implements 2 parts:

A webHook (a special URL-path on jenkins) which is used as destination of the slave's phone-home POST. It listens for requests at https?://our-jenkins.url/jclouds-phonehome/ The implementation is based on code from kohsuke's github-plugin.

A boolean flag+timeout value configurable in the SlaveTemplate which - when enabled - block the initial SSH connection attempt until the above mentioned POST request has been received from the slave (or a timeout happens or a delete is requested).

The usual configuration is two-fold (e.g. with OpenStack):

Activate the checkbox "Wait for slave to phone home"
In user-data, among other things specify something like this:

#cloud-config
phone_home:
  url: http://your.jenkins.url/jclouds-phonehome/

ah, I see. two questions:

have you tested it on windows? if no, let's write smthg in help-message
is it a good idea to extend user-script automatically by checking new checkbox "Wait for slave to phone home"?

have you tested it on windows? if no, let's write smthg in help-message

No. Which part anyway? The jenkins-side part should work without any problems because it is just a url-path-interceptor. For the slave-side: cloudbase-init does not (yet) have a phone_home function but one could use curl or wget or write a plugin for cloudbase-init. If it's ready, I can write some tutorial and we can put a link to that into the help message.

is it a good idea to extend user-script automatically by checking new checkbox "Wait for slave to phone home"?

No. There are too many different ways to achieve this and I do not want to mess with the user-data. AFAIK, Some cloud providers do not even have user-data to begin with. Those would need to use init-scripts and curl or wget.

PS- I'm going to close this PR and create a PR against
https://github.com/mavlyutov/jclouds-plugin with both our merged code...
BUT: Your code is using  hudson.plugins.sshslaves.SSHLauncher the wrong way and thus breaks key-based authentication. (Tested here with Linux and OpenStack - using a pre-exising jenkins-user on the slave side). I have some ideas how this can be made to work. More via email...


Make build CI copy commit name

I don't think I see the point here.
Generated files might change from data from Roblox API dump, devhub scrapper repository, or from manual code changes in this repository. I think putting the latest commit author/message there might mask that?

Well yes, but at the same time, it's unfortunate to lose the actual change. For example, if I were to commit "Update error type to include object parameter", then the CI would just say "update generated files". Losing the commit message, making it harder to see things from an overview.

Maybe we should make it adaptive, depending on the trigger? State "Daily API dump update" if it was triggered by cron, state the commit message if triggered by a commit push?

To clarify, we might have a manual commit that triggers a build, but automated information could also update simultaneously if something has changed between scheduled automatic builds. This happens pretty frequently.

So, my point is that it's currently unknown what caused the CI build. With this PR, it will specify what initiated the action. You're right that automatic builds stating the last commit would be confusing, so I'm open to changing that. For example making it state "Daily generated files update" in that case.


Adding save for blood pressure and heart rate

Hello,
i would like to be able to save blood pressure and heart rate to Healthkit.
best regards
Horst

Maybe it would be possible to make a function like this:
window.plugins.healthkit.save(
{
'requestReadPermission':false,
'type'  : 'HKQuantityTypeIdentifierHeartRate',
'unit'  : 'count/min',
'amount': 60,
'date'  : new Date()
},
onSuccess,
onError
);
It is just a copy from your documentation for saveWeight, only extended with the "type" parameter.
best regards
Horst

We have used this code, buit this is not working for heart rate and blood pressure both.
Please suggest me, what function we can use for save heart rate and blood pressure details to aplle healthkit.


Can't reference output in 'existing' resources when importing types

Bicep version
Bicep CLI version 0.30.3
Powershell Az 12.3.0
Describe the bug
When using the import function to import user-defined types you can no longer use the output from a module to reference an existing resource, it will throw up an error:
Error: Code=InvalidTemplate; Message=Deployment template validation failed: 'The template resource '[reference('moduleTest').outputs.name.value]' at line '20' and column '23' is not valid: The template function 'reference' is not expected at this location. Please see https://aka.ms/arm-functions for usage details.. Please see https://aka.ms/arm-functions for usage details.'.
To Reproduce
Steps to reproduce the behavior:
Create the following files:
test.bicep
targetScope = 'subscription'

param name string

@export()
type testType = {
  param: string
}

resource RG 'Microsoft.Resources/resourceGroups@2024-03-01' = {
  name: name
  location: 'westeurope'
}

output name string = RG.name
output id string = RG.id

test2.bicep:
targetScope = 'subscription'

import { testType } from 'test.bicep'

param RGName string = 'test123'

module moduleTest 'test.bicep' = {
  name: RGName
  params: {
    name: RGName
  }
}

resource existingRG 'Microsoft.Resources/resourceGroups@2024-03-01' existing = {
  name: moduleTest.outputs.name
}

output existingRG string = existingRG.name

And run:
New-AzSubscriptionDeployment -templatefile BluePrism\test2.bicep -location westeurope

when commenting out the import line in test2.bicep deployment runs succesfully.
Additional context
We currently use this way of working to reference specific subnets in a vnet for which the user can specify the name of the subnet. This is blocking us from using the import function for our templates.

Duplicate of #10731


Searching for node by key

Add method to BST to search through the tree by key.

Closed. Solved in PR #27


Add Azure console access via script

Context
I've been using the Azure console to connect to out servers and while documenting it I decided to add a script that mostly helps with managing different connection details. As far as I'm aware this is not sensitive data.
Guidance to review

read the markdown documentation
try to run the script

Link to Trello card
https://trello.com/c/gGev4xlE/1170-console-access-on-our-azure-servers
Checklist

[x] Attach to Trello card
[x] Rebased main
[x] Cleaned commit history
[x] Tested by running locally

 Console access on our Azure servers


[Ubuntu 18.04] Duplicate system load info in motd

Hi, the default image of Ubuntu Bionic Beaver prints out duplicate system information in the message of the day when you login.
The system load and other statistics are printed both by 50-landscape-sysinfo (provided by the distribution) and by 50-scw provided by you.
I believe that one of the two should be removed (on my system I have removed 50-landscape-sysinfo as the information printed by your script is more complete).

@Ippo343 nice spot!
I'll have a fix for this soon, however it might be a few days before we have an updated image available.

Not a problem (not for me at least, since I made it custom).
I'd make a PR but in the repo I can only see the scripts added by you, I don't know how to remove a script provided by the distribution (or if it's a good idea at all).

@Ippo343 /etc/update-mod.d/50-landscape-sysinfo is provided by the landscape-common package, which is installed by default.
The "fix" is just to remove the symlink of /etc/update-mod.d/50-landscape-sysinfo so that the Ubuntu motd isn't printed on login. This is done in the Dockerfile for bionic.
I've submitted a branch for this: motd


Support for Material Design List Items

http://www.google.com/design/spec/components/lists.html#lists-specs
For list items whose content matches one of the conventional patterns in the spec, a convenient Widget that implemented the layout would be helpful.
Single-line, two-line, and three-line lists with optional avatars and icons.

We have ListItem, which is a start along these lines.

We have this in general.  If there are specific other things we need, we should file more bugs.


iOS build failed

There's an error with iOS build.
flutter_inappwebview-5.1.0+4/ios/Cl
    asses/InAppWebView/InAppWebView.swift:674:34: error: value of type 'WKPDFConfiguration' has no
    member 'rect'
                    pdfConfiguration.rect = CGRect(x: rect["x"]!, y: rect["y"]!, width:
                    rect["width"]!, height: rect["height"]!)

xcode Version 12.1

No idea where that WKPDFConfiguration comes from. Will need more info.

flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.1.0+4/ios/Classes/InAppWebView/InAppWebView.swift:674:34
This is where the issue I guess. I am not too sure either why this is happening.

Could you paste flutter doctor -v

flutter doctor -v
[✓] Flutter (Channel stable, 2.0.1, on Mac OS X 10.15.7 19H524 darwin-x64, locale en-IN)
    • Flutter version 2.0.1 at /Users/subkundu/flutter
    • Framework revision c5a4b4029c (3 weeks ago), 2021-03-04 09:47:48 -0800
    • Engine revision 40441def69
    • Dart version 2.12.0

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/subkundu/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • ANDROID_HOME = /Users/subkundu/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.1, Build version 12A7403
    • CocoaPods version 1.10.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.54.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.20.0

[✓] Connected device (1 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 89.0.4389.90

• No issues found!

Try flutter clean then try to rerun.
Try running https://github.com/jonatadashi/youtube_plyr_iframe/blob/develop/example/lib/main.dart
Could you also paste example code.
Whats the package version?
Is your project null safe?
What sdk are you targeting?
What device(s) are you testing on?

This is the repo to reproduce the issue.
https://github.com/subhendukundu/daku
I see the error while running flutter build ios --release;


Webpack and typescript guide

This PR relates to issue #196
This PR is based upon difficulties I experienced setting up a project with webpack 2 and typescript (mainly the non code imports).
Please note that english is not my native language so this may include grammar and various mistakes.

Merged. Feel free to PR more specific tweaks etc. Thanks. 👍


versionCode not increased

Could you please increase versionCode with each new release? It's still stuck on 1 which means "first release", and Android doesn't recognize newer ones as updates ("already installed"). Thanks!

Thanks for reporting! I'll do

Wow! That was fast, thanks!
PS: you might wish to take a look at this. Any idea what might have triggered that? I'd consider it a false positive, but not just being the usual "PUA" (Potentially Unwanted App) by some minor engine, it looks a bit scary…

Woah, a friend of mine got that too when he scanned the APK on VirusTotal. It is a false positive!

There is no malicious code. I think it's because I sign the APKs with a debug key. That might cause these false positive results to happen but I am not 100% sure

As I wrote, I too think it's a false positive. I was just wondering what might be causing it. I doubt it's the debug key (though a release APK would be very welcome by many): I've uploaded other debug-signed APKs and didn't have such results. I'm not an Android dev, but on a quick glance over your code I've no idea what could have triggered that (wild guess: the checksum of some file matches that of a bad one they have).
So just to be sure: I wasn't "putting blame", I just wanted to let you know. Thanks a lot!

Thank you for letting me know about these false positive results!

Feel free to report any problems related to the code or the app itself.

If I encounter any, I will. Thanks a lot so far!

@IzzySoft So I have signed an apk with my new keystore (SHA256withRSA) and Trustlook doesn't detect it as `Android.PUA.DebugKey now.
Here is the scan result!

Yay, great! So the next release will get its green shield, congrats!

Exactly! 😁

@IzzySoft Hello, sorry if I'm disturbing you but there's a problem with a new update. I scanned a signed apk file and got another false positive. I'm not quite sure what causes it.
Check this link.

Yes, I've seen the very same with several "clean builds" from F-Droid as well. If you do a web search for the name of the alleged malware component, you will find the only reports mentioning it come from Kaspersky. Note that their scanner is also part of the "VT park", but doesn't complain in the least. So I'm pretty sure this is a false positive.
Seems like VT always has (exactly?) one engine giving a lot of false positives. Currently, that seems to be MaxSecure. I wouldn't wonder if it will meet the same fate as those before: simply getting removed after a few weeks of such behavior…

Alright, thank you for responding! I'll sign the new update apk with my new keystore. I hope those false-positive cases will get solved by VT ASAP. Once again, thank you for your support!

Did you say new keystore? You're aware that a different key means a different signature, which means updates to existing installations will be refused (and users have to uninstall first)? If that's intended, make sure to point that out in the changelog.

Yeah, that's right! I don't know what to do better - to sign updates with default keystore (less signature problems) or sign updates with a new keystore (less VT detections). What would you recommend?

Are you saying using a different signature leads to different VT reports? That's very strange (but good to know); and if it's again the very same engine (MaxSecure), to me that means I'd rather ignore that engine (you can also add a note to the VT report pointing that out, and inform VT staff of this issue so they can take action).
I've no idea what "default keystore" means to you (as I haven't set up your environment). If from the security point of view both are "equally fine", you should decide for one and stick with it. Switching around with each update is deadly and will scare away your users (who might think they got a "hacked APK").

Yeah, when I sign the app with my usual keystore TrustLook on VT detects an APK as Android.PUA.DebugKey.
And yes, you're right. I think I'll stick with my "usual keystore". Thank you once again! 😁

Ah, now that is a detail I did not have. Using debug keys for production builds is not recommended indeed. So you might wish to switch once (to your production key), saying so in the release notes / changelog, and then stick with that. What I meant was not constantly switching; once for a good reason is fine (though a bit inconvenient for the users); if there's a way to backup/restore settings, that would be helpful (not only for that case).

Oh, I got it! So I am gonna use my release key for this and future releases. 🙂

Oh, and one more thing I wanted to ask. When I install my signed apk of Wi-Fi Info, Play Protect warns me about unknown app source and developer. But when I install my "usual" apk, everything is fine.
Is it ok to sign apps and distribute them if I don't have Developer License on Google Play Store?

Is it ok to sign apps and distribute apps if I don't have Developer License on Google Play Store

Of course it is! Had you asked whether it's OK to obtain a Google Developer License, the answer would be different ("depends" :rofl:) It's like with the "insecure sources" (aka "unknown sources" in English). Google knows only one source, and that's itself. And it wants to encourage that view. My devices do not even have any GApps on them, so the warning would be the other way around ("Warning: this app wants something with Google, are you sure?" :laughing:)

users will get this warning message whenever they install my app

If they have GApps installed and Play Protect enabled, possibly. Should you get such reports, just add a pointer to the app's description that this might happen and, no, you don't want that license from G as you don't plan to publish anything there. If I'd get such a "warning" I'd count that as a good sign :smile:

Hahah, I see. Thanks!


Build a Pyrsia binary for Raspberry Pi

At a minimum write down steps to do this on a Raspberry pi (with flags and config options) so that the user can build from source.

"Let’s try! ARM 64 should be fine if it’s self contained Rust binary and discovers the network. Each pi is identitcal and is on a read only file system. The temp directory is writable but not large. No worries if it doesn’t work. It would just be super cool!"

Tried the steps above to cross compile and ran into the gcc dependency issue:
  running: "arm-linux-gnueabihf-gcc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-march=armv7-a" "-mfpu=vfpv3-d16" "-I" "src/zlib" "-fvisibility=hidden" "-DZ_SOLO" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-o" "/Users/sudhindrar/pyrsia/pyrsia/target/armv7-unknown-linux-gnueabihf/release/build/libz-sys-d537ba389a23179c/out/lib/src/zlib/adler32.o" "-c" "src/zlib/adler32.c"

  --- stderr

  error occurred: Failed to find tool. Is `arm-linux-gnueabihf-gcc` installed?

and then openssl issue:
  run pkg_config fail: "pkg-config has not been configured to support cross-compilation.\n\nInstall a sysroot for the target platform and configure it via\nPKG_CONFIG_SYSROOT_DIR and PKG_CONFIG_PATH, or install a\ncross-compiling wrapper for pkg-config and set it via\nPKG_CONFIG environment variable."

  --- stderr
  thread 'main' panicked at '

  Could not find directory of OpenSSL installation, and this `-sys` crate cannot
  proceed without this knowledge. If OpenSSL is installed and this crate had
  trouble finding it,  you can set the `OPENSSL_DIR` environment variable for the
  compilation process.

  Make sure you also have the development packages of openssl installed.
  For example, `libssl-dev` on Ubuntu or `openssl-devel` on Fedora.

  If you're in a situation where you think the directory *should* be found
  automatically, please open a bug at https://github.com/sfackler/rust-openssl
  and include information about your system as well as this message.

  $HOST = x86_64-apple-darwin
  $TARGET = armv7-unknown-linux-gnueabihf
  openssl-sys = 0.9.75

  ', /Users/sudhindrar/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-sys-0.9.75/build/find_normal.rs:191:5
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

The chain of dependencies that don't work on Raspberry pi currently are
tokio
|__ native_tls
|__ openssl
Since we use tokio for async we might need to switch to an alternative to tokio for raspberry pi.

related - https://github.com/tokio-rs/tokio/issues/752

I built pyrsia node and pyrsia CLI against arch64 (ARM 64 linux), it's unknown if it's going to work on the PI hardware. @chrisbensen should have access to the binaries and will let us know if it works.

Marking this as done since we do not have any immediate plans to do more work. Will create a new issue when we start building for the raspi


Stale version numbers in leaflet-src*.js

Description
File leaflet.js  in downloaded .zip distro contains "1.7.1", but leaflet-src.esm.js and leaflet-src.js contain "1.6.0""
Steps to reproduce
Download and unpack .zip file, cd into unpacked directory. Then:
$ grep --only-matching -E '1[.][67][.].*' **' *
...
leaflet-src.esm.js:1.6.0+Detached: bd88f73e8ddb90eb945a28bc1de9eb07f7386118.bd88f73, a JS library for interactive maps. http://leafletjs.com
leaflet-src.esm.js:1.6.0";
leaflet-src.js:1.6.0+Detached: bd88f73e8ddb90eb945a28bc1de9eb07f7386118.bd88f73, a JS library for interactive maps. http://leafletjs.com
leaflet-src.js:1.6.0";
leaflet.js:1.7.1, a JS library for interactive maps. http://leafletjs.com
leaflet.js:1.7.1",t.Control=Xi,t.control=Yi,t.Browser=Bt,t.Evented=E,t.Mixin=ne,t.Util=C,t.Class=S,t.Handler=ie,t.extend=h,t.b
...

Verified (and first discovered) by loading from HTML with
  <script src="./lib/leaflet-src.js"> </script>
then typing into Firefox Debug Console:
>> L.version
"1.6.0"
Environment

Leaflet version: 1.7.1 -- http://cdn.leafletjs.com/leaflet/v1.7.1/leaflet.zip

Additional
Code contents of leaflet-src*.js however appear correct, as containing a post-1.6.0 change:
grep --only-matching -E --with-filename 'featureGroup.*' *-src*.js

Duplicate of #7258.


HTTPError after initialization

Question, Is anyone else getting these issue within the last few days? "After initialization - HttpError(Error getting smart home device state. Reason: Timeout)". Everything was working a few days ago and everything in debug mode looks fine.   The plugin sees all my device, but after it initialize I get this message and nothing is work out of my 26 devices I have setup.   When going into HomeKit and try to click on one of the devices, it appears to act like it turn the switch on or off in HomeKit, but when checking the logs in homebridge it does not do anything.   Any thoughts on what is going on?
Node.js Version	v20.12.1
v 2.1.4

Also just deleted the entire plugin and the same issue exists and adding each device one by one.   The first initial setup is giving the same error

Issue is with smart life products and Alexa.   Plugin is working fine.   Looks like smart life took an update about 5 days ago around April 1, 2024, that may have broke something.

Issue is with smart life products and Alexa. Plugin is working fine. Looks like smart life took an update about 5 days ago around April 1, 2024, that may have broke something.

[homebridge-alexa-smarthome] After initialization - HttpError(Error getting smart home device state. Reason: Timeout)
NOTE TO EVERYONE: depending on your smart plug, switches, or anything into smart life from amazon, there is a firmware issue with items in smart life.   Some of the devices have updates and others do not.  Ones with firmware updates will work fine after that.  Other will not as they are running into homebridge.   @joeyhage. The above error message is what I am getting with this.  Firmware updates just released on some of the plugs and switches worked and others did not.   So I am not for sure if there is some coding causing this or not.
@joeyhage
Device on with the older version number give the above error message.   This will cause all of the remaining devices to stop working.  So if you have 10 devices to setup, the first 9 are update with the firmware, then they will work.   You add a 10 device with older firmware, then all 10 will stop working since the 10 one has the older version number.   I am not for sure if smart life and any thing else that feeds into this is declouding or not.  Hope this makes since. At this point, I just replace the switches with direct integrated HomeKit plugs.   But still have a few things on smart life from the Alexa app.


error in output-reports config

using detekt 1.10 ( id("io.gitlab.arturbosch.detekt").version("1.10.0")), and including the config stanza:
output-reports:
  active: true
  exclude:
  #  - 'HtmlOutputReport'
  #  - 'TxtOutputReport'
  #  - 'XmlOutputReport'

I get the following error:
$ ./gradlew detekt

> Task :jobs:detekt FAILED
Property 'output-reports' is misspelled or does not exist.

FAILURE: Build failed with an exception.

Also, the documentation shows this configuration is available, but the default config file linked from the documentation does not have it.
Finally, running without this stanza commented yields empty xml reports:
$ cat lib/build/reports/detekt/detekt.html
...

Complexity Report

224 lines of code (loc)

169 source lines of code (sloc)

130 logical lines of code (lloc)

23 comment lines of code (cloc)

32 cyclomatic complexity (mcc)

9 cognitive complexity

0 number of total code smells

13% comment source ratio

246 mcc per 1,000 lloc

0 code smells per 1,000 lloc

$ cat lib/build/reports/detekt/detekt.xml
<?xml version="1.0" encoding="utf-8"?>
<checkstyle version="4.3">
</checkstyle

Originally posted by @sean-abbott in https://github.com/detekt/detekt/issues/2869#issuecomment-663664025

detekt.yml.gz


ST_Buffer function added

Is this PR related to a proposed Issue?

What changes were proposed in this PR?
added ST_Buffer function, little optimisation in ST_Intersection
How was this patch tested?
unit tests
Did this PR include necessary documentation updates?
yes

@Wrussia Thanks for your contribution!


Problem updating view data when using v-link

I am trying to link between components using v-link. When a link is clicked, the URL is updated, but the view data does not update unless the page is manually refreshed.
Some context for this example: a Tour has many Tour Objects, and Tour Objects need to link to previous/next Tour Objects.
Here's the route that represents a Tour Object:
'/tours/:tourId/objects/:objectId': {
    name: 'tourObject',
    component: tourObjectComponent
}

I didn't want to represent Tour Objects using a nested route (they're more of their own view), but maybe that's where I went wrong?
Here is a JsFiddle example

@elcontraption I guess maybe you component is reused. By default, vue-router will reuse current component unless you setup YouComponent.route.canReuse. See also: http://vuejs.github.io/vue-router/en/pipeline/can-reuse.html

@elcontraption using route.data may be an better option: http://vuejs.github.io/vue-router/en/pipeline/data.html

Thank you @zenozeng, I will look into both of those options.
Having just realized that there is a new Vue forum, I am closing this issue and have posted the topic there.


how to configure external-initiator port

The External Initiator will only run on port 8080, but if you are using Docker you can publish it to a different port: https://docs.docker.com/config/containers/container-networking/.
We have a story to make the port configurable without Docker too.
Does this resolve your issue?

The External Initiator will only run on port 8080, but if you are using Docker you can publish it to a different port: https://docs.docker.com/config/containers/container-networking/.
We have a story to make the port configurable without Docker too.
Does this resolve your issue?


Update MESSAGEix scheme defaults in the ixmp core

To merge the PRs from the MESSAGEix hackathon, a number of changes are required in the MESSAGE-scheme implementation on the Java side. This should also bump the version number of the MESSAGE scheme settings.

https://github.com/iiasa/message_ix/pull/80

add set shares
add parameter map_shares_commodity_level(shares,commodity,level,type_tec,type_tec)
add parameter share_factor_up(shares,node,year_all,time)
add parameter share_factor_lo(shares,node,year_all,time)

for better renewables implementation (PR forthcoming)

add elements 'unrated'  and 'firm' to the set rating

@zikolach could you please confirm that the above have been done—and if so, close, perhaps with links to the relevant PRs?

With no reply, and no related issues arising, I am closing this.
In the future, the MESSAGE scheme will be defined in message_ix; not in the Java code underlying ixmp's JDBCBackend. See #254.


Update Simplifile

The current version of simplifile is 2.2.0, but garnet locks it at < 2.0.0 :)

Updated. Thank you for letting me know!


 I upgraded to the latest JsBarcode and am using svg to my big delight. I can create and scan (with my phone) perfectly on my computer screen, but when i print out the barcode, somehow the lines become thicker. When I check the html, it clearly shows that as many pixels are used for the white space as the black space, but after printing, there seems to be less whitespace... :(

Hi, it seems like the problem lies in some sort of scaling with the printing. Could you try to get as good of a picture of the printed barcode as you could and post it here? And also provide the settings and data you are using for the barcode?

I added 3 pictures labelled '1', '2', and '7' (the number is within the pic). 1 was when still using "img". Picture is clear-ish, but text was rubbish. 2 was when using svg. Much better text, but lines became thicker. 7 was with BarWidth set to 2. More white space, but still not the correct ratio.
The printer is a Brother QL-570 label printer. I'm using chrome (as firefox crashed when trying to print... so could not really test on firefox). The printer settings are "Landscape", "1-1/7'' x 3-1/2''", no margins. The data used is "JsBarcode(imgID, barValue, {format:"EAN13", displayValue:true, fontSize:20, width:2, height:60});" with barValue a regular EAN13 number. In this case "0000000220736", "0000000220736" and "0000000004480".

The problem seems to be (as you said) that the printer makes the lines bigger. (Maybe printing correctly and the ink then flowing out?). The images that JsBarcode generates should be correct. What could be done is maybe if an option is added. This is unfortunatety not something I'm going to add but would gladly accept a Pull Request if you like to do it.
An ugly solution would be to do the change directly in this function
function drawLine(x, y, width, height, parent){
	var ratio = 0.8;

	var line = document.createElementNS(svgns, 'rect');

	line.setAttribute("x", x + (1 - ratio) * width / 2);
	line.setAttribute("y", y);
	line.setAttribute("width", width * ratio);
	line.setAttribute("height", height);

	parent.appendChild(line);
}

Try to change the ratio and see if it fixes the problem.

Or try to use this script. Use the options ratio and set it to something like 0.8.

 It scans pretty quickly on both the computer as on the printed version!
Thanks for your quick fix!

Nice that the issue was solved. May I ask what you are printing and how it's going to be used? Motivates me to know what people are using the library for :smile:

Actually I'm using someone else's library which is a wrapper on yours, but it has not been updated regularly, so I made my own changes, like updating to your latest version etc.
That library can be found here: https://share.servicenow.com/app.do#/detailV2/c869e5122b61f500bddaff70f8da1595/overview
You know how many companies have labels on their assets (eg: screens, laptops, etc)? Ours wants barcodes instead, as they are easier to work with. So we are basically using that library (and thus yours) to tag our assets ;) The plugin has been downloaded 141 times so far, so who knows where your code is being used atm.

Had no idea that it existed but always nice when it can be implemented in ways that will make more people using it.
Thanks for sharing your usecase :smile:

Thanks for the library, but unfortunately non of the fixes are working me. I am unable to scan the barcode in PC as well as printout.

@ravikant31 If you want any assistance you would have to create a new issue detailing how you generate the barcode and other information of why it does not generate correct barcodes.


[1.15.2] Applicator effects and activators

Hi,
i noticed some things with the new Applicator system,

Regeneration 3 is acting weird, the effect seems applied, but isn't working, but when you break the Space Ripper, the Applicator, or the Activator itself, you're regenerating.
NightVision is a bit glitchy, you see the sky slightly flashing, i thing that setting something like 15 seconds of effect should fix that, but i'm not sure. (it seems flashy when the counter resets.)
here's a vidéo where you can see what happens : https://youtu.be/jgk1S5_OhKI  (actually uploading)

Speed, Resistance and Jump Boost have no crafts, but other Activators have multiple crafts, idk if it's an error or intended.
and a less important issue, some localisation names are not défined, Jump Boost and Night Vision activators have that problem.
have a nice day.
The regeneration issue may have been because of the amplifier being set to three. I looked it up, and although there's supposedly support for higher levels than 2, the game itself only provides a maximum of that from potions, etc.
The night vision might be fixed by slowing down the operations to, say, every 100 ticks (5 seconds).
As for the recipes and localization, good old human error is to blame! The extra recipes for other activators are where I forgot to change the output after copying the file (I'm not going to manually type everything every time! ).
Both missing names are from typos. Both were missing "_activator" at the end and "night_vision" was spelled "night_nision".
I'll release a fix for these "goofy mistakes" in a moment. Hopefully, they'll all be fixed. Have a nice... section of time out of the 24 hours in Earth's revolution relative to when you read this!

we all make mistakes and errors, no one to blame, no problems with that. :p
i'm trying that out when availlable, and give my feedback. :D
thanks for your reactivity and quick support. it's not enough said. ^^
i like your humor. (and it's 14h12 here, i'm from Belgium. ^^)

I think the issues should be fixed, so I'll close this issue. If I missed something, please open a new issue or reopen this one, depending on whether what you find is related to this or not. Thanks!


why my navbar search button not working?

why my navbar search button not working?
url:https://ssport-website-git-fork-sxadxsx-main-ssangyongsports.vercel.app/docs
github:https://github.com/sxadxsx/Ssport-website-docs/tree/main/app

You missed the root provider in your layout, please follow the setup guide or bootstrap a new app with create-next-docs-app


Review/fields lazies

are we still early enough in the pipeline that we can rely on non-local returns being rewritten? I tried the community build on this and it failed, but I didn't look into why yet https://scala-ci.typesafe.com/view/scala-2.12.x/job/scala-2.12.x-integrate-community-build/490/console

It isn't actually a non-local return. synchronized is modelled with a strict param, rather than a by-name one.
But I like your suggestion to use a var temp: Int = 0; lock.synchronized { ..... ; temp = ...}; temp  pattern instead.


Small corrections and clarifications to README

Whilst following the counter example, I encountered a few problems.
These are now listed along with their fixes

Thanks @ChrisWhealy!


Find TTF replacements for current embedded fonts

With upcoming new font format and tools it worth to find replacements for current embedded fonts and revisit build process.
Goals:

Instead of providing C sources only with unknown generation option, there should be clear process of generation (via Makefile.js or anything else suitable for core devs)
We should know exact font source and licence.
Decide if users really need terminal-like fonts or not.

Additional needs:

Describe exactly which fonts should be built-in and why (should we provide bitonal 8x8 terminal fonts and so on).
Suggest how to quickly add pixel-perfect fonts (may be, collection of links or separate repo to keep core clean).
Check licenses and attribution requirements.

Plan B.
In worst case i could add BDF support to convertor for monospace fonts of fixed size, but it really worth move build process for TTF/WOFF only.

If we tend use "modern proportional fonts" then Roboto is perfect choice. But, if we care about bitonal OLED displays, then terminal fixed size fonts required. In this case i'd expect to collect here links to such fonts in TTF/WOFF format.
Example:

http://terminus-font.sourceforge.net/ (BDF only)
Google search "Terminus TTF font" (did not tested in different sizes)

Note: avoid "assorted collections from internet", those usually have no clean licences.

How about using FreeType?

@kisvegabor
Do you mean the FreeType would take large memory in most of the embedded sysems? I have successfully tryed using FreeType in VS simulator to  dynamically and directly generate the bitmap from TTF font. Yes, if transplantating in the embedded sysems, there may be more work need to be done.
And do you have any suggestion that a method instead of FreeType, which using less memory but can dynamically and directly generate the bitmap from TTF font?

@nacyzhouw this issue was created NOT about freetype, but about font sources and prefered out of box packaging.

@nacyzhouw I found this on GitHub (not tried) https://github.com/mcufont/mcufont
If you have further questions about this topic, please continue on the Forum
@puzrin
I don't insist on Dejavu. We can compare it with Robot later.

@kisvegabor to you have some vision of target deveces for LVGL? Do we need to care about bitonal OLEDs? That's the only case when pixel-perfect monospace fonts required. From my point of view, bitonal OLEDs are outdated ~ as AVR.

Besides OLEDs:

simple monochrome displays are still used because they are very cheap.
eInk displays also have 1bpp color depth and they are widely used

So we should have a built-in pixel perfect font (1 size could be enough) to make possible to quickly do some experiment on these displays too.

not stale

Let's check how Robot looks like when the font converter is ready.
Terminus TTF also looks good.

Let's continue in #1057

@olikraus posted interesting links in https://github.com/olikraus/u8g2/issues/890#issuecomment-491020003

http://www.fontspace.com/total-fontgeek-dtf-ltd/glasstown-nbp - pixel perfect font in TTF format
https://github.com/olikraus/u8g2/wiki/fntgrpnbp - list of other fonts, i guess, all available as TTF on the same site.

Seems use only ttf/woff as source is possible, and we can send bdf to hell :)

There are actually much more fonts than this:
https://github.com/olikraus/u8g2/wiki/fntgrp
or here:
https://github.com/olikraus/u8g2/wiki/fntlistall

Seems use only ttf/woff as source is possible, and we can finally stop using bdf :)

Why? If people are already using BDF in their projects (or they find a BDF font they want to use), then we shouldn't be restricting them to only using TTF, especially since BDF support is already present.

BDF is not supported in php script.  Only if alternatives are not available at all.
I don't like abstract "universality". Prefer unification instead. If all can be done via TTF - it's better focus our limited resources on TTF first.

BDF is really supported by an other tool.

f people are already using BDF in their projects (or they find a BDF font they want to use), then we shouldn't be restricting them to only using TTF

I agree, it really can happen. However, I think in this case the bdf converter should be updated to support the new format. For simple fonts (like ASCII monochrome), the new format is not so complicated than for "complex fonts" (like Roboto).

I'd suggest to check initial reasons first. LVGL has tails of some "strange" (from my point of view) things, with better alternatives available. Sometime it worth to cut those, to simplify maintenance and be able apply efforts to more important features.
I guess, BDF convertor was done because proper TTF (pixel-perfect) sources were not found in time.

I guess, BDF convertor was done because proper TTF (pixel-perfect) sources were not found in time.

Nevertheless, it exists now, so people might be using it. I don't think it's right to remove features like that, especially if people may be relying on them for their projects.
@puzrin If we really want to drop BDF support, then we should provide a converter to convert from BDF to pixel-perfect TTF fonts. Is that possible?

Nevertheless, it exists now, so people might be using it. I don't think it's right to remove features like that, especially if people may be relying on them for their projects.

In ideal world, it would be nice to support everything and more forever. But who will pay for it :)? All things, been done "free" happens because authors has personal interest.
If switch from BDF to TTF not acceptable, people may stay at previous lvgl version.

@puzrin If we really want to drop BDF support, then we should provide a converter to convert from BDF to pixel-perfect TTF fonts. Is that possible?

There are some convertors, but i don't know how those work - never used. They may embed bitmaps instead of build vector outlines of pixels. Try to google "bdf to ttf" and dig sources.
I don't consider situation as BDF drop. New convertor is completely different thing, with "everything done right". It was more simple to do everything from scratch, instead of try fix old one. And i don't like idea to keep compatibility with all possible ancient kludges, instead of do things "right and simple".
But... all sources are available, anyone can try to improve, if he has time for it.

@puzrin I did some quick research:

https://github.com/koron/bdf2ttf - embeds the bitmaps like you mentioned. It seems like an acceptable compromise for backwards compatibility. Does the TTF converter support embedded bitmaps?
https://github.com/Tblue/mkttf - creates the outlines of the pixels. One issue I did read was that depending on the font the quality might be lower.

Does the TTF converter support embedded bitmaps?

No. It uses vectors. Embedded bitmaps is a very strange extention, actually not used anywhere.

Let's ask @BrianPugh the author of the bdf converter.
Brian, can you mention some use cases when BDF can't replace by pixel perfect TTF fonts?

I'm not opposed to dropping BDF support if TTF offers comparable alternative. Pixel-perfect is indeed very important when working with low resolution lcd/oled screens. I haven't been keeping super up to date on the font discussion, I'll have to do some reading.

Thank you @BrianPugh.


(feature) Add optional checker for tag removal

This PR adds a new optional check that allows us to fail when a tag is removed/updated.
New checker output
Backward compatibility errors (1):
error at <redacted>/base.yaml, in API GET /api/v1.0/alertConfigs/matchers/fieldNames api tag '[Alert Configurations]' removed [api-tag-removed].

List of changes

Add new checker option to readme & optional check flag
Add the new checker
Add unit test to the checker
Update breaking-changes.md file
Add localization strings and update localizations file with go generate
Run tests script

Note: please let me know if there is any further tests I can run to validate my PR.

Codecov Report

Merging #208 (44316f6) into main (6dc9e3a) will decrease coverage by 0.01%.
The diff coverage is 72.00%.

: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
@@            Coverage Diff             @@
##             main     #208      +/-   ##
==========================================
- Coverage   74.39%   74.38%   -0.01%
==========================================
  Files         133      134       +1
  Lines        7583     7606      +23
==========================================
+ Hits         5641     5658      +17
- Misses       1628     1631       +3
- Partials      314      317       +3

Flag
Coverage Δ

unittests
74.38% <72.00%> (-0.01%)
:arrow_down:

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

Impacted Files
Coverage Δ

checker/default_checks.go
91.56% <ø> (ø)

checker/check-api-tag-removed.go
69.56% <69.56%> (ø)

checker/check-api-operation-id-removed.go
69.56% <100.00%> (ø)

... and 1 file with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more