Support installing plugins from a local directory

It would be convenient if micro -plugin install  would accept a path to a directory as an argument. This would be a bit more convenient for development. It's better than editing my source code in my home directory or constantly copyin g things. The alternatve that I currently use though is I use the environment variable to tell micro its configuration is located in my development tree: MICRO_CONFIG_HOME=$(pwd)/micro $(pwd)/result/bin/micro , however I still have to either put the code in the config dir, or symlink individual files because of the symlink bug.
There are also two possible scenarios

the target is copied into micro's directory as with normal plugins: this means editing the original directory will not influence what's running
it's symlinked: opposite of the above

It's not obvious to me that either of these would necessarily be superior so both could be done.
Symlink support would need to be fixed for the latter: https://github.com/zyedidia/micro/issues/1949

A third option that might be good is to be able to manually specify a plugin directory for a single plugin at an arbitrary location, that can be used without copying it to the config dir.

A third option that might be good is to be able to manually specify a plugin directory for a single plugin at an arbitrary location, that can be used without copying it to the config dir.

I am not sure but it seems to me that you can use file:///
"pluginchannels": [
    "file:///my_custom_plugin/channel.json"
]


IBM NODE_RED:text to speech node unauthorized

I have created connection between node-red stater kit and text to speech service .
Still the text to speech service is showing unauthorized .
what should i do

As this is a user error, you should raise a question either on DeveloperWorks Answers or on Stack Overflow.


cleanup(gvisor): remove max string length for runsc read

Signed-off-by: Luca Guerra<EMAIL_ADDRESS>
What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind cleanup

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area libscap-engine-gvisor

Does this PR require a change in the driver versions?
no

What this PR does / why we need it:
I noticed we had a max string length. This is ok for now, but perhaps on big containers we may have a problem. Remove this issue by using C++ stream readers.
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

cleanup(gvisor): remove max string length for runsc read

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: LucaGuerra
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [LucaGuerra]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

(cc @loresuso )

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: FedeDP, LucaGuerra
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [FedeDP,LucaGuerra]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

LGTM label has been added.  Git tree hash: 202ab4c22c124a258f656dcb6f048fdf63f905bc

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: Andreagit97, FedeDP, LucaGuerra
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [Andreagit97,FedeDP,LucaGuerra]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Update README for co2eq models

After having worked with the update of the flight model to take into account load factors, I came to realise that the README could be improved:

Some details about the structure of a co2 model would help contributors upgrade/develop new models. For example, it seems that a model has to expose the functions modelCanRun and carbonEmissions and feature the parameters modelName explanation modelVersion modelCanRunVersion etc but it is not specified anywhere. A template model could provide good insights (+ possibly some level of abstraction but that might require typescript)

Guidelines for the increment of modelVersion and such would also be useful for contributors.

Absolutely!


:recycle: major refactoring

I'll document the changes tomorrow - a bit too tired now :upside_down_face:
Long story short -> used more traits & structs to provide more flexibility (& less duplicate code) yay! :tada:
-- did not add support for aarch64/arm (as I currently do not have access to my ARM testing device)

I can assist with the ARM64 testing if you need.

Would be very useful! @varon
It should be safe to look into adding support for ARM/Aarch64 for ints & uints  from #21 (after this merge)

I'll fix the u32 AVX2 regression in PR #21


Local Notification Doesn't Show in iOS 11

If this issue is for a new feature, please skip the "Bug" section and fill out the "Feature Request" section at the bottom.
Bug
Plugin Version:  2.1.0
Platform: xcode 9 for iOS 11 and VS 15.3.5
Device/Hardware:  Mac and Windows
Expected behavior
Should show simple notification on iOS 11 emulator
Actual behavior
Doesn't show any local notification in all iOS 11 emulator that I've tried. This includes: IPhone X iOS11, iPhone SE iOS11, iPhone 8 Plus iOS11, iPhone 7 iOS11
Steps to reproduce the behavior

Feature Request
Feature description:

Any solution? I have same issue in iOS 11

@deanilvincent I've tested it on real device iPhone 6 but not showing notification. Does it work on your device?

Same problem with the emulator @higher-faster-better

I guess it's not yet supported in iOS 11. In previous iOS I've tested before and it's working properly.

@deanilvincent Finally I've fixed it.
Create new class named UserNotificationCenterDelegate in IOS project.
Then add this code.
public class UserNotificationCenterDelegate : UNUserNotificationCenterDelegate
    {
        public override void WillPresentNotification(UNUserNotificationCenter center, UNNotification notification, Action<UNNotificationPresentationOptions> completionHandler)
        {
            // Tell system to display the notification anyway or use
            // `None` to say we have handled the display locally.
            completionHandler(UNNotificationPresentationOptions.Alert);
        }
    }

Finally add this code to your FinishedLaunching in app delegate.
// request local notification permission
            if (UIDevice.CurrentDevice.CheckSystemVersion(10, 0))
            {
                // Ask the user for permission to get notifications on iOS 10.0+
                UNUserNotificationCenter.Current.RequestAuthorization(
                    UNAuthorizationOptions.Alert | UNAuthorizationOptions.Badge | UNAuthorizationOptions.Sound,
                    (approved, error) => { });

                // Watch for notifications while app is active
                UNUserNotificationCenter.Current.Delegate = new UserNotificationCenterDelegate();
            }
            else if (UIDevice.CurrentDevice.CheckSystemVersion(8, 0))
            {
                // Ask the user for permission to get notifications on iOS 8.0+
                var settings = UIUserNotificationSettings.GetSettingsForTypes(
                    UIUserNotificationType.Alert | UIUserNotificationType.Badge | UIUserNotificationType.Sound,
                    new NSSet());

                UIApplication.SharedApplication.RegisterUserNotificationSettings(settings);
            }

I think you already added similar code to your app delegate.
But do not miss this line.
// Watch for notifications while app is active
                UNUserNotificationCenter.Current.Delegate = new UserNotificationCenterDelegate();

Still with above changes, it is not working.

@higher-faster-better  were you able to get this to work while the app was in the background?
Thanks

I have the same issue even after trying the suggested code by @higher-faster-better . I think it has issue with IOS 11

Sorry , it works fine after I added the latest pre version 3.0.0

In order to make it work for iOS 11.x, you need to add:
// Watch for notifications while app is active
UNUserNotificationCenter.Current.Delegate = new UserNotificationCenterDelegate();
see @higher-faster-better 's post above to see exactly where that goes.

As mentioned above, a UNUserNotificationCenterDelegate class is required if you want to display alerts while the app is in the foreground. See the README and the sample in the repo for implementation details: https://github.com/edsnider/LocalNotificationsPlugin/blob/master/samples/LocalNotificationsSample/LocalNotificationsSample.iOS/AppDelegate.cs#L20
https://github.com/edsnider/LocalNotificationsPlugin/blob/master/samples/LocalNotificationsSample/LocalNotificationsSample.iOS/UserNotificationCenterDelegate.cs


User auth, drop database and drop collections actions can be disabled?  use case production env

Can mongoclient support user auth so as can be used in a team setup ?
Also drop database or collection are prominently used in the UI, not good for production use as any team member could mistakenly click on a disaster. Any suggestion if the UI could be modified to remove these actions or create a ACL to not allow delete/drop actions on any DB ?

Hello,
I understand your concerns. First of all changing UI for user management is not a good option, you have to do it over mongodb. Because if some kind of bug occurs and someone who shouldn't have drop db right can click over it, you can't revert it back, it would be a disaster.
Secondly mongodb presents a great way to manage database users. If you  want to restrict a user to drop/delete something just give him/her only read right. I highly recommend you to read here You can simply set up custom roles with built-in privileges of mongodb then give these roles to corresponding people.
Afterwards, you can distribute Mongoclient complacency to every member of your team :)
If you have any further questions let me know.
Warm Regards

Additionally Mongoclient has a user management section which makes your life easier at this point :)


Frontend

Comments can be found here: https://github.ubc.ca/fdandrea/532-peer-review/issues/11#issuecomment-22998


Add a atmos terraform apply-last-plan command

Describe the Feature
Add a new terraform subcommand: apply-last-plan that will pick up the written *.planfile for the given component + stack and will execute terraform apply <planfile name>.planfile <extra args>.
Use Case
A really common workflow that I followed when working with vanilla terraform was the following:

Run terraform plan -out run.plan
Check and confirm the plan
terraform apply run.plan

With atmos, this doesn't work. When you run a plan, it outputs a planfile, but when passing that planfile as an extra argument to apply, it causes the following error:
Executing command:
/usr/bin/terraform apply -var-file dev-ssm-parameters.terraform.tfvars.json dev-ssm-parameters.planfile

│ Error: Can't set variables when applying a saved plan
│
│ The -var and -var-file options cannot be used when applying a saved plan file, because a saved plan includes the variable values that were set when it was created.

exit status 1

That is due to the -var-file arg atmos passes obviously, which we would not pass if we implemented the apply-last-plan subcommand. It also has the added benefit that the atmos user doesn't need to specify the planfile name in the command, which is duplicate information anyway.
Alternatives Considered
N/A
Additional Context
I'll have someone from my team or myself work on this if there is interest to implement!

@aknysh ah damn -- I missed --from-plan. Great to know about, thanks for the heads up! I'll close this out.
And re: #193 -- Will do!


App Crashes

Whenever I try to open app crashes with error height and width must be > 0.
Link to full log https://bin.utwitch.net/abarijocid.

you have any widgets of the app?


typo: committment -> commitment

Docs Build status updates of commit 335786a:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/cloud-adoption/governance/resource-consistency/governance-simple-workload.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Add Dataclasses support

Feature request
Dataclasses I find are particularly useful containers for primatives such as model parameters. I have been writing up code in a photometric model and it is convienent to drop various configurable coefficients into a dataclass. This is so that I do not explode the number of parameters each function can take, and so that I don't have a bunch of constants defined outside the function body for speed. It would be nice if numba could handle dataclasses transparently, or at least handle typical python types and a subset of numpy arrays and such. Most relevant issue looks to be #2334.

This is a good idea (forgot that dataclasses were added in Python 3.7), though for some use cases the Python types will not be granular enough for Numba.  In particular, I don't know what the right way to describe a NumPy array type is in Python.  (Numba has its own type system for this reason, as well as to allow very fine-grained types, like "2D ndarray with dtype=int32 using Fortran layout")
Since it looks like dataclasses require the type annotations, we need solve the Python/Numba type annotation question first.

That said, I wonder what happens if you try to define a dataclass using Numba types...

Tried that and no dice, numba errors on the numba type for the class. Even using jitclass didn't work, typerror on class members not yet supported.

Oh sorry, I mean the other direction: Does using Numba types affect the usage of the dataclasses from Python?  There is no way Numba currently would understand dataclasses, but it could be added, more usefully if we could use Numba types instead of Python types.

Any news? I'm trying to use this on a project but it doesnt allow me

I would also like to use Dataclasses with numba

@isidentical @siulkilulki thanks for pinging us about this. It is currently queued as a feature request but there isn't a timeline for it yet. Thanks for being patient!

this would be awesome

Agreed, this would be awesome 💯

I have a workaround: Call MyClass = jitclass(spec)(MyClass) manually after deleting the incompatible bits. Here is a small example that works on my machine:
"""
numba version: 0.53.1
numpy version: 1.21.2
CPython version: 3.9.6
I have *not* tested this thoroughly, use at your own risk :)
"""
import numpy as np
import numba as nb
from numpy import typing as npt
from typing import Any
from dataclasses import dataclass, field

spec = [
    ("field1", nb.int64),
    ("field2", nb.int64),
    ("field3", nb.float64),
    ("array1", nb.bool_[:]),
    ("array2", nb.int64[:]),
]

# call jitclass(...) manually afterwards
@dataclass(eq=False, frozen=False)
class MyClass:
    field1: int
    field2: int
    field3: float
    array1: npt.NDArray[Any] = field(init=False)
    array2: npt.NDArray[Any] = field(init=False)

    def __post_init__(self) -> None:
        self.array1: npt.NDArray[Any] = np.zeros(self.field2, dtype=nb.bool_)
        self.array2 = np.empty(self.field2, dtype=np.int64)
        self.array2.fill(self.field1)

    def method1(self, arg1: Any, arg2: Any) -> None:
        ...

    def method2(self) -> np.bool_:
        ...

del MyClass.__dataclass_params__  # type: ignore
del MyClass.__dataclass_fields__  # type: ignore
MyClass = nb.experimental.jitclass(spec)(MyClass)  # type: ignore

instance = MyClass(1, 2, 3.0)
print(instance)  # prints "<numba.experimental.jitclass.boxing.MyClass object at 0x7f46e222a220>"
print(instance.field3)  # prints "3.0"
print(instance.array1)  # prints "[False False]"

This issue looks very promising :smile: How is the progress? Seems to be a bit stuck, right? :sweat_smile:
What about reducing the efforts to a @jitstruct instead of a @jitdataclass? I'd be happy with a tuple-like implementation that interprets annotated class attributes and adds proper immutability / hashing / comparison. What do you think? :smile:

In case this is useful for anyone else, I've bundled up @Jasha10's example into a simple decorator to make life a bit easier:
import numba as nb
from dataclasses import dataclass

def jitdataclass(cls=None, *, extra_spec=[]):
    """
    Helper decorator to make it easier to numba jitclass dataclasses

    Inspired by https://github.com/numba/numba/issues/4037#issuecomment-907523015
    """
    def _jitdataclass(cls):
        dc_cls = dataclass(cls, eq=False, match_args=False)
        del dc_cls.__dataclass_params__
        del dc_cls.__dataclass_fields__
        return nb.experimental.jitclass(dc_cls, spec=extra_spec)

    if cls is not None:
        # We've been called without additional args - invoke actual decorator immediately
        return _jitdataclass(cls)
    # We've been called with additional args - so return actual decorator which python calls for us
    return _jitdataclass

Which can be used like:
@jitdataclass
class MyDataClass:
    field1: nb.int64
    field2: nb.float64

@jitdataclass(extra_spec=[('field3', nb.int64)])
class MyMoreComplexDataClass:
    field1: int
    field2: float

    def __post_init__(self):
        self.field3: int = 0

Note that you don't always need to pass the spec to jitclass numba is already pretty decent at picking this from the type annotations itself. But when you do need this (for more complicated types) you can use the extra_spec option in the decorator to help numba out.
Hope this is useful to someone until there's a full implementation!

@benkrikler Thank you very much for your efforts. For me there's still one big issue with jitclass that keeps me away from using Numba in an OOP way. I cannot reference another jitclass in a jitclass as attribute :thinking: :sweat_smile:
I think there's a workaround with heap-allocating a list with only one element, i.e. a pointer to the referenced object, but this doesn't feel right. It would be nice if there was an easy solution to that problem :sweat_smile:
I know I'm demanding crazy things that go deep into the memory management details which Python doesn't support very well. So yeah, just ignore me if you think this is BS. But I think it would make a huge difference if you got this to work properly :joy:

@benkrikler
With numba 0.57, I was only able to get this to work with the addition of del dc_cls.__repr__

Thanks @danem - can confirm that worked for me too.

@benkrikler Thank you very much for your efforts. For me there's still one big issue with jitclass that keeps me away from using Numba in an OOP way. I cannot reference another jitclass in a jitclass as attribute 🤔 😅
I think there's a workaround with heap-allocating a list with only one element, i.e. a pointer to the referenced object, but this doesn't feel right. It would be nice if there was an easy solution to that problem 😅
I know I'm demanding crazy things that go deep into the memory management details which Python doesn't support very well. So yeah, just ignore me if you think this is BS. But I think it would make a huge difference if you got this to work properly 😂

Just wanna note that you can reference another jitclass in a jitclass as attribute, though the process is a bit clunky.
To build the appropriate spec, you can use numba's deferred_type function.
The code is something like...
attribute_type = deferred_type()
attribute_type.define(attribute_jitclass.class_type.instance_type)

@jitclass([('attribute', attribute_type)])
class ParentClass:

    def __init__(self, attribute_jitclass_instance):
        self.attribute = attribute_class_instance

I've gotten into the habit of defining these types whenever I code up a class I might want to use as an attribute of another class. I haven't yet tested whether this workflow is compatible with the techniques for defining dataclasses discussed here.

Just wanna note that you can reference another jitclass in a jitclass as attribute, though the process is a bit clunky.
To build the appropriate spec, you can use numba's deferred_type function.

I don't think your approach is feasible for my use case. But thank you anyways for sharing this with all the other devs who might make use of your little workaround, @githubpsyche.
Currently, I'm looking forward to the advances of Mojo. It might replace Numba entirely and provide a proper compiler / type system that finally makes Python code adequately fast.


Update README.md

SUMMARY

ISSUE TYPE

Bugfix Pull Request
Docs Pull Request
Feature Pull Request
New Module Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION

Exception: hudson.AbortException: Fail: the returned code 404 is not in the accepted range: [[100‥399]]

Exception: hudson.AbortException: Fail: the returned code 404 is not in the accepted range: [[100‥399]]


Advanced Tab?

I don't recall specifically what we planned for the "advanced" tab? Is this a tab for if there is info about how to train your own model with python? I think we should avoid the word "advanced". Maybe just some pages would have a "training" tab?

I guess the ”advanced” is a place holder text on the design sketch. I changed it to ”training” tab
Sent with GitHawk

I turned the "advanced tab" into a training tab and it will automatically hide when there is no content


Add develop guide about HA support

Hi, this PR adds a section to developer-guide.md about HA support.
:)

Thanks! LGTM.


About charset used in train and test

Thanks for your works!
I have read your paper and found that you used a charset of 94 for training and a charset of 36 for inference. I am not quite clear about the intermediate processing. How are uppercase letters and special characters predicted by the model handled during inference? My understanding is that during inference, the model first uses the 94 charset for decoding. After the decoding is completed, it removes the special characters and replaces uppercase letters with lowercase letters. Is my understanding correct?

Hello, thank you for your interest. Please take a look at CharsetAdapter for the implementation details. But to make it short, your understanding is generally correct.

My question has been answered. Thank you very much!


Allow nodes to be specified by name without needing the enum

A custom parser gets access to the configuration properties to be able to identify which node is being talked about and pull the correct config without it needing to be tied to a static enum. This will allow a variable number of nodes without needing extra config (such as adding more enum values at compile time) or being limited by them (the number if enum values specified is a hard limit for the test).
An update to the latest version of Gauge is also required (or at least higher than version 1.0.4 which was previously used) to allow the use of the Java plugin v0.7.4.
This PR repurposes one of the tests to show how it can be used.

Good idea. During the transition, can you mark QuorumNode as @deprecated with a message to use QuorumNetworkProperty.Node instead.

Added!


How to avoid settings.json always apearing as changed file in Version Control tab?

Hello,
we're versioning the Workspace level settings.json file, so we can share settings across our team.
Obviously to change the color of the bar, it will write into the settings.json, but on a Workspace level.
Is there a possibility to have the changes to "workbench.colorCustomizations" written into the User level settings.json?
I have the setting only applied on the User level.

Hi @joernflath, the first version of the extension was working only on User level, however there was an issue which force us to change the color configuration to Workspace level (#1):

If you define the color at the User level and you have multiple VSCode windows open with different projects, the same color will be applied to all the windows and this won't reflect the reality, because you can be connected to different orgs in different workspaces.
The only solution here was to apply the color on the Workspace level

I'm not sure if the workspace shared settings.json config changes a lot in your project, but I would suggest to always ignore the file except when you want to include new rules (that shouldn't be that often I believe). I know it's a bit tedious task, but it's the only possible way I see for now

Hey @victorgz,
First thanks so much for your hard work on this extension. This will be a big help to my team and I.  Is it possible that this workspace setting can be made configurable?  I understand there are some issues with multiple windows, but for a lot of users they only work with one window open anyway.  Thoughts on this?

Hi @jlawrence124, thanks for the feedback and happy to hear that the extension is useful for you and your team !
That could be a good solution indeed, to have a configurable option to decide where to store the settings (user or workspace level). I'll try to have a look at it and let you know 😃


Need explanation for Global in selectable region list

[Enter feedback here]
We have "Global" region along with other specific regions in the list while creating an alert rule.
Customers may have misunderstanding of Global and think checking only Global would allow them to get all service notifications across all regions.
We need clear explanation for Global and guide to choose Select All in order to get alerts across all regions.
From my understanding, Global is for non-regional services such as DNS/CDN/AAD etc.
Feel free to reach me via email or Teams. I'm a Microsoft employee.
<EMAIL_ADDRESS>
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 581d46fd-9672-0bc6-7152-39301c893fd4
Version Independent ID: 202e0e14-10e9-2173-b4a5-bb8cf6cdd400
Content: Receive activity log alerts on Azure service notifications using Azure portal - Azure Service Health
Content Source: articles/service-health/alerts-activity-log-service-notifications-portal.md
Service: service-health
GitHub Login: @rboucher
Microsoft Alias: robb

Thanks for bringing this to our attention. We will investigate it further and update you shortly.

@MonikaReddy-MSFT  Another my suggestion is to change name "Global" to "Non-regional" as we use in azure products by region portal.
https://azure.microsoft.com/en-us/global-infrastructure/services/

@insankim - Thanks for bringing this to our attention.
I'm going to assign this to the document author so they can update the document accordingly.

Thanks for your dedication to our documentation. This issue has been moved to an internal work item for triage and prioritization. Thanks in advance for your understanding as we investigate to provide the most accurate documentation updates. #please-close
Internal work item: https://dev.azure.com/msft-skilling/Content/_workitems/edit/271106
Please also note that GitHub documentation issues are being phased out completely. For more information, see: https://aka.ms/ContentUserFeedback.
Our support team is available to assist you if you have any pressing questions or problems that need to be resolved. You can create a support ticket by visiting the following link: https://azure.microsoft.com/support/create-ticket/
You may also ask support questions in our Q&A forums.


Ensure that pool retirement data is correctly rolled back during a rollback operation.

Context
As part of the work to track pool retirements, we need to record pool retirements in the pool database. However, it will also be necessary to remove such entries in the event of a database rollback.
Decision
Ensure that the PoolRetirement database table entries are correctly rolled back in the context of a DB rollback operation.
Acceptance Criteria

[x] PoolRetirement database table entries must be correctly rolled back in the context of a DB rollback operation.

Development

https://github.com/input-output-hk/cardano-wallet/pull/1847

QA

[x] Add property tests to verify that entries from PoolRetirements are appropriately removed in the context of a DB rollback operation.

Hi @piotr-iohk! I think this ticket is done, are you okay with me closing it?

lgtm.


#1826 broke ABI compat without SONAME bump

Version: 1.21
Platform: Linux  4.16.0-2-amd64 #1 SMP Debian 4.16.16-2 (2018-06-22) x86_64 GNU/Linux

https://github.com/libuv/libuv/pull/1826 broke ABI compat by adding an enum member in the middle. This causes any binary using UV_FS_REALPATH or UV_FS_COPYFILE to become broken, as the values now point to UV_FS_LCHOWN and UV_FS_REALPATH, respectively.
This needs either a soname bump, or moving the enum back to the end.
This appears to be the root case behind https://github.com/yarnpkg/yarn/issues/6043

I think moving the enum to the end would be a good idea. Would you open a PR with the change?

Apologies for not catching this while reviewing #1826. I can make a patch release anytime if you want to send a PR.

Yes: https://github.com/libuv/libuv/issues/1914

Thank you all very much for the quick fix! Very much appreciated
Saludos,
Felipe Sateler
On Sat, Jul 7, 2018, 20:38 Colin Ihrig<EMAIL_ADDRESS>wrote:

Yes: #1914 https://github.com/libuv/libuv/issues/1914
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/libuv/libuv/issues/1908#issuecomment-403252534, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABQsHekkQriT2UNlYIrDzEZzOB5VG-dzks5uEVSGgaJpZM4VC2Fl
.


error while installing istioctl on Docker Desktop for M1 (Kubernetes 1.19.7)

Getting errors below while installing istio on Docker Desktop for Mac M1 preview. Kubernetes is successfully installed and working.
✔ Istio core installed
✔ Istiod installed

Processing resources for Ingress gateways. Waiting for Deployment/istio-system/istio-ingressgateway
✘ Ingress gateways encountered an error: failed to wait for resource: resources not ready after 5m0s: timed out waiting for the condition
Deployment/istio-system/istio-ingressgateway
Pruning removed resources                                                                                Error: failed to install manifests: errors occurred during operation

bug-report.zip

Is this running in ARM or is it virtualized? istio does not support ARM

0/1 nodes are available: 1 node(s) didn''t match node selector. so seems like an ARM issue

Thanks, closing this. Any workarounds?

@hardikgw did you find any solution for this?

@hardikgw did you find any solution for this?

No. Since this was greenfield project, we decided not to use Istio and just use Envoy which works.

I get the same errors too.  the egressgateway  and ingressgateway  just stay on  pending
istio-egressgateway-96cf6b468-p7q54    0/1     Pending   0          3m32s
istio-ingressgateway-57b94d999-r5k76   0/1     Pending   0          3m33s
istiod-74f5cb6c5b-lzhmq                1/1     Running   0          3m40s

I get the same errors too. the egressgateway and ingressgateway just stay on pending
istio-egressgateway-96cf6b468-p7q54 0/1 Pending 0 3m32s
istio-ingressgateway-57b94d999-r5k76 0/1 Pending 0 3m33s
istiod-74f5cb6c5b-lzhmq 1/1 Running 0 3m40s

theres something to do with the istio containers. the Envoy works though with latest Docker.

I have the same exact problem on MacBook M1. Any updates ?

Istio does not currently support ARM, so if the nodes are arm nodes it is expected to not schedule the pods. You may be able to use emulation but I am familiar personally

Has anybody attempted using istio via emulation (e.g. running UTM and spinning up a different OS instance???)
or is there any news on when ARM will be supported?
I'm considering getting a mac mini for development purposes and would like to know if this is going to be possible with Istio.

I added the following to preferredDuringSchedulingIgnoredDuringExecution
            - preference:
                matchExpressions:
                  - key: kubernetes.io/arch
                    operator: In
                    values:
                      - arm64

and modified it at
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
to
                    values:
                      - amd64
                      - ppc64le
                      - s390x
                      - arm64


Add scale control and disable map skew/rotate

A couple bits and bobs from TIGER map in case you think these would be nice for WWM. Disabling the right click to rotate behavior is the main thing.

Thanks a million! 😁


ng-serve refresh browser when changes in scripts folder but changes are not applied

Bug Report or Feature Request (mark with an x)
- [ x] bug report -> please search issues before submitting
- [ ] feature request

Versions.
Angular CLI: 1.5.0
Node: 7.8.0
OS: darwin x64
Angular: 5.0.0
... animations, common, compiler, compiler-cli, core, forms
... http, platform-browser, platform-browser-dynamic
... platform-server, router, upgrade
@angular/cli: 1.5.0
@angular-devkit/build-optimizer: 0.0.32
@angular-devkit/core: 0.0.20
@angular-devkit/schematics: 0.0.35
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.8.0
@schematics/angular: 0.1.0
typescript: 2.4.2
webpack: 3.8.1
Repro steps.
updating angular-cli 1.0.0 to 1.5.0
$ ng-serve
change in app.js script which path is defined in .angular-cli.json
The log given by the failure.
Browser si refreshed but changes in app.js are not updating in browser. Is there some changes in the way angular-cli 1.5.0 serves watched files ?
Desired functionality.
Would like to have an updated doc of angular-cli 1.5.0
Mention any other details that might be useful.
the desired behavior was working correctly with angular 4 and angular-cli 1.0.0
maybe related issue : https://github.com/angular/angular-cli/issues/8313

I can confirm that the page indeed refreshes, but the new changes in script files are not applied.

Yes, this is not working for me as well. Need a workaround


Adding a styling feature where one can style and select clothing's by combining

I would like to add a feature where one can combine different clothing's and style it by their perspectives.
Or maybe i can try to add feature where one can get recommendations to buy item with another item to make it appealing and more selling. Please assign me this issue under GSSoC'24

@Chelseasingla1 you can work on this issue now, also try to complete it in stipulated time period

@Chelseasingla1 you can work on this issue now, also try to complete it in stipulated period. Take the pull from dev branch and create the PR to dev branch. Best of luck!

Okay Thankyou!!


Snippets ClusterTask wrong

The snippet we have for ClusterTask is not in a correct form.
The current is:
apiVersion: tekton.dev/v1alpha1
kind: ClusterTask
metadata:
  name: foo
spec:
  steps:
  - args:
    - echo clustertask

but if you try to create the resource in the cluster you face this error
Error from server (InternalError): error when creating "/home/luca/Documents/f.yaml": Internal error occurred: admission webhook "webhook.tekton.dev" denied the request: mutation failed: missing field(s): steps.Image

A possible alternative could be:
spec:
  steps:
  - image: ubuntu
    script: |
      #!/usr/bin/env bash
      echo "Hello"

As always this is a minor issue but i think we should show a working snippets, so people who start using the extension and have no experience with Tekton can play and learn with it

Resolved with https://github.com/redhat-developer/vscode-tekton/pull/245


optimize: -Dcom.sun.management.jmxremote.rmi.port=$JMX_PORT

More detailed description of your change,
if necessary. The PR title and PR message become
the squashed commit message, so use a separate
comment to ping reviewers.
In case the server has a firewall, exposing only 'com.sun.management.jmxremote.port' cannot fetch metrics, and when the rmi port is not specified, it is randomly generated by default, should make the two ports consistent for metrics data reading
https://bugs.openjdk.org/browse/JDK-8035404?page=com.atlassian.jira.plugin.system.issuetabpanels%3Achangehistory-tabpanel
https://www.baeldung.com/jmx-ports
Summary of testing strategy (including rationale)
for the feature or bug fix. Unit and/or integration
tests are expected for any behaviour change and
system tests should be considered for larger changes.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

@C0urante  PTAL

@mimaison PTAL

@a364176773 from the JDK issue you linked, it doesn't seem like the private RMI port should have any implications in firewalled environments:

The additional port is for the RMI registry of the local only server. This port is used only for connecting locally and does not need to be traversed through firewalls.

Has this not been your experience? Can you shed some light on how the fix proposed here has helped you run/monitor Kafka better?

@a364176773 from the JDK issue you linked, it doesn't seem like the private RMI port should have any implications in firewalled environments:

The additional port is for the RMI registry of the local only server. This port is used only for connecting locally and does not need to be traversed through firewalls.

Has this not been your experience? Can you shed some light on how the fix proposed here has helped you run/monitor Kafka better?

I am using oracle jdk8_333 version, if I deploy under docker and use -v to map jmx port, because jdk will randomize a port number for rmi when jmx port is opened and rmi port is not specified, at this time, using tools like jmxterm will not be able to connect successfully because the protocol is using rmi, and rmi port is not The port of rmi is not open to the outside world. So in order to reduce the user's learning cost and improve usability, the rmi port and jmx port should be set to the same
example：
JMXServiceURL jmxServiceURL = new JMXServiceURL(String.format("service:jmx:rmi:///jndi/rmi://%s:%s/jmxrmi", brokerIp, port));
JMXConnector connector = JMXConnectorFactory.connect(jmxServiceURL, null)

Not an expert in this area but if I understand correctly based on this SO answer, by default 3 ports are used:

JMX Agent access set by com.sun.management.jmxremote.port
RMI access set by com.sun.management.jmxremote.rmi.port or randomly picked if not set
Local access port for jconsole randomly picked

Since Java 7 it looks like both ports can be set to the same value so I think this change should be fine.
@a364176773 Can you open a JIRA for this? so this change is tracked in the release notes.

Not an expert in this area but if I understand correctly based on this SO answer, by default 3 ports are used:

JMX Agent access set by com.sun.management.jmxremote.port
RMI access set by com.sun.management.jmxremote.rmi.port or randomly picked if not set
Local access port for jconsole randomly picked

Since Java 7 it looks like both ports can be set to the same value so I think this change should be fine.
@a364176773 Can you open a JIRA for this? so this change is tracked in the release notes.

No problem, I'll go to JIRA and register the problem.

Is it possible that people are already setting the com.sun.management.jmxremote.rmi.port property via the $KAFKA_JMX_OPTS environment variable? If so, should we add a check for that and only set the property if it's not already specified?

Ok, I will optimize this situation, thanks for your guidance, I will update this pr in the near future

@C0urante I have a question. The KAFKA_HEAP_OPTS 'parameter should only be used to set the heap memory, and the rmi port setting does not actually involve connecting using jmx. That is, whatever port is set for rmi, the application should get the rmi port through the jmx port for connecting. This does not produce a negative effect when overwriting the port of the '-Dcom.sun.management.jmxremote.rmi.port' in 'KAFKA_HEAP_OPTS'

@a364176773 I was thinking of the $KAFKA_JMX_OPTS variable, not $KAFKA_HEAP_OPTS. If a user has specified a value for the com.sun.management.jmxremote.rmi.port system property in that variable, it may be overwritten by the changes in this PR (depending on how the JVM chooses to parse command-line system properties; in my local testing, priority is given to the rightmost value for a property).
I haven't been able to find a reliable source on how JVMs should handle the same system property being specified multiple times. If the rightmost-value priority is part of the official spec, we could address this pretty easily by doing:
KAFKA_JMX_OPTS="-Dcom.sun.management.jmxremote.rmi.port=$JMX_PORT $KAFKA_JMX_OPTS -Dcom.sun.management.jmxremote.port=$JMX_PORT "

instead of
KAFKA_JMX_OPTS="$KAFKA_JMX_OPTS -Dcom.sun.management.jmxremote.rmi.port=$JMX_PORT -Dcom.sun.management.jmxremote.port=$JMX_PORT "

Otherwise, we might want to grep for -Dcom.sun.management.jmxremote.rmi.port= in the $KAFKA_JMX_OPTS variable and only set a value for that property if no match is found.

@a364176773 I was thinking of the $KAFKA_JMX_OPTS variable, not $KAFKA_HEAP_OPTS. If a user has specified a value for the com.sun.management.jmxremote.rmi.port system property in that variable, it may be overwritten by the changes in this PR (depending on how the JVM chooses to parse command-line system properties; in my local testing, priority was given to the rightmost value for a property).
I haven't been able to find a reliable source on how JVMs should handle the same system property being specified multiple times. If the rightmost-value priority is part of the official spec, we could address this pretty easily by doing:
KAFKA_JMX_OPTS="-Dcom.sun.management.jmxremote.rmi.port=$JMX_PORT $KAFKA_JMX_OPTS -Dcom.sun.management.jmxremote.port=$JMX_PORT "

instead of
KAFKA_JMX_OPTS="$KAFKA_JMX_OPTS -Dcom.sun.management.jmxremote.rmi.port=$JMX_PORT -Dcom.sun.management.jmxremote.port=$JMX_PORT "

Otherwise, we might want to grep for -Dcom.sun.management.jmxremote.rmi.port= in the $KAFKA_JMX_OPTS variable and only set a value for that property if no match is found.

What I'm trying to say is that even though the -Dcom.sun.management.jmxremote.rmi.port in this pr overrides the user's configuration, the way jmx connects, there is no direct connection to the rmi port, but a connection to the jmx port and then an automatic connection to the rmi port, which will not affect the user adversely, but just in case, I think we should change it as you said

@a364176773 Thank you for your understanding, and thank you for the fix! LGTM
Tested locally via Docker container; with this fix, all that was necessary was to set the $JMX_PORT variable, but without it, the RMI port system property had to be set as well. I also verified that, with this change, any value set for the RMI port system property via the $KAFKA_JMX_OPTS variable is not overridden.
Will merge pending CI build

Thank you and the other contributors in the community for guiding me

Update: trunk is currently failing to build with a compilation error; as soon as a fix is merged and stabilized, I'll re-run the CI build on this one and merge if there don't appear to be any failures related to this change.

Test failures are unrelated; merging.

@a364176773 FYI, I've updated the title to link to the Jira ticket and describe the new semantics of the patch after review. Thanks again for the fix! I plan to backport this to the 3.3 branch after verifying it locally.


"slower?" find path shows complete but doesn't show results

you can see the results if you reload the page and open the activity pane

exception at https://github.com/lumifyio/lumify/blob/master/core/core/src/main/java/io/lumify/core/model/longRunningProcess/LongRunningProcessRunner.java#L69
Failed to index ad2fce43370643188875bffc13eefe3f_http://lumify.io/longRunningProcess#queueItemJson_ (message: IllegalArgumentException[Document contains at least one immense term in field="http://lumify.io/longRunningProcess#queueItemJson_exactMatch" (whose UTF8 encoding is longer than the max length 32766), all of which were skipped.  Please correct the analyzer to not produce such terms.  The prefix of the first immense term is: '[123, 34, 115, 116, 97, 114, 116, 84, 105, 109, 101, 34, 58, 49, 52, 50, 50, 52, 55, 48, 51, 57, 49, 57, 49, 51, 44, 34, 119, 111]...', original message: bytes can be at most 32766 in length; got 214307]; nested: MaxBytesLengthExceededException[bytes can be at most 32766 in length; got 214307]; )

happens when the results are over some number (saw it with 50)


Add adya29 as contributor

TODO: Describe your changes here..

The yaml file is capital-sensitive.
If you check the Details button for why the Linting is failing (one of the checks at the bottom), and scroll down to where the explanation of the error is, can you see why the Linting is failing and how to fix it?


Requirements testing before install / on run

We should test and warn/die as necessary:

all dependencies exist and are up-to-date (we should define and test minimum versions, linked to #115)
GPU drivers are supported
optionally, check latest stable version string off Web somewhere and warn if there's an update available.

We should definitely check all this when launching the cluster GUI, but maybe write some reusable code to check for any subset of this for other modules.

Propositions:

we build a binstar conda package that depends on specific (=latest if possible) versions of numpy h5py etc. Then dependency management is done by conda automatically.
for GPU drivers we can try to detect if it's Mesa and throw a warning in this case

Yes, but people will always install from git etc, or use WinPython, or OS python, or whatever. Even if it's just people in the lab...

hmm, but for dependencies, I'm not really aware of compatibility issues yet, so that's not that urgent.
besides, some dependencies are optional and only loaded when you need them (e.g. PyQt)
maybe we leave this particular one to the moment when we really need it?


chore: create populate_file_sizes command

What are the relevant tickets?
Closes https://github.com/mitodl/hq/issues/1683
Description (What does it do?)
This PR adds a populate_file_sizes command that populates the file_size metadata field of resource-type content for existing courses.
We fetch the file size of resource content in the following way:

If the resource content object has file, metadata.file, or metadata.file_location attribute then fetch the file size from S3.
Otherwise, if the content has a metadata.video_files.archive_url then fetch the size from the URL.

In both cases, we use a HEAD request and use the Content-Length header. Since the data is not encrypted, this approach works.
For DriveFiles, we simply fetch the size of s3_key field.
How can this be tested?
Prerequisites

You should have the latest version of ocw-hugo-projects. And your ocw-studio starters should have the update configuration. Refer to https://github.com/mitodl/ocw-hugo-projects/pull/253 for more details.
It would be good to have an RC clone. Refer to https://github.com/mitodl/hq/discussions/1189 in case you haven't done that before.
You may need one local clone of a legacy course with its corresponding data in your local AWS_STORAGE_BUCKET. In case you need more details refer to https://github.com/mitodl/ocw-studio/pull/1763.

Steps

Open a terminal inside your local ocw-studio setup.
Check out the branch hussaintaj/1683-file-size.
Rundocker-compose run --rm web bash

Run./manage.py populate_file_sizes --override-existing --filter course-id

--override-existing instructs the command to re-fetch sizes for objects that already have a size.

Inspect the logs. Expected Behavior:

This command finds and populates resource file sizes. You should see an output similar to:Scheduling populate_file_sizes_bulk...
Waiting on task...
Done.

The rest of the logs will be inside the celery worker.
You should only see the error message Could not read size for ... if the URL or s3 key is indeed invalid. Some of our data is like that.
You should only see the message ... has no file associated to it. if the resource or drive_file has no file linked to it. Some of our data is like that.

Open the admin site and explore your course's content objects. Expected behavior: You should see the file_size value in the metadata field.
(Optional) Publish the course and verify that you can see the file_size attribute in the frontmatter of resources' markdown.

Additional Context
See also https://github.com/mitodl/hq/issues/1678

I'll merge and test this tomorrow to avoid blocking any releases today.

The combination chort(chain()) behaves unintuitively. I was suspicious of this so I ran a test to ensure that subtasks ran sequentially. They did not, so I removed the chord. It runs sequentially now.


(Bug) app connection issues

we still get errors that are all related to reconnecting/re-rendering app

updateAll failed - store is null or connect is close on send(),
getNextClaimTime - connections is closed on send()
failed initializing app - cannot read property get of null

https://app.bugsnag.com/gooddollar/gooddapp/errors/5dfe9f9d2679db001926bfec

was handled in other issues.


Bash script variable in curl

Hello everybody!
I just need to send variable to graph widget by curl
through linux bash script.

I found the issue , following syntax works
curl -d '{ "auth_token":"YOUR_AUTH_TOKEN", "points": [{ "x":"'"$T"'","y": "'"$count"'" }]
}' \http://<IP_ADDRESS>:3030/widgets/convergence

I found the issue , following syntax works
curl -d '{ "auth_token":"YOUR_AUTH_TOKEN", "points": [{ "x":"'"$T"'","y": "'"$count"'" }]
}' \http://<IP_ADDRESS>:3030/widgets/convergence


[css] split index file into separate files

I think a decent amount of the css in the top-level index .scss file was put in that file out of necessity in the python-package-guide bc it was pure css and we didn't want to inject a million separate css files into the page? But if we're gonna be building our own theme we can split them back out into navigable chunks again :)
I try to mimic the directory structure of pydata-sphinx-theme here. They're all sorta by-preference, but roughly -

components: reusable page features that are somewhat "special" to the theme
content: styles for basic html elements like lists and footnotes and whatnot
fonts: fonts
pages: styles used only on some specific pages
sections: layout stuff, the sections of a page, where things go
vendor: other people's styles

Aside from that, none of the styles are changed except:

replacing hardcoded px values with breakpoints in some places
thats all i remember?

I'm not sure how the build works with that import from pydata_sphinx_theme at the top of the index, but if it does, then all these should override it since they come later and we can start taking out !important directives too.

@sneakers-the-rat i LOVE scss for the organization it provides. Thank you for this.
Can you help me understand one thing?
How does the theme know to build the scss and then call the final css file into our html pages?

This looks great locally, but the header seems to be un-goofy-fied. I'll go ahead and approve and merge, but I'm still curious about how Sphinx knows how to build the CSS in our theme. It seems like it already was setup to do so. I just find that compile step to be mysterious.

So it looks like that is configured here: https://github.com/pyOpenSci/pyos-sphinx-theme/blob/803ee73c8021c003dcada19942a4aef5b4b4b07c/src/pyos_sphinx_theme/theme/pyos_sphinx_theme/theme.conf#L3
and the sass gets built with a node script: https://github.com/pyOpenSci/pyos-sphinx-theme/blob/803ee73c8021c003dcada19942a4aef5b4b4b07c/package.json#L3
and the magic seems to be here: https://github.com/pyOpenSci/pyos-sphinx-theme/blob/803ee73c8021c003dcada19942a4aef5b4b4b07c/pyproject.toml#L3
which generates the assets when building a wheel: https://github.com/pradyunsg/sphinx-theme-builder/blob/45d3f2f53f190864f91f8aa98f52ad8bab178f4e/src/sphinx_theme_builder/_internal/distributions.py#L162
and specifically calls node here: https://github.com/pradyunsg/sphinx-theme-builder/blob/main/src/sphinx_theme_builder/_internal/nodejs.py#L254

The part I don't really understand is where the imported pydata-sphinx-theme css comes from. but maybe we just inherit that automatically by inheriting the theme

The part I don't really understand is where the imported pydata-sphinx-theme css comes from. but maybe we just inherit that automatically by inheriting the theme

it is in the init file i am adding this as the theme css file. So the step is Scss - > css in package.json
css -> then imported to the packages by init file. BTW thank you for splitting the files.


Hoist Admin always see VersionBar in the bottom of the page

Applies to both desktop and mobile!
💎😁

Thanks - this was my pet ticket, as I always like to see that footer in production mode.  👍


Backtest percentage profit changes with each test

Note: this is the technical bug tracker, please use other platforms for getting support and starting a (non technical) discussion. See the getting help page for details.
I'm submitting a ...
[X ] bug report
[ ] question about the decisions made in the repository
Action taken (what you did)
Expected result (what you hoped would happen)
The backtest reliably show a percentage profit or loss
Actual result (unexpected outcome)
The backtest shows a different number every time you do a backtest with the same values
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc)
Every time I try to run a backest with the same strategy and same candle amount, it spits out a different number. Should I try re-installing certain files to remedy this, or try ending the process and turning it back on again? I'm running on windows 7, and I'll attach some images of the backtests and the strategy, etc that I am using.

What was the exchange and asset being traded?  Do you only see variable results with this custom strategy?  If you use MACD, do your results also vary?

The default custom strategy does "random" trades, eg. they will be different every time you run them. It's example code meant as a starting point.
If you have edited the custom strategy with other logic please specify what you changed.


integrate yolo as ML backend into my label tasks

Hi, i tried to integrate the ML models into my label tasks, everything seemd to work fine but no predictions showed though.
Env: label-studio was running in a docker container while the ML-backend was running in the container of the container, but i checked the ENV variable as well as the mapping directory inside the ML-backend container and they were all correctly set.
Tests: I tested in my web browser of the connection between label-studio and ML-backend and it worked fine.

Model weight: I put an official yolov8m.pt file downloaded from github into the models folder and i checked inside the ML-backend container that it was really being there.

Settings: I set the label template to yolo and wrote the configurations code below:
<View>   <Image name="image" value="$image"/>   <RectangleLabels name="label" toName="image" model_score_threshold="0.25" model_path="[yolov8n.pt](http://yolov8n.pt/)" opacity="0.1">     <Label value="Person" background="red"/>     <Label value="person" background="red"/>     <Label value="Car" background="blue"/>   </RectangleLabels> </View>
Finally, i checked the images inside the project but no person bounding boxes were shown. Besides, I was pretty sure that the yolov8m.pt can successfully detected them.
So would you please tell me that where i was doing wrong?

Hi,

This line looks wrong in your labeling config

 model_path="[yolov8n.pt](http://yolov8n.pt/)"

it should be
model_path="yolov8n.pt"

You don't need to download official models manually, they will be downloaded automatically.

Most likely, you didn't specify LABEL_STUDIO_URL and LABEL_STUDIO_API_KEY in the docker-compose.yml file.


rename embryonic/larva midgut muscle

FBbt:00001051 embryonic/larva midgut muscle looks to have a typo; should be
embryonic/larval midgut muscle
Difference is larva vs larval

I have corrected this ahead of the next FBbt release on 2017-09-14.


Fix async functions

I think these functions should return void
https://github.com/Imballinst/react-bs-datatable/blob/4c6f34861aa708fc39ef616071ee3dae6404412f/README.md#L205-L208

@Imballinst just remember to update lib ;)

@Imballinst just remember to update lib ;)

iuhh, yes, that's a good idea. Previously I had this Travis CI—but since its migration, the build fails and hence I disabled it. Tracking it in https://github.com/Imballinst/react-bs-datatable/issues/81.

iuhh, yes, that's a good idea. Previously I had this Travis CI—but since its migration, the build fails and hence I disabled it. Tracking it in https://github.com/Imballinst/react-bs-datatable/issues/81.


Provide a TravisCI script that automatically adds/removes 'NEW' labels to awesome entries

Awesome project is awesome, but a big drawback to me is that it is hard to see which entries have been added since the last time I checked. So I often find myself checking the commits, and even the code changes if the commit message was unclear.
Just like the awesome badge there should be a script that marks entries with a consistent 'NEW' label when they are committed and subsequently checks whether other 'NEW' labels in the list still deserve that label. There could be a configurable time an entry is considered new (e.g. 30 days by default).

Not something I want here, but would be a better fit on one of the Awesome websites, like https://github.com/lockys/AwesomeSearch Try requesting it there. See https://github.com/sindresorhus/awesome/issues/427.

Thanks, I will do that!


option to enable or disable only some tags support for markdown parser

I have some case when I don't want to support all the markdown notation like '#' or others

This is a duplicate of #58.
You can use our Extension API to remove the various components of the markdown parser that you do not want.
As the requested behavior is already possible, I'm closing this.

Oh, sorry, met to link to the Extension API: https://github.com/waylan/Python-Markdown/blob/master/docs/writing_extensions.md

Thanks a lot ... I will write the extension and close the fork that I started
Are you interest by the extension ?


error install

ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (Polygon3)
i install polygon3 but not working

@breezedeus do you have video installation guide

sudo apt-get install build-essential libssl-dev libffi-dev python3-dev


Auto-imports should add the import before the code that generated the issue

Environment data

Language Server version: 2020.6.1
OS and version: MacOS
Python version (& distribution if applicable, e.g. Anaconda): 3.8

Expected behaviour
If I enter this code:
gc.

import pandas

then go to the gc. to do a quick fix for the import, I would expect the import to come before the gc. code.
Actual behaviour
The import is added just before import pandas, so I end up with:
gc.

import gc
import pandas

If the existing imports are below the location where the new reference occurs, the new import should be added higher up. I guess we add next to the first existing imports but should then special-case this and add the new import at the top of the file.
Logs

XXX

Code Snippet / Additional information

XXX

until we improve the memory/CPU issue with auto-indexing, you need "python.analysis.indexing": true in .vscode/settings.json for add import/auto import feature to be enabled.


Demo gives an error sometimes (works acress page reloads)

On my first request it didn't work, I noticed it did work across multiple page reloads.
When it doesn't work I see the error: TypeError: window.customElements is undefined - img-2.js:365:1
(Browser: Firefox 59.0.2 / 60.0b14 developer)

Thanks for submitting this, I'll investigate, maybe the Custom Elements polyfill isn't getting loaded correctly.


Enhancement: character substitution

It would be good to be able to specify what character substitutions I want in the filename from the channel and/or title names. For example:
"/" to "-"
":" to " -"
"?" to ""
"|" to "-"

Hello there! In my past code, there was a similar functionality that I can port over, but it will take some time to adjust it to fit the current GUI. Since this feature is difficult to use within the UI, I prefer to let users create their own substitution tables.
As I've always said, if there are no issues or difficulties encountered, I will add the feature to future versions.


Update README.md

Note on setting TF_STATE for macOS users

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


How to remove IE7 support

Hello! As I am a size freak ;), I would like to know how to remove support for IE7 or even IE8 as you mentioned in the doc it could be removed...
"bLazy is lightweight, less than 1.2KB and less than 1.05KB if you don't need IE7- support."
Thanks!

hey @dantahoua
Remove the querySelectorAll polyfill:
//IE7- fallback for missing querySelectorAll support
        if (!document.querySelectorAll) {
            var s = document.createStyleSheet();
            document.querySelectorAll = function(r, c, i, j, a) {
                a = document.all, c = [], r = r.replace(/\[for\b/gi, '[htmlFor').split(',');
                for (i = r.length; i--;) {
                    s.addRule(r[i], 'k:v');
                    for (j = a.length; j--;) a[j].currentStyle.k && c.push(a[j]);
                    s.removeRule(0);
                }
                return c;
            };
        }

Besides that we would have to rewrite some of the looping and stuff like that to optimize more.

Besides that we would have to rewrite some of the looping and stuff like that to optimize more.

If someone would go through all that, might as well program in ES6 & transpile down as needed?

I consider this "issue" fixed. Feel free to reopen if you disagree.


CMS doesn't list/add servers

I can add a CMS successfully but when I expand it all it lists is No resources found and trying to add a registered server under it doesn't seem to do anything. This is occurring in both stable and insiders builds.

@Charles-Gagnon Do you know what kind of auth or server it's using? I can't seem to repro this

This is for registering a server under a CMS so it's just using windows auth.
(the existing registration is one that I did from SSMS to verify that it can read them correctly)

And note that this is happening well after the MSSQL extension has loaded so your possible fix is unlikely to resolve what I'm seeing here.
No errors in the console either.

@Charles-Gagnon could you confirm the extension version?

This is on master, so the version there (0.3.0). Are you not able to repro this yourself still? I just had Chris try and he was able to get the same behavior on his mac.

Let me try with a clean install.

@Charles-Gagnon Can I close this?

Yeah I'll close it now and reopen if I have any other information later on.


enqueued script error

I'm trying convert an old code to the WP standards and I stuck with registering scripts via wp_enqueue_script function.
In footer.php file I have code like this:
<!--[if lt IE 9]> <script type="text/javascript" src="<?php echo esc_url_raw( get_template_directory_uri() ); ?>/accessories/ie8-jquery.js"></script> <![endif]-->

And phpcs gives me error output like this:
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
110 | ERROR | Scripts must be registered/enqueued via
|       | wp_enqueue_script
----------------------------------------------------------------------
But I cannot just create a new .js file and write there the inner body of the script tag to my code via wp_enqueue_script because I need leave there that condition . How can I do it?

There is no easy way to do it until WordPress 4.2 is released. See WP#16024.

Suggest closing this issue as WP 4.2 has been out for quite a while now.


Remove duplicate opentracing.spring.cloud.version property from spring-boot pom

Fixed with https://github.com/Hawkular-QE/jaeger-instrumentation-performance-tests/pull/47


Fix date string parsing for date from input field

Description
Fix date string parsing for date from input field
Fixes #3957
Type of change

Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Added cypress test case to validate issue fix

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes

Test coverage results :test_tube:
:red_circle: Total coverage has decreased
// Code coverage diff between base branch:release and head branch: fix/date-input-edit

Status
File
% Stmts
% Branch
% Funcs
% Lines

:red_circle:
total
49.04 (0)
29.73 (-0.01)
27.23 (0)
49.43 (0)

:red_circle:
app/client/src/components/designSystems/blueprint/DatePickerComponent2.tsx
28.99 (-0.42)
3.39 (-0.12)
5.88 (0)
28.36 (-0.43)

Tested on Deploy preview, New test cases running fine


None of the lists actually contain the password "password".

This seems like an oversight.
$ cat ~/Downloads/merged\ 2.txt | grep -Ei "^password$"

Nevermind. Grep is treating patterns oddly :|


glTF support is missing features

Our glTF viewer doesn't work entirely just yet. Here's what I found so far:

Tangents/bitangents are not computed correctly if not present in the model
We always use the default sampler instead of using the sampler described in the glTF file
Vertex colors are ignored
Transforms (rotation in particular) are not always handled properly

I found these issues while trying to load various Sketchfab assets.

Rotation issue: https://sketchfab.com/models/a4ca0e3864e143af9bf1dffc7fc8029b (you have to zoom into the black sphere to seen the scene). This model also seems to use vertex colors? Our render is definitely off.
Non-default samplers: https://sketchfab.com/models/94b24a60dc1b48248de50bf087c0f042 The tramway and some of the walls are not textured properly, most likely because we don't use the right sampler
None of the textures are loaded for this model: https://sketchfab.com/models/282f497334f64a589edee4e63ad7e428

Another bug: the water in https://sketchfab.com/models/e051a32d21d6453c8fad408082492267 is not transparent

I'm working on the first bullet in the original problem description (Tangents/bitangents are not computed correctly), which is exemplified by glTF-Sample-Models/2.0/NormalTangentTest.

Rotation issue: https://sketchfab.com/models/a4ca0e3864e143af9bf1dffc7fc8029b (you have to zoom into the black sphere to seen the scene). This model also seems to use vertex colors? Our render is definitely off.
Non-default samplers: https://sketchfab.com/models/94b24a60dc1b48248de50bf087c0f042 The tramway and some of the walls are not textured properly, most likely because we don't use the right sampler
None of the textures are loaded for this model: https://sketchfab.com/models/282f497334f64a589edee4e63ad7e428

The first model seems to just have some rotation issues with the asset itself, and some of the colors aren't showing up because vertex colors aren't implemented yet.
For the second and third model, the issue seems to just be with the use of multiple UV coordinates.

Another bug: the water in https://sketchfab.com/models/e051a32d21d6453c8fad408082492267 is not transparent. The alpha mask is also not working on the bushes in that scene.

I realized that I didn't implement alpha masking and blending for unlit materials, which this scene uses.
I'm working on fixing the issues now.

Crash opening this file: https://sketchfab.com/models/f8d3c7506f3545108dcf7f6c170e19e1

It seems like that file and the files mentioned in #503  have some kind of error within the gltf file, and this is causing the viewer to crash within Assimp when it is loading the gltf.
I saw that Don McCurdy's gltf viewer is still able to show the model even though it says there are errors within the file, so we could find a way to load the files and ignore the malformed lines.

Multi UV sets support is now in. @magicwhale were you able to figure out where the other issues come from?

@romainguy we recently proposed testing rendering parity between <model-viewer> (based on Three.js / GLTF Loader) and Filament for a number of the Khronos sample glTFs (relevant PR). We found samples that reproduce a number of the issues you referenced here. I'm leaving some of our test results below in case they might help inform your work to fix the related issues:

Tangents/bitangents are not computed correctly if not present in the model

Related sample model: Normal Tangent Mirror Test

Filament result
Expected result

Vertex colors are ignored

Related sample model: Vertex Color Test

Filament result
Expected result

Transforms (rotation in particular) are not always handled properly

Related sample model: Texture Transform Test
When I saw the results of this test it rang a bell. I'm not sure if you meant texture rotations, but perhaps this is relevant.

Filament result
Expected result

Thank you. Texture transforms are just not supported at all at the moment. We're moving to a different gltf loader to fix all these issues.

I'm surprised by the tangents though, @prideout wasn't this fixed?

Just now reproduced the issue with Normal Tangent Mirror, I'm surprised too.  Will investigate.

tl;dr:
For now I think I should simply modify our copy of MeshAssimp to negate the bitangent, thus moving our current workaround downward so that it doesn't affect the tangents-are-available case.  This will be fixed in a more proper way in the new glTF loader that I'm working on.
details:
We render NormalTangentTest correctly (where tangents are computed via MeshAssimp) but we do not render NormalTangentMirrorTest correctly (where tangents are supplied in the model).
When MeshAssimp generates tangents and bitangents, it basically makes tangents follow texcoord U, and bitangents follow texcoord V.  The resulting tangent vectors are fairly consistent with a couple popular viewers that I tried, but the bitangent vectors are not.  Other viewers use different approaches:

ThreeJS (and therefore Don McCurdy's viewer) does this
The Khronos ref viewer does this
The spec recommends mikktspace (which Blender uses I think) which does this

ThreeJS (and therefore Don McCurdy's viewer) does this

Note that this change is very recent, and won't be visible in my viewer until threejs r102 is released. But I think BabylonJS (and this viewer) do the same.

Closing this for now. There are still a couple of unsupported features like blend shapes.


WIP: investigate impact of late or lost parent ID

This starts to investigate impact of a missing or late parentId in a shared span. This could happen if a client doesn't propagate the X-B3-ParentId by mistake or by some signal loss.
cc @jcarres-mdsol @bogdandrutu @basvanbeek

Here's an example of this.. in the census library, the SpanContext type does not include the parent-id, so it can't propagate it (not without changing to somehow capture it).
Today, in Brave, we could make a function like supportsJoin = false similar to ClientServerSameSpan  in zipkin-go, which we set in any environment which can contain a node which might not send the parent ID. This issue is more about figuring out the "what if" ex knowing what we can resolve server-side from what we can't.
For example, dependency graph will be the worst off in a case like this, but we could at least differentiate a root span from one missing parent conventionally. For example, if the span ID is the same as the trace ID, conventionally we know this one is more "root like" even if it isn't 100% accurate.
cc also @jcchavezs since you are now supporting a zipkin tracer :)

added a commit to make mysql backfill this (might be the only storage impacted)
dependency linker will need more smarts to detect this.. not yet sorted.

note to folks who might use this to say "use my tracing system instead!"
B3 is a format in wide use, and so we have some shared stake investigating how this works. Obviously zipkin could drop support for shared spans, but that would orphan the ecosystem. That's precisely why I take time on issues like this.

PS I just looked deeply into Amazon X-Ray. It is mostly compatible with zipkin from a trace ID storage POV.
The trace ID includes a version bit, 32bits of epoch seconds and 96 bits of random. This means it is 128bits. Most zipkin systems only sample on lower 64-bits anyway, so supporting X-Ray compatible trace IDs mean changing generation to be the same approach. Span IDs are 64bit, so exact match zipkin.
Like trace-context only the calling ID is propagated (they call it Parent, we call it X-B3-SpanId), so fixing this issue will also also align with X-Ray integration.
cc @devinsba

@adriancole nice discovery. You still need to fix to not share the span between client and server I think, correct?

@adriancole https://github.com/adriancole nice discovery. You still
need to fix to not share the span between client and server I think,
correct?

well "fix" is relative :) we have to be able to express this is some way
because B3 once upon a time implied sharing. Here's how we do this in brave
https://github.com/openzipkin/brave/blob/master/brave/src/main/java/brave/propagation/Propagation.java#L38

Hit issue with zipkin-dependency when server didn't receive parentId due bug in client propagation. Depending on span/node order, the end result of the dependency graph calculation may be incorrect. Zipkin UI does render graph correctly, though.
This is where it happens:
https://github.com/openzipkin/zipkin/blob/master/zipkin2/src/main/java/zipkin2/internal/Node.java#L160 -> sets first node as rootId
Attached trace render correctly in zipkin UI:

zipkin-dependency output. Note that rootSpanId is incorrectly set (sets graph span as root; expected: website)
18/03/10 19:28:51 DEBUG DependencyLinker: linking trace 1fd6cc4d8ddf461f3c7f1e93e9a12a2d
18/03/10 19:28:51 DEBUG DependencyLinker: attributing span missing parent to root: traceId=1fd6cc4d8ddf461f3c7f1e93e9a12a2d, rootSpanId=bcfd66c462760348, spanId=91b2eb9bb450ca94
18/03/10 19:28:51 DEBUG DependencyLinker: attributing span missing parent to root: traceId=1fd6cc4d8ddf461f3c7f1e93e9a12a2d, rootSpanId=bcfd66c462760348, spanId=0e5223f847261a90
18/03/10 19:28:51 DEBUG DependencyLinker: attributing span missing parent to root: traceId=1fd6cc4d8ddf461f3c7f1e93e9a12a2d, rootSpanId=bcfd66c462760348, spanId=ec08eb6a206e4a6e
18/03/10 19:28:51 DEBUG DependencyLinker: traversing trace tree, breadth-first
18/03/10 19:28:51 DEBUG DependencyLinker: processing {"traceId":"1fd6cc4d8ddf461f3c7f1e93e9a12a2d","id":"bcfd66c462760348","kind":"SERVER","name":"thrift:graph","timestamp":1520701883768137,"duration":1784,"localEndpoint":{"serviceName":"graph","ipv4":"<IP_ADDRESS>","port":17289},"tags":{"span.kind":"server"},"shared":true}
18/03/10 19:28:51 DEBUG DependencyLinker: root's peer is unknown; skipping
18/03/10 19:28:51 DEBUG DependencyLinker: processing {"traceId":"1fd6cc4d8ddf461f3c7f1e93e9a12a2d","id":"0e5223f847261a90","kind":"SERVER","name":"thrift:graph","timestamp":1520701884190118,"duration":6857,"localEndpoint":{"serviceName":"graph","ipv4":"<IP_ADDRESS>","port":17289},"remoteEndpoint":{"serviceName":"website","ipv4":"<IP_ADDRESS>","port":80},"tags":{"span.kind":"server"},"shared":true}
18/03/10 19:28:51 DEBUG DependencyLinker: processing ancestor {"traceId":"1fd6cc4d8ddf461f3c7f1e93e9a12a2d","id":"bcfd66c462760348","kind":"SERVER","name":"thrift:graph","timestamp":1520701883768137,"duration":1784,"localEndpoint":{"serviceName":"graph","ipv4":"<IP_ADDRESS>","port":17289},"tags":{"span.kind":"server"},"shared":true}
18/03/10 19:28:51 DEBUG DependencyLinker: incrementing link website -> graph
18/03/10 19:28:51 DEBUG DependencyLinker: processing {"traceId":"1fd6cc4d8ddf461f3c7f1e93e9a12a2d","id":"ec08eb6a206e4a6e","kind":"SERVER","name":"website","timestamp":1520701883318534,"duration":988343,"localEndpoint":{"serviceName":"website","ipv4":"<IP_ADDRESS>","port":17644}}
18/03/10 19:28:51 DEBUG DependencyLinker: cannot determine parent, looking for first server ancestor
18/03/10 19:28:51 DEBUG DependencyLinker: processing ancestor {"traceId":"1fd6cc4d8ddf461f3c7f1e93e9a12a2d","id":"bcfd66c462760348","kind":"SERVER","name":"thrift:graph","timestamp":1520701883768137,"duration":1784,"localEndpoint":{"serviceName":"graph","ipv4":"<IP_ADDRESS>","port":17289},"tags":{"span.kind":"server"},"shared":true}
18/03/10 19:28:51 DEBUG DependencyLinker: incrementing link graph -> website

A few solutions I can think of:

check if there's another node with the same spanId
sort nodes by timestamp
maybe utilize property shared

@sokac https://github.com/openzipkin/zipkin/pull/1945 on yours

self-note: merge or close


Add "Scotland" source

https://www.publiccontractsscotland.gov.uk/
https://www.publiccontractsscotland.gov.uk/NoticeDownload/Holding.aspx
In a few weeks, hopefully

https://api.publiccontractsscotland.gov.uk/v1/Notices?dateFrom=2016-10-01&noticeType=2&outputType=1
and
https://api.publiccontractsscotland.gov.uk/v1/Notices?dateFrom=2005-10-01&noticeType=2&outputType=1
Both return the same data!
My Guess is that if you put a dateFrom that is to early they silently go "That's a silly date - we'll ignore it!" and then default you to today's date.
Is it possible to ask for an error to be returned instead? That would really help people using the API!

"You may only retreive notices which are up to a year old."
Is there any chance this is going to be expanded?

"Please note that not all form types are available in all formats. These will be made available by the end of September 2018."
Also, we can look at this now but we'll have to come back to this over the next month anyway.

Interesting to see. Have we worked out how to get that API to provide JSON?
I can only get XML that looks kind of like OCDS, but I've not managed to get JSON
This might be something for us to do some engagement on before we try and get a scraper working?

There is ongoing conversations with Scotland about the state of their API, so this may come back. But there is nothing now, so let's close.


to set a private ip we now use ip_address so update the README

Besides bumping the version, 👍

👍
Also I don't think this actually needs a version bump...

+1

Heh, apparently @jichen-amplify was right, the PR build job failed because I didn't update the version.  Probably a bit overzealous, but okay.


error displaying a3hd

In GitLab by @pabretonniere on Mar 1, 2021, 18:00
Hi @wuruchi
I can't open the GUI for a3hd: http://bscesweb04.bsc.es/autosubmitapp/experiment/a3hd
I ran a monitor to get the pdf and it worked fine, and it seems to be loading the data but when it finishes, the page is empty...
Any clue?
Thanks

In GitLab by @pabretonniere on Mar 1, 2021, 19:57
Thanks! Great. this is more than sufficient for me.

In GitLab by @pabretonniere on Mar 1, 2021, 19:58
No rush at all to fix http://bscesweb04.bsc.es/autosubmitapp/experiment/a3hd as it only happens for this exp.

In GitLab by @wuruchi on Mar 1, 2021, 19:10
Hello @pabretonniere
While I look into it, you can monitor your experiment directly from http://bscesweb04.bsc.es/autosubmitapp/experiment/a3hd/graph (Graph view).


Optimize HACL* Raw RSA decryption to use CRT

Tested on multiple platforms and compilers.
Some observations:

compiling with gcc on x64 does not appear to enable HACL_CAN_COMPILE_INTRINSICS in lib_intrinsics.h, leading to a performance degradation. enabling this flag provides a significant boos.
optimizing at -O2 (like the Linux Kernel) vs -O3 does not make much difference to this code
recent GCCs (e.g. 13) are better at optimizing this code than GCC-11
recent clang is still about 10-15% faster than recent GCC
the optimizations that work differ for x64 and ARM likely because of the difference in mul instructions and pipelining

Performance

Our dec code is 10x slower than optimized OpenSSL assembly that uses CRT
On x64, our dec code (without CRT) appears to already be competititive with Kernel code (with CRT)

Next Steps:

Send update to Cloudflare
Implement and verify CRT

It is not yet clear whether CRT is needed in this round (although I would like to do it.)

Next steps: push upstream to HACL and to consumers

Currently, this does not appear to be a priority since our signing code is already faster than Linux.
We will do this in the fall as time permits.


ASI Loader not working. Message: Unable to load cyber_engine_tweaks.asi. Error: 193.

I have the latest game and CET versions installed, but since CET_1_10 I have been getting these messages.
Before this message pops up, I also get a message saying that cyber_engine_tweaks.asi is not compatible with windows, and my Norton Antivirus scans the file and says it is a threat!!
My game is V1.12 and my latest attempt was with CET_1_11_0. I also don't get any log files. I was getting previously though, even when CET did not work, in CET_1_10_3 for example, I still could access the log files. But not anymore.
I haven't anyone experiencing the same issue anywhere on the web, so if somebody could help me, I would appreciate it very much!!
thankyall!!!

Hey @JoaoAmadi probably your Norton Antivirus changed binary files. Most not sophisticated malware works like that, but this repo is safe (even, 1.11 not have so called telemetry ;))) )

try to add this directory do the exclusions, download it (yes, your Chrome would report back unusual rare download...) and copy. If You have copy of bin dir made after last CP77 upgrade - maybe fallback before retry. ;)

try to add this directory do the exclusions, download it (yes, your Chrome would report back unusual rare download...) and copy. If You have copy of bin dir made after last CP77 upgrade - maybe fallback before retry. ;)

ÌT WORKED!!! Thank you so very much good sir!!!

All I did was add the directory to the antivirus' exclusions and restore the item that it deleted automatically.


I cant discover in webUI but i can use the CLI in docker container!

As title says, I cant discover the device throught the web-UI but when i get in the bash env of the container and go to the CLI folder i can use/connect to the rm-mini. Any idea how to add the device manually in the webui??

Check out the sample json config.  This should allow you to manually add a device, but discovery is also critical to sending commands.

@timothystewart6 I am facing the same issue with the container running on a QNAP Container Station. Where can I find the sample json you mentioned ?

Ha!  Honestly I am not sure what I am referring to!

I think I meant the postman config


Import SDSS DR18

Import the SDSS DR18 SpecPhotoAll, which is a precomputed join between the PhotoObjAll and SpecObjAll tables. Its schema can be found in https://skyserver.sdss.org/dr18/MoreTools/browser.

In progress, currently waiting for J. Hopkins to provide this catalog. Expected in ~5 to 10 days.

This catalog was imported, validated and published on data.lsdb.io.


Unable to join wechat group

Hi! It seems like the group chat becomes invite-only once it has over 200 members

Hi, thanks for your reminder, we will create a new group and replace the old link.

awesome thanks. will close the issue


Role which need to create set-running-environment-variable-group

Below is the command executed from Admin level, but not from Normal user.
Error:
cf set-running-environment-variable-group '{"TEST_VARIABLE":"TEST"}'
Setting the contents of the running environment variable group as ...
FAILED
Server error, status code: 403, error code: 10003, message: You are not authorized to perform the requested action
Admin user:
openid
approvals.me
scim.me
notification_preferences.read
cloud_controller_service_permissions.read
notification_preferences.write
cloud_controller.read
actuator.read
profile
doppler.firehose
uaa.user
oauth.approvals
cloud_controller.admin
uaa.admin
password.write
roles
user_attributes
cloud_controller.write
uaa.offline_token
scim.write
cloud_controller.user
scim.read
Normal User:
password.write
roles
user_attributes
actuator.read
profile
oauth.approvals
cloud_controller.write
uaa.user
cloud_controller_service_permissions.read
cloud_controller.read
scim.me
openid
approvals.me
notification_preferences.read
uaa.offline_token
notification_preferences.write
cloud_controller.user
Please confirm which additional privilege scope/role added for Normal user to execute that command.  Kindly assist on priority. Thanks in Advance.

The answer to your question really depends on which cf components the CLI is interacting with as part of the set-running-environment-variable-group command.
This question is best posted to the cli team, either in the cf slack or in their github repo

Hi solution is to give your use the needed org or space role, e.g.
See command help from cf
cf set-space-role -h
Setting env variables is something you need SpaceDeveloper or SpaceManager
This authorization is maintained and set in cloud controller. UAA only has the user as identity, but cc is controlling the authorization here


addging python launcher  (py.exe) to the python package

It seems that py.exe (python launcher) is not being package on windows for the python package.
Would be nice to be added as part of the package.

@jbisson do you have any thoughts on how to achieve this?  I would welcome any help that you can offer.

@jbisson is this a particular option you select during the install of python? The package is a wrapper around the native installer.

Interesting. I didn't see the option to. Do I need to specify a different choco command if I want options?

@jbisson I meant from the original native installer, is there an option in the install steps to do what you are asking?

You can run choco install python --not-silent

ok, if I do --not-silent I'm getting the same installer promp and it works fine, however, without it, it doesn't install it.
In the installer dialog installer, the launcher is checked by default so it's kind of weird that it's not being installed when using choco install python3 ?
For example:

choco install python3
where py
result -> not found
choco install python3 --not-silent
where py
Result found.

I got it installed in the c:\Windows\py.exe.

I rerun the test on my machine and it really doesn't get created.
However, check this out:

Py option is disabled (i did run eleveated) and although it is checked this means it will not be installed.
On the other hand running x32 bit installer:

So, it looks like python3 doesn't support this.


Does this work on Windows?

I am probably doing something really dumb but I installed this package on Windows and I cannot get it to work.
I have setup a custom build which I could not get to work and so then I copied one of the files from your test package (see below) and that does not work either.
{
  "cmd": "echo",
  "args": ["Hello"],
  "sh": false,
  "env": {}
}

All I seem to get when I run build is this error

I have tried numerous permutations but I get the same thing each time

I'm not very familiar with windows. But I'd assume that echo is not a command which can be used on windows?

I wish that were the case but unfortunately it does the same thing that it does on Linux/Unix.
Not that it probably matters much but the real thing I was trying to implement was this...
{
  "cmd": "sas.exe",
  "args": [ "-noautoexec", "-sysin '{FILE_ACTIVE}'"],
  "sh": false,
  "cwd": "{FILE_ACTIVE_PATH}",
  "env": {}
}

...so that I could kick off a job that executed my code (SAS - A statistical programming language similar to R). sas.exe is in my PATH. I get the same error as above

Does it work if you fully qualify the path to sas.exe ?

The fully qualified path to sas.exe is C:\\Program Files\\SAS 94TS1M1\\SASFoundation\\9.4\\sas.exe (backslahes have been escaped) but this did not work because there are spaces in the path. I tried quoting the value in the cmd property but got the same result.
I therefore switched to the short name version of the path (C:\\PROGR~1\\SAS94~T1\\SASFoundation\\9.4\\sas.exe) but this time I got the original "Unable to execute:..." message.
I tried changing the value of the sh property to the same result.

There are people who are running it on Windows. I'm not very familiar with Windows though, so I am afraid I can not help you track down this issue very much. What you're doing looks like what I've seen other Windows users do and it looks okay. sh should be false in any way.

ok, so I am a berk.
The absolute path I wrote earlier was wrong - it should have been  C:\\PROGRA~1\\SAS94T~1\\SASFoundation\\9.4\\sas.exe.
This 'worked' in the sense that the executable was now found and run. However, I had issues the the arguements that were passed in how they were interpreted by SAS (I think this is a SAS problem and not a problem for your package).
I changed my approach and instead wrote a basic Python script to make the call to SAS. The .atom-build.json file now references this script and passes the program I want to run to that script instead.
I guess you can close this now.

Seems like a convoluted way, but whatever works, I guess. Good that you have something that will work.


base composermodel codeblocks -> testcode

Update codeblocks -> testcode in ComposerModel abstract class. Will require fixtures + some are psuedocode.

Closing for #659


Function argument with additional properties over function parameter type doesn't throw error

TypeScript Version:  2.5.3
Code
interface IType {
    a: number
}

function f(p: IType) {}

const variableWithAdditionalProperty = {
    a: 5,
    b: 6
};

const variableWithMissingProperty = {
    b: 6
};

f(variableWithAdditionalProperty); // Unexpected behavior => No error

f({
    a: 5,
    b: 6  // Expected behavior => Error: Argument of type '{ a: number; b: number; }'
});       // is not assignable to parameter of type 'IType'. Object literal may only
          // specify known properties, and 'b' does not exist in type 'IType'.

f(variableWithMissingProperty); // Expected behavior => Error: Argument of type '{ b: number; }'
                                // is not assignable to parameter of type 'IType'.  Property 'a'
                                // is missing in type '{ b: number; }'.

Consider you have an interface declaring some properties and a function accepting a parameter of this interface type. Now you make a first function call by passing a function an object literal with all the properties of the the interface and some additional property. Then you assign the same object literal to a variable and make a second call by passing this variable to the function.
Expected behavior:
Both function calls throw an error telling the passed argument is not assignable to the interface type because of the additional property.
Actual behavior:
First function call (with object literal) thows an error as expected, but the second call (with variable) doesn't throw any error.

Same as #15212 - we know that b is unobserved in the object literal case, but have to use structural subtyping in the other case

Ah, I see. It makes sense.


[PT-BR] Move storage/persistent-volumes docs from pt/ to pt-br/

Changes
Move content/pt/docs/concepts/storage/persistent-volumes.md to content/pt-br/docs/concepts/storage/persistent-volumes.md

/lgtm
/approve
Thanks!