How to use dynamic object key in binding?

Hi @ManuelDeLeon , I have something like:
each arts
  span($b="text: lang()")
  span($b="text: this.name.en]")
  span($b="text: this.name[lang()]")

lang is a shared prop which returns en here. Now the 1st & 2nd span are fine. en is an attribute of the name field of arts record.
However, the 3rd span returns an object and I am stuck to get that language value. I also tried but failed too:
  span($b="text: this.name['en']")

I have quite many fields to show...
The question is , how to make the binding value dynamic according to variable?

Viewmodel doesn't parse brackets. I will add it but not soon enough for
you. In the meantime you can create a function I  the same view model which
takes an art, and then pass this to it in the markup.
On Jan 25, 2016 11:24 PM, "Dave Lee"<EMAIL_ADDRESS>wrote:

Hi @ManuelDeLeon https://github.com/ManuelDeLeon , I have something
like:
each arts
span($b="text: lang()")
span($b="text: thisnameen]")
span($b="text: thisname[lang()]")
lang is a shared prop which returns en here Now the 1st & 2nd span are
fine en is an attribute of the name field of arts record
However, the 3rd span returns an object and I am stuck to get that
language value I also tried but failed too:
span($b="text: thisname['en']")
I have quite many fields to show
The question is , how to make the binding value dynamic according to
variable?
—
Reply to this email directly or view it on GitHub
https://github.com/ManuelDeLeon/viewmodel/issues/166.

Thanks. That's also what I thought as last resort. Shall use this way before VM supports the required parsing.

I'm closing this one as I don't know when/if I'll have time to work on it.

Thanks. Will there be any suitable place to mark it down like a wishlist for the project?

I had one of those on another open source project and it became a guilt
list. That's why I'm closing this one.
On Feb 15, 2016 8:03 PM, "Dave Lee"<EMAIL_ADDRESS>wrote:

Thanks. Will there be any suitable place to mark it down like a wishlist
for the project?
—
Reply to this email directly or view it on GitHub
https://github.com/ManuelDeLeon/viewmodel/issues/166#issuecomment-184491872
.


Guest users should be able to pledge items

Part of #77
We decided to go with option 3. From #77:

The strategy above (modals) make it easier to track users, but we'll probably lose people. We could do this the other way, treating pledges like items in a guest shopping cart: the guest pledges the item, is brought to Amazon, and is then prompted to sign in/create an account. Probably many people won't, but we'll still have a record of the pledge (if not a name).

When a guest creates an account from this page, the pledge should be associated with the new user account (like a shopping cart).
Also, like with signed-in users, we also want the pledges to have quantities here:

Maybe, as a way to let guests see what's going on with their pledges, guest pledges could be publicly accessible if you have the URLs?

Okay, question for you @micahbales.
If a logged-in user pledges a wishlist item (pledge 1), logs out, pledges the same wishlist item (pledge 2), logs in, and tries to claim the anonymous pledge, what happens?

