Use back up versions in case pip-compile fails to do dependency resolution

This is a fix for the following issue https://github.com/nvie/pip-tools/issues/366 where two level dependencies in turn have a single dependency that are pinned to different versions respectively. In such a case the following error happens.
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Finding the best candidates:
  found candidate alabaster==0.7.9 (constraint was >=0.7,<0.8)
  found candidate argh==0.26.2 (constraint was >=0.24.1)
  found candidate argparse==1.4.0 (constraint was <any>)
  found candidate asq==1.0 (constraint was ==1.0)
  found candidate astroid==1.0.1 (constraint was ==1.0.1)
  found candidate autopep8==1.1.1 (constraint was ==1.1.1)
  found candidate babel==2.3.4 (constraint was >=1.3,!=2.0)
  found candidate backports.ssl-match-hostname==<IP_ADDRESS> (constraint was <any>)
  found candidate beautifulsoup4==4.4.1 (constraint was ==4.4.1)
  found candidate billiard==<IP_ADDRESS> (constraint was >=<IP_ADDRESS>,<3.4)
  found candidate bleach==1.4.2 (constraint was ==1.4.2)
  found candidate blessings==1.6 (constraint was ==1.6)
  found candidate celery==3.1.19 (constraint was ==3.1.19)
  found candidate celery-redis-sentinel==0.3 (constraint was ==0.3)
  found candidate certifi==2016.8.31 (constraint was <any>)
  found candidate cffi==1.7.0 (constraint was ==1.7.0)
  found candidate click==6.3 (constraint was ==6.3)
  found candidate contextlib2==0.5.4 (constraint was <any>)
Could not find a version that matches coverage==3.6,==3.7.1,>=3.4
Tried: 2.8, 2.77, 2.78, 2.80, 2.85, 3.0b3, 3.0, 3.0.1, 3.1b1, 3.1, 3.2b1, 3.2b2, 3.2b3, 3.2b4, 3.2, 3.3, 3.3.1, 3.4b1, 3.4b2, 3.4, 3.5b1, 3.5, 3.5.1b1, 3.5.1,
 3.5.2b1, 3.5.2, 3.5.3, 3.6b1, 3.6b2, 3.6b3, 3.6, 3.7, 3.7.1, 4.0a1, 4.0a2, 4.0a3, 4.0a4, 4.0a5, 4.0a5, 4.0a5, 4.0a6, 4.0a6, 4.0a6, 4.0b1, 4.0b1, 4.0b2, 4.0b2
, 4.0b3, 4.0b3, 4.0, 4.0, 4.0.1, 4.0.1, 4.0.2, 4.0.2, 4.0.3, 4.0.3, 4.1b1, 4.1b1, 4.1b2, 4.1b2, 4.1b3, 4.1b3, 4.1, 4.1, 4.2b1, 4.2b1, 4.2, 4.2

In the above example I might only care about coverage==3.6 and not care about other versions. But right now in the above scenario pip-compile just quits on us.
In such a case, this pr gives the option to provide an optional parameter to a file containing json data that has backup versions of your required dependencies, in case pip-compile faces the above error.
For e.g in this case a backup_versions.txt could simply be a file containing a json below.
{
   "coverage": "3.6",
   "click": "6.6"
}
# Add other backup versions similarly.

Then you would just provide the path of the backup file when doing pip-compile
pip-compile -vv requirements.in --backup-versions backup_versions.txt

Well, pip-compile is a dependency management tool. If you have 2 or more version requirements that are incompatible with each other, the only valid behaviour for pip-compile is to fail. This isn't super user friendly, but at least it's the correct thing to do. After all, it's the entire purpose of pip-tools in the first place to resolve these things and tell you about incompatibilities that will otherwise cause runtime problems.
I've thought about building an flag into pip-compile for this, but it leads to a lot of follow-up questions, like how do you communicate the error, etc?
If you need a practical workaround for this, try manually editing the compiled requirements.txt until this problem is resolved.

It fails during the process so the compiled file is not generated at all so manually editing the compiled file is not an option. I think if the user knows which version of packages pip compile should pin, if it fails to do a resolution is a valid workaround.

Agreed, this might be a bit troublesome. I have not had a change to review #388 fully yet, but that might be the way to go. You could --exclude the troublesome package, and either manually pin it after compilation succeeded, or leave it to chance by not adding it at all (which will be the equivalent in practice anyway — it's undefined which version you'll get in production).


Localization: Use text from universal-components in translations

Move datepicker labels to datepicker component
closes #1558

I will try a different approach to solve this


Audience#showTitle does not work on spigot 1.20.5

Audience#showTitle (adventure-api version 4.16.0, bukkit adventure platform version 4.3.2) does not work with BukkitAudiences on a spigot 1.20.5

adventure-platform-bukkit is maintained on community support, PRs welcome.


Cache loaded config and merge it with defaults

Fixes #249

I'm not really sure why you needed to change getConfig, surely you could have stored config as a private variable, and getConfig just returned config. That would have meant a lot less code changes.

@YaManicKill There are not enough getConfig calls to warrant keeping it, especially in places where only a single variable is checked.

@xPaw At least 6 of the 9 files that are edited are edited only because you removed the function. It's not exactly like a getter is less efficient, anyway. What's the point in changing that?

@YaManicKill Some of the files were changed to remove default fallbacks (e.g. link.js or userLog.js).
Other files kept it's own stored cached configs (like server.js and chan.js). For consistency I decided to make it a public variable, instead of a function call.

Other files kept it's own stored cached configs (like server.js and chan.js). For consistency I decided to make it a public variable, instead of a function call.

Actually since this is JS it doesn't matter much as objects are always references, so either way you get the same thing in the end.
Another option to make this all shorter could be to do var config = require("helper").config; since most places don't use Helper functions at all.

Looks fine to me, so I will 👍 and we can improve later. I'm not a fan of using "Helper.config" everywhere and would rather have var config = require("helper").config;, but it's not enough to block this.

Fine, whatever. I don't really care enough, I just didn't see the point. So, whatever. :+1: and merging.


Correct way of passing arguments to custom-field?

I have created a custom element (based on the older documentation) but I did not figure out what is a proposed way to pass arguments.
According to /addon/templates/components/form-fields/custom-field.hbs ; I can see that there is a list of hand-written arguments that are passed to custom component. I can reuse one of them easily but I would prefer to either have ability to add my attributes or pass more positional arguments.

I think custom-fields were being deprecated, you can just write your own input and your object/changeset will work equally well with the form. (I use this with ember-power-select)
@martndemus any input?

@lcpriest I'm using ember-power-select as well, do you think it make sense to support it more properly? e.g. by publishing add-on/extending ember-form-for ?

@lcpriest Can you show how you're integrating ember-power-select with form-for I'm trying to do this with a custom date picker component and am stuck. Any help is appreciated, thanks 😸

Sure!
{{#form-for formObject submit=(action 'submit') as |f|}}
  {{f.text-field 'name'}}
  {{!-- Contact selector --}}
  {{#power-select
    search=(action "search")
    selected=formObject.contact
    searchPlaceholder=(t 'contacts.index.search')
    onchange=(action (mut formObject.contact))
    as |contact|
  }}
    {{contact.displayName}}
  {{/power-select}}
  {{f.submit (t submitKey) class='el-button--block'}}
{{/form-for}}

Ah thanks! You directly pass the formObjects property to the component and update that one-way bound property. That allows form-for to handle our bag of state. 👌
I kept trying to wrap the component inside of field-for without using custom-fields and it was confusing.
Appreciate the help @lcpriest

@aalimovs They will be one day :) but we have to left ember-one-way-controls before. So it won't happen before summer as there is too much to break.
on-off toggle and power-select, imho we should add them as a standard components. I already use https://github.com/cibernox/ember-power-select-with-create that way.


Simplify CI setup and use prebuilt protoc

Blocked on https://github.com/bazelbuild/bazel/issues/22607


Update cmrt library name

Fixes: #971
Should be merged along with https://github.com/intel/media-driver/pull/413

@onabiull : can you, please, rebase to make sure we have passing tests?

@onabiull : FYI, intel/media-driver#413 was merged

@onabiull : we need CI update (media-driver reinstall) to have passing tests!!


Remove grunt-banner

The only dependency we have that seems to break Sass source maps at this point is grunt-banner. We use this to make versioning our theme easier by setting it in package.json and having it added dynamically to our final CSS output.
This has actually caused some other weird issues in the past as well, so I'd like to strip it out completely. I've found the grunt-version task which looks like it should handle version increments directly in the compiled CSS and other files effectively, so I think we should be able to get rid of this.
Related to #2

Alright! I think I've got this working thanks to some pointers from @ctalkington. :100:


BUG: use errors=replace for stdout

Unfortunately the added test catches the issue reported in #535 only when run without pytest stdout capture (namely with the -s command line flag).

I can confirm that this PR fixes my issue. Instead of an error and build fail now, I get question mark symbols (?) in stdout in place of the korean characters, and the build finishes correctly.

I can confirm that this PR fixes my issue. Instead of an error and build fail now, I get question mark symbols (?) in stdout in place of the korean characters, and the build finishes correctly.

Thanks for testing. We can choose other alternative representations for characters that cannot be represented in the current encoding. I went for the ? because it is the simplest. Other options that make sense are 'backslashreplace' or 'namereplace'. https://docs.python.org/3/library/codecs.html#error-handlers I don't have an opinion about which one is the best choice.

IMHO the 'replace' error handling is fine

I went for the ? because it is the simplest

+1 from me, seems like a good choice.

I'm moving dropping the colorama dependency to another PR and merging this one.


Where can Microsoft Customers report Bugs and small but important feature requests? (Serious bug in VMConnect)

Hello
Because 'Submit and view feedback for this product' no longer works on the 'Docs' site and because the Virtual Machine Connection (VMConnect) has a serious bug,
we have this question:
Where can Microsoft Customers report Bugs and small but important feature requests for Windows Server and its Components?
For your information,
this is the bug mentioned above in Virtual Machine Connection (VMConnect):

We can configure the VMConnectReleaseKey / the VM Mouse Release key (see screenshot)
No matter what you have configured: Ctrl+Alt+Up and Ctrl+Alt+Down are always bound to the VMConnectRelease Event 😞 therefore they can never used in virtual machines.
Therefore we have two small but important requirements:

Please allow us to completely disable the VM Mouse Release key function
Please allow us to freely configure any Key-Combination to initiate the VM Mouse Release function

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

ID: 7dc50ab2-5b70-2b78-5345-cb261071fcc0
Version Independent ID: c081e16d-cf9d-f9a7-e86c-80a38e33d211
Content: Hyper-V Virtual Machine Connection
Content Source: WindowsServerDocs/virtualization/hyper-v/learn-more/hyper-v-virtual-machine-connect.md
Product: windows-server
Technology: hyper-v
GitHub Login: @BenjaminArmstrong
Microsoft Alias: benarm

#assign:xelu86

Hey schittli,
Thanks for contacting Microsoft. We value your feedback.
As we understand it, you've described an issue with a Windows product or service, rather than the documentation itself.
GitHub issues in the Windows Server repo are monitored for content issues that we can address, such as broken links, grammar or wording, typos, updates, or incorrect code in examples. We offer other channels for engaging with us, whether you have a support question, product feedback, or other feedback.
We cannot assist with the following as it's outside our scope of work:

Support cases or support tickets
Bug submittal or Feature requests
Extended troubleshooting, technical support, or product support

Instead, please use one or more of the following:

On a Windows OS, use Windows Feedback Hub or press Windows + F. You can also provide feedback with using our Feedback Portal.
Open a ticket with Microsoft Support.
Search or engage with Microsoft TechNet.
Search or engage with the Microsoft Developer Network.
Search or engage with the Microsoft Support Community.

As this is a non-documentation issue, we’re closing this thread.
Thank you and have a most pleasant day.
#please-close


Zoom says CTRL

when i zoom(using laptop trackpad), it says CTRL.
Im using Citrio(clone of chromium), on a HP pavillion laptop.

Hi, thanks for reporting this. The site has been updated. Could you please check if the issue still exists and let us know your response. Closing this for now.
Regards!


Temporary v2.9.1 Release

Temporary release installable via github while added feature is being reviewed for inclusion in open source library and future release.

@mattwilliams85 😹 that's what you just reviewed (this is said fork 😉 ).

@mattwilliams85 😹 that's what you just reviewed (this is said fork 😉 )

Derp! Thought I was looking at Discover still


feat: add OSM logs collector

This PR adds collectors for OSM and SMI. SMI collector can be broken out into a separate PR as well.

Flags: in aks-periscope.yaml, setting flags to OSM turns on both osm and smi collectors. SMI flag turns on just smi collector
osm_collector collects the following for each Open Service Mesh present on the cluster:

ground truth - list/configs of all resources and mutating and validating webhook configurations
for each osm control plan namespace - pod configs and logs of OSM controller and OSM injector pods
for each namespace monitored by osm: metadata, services, endpoints, service accounts, configmaps, etc.

[moving this into a separate PR] smi_collector collects the traffic targets, traffic splits, httproutegroups, tcproutes and udproutes for smi policies being applied.

this collector can be used by any service mesh, not just osm

@Tatsinnit
Here is a short design doc to explain this work. Hopefully it explains all the loops and helps with the review process. Lmk if you have any questions.
Design
OSM work on AKS Periscope aims to add two new collectors to AKS Periscope that can be optionally enabled with flags when users wish to collect OSM and SMI data. These collectors will allow users to create a snapshot of their OSM instance(s) and SMI policies in their cluster to provide to the OSM team for troubleshooting. This is especially useful so that users do not need to provide access to their cluster for troubleshooting.
OSM  Collector
The OSM collector can be turned on using the OSM flag. This will automatically also turn on the SMI collector to collect information about SMI policies being used in the cluster.
The OSM collector will look for all the OSM instances present in the cluster. For each mesh, it will collect the following information:

Basic ground truth about the OSM instance

Mutating webhook configurations
Validating webhook configurations
List of all resources present with the label app.kubernetes.io/instance=<mesh name>
JSON/configs of all resources present with the label app.kubernetes.io/instance=<mesh name>

Relevant data for all namespaces monitored by OSM:

For each pod's Envoy sidecar: config dump, clusters, listeners, ready and stats
Metadata, services, endpoints, ConfigMaps, ingresses and service accounts
List of all pods present and config of each pod

Relevant data for all OSM controller namespaces:

Logs of each pod in the controller namespace (i.e., logs for osm-controller and osm-injector)
Metadata, services, endpoints, ConfigMaps, ingresses and service accounts
List of all pods present and config of each pod

SMI Collector
The SMI collector can be enabled using the SMI flag to collect information about Service Mesh Interface policies being used in the cluster for any service mesh, not just OSM. It is, however, automatically turned on if the OSM collector is enabled. The SMI collector collects lists and configs of the following resources:

HTTP route groups
TCP routes
Traffic splits
Traffic targets
Traffic access
UDP routes

Helpers
The following helpers are needed to achieve the above work:

utils.GetResourceList() expects a kubectl command including a resource type and namespace. Returns a list of all resources of the given type in the specified namespace
utils.RunCommandOnContainerWithOutputStreams() a modified version of utils.RunCommandOnContainer that returns both the stdout and stderr output streams from the given command. This is used by GetResourceList to make sure an error is documented if a resource is not found and thus empty collector files are not erroneously created for resources that do not exist
utils.RunBackgroundCommand() starts running a command on a container and returns its process ID. It does not wait for the command to return. This is used to run kubectl port-forward to collect Envoy information
utils.KillProcess() is used to kill a process by PID (used in conjunction with background commands)
collector.CollectKubectlOutputToCollectorFiles() - expects a kubectl command, rootpath and filename. It runs the command and saves the output to a file in that collector's file directory

I think you guys work with ARC team? if yes please liason with them, as their PR will be merged soon, ARC - PR already adds a feature flag which you could use. Some of my comments are specific to how the logic is constructed around the OSM and SMI flags and the built up.

Makes sense to reuse their flag. I have left a comment on their PR about using a generic flag name that would make sense for us to reuse. Of course we can also change it after their PR is merged. The comments above and design doc hopefully explain the logic/interaction behind the two flags

Please remove the aks-periscope Binary which is checked in with this PR.

Accidental addition, removed now!

@arnaud-tincelin thanks for your comments, I've just resolved them. Would appreciate if you could re-review when you get a chance


Google "&" anomalies

Hi,
We've had the issue of forms submitted through the site coming across with some anomalies.
When "&" is added, it comes across as "&amp,". Can this be corrected?
thank you, Jeff B

could you link me to one of these forms? my guess is this is not related to the meetings software and is a job for the web servant but this will help me know for sure

yep these are handled by the web servant are probably a plugin called WPForms
going to tag @mattbylett and close 👍


rancher app install Fails to Launch Local Helm Chart

I recently started having a problem launching local Helm charts via the Rancher CLI (2.0.6 and 2.2.0) on Windows.  They launch successfully when I enter the same command on a Linux machine or from Windows if I tell it to get the chart from a repository by omitting ./ in the app install command.
To reproduce:

Put the chart in C:<base dir><chart name>
cd to C:<base dir>
rancher app install ./
At this point the app appears in the Rancher web page with error, "Wait helm template failed. Error: no Chart.yaml exists in directory "/" : exit status 1"
After a few minutes, the command line reports, "[31mFATA[0131] timed out waiting for app notes, the app could still be installing. Run 'rancher apps' to verify"
rancher apps returns, "[31mFATA[0000] Bad response statusCode [404]. Status [404 Not Found]. Body: [message=failed to find resource by id, baseType=error, code=NotFound] from [https://rancher-server.mydomain.com/v3/project/c-gkz6s:p-48tst/apprevisions/p-48tst:]"

(The more intuitive 'rancher app install .<chart name>' fails immediately with "[31mFATA[0002] Not found: .\spring-hello".  I don't believe that ever worked.)
Rancher version is 2.2.6.  This previously worked, maybe on 2.2.4, but I'm not sure when it broke because I don't use Windows often.  Windows version is Windows 10 Version 1809 (OS Build 17763.678).
The cluster is hosted on a locally hosted VM.  Major:"1", Minor:"14", GitVersion:"v1.14.3", GitCommit:"5e53fd6bc17c0dec8434817e69b04a25d8ae0ff0", GitTreeState:"clean", BuildDate:"2019-06-06T01:36:19Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"
Rex

I made a mistake in my previous post: the command that used to work on Windows was:
rancher app install ./name
where name is the name of the directory containing the Charts.yaml file and is a subdirectory of the current directory.
So my problem is that on the Windows command line I can't use the Rancher CLI to launch a chart from local disk - only by uploading it to a repository and launching it from the repo.  Launching from local disk always hangs with "Wait helm template failed. Error: no Chart.yaml exists in directory "/" : exit status 1".
If I let it wait too long, the etcd database fills up, so it appears to leak DB objects.
Other syntax that I tried:

rancher app install .\name
[31mFATA[0001] Not found: .\name
cd name
rancher app install .
web Apps page shows => Wait helm template failed. Error: no Chart.yaml exists in directory "/" : exit status 1

Has anyone gotten this to work on Windows?
Rex

I'm having this same problem and know it previously worked. I can deploy files in the helm chart directly , for example rancher app install ./name/templates/deployment.yaml . And I can confirm etcd fills up quickly

Faced the same issue with Rancher v2.2.8 and the CLI in Windows.
A painless workaround for me: Run the rancher-cli using the WSL.

I probably should have marked this as kind/bug when I submitted it.  I don't see a way to do that now.


Modify windshaft dependency to have MVT query vars

To understand all the changes, it is useful to navigate the dependency graph:

(In red the nodes that have changes, in bold the dependencies to be changed. I may be missing some of them BTW).
Here the next PR in the dependency chain: https://github.com/CartoDB/Windshaft/pull/552
(merging could simplify things to a certain extent)
cc/ @Algunenano @javisantana

:+1:


Where can I find user/pass to use in "cf create-service-broker"

Can you please tell me where I can find the user/password to register this MongoDB broker to a CF environment
Thanks
Beth Tran

Please close this issue.  The spring framework points me to Spring Boot security for the setup.
Thanks


Point to Ballerina Integrator repo when editing docs

Currently clicking on the Edit on Github button points to the docs-ei repo. This should point to the ballerina-integrator repo.

Fixed.

Fixed.


[CSClosure] Fix handling of property wrapped pattern bindings

Property wrappers trigger initializer synthesis. Synthesized
initializers should not be re-typechecked when encountered e.g.
while re-solving closure with a different contextual type.
Resolves: https://github.com/apple/swift/issues/59294
Resolves: rdar://94506352

@swift-ci please test macOS platform

This is a re-incarnation of https://github.com/apple/swift/pull/59300

@swift-ci Please test macOS platform

@swift-ci Please test macOS platform

@swift-ci Please test macOS platform

@swift-ci Please test macOS platform


json encoding issue when generating software boms

I'm seeing another json encoding issue when generating 160/165 software boms.   These boms reference the cluster module, and when the vars for the cluster module are generated, the default is an improperly encoded json array:
variable "cluster_vpc_subnets" {
  type = string
  description = "List of subnets with labels"
  default = "\"[]\""
}

I'm using iascable 2.11.4 and generating the boms here:

https://github.com/cloud-native-toolkit/automation-solutions/blob/main/boms/infrastructure/ibmcloud/openshift-fs/160-ibm-fs-openshift-dev-tools.yaml
https://github.com/cloud-native-toolkit/automation-solutions/blob/main/boms/infrastructure/ibmcloud/openshift-fs/165-ibm-fs-openshift-workload.yaml

This is fixed in 2.11.5


aws-workspaces: <IP_ADDRESS>87 -> <IP_ADDRESS>12

Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Strange, I'm getting a blank login screen (no textboxes for username/password). Does it work for you?

I can run it, but I'm not on my corporate laptop, therefore I can't check :(
But I never had any issue before.

Never mind, 4.6.0 also does the same for me (I haven't used this in quite some time), so it's not related to this PR.

Is it OK for you to merge then?


cart api return Title  : Default Title insted of main title

Cart Api returns Default Title but checkout api returning correct title from main product title. also user address not getting reflected in user we need to open app again to see the changes provide re-init options for Current user instance , Aslo when we update address updated in cart not reflecting in checkout page .

can you give me more info? I do not understand what it means by "Cart Api returns Default Title but checkout api returning correct title from main product title"

@imsujan276  Let say i have two products one without variant second with variant.
without variants returns "Default Title" as title .
with variants return variant title.

Shopify itself returns the "Default Title" for products with no variants.
I have updated the code so that the car line merchandise has a product attribute. You can access the title from there.

Thanks for your quick support.


improve TS compiling config

1, modify the chr ';' as '&&' in rapier-compat/package.json which will work for multiple platform when execute npm run build
2, change TS compiling target as ES6 for better performance, because there is no reason why use ES5 which is little too old now, and if an platform supports WebAssembly, the ES6 module is a basic requirement.

I would argue dropping ES5, if it was previously supported. It would be fine, if it wasn't initially, but it if it was, we should keep it and offer an optional ES6 build target for those who want it.

I would argue dropping ES5, if it was previously supported. It would be fine, if it wasn't initially, but it if it was, we should keep it and offer an optional ES6 build target for those who want it.

makes sense.
but
https://caniuse.com/?search=webassembly
https://caniuse.com/?search=es6
from the support list you can see, es6 has a lower requirement on browser version then webassembly.
so i think this wont affect those old users.
btw, the CI check still use ES5 which means you can't even use Map/Set in the TS side.


General Split

Extract a part of a delimted string
e.g. Split('a,b,c,d,e',',',3) results in 'c'

Completed in 2c27bbf0996431a4196e0a616fb958f5589f78b7


Can I define time-to-sleep?

Is there any setting I can configure how long to wait for requests before shutting down an instance?
Would love to be able to set it to as low as zero.

Check out now scale --help. In short, you can specify a minimum of 1 instance which will never put the deployment to sleep.

@TooTallNate That is the opposite of what I want. I want my instances to shut down faster.

@gunar Oh sorry, I misread. So no, it's possible at this time to control the sleep scheduling algorithm for deployments.


[sqlite3] Lack of DB recovery feature.

Is your feature request related to a problem? Please describe.
I would do recover a corrupt database, without this feature I could not do that.
sqlite3 corrupted-db.db ".recover" | sqlite3 recovered-db.db
Proposed solution
Please support this feature and provide an optional argument for it, some thing like "recovery" as below
vcpkg install sqlite3[core,recovery]:x64-windows
Describe alternatives you've considered
No response
Additional context
No response

The recovery function is already included in the existing installation of sqlite3. You should call the corresponding function interface (global_recover) to implement this function.

No it isn't. When I run from console: "sqlite3 corrupted-db.db ".recover" | sqlite3 recovered-db.db", the error says ".recover" not found, that means the recovery feature was not enabled by vcpkg when it built sqlite3.exe. Also the ".help" command does not show ".recover" in the supported list.
Additionally the function you mentioned sqlite3_global_recover() is deprecated that SQLite docs recommend not to use and it does not relate with what I asked.


Create a sentinel file to avoid running the fix every time

This file can also be created by the user to skip this fix if they so desire. For example, they may have files owned by some other user and they don't want to mess it up. In that case they can run a similar script themselves, but with additional logic.
Fixes https://github.com/kairos-io/kairos/issues/2843

I tested manually and works as expected


[Gally]: master <- dev

Automatically created by Git-Ally

:tada: This PR is included in version 1.13.122 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Add additional parameter to "resizeToBestFit" that allows to return an image with exact size, requested in parameters.

Now, when I call the "resizeToBestFit" method it creates an image with the same ratio but different size. Sometimes you need this, but the other time, you get into the cases where you need in return an image that has exact width and height you've put into the parameters. The image shouldn't be scaled, but the rest of it should be filled with transparent\blanc\given color.
Ex.:
public function resizeToBestFit($max_width, $max_height, $allow_enlarge = false, $fill_color = false){}

Closing this.

Let me open it. If you can find a solution, please point and if you can create PR, it would be great.

I managed to do it by changing the save() function.
I send an extra param that has the exact size of the picture I want.
If that param is not null, I create and image with that exact size, then I center the image and then save it.
I can post the code here, if you want. But I'm pretty sure someone can make a better code than me. I had no time to do it, so it doesn't really look pretty... haha

I can never proper style those blocks of code.
Can you edit and proper style it?

Hi @felipetnh. If possible, can you send the PR for this?
And we can review this code snippet :).

PR created.


Indicator of portable app loading

I have packaged a portable exe that is running off a USB.  There are a lot of static media files in the project so my app.asar is several hundred MB in size.  The application itself loads quickly in development (like 2-3s) but when opened from the exe it takes about a minute to load on some computers from the time the user clicks.  I assume that this is the app.asar being copied to a temporary directory and decompressed.
My issue isn't with the delay, this is the price we pay for wanting it portable on a USB.  The issue we are having is that there is no indication to the user that the application is still loading.  The cursor spins for a few seconds but then goes back to a normal mouse and the only way you can tell the program is loading is that there is an entry in the task manger.  This leads to some users clicking the executable many times before many windows start to open.
Is there a way to launch a small modal or other indication to the user that the application is still alive before the app.asar is transferred?

Electron Packager doesn't create portable EXEs, it only customizes and bundles an Electron app. You probably have this project mistaken for another one.

SO sorry!  You are exactly right, my apologies, I didn't pay enough attention to what I was doing there


[Synonym]

CL term
L5 ET
Synonym to be added
L5b neurons
Reference DOI: 10.1016/j.neuron.2011.07.029
broad

Thick-tufted layer 5 pyramidal neurons
Reference DOI: 10.3389/fncel.2015.00233
broad

Burst-firing layer 5 neurons
Reference DOI: https://doi.org/10.3389/fncel.2011.00001
broad

Pyramidal tract (PT) neurons
Reference DOI: 10.1038/nrn3469
narrow/exact

Subcerebral projection neurons (SCPN)
Reference DOI: https://doi.org/10.1016/j.neuron.2005.08.030
broad

Pyramidal tract-like (PT- l)
Reference DOI: https://doi.org/10.1016/j.cell.2019.09.023
related

Thick-tufted layer 5 neuron (TTL5)
Reference DOI: 10.3389/fncel.2015.00233
broad

@shawntanzk

@raymond-sanchez - wonder how you seperate between broad, exact, and related?
@dosumis - I've currently put everything as has_exact_synonym - was wondering if changing to others would have any implications in the ontology/search?
Notes:
Thick-tufted layer 5 neuron (TTL5) and Thick-tufted layer 5 pyramidal neurons are very similar synonyms and have the same reference, and since all L5 ET are pyramidal - ill merge them into one synonym
"pyramidal tract-like is used because, unlike pyramidal tract neurons in the motor cortex, neurons in the structures like the auditory cortex do not project to the spinal cord." - @dosumis will leaving a comment on synonym entry be the right way to handle this? (note that L5 ET is a pan cortical entry)

@shawntanzk I wasn't sure of the criteria you all had used already for this, so "broad" here refers to terms that could apply to other things (L5b neurons in another region of cortex, for example), "exact" for things that could only apply to L5 ET, and the one "related" because the neurons referenced were similar to MOp L5 ET neurons except they did not project to spinal cord.
If L5 ET is a pan-cortical entry however, that renders my distinctions moot and I'd leave it up to your discretion


Update hmip to 1.21.0

Please update my adapter ioBroker.hmip to version 1.21.0.
This pull request was created by https://www.iobroker.dev c0726ff.

1.21.0 created 27.12.2023
330 user
OK


Intellisense for trimStart() and trimEnd()

Issue Type: Feature Request
Intellisense doesn't show trimStart() and trimEnd().
VS Code version: Code 1.40.2 (f359dd69833dd8800b54d458f6d37ab7c78df520, 2019-11-25T14:54:45.096Z)
OS version: Windows_NT x64 10.0.18363

You need to set a higher target or lib version in the jsconfig or tsconfig: https://code.visualstudio.com/docs/languages/jsconfig


Allow input of ISDB sub-channel numbers

Hi there!
Just a question: Is there a way to allow the "Dot" character for a channel position? I have a 55PUD6703 (ISDB-Tb, API 6.1), and it only allows me to add main sub-channels (the .1) of TV stations.
Thanks beforehand.

Hi @javicuna :)
I just checked the API-Documentation and I can enable sending a "Dot" to the TV.
I have never heard of sub-channels for tv-channels. Can you explain how this works?
Which country are you in? (if you don't mind telling me)
It would be nice if you could write every key press you do (with the remote) and what the result is.
Example:
"Watch TV -> 3 -> 4 -> Confirm (ok) results in the TV Channel DMAX being played on my TV."
That way I can figure out where I need to send the "Dot" and when to send it.
I will then release an update with the functionality.

Sure!
I'm in Chile, and the sub channel is part of the standard for ISDB (used in Japan and South America) and ATSC (Used in North America). Basically you can cram several stations in the same frequency. For example, all TV stations here have the main channels in the .1 subchannel, and educational stations in the .2 subchannel.
So, the keypress would be "Watch TV → 1 → 3 → . → 1 → OK" for Canal 13 (13.1) and "Watch TV → 1 → 3 → . → 2 → OK" for TV Educa (13.2)
There's more information on the Wikipedia article for it.

Wow I've never heard of that haha
Thank you for the in-depth explanation! It looks like this might be an easy addition!
I'm currently working on restructuring the plugin and moving all the switches for inputs to a second accessory (remote) to keep the home app clean. That update will also include the ability to select sub-channels.
I'll update you here once that (big) update is done :)

Hey @javicuna I have a prototype running but my TV doesn't accept the "Dot". That might be because im located in Germany.
Could you provide a picture of your TV Remote? That could help my with figuring out the needed inputs.
Also, you can install the prototype with the following command:
sudo npm install homebridge-saphi-tv@beta

There is no documentation for that prototype right now. It will expose 2 Accessories:

the TV with power & inputs as a selector
a remote with a switch for ambilight and all inputs as outlets (allows siri to "turn them on")
If you decide to test the current beta, please add both accessories to your home-app. They have the same code as your homebridge.
An input with subchannels should be added just like this: 12.2
Please report back how this beta version works for you :)

Sure thing, here's a picture of the remote:

Can't test the beta for a few hours, though. Will report about it later.

Thank you :)
Your remote looks completely different compared to mine!
Mine doesn't have a dot so chances are good that my tv just wont accept the Dot-Command but yours will.
Please report back if the beta works for you and your issue is resolved

Just tested it and got it working fine, although the web UI converts the dot to a comma (but that's purely cosmetic)

Thanks!

Im glad it works for you!
I'll try to fix that cosmetic bug soon but I'll mark this beta as a release candidate.
Did everything else work for you aswell? - Do you use the external remote accessory?

I couldn't make the TV controls show up, but that's probably something related yo my clumsiness.

The TV-Remote should be available just like the TV.
In the home app please click on "+" -> add new device -> no code. It should show up there and you should be able to add it with the same code as you added your homebridge and the TV.
If it doesnt show up I'd like to see your config because it that would be a bug I'd like to fix haha

Only the main device shows up in my HomeKit setup. The volume controls don't show up.
This is the config for the device:
config_saphi.txt

thanks for the config!

I released a new beta (which you can install with the same command) which should correctly publish the second accessory.
Volume controls are currently limited to the control-center remote app. When you open the control-center remote app you can press your iPhone hardware volume buttons to increase / decrease the volume.

In the future I add a slider for it but for now thats all we got..

@javicuna I'm interested in your feedback! Does everything work for you now? :)

Sorry, was out of town. Everything is working fine now, thanks. Guess this issue should be closed.


docs(i18n-id): translate emitDecoratorMetadata.md and several config into Indonesia

Overview
this is part of #938
Changes
Translate the following files

[x] emitDecoratorMetadata.md

Lgtm


Is it possible and how to run a preferred replica election with sarama?

Description
I am developing kafka management tools with sarama, and I don't know that is it possible and how to run a preferred replica election with sarama?
Additional context
None

Hi @hjweddie - it looks like the elect leaders API is used to implement leader election in the Java client. Unfortunately this API is not currently implemented by Sarama. So to answer you question: no this is not currently possible with Sarama.
If you would like to contribute an implementation of the elect leaders API - I'm sure it would be gratefully received. 😄

@hjweddie the latest release with the linked PR from @chengjoey should provide this capability for you now

awesome!!


[DISCUSS] Open Questions for docs / APIs

While drafting the API documentation (#311) I encountered a few questions that I need team feedback on.

Is use_case an enum or user-defined field?  I think we originally identified it as an enum for use by the front-end.  Whatever it is, we need to add code for it and document it.

I've inserted some words to this effect.

I need to add params to the documentation.

I've done this

I think given our limited number of steps for 2.12 the "Sample Workflow Steps" (#314) may be sufficient for workflow step documentation.  But we really need to improve that in later releases. Open to thoughts on:

Do we need individual API docs for each workflow step or can we just reference ML Commons API, or some mix?

I've linked to individual APIs for all cases and documented differences

Do we need an API that returns all the workflow steps and required/optional inputs (essentially the content of this json file as an API)?

I think we do

I think use_case should be an enum based on pre-defined cases, we still don't really have those yet though I think.
I think we can add links to the API that the steps will be using


python312Packages.reolink-aio: 0.9.4 -> 0.9.5

Diff: https://github.com/starkillerOG/reolink_aio/compare/refs/tags/0.9.4...0.9.5
Changelog: https://github.com/starkillerOG/reolink_aio/releases/tag/0.9.5
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 329167 run on x86_64-linux 1

5 packages built:

home-assistant-component-tests.reolink
python311Packages.reolink-aio
python311Packages.reolink-aio.dist
python312Packages.reolink-aio
python312Packages.reolink-aio.dist


avoid usage of potentially unsafe slices() method

Scope & Purpose
calling slices() on the response member in arangodb::network::Response is potentially unsafe if there are no prior checks, as response can be a nullptr.
This is in response to a test failure observed in http://<IP_ADDRESS>:8080/job/arangodb-matrix-pr-linux/13716/EDITION=community,STORAGE_ENGINE=rocksdb,TEST_SUITE=cluster,limit=(linux&&test)||gce/
Enterprise companion PR: https://github.com/arangodb/enterprise/pull/558

[x] :hankey: Bugfix
[ ] :pizza: New feature
[ ] :hammer: Refactoring
[ ] :book: CHANGELOG entry made
[ ] :muscle: The behavior in this PR was manually tested
[x] :computer: The behavior change can be verified via automatic tests

Backports:

[ ] No backports required
[x] Backports required for: 3.7, potentially 3.6

Testing & Verification

[x] This change is already covered by existing tests, such as all networking tests

http://<IP_ADDRESS>:8080/view/PR/job/arangodb-matrix-pr/12095/

http://<IP_ADDRESS>:8080/view/PR/job/arangodb-matrix-pr/12298/


quick update - better builds and site plan

I wanted to post an update as to what I have currently cooking. As with most of this update posts, I will close this in some time if no one has any questions.
I received a response from DigitalOcean back when I reached out to them this past December, when website talks first started brewing. I'm planning to move forward to use one of their VMs to facilitate a more interactive environment. The biggest thing that currently pains me on this project is the CI build status. Right now, the build status is used to indicate whether any links in the project are unavailable. That's great, but the status won't update until a new build is kicked off, or someone restarts the current master build to check the links (something I currently do several times a day to give as close to a current status as possible). Starting small, this simple server can babysit this process, ensuring that the status of the project is an accurate reflection on the status of the resources.
In parallel to this, as everyone is hopefully aware, I'm working on a site plan for this project, currently gearing towards using Vue.js to facilitate generating a table from the JSON.
Cheers! 🍻

🎉

:🎊

🎈


Add basic support for ELF thread local storage segments

This maps the thread local storage segment of the kernel (if present) and reports its address and size in the boot information. This should make it possible to use the unstable #[thread_local] attribute.
Note that the TLS memory should not be used directly. Instead, the kernel should create a copy the TLS contents for each thread and then set up the fs register accordingly. See https://uclibc.org/docs/tls.pdf for more information.
This code only works for a single TLS segment. If more than one TLS segment are present in the executable, the bootloader errors. We can of course lift this restriction if this becomes a problem in practice.
Fixes #95

@vinaychandra Could you try whether this change works for you?

Ah, it seems like I understood something wrong. I will create a new version.

With the new version, I can now successfully read the TLS template info for a small example:
#[thread_local]
pub static mut DATA: u64 = 0;
#[thread_local]
pub static BSS: u64 = 0;

fn kernel_main(boot_info: &'static BootInfo) -> ! {
    println!("Hello World{}", "!");
    println!("TLS INFO: {:x?}", boot_info.tls_template());

    // this panics because we did not set up the fs register yet
    println!("DATA: {}, BSS: {}", unsafe { DATA }, BSS);
}

The result is the following:

I get the same values with readelf -l target/x86_64-blog_os/debug/blog_os:
Program Headers:
  Type           Offset             VirtAddr           PhysAddr
                 FileSiz            MemSiz              Flags  Align
  PHDR           0x0000000000000040 0x0000000000200040 0x0000000000200040
                 0x00000000000001c0 0x00000000000001c0  R      0x8
  LOAD           0x0000000000000000 0x0000000000200000 0x0000000000200000
                 0x0000000000003544 0x0000000000003544  R      0x1000
  LOAD           0x0000000000004000 0x0000000000204000 0x0000000000204000
                 0x000000000001f23c 0x000000000001f23c  R E    0x1000
  LOAD           0x0000000000024000 0x0000000000224000 0x0000000000224000
                 0x00000000000012d0 0x00000000000012d0  RW     0x1000
  LOAD           0x0000000000026000 0x0000000000226000 0x0000000000226000
                 0x000000000000000e 0x0000000000002178  RW     0x1000
  TLS            0x0000000000024000 0x0000000000224000 0x0000000000224000
                 0x0000000000000008 0x0000000000000010  R      0x8
  GNU_RELRO      0x0000000000024000 0x0000000000224000 0x0000000000224000
                 0x00000000000012d0 0x0000000000002000  R      0x1
  GNU_STACK      0x0000000000000000 0x0000000000000000 0x0000000000000000
                 0x0000000000000000 0x0000000000000000  RW     0x0

 Section to Segment mapping:
  Segment Sections...
   00
   01     .rodata .eh_frame
   02     .text
   03     .tdata .data.rel.ro .got
   04     .data .bss
   05     .tdata .tbss
   06     .tdata .data.rel.ro .got
   07

Published as version 0.8.0


Card does not show? - Android

When i build the demo on my android phone the card dont show on the screen. and when i click one of the swipe buttons an error message pops up. I cant read it. i hope you can help

Any details? Sample code? What did you do?


Mixins: switch to ECMAscript 2017 mixin syntax

Fixes #574
Typescript has supported ECMAscript 2017 style mixins since version 2.2, but the mixin page is still using a helper function. This PR corrects that.

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

Thank you for contributing to the TypeScript Handbook!
We are currently working through a large backlog of open PRs. As part of this, we're asking authors of PRs with active merge conflicts to assess if their changes are still needed, and if so, open a new PR.
For transparency, we are also working on a full-scale reimagining of the Handbook (see the TypeScript Roadmap), meaning we are largely closing down work on the current version of the Handbook. Typo fixes are always appreciated, but any new content should likely wait until the new Handbook is available so that it can be more naturally adapted to that format.


Exchange iDA support

Backup , Restore and browse support for exchange iDA

Yes, we are working on adding support for this iDA.

@klogan12 closing this issue as we have now exchange mail box and database support.


Remove node operation fails, edgeLayoutPoint.value is undefined

Hi,
I'm trying to use this library to build a website, and I've recreated the example in the documentation to add/remove nodes/edges. While adding/removing edges and adding nodes works well, if a node i'm trying to remove has any edge connected to it I get Uncaught (in promise) TypeError: edgeLayoutPoint.value is undefined.
I don't understand if there is something wrong with my code or if the fault is in the library itself.
As for the code, I pretty much recreated the documentation:
<script setup lang="ts" >
import Sidemenu from "./components/Sidemenu.vue";
import Footbar from './components/Footbar.vue';
import { networkGraphConfigs } from "./assets/v-network-graph-configs";
import { Nodes, Edges } from "v-network-graph"
import { ref,reactive } from "vue";

const nodes : Nodes = reactive({
  0: { name: "Node 0" },
  1: { name: "Node 1" },
  2: { name: "Node 2" },
  3: { name: "Node 3" },
});
const edges : Edges = reactive({
  edge1: { source: "0", target: "1" },
  edge2: { source: "1", target: "2" },
  edge3: { source: "2", target: "3" },
});
const selectedNodes = ref<string[]>([]);
const selectedEdge = ref<string[]>([]);

function addNode() {
  let size = Object.keys(nodes).length
  nodes[size] = {
    name: String(size)
  }
}

/* removes any selected node or edge */
function remove() {
  //delete selected nodes
  for (const nodeId of selectedNodes.value) {
    delete nodes[nodeId]
  }

  for (const edgeID of selectedEdge.value) {
    delete edges[edgeID]
  }

}
function addEdge() {
  if (selectedNodes.value.length !== 2) return
  const [source, target] = selectedNodes.value
  const edgeId = edges.length
  edges[edgeId] = { source, target }
}
</script>

<template>
<Sidemenu/>
<div>
  <v-network-graph
    :nodes="nodes"
    :edges="edges"
    :configs="networkGraphConfigs"
    v-model:selected-edges="selectedEdge"
    v-model:selected-nodes="selectedNodes"/>
  <Footbar
    @validate="(text:string,options:Object) => console.log(`validate: ${text}`,options) "
    @addNode="addNode()"
    @remove ="remove"
    @addEdge="addEdge"
  />
</div>

</template>

And here is my configs (./assets/v-network-graph-configs)
import { defineConfigs } from "v-network-graph"

export const networkGraphConfigs = defineConfigs({
    view : {
        zoomEnabled: false,
        grid: {
            visible:true,
            interval: 40,
            // thickIncrements: 10,
            line: {                   // normal line style
                color: "#a9a9a9" ,         //   default: "#e0e0e0"
                width: .8,          //   default: 1,
                dasharray: 5
            },
            thick: {
                color:"#a9a9a9",
                width: 1
            }
        }
    },
    node :{
        normal: {
            color: "var(--accent)",
            radius: 24,
        },
        hover: {
            color: "var(--accent-2)"
        },
        // selected: {
        //     color: "white"
        // },
        selectable: 2,
        label: {
            direction: "center",
            fontFamily: "Courier New",
            text: "name"
        },
        focusring: {
            // visible: true // whether the focus ring is visible or not.     default: true
            // width: 4    // line width of the focus ring.                 default: 4
            // padding: 3  // distance between the focus ring and the node. default: 3
            color: "var(--complement)"  //per qualche motivo non funge   // fill color.                                   default: "#eebb00"
        },
    },

    edge : {
        normal: {
            width: 2.5,
            color: "var(--accent)",

        },
        selectable: 1,
        type:"curve",
        marker: {
            target:{
                type:"arrow",

            }
        }
    }
})

After some trials it appears that issue exists as long as configs.edge.type="curve" is true, when commenting that line the error disappears

Sorry didn't wanted to close the issue, as this probably points to a bug in the library

Hi @Mamiglia,
Thank you for the detailed report!
You provided important information about the code and conditions to reproduce, which was a great help in identifying the cause of the bug.
I have fixed this bug and released it. (v0.5.12)

I close this issue for now.
If you have any other problems, please open a new issue.


Inconsistent case of "job" on k8s.io//docs/concepts/workloads/controllers/jobs-run-to-completion/ [File: /content/en/docs/concepts/workloads/controllers/jobs-run-to-completion.md]

This is a...

[ ] Feature Request
[x] Bug Report

Problem:
This page is inconsistent in its use of "Job" and "job". Which is correct? It looks like "Job" is used when the string is a literal (in code snippets, for example); but when it's not a literal, there's no apparent rhyme or reason to the upper/lower case usage.
Proposed Solution:
For non-literals, pick one and stick with it (probably lower-case "job"?). For literals, the content may be accurate.
Page to Update:
https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/

Kubernetes Version: 1.11

A similar issue found on https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/:
Cron Job
cron job
CronJob
Cronjob
The entry in the lefthand nav bar is "CronJob", so perhaps that's the spelling to go with?
BTW, this case/spelling issue is admittedly a nitpick, but users also need to know the right way to refer to these concepts (my current situation), so consistency in terms is actually really important :)
Thanks for fixing!

/remove-lifecycle rotten


fix: pass (some) cmdline arguments to watchdog and workers

Capture some of the command line arguments in an argument
vector, that then gets passed to the watchdog and
subsequently the worker processes. Currently flags like
"-T" and "-j2" are not passed on to the watchdog and
worker processes.
Addresses #246

Looks good to me in general, though @mhuisi or @Vtec234 should probably take a look as well. However, instead of the manual conversion you should use array_ref<string_ref> throughout the C++ code.

Looks good to me in general, though @mhuisi or @Vtec234 should probably take a look as well. However, instead of the manual conversion you should use array_ref<string_ref> throughout the C++ code.

manual conversion you should use array_ref<string_ref> throughout the C++ code.

Ok, yes that is much nicer. Hopefully I understood the API correctly.

manual conversion you should use array_ref<string_ref> throughout the C++ code.

Ok, yes that is much nicer. Hopefully I understood the API correctly.

Thanks, good work!

Thanks, good work!


How to slow down the process of MultiScan100 drivers to spare some computational power ?

Hello,
I am currently developing a SLAM program for navigation using a MultiScan100 Lidar. My program is working correctly, however it has difficulties to do real-time relocalization when the MultiScan100 is moving too fast (because the robot wearing the Lidar is moving). Indeed, sometimes, the program is losing the robot position because the mapping does not update quickly enough.
After an analysis of the problem, it appears that the time taken by the program to transform the scan of the Lidar into a map, and to localize in it was too long for real-time relocalization. To find what causes this too long treatment time, I have compared the current SLAM program with another one, already developed, similar to the current one, except for the Lidar used (in this case a pepperl-fuchs R2000) and the drivers for the Lidar. Accordingly, the other algorithms of the program (ICP, AMCL, and so on) are exactly the same. I precise that the SLAM program with the R2000 is perfectly working for real-time relocalization.
After comparison, I have observed that the problem was very probably coming from the fact that, the drivers for the MultiScan100 are continuously running, treating and publishing the scans of the Lidar, when the drivers of the R2000 are doing a small break between every publishment . Due to that, I think that the drivers of the MultiScan100 are consuming a lot of additional computational power , having the consequences of slowing the other algorithms of the SLAM.
Accordingly, to solve my problem, I would like to know could I bring the MultiScan100 drivers to do a break between every publishment to spare some computational power for the other parts of the SLAM program ?
I have already tried to put some "usleep" command in the code (in the files "msgpack_exporter.cpp" and "ros_msgpack_publisher.cpp") to do this, but I have encountered problems doing this, because the program was not working anymore (I don't know why, however).
Thank you in advance for you understanding and your reply.
PS: During the comparison between the MultiScan100 and the R2000 programs, I have checked that the amount of data in the scans of the two Lidars were similar (in the case of the amount of data from MultiScan100 was more important than from R2000). The MultiScan100 publish less data per scan than the R2000 in my application, thus the treatment by the SLAM of one scan from the MultiScan100 should be faster than for the R2000.
Moreover, I have used exaclty the same computer to do run the two SLAM programs, to avoid hardware differences.

Thank you very much for your reply.
I am using ROS1 on Ubuntu 18.04 for my SLAM program.
Currently, in my program, I only select the fullframe point clouds. I do not take any other point cloud published by the drivers. By the way, I have commented the code lines responsible for the publishment of the segmented scans, in order to spare more CPU load. However, it is not enough for my application.
If I have correctly understood the explanation you gave me about the process of the drivers, their timings are triggered by the scan telegrams, thus by the MultiScan100 itself. Accordingly, in theory, if the frequency of scan telegrams decrease, or if we ignore a part of the telegrams, it will slow down the drivers process.
Are there parameters to decrease the frequency at which scan telegrams are sent by the Lidar ?
Or, is it possible to bring the drivers to ignore a part of the scan telegrams, before processing them ?
Thank you in advance for your understanding and your reply.

Thanks for your feedback. Your understanding is correct. The scan frequency of a multiScan is fixed. Ignoring telegrams or scan data in the driver is currently not supported. Please contact the SICK support for feature requests.

The multiScan offers the interval filter.

The interval filter reduces the scan rate by the configurable reduction factor. If the reduction factor is set to three, for example, the output rate is reduced to one third. In this case only every third scan is output.

Thanks for the hint! We will add the setup to activate and configure the multiScan intervall filter via launchfile.

Thank you very much for your reply.
Thanks to your hints, I have been able to spare more CPU load, to optimize the performances of the SLAM program.


Debug failing check pr

See comments for explanations

Codecov Report

Merging #2476 (7fcdfe4) into main (e77a87a) will decrease coverage by 5.19%.
The diff coverage is 9.09%.

@@            Coverage Diff             @@
##             main    #2476      +/-   ##
==========================================
- Coverage   29.99%   24.80%   -5.20%
==========================================
  Files         288      118     -170
  Lines       35366    12127   -23239
==========================================
- Hits        10609     3008    -7601
+ Misses      24757     9119   -15638

Impacted Files
Coverage Δ

...c/ApiService/ApiService/Functions/AgentCommands.cs
0.00% <ø> (ø)

src/ApiService/ApiService/Functions/AgentEvents.cs
55.66% <ø> (-0.21%)
:arrow_down:

src/ApiService/ApiService/Log.cs
7.72% <ø> (ø)

src/ApiService/ApiService/OneFuzzTypes/Enums.cs
30.98% <ø> (ø)

src/ApiService/ApiService/OneFuzzTypes/Model.cs
72.12% <ø> (ø)

...piService/ApiService/onefuzzlib/ProxyOperations.cs
0.00% <0.00%> (ø)

...piService/ApiService/onefuzzlib/ReproOperations.cs
0.00% <0.00%> (ø)

...ervice/ApiService/onefuzzlib/ScalesetOperations.cs
2.66% <0.00%> (-0.03%)
:arrow_down:

...ApiService/ApiService/onefuzzlib/VmssOperations.cs
0.00% <0.00%> (ø)

...ApiService/ApiService/onefuzzlib/NodeOperations.cs
25.19% <9.67%> (-1.89%)
:arrow_down:

... and 173 more

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


Very ugly error message when using az account logging update command on a Storage Account of kind BlobStorage or sku.tier Premium

If you try to exeute az account logging update with a Premium storage account or with a BlobStorage storage account, you will get an error similar to the following:
az>> az storage logging show --account-name xxxxxxxxxxx --subscription xx-xxx-xxx
The command failed with an unexpected error. Here is the traceback:
HTTPSConnectionPool(host='xxxxxxxxxx.queue.core.windows.net', port=443): Max retries exceeded with url: /?restype=service&comp=properties (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x00DFC830>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed',))
Traceback (most recent call last):
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-hb486cm7\urllib3\urllib3\connection.py", line 159, in _new_conn
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-hb486cm7\urllib3\urllib3\util\connection.py", line 57, in create_connection
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\socket.py", line 745, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 11002] getaddrinfo failed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-hb486cm7\urllib3\urllib3\connectionpool.py", line 600, in urlopen
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-hb486cm7\urllib3\urllib3\connectionpool.py", line 343, in _make_request
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-hb486cm7\urllib3\urllib3\connectionpool.py", line 839, in _validate_conn
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-hb486cm7\urllib3\urllib3\connection.py", line 301, in connect
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-hb486cm7\urllib3\urllib3\connection.py", line 168, in _new_conn
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x00DFC830>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-umfcm_n2\requests\requests\adapters.py", line 449, in send
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-hb486cm7\urllib3\urllib3\connectionpool.py", line 638, in urlopen
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-hb486cm7\urllib3\urllib3\util\retry.py", line 399, in increment
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='xxxxxxxxxxx.queue.core.windows.net', port=443): Max retries exceeded with url: /?restype=service&comp=properties (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x00DFC830>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-umfcm_n2\azure-multiapi-storage\azure\multiapi\storage\v2018_11_09\common\storageclient.py", line 321, in _perform_request
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-umfcm_n2\azure-multiapi-storage\azure\multiapi\storage\v2018_11_09\common_http\httpclient.py", line 92, in perform_request
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-umfcm_n2\requests\requests\sessions.py", line 533, in request
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-umfcm_n2\requests\requests\sessions.py", line 646, in send
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-umfcm_n2\requests\requests\adapters.py", line 516, in send
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='xxxxxxxxx.queue.core.windows.net', port=443): Max retries exceeded with url: /?restype=service&comp=properties (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x00DFC830>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\bhulse.azure\cliextensions\interactive\azext_interactive\azclishell\app.py", line 662, in cli_execute
result = invocation.execute(args)
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-umfcm_n2\azure-cli-core\azure\cli\core\commands_init_.py", line 603, in execute
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-umfcm_n2\azure-cli-core\azure\cli\core\commands_init_.py", line 661, in run_jobs_serially
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-umfcm_n2\azure-cli-core\azure\cli\core\commands_init.py", line 652, in run_job
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-umfcm_n2\azure-cli-core\azure\cli\core\commands\arm.py", line 750, in show_exception_handler
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-umfcm_n2\azure-cli-core\azure\cli\core\commands_init.py", line 631, in run_job
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-umfcm_n2\azure-cli-core\azure\cli\core\commands_init.py", line 306, in call
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-umfcm_n2\azure-cli-core\azure\cli\core_init_.py", line 485, in default_command_handler
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-umfcm_n2\azure-cli\azure\cli\command_modules\storage\operations\logging.py", line 15, in get_logging
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-umfcm_n2\azure-cli\azure\cli\command_modules\storage\services_wrapper.py", line 29, in get_logging
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-umfcm_n2\azure-multiapi-storage\azure\multiapi\storage\v2018_11_09\queue\queueservice.py", line 372, in get_queue_service_properties
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-umfcm_n2\azure-multiapi-storage\azure\multiapi\storage\v2018_11_09\common\storageclient.py", line 430, in _perform_request
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-umfcm_n2\azure-multiapi-storage\azure\multiapi\storage\v2018_11_09\common\storageclient.py", line 361, in _perform_request
azure.common.AzureException: HTTPSConnectionPool(host='xxxxxxxxxxx.queue.core.windows.net', port=443): Max retries exceeded with url: /?restype=service&comp=properties (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x00DFC830>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed',))
I would have expected a simple error message along the lines of:
Premium Storage accounts do not support logging
BlobStorage storage accounts do not support logging.
I though I was having a problem with api quotas.

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

ID: c237378a-a708-8e2f-3c8c-0bc8b623d21c
Version Independent ID: c4e27b67-9605-60f5-899d-8ffd727079b2
Content: az storage logging
Content Source: src/azure-cli/azure/cli/command_modules/storage/_help.py
Service: storage
GitHub Login: @rloutlaw
Microsoft Alias: routlaw

add to S168

Hi @hulseware,  sorry for late response first.
There are several points to clarify here:

Are you using az interactive to run cli commands?
When I try to reproduce your issue with normal cli (not in interactive mode), I only get one exception not four exceptions like what in your scenario. Here is what I get:

HTTPSConnectionPool(host='zuhblob.queue.core.windows.net', port=443): Max retries exceeded with url: /?restype=service&comp=properties (Caused by NewConnectionError('<urllib3.connection.HTTPSConnect
ion object at 0x000001F15CE28288>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))

Your suggestion is very valuable to us. As you mentioned, the error occurs because of specific storage account type. Actually it is caused by default value (bqt) in --services parameter:

BlobStorage doesn't support logging for queue service;
PremiumStorage doesn't support logging for blob/queue/table services.
I will refine the error message to make it point to wrong storage account type.

Yes, I use az interactive while developing the right cli commands to add to utilities targeted at maintaining better security across the subscriptions I am managing for my team. So the extra tracebacks were coming from the az interactive tool.
Yes, I believe that message is what I see when running via the normal command line.

Thanks for working to make the error message more descriptive of the real problem!
From: Zunli Hu<EMAIL_ADDRESS>Sent: Thursday, May 21, 2020 2:11 AM
To: Azure/azure-cli<EMAIL_ADDRESS>Cc: Hulse, Bruce<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [Azure/azure-cli] Very ugly error message when using az account logging update command on a Storage Account of kind BlobStorage or sku.tier Premium (#11969)
External email from: noreply<EMAIL_ADDRESS>Hi @hulsewarehttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fhulseware&data=02|01|bhulse%40ptc.com|f25ae0dc795942b8432f08d7fd4dd671|b9921086ff774d0d828acb3381f678e2|0|0|637256383063474220&sdata=Zo%2FTrRWewqd33HZtjCS%2FtKAUGF%2FCs%2F2qoIMW0OlqI28%3D&reserved=0, sorry for late response first.
There are several points to clarify here:

Are you using az interactive to run cli commands?
When I try to reproduce your issue with normal cli (not in interactive mode), I only get one exception not four exceptions like what in your scenario. Here is what I get:

HTTPSConnectionPool(host='zuhblob.queue.core.windows.net', port=443): Max retries exceeded with url: /?restype=service&comp=properties (Caused by NewConnectionError('<urllib3.connection.HTTPSConnect
ion object at 0x000001F15CE28288>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))

Your suggestion is very valuable to us. As you mentioned, the error occurs because of specific storage account type. Actually it is caused by default value (bqt) in --services parameter:

BlobStorage doesn't support logging for queue service;
PremiumStorage doesn't support logging for blob/queue/table services.
I will refine the error message to make it point to wrong storage account type.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fazure-cli%2Fissues%2F11969%23issuecomment-631902964&data=02|01|bhulse%40ptc.com|f25ae0dc795942b8432f08d7fd4dd671|b9921086ff774d0d828acb3381f678e2|0|0|637256383063479216&sdata=HCtaDxvR6agdww5TSxgEOE6WmNgJ4eTYKG3mk9%2Bpw00%3D&reserved=0, or unsubscribehttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACLZFQQTT6JLU27D6HU6GFLRSTAYXANCNFSM4KM3LHYQ&data=02|01|bhulse%40ptc.com|f25ae0dc795942b8432f08d7fd4dd671|b9921086ff774d0d828acb3381f678e2|0|0|637256383063484198&sdata=Dj9dgmYAByp4XMcbQz9VIO6FfXbVtopi33iJZVX1u9A%3D&reserved=0.


Flutter webview text input gets hidden by soft keyboard

I'm testing on Android (I'll verify it's the same on iOS also).
My issue is that when I have a webview showing a stripe checkout page, and I tap a text entry there to enter something near the bottom (zipcode) then the virtual keyboard covers the webview and I'm NOT able to scroll up even in the webview.
It appears that the webview takes up the whole screen as expected, but when a soft keyboard comes up Flutter I think usually makes space for it (shrinks widgets showing on the screen).  Webview appears to just stay the same size.
I tried a hack of putting the web view in a container() with dynamic height myself.  It sorta works.  The code is below, and the key line is this height of the Container():
height: MediaQuery.of(context).size.height * (MediaQuery.of(context).viewInsets.bottom != 0 ? .7 : 1)

But this has issues with confusing the keyboard. It somehow tricks the keyboard to NOT be digit entry type for zip code for example.  It looks like it tries, but repaints to non digit keyboard after a split second.
Why does Webview not respect the soft keyboard on phones?
Here is my build in the stateful widget:
  @override
  Widget build(BuildContext context) {
    return SafeArea(
      child: Stack(
        children: [
          initialUrl == null
              ? Container()
              : Container(
                  height: MediaQuery.of(context).size.height * (MediaQuery.of(context).viewInsets.bottom != 0 ? .7 : 1),
                  child: WebView(
                    initialUrl: initialUrl,
                    javascriptMode: JavascriptMode.unrestricted,
                    onPageStarted: (controller) {},
                    onPageFinished: (controller) {
                      Future.delayed(Duration(milliseconds: 1234), () {
                        if (mounted) {
                          showLoading = false;
                          setState(() {});
                        }
                      });
                    },
                    navigationDelegate: (NavigationRequest request) {
                      if (request.url.startsWith('https://example.com/success')) {
                        Navigator.of(context).pop('success');
                      } else if (request.url.startsWith('https://example.com/cancel')) {
                        Navigator.of(context).pop('cancel');
                      }
                      return NavigationDecision.navigate;
                    },
                  ),
                ),
          showLoading == true
              ? Center(
                  child: Container(width: 80, height: 80, child: CircularProgressIndicator()),
                )
              : Container(),
        ],
      ),
    );
  }

Here are screen shots.  Note in the keyboard one you can NOT even scroll the webview to see the zip you're typing...

@jdeltoft
Can you try by wrapping Webview inside Scaffold and then use resizeToAvoidBottomInset: true property to see if it works ?

@darshankawar So that sorta works, but I tried this before.  The issue with this is that it's clobbering the keyboard type.  For example, I should see keyboardType: TextInputType.number when I am typing a zip code.  I see it for maybe a few hundred milliseconds but then it reverts to default keyboard.  Below is the logging I see in Android Studio.  Any idea?
E/InputMethodManager(22041): b/117267690: Failed to get fallback IMM with expected displayId=200 actual IMM#displayId=0 view=io.flutter.plugins.webviewflutter.InputAwareWebView{b98e973 VFEDHVC.. .F...... 0,0-1080,2132}
E/InputMethodManager(22041): b/117267690: Failed to get fallback IMM with expected displayId=200 actual IMM#displayId=0 view=io.flutter.plugins.webviewflutter.InputAwareWebView{b98e973 VFEDHVC.. .F...... 0,0-1080,2132}
E/InputMethodManager(22041): b/117267690: Failed to get fallback IMM with expected displayId=200 actual IMM#displayId=0 view=io.flutter.plugins.webviewflutter.InputAwareWebView{b98e973 VFEDHVC.. .F...... 0,0-1080,2132}
E/InputMethodManager(22041): b/117267690: Failed to get fallback IMM with expected displayId=200 actual IMM#displayId=0 view=io.flutter.plugins.webviewflutter.InputAwareWebView{b98e973 VFEDHVC.. .F...... 0,0-1080,2132}
E/InputMethodManager(22041): b/117267690: Failed to get fallback IMM with expected displayId=200 actual IMM#displayId=0 view=io.flutter.plugins.webviewflutter.InputAwareWebView{b98e973 VFEDHVC.. ......ID 0,0-1080,2132}
E/InputMethodManager(22041): b/117267690: Failed to get fallback IMM with expected displayId=200 actual IMM#displayId=0 view=io.flutter.plugins.webviewflutter.InputAwareWebView{b98e973 VFEDHVC.. ......ID 0,0-1080,2132}
E/InputMethodManager(22041): b/117267690: Failed to get fallback IMM with expected displayId=201 actual IMM#displayId=0 view=io.flutter.plugins.webviewflutter.InputAwareWebView{b98e973 VFEDHVC.. .F...... 0,0-1080,1507}
W/IInputConnectionWrapper(22041): getTextAfterCursor on inactive InputConnection
W/IInputConnectionWrapper(22041): getSelectedText on inactive InputConnection
W/IInputConnectionWrapper(22041): endBatchEdit on inactive InputConnection
E/InputMethodManager(22041): b/117267690: Failed to get fallback IMM with expected displayId=201 actual IMM#displayId=0 view=io.flutter.plugins.webviewflutter.InputAwareWebView{b98e973 VFEDHVC.. ......ID 0,0-1080,1507}
E/InputMethodManager(22041): b/117267690: Failed to get fallback IMM with expected displayId=201 actual IMM#displayId=0 view=io.flutter.plugins.webviewflutter.InputAwareWebView{b98e973 VFEDHVC.. ......ID 0,0-1080,1507}
E/InputMethodManager(22041): b/117267690: Failed to get fallback IMM with expected displayId=202 actual IMM#displayId=0 view=io.flutter.plugins.webviewflutter.InputAwareWebView{b98e973 VFEDHVC.. .F...... 0,0-1080,1391}
W/IInputConnectionWrapper(22041): getTextAfterCursor on inactive InputConnection
W/IInputConnectionWrapper(22041): getSelectedText on inactive InputConnection
W/IInputConnectionWrapper(22041): endBatchEdit on inactive InputConnection

@jdeltoft
Can you also try with SingleChildScrollView and see if it helps ?

No help.  I am trying to investigate how the keyboard type such as
keyboardType: TextInputType.phone,
is set for a text field in webview.

Ok, found the fix here:
https://github.com/flutter/plugins/tree/master/packages/webview_flutter#using-hybrid-composition
from here:
https://github.com/flutter/flutter/issues/58943
I added this hybrid per instructions and it worked.


ROX-16461: Fix kube-proxy assertion

Description

AKS kube-proxy pods are not tracked as static pods because the owner reference is the kube-proxy DaemonSet and in those cases we only track the DaemonSet. The test needs to assert with the kube-proxy DaemonSet.
User-facing documentation

[x] CHANGELOG update is not needed
[x] Documentation is not needed

Testing

[x] inspected CI results

Automated testing

[x] modified existing tests

How I validated my change

[x] AKS test should pass

/test aks-qa-e2e-tests

/test aks-qa-e2e-tests

/test aks-qa-e2e-tests

/test aks-qa-e2e-tests

/test aks-qa-e2e-tests


Node-API: Fail installation on unsupported platforms

We discovered a few currently unsupported platforms for Node-API (M1 ARM Macs and Windows 32bit Node) as we are not building the correct libraries for that yet. When Node-API goes GA, we will print a warning for these and fall back to the old binaries for these platforms (https://github.com/prisma/prisma/issues/7431), but right now while we have the feature flag it makes more sense to just fail with an error message for them.

We are now failing command executions on M1 Macs via an error message.


Buttons are not affected when changing interface opacity settings

Buttons do become transparent in the title screens, which is what happens in legacy console so thats good, but in gameplay the buttons do not become transparent when the hotbar is.

Remove Immediately Fast or disable hud batching


retreive data from native base component

how to retrive data from components like
shall i set the state or use ref or name

The same way you would do for any other react-native component. NativeBase is justa wrapper around react-native components.


Add "dark mode" button in this website!!

I am adding the button named "D" , if we click on that then the dark mode will be activated. Dark mode is here to help with this, making the screen easier to see in low lighting such as in the night or early morning. It can be a lot easier on the eyes, causing less strain and is better in the long run. So can you assign me this because I want to contribute in this.

dark mode added in 76981e0da5d65c6ca04ce6fe74d97473b189942d and subsequent commits.  No button, but rather the site respects the dark mode preference set in the browser.


If I click "Start Trial" too quickly on this page, because there's some latency between clicking the CTA and then loading the next modal, this page hangs

Steps to repro:

From Free --> Pro

Go to /cody/subscription as a Free user
Click "Get Pro Trial"
Click "Start Trial" very quickly. See bug 🐛 . It thinks the user is already Cody Pro, and so throws an error

From Pro --> Free

Go to /cody/subscription as a Pro user
Click "Cancel"
Click "Switch to Free" very quickly. See bug 🐛 . It thinks the user is already Cody Free, and so throws an error

Intended behavior for both:

No matter if clicking once or 10x quickly, the user state should switch based on the users intention.

Don't be so quick!
Kidding, I'll take a look at this tomorrow.


Review of AI projects - Api.ai

Review of AI projects - Api.ai
Api.ai

Home page This looks like a well-designed site. The rotating pictures and text in the middle of the page show how English sentences are translated into JSON entities. The bottom of the page has nine topic areas for review.

Complete Solution A nice high-level page. The three components are:

Speech Recognition with topic specific language models and choice of recognizer.
Natural Language Processing This looks like the basis for the rotating pictures on the home page.
Fulfillment is what the AI responds with to the user's requests.

Get started in 5 steps A very useful page using the AI language seen on Wit.

(1) Create agent, (2) Create entities, (3) Create intents, (4) Test and train your agent, (5) Integrate.
Create intents uses machine learning on the designer's word and phrase list to generalize how the information from user's statements can be obtained.

Knowledge Included "Domains are pre-defined knowledge packages."

The bottom of the page provides a list of domains and the languages available for them.
The response JSON item in the middle of the page is interesting.
Fulfillment is a response assembled by Api.ai for a request in a given domain.

Machine Learning "An intent represents a mapping between what a user says and what action should be taken by your software."

This page details how to enter data that provides an ability to translate a user's expression into an action. An entity appears to be a symbol (set of characters) to which some part of the user's expression is translated. Identified entities are connected to actions.

Conversation Support "Contexts are strings that represent the current context of a user’s request."

A context provides clarity to what would be a user's vague statement, such as in the use of pronouns, that do not identify a specific object without a context.
Examples are given showing how vague statements without context can be clarified and how contexts are created and used.

Integrations "You can now use your agents as knowledge extensions within the Assistant.ai app."

The idea here appears to be to mix Api.ai responses with other user applications.

Api.ai conclusion

The items that standout for Api.ai are

The domains and their multi-lingual support.
The use of machine learning to generalize the entity identification from a user's expressions.
Well designed AI construction pages.
Translation of recognized speech into a JSON return. (I can see now how Wit could do this similarly.)

Along with Wit, Api.ai is for web-page and app designers where expressions are obtained from users, translated and responded to by Api.ai or responded to by the designer app. The domains and machine learning aspects are particularly interesting.

Closed on similar grounds of https://github.com/Melissa-AI/Melissa-Core/issues/19.


Have to add "web app capable" tags manually

I've just tried setting up a plain project:
$ npm --version
8.12.2
$ npm create vite@latest
(choose vanilla-ts, name "test")
cd test
npm i
npm i vite-plugin-pwa -D

after which I followed the steps described here and here
Now if I start the app locally, serve it over the network, open it on my phone in Chrome, add it to my homescreen and then open the app I added to the home screen, it just opens the page in chrome (meaning e. g. that the address bar is visible). It doesn't treat it like a pwa where the address bar is not visible when you open it from your home screen.
It is only after I add
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">

to the app's index.html that it properly works like a pwa and I don't see the address bar.
Is this intended?

@tobiasfeil are you serving your app on local using https? can you check if the docs of this repo is showing the install button on the address bar (without the entries you added to the entry point)?
The install button is the first on the right side in the address bar:

on Android

@tobiasfeil if only works adding those entries, I can add them to the docs to support macos/ios.

@userquin thank you so much for the quick answer. I've tried all your suggestions, dug through the examples and done much trial and error for about 3 hours now and I've found the answer: It doesn't work when I run it with npm run dev, only if I build first and then serve e. g. with the serve command. I think it would be helpful to include this somewhere in the docs since it cost me quite some time.
For further information, the scripts section in my package.json looks like this:
"scripts": {
    "build": "vite build",
    "dev": "vite",
    "preview": "vite preview",
    "start": "npm run build && npm run serve",
    "serve": "serve dist"
  }

With npm run dev, it doesn't get served like a proper pwa (can't install on desktop and still shows the address bar on mobile), while it works with npm run start.

@tobiasfeil you shouldn't use that meta tags, check the warning here: https://web.dev/learn/pwa/web-app-manifest/#designing-your-pwa-experience
You can use the devOptions with the latest version 0.12.0, a minimal version installing the pwa on dev (only the entry point will be registered in the sw precache manifest), but the manifest will not be generated, we've a PR ready for next patch release. The devOptions is for debugging the custom sw using injectManifest on complex scenarios and so the pwa capabilities can be tested.
On development it makes no sense to add a sw that will cache everything...

Alright, thank you very much!


Use released version of the action in examples

Use released version of action in examples.

You rock 👍🏼


Iron Route Path Naming Problem

Hey,
I tested your app with the following routes:
(1) /demo
(2) /demo/test
And it seems like route #2 is not working. It takes forever to look the page. Do you have any idea what causes this problem?

There's no /demo/test. Valid routes can be seen in the routes.js.

I added new routes to test it. You can try adding /demo/test. You will see that the app is stuck with an infinite loop. That's because of the relative routes that you're using for importing components. This was one of problem that I faced when playing Polymer.
Reference: https://github.com/iron-meteor/iron-router/issues/1052


Configurable property to update with track

to be able to update not just "val" but anything else

For https://github.com/dgomes/hasp-lvgl-custom-component/issues/7

Thanks for this PR :)
I was actually planning in having the possibility to link entities to various properties:
      - obj: "p1b3" #This is a checkbox
        text: {{ state_attr('automation.rise_and_shine', 'friendly_name') }}
        val: {{ state('automation.rise_and_shine') }}

Highly appreciated! :)

I would give it a shot if you'd point me into the right direction on how to expand the template into a result variable.

It's all handled by TemplatEntity https://github.com/home-assistant/core/blob/6fb2e63e49f01d9eaf09c7b21122981e462e4e99/homeassistant/components/template/template_entity.py
I always find it easier to look into existing components that already support the feature I want to implement and learn from their implementations.

Major refactor yesterday, please have a look

Nice, I see the # TODO support more then "val" at async_listen_state_changes.
Wonder if I add the template to variable resolver above in init would that be enough or should it be pushed down in async_listen_state_changes to receive updates regularly?

I'm afraid that will not be enough, tonight I might have some extra time to try and address this

I think to add a configurable, optional factor parameter to the obj section which would be useful to address this.
The arc in hasp-lvgl can only handle integers, so you need to set it to move between 150 and 300, and divide by factor 10 to obtain decimal values to set a target temperature in Home Assistant.

But you need to multiply back with 10 when you update the val of the arc.
And you need not to multiply with anything when updating other properties like value_str.
So  factor parameter would be only involved in reading (divison) and setting (multiplication) of the val property.

a1f5704fc1a71e0e6188f796e5e2b34e98c190c4 implements this

you can type any conversion you wish into the template to set the hasp objective property, now I'll work on the event side

Done in 4795760dfd1e100e0350102a4b5f9c19671cb87c
event service call can now use variables (MQTT messages key/values) in their service templates

event service call can now use variables (MQTT messages key/values) in their service templates

What's the syntax? For MQTT message sent by the plate: {"event":"changed","val":110} how do I extract the val?
To achieve something like this:
        event:
          "changed":
            service: climate.set_temperature
            data_template:
              entity_id: climate.futes
              temperature: "{{ val / 10 }}"

             temperature: "{{ val | int / 10 }}"

also you don't need "data_template" it's just "data"... you can test the service call in developer-tools/server and then copy & paste to the configuration.yaml

Excellent.
try:
{"obj":"arc","id":3,"x":20,"y":75,"w":200,"h":200,"min":120,"max":460,"border_side":0,"type":0,"rotation":0,"start_angle":135,"end_angle":45,"start_angle1":135,"end_angle1":45,"value_font":28,"value_color":"#2C3E50","adjustable":"true"}
and
      - obj: "p2b3"
        properties:
          "val": "{{ state_attr('climate.climate1','temperature') * 10 | int }}"
          "value_str": "{{ state_attr('climate.climate1','temperature') }}"
        event:
          "changed":
            service: climate.set_temperature
            data:
              entity_id: climate.climate1
              temperature: "{{ val | int / 10 }}"

does it work or not ?
You should join the hasp-lvgl discord ;)

it works but it needs some throttling

can't do much from HA side... if the events are generated, they are being processed

There's a race causing this:
https://user-images.githubusercontent.com/1550668/112021864-05640a00-8b32-11eb-80f0-20a17051770c.mp4
I think what happens is:

I drag the arc, object changed
plate sends an MQTT
HA gets it as event -> component adjusts the entity
entity has changed -> component sends MQTT
plate gets it as update command -> adjusts the arc, object changed
and goto line 1 again....


PHP Warning:  ftell(): supplied resource is not a valid stream resource

PHP Warning:  ftell(): supplied resource is not a valid stream resource in /vendor/twistor/flysystem-stream-wrapper/src/FlysystemStreamWrapper.php on line 390
BTW: When did you tag a new version?

Looks like the last tag was April of last year.

The only 2 uses of ftell() should both have valid resources.
Can you give me an example usage?

Using PHP 7 and Drupal 8.3.1
Modules:

flysystem
flysystem_s3
...
see also https://www.drupal.org/node/2873871

[Wed May 10 20:48:33.102905 2017] [:error] [pid 1216] [client <IP_ADDRESS>:44852] PHP Warning:  ftell(): supplied resource is not a valid stream resource in /vendor/twistor/flysystem-stream-wrapper/src/FlysystemStreamWrapper.php on line 390
[Wed May 10 20:48:33.041734 2017] [:error] [pid 1216] [client <IP_ADDRESS>:44852] PHP Fatal error:  Maximum execution time of 240 seconds exceeded in /src/core/lib/Drupal/Core/Cache/DatabaseBackend.php on line 138
[Wed May 10 20:48:33.102968 2017] [:error] [pid 1216] [client <IP_ADDRESS>:44852] PHP Fatal error:  Uncaught Error: Access to undeclared static property: Drupal\flysystem\FlysystemBridge::$filesystems in /src/modules/contrib/flysystem/src/FlysystemBridge.php:100\nStack trace:
#0 /src/modules/contrib/flysystem/src/FlysystemBridge.php(115): Drupal\flysystem\FlysystemBridge->getFilesystemForScheme('s3')
#1 /vendor/twistor/flysystem-stream-wrapper/src/FlysystemStreamWrapper.php(393): Drupal\flysystem\FlysystemBridge->getFilesystem()
#2 [internal function]: Twistor\FlysystemStreamWrapper->stream_flush()
#3 {main}\n  thrown in /src/modules/contrib/flysystem/src/FlysystemBridge.php on line 100
Is it a deadlock?
I see that you changed the lock handling since last tagged version.
I meant when will you tag a new version?

Hmmm...
For starters, the locking in this project has nothing to do with the Database. This shouldn't be causing any deadlocks.
The static property $filesystems is declared right here: https://github.com/twistor/flysystem-stream-wrapper/blob/master/src/FlysystemStreamWrapper.php#L34
This sounds like either a bug in an underlying library, or something strange.
Those log messages are out of order.
It looks like the PHP max execution time runs first? That could be the problem.

Sorry for the noise - it was a Database problem. Thanks


Relax hook to work on non-'static diagnostics

This is a fundamental tradeoff. I think, for diagnostics, while Report should be 'static as an error reporting type, individual Diagnostics have good reason to be non-'static, and the library should try to support that. For example, I have a ParseError<'src> type which contains &'src str to the parsed source and implements Diagnostic.
The loss here is that the error hook can no longer Error::downcast the diagnostic. For eyre, it makes some sense to customize the error display style based on the concrete type of the error; perhaps there's an error type that you want a more friendly error formatting handler for, and you want the default for other errors. For miette, though, downcasting and choosing a different report handler seems ill-advised at best. (Plus, you can always just not use the global hook and feed it through a report handler directly.)
...And now that downcast isn't available, you could even just have set_hook(&'static dyn ReportHandler), and skip the creation of a new report handler for each error. (See the discussion #128 for my more in detail opinions here.)

(Closing for #128 discussion)


Fix single- & multi-node diagrams in App Dev Guide

Make diagrams consistent and correct (Sawtooth CLI client is on the validator node).
Includes renaming the Kubernetes multi-node diagram - the previous name included "3TPs", but there are 4 TPs in the example environment.

Reviewers:  The HTML images in the build artifacts appear to have font problems, but that's just a Jenkins build issue. Instead, please see the LaTeX (PDF) images in the build artifacts.

Single-node image for Docker / Ubuntu / AWS: https://build.sawtooth.me/job/Sawtooth-Hyperledger/job/sawtooth-core/job/PR-1842/2/artifact/docs/build/latex/appdev-environment-one-node-3TPs.pdf

Single-node image for Kubernetes:
https://build.sawtooth.me/job/Sawtooth-Hyperledger/job/sawtooth-core/job/PR-1842/2/artifact/docs/build/latex/appdev-environment-one-node-3TPs-kube.pdf

Multi-node image for Docker / AWS:
https://build.sawtooth.me/job/Sawtooth-Hyperledger/job/sawtooth-core/job/PR-1842/2/artifact/docs/build/latex/appdev-environment-multi-node.pdf

Multi-node image for Ubuntu:
https://build.sawtooth.me/job/Sawtooth-Hyperledger/job/sawtooth-core/job/PR-1842/2/artifact/docs/build/latex/appdev-environment-two-nodes.pdf

Multi-node image for Kubernetes:
https://build.sawtooth.me/job/Sawtooth-Hyperledger/job/sawtooth-core/job/PR-1842/2/artifact/docs/build/latex/appdev-environment-multi-node-kube.pdf

I pushed a fix-up commit for typos in the alt image text (repeated words) in commit 47ca56ac5..., "Fix alt image text for App Dev guide procedures".

Looks like the rename of the images is only partial: There still seems to be a 3TP-named image in there.

Looks like the rename of the images is only partial: There still seems to be a 3TP-named image in there.

This is correct. The remaining image with "3TP" is for the single-node image. Only the multi-node image was renamed.


No sonoff.update_consumption service

Hi
I try to call sonoff.update_consumption service, but I can not find that service in developer-tools > service
can you help me?
Thanks for the help

Duplicate #283

Duplicate #283


Add additional READMEs to each module

It would be good to have a README for all modules in the framework. In particular the proxy-store.

Merged into develop.