The app doesn't allow that (error)
The app deletes the anonymous pledge and adds the quantity to the original pledge (this means the pledge 2 url will no longer work–it's all under pledge 1)
The app deletes the first pledge and adds the quantity to the now-claimed anonymous pledge (this means pledge 1 url will no longer work–it's all under pledge 2)
Something else?


WIP: DO NOT MERGE trigger 4.14 test

This will never merge!
Opening this PR so we can trigger azure e2e tests from the 4.14 branch.

/test e2e-azure-ovn

/close


az aks: No module named 'azure.mgmt.containerservice.v2021_10_01'

This is autogenerated. Please review and update as needed.
Describe the bug
See traceback, all az aks subcommands fail immediately.
Command Name
az aks
Errors:
The command failed with an unexpected error. Here is the traceback:
No module named 'azure.mgmt.containerservice.v2021_10_01'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/knack/cli.py", line 231, in invoke
    cmd_result = self.invocation.execute(args)
  File "/usr/lib/python3/dist-packages/azure/cli/core/commands/__init__.py", line 583, in execute
    parsed_args = self.parser.parse_args(args)
  File "/usr/lib/python3/dist-packages/knack/parser.py", line 261, in parse_args
    return super().parse_args(args)
  File "/usr/lib/python3.9/argparse.py", line 1836, in parse_args
    args, argv = self.parse_known_args(args, namespace)
  File "/usr/lib/python3/dist-packages/azure/cli/core/parser.py", line 284, in parse_known_args
    self._namespace, self._raw_arguments = super().parse_known_args(args=args, namespace=namespace)
  File "/usr/lib/python3.9/argparse.py", line 1869, in parse_known_args
    namespace, args = self._parse_known_args(args, namespace)
  File "/usr/lib/python3.9/argparse.py", line 2081, in _parse_known_args
    stop_index = consume_positionals(start_index)
  File "/usr/lib/python3.9/argparse.py", line 2037, in consume_positionals
    take_action(action, args)
  File "/usr/lib/python3.9/argparse.py", line 1946, in take_action
    action(self, namespace, argument_values, option_string)
  File "/usr/lib/python3.9/argparse.py", line 1225, in __call__
    subnamespace, arg_strings = parser.parse_known_args(arg_strings, None)
  File "/usr/lib/python3/dist-packages/azure/cli/core/parser.py", line 284, in parse_known_args
    self._namespace, self._raw_arguments = super().parse_known_args(args=args, namespace=namespace)
  File "/usr/lib/python3.9/argparse.py", line 1869, in parse_known_args
    namespace, args = self._parse_known_args(args, namespace)
  File "/usr/lib/python3.9/argparse.py", line 2106, in _parse_known_args
    self.error(_('the following arguments are required: %s') %
  File "/usr/lib/python3/dist-packages/azure/cli/core/parser.py", line 160, in error
    recommender.set_help_examples(self.get_examples(self.prog))
  File "/usr/lib/python3/dist-packages/azure/cli/core/parser.py", line 201, in get_examples
    return self.cli_help.get_examples(command,
  File "/usr/lib/python3/dist-packages/azure/cli/core/_help.py", line 192, in get_examples
    else self.group_help_cls(self, delimiters, parser)
  File "/usr/lib/python3/dist-packages/knack/help.py", line 253, in __init__
    child.load(options)
  File "/usr/lib/python3/dist-packages/azure/cli/core/_help.py", line 303, in load
    loader.versioned_load(self, options)
  File "/usr/lib/python3/dist-packages/azure/cli/core/_help_loaders.py", line 154, in versioned_load
    super(CliHelpFile, help_obj).load(parser)  # pylint:disable=bad-super-call
  File "/usr/lib/python3/dist-packages/knack/help.py", line 198, in load
    description = getattr(options, 'description', None)
  File "/usr/lib/python3/dist-packages/knack/parser.py", line 241, in __getattribute__
    self.description = self._description() \
  File "/usr/lib/python3/dist-packages/azure/cli/core/commands/command_operation.py", line 133, in description_loader
    op = self.get_op_handler(self.op_path)
  File "/usr/lib/python3/dist-packages/azure/cli/core/commands/command_operation.py", line 59, in get_op_handler
    handler = import_module(mod_to_import)
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'azure.mgmt.containerservice.v2021_10_01'

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Install from DEB
az aks

Expected Behavior
No traceback.
Environment Summary
Linux-5.16.0-1-amd64-x86_64-with-glibc2.33, Debian GNU/Linux bookworm/sid
Python 3.9.10
Installer: DEB

azure-cli 2.33.0

Extensions:
serial-console 0.1.1
azure-devops 0.23.0

Dependencies:
msal 1.16.0
azure-mgmt-resource 20.0.0

Additional Context

route to CXP team

@tux3 I am not seeing any error. Can you please run az aks addon list-available and provide the error message and trace.
Thanks
Saurabh

@SaurabhSharma-MSFT
Sure thing. I have the same error on my desktop and laptop, both running Debian. I've installed the CLI using these deb packages.
$ az aks addon list-available
The command requires the extension aks-preview. Do you want to install it now? The command will continue to run after the extension is installed. (Y/n):
Run 'az config set extension.use_dynamic_install=yes_without_prompt' to allow installing extensions without prompt.
The installed extension 'aks-preview' is in preview.
[
  {
    "description": "- configure ingress with automatic public DNS name creation",
    "name": "http_application_routing"
  },
  {
    "description": "- turn on Log Analytics monitoring. Uses the Log Analytics Default Workspace if it exists, else creates one. Specify \"--workspace-resource-id\" to use an existing workspace.\nIf monitoring addon is enabled --no-wait argument will have no effect.",
    "name": "monitoring"
  },
  {
    "description": "- enable AKS Virtual Node. Requires --aci-subnet-name to provide the name of an existing subnet for the Virtual Node to use.\naci-subnet-name must be in the same vnet which is specified by --vnet-subnet-id (required as well).",
    "name": "virtual-node"
  },
  {
    "description": "- enable Azure policy. The Azure Policy add-on for AKS enables at-scale enforcements and safeguards on your clusters in a centralized, consistent manner.\nLearn more at aka.ms/aks/policy.",
    "name": "azure-policy"
  },
  {
    "description": "- n/a",
    "name": "kube-dashboard"
  },
  {
    "description": "- enable Application Gateway Ingress Controller addon (PREVIEW).",
    "name": "ingress-appgw"
  },
  {
    "description": "- enable Open Service Mesh addon (PREVIEW).",
    "name": "open-service-mesh"
  },
  {
    "description": "- enable confcom addon, this will enable SGX device plugin by default (PREVIEW).",
    "name": "confcom"
  },
  {
    "description": "- enable GitOps (PREVIEW).",
    "name": "gitops"
  },
  {
    "description": "- enable Azure Keyvault Secrets Provider addon (PREVIEW).",
    "name": "azure-keyvault-secrets-provider"
  }
]

@SaurabhSharma-MSFT
If I run az aks by itself, it fails as shown in the first post.
Other commands that fail include az aks get-credentials --admin -n foo -g bar:
$ az aks get-credentials --admin -n foo -g bar
The command failed with an unexpected error. Here is the traceback:
API version 2021-10-01 does not have operation group 'managed_clusters'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/knack/cli.py", line 231, in invoke
    cmd_result = self.invocation.execute(args)
  File "/usr/lib/python3/dist-packages/azure/cli/core/commands/__init__.py", line 658, in execute
    raise ex
  File "/usr/lib/python3/dist-packages/azure/cli/core/commands/__init__.py", line 721, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
  File "/usr/lib/python3/dist-packages/azure/cli/core/commands/__init__.py", line 692, in _run_job
    result = cmd_copy(params)
  File "/usr/lib/python3/dist-packages/azure/cli/core/commands/__init__.py", line 328, in __call__
    return self.handler(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/azure/cli/core/commands/command_operation.py", line 112, in handler
    client = self.client_factory(self.cli_ctx, command_args) if self.client_factory else None
  File "/usr/lib/python3/dist-packages/azure/cli/command_modules/acs/_client_factory.py", line 22, in cf_managed_clusters
    return get_container_service_client(cli_ctx).managed_clusters
  File "/usr/lib/python3/dist-packages/azure/mgmt/containerservice/_container_service_client.py", line 404, in managed_clusters
    raise ValueError("API version {} does not have operation group 'managed_clusters'".format(api_version))
ValueError: API version 2021-10-01 does not have operation group 'managed_clusters'
To open an issue, please run: 'az feedback'

az aks list fails with the same error:
$ az aks list
The command failed with an unexpected error. Here is the traceback:
API version 2021-10-01 does not have operation group 'managed_clusters'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/knack/cli.py", line 231, in invoke
    cmd_result = self.invocation.execute(args)
  File "/usr/lib/python3/dist-packages/azure/cli/core/commands/__init__.py", line 658, in execute
    raise ex
  File "/usr/lib/python3/dist-packages/azure/cli/core/commands/__init__.py", line 721, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
  File "/usr/lib/python3/dist-packages/azure/cli/core/commands/__init__.py", line 692, in _run_job
    result = cmd_copy(params)
  File "/usr/lib/python3/dist-packages/azure/cli/core/commands/__init__.py", line 328, in __call__
    return self.handler(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/azure/cli/core/commands/command_operation.py", line 112, in handler
    client = self.client_factory(self.cli_ctx, command_args) if self.client_factory else None
  File "/usr/lib/python3/dist-packages/azure/cli/command_modules/acs/_client_factory.py", line 22, in cf_managed_clusters
    return get_container_service_client(cli_ctx).managed_clusters
  File "/usr/lib/python3/dist-packages/azure/mgmt/containerservice/_container_service_client.py", line 404, in managed_clusters
    raise ValueError("API version {} does not have operation group 'managed_clusters'".format(api_version))
ValueError: API version 2021-10-01 does not have operation group 'managed_clusters'
To open an issue, please run: 'az feedback'

On my Debian desktop, start and stop seem to work. However on my laptop I also see a similar error:
$ az aks start -g foo -n bar
The command failed with an unexpected error. Here is the traceback:
No module named 'azure.mgmt.containerservice.v2021_10_01'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/knack/cli.py", line 231, in invoke
    cmd_result = self.invocation.execute(args)
  File "/usr/lib/python3/dist-packages/azure/cli/core/commands/__init__.py", line 556, in execute
    self.commands_loader.load_arguments(command)
  File "/usr/lib/python3/dist-packages/azure/cli/core/__init__.py", line 515, in load_arguments
    self.command_table[command].load_arguments()  # this loads the arguments via reflection
  File "/usr/lib/python3/dist-packages/azure/cli/core/commands/__init__.py", line 313, in load_arguments
    super(AzCliCommand, self).load_arguments()
  File "/usr/lib/python3/dist-packages/knack/commands.py", line 104, in load_arguments
    cmd_args = self.arguments_loader()
  File "/usr/lib/python3/dist-packages/azure/cli/core/commands/command_operation.py", line 125, in arguments_loader
    op = self.get_op_handler(self.op_path)
  File "/usr/lib/python3/dist-packages/azure/cli/core/commands/command_operation.py", line 59, in get_op_handler
    handler = import_module(mod_to_import)
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'azure.mgmt.containerservice.v2021_10_01'
To open an issue, please run: 'az feedback'

On both my Debian machines, az aks by itself is the simplest reproducer for me.

@tux3 I am not able to reproduce this issue in my environment.  As mentioned in another GitHub issue can you please follow https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt to install Azure CLI on stable/GA versions of Debian, like 11 Bullseye, instead of Sid.
Ref: https://wiki.debian.org/DebianUnstable

Sid is forever doomed to being unstable.

@SaurabhSharma-MSFT Noted. While I used the instructions from this page (the curl | bash script), I missed the note that says Debian testing is unsupported.


SauceLabs Titles For Tests  Not Showing Up

When running WDIO tests in SauceLabs only the names of the it functions are appearing. Other than this the test is listed as Jasmine TopLevel Suite. The WDIO documentation for this functionality uses Cucumber as the example and it clearly displays the name of both the feature and scenario.

@mattc41190 so how should it be? Can you give an example?

http://webdriver.io/guide/services/sauce.html
The linked page shows the Cucumber equivalent to what I'd like to see. In Jasmine and Mocha you have describe and it blocks. Cucumber has feature and scenario. Feature and scenario say the correct data in Cucumber. In Jasmine only the it functions/blocks are named, but the describe blocks get a generic JasmineTopLevelSuite title.

If at any point you set the name in the browser caps then it takes that name.

Did any of that make sense?

So you are saying that it would be nice to set the context also if we enter a suite (describe block)?

Precisely, seems like as though that would be the logical intent.

This is fixed with the latest wdio-sauce-service version.


funfactory tests to be aware of settings/local.py-dist instead of settings_local.py-dist

upgrade tests to reflect new playdoh which uses a directory called settings. Also added options to run tox with a different git repo and branch

This seems cool, just the .rst nit.


matter-js can't find decomp when imported via ES6

Since matter.js tries to evaluate windows.decomp directly when imported ...
var decomp = (typeof window !== "undefined" ? window['decomp'] : typeof global !== "undefined" ? global['decomp'] : null);

... and all imports are done before any other code is run, this (as implied by this example) didn't work for me:
import decomp from 'poly-decomp';

window.decomp = decomp;

import Matter from 'matter-js'; // eslint-disable-line import/first

matter-js was still evaluated before window.decomp = decomp, and thus var decomp would still be undefined.
This plugin should check for window.decomp first when it's needed (inside Bodies.fromVertices) or at least document this solution from @rykerrumsey.

I had the same problem but managed to resolved it by adding global decomp in webpack (the same as provided link). I also think it should be changed, back then I was very confused why my code does not work even after adding global decomp.


in "vue3",It is no longer necessary to use State Management library like "vuex" .？

What problem does this feature solve?
In "vue2", the responsive state must be attached to the component, so there is a need to use "vuex".
In "vue3", in the new "Vue Composition API", it is possible to use responsive state outside of components.
in "vue3",It is no longer necessary to use State Management library like "vuex" .
Why does vuex make simple things complicated?
What does the proposed API look like?
import { ref } from "vue";
/**
 * @param {number} init
 * @returns{{
    get: () => number;
    inc: () => void;
    dec: () => void;
}}
 */
function create(init) {
    /**
     * @type{{value:number}}
     */
    const state = ref(init);
    const get = () => state.value;
    const inc = () => {
        state.value++;
    };
    const dec = () => {
        state.value--;
    };
    return { get, inc, dec };
}
const count = create(0);
export default {
    setup() {
        return {};
    },
    render() {
        return (

count:{count.get()}

                <button onclick={count.inc}>increase</button>
                <button onclick={count.dec}>decrease</button>

        );
    },
};

Your example works in that use case, and you are free to implement your code like that. However, that will probably wouldn't work on SSR in the real-world use case, and it will also not work outside of setup hook, so you can't use it with the option syntax component.
Vuex is there to support global state management throughout the whole Vue use case and its ecosystem, covering things like SSR and composition api, option api, and such.
By the way, it has nothing to do with Vue 3 reactivity system. You can do pretty much the same with Vue 2 using the global Vue instance. It's even documented in the docs.

Why does vuex make simple things complicated?

I understand you feel a little overwhelming about the current Vuex implementation. We're trying hard to make Vuex better in the next iteration so please stay tuned 🙌


Voicemail module not loaded

When trying to send callers to voicemail, the following error appeared:
pbx.c: No application 'VoiceMail' for extension (macro-vm, s-CHANUNAVAIL, 2)

I found the issue is caused by these modules being loaded:
res_mwi_external.so
res_mwi_external_ami.so

instead of:
app_voicemail.so

In FreePBX -> Admin -> Asterisk Modules, I added the two modules I listed above to the excluded list and app_voicemail.so to the preloaded list. I restarted freepbx (fwconsole restart) and voicemail is now working.
I've started using this image around December 2020, but only now enabled voicemail, so I don't know if this issue is present on a clean install or something I broke.

This is present on a clean install and had to find this out the hard way. In addition the UI wouldn't let me add or blacklist any modules, it looked as though it was working but then does nothing. Manually modifying the files in ./data works though.
I will likely fork this repo as development seems dead, I will get all this fixed and submit a pull in the coming months.


Downgrade fontbakery version check FAIL to WARN

I recognize that there is an interest in making sure that projects always use the latest / greatest set of tests, but issues like https://github.com/googlefonts/fontbakery/pull/2882 suggest that it would be useful to relax the requirement that a user run the most recent release version of fontbakery in order to avoid the version check FAIL:
https://github.com/googlefonts/fontbakery/blob/850aecc732488a5697a7209bb4ab2472d6543b40/Lib/fontbakery/profiles/universal.py#L299-L302
fontbakery FAIL results exit with a non-zero status code and fail CI testing services.
A better approach might be to downgrade this check to a WARN so that project teams can pin the fontbakery version in their CI and use automated services for Python dependency management (e.g., pyup, dependabot) to review the checks that change across fontbakery releases with PR's on their repos.  This workflow would allow you to continue to enforce the latest fontbakery checks on a regular schedule.  Projects can understand how new tests apply in project-specific ways and report new issues on the tracker while still having a functional fontbakery CI based on the previous release.  On the developer side, you can breathe a bit.  When a release includes an invalid test / not generally valid test, it is not an emergent fix because you haven't just broken testing broadly out there in a project where users must use the broken version to "pass" the tests.  Projects stay pinned on the previous release until fixes are pushed in a new release and everyone is happy. :)

There's also a way to override check results per profile using profile.check_log_override. Used e.g. here: https://github.com/googlefonts/fontbakery/blob/64732ed28f782fd4c840b3040419443b77c1285e/Lib/fontbakery/profiles/adobefonts.py#L125-L135

would it be good if we make it a WARN for 1 version older than latest, but still keep the check FAIL'ing if FB version is older than the 2 latest releases?

I guess the question is whether the tool or the user should be enforcing this.  IMO it is enough to let the user know that they are not on latest.  This is flexible.

There's also a way to override check results per profile using profile.check_log_override. Used e.g. here:
https://github.com/googlefonts/fontbakery/blob/64732ed28f782fd4c840b3040419443b77c1285e/Lib/fontbakery/profiles/adobefonts.py#L125-L135

Wasn't aware of this Lasse.  Tyvm!  I'll try this out on our custom profile.

I guess the question is whether the tool or the user should be enforcing this. IMO it is enough to let the user know that they are not on latest. This is flexible.

If I recall correctly, this check was originally WARN-only, but @davelab6 asked us to make it a FAIL in order to enforce it for Google Fonts onboarding purposes. The Google Fonts project has a policy that no FAIL (on its vendor-specific profile) should be accepted unless when explicitly justified upon submission of a pull request to the google/fonts repo.
So making it a WARN on the universal profile and then inheriting it with a FAIL override on the googlefonts profile is what makes more sense from this perspective.
Then, third-parties using the googlefonts profile can ignore the FAIL.


Deploy-AzSqlDb-Auditing policy assignment is not getting Log Analytics Workspace ID set correctly

Community Note

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

Versions
terraform: 1.4.6
azure provider: 3.55.0
module: 4.0.1
Description
Describe the bug
When running the module with deploy_core_landing_zones and deploy_management_resources, and subscription IDs set using subscription_id_management, the Deploy-AzSqlDb-Auditing policy assignment ends up with an incorrect log analytics workspace ID.
Steps to Reproduce

Set variables as described above
Terraform plan

Screenshots
Here's the relevant output:
 # module.enterprise_scale.azurerm_management_group_policy_assignment.enterprise_scale["/provider
s/Microsoft.Management/managementGroups/lzroot-landing-zones/providers/Microsoft.Authorization/policy
Assignments/Deploy-AzSqlDb-Auditing"] will be created
  + resource "azurerm_management_group_policy_assignment" "enterprise_scale" {
      + description          = "To ensure the operations performed against your SQL assets
are captured, SQL servers should have auditing enabled. If auditing is not enabled, this policy will
configure auditing events to flow to the specified Log Analytics workspace."
      + display_name         = "Configure SQL servers to have auditing enabled to Log Analy
tics workspace"
      + enforce              = true
      + id                   = (known after apply)
      + location             = "canadacentral"
      + management_group_id  = "/providers/Microsoft.Management/managementGroups/lzroot-lan
ding-zones"
      + metadata             = (known after apply)
      + name                 = "Deploy-AzSqlDb-Auditing"
      + not_scopes           = []
      + parameters           = jsonencode(
            {
              + logAnalyticsWorkspaceId = {
                  + value = "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegr
oups/lzroot-mgmt/providers/Microsoft.OperationalInsights/workspaces/lzroot-la"
                }
            }
        )
      + policy_definition_id = "/providers/Microsoft.Authorization/policyDefinitions/25da7d
fb-0666-4a15-a8f5-402127efd8bb"

      + identity {
          + principal_id = (known after apply)
          + tenant_id    = (known after apply)
          + type         = "SystemAssigned"
        }

      + non_compliance_message {
          + content = "SQL servers must have auditing enabled to Log Analytics workspace."
        }
    }

Additional context
Please note that other policy assignments involving log analytics workspace parameters appear to be getting computed correctly.
This is the only one that doesn't have the correct value.

I asked a similar question a couple of days ago: https://github.com/Azure/terraform-azurerm-caf-enterprise-scale/issues/707
Please see last post in thread for the solution that worked for me. I have used custom naming.

@tlfzhylj I don't understand.   This is expected behaviour?  Why would all of the other policies hook up to the correct log analytics workspace without special configuration, but not this one?

@eehret I don't belive it's expected. In my case, I think it is because I have seperate environments (Terraform states) for core, management and connectivity. I also have custom naming. I'm not sure if it is because of one of them, both, the combination or none of them.
How do you provision your environment? Do you have seperated tf states between core, connectivity and management? Custom naming?

@tlfzhylj Thanks for the reply :)
I think none of those situations you mentioned apply to me.  I'm using more or less vanilla configuration, with the exception of excluding one policy, and setting another to 'Audit' instead of 'Deny'.
No separated states for those things, I have it all together in one project and probably going to keep it that way...
As I said in the issue description, log analytics workspace ID is getting set correctly for everything except this one specific policy assignment.

Okey, then it sounds like a bug. I'll leave it up to @matt-FFFFFF and rest of the guys :)

@matt-FFFFFF Super responsive, thanks so much for the quick work!


overrideDerivation doesn't work for setting separateDebugInfo

To enable debug info for a package that doesn't have it, one might naively expect this work:
  nixpkgs.config.packageOverrides = pkgs: {
    hello = overrideDerivation pkgs.hello (attrs: {
      separateDebugInfo = true;
    });
  };

However, this doesn't work because separateDebugInfo affects mkDerivation, not derivation. So we'd need some way to re-call the original mkDerivation invocation with new arguments.

How would we do that without uplifting mkDerivation?

/participate. (BTW, if you know a better way how to do this, tell me.)

on the right you have "Subscribe" button

I'm already subscribed to anything happening in the repository, and I'm tracking my interests in the participating tab in notifications. Maybe I'm using the interface a wrong way?

Nix has to be upgraded, and there are some package rebuilds to look at, but https://github.com/Mathnerd314/nixpkgs/commit/b4167e51a93dc9a756f1bc54dac9e72fee2d375f would fix this.

What's the runtime cost? In general, multiple layers of .override are bad for (memory) performance.

@vcunat unsubscribe -> subscribe == participate

@edolstra
With change (b4167e51a93dc9a756f1bc54dac9e72fee2d375f):
$ `which time` -v bash -c '~/nix/inst/bin/nix-instantiate --readonly-mode ~/nixpkgs -k --show-trace &> /dev/null'
        Elapsed (wall clock) time (h:mm:ss or m:ss): 0:27.43 0:27.52 0:27.54
        Maximum resident set size (kbytes): 1749328 1749800 1750280

$ `which time` -v bash -c '~/nix/inst/bin/nix-instantiate --readonly-mode --eval -E "import ~/nixpkgs {}" -k --show-trace &> /dev/null'
        Elapsed (wall clock) time (h:mm:ss or m:ss): 0:00.10
        Maximum resident set size (kbytes): 16540 16560 16568

$ `which time` -v bash -c '~/nix/inst/bin/nix-instantiate --readonly-mode ~/nixpkgs -A firefox -k --show-trace &> /dev/null'
        Elapsed (wall clock) time (h:mm:ss or m:ss): 0:00.47 0:00.47 0:00.48
        Maximum resident set size (kbytes): 67324 67496 67556

$ `which time` -v bash -c '~/nix/inst/bin/nix-instantiate --readonly-mode ~/nixpkgs/nixos -k --show-trace &> /dev/null'
        Elapsed (wall clock) time (h:mm:ss or m:ss): 0:13.99 0:14.02 0:14.08
        Maximum resident set size (kbytes):<PHONE_NUMBER>44 985180

Without change (1962484d15f401f44b220b47fdfd8f5ec179838e):
$ `which time` -v bash -c '~/nix/inst/bin/nix-instantiate --readonly-mode ~/nixpkgs -k --show-trace &> /dev/null'
        Elapsed (wall clock) time (h:mm:ss or m:ss): 0:24.90 0:24.92 0:25.12
        Maximum resident set size (kbytes): 1608744 1609020 1609164

$ `which time` -v bash -c '~/nix/inst/bin/nix-instantiate --readonly-mode --eval -E "import ~/nixpkgs {}" -k --show-trace &> /dev/null'
        Elapsed (wall clock) time (h:mm:ss or m:ss): 0:00.10
        Maximum resident set size (kbytes): 16552 16636 16656 16656 16712

$ `which time` -v bash -c '~/nix/inst/bin/nix-instantiate --readonly-mode ~/nixpkgs -A firefox -k --show-trace &> /dev/null'
        Elapsed (wall clock) time (h:mm:ss or m:ss): 0:00.40 0:00.40 0:00.41
        Maximum resident set size (kbytes): 59916 59932 59948

$ `which time` -v bash -c '~/nix/inst/bin/nix-instantiate --readonly-mode ~/nixpkgs/nixos -k --show-trace &> /dev/null'
        Elapsed (wall clock) time (h:mm:ss or m:ss): 0:12.50 0:12.52 0:12.59 0:12.75 0:12.76
        Maximum resident set size (kbytes):<PHONE_NUMBER>24<PHONE_NUMBER>80 866496

So it's about 12% overhead in memory & time.

The original request for "some way to re-call the original mkDerivation invocation with new arguments" is precisely the new overrideAttrs function I introduce in #17886.

I made a separate PR for overrideAttrs: #18660.

I believe this issue can be closed now that overrideAttrs is merged.

I'll let @edolstra close it

We should amend the documentation to use overrideAttrs; https://nixos.org/nixos/manual/options.html#opt-environment.enableDebugInfo and maybe some other place(s).

@vcunat I will make a PR for that soon.


Can we cut a v0.6.2 release?

There have only been a handful of commits since v0.6.1, but the multi-error validation + bazel fixes would be really nice to have in an official release. Are there any other open PRs that should be targeted for inclusion?

@akonradi , @rodaine anything that we can do to get a new release?
Would be nice to be able to just bump the version in the go.mod file to get the improvements that were added (https://github.com/envoyproxy/protoc-gen-validate/compare/v0.6.1...main)

Any news? We really need uuid fix.

@akonradi / @rodaine Is there anything blocking this or that you're hoping to include before cutting another release?

@akonradi Bump

@akonradi @rodaine Bump 🙏


i18n(zh-cn): Update getting-started.mdx

Description (required)
Update getting-started.mdx

Related issues & labels (optional)

#8222

Lunaria Status Overview
🌕 This pull request will trigger status changes.

Learn more
By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.
You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

Locale
File
Note

zh-cn
getting-started.mdx
Localization changed, will be marked as complete.

Warnings reference

Icon
Description

🔄
The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

Ralted: https://github.com/withastro/docs/pull/8215

Related: #8215

我是不是关掉这个 pr 就行

和 https://github.com/withastro/docs/pull/8215 一起合并，等明天 Yan 下午看一下 lunaria 的bug

和 #8215 一起合并，等明天 Yan 下午看一下 lunaria 的bug

好的


Saving custom settings options locally

When the user leaves the page, all the changes they made in the settings are lost. We should save their changes in local storage and load those changes when they return to the page. This would allow for a more user-friendly experience.

custom mins and secs are saved in the settings modal, but the timer is still not using those saved numbers until something is inputted directly by a user. doesnt detect changes from javascript yet


qualify variables to make templates work

Looks like pull request #61 reverted changes done in #30 , so now template is filled with empty values.

Oh, sorry. Probably my bad. Which version of puppet are you using?

[root@gml-puppet production]# puppet --version
4.2.1

@ulamela , also looks like the standalone.conf.erb template needs patched in a similar fashion.  Would you mind adding these changes to your PR.
sed -i "s/@/scope['wildfly::/g" standalone.conf.erb
sed -i "s/ %>/'] %>/g" standalone.conf.erb

if [ "x$JAVA_OPTS" = "x" ]; then
   JAVA_OPTS="-Xms<%= scope['wildfly::java_xms'] %> -Xmx<%= scope['wildfly::java_xmx'] %> -XX:MaxPermSize=<%= scope['wildfly::java_maxpermsize'] %>"
   JAVA_OPTS="$JAVA_OPTS <%= scope['wildfly::java_opts'] %>"
else
   echo "JAVA_OPTS already set in environment; overriding default settings with values: $JAVA_OPTS"
fi

:+1:  to these changes, any change on getting them pulled in soon ?

@smbambling, updated as requested plus changed to use 'lookupvar' function to support Puppet 2.7 (to support Puppet 2.7.x as specified on Forge module's page).

@ulamela, looks good to me...hopefully this will get approved soon.

Thanks all :+1:
Here we go, I will do some testing on puppet 4.2 and 3.8


BaseValue issue resolved

This PR resolves issue231
Sample code to try:
y = [8 15 33; 30 35 40; 50 55 62];
barh(y,'BaseValue',25)

fig2plotly(gcf, 'offline', false);

NOTE: You may see a warning for missing tickvals, but since strip is set to false and tickvals is indeed a correct property for x/y axis, this still works. Let's discuss on Slack how to update plotly/plotly_help_aux/plotly_reference.mat after which this warning would disappear automatically.
Vertical bars without Basevalue argument...

Horizontal bars with BaseValue=25

Vertical bars with BaseValue=30

Graph is good, but getting the next warnings:
warning: error using update_opac
warning: error using update_opac
warning: error using update_opac
Whoops! Reference to non-existent field 'tickvals' in xaxis

Graph is good, but getting the next warnings...

@VolKa79 Purwar already mentioned this

NOTE: You may see a warning for missing tickvals, but since strip is set to false and tickvals is indeed a correct property for x/y axis, this still works. Let's discuss on Slack how to update plotly/plotly_help_aux/plotly_reference.mat after which this warning would disappear automatically.

Hello @xarico10
Are you sure you are using the right branch for this? Please do verify it once more.
git checkout issue231
git pull

What all warnings do you get? Also, what MATLAB version did you try this on?

I was missing the Deep Learning Toolbox that is needed. Works for me now, printing the warning message you mentioned.

I am working on resolving these warnings. We can merge this or wait for some time until I resolve this, I don't mind.

This PR now also updates the Plotly JSON schema.
I tested it thoroughly for bars (no warnings). Although there may still be some warnings for other plot types (or traces) due to the updated JSON structure.
@jackparmer When your testing framework with Kaleido is ready, we could test this to see what warnings we get and for what trace types. Until then, I think the only option is to check this manually for various trace types.
I will inform others about the warning messages and what to do if they do see these on Slack.


[MINOR][NETWORK][TEST] Fix TransportFrameDecoderSuite to use ByteBuf instead of ByteBuffer

What changes were proposed in this pull request?
fireChannelRead expects io.netty.buffer.ByteBuf.I checked that this is the only place which misuse java.nio.ByteBuffer in network module.
How was this patch tested?
Pass the Jenkins with the existing tests.

Test build #100712 has started for PR 23442 at commit 1c59d74.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/6610/
Test PASSed.

Test build #100712 has finished for PR 23442 at commit 1c59d74.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Thank you, @vanzin and @HyukjinKwon .
Merged to master.


dns/rfc2136: delete cache files if nsupdate failed

See #4055.

Similar to #2752, updating my DynDNS Domain via the rfc2136 plugin does not work. I added some log lines to the plugin code and it looks like the update fails at rc.bootup because the internet connection is not established yet. Later on rc.newwanip the plugin reports the IP was not changed and the nsupdate call is skipped.

My workaround is to delete the cache files when the exit code of the nsupdate command is not zero.

@AdSchellevis already mentioned in the issue that here a background process should be used. How can I use a background process here and get the exit code to decide if the cache file should be deleted?
Does mwexec_bg support shell pipes? Then I could do something like this:
$cmd .= " /var/etc/nsupdatecmds{$i}";
$cmd .= " || rm -f ".rfc2136_cache_file($dnsupdate, 4)." ".rfc2136_cache_file($dnsupdate, 6);

I added now a wrapper for handling the cache files in background, but now it is not updating on bootup or newwanip hook. I added in addition to that a cron:

The cron was executed 13 minutes after newwanip and then the update ran through.
OPNSense "General" Log:
2024-06-29T13:15:00	Error	opnsense	/usr/local/etc/rc.rfc2136: Dynamic DNS ...
2024-06-29T13:02:22	Error	opnsense	/usr/local/etc/rc.newwanip: Dynamic DNS ...
2024-06-29T13:01:44	Error	opnsense	/usr/local/etc/rc.bootup: Dynamic DNS ...

Output of nsupdate (I added a 2>&1 >> /var/log/nsupdate.log to the wrapper script):
Sat Jun 29 13:01:44 CEST 2024
; Communication with 94.247.xx.xx#53 failed: operation canceled
could not reach any name server
Sat Jun 29 13:02:22 CEST 2024
couldn't get address for 'ns1.example.com': not found
syntax error
Sat Jun 29 13:15:00 CEST 2024
Result: 0

First I thought it is a DNS resolution issue and I added my DNS server as override to unbound. But it's still not working when the hooks are triggering the nsupdate.
For me it looks like as the hooks are having race conditions.

On bootup it resolves the IP with unbound but cannot connect to the DNS server
On newwanip it cannot resolve the DNS server anymore
~15 minutes later the cron triggers and all is working fine.

DNS setup on my OPNSense box:

<IP_ADDRESS> / <IP_ADDRESS> as hardcoded dns servers
Prefer IPv4 over IPv6
Do not allow overriding DNS server list by PPPoE

What could be the issue here? What could I do here?

At first glance I'm afraid your overcomplicating the code now, when the hook fires multiple times, the command executed maybe different know due the conditionals.
I would really opt for a simpler setup, less code, less chance of regressions. Maybe keeping it as simple as removing the cache files when execution failed is an easier approach (when restructuring the filenames, the script is almost a one-liner).
Trying ddclient as alternative might also be worth the effort.

No, it triggers extactly as before. See #4055. I think the problem was from the beginning, that the logic does not wait for a working internet connection.
The cron is just a workaround for that problem.

I would really opt for a simpler setup, less code, less chance of regressions.

Definitively. But not sure how to archieve that, as the nsupdate should not block the bootup / hook execution.

Trying ddclient as alternative might also be worth the effort.

I will try that, but I wanted to finish here first. Is there a function in the opnsense code where I can check if there is a working internet connection? Should this maybe the case when the newwanip hook is triggered and maybe there is a problem somwhere else?

Definitively. But not sure how to archieve that, as the nsupdate should not block the bootup / hook execution.

I see. Maybe it's better to use a local workaround for your use-case, maybe a late syshook start script (https://docs.opnsense.org/development/backend/autorun.html) removing the cache files and manually restarting the process.
To guide this into a mergable state will likely cost more time than I can offer (maybe even more than engineering a solution myself, in which case adding the functionality to our native backend in the ddclient plugin likely would make more sense).

I will try that, but I wanted to finish here first. Is there a function in the opnsense code where I can check if there is a working internet connection?

Not really, working is a fluid concept, when nsupdate returns an error code, I would use that, if it doesn't you might try to resolve the remote host, but this might complicate the situation even further.

I just want to throw this into the mix as alternative:
https://docs.opnsense.org/manual/how-tos/caddy.html#use-dynamic-dns-in-client-mode-only
It has this compiled in ready to use:
https://github.com/caddy-dns/rfc2136

@Monviech
Interesting, will try that.
@AdSchellevis
What about the potential race condition in the newwanip hook? That hook is used by many components as it looks like. Should a working internet connection be available when the hook is triggered or has every software take care about that itself?
If there is no easy fix, can we at least merge one of the two workarounds I provided for deleting / not creating the cache files?
The plugin would be still dirty, but at least it can work in combination with the cron created in the OPNSense settings. Right now the plugin is broken for me.

What about the potential race condition in the newwanip hook? That hook is used by many components as it looks like. Should a working internet connection be available when the hook is triggered or has every software take care about that itself?

newwanip is merely an event you can subscribe to when a network device receives an address, it doesn't guarantee internet connectivity in any way (https://docs.opnsense.org/development/backend/legacy.html#configure)

If there is no easy fix, can we at least merge one of the two workarounds I provided for deleting / not creating the cache files?

I'm afraid not as it moves the action in the foreground, peoples setups might freeze during boot as unintended side affect.

The plugin would be still dirty, but at least it can work in combination with the cron created in the OPNSense settings. Right now the plugin is broken for me.

I don't mind the plugin being bad code, as we don't support it officially anyway, but when we merge changes which breaks it for others, it will cost time which would be better spend elsewhere. For us this currently just isn't a priority, if we could push it forward with some tips and review work, that's ok, but only within reasonable limits.


Add vtc.lukechilds.co node

Via https://github.com/lukechilds/docker-electrum-vertcoin

Awesome, thanks for this

No probs.
Spread the word about https://github.com/lukechilds/docker-electrum-vertcoin or https://github.com/lukechilds/docker-vertcoind for anyone looking to get involved.
I've got an insane amount of work atm so won't be very active on Discord/Slack.


[Feature Request] More informative shape in LazyStackedTensorDict with heterogenous tensors

Motivation
Currently, when creating a stack of tensordicts with different shapes, the shape of the heterogenous componenets is reporetd as *.
It would be nice to have a more informative shape printed out, in the following way:
td1 = TensorDict({"a": torch.randn(3, 4, 3, 255, 256)}, [3, 4])
td2 = TensorDict({"a": torch.randn(3, 4, 3, 254, 256)}, [3, 4])
td = torch.stack([td1, td2], 0)

Before:
print(td)
LazyStackedTensorDict(
    fields={
        a: Tensor(*, dtype=torch.float32)},
    batch_size=torch.Size([2, 3, 4]),
    device=None,
    is_shared=False)

proposed change
print(td)
LazyStackedTensorDict(
    fields={
        a: Tensor([2,3,4,*,256], dtype=torch.float32)},
    batch_size=torch.Size([2, 3, 4]),
    device=None,
    is_shared=False)

As mentioned in #135

I won't have the bandwidth to work on this till next Wednesday so if anyone wants to pick it up feel free to do so!


Add docs for OSX install

Adds documentation on how to install and run guetzli on OSX.

I signed it!

@dflynn15 Would you mind changing OSX to OS X?

You could also include MacPorts with:

Install MacPorts
Install libpng and gflags using port: sudo port install libpng gflags.
Run CFLAGS='-I/opt/local/include' LDFLAGS='-L/opt/local/lib' make and expect the binary to be created in bin/Release/guetzli.

Hopefully straightforward to get guetzli added to both brew and port directly too, given that's all it needs in either.

@btnwtn @dflynn15 actually, it's macOS nowadays

@btnwtn @fgilio @dracos I went ahead and updated with the suggestions. Take a look and let me know if anything else needs to be changed!

@dflynn15 Note, that guetzli has been included in Homebrew, so a simple brew install guetzliwill work, too.

@fkistner updated 👍

Thank you very much!


Thumbprint list should only include CA fingerprint

Is your request related to a new offering from AWS?
No
Is your request related to a problem? Please describe.

https://github.com/terraform-aws-modules/terraform-aws-eks/pull/2307 updated the OIDC provider thumbprint_list to include all  certificate fingerprints. This was valid at the time, since that's what the Terraform docs recommended. However, the docs have since been updated to recommend against this (https://github.com/hashicorp/terraform-provider-aws/issues/32847).
Here's what's in the latest docs:

thumbprint_list = [data.tls_certificate.example.certificates[0].sha1_fingerprint]

Additionally, including all fingerprints can cause issues since AWS only allows a maximum of 5 to be specified (https://github.com/terraform-aws-modules/terraform-aws-eks/issues/2632). So if you want to provide extra fingerprints, there may not be room.
I also think that official AWS tooling (Console, eksctl) only populates the CA fingerprint. Here's eksctl, for example:
https://github.com/eksctl-io/eksctl/blob/fb50ae558a9f9c3259fc42bda7cc3957a1d824d5/pkg/iam/oidc/api.go#L113
Describe the solution you'd like.

Go back to the behavior before #2307 and only include the CA fingerprint in thumbprint_list.
Describe alternatives you've considered.

Do nothing and live with the fact that this module behaves differently from what AWS and Terraform recommend.
Additional context

if you'd like to open a PR, I'll merge it


phantomjs prebuilt not working on EC2

Hi,
I developed a code using the node phantom module (https://www.npmjs.com/package/phantom).
It uses a prebuilt phantom binary.
The code runs successfully without any errors on my local system.
I deployed my code on amazon's EC2 instance, and phantom stopped working.
No errors are thrown, it just stops further execution when trying to create a phantom instance.
Are there any steps I need to perform separately on the EC2 instance to get phantom to work?
Edit 1:
I already tried rebuilding the prebuilt binary (npm rebuild).

Try to run PhantomJS directly without any wrapper. Then post the output of the ldd phantomjs command.

@Vitallium
Thanks for the reply, but I was able to pinpoint the issue after deep debugging.
Apologize for not replying to this earlier.
The issue was with my node version(0.10) installed on EC2 which doesn't have support for few inbuilt constructors.


[BUG] Documentation should clarify that node apps should use applicationinsights, not this package

Description/Screenshot
This package's README contains no indication that it is not intended for use with Node.js applications. The closest thing to documentation about use from a non-DOM environment that I was able to find linked from the README was this comment in the suggested sample for the @microsoft/applicationinsights-web-basic package, which made me expect that that package would be the appropriate one to use in a Node environment without DOM access:
    <!-- Light SKU CDN. Use this SKU if you are running in environment with no DOM access.
        SKU functionlity is limited. It does not have curated apis for supported schemas
        in Application Insights and auto collection of data. -->

Neither @microsoft/applicationinsights-web-basic nor @microsoft/applicationinsights-web work in a Node.js environment (at least, not unless an XMLHttpRequest polyfill exists globally) - both of them run without error, but don't actually send any telemetry (they fail silently when trying to use XMLHttpRequest and not finding it).
The Azure diagnostics when a user makes this mistake are not useful; the only meaningful suggestion they make is to "double check your instrumentation key".
Steps to Reproduce

Be a user with no past experience using App Insights
Have a node.js app you'd like to instrument with telemetry
Ask a search engine for the "Application Insights JavaScript SDK"
Find this repo's README and attempt to follow its instructions
Spend a bunch of time confused when using the SDK gives you no errors, but silently fails to send data

Expected behavior

The README should include prominent documentation that if you're trying to instrument a Node.js app, you want https://github.com/microsoft/ApplicationInsights-node.js instead of this repo/package
These Azure docs should be updated similarly (with a pointer to these docs)
The comment at the top of the -basic package's sample should similarly clarify that it isn't intended for non-Browser environments, even though it specifically mentions non-DOM environments
If the SDK needs an XMLHttpRequest implementation to work, it should check whether one is available during initialization and fail fast if none is available. The error message should suggest that if this is a Node.js environment, you should use the applicationinsights package instead.
The Azure TroubleshootDiagnoseBlade suggestions under the path "Application Insights > Diagnose and solve problems > Configure and sending data using Open Telemetry or Application Insights SDK > I need to monitor a non-Web App (console, etc.)" should contain a specific suggestion for a user in this scenario.

Additional context
n/a

[ ] The README should include prominent documentation that if you're trying to instrument a Node.js app, you want https://github.com/microsoft/ApplicationInsights-node.js instead of this repo/package

[ ] These Azure docs should be updated similarly (with a pointer to these docs)

[ ] The comment at the top of the -basic package's sample should similarly clarify that it isn't intended for non-Browser environments, even though it specifically mentions non-DOM environments

[ ] If the SDK needs an XMLHttpRequest implementation to work, it should check whether one is available during initialization and fail fast if none is available. The error message should suggest that if this is a Node.js environment, you should use the applicationinsights package instead.

[ ] The Azure TroubleshootDiagnoseBlade suggestions under the path "Application Insights > Diagnose and solve problems > Configure and sending data using Open Telemetry or Application Insights SDK > I need to monitor a non-Web App (console, etc.)" should contain a specific suggestion for a user in this scenario.

Should the last two items be separated into:

An engineering issue/request?
A support suggestions edit request that wouldn't be tracked externally?


I'm trying to connect the light switch to Homebridge so I can have it in Homekit, and I cant find a 32 digit serial number anywhere on the product?
Ben

If you have your username and password in the plugin config, the uuids of your devices will be shown in the homebridge log when the plugin loads!

Got it. Thanks
Sent from my iPhone

On 28 Nov 2021, at 13:39, Ben @.***> wrote:

If you have your username and password in the plugin config, the uuids of your devices will be shown in the homebridge log when the plugin loads!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.


Unable to access image on the browser (rails 3.1.3)

I am using rails 3.1.3.
Inside config/ application ->  config.assets.enabled = true
Inside development.rb   -> config.assets.compress = false
Inside production.rb  ->  config.serve_static_assets = false;
config.assets.compile = false
I have images placed in assets/images.  If i do localhost:3000/assets/
image  I get the image in the browser, but
unfortunately, on the browser i am unable to view the images,
I am getting following errors in development mode. Haven't tested yet
in production.
Started GET "/winecountry_part2.jpg" for <IP_ADDRESS> at 2011-11-26
12:56:40 -0800
ActionController::RoutingError (No route matches [GET] "/
winecountry_part2.jpg"):
Rendered /Users/jayparteek/.rvm/gems/ruby-1.9.2-head@default/gems/
actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/
routing_error.erb within rescues/layout (0.6ms)

Asset pipeline.


[TEST] enhance the system_restores_cleanup for the case of test_upgrade.

What's the test to develop? Please describe
Fix failed the upgrade test case
system backup restore feature is supported since v1.4.0
We need to enhance the system_restores_cleanup for the case of test_upgrade.
Describe the items of the test development (DoD, definition of done) you'd like

[x] Modify script
[x] Script run well on pipeline

Additional context
N/A

The PR-1239

[x] test_system_backup_restore.py test result
[x] regression test result
[x] upgrade regression test result

Create the PR-1243 backport PR-1191 & PR-1239 to v1.4.x

[x] test_system_backup_restore.py test result
[x] regression test result

[x] Re-run the failed cases test result

The PR-1239 was merged to master-head
The PR-1243 was merged to v1.4.x-head


Bump storybook, fix infinite loading

Updates dependency to prevent storybook from crashing.

Codecov Report

Merging #1538 (fa309c6) into develop (4d6be34) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head fa309c6 differs from pull request most recent head 3929eb8. Consider uploading reports for the commit 3929eb8 to get more accurate results

: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            @@
##           develop    #1538   +/-   ##
========================================
  Coverage    73.03%   73.03%
========================================
  Files           93       93
  Lines         5011     5011
  Branches       817      817
========================================
  Hits          3660     3660
  Misses        1345     1345
  Partials         6        6

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


Updates to next teams functionality

An user should be able to define the round and teams being played up next.
Store this data in a new replicant (upcomingRound?) similar to the activeRound being made in 3.0.0, but without keeping scores or winners.

Done by #38


Add schema for /connectivity/containerRegistries

What this PR does / why we need it
Towards https://github.com/giantswarm/roadmap/issues/2127
The goal of this PR is to add the missing property schema for /connectivity/containerRegistries.
The schema was already available in cluster-cloud-director and example values were found in values.yaml.
Checklist

[ ] Update changelog in CHANGELOG.md.

Trigger e2e tests

/test create
/test upgrade

/test create

/test create
/test upgrade


Inova - Jobs number from  "peviitor.ro" is not the same  like "www.inova-group.ro" page .

ENVIRONMENT: production
URL: https://scrapers.peviitor.ro
Browser: Chrome
Device: Laptop
OS: Windows 10
STEPS TO REPRODUCE:

Open the URL in the browser
Search for "Inova" Company
3.Click on the "Careers" button.
Open page  https://www.inova-group.ro/cariere/
Click on the "See Jobs" button
Open page https://peviitor.ro/rezultate?q=inova&country=România&page=1

EXPECTED RESULTS:
Jobs number from  "peviitor.ro" is the same  like "www.inova-group.ro" page .
ACTUAL RESULTS:
Jobs number from  "peviitor.ro" is not the same  like "www.inova-group.ro" page .

Re-tested, Jobs number from "peviitor.ro" is the same like "www.inova-group.ro" page .


Dockerize unit tests github action

Rewrite github action for unit tests to use a docker image that has all dependencies installed.

pull turbinia-worker-dev latest docker image
rebuild docker image against checked out source

this uses cached layers for anything that was not changed, so should be fast if you have not eg changed requirements.txt

set up test dependencies (tox etc)
execute tests

Example run: https://github.com/hacktobeer/turbinia/runs/1968553927?check_suite_focus=true
Example run with failed test: https://github.com/hacktobeer/turbinia/runs/1968418590?check_suite_focus=true
Runtime is approx 2-3 minutes.
Fixes #754

@aarontp wanna have a quick look?

That's quite a speed improvement, thanks!


consider including a puppet function to start the repl and wait on its exit

When you are debugging puppet code it is difficult to figure out the state at a certain point in the logic. What you need to do then is to add calls to either notice or to include notify resources that tells you the value of some variables. What you really want to do is to have a real debugger, but being able to start the repl instead is a half decent solution.
You can add a function that when called starts the repl. User can then look at things in scope, inspect variables, conduct experiments etc. When they exit from the repl the execution continues.
The result is a poor-man's debugger, but it is better than no debugger :-)

yea, I thought of that.  Almost like a binding.pry.  That would be pretty killer.

I created this function here: https://gist.github.com/logicminds/3ab56cfa4611f5f23483e82a1f10c90a
However, I need to set the loaders now in order to load a real context

I took a quick look. Not sure I understand your question about “setting loaders” in order to load a real context.

henrik

On 08 Apr 2016, at 17:32, Corey Osman<EMAIL_ADDRESS>wrote:
I created this function here: https://gist.github.com/logicminds/3ab56cfa4611f5f23483e82a1f10c90a https://gist.github.com/logicminds/3ab56cfa4611f5f23483e82a1f10c90a
However, I need to set the loaders now in order to load a real context
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub https://github.com/nwops/puppet-repl/issues/8#issuecomment-207481121

This function has been released https://forge.puppet.com/nwops/repl which only works with puppet-repl 0.1.0.


DoubleRelease issue

Getting an error every time using logger.
My Config
const logger = winston.createLogger({

  format: format.combine(
    format.colorize(),
    format.timestamp({
      format: 'YYYY-MM-DD HH:mm:ss',
    }),
    format.printf(info => `${info.timestamp} ${info.level}: ${info.message}`),
  ),

  transports: [
    new winston.transports.Console(options.console),
    new winston.transports.File(options.file),
    new Postgres({
      connectionString: `postgres://${userName}:${password}@${hostName}:${dbPort}/${dbName}`,
      level: 'info',
      poolConfig: {
        connectionTimeoutMillis: 0,
        idleTimeoutMillis: 0,
        max: 10,
      },
      tableName: 'winston_logs',
    }),
  ],
});

(node:71328) UnhandledPromiseRejectionWarning: Error: Release called on client which has already been released to the pool.
    at throwOnDoubleRelease (/Users/lalitjoshi/Workspace/React/live-objects/node_modules/winston-pg-native/node_modules/pg-pool/index.js:29:9)
    at module.exports.client.release (/Users/lalitjoshi/Workspace/React/live-objects/node_modules/winston-pg-native/node_modules/pg-pool/index.js:251:9)
    at /Users/lalitjoshi/Workspace/React/live-objects/node_modules/winston-pg-native/lib/winston-pg-native.js:149:16
(node:71328) 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: 1)
(node:71328) [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.

I'm also facing the same issue in my project node server.

Did you guys find solution for this?

Not yet.


Build instructions

Can you please add instructions for building from source? (including for people unfamiliar with Go) I want to try the workaround in https://github.com/remind101/assume-role/issues/54#issuecomment-779355310 but not sure how to build.

Hopefully this will help - I've had the same problem, not too familiar with Go (yet), but figured out how to get it to work.

Clone the pr repo to somewhere on your machine: git clone git@github.com:ibisnetworks/assume-role.git
Using this article as a guide:

cd to the cloned directory
Make sure you have go 1.16+ installed, then run these commands:
GOOS=darwin GOARCH=amd64 go build -o assume-role main.go
You can now test the binary using ./assume-role (you should see some output instead of the segment fault that appeared before)
I then copied this binary to the local bin using sudo cp assume-role /usr/local/bin. You might not want to do it this way - you could add the new location to your path, I guess, but this worked for me.
You can now test in your terminal with assume-role. You should see the same output you saw a couple of steps above

The assume-role command should now be available to use as it was previously.

Thanks to madsenibis for the work in the pr.

I'm getting errors running this:
main.go:16:2: no required module provides package github.com/aws/aws-sdk-go/aws: go.mod file not found in current directory or any parent directory; see 'go help modules'
main.go:17:2: no required module provides package github.com/aws/aws-sdk-go/aws/credentials: go.mod file not found in current directory or any parent directory; see 'go help modules'
main.go:18:2: no required module provides package github.com/aws/aws-sdk-go/aws/credentials/stscreds: go.mod file not found in current directory or any parent directory; see 'go help modules'
main.go:19:2: no required module provides package github.com/aws/aws-sdk-go/aws/session: go.mod file not found in current directory or any parent directory; see 'go help modules'
main.go:20:2: no required module provides package github.com/aws/aws-sdk-go/service/sts: go.mod file not found in current directory or any parent directory; see 'go help modules'
main.go:21:2: no required module provides package gopkg.in/yaml.v2: go.mod file not found in current directory or any parent directory; see 'go help modules'

I'm not a go dev, and I'm not sure how to proceed here.

I'm getting errors running this:
main.go:16:2: no required module provides package github.com/aws/aws-sdk-go/aws: go.mod file not found in current directory or any parent directory; see 'go help modules'
main.go:17:2: no required module provides package github.com/aws/aws-sdk-go/aws/credentials: go.mod file not found in current directory or any parent directory; see 'go help modules'
main.go:18:2: no required module provides package github.com/aws/aws-sdk-go/aws/credentials/stscreds: go.mod file not found in current directory or any parent directory; see 'go help modules'
main.go:19:2: no required module provides package github.com/aws/aws-sdk-go/aws/session: go.mod file not found in current directory or any parent directory; see 'go help modules'
main.go:20:2: no required module provides package github.com/aws/aws-sdk-go/service/sts: go.mod file not found in current directory or any parent directory; see 'go help modules'
main.go:21:2: no required module provides package gopkg.in/yaml.v2: go.mod file not found in current directory or any parent directory; see 'go help modules'

I'm not a go dev, and I'm not sure how to proceed here.

@brunns which version of go did you install? I think we've seen something similar and was possibly related to v1.19.x of go. If you are on 1.19.x, try using 1.18.8 and see if that helps.

Ah, yes, I'm on 1.19.3.


Updates to macvlan/ipvlan experimental docs

Added a few more diagrams.
Fixed typos and a few additional  details.

Signed-off-by: Brent Salisbury<EMAIL_ADDRESS>

LGTM. thanks @nerdalert

Thanks @nerdalert LGTM; can you rebase, because there's merge conflicts

@thaJeztah done thanks!

thanks! LGTM

ping @vdemeester for review/merge

let me merge, taking @mavenugo's LGTM into account; these are experimental docs, so will be revisited once this leaves experimental


Updating a model doesn't change date/file time (and some files can be corrupted)

Modeler version 1.11.3 on Windows 10
Case 1:
Open an existing model
Modify the model
Save the model
File date/time doesn't change
Case 2:
Create a new model
Save the model over an existing file
File date/time doesn't change and remain the same of the existing file
In case you have a system problem because of USB stick failure (when Win refuses to unmount the USB stick), some files result corrupted even if the I've edited all the files on the harddisk and I've saved it before closing the Modeler.
It happens to me three times in the last two days.
Davide

Closing this as we don't have a reliable way to reproduce this issue.


Add build YAML files for code coverage

Description
This pull request adds YAML files to set up build pipelines for code coverage.
Specific Changes
We added two YAML files inside the folder build-CI-yaml in the root folder.
The added files are:

Build-Code-Coverage.yml
Code-Coverage-w-Coverlet

How to use
The next steps will guide you through the configuration of a Build pipeline based on the YAML file.
Set up build pipeline
1- Create a pipeline using the classic editor, this option allows us to select the YAML file to configure the pipeline.

2- Configure the repository and branch.

3- In the Configuration as code, select the YAML option.

4- In section YAML, write the build name and select the build YAML file inside the folder build-CI-yaml in the root of the directory.

5- Hit Save & Queue, select the branch you want to use to run the build and click Save and Run

Testing
In the image below, you can see the pipelines running using these YAML files to set them up.

Pull Request Test Coverage Report for Build 95443

0 of 0   changed or added relevant lines in 0 files are covered.
284 unchanged lines in 48 files lost coverage.
Overall coverage decreased (-0.4%) to 78.119%

Files with Coverage Reduction
New Missed Lines
%

/libraries/Adapters/Microsoft.Bot.Builder.Adapters.Facebook/FacebookAdapter.cs
1
94.03%

/libraries/Adapters/Microsoft.Bot.Builder.Adapters.Facebook/FacebookAdapterOptions.cs
1
92.31%

/libraries/integration/Microsoft.Bot.Builder.Integration.ApplicationInsights.Core/ApplicationBuilderExtensions.cs
1
75.0%

/libraries/Microsoft.Bot.Builder.AI.LUIS/LuisApplication.cs
1
97.37%

/libraries/Microsoft.Bot.Builder.AI.LUIS/V3/LuisApplication.cs
1
97.37%

/libraries/Microsoft.Bot.Builder.AI.LUIS/V3/LuisUtil.cs
1
95.24%

/libraries/Adapters/Microsoft.Bot.Builder.Adapters.Twilio/TwilioAdapter.cs
2
91.67%

/libraries/Adapters/Microsoft.Bot.Builder.Adapters.Webex/WebexAdapter.cs
2
92.11%

/libraries/integration/Microsoft.Bot.Builder.Integration.AspNet.Core/HttpHelper.cs
2
94.87%

/libraries/integration/Microsoft.Bot.Builder.Integration.AspNet.Core/Skills/SkillHttpClient.cs
2
0.0%

Totals

Change from base Build 95237:
-0.4%

Covered Lines:
19150

Relevant Lines:
24514

💛  - Coveralls

:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.AI.Luis.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.AI.QnA.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.ApplicationInsights.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.Azure.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.Dialogs.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.Integration.ApplicationInsights.Core.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.Integration.AspNet.Core.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.TemplateManager.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.Testing.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Configuration.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Connector.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Schema.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Streaming.dll compared against version 4.6.3

:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.AI.Luis.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.AI.QnA.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.ApplicationInsights.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.Azure.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.Dialogs.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.Integration.ApplicationInsights.Core.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.Integration.AspNet.Core.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.TemplateManager.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.Testing.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Configuration.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Connector.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Schema.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Streaming.dll compared against version 4.6.3

Can you sync w/ @BruceHaley to get this finalized and merged?

Sure @cleemullins, we'll do that and let you know the progress. Thanks!

:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.AI.Luis.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.AI.QnA.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.ApplicationInsights.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.Azure.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.Dialogs.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.Integration.ApplicationInsights.Core.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.Integration.AspNet.Core.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.TemplateManager.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.Testing.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Configuration.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Connector.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Schema.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Streaming.dll compared against version 4.6.3


Documentation Checklist, Keycloak "Cuahsi SSO"

This checklist details documentation needed to prepare users for the transition to Keycloak integration or "Cuahsi Single Sign on"
To include:

[ ] A sign in banner
[ ] HydroShare Home Page Banner
[ ] Documentation first on help.hydroshare.org ,maybe on cuahsi.org eventually
[ ] Text on account linking interface

Text for messaging and image mockups

#5157

@sblack-usu @devincowan

closing as complete 2.9.2 release


The losss_vec and loss location in train_fn

@FabianIsensee Hi, sir. Sorry, another question. In the line 179 of train_network.py: train_fn = theano.function([x_sym, seg_sym], [loss, acc_train, loss_vec], updates=updates), but in the line 238: loss_vec, acc, l = train_fn(data, seg). Maybe the losss_vec and loss location should be swapped, is it? Thank you!

You are right that is not 100% correct, but that does not matter because all I do with loss_vec/loss is get the mean and for that the result is equavalent. The distinction between loss and loss_vec is only important for the parameter updates (line 175) and there the correct loss variable is used

@FabianIsensee Thank you, sir. But I am still confused. loss and loss_vec are two different variables: loss = loss_vec.mean(), loss += l2_loss and they differ greatly.

@FabianIsensee By browsing the tutorial of theano I have made this problem clear. Thank you!


[feat] Add support for <base target="_blank">

Describe the problem
Instead of making sure every single link has target="_blank", there is an option in HTML for setting the default target for all links. However, this feature does not seem to be supported - links are not opened in external browser.
Describe the solution you'd like
<base target="..."> tag should be respected and links should be opened in the external browser.
Alternatives considered
No response
Additional context
No response

can you provide tauri info this was implemented in https://github.com/tauri-apps/tauri/pull/7344

@amrbashir
[✔] Environment
    - OS: Mac OS 12.7.3 X64
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.76.0 (07dca489a 2024-02-04)
    ✔ cargo: 1.76.0 (c84b36747 2024-01-18)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-x86_64-apple-darwin (default)
    - node: 21.6.2
    - npm: 10.2.4

[-] Packages
    - tauri [RUST]: 1.4.1
    - tauri-build [RUST]: 1.4.0
    - wry [RUST]: 0.24.4
    - tao [RUST]: 0.16.2
    - @tauri-apps/api [NPM]: 1.5.3
    - @tauri-apps/cli [NPM]: 1.5.9 (outdated, latest: 1.5.11)

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: ../dist
    - devPath: http://localhost:5881/
    - framework: React (Next.js)
    - bundler: Vite

Checked on my Windows PC and it works as expected:
[✔] Environment
    - OS: Windows 10.0.22631 X64
    ✔ WebView2: 122.0.2365.80
    ✔ MSVC: Visual Studio Community 2022
    ✔ rustc: 1.72.0 (5680fa18f 2023-08-23)
    ✔ cargo: 1.72.0 (103a7ff2e 2023-08-15)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 18.16.0
    - npm: 9.5.1

[-] Packages
    - tauri [RUST]: 1.4.1
    - tauri-build [RUST]: 1.4.0
    - wry [RUST]: 0.24.4
    - tao [RUST]: 0.16.2
    - tauri-cli [RUST]: 2.0.0-alpha.9
    - @tauri-apps/api [NPM]: 1.5.3
    - @tauri-apps/cli [NPM]: 1.5.9 (outdated, latest: 1.5.11)

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: ../dist
    - devPath: http://localhost:5881/
    - framework: React (Next.js)
    - bundler: Vite

this feature was added in 1.5, and I see you have 1.4 in your Cargo.toml, try updating that version and run cargo update inside src-tauri


about this function:_make_divisible()

Hi!!!
What does this function do? ---->>_make_divisible(), Both channels and exp_size are processed by this function， why? It seems that the original paper did not mention？

It is used to make sure the number channel can be divide by 8（for example）. You can see it in MobileNetV2.

都是中国人，不能用汉语交流吗:-D

It is used to make sure that the number channel can be divide by 8（for example）. You can see it in MobileNetV2.

哪里说过

It is used to make sure that the number channel can be divide by 8（for example）. You can see it in MobileNetV2.

哪里说过

https://github.com/d-li14/mobilenetv2.pytorch/blob/master/models/imagenet/mobilenetv2.py
 This function is taken from the original tf repo.
It ensures that all layers have a channel number that is divisible by 8

It is used to make sure that the number channel can be divide by 8（for example）. You can see it in MobileNetV2.

哪里说过

https://github.com/d-li14/mobilenetv2.pytorch/blob/master/models/imagenet/mobilenetv2.py
 This function is taken from the original tf repo.
It ensures that all layers have a channel number that is divisible by 8

通过这个操作，在占用空间和精度上做调节，我理解的对吗

@AishuaiYao 他的意思是放缩网络宽度保证channel数被8整除，被8整除可能有点玄学，个人觉得与计算机底层01有关，毕竟现在所有网络的channel都是2的倍数

都是中国人，不能用汉语交流吗:-D

骚得一批


LA Noire incorrect colors

some stuff has incorrect colors like this one, this is supposed to be blood but it is purple.
Software information
opensuse 15.1
linux 4.16.16

System information

GPU: rx460
Driver: mesa 18.2.3
Wine version:  3.17
DXVK version:  master git

Please record and upload an apitrace and don't just ignore that section of the issue template.

I don't know how to debug it's a 32 bit installation, the apitrace binary from jrfonseca doesn't work. I tried compiling apitrace but it doesn't generate a exe file. I need to look this more carefully.

ok I see now there are some files to download from dropbox.

with apitrace it crashes it that suppose to happen? can't get past the loading screen.
LANoire_d3d11.log
LANoire_dxgi.log
Apitrace
LANoire.1.zip

The Apitrace is incomplete. It ends after 1 second and thus doesnt even make it to the menu, let alone ingame.
Please try to make another one that actually shows the issue.

new trace it crashes
LANoire.2.zip

I have no idea how to do this now I get a stack overflow, game is stuck.

Well, that's completely useless then.

I'm using llvm 8 svn revision 345xxx. I think the fix hasn't been backported to other versions ¿maybe this is the patch https://reviews.llvm.org/D53160? not sure just guessing here.

yaay another game that runs flawless goes to the list. I love opensource.

Thanks for reporting back. LLVM bugs are particularly annoying because of the release cycle.

I'm using  svn revision 345610 to be precise (llvm 8.0.0)

I'm

Thanks for reporting back. LLVM bugs are particularly annoying because of the release cycle, I have my doubt that it'll get fixed in a point release.
thanks for the tip .  Maybe I should build the full stack with a reverse patch, but for now I'll just keep and eye on this, let's hope it will get fixed in a point release
(building the full stack is really time consuming)

@doitsujin some of these bug can have a workaround in mesa. it would be nice to raise the issue to mesa devs.

the bug is also affected by lighting and perspective, in the night stuff will look purple but on daylight it will look pink. And looking closer or distant can trigger the bug on/off.

Sorry for hijacking this issue, but how did you get it to run in wine?

Sorry for hijacking this issue, but how did you get it to run in wine?

You need to set a 32 bit prefix install dotnet35sp1 with winetricks. Then install DirectX 9 but without winetricks because the game requires directx query driver executable, but you don't want it to override the wine system libraries in wine config, then install d3dx9_43 and d3dx9_42 dll with winetricks. Download the game with steam but remove or rename all the 3rd components that install when you first start the game except the Rockstart social club.(in the game folder 3rd components folder something similar it's called)
https://www.gamingonlinux.com/forum/topic/537/page=1

if you are not using steam then u need to install rockstar social club, download it from the rockstar site, just make sure that when u launch the game from the first time it doesn't install dotnet again because if it does you will have to start all over again an install dot net 3.5 sp1 through winetricks again.

maybe on the weekend I can check if the bug is present on bionic beaver with padoka repo.
This is opensuse 15.1 with this repo https://build.opensuse.org/package/show/home:khnazile:video
on the repoe, the llvm svn revision before this was 344705 and the bug was still present. So I'm not sure if it is the patch I say because it was introduced in revision   344698.

hmm no this is not solved it improved a lot but still looking funky.
here's a similiar picture now blood looks a brown greenish

but now if I look from a different angle it looks ok

the roof looks greenish also

but now if I look from a different angle it looks ok also

so it improved before it was a lot more funkier, it's not fixed, but something changed surely.

I swear I didn't see that problems before and I played a whole chapter to be sure. Just updated my system maybe it's something else that's triggering this?? not sure.

now if I crank textures, lighting and LOD to maximum this is what happens
roof look ok from different perspectives (I think it still looks funky, not sure though)

and blood looks different and it doesn't change color when changing perspective, but again I'm not sure this is the correct color, but still imho is and improvement .

so maybe @libcg is right and this can be avoided by some mesa setting/override.

ok I think I've nailed. I want to document this not only because someone else will find it useful but also because I was beggining to think I'm crazy,(lol)
this are the screenshots with
winetricks glsl=disabled
the roof looks ok  from different perspectives

blood looks ok also

this shelf usually is really badly rendered also

so I spend the whole day trying to reproduce the bug in ubuntu bionic beaver, but I can get steam to connect to the network I give up on ubuntu, for now.
Now I fired the game again on opensuse without touching anything and again it's bugged. So it seems that some software (maybe radv?) is producing sometimes good rendering and sometimes bad rendering, it doesn't matter what you do. So I was not crazy lol.

tried with amdvlk open driver and the bug is there. Not a radv issue. Reopening this.

I won't be able to debug this.

I would like to reproduce the issue but can't get the game to run on Wine.
Did you do anything special (winetricks, 32bit or 64bit prefix, staging?) to make it work?

32 bit
1- install dotnet35
2- install directx 9 with the executable not with winetricks.
3- Install d3d9_43 and 42 dll with winetricks
4- install rockstar social club
5- remove everything from the 3rd components folder and launch.
also you probably need Mesa 18.2 or higher.

No luck getting a trace for this.

No luck getting a trace for this.
 Does a windows os apitrace helps??

Got an apitrace from someone else, looking at this right now.

Should be fixed with latest master. The issue was that the game does not initialize all its textures correctly and some contained undefined data as a result.

can confirm fixed in master. Thank you very much!


add github and twitter icons to the footer

Looks a little weird on desktop. Thoughts on how to make it look better, @donokuda?
Macbook Pro 13

Mobile

Maybe we could drop the "made with love" thing and replace it? After all, Electron is not just a GitHub joint anymore...

Maybe we could drop the "made with love" thing and replace it? After all, Electron is not just a GitHub joint anymore...

👍  Yeah, I think dropping the "made with love" would be a nice gesture towards all the other contributors and GitHub wouldn't look like it's trying to take all the credit.
How does it feel to replace "made with love" with the GitHub and Twitter icon?

I'm 👍 for removing the "made with love" as well and having the social links replace them. If we're adding the link to GitHub on the bottom, would it make sense to remove the link in the header?

Okay I took out "made with love" and replaced it with icons linking to GitHub and Twitter.

would it make sense to remove the link in the header?

@donokuda I'm open to it, but if we do I think we should consider replacing it with a text link to GitHub, so folks can still discover the GitHub org easily.
This is ready for 👀 again.


programs.tmux.secureSocket unused

This option doesn't seem to be used anywhere?

@kalbasit Perhaps you could help a bit with this? I know very little about tmux.

I believe I copied the option over, but not the actual implementation. I'll file a PR to copy the implementation over.

@kalbasit Thanks for the fix!


Release: 3.1.1

Why didn't CI run on this PR?

Closing this due to lack of activity. Please re-open if needed.


Get rid of HandlerService #3555

Description (required)
Removed HandlerService class.
Implemented upload queue with PublishProcessor.
Fixes #3555
What changes did you make and why?
Substituted HandlerService with UploadService.
Tests performed (required)
Tested betaDebug on emulator with API level 28.

Codecov Report

Merging #3671 into master will increase coverage by 0.01%.
The diff coverage is 2.56%.

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

Since this is one of critical areas of the code, I added 3 more reviewers.

My tests:
Single upload worked as intended :heavy_check_mark:
Multiple upload worked as intended :heavy_check_mark:
Other required tests:
Nearby upload

@VitalyVPinchuk Can you resolve the merge conflicts.

@VitalyVPinchuk Can you resolve the merge conflicts.

@maskaravivek Done


Mass Import Files?

Description
Question/Discussion: What is the best way to mass-import many files? I need to import about 200.000 text files. Currently my only working solution would be to upload all the files in batches of size 500 into github folders. And then import these folders via the GitHub reader one by one manually, whenever the current import is completed. Is there an easier way to do this, possibly directly by sending the file bytes via an API endpoint?
Is this a bug or a feature?

[ ] Bug
[x] Feature

Steps to Reproduce
[see above]
Additional context
[None]

Good point. There is currently no feature for mass importing files, but we'll add it to the feature list.

Good point. There is currently no feature for mass importing files, but we'll add it to the feature list.

Would it be possible to support you in the implementation of mass importing files? I really need the functionality and have the skills to do it. If possible, we could have a short online meeting of 30-60mins to introduce or explain the current importing mechanism and how it can be extended?

We're currently implementing mass importing files in the upcoming v2 version, which should be released in a couple of weeks. If you need the functionality now, you can add it yourself, the source code of the frontend and backend are all available here 😄

Implemented the mass import functionality in the newest release

Implemented the mass import functionality in the newest release

Where is this implemented? I see no documentation for it. I found one backend endpoint @app.websocket("/ws/import_files"), is it this one? And if so, how can I make it work? I tried to understand the code more but it keeps failing. I send valid data to this endpoint that it passes the validation for DataBatchPayload but it fails in add_batch() when calling self.check_batch() to generate the fileConfig. It doesn't pass the validation of being a FileConfig. Following through the code, it is only the value of the chunks field as shown in the code (goldenverba/server/helpers.py):
chunks = self.batches[fileID]["chunks"]
data = "".join([chunks[chunk] for chunk in chunks])

But then it could never be true to be of the required format FileConfig? Some documentation would be nice. Maybe this isn't even the intended functionality. Generally it is good practice to mention the fixed issue in the commit of where it is being resolved. I am also confused why there is no more technical documentation in the repository? The hyperlink still exists in the README but it points to nothing and the technical markdown file has been deleted with no replacement.

Good point! We added mass importing file functionality via the frontend, the FastAPI endpoints are currently only optimized to communicate with the frontend. Can you share with me more information on what functionality you need? We're working on a user API to make is easier to use programmatically in the future.
And I agree, we're currently reworking the technical documentation, will be re-added soon 🚀

I am doing a mass import now and get this message, I can work around it because not that many files, but thought i'd mention it
WebSocket connection died after every successfully processed pdf. These pdf files are pretty large though, most of the time consiting of 100-200 pages


Mention dependence on async-trait

Without async-trait as a dependency of my project it was failing to compile with the below message. I saw the example depended on it even though it was never explicitly included so I decided to try adding it, and it fixed the compiler error.
Possibly hugsqlx should provide it, or make it explicit the user must bring it into scope in files that use the HugSqlx trait :)
error[E0706]: functions in traits cannot be declared `async`
 --> src/fun.rs:3:10
  |
3 | #[derive(HugSqlx)]
  |          ^^^^^^^ `async` because of this
  |
  = note: `async` trait functions are not currently supported
  = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
  = note: this error originates in the derive macro `HugSqlx` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0433]: failed to resolve: use of undeclared crate or module `async_trait`
 --> src/fun.rs:3:10
  |
3 | #[derive(HugSqlx)]
  |          ^^^^^^^ use of undeclared crate or module `async_trait`
  |
  = note: this error originates in the derive macro `HugSqlx` (in Nightly builds, run with -Z macro-backtrace for more info)

Thanks for bringing this up. As mentioned in #2 - I'm still unsure about the general strategy around dependencies (should I enforce them in my crate or delegate it to consumers), so as for now I'm making it clear in documentation what crates HugSQLx depends on.


fix: use runsOn instead of istio

fixes: #1158

Launcher Frontend preview: https://1179-pr-app-launcher-frontend-fabric8-launcher.surge.sh

Storybook preview: https://1179-pr-storybook-launcher-frontend-fabric8-launcher.surge.sh

Launcher Frontend preview: https://1179-pr-app-launcher-frontend-fabric8-launcher.surge.sh

Storybook preview: https://1179-pr-storybook-launcher-frontend-fabric8-launcher.surge.sh


More debug messages for unixODBC issues

On one of my CentOS 7 machines I have an unixODBC issue which I can't figure out how to solve.
odbcinst -j works, loads the correct ODBCSYSINI env variable. My unixODBC version is 2.3.1
isql -k ... works, successfully connects
odbc2parquet throws unixODBC error S1009, Invalid attribute value (native error 0)
even odbc2parquet list-drivers throws the same error, so it's not about the DSN
ODBC Environment created is also printed
Would it be possible to add some more details to the error message? (I tried -v -vvv etc)

Some progress:

Checking with strace didn't really help, I see that it opens the correct odbcinst.ini files which work.
I downloaded the odbc2parquet, odbc-api and odbc-sys repositories. It's likely that the outdated unixODBC version is the culprit, I believe it doesn't support Odbc3_80 (it dies when setting that attribute)

Installing unixodbc in a conda environment and setting the LD_LIBRARY_PATH to the conda lib dir resolves the issue.

Hello @alippai ,

Would it be possible to add some more details to the error message? (I tried -v -vvv etc)
Adding more details to a specific ODBC diagnostic messages is not possible, as these messages are created by the driver manager (and in most other cases also by the driver of the data source itself).

Adding more context however while is an entirely different matter. We can probably always improve in the dimension of explainig to the user what the application has been trying to do as the error occurred. In the specific case you experienced the error would have always been the same, but the artefact could have provided context, that it occurred while trying to specify the ODBC Version.
These log messages are probably best added upstream to the odbc-api crate.

Yes, I agreem I'll try to do add error message for the unsupported ODBC version in odbc-api

Adding more details to a specific ODBC diagnostic messages is not possible, as these messages are created by the driver manager (and in most other cases also by the driver of the data source itself).

 We can of course always translate the error returned by ODBC. Thankfully you provided enough details to spare any future soul experiencing the same problem the debugging you had to do.
Fixed upstream in odbc-api: https://github.com/pacman82/odbc-api/commit/dd849fbe817c9096f4adb7f36b27123e8c0ca8d3

I'm sorry for being slow on this. The change looks good, thank you

@alippai Nothing to be sorry for. You did the lionshare of the work by debuging the problem and giving a detailed report. Change is going to be released shortly as 0.6.5.