Select Azure DevOps organization associated with repository hangs

Whenever I open a yml file that I've associated with the Azure Pipelines extension, I will receive this popup asking me to select the Azure DevOps organization that is associated with my repository for better IntelliSense:

Clicking on the Select organization button will open the command palette; however, nothing seems to happen no matter how long I leave it spinning. I've also tried directly typing in the name of the organization and pressing Enter; but, it had no effect. This leads me to believe that the feature is bugged.

Is this an ADO repo or a repo from some other Git provider (GitHub, etc.)?

It is indeed an internal MS ADO repo.
That said, it seems something has changed in the background as I no longer get the Select Azure DevOps Organization prompt when opening an yml pipeline file. Without the prompt popping up, I don't know how to attempt to select an ADO Organization to get you the requested output logs as the option does not seem to be within the command palette.
The extension still seems to be the same version:

Whereas, VS Code is a newer version:

Interesting, if you're in an ADO repo, the detection should happen silently :) (because it can figure out what organization it needs from the Git URL!).
Since you're not seeing this anymore, that's a good sign it was able to perform the schema detection properly this time. You can test this out by seeing if internal tasks have warning squigglies (bad) or descriptions on hover (good).
I don't think we can investigate this further at the moment, so I'm going to close this - but if you start seeing the prompt again, or the squigglies are showing up, we can re-open :).

Since you're not seeing this anymore, that's a good sign it was able to perform the schema detection properly this time. You can test this out by seeing if internal tasks have warning squigglies (bad) or descriptions on hover (good).

@50Wliu , clarifying question about this statement:
Are you saying that I would not be seeing these yellow squiggles if the extension had correctly determined the ADO organization? Both of these pipelines work as intended when ran as the tasks are currently available within the organization.

I got the popup notification again today. Nothing seems to be in the Azure Pipelines output log though:

Still same VSCode and extension versions as noted here: https://github.com/microsoft/azure-pipelines-vscode/issues/538#issuecomment-1682599303

@VanessaRussell, we released a new version this week that should have much-improved logging; would you mind trying again? Sorry for the hassle 😅.

From the Azure Pipelines output:
(9/21/2023, 2:38:00 PM) [SchemaDetection] Detecting schema for workspace folder NotificationSystem
(9/21/2023, 2:38:06 PM) [SchemaDetection] Found remote URL for NotificationSystem: ScrubbedByVanessa
(9/21/2023, 2:38:06 PM) [SchemaDetection] NotificationSystem is an Azure repo
(9/21/2023, 2:38:07 PM) [SchemaDetection] Error auto-detecting schema for workspace folder NotificationSystem: TypeError: Cannot read properties of undefined (reading 'authenticatedUser')
(9/21/2023, 2:38:07 PM) [SchemaDetection] Using hardcoded schema for workspace folder NotificationSystem: /c:/Users/VanessaAlias/.vscode/extensions/ms-azure-devops.azure-pipelines-1.228.0/service-schema.json
(9/21/2023, 2:38:07 PM) [ExtensionActivated] Extension has been activated!
(9/21/2023, 2:38:10 PM) [SchemaDetection] Detecting schema for workspace folder NotificationSystem
(9/21/2023, 2:38:11 PM) [SchemaDetection] Found remote URL for NotificationSystem: ScrubbedByVanessa
(9/21/2023, 2:38:11 PM) [SchemaDetection] NotificationSystem is an Azure repo
(9/21/2023, 2:38:11 PM) [SchemaDetection] Error auto-detecting schema for workspace folder NotificationSystem: TypeError: Cannot read properties of undefined (reading 'authenticatedUser')
(9/21/2023, 2:38:11 PM) [SchemaDetection] Using hardcoded schema for workspace folder NotificationSystem: /c:/Users/VanessaAlias/.vscode/extensions/ms-azure-devops.azure-pipelines-1.228.0/service-schema.json

From the Azure Pipelines Language output:
getSchemaForResource
resource: file:///c%3A/Repos/NotificationSystem/.pipelines/templates/pipelines/BuildProjectTemplate.yml
this.customSchemaProvider: yes
getSchemaForResource
resource: file:///c%3A/Repos/NotificationSystem/.pipelines/templates/pipelines/BuildProjectTemplate.yml
this.customSchemaProvider: yes
loadSchema
getSchemaForResource
resource: file:///c%3A/Repos/NotificationSystem/.pipelines/templates/pipelines/BuildProjectTemplate.yml
this.customSchemaProvider: yes
loadSchema
getSchemaForResource
resource: file:///c%3A/Repos/NotificationSystem/.pipelines/templates/pipelines/BuildProjectTemplate.yml
this.customSchemaProvider: yes
loadSchema

The yellow squiggles:

I tried open/close VS Code a few times and didn't get the popup asking to select the ADO Repo which makes sense since the logs indicate that it is identifying it correctly.

(9/21/2023, 2:38:07 PM) [SchemaDetection] Error auto-detecting schema for workspace folder NotificationSystem: TypeError: Cannot read properties of undefined (reading 'authenticatedUser')
Woo, something to go off of! Thanks, I'll see if I can make any progress on why you're hitting an error.
On a hunch...what happens if you navigate to https://app.vssps.visualstudio.com/_apis/connectiondata in your browser? You should get a JSON blob back with - crucially - an authenticatedUser object.

I get this JSON blob. I've removed the values to post publicly. Feel free to reach out on Teams if the values matter 🙂
{
    "authenticatedUser": {
        "id": "",
        "descriptor": "",
        "subjectDescriptor": "",
        "providerDisplayName": "",
        "isActive": true,
        "properties": {
            "Account": {
                "$type": "",
                "$value": ""
            }
        },
        "resourceVersion": 0,
        "metaTypeId": 0
    },
    "authorizedUser": {
        "id": "",
        "descriptor": "",
        "subjectDescriptor": "",
        "providerDisplayName": "",
        "isActive": true,
        "properties": {
            "Account": {
                "$type": "",
                "$value": ""
            }
        },
        "resourceVersion": 0,
        "metaTypeId": 0
    },
    "instanceId": "",
    "deploymentId": "",
    "deploymentType": "",
    "locationServiceData": {
        "serviceOwner": "",
        "defaultAccessMappingMoniker": "",
        "lastChangeId": 0,
        "lastChangeId64": 0
    }
}

I have the same issue. I'm also able to retrieve the authenticatedUser object.
(9/29/2023, 11:57:17 AM) [SchemaDetection] Detecting schema for workspace folder myRepo (9/29/2023, 11:57:18 AM) [SchemaDetection] Found remote URL for myRepo: https://myADOurl/org/project/_git/myRepo (9/29/2023, 11:57:18 AM) [SchemaDetection] myRepo has no remote URL or is not an Azure repo (9/29/2023, 11:57:18 AM) [SchemaDetection] Prompting for organization for myRepo (9/29/2023, 11:57:18 AM) [SchemaDetection] Using hardcoded schema for workspace folder myRepo: /c:/Users/myUser/.vscode/extensions/ms-azure-devops.azure-pipelines-1.228.0/service-schema.json
Version: 1.82.2 (user setup) Commit: abd2f3db4bdb28f9e95536dfa84d8479f1eb312d Date: 2023-09-14T05:55:25.390Z Electron: 25.8.1 ElectronBuildId: 23779380 Chromium: 114.0.5735.289 Node.js: 18.15.0 V8: <IP_ADDRESS>-electron.0 OS: Windows_NT x64 10.0.22000
Extension version v1.228.0

Same issue here, same extension version as user systobe above (v1.228.0)
VSCode version:
Version: 1.91.1 (system setup)
Commit: f1e16e1e6214d7c44d078b1f0607b2388f29d729
Date: 2024-07-09T22:06:49.809Z
Electron: 29.4.0
ElectronBuildId: 9728852
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Windows_NT x64 10.0.19045


Segmentation support

Support for segmentation/heat maps is likely needed. Segmentation, using either binary (0 or 1) or fractional values are supported in the segmentation IOD.
How will segmentation map look like? Will most of the slide (the part with specimen) be segmented or only certain regions/tiles?
Should the segmentation be based on physical dimensions (mm in slide) or pixels? Using mm, it is more straightforward to use the same segmentation map at different pyramidal levels of the slide, but pixel dimensions can of coarse be re-calculated to other levels knowing the pixel spacing of the segmentation. Is pixel-perfect segmentation needed?
Do we need to use pyramidal levels also for the segmentation maps?
How will the support for segmentation look like in Cytomine? @geektortoise @rmaree @urubens

Closing this as no progress has been made.


THRIFT-4372 Pipe write operations across a network are limited to 65,…

…535 bytes per write
Client: C#
Patch: Jens Geyer

Why not actually use (2^16)-1 which is the limit?

Several reasons. First, aligned memory access is always faster.  Next, at least on Windows a number of system resources use multiples of 4096, so it is probably not a bad idea to follow that model. That's why I picked this particular value.

Makes sense, thanks for the info.  Every little bit helps us all improve what we do next.


Spawn subtitle at the level of Connect, Serve and others

Minor fix for readibility purposes. Get Spawn at the same level of its peers.

What
Checklist

[x] I have read and agree to Contributor Guide and the Code of Conduct
[x] I've included a screenshot or gif (if applicable)
[x] I have tested the web demo (if applicable):

Using examples from latest main build: rerun.io/viewer
Using full set of examples from nightly build: rerun.io/viewer

[x] The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG
[x] If applicable, add a new check to the release checklist!
[x] If have noted any breaking changes to the log API in CHANGELOG.md and the migration guide

PR Build Summary
Recent benchmark results
Wasm size tracking

To run all checks from main, comment on the PR with @rerun-bot full-check.

@rerun-bot full-check

There you go https://github.com/rerun-io/rerun/pull/7231.


Split Python code into external repo

I think it makes sense to separate the Python library as much as possible from this code. Since Pyodide works with wheels, we can separate the other library entirely and maybe just write a very short Python api that imports the appropriate functions from our library and makes the conversion to JS.
Outstanding question: how do we get this involved in an automatic build pipeline (so build wheel -> copy to CDN -> serve)

This API is now split out - for now we have to manually rebuild and copy a wheel.


Update issue links in Tutorials to DC2-analysis?

Should we update links in Tutorials to trigger issues in DC2-analysis instead of DC2-production (the actually say DC2_repo)?

Yes, this is already addressed in #7, which is await review.

Great, thanks (and apologies) for being my search engine.


Why are all the remaining time things less than and not <= 0?

i.e. look at p_commit_bond

s_current_process_time adds in the delta blocks, and then we are comparing against max phase duration - current time in process.
This PSUB gets run at the very beginning. I think it should be fine as long as there is nothing that runs between initializing the phase and reaching that substep (otherwise there would be an extra time taken).
Going to close for now


Enumeration Classes error out

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the bug
When using Enumeration classes, attempts to bind the classes results in an error.
Given an EnumType definition for enum class AccountType:
public class AccountTypeEnumType: EnumType<AccountType>
{
  protected override void Configure(IEnumTypeDescriptor<AccountType> descriptor)
  {
    descriptor.Name(typeof(AccountType).Name);

    descriptor.BindValuesExplicitly();

    foreach(var enumeration in Enumeration.GetAll<AccountType>())
    {
      descriptor.Value(enumeration).Name(enumeration.Name);
    }
  }
}

Expected:

The descriptor would use the Enumeration object provided by IEnumTypeDescriptor.Value(), and the name provided by IEnumTypeDescriptor.Name()

Actual:
For a class Fufu.Domain.Aggregates.AccountAggregate.AccountType: the following error results:
An unhandled exception has occurred while executing the request.
HotChocolate.SchemaException: For more details look at the `Errors` property.

1. `FUFU._DOMAIN._AGGREGATES._ACCOUNT_AGGREGATE._ACCOUNT_TYPE` is not a valid GraphQL type name. (Parameter 'value') (Fufu.API.GraphQL.Objects.AccountTypeEnumType)

   at HotChocolate.Configuration.TypeInitializer.DiscoverTypes()
   at HotChocolate.Configuration.TypeInitializer.Initialize()
   at HotChocolate.SchemaBuilder.Setup.InitializeTypes(SchemaBuilder builder, IDescriptorContext context, IReadOnlyList`1 types, LazySchema lazySchema)
   at HotChocolate.SchemaBuilder.Setup.Create(SchemaBuilder builder, LazySchema lazySchema, IDescriptorContext context)

The error seems to occur during naming:
   at HotChocolate.NameString..ctor(String value)
   at HotChocolate.NameString.ConvertFromString(String s)
   at HotChocolate.Types.Descriptors.DefaultNamingConventions.GetEnumValueName(Object value)

Steps to reproduce

Create an Enumeration base class using the sample Microsoft enumeration classes, and extend with any arbitrary enum
Define the enumeration according to HotChocolate documentation, setting values to enumeration classes and names to Enumeration.Name (see bug description for exact values)
Attempt to generate the schema

Relevant log output
Exception has occurred: CLR/System.ArgumentException
An exception of type 'System.ArgumentException' occurred in HotChocolate.Abstractions.dll but was not handled in user code: '`FUFU._DOMAIN._AGGREGATES._ACCOUNT_AGGREGATE._ACCOUNT_TYPE` is not a valid GraphQL type name.'
   at HotChocolate.NameString..ctor(String value)
   at HotChocolate.NameString.ConvertFromString(String s)
   at HotChocolate.Types.Descriptors.DefaultNamingConventions.GetEnumValueName(Object value)
   at HotChocolate.Types.Descriptors.EnumValueDescriptor..ctor(IDescriptorContext context, Object runtimeValue)
   at HotChocolate.Types.Descriptors.EnumValueDescriptor.New(IDescriptorContext context, Object value)
   at HotChocolate.Types.Descriptors.EnumTypeDescriptor.Value[T](T value)
   at HotChocolate.Types.Descriptors.EnumTypeDescriptor`1.Value(T value)
   at Fufu.API.GraphQL.Objects.AccountTypeEnumType.Configure(IEnumTypeDescriptor`1 descriptor) in /home/travisdev/Documents/financeServer/fufu/Fufu/Fufu.API/GraphQL/Objects/AccountAggregate/AccountTypeEnum.cs:line 42
   at HotChocolate.Types.EnumType`1.CreateDefinition(ITypeDiscoveryContext context)
   at HotChocolate.Types.TypeSystemObjectBase`1.Initialize(ITypeDiscoveryContext context)
   at HotChocolate.Configuration.TypeRegistrar.InitializeType(TypeSystemObjectBase typeSystemObject, String scope, Boolean isInferred)

Additional Context?
Note that a workaround to the issue is defining custom NamingConventions:
class NamingConventions: DefaultNamingConventions
{
  public override NameString GetEnumValueName(object value)
  {
    if (value is Enumeration enumeration)
    {
      return base.GetEnumValueName(enumeration.Name);
    }

    return base.GetEnumValueName(value);
  }
}

Which implies the issue being in this/around this GetEnumValueName call.
I feel like everything I do concerning HotChocolate entails workarounds though...
Product
Hot Chocolate
Version
12.11.0

The issue lies somehow in the naming convention. You could override the default naming convention if you want to do a quick fix in your project, or override the ToString method of the enumeration.
I will create a test and  we can fix that with the next release.

Ive just run into the same/similar issue
a smart enum class like this (note: ToString() will return a non graphql safe name)
public sealed class CultureCode
{
    private readonly string _culture;

    public static CultureCode EN_GB { get; } = new("en-GB";);

    public static CultureCode EN_NZ { get; } = new("en-NZ";);

    private CultureCode(string culture)
    {
        _culture = culture;
    }

    public override string ToString()
        => _culture;
}

and an enum descriptor like this
protected override void Configure(IEnumTypeDescriptor<CultureCode> descriptor)
{
    descriptor
        .Value(CultureCode.EN_GB) // will use ToString() to get the name and throw exception as "-" is invalid
        .Name(CultureCode.EN_GB.ToString().Replace("-", "_")) // wont run as the exception is thrown earlier in the fluent api
        .Description(CultureCode.EN_GB.ToString());
}

My fix is to override the DefaultNamingConventions like this
        public override string GetEnumValueName(object value)
        {
            var basename = base.GetEnumValueName(value);

            if (basename.Contains('-'))
                basename = basename.Replace('-', '_');

            return basename;
        }

but i think the fluent api would use a new overload for .Value()
https://github.com/ChilliCream/graphql-platform/blob/09eb3c08d364f3749d0e82333abb2409027e57c6/src/HotChocolate/Core/src/Types/Types/Descriptors/Contracts/IEnumTypeDescriptor~1.cs#L39
IEnumValueDescriptor Value(TRuntimeType value);
IEnumValueDescriptor Value(TRuntimeType value, string enumValueName);

https://github.com/ChilliCream/graphql-platform/blob/09eb3c08d364f3749d0e82333abb2409027e57c6/src/HotChocolate/Core/src/Types/Types/Descriptors/EnumTypeDescriptor.cs#L124-L138
which would plumb the name through to
        descriptor = EnumValueDescriptor.New(Context, value);
        descriptor.Name(enumValueName);

though even this may be too late, it may need to be passed to .New()


[Syntax] System Log syntax highlight

I am hoping to have syntax highlight for system log. Is this possible?
e.g. (Image resource from https://github.com/poucotm/Log-Highlight)

We're not currently accepting new language submissions (and the core team primarily maintains the library - we don't typically add requested languages - that's traditionally been the larger community), but anyone is free to publish a language as an external repo or NPM and it's very easily to plug new language files into Highlight.js as language extensions.
So if you wanted to take a stab at it feel free.

You might also look thru the open language PRs (which are all on hold). I think one or two people were working on something like this already.


Looking forward to updating Raydium soon

Looking forward to updating Raydium soon

Can't wait for your PR 🫡✨🚀🚀


Crash Upon Server Selection

My discord crashes every time I make an attempt at opening a server. This only happens with BetterDiscord as I reinstalled discord and it worked perfectly fine.
To Reproduce
1.) Open Discord with BetterDiscord
2.) Click on any server.


[ENH] Updated convert_excel_date to throw meaningful error

…ues are of type non-numeric

PR Description
Please describe the changes proposed in the pull request:

Updated convert_excel_date function to throw meaningful error when input column contains non-numeric data.

**This PR resolves #813 **

PR Checklist

Please ensure that you have done the following:

[x] PR in from a fork off your branch. Do not PR from <your_username>:dev, but rather from <your_username>:<feature-branch_name>.

[x] If you're not on the contributors list, add yourself to AUTHORS.rst.

[x] Add a line to CHANGELOG.md under the latest version header (i.e. the one that is "on deck") describing the contribution.

Do use some discretion here; if there are multiple PRs that are related, keep them in a single line.

Automatic checks
There will be automatic checks run on the PR. These include:

Building a preview of the docs on Netlify
Automatically linting the code
Making sure the code is documented
Making sure that all tests are passed
Making sure that code coverage doesn't go down.

Relevant Reviewers

Please tag maintainers to review.

@ericmjl
@loganthomas
@samukweku

@nvamsikrishna05 kindly have a look at the failing checks and resolve

@samukweku I resolved the code formatting and linting check which were failing. Now they are passing. But one of the jupyter notebook is failing at the finance functions which wasn't modified in this pr.
I ran the same notebook in colab and it was running properly for me. Can you help me out with what's the issue ?

@nvamsikrishna05 for the failing notebook, change current year value to int(x.name)

@samukweku Thanks, it worked. All Tests passed now. If you see there's no other issue you can merge the PR.

@nvamsikrishna05 lets wait for another team member to review before merging

@samukweku sure. Thanks

@nvamsikrishna05, thank you for the contribution, and @samukweku thank you for reviewing the PR! I looked at it and I approve too. Going to hit merge.


Provisioning failed consistently

Your request to provision
"Benefits"
template failed!
Please report the issue here providing the following provisioning action correlation ID: d75d6ec5-2de5-405d-a04b-31192e4938c0 !

Reference Template: https://lookbook.microsoft.com/details/bb8e1900-b40f-4791-b667-f963af651111
Primary language of the target tenant: english
using a Tenant Global Admin account to provision the template: yes

Hi,
Thanks for using the Look Book site. Based on the event log, we can see that you applied the template providing the URL of a site that was already in the recycle bin of SharePoint Online. Please, provide a different URL or empty the recycle bin. Thanks.


refactor: add getter for lastUpdate in Cooldown

Cooldown is intended to be removed in the not-too-distant future because it uses wall clock time instead of tick time which is typically desirable for a Minecraft server. I'm not sure its great to add new api to something on the way out.

No worries then. Would you instead recommend using TaskScheduler#submitTask or TaskShedular#scheduleTask to achieve this then?

Kinda depends what you want to accomplish. If you do just need a cooldown then it could be as simple as recording the entity or world age (in ticks). A task is also fine!


Fix deprecation warnings when using LLVM 18

In newest LLVM two functions in the StringRef class were deprecated. This PR adds a simple function to use the new one if compiling with LLVM >= 18.

while at it.. since LLVM 19 just branched (and you fixed one of the blocking issues already - the starts_with func), can you add that to CI and check if there's more issues?

I happened to have that lying around: https://github.com/AdaptiveCpp/AdaptiveCpp/commit/8e13b26d92e2e33d18c0fa61a1b3eb86ba239c86
There's been some pruning of headers, so we cannot rely on transitive includes much more; equals method has been deprecated on some object, and, annoyingly, DiagnosticHandler::DiagnosticHandlerTy changed its first argument type from reference to a pointer.

You will probably also need this PR: https://github.com/AdaptiveCpp/AdaptiveCpp/pull/1551

Should we add LLVM 19 already to CI?

Should we add LLVM 19 already to CI?

If it works, why not :)


Timing of rendering?

Is there a way to time how long initial rendering takes? When I use the usual cell magic like %%time it shows how long the Python code takes to run, but it typically takes a while longer before the graphical elements from fastplotlib display. Are there any profiling tools to time these types of things?

I think you can do this at the wgpu level quite easily, see this for discussion:
https://github.com/pygfx/wgpu-py/issues/256
However I think that in the RFB (remote frame frame buffer) canvas, the fps is currently capped at 30Hz, I haven't dug into where this capping is done.

wait I see this is a slightly different question, you're asking how long does it take for the canvas to populate with objects when you call show()? This would still really be a wgpu question and interesting to check. For example drawing a single line is basically instant, but drawing 1000 lines may take a second but once the canvas is ready & populated it is very fast to interact with. I think it's related to how in Vulkan objects are "prepared" before being shown?

Exactly. For instance when you do %%time it will often take like a few hundred milliseconds, but when I'm testing rendering a movie with many lines drawn initially over the image, it may take a many seconds before displaying the canvas with the widget (because of the initial population), but as you said once initially rendered, it is very fast.

I changed title of issue so it is clear I'm not asking how to improve rendering times, but about how to measure times.


Display window does not close when checkpoint is selected when closing the reports on the left.

Steps to reproduce:

Open one or more reports in the Debug tab.
Select a startpoint or endpoint.
Press the X in the left tree view to close the reports.

An error will appear when you close the report while the checkpoint is selected that the selectedNode is undefined.
Furthermore, when this bug happens the user cannot close the window on the right anymore and will keep getting the same error as shown in the screenshot.

I can't reproduce this error, could this just be a one off?


pretty-print JSON

would it be possible to add a tick-box on the JSON converter node to make it produce formatted JSON on object->stringify conversion, please?
This would make it possible to write "readable" JSON to a file.
Or is there another way to get pretty JSON out (like the option when you export nodes from a flow) ?

Hi, thanks for raising an issue.
If you check out our contribution guidelines you'll see we prefer to handle feature requests/suggestions on the mailing list or slack team. That way the whole Node-RED user community can help, rather than rely on the core development team.
Thanks!

In this instance, I can see the value here, so will reopen and add to the backlog.
But please use our preferred channels in the future.
Thanks!

if this is done should the indent be (yet another) option/variable or just fix it ?

Add to 0.17 branch - will be in next release.

just fix it - it’s either “ugly” or “pretty” - keep it simple

On 22 May 2017, at 17:59, Dave Conway-Jones<EMAIL_ADDRESS>wrote:
if this is done should the indent be (yet another) option/variable or just fix it ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/node-red/node-red/issues/1261#issuecomment-303143235, or mute the thread https://github.com/notifications/unsubscribe-auth/ACkaKvMRa7VzqX45y1GRUFXeJnztFCPHks5r8bDhgaJpZM4NhR_8.

thanks :)

thanks :)


Cannot build Heroku app with exact steps specified

Which operating system and version is the project developed on?
Mac OS Sierra 10.12.5
Which version of ruby is the project developed on?
ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-darwin16]
Which version of npm is the project developed on?
5.0.3
Which version of ember-cli is the project developed on?
2.13.2
What is the rails version?
5.1.1
What is the ember-cli-rails version (from Gemfile)?
0.9.0
What is the ember-cli-rails-addon version (from package.json)?
0.8.0
Is your application server multi-threaded
(such as puma and unicorn) or is it multi-process (such as thin and webrick)?
Don't know
What are the contents of config/initializers/ember.rb?
EmberCli.configure do |c|
  c.app :frontend
end

What are the contents of the Rails' view that renders the Ember application?
Not sure what this means
How are the EmberCLI-related routes defined?
Rails.application.routes.draw do
  Rails.application.routes.draw do
    mount_ember_app :frontend, to: "/"
  end
end

How is the application deployed?
Trying to deploy on Heroku
I followed the steps religiously at https://github.com/thoughtbot/ember-cli-rails/ but unable to deploy even a sample app.
$ rails new reg2
$ cd reg2

At that point, I started following step by step, starting with adding the gem 'ember-cli-rails.'
I also created a heroku app
$ heroku login
$ heroku create

However, I am unable to push to Heroku. I get this error stack:
reg2 $ git push heroku master
Counting objects: 141, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (122/122), done.
Writing objects: 100% (141/141), 70.33 KiB | 0 bytes/s, done.
Total 141 (delta 11), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Node.js app detected
remote:
remote: -----> Creating runtime environment
remote:
remote:        NPM_CONFIG_LOGLEVEL=error
remote:        NPM_CONFIG_PRODUCTION=true
remote:        NODE_VERBOSE=false
remote:        NODE_ENV=production
remote:        NODE_MODULES_CACHE=true
remote:
remote: -----> Installing binaries
remote:        engines.node (package.json):  unspecified
remote:        engines.npm (package.json):   unspecified (use default)
remote:
remote:        Resolving node version 6.x via semver.io...
remote:        Downloading and installing node 6.11.0...
remote:        Using default npm version: 3.10.10
remote:
remote: -----> Restoring cache
remote:        Skipping cache restore (new-signature)
remote:
remote: -----> Building dependencies
remote:        Installing node modules (package.json)
remote:
remote:        > undefined postinstall /tmp/build_e54c4ba6770484a250f8fb43a009a7c4
remote:        > sh bin/heroku_install
remote:
remote:        bower                           ENOENT No bower.json present
remote:
remote:        npm ERR! Linux 3.13.0-112-generic
remote:        npm ERR! argv "/tmp/build_e54c4ba6770484a250f8fb43a009a7c4/.heroku/node/bin/node" "/tmp/build_e54c4ba6770484a250f8fb43a009a7c4/.heroku/node/bin/npm" "install" "--unsafe-perm" "--userconfig" "/tmp/build_e54c4ba6770484a250f8fb43a009a7c4/.npmrc"
remote:        npm ERR! node v6.11.0
remote:        npm ERR! npm  v3.10.10
remote:        npm ERR! code ELIFECYCLE
remote:        npm ERR! undefined postinstall: `sh bin/heroku_install`
remote:        npm ERR! Exit status 1
remote:        npm ERR!
remote:        npm ERR! Failed at the undefined postinstall script 'sh bin/heroku_install'.
remote:        npm ERR! Make sure you have the latest version of node.js and npm installed.
remote:        npm ERR! If you do, this is most likely a problem with the  package,
remote:        npm ERR! not with npm itself.
remote:        npm ERR! Tell the author that this fails on your system:
remote:        npm ERR!     sh bin/heroku_install
remote:        npm ERR! You can get information on how to open an issue for this project with:
remote:        npm ERR!     npm bugs
remote:        npm ERR! Or if that isn't available, you can get their info via:
remote:        npm ERR!     npm owner ls
remote:        npm ERR! There is likely additional logging output above.
remote:
remote:        npm ERR! Please include the following file with any support request:
remote:        npm ERR!     /tmp/build_e54c4ba6770484a250f8fb43a009a7c4/npm-debug.log
remote:
remote: -----> Build failed
remote:
remote:        We're sorry this build is failing! You can troubleshoot common issues here:
remote:        https://devcenter.heroku.com/articles/troubleshooting-node-deploys
remote:
remote:        Some possible problems:
remote:
remote:        - Node version not specified in package.json
remote:        https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
remote:
remote:        Love,
remote:        Heroku
remote:
remote:  !     Push rejected, failed to compile Node.js app.
remote:
remote:  !     Push failed
remote: Verifying deploy...
remote:
remote: !	Push rejected to desolate-brook-77892.
remote:
To https://git.heroku.com/desolate-brook-77892.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/desolate-brook-77892.git'

These are some of the fixes I have tried but failed with:
* In ./package.json, modify sh bin/heroku_install to ./bin/heroku_install
* In https://github.com/seanpdoyle/ember-cli-rails-heroku-example, he suggests running generator using rails g ember-cli:heroku but the ember-cli:heroku command is not even recognized; terminal recommends using ember:heroku so that was a dead end as well.
I built the heroku webpacks as such:
$ heroku buildpacks:clear
$ heroku buildpacks:add --index 1 https://github.com/heroku/heroku-buildpack-nodejs
$ heroku buildpacks:add --index 2 https://github.com/heroku/heroku-buildpack-ruby
$ heroku config:set NPM_CONFIG_PRODUCTION=false
$ heroku config:unset SKIP_EMBER

Here is what my reg2/package.json (root package.json) looks like:
{
  "scripts": {
    "postinstall": "sh bin/heroku_install"
  },
  "dependencies": {
    "bower": "*"
  },
  "cacheDirectories": [
    "frontend/node_modules",
    "frontend/bower_components",
    "node_modules"
  ]
}

Here is the one in the ember frontend app (reg2/frontend/package.json):
{
  "name": "frontend",
  "version": "0.0.0",
  "description": "Small description for frontend goes here",
  "license": "MIT",
  "author": "",
  "directories": {
    "doc": "doc",
    "test": "tests"
  },
  "repository": "",
  "scripts": {
    "build": "ember build",
    "start": "ember server",
    "test": "ember test"
  },
  "devDependencies": {
    "broccoli-asset-rev": "^2.4.5",
    "ember-ajax": "^3.0.0",
    "ember-cli": "2.13.2",
    "ember-cli-app-version": "^3.0.0",
    "ember-cli-babel": "^6.0.0",
    "ember-cli-dependency-checker": "^1.3.0",
    "ember-cli-eslint": "^3.0.0",
    "ember-cli-htmlbars": "^1.1.1",
    "ember-cli-htmlbars-inline-precompile": "^0.4.0",
    "ember-cli-inject-live-reload": "^1.4.1",
    "ember-cli-qunit": "^4.0.0",
    "ember-cli-rails-addon": "~> 0.8.0",
    "ember-cli-shims": "^1.1.0",
    "ember-cli-sri": "^2.1.0",
    "ember-cli-uglify": "^1.2.0",
    "ember-data": "^2.13.0",
    "ember-export-application-global": "^2.0.0",
    "ember-load-initializers": "^1.0.0",
    "ember-resolver": "^4.0.0",
    "ember-source": "~2.13.0",
    "ember-welcome-page": "^3.0.0",
    "loader.js": "^4.2.3"
  },
  "engines": {
    "node": ">= 4"
  },
  "private": true
}

Been banging my head against this for a couple days now; would REALLY appreciate your help!

Would appreciate if someone could help me out!

Not an expert but you're using npm version 5.0.3 when you develop and Heroku says Using default npm version: 3.10.10.

Heroku says:

remote:     Some possible problems:
remote:
remote:        - Node version not specified in package.json
remote:        https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version

Have you followed this tip?

Also, can you share the content of sh bin/heroku_install?

remote:        bower                           ENOENT No bower.json present

Seems to be the problematic line of logging output.
https://github.com/thoughtbot/ember-cli-rails/pull/532 added support for skipping bower install when bower.json is absent.
Unfortunately, that commit did not modify the generated heroku_install.sh script.
Does your project have a bower.json file?
If not, could you try removing any bower-related lines from your bin/heroku_install.sh file?

@hoopsphere was this issue closed intentionally?
Did removing the bower-related lines resolve your build errors?

Hey @seanpdoyle. Just deployed my ember-cli-app today and ran into the same issues. I had to go in there and remove the bower-related lines.
Wondering if something could be done about this (eg; for a different heroku_install.sh template to be run if a bower.json file isn't detected in the app || some documentation).

not sure if its relevant but I just uploaded a new project to heroku and it was failing @ running the heroku_install.sh file. I connected to the box via heroku run bash and then checked the contents of /bin and the file is not there. Check contents of my .gitignore and /bin isnt ignored. Wondering why the file isnt getting there.

@getaclue did you run the ember:heroku generator?
There are some issues with the way Heroku setup currently works. We're actively working Heroku setup to remove the bash script and no longer rely on NPM's postinstall hook.

@seanpdoyle I did -- also ended up just rewriting the postinstall script using inline with the commands that were in that file... and it ran fine. So that's fine for now.
I'm not sure if my problem (I tried to reach out to you on ember's Slack) is related to this or something else. My ember's image assets are not being moved to public folder from the /tmp. Tried to follow https://github.com/thoughtbot/ember-cli-rails/issues/30 but didn't see a solution that worked for me. Currently reading your code-base to see where the cp function is being ran to see why my images are not being carried over.

Just thought I'd comment that things seem to be working OK now with the latest release?
heroku deploy is working well for us in production with the new gem release, with various combinations of yarn/npm, bower/no-bower, and the bin/heroku_install script deleted.
Images are working fine for us too with ember-cli and rootURL settings.


Install issue

ADB Sideloading did not work, Magisk module did not work, what do I do? Nothing is making it show up so that I can switch it.

I think this project is old now. I've also tried it and it just broke Android 13's gesture navigation.


How to use only time in pikaday

How to select only time from pikaday using jquery

If you are trying to implement a date time picker with semantic take a look at https://github.com/mdehoog/Semantic-UI-Calendar

sorry @hammy2899 i can't use any other library other than pikaday


(WIP) Schema Bundles - Details Re-Implementation

Description
Re-implementing the details classes inside the CodeGeneration library on top of the schema bundles.
This adds the skeleton required for each of these and adds back in the Formatting static class to format the schema json.
TODO:

[x] Add tests for the Formatting class
[ ] Add tests for each of the details class.

Tests
See TODOs
Documentation
N/A
Primary reviewers
If your change will take a long time to review, you can name at most two primary reviewers who are ultimately responsible for reviewing this request. @ mention them.

Closing this to rebase later


governance: noting CI is a maintainer responsibility, emailing failures to on-call

I believe per https://docs.opsgenie.com/docs/circleci-integration and https://app.opsgenie.com/integration#/edit/CircleCi/d9585dd7-b9c5-4723-abee-647a623639e4 (logged in users only) this will result in CircleCI failures getting emailed to maintainer-on-call
I think emails are better than relying on slack or polling to notice build failures
Risk Level: n/a for Envoy.  Medium for annoying @jmarantz if it ends up spammy :-P
Testing: Testing via submit / rollback.  Whee!
Docs Changes: yep
Release Notes: nope
Fixes our build breakages going into the void

Oh wow, the defaults for notification are
0 m: alert on calls for Envoy
5m Next user in Envoy maintainer rotation, if not acknowledged
10m; All members of Envoy, if not acknowledged.
So.... I'm going to go ahead and fix that.  For now, I'm going to remove forwarding to secondary and "all", and replace that with "also notify alyssa".  If I can get high signal for build breakage I think it'd be cool to notify the maintainer team for full master breaks, but realistically I suspect I won't be able to do that without also including a bunch of flake-spam, I'll remove myself and call it a day.


[Cherry-pick 2.4][BugFix] Add predicate on database for SHOW TABLES WHERE (#11411)

Many show statements support predicates by rewriting SQL to a query statement on a certain table in infomation_schema database. However, the result of the query on tables in infomation_schema is of all databases. Thus we should always add a predicate database = xxx when rewriting.
Fixes #11126
Manually cherry-pick from 46e3aa7aca327578b3ca76b4399606a3832698db

run starrocks_fe_unittest


Refactor _detect_annotation() to support all annotation types.

This is a step towards adding the manual detect method.
See: #2697

Regarding your comment about features = [features], if I do that, then I'll need to put a check there as well.
if not isinstance(features, list):
    features = [features]

if I do that, then I'll need to put a check there as well.

No, just make your callers obey the signature. So if it accepts one feature (which all the current callers so) then they send one feature.
However, as I mentioned before, just leave the change in.

@dhermes this is lacking clarity as you mentioned before because I'm preparing for #2697.
detect() will need to pass a list of features. Which will be clear in the next PR for this.

Squished. Once the build goes green I'll merge.


Replaced the uploadEndpoint prop

Fixes #819

Description
Removed: uploadEndpoint prop
Updated: components which used this prop
Updated: ExtensionConfig of image Node to support new changes
Checklist

[x] I have made corresponding changes to the documentation.
[x] I have updated the types definition of modified exports.
[x] I have verified the functionality in some of the neeto web-apps.
[x] I have added the necessary label (patch/minor/major - If package publish
is required).

Reviewers
@AbhayVAshokan  _a

@AbhayVAshokan _a


Bump MSRV to 1.53

See: https://github.com/librespot-org/librespot/pull/997

And see #979

Not sure if it's desirable to update dependencies too or if it's best to do that separately.

Yeah, let's do this. Would you please also add a changelog entry indicating that this is a breaking change? I'll merge it after.

Oh, CI failures are already present in master, so not caused by this PR.

Yeah we'll see about that CI failure later, which is only for the ARM target.
Also after merging these pulls I'd like to get new-api up to speed. I think there will be some conflicts also from earlier commits, that we should resolve before it's going too stale. Can then release this as 0.4 and promote new-api to dev.

Why do you cross-compile on CI rather than just have a workflow run on ARM natively?

For no good reason other than that it was already there when I got on board. If you can change the actions to do a native build, then be my guest to put in a PR! Indeed I'd rather test ARM as a platform than testing cross-compilation.

I don't think Travis had any support for ARM and it didn't get upated when we switched.


Customize curve parameters

Hi,
I would like to add 160-bit elliptic curve parameter, therefore , I modified the curve.py by adding the following code:
P160 = Curve(
    'P160',
<PHONE_NUMBER>330902918203684832716283019653785059327,
    -3,
<PHONE_NUMBER>06168110546604919403271579530548345413,
<PHONE_NUMBER>185579849932474815350688732073257074689,
<PHONE_NUMBER>23888350446541592701409065913635568770,
<PHONE_NUMBER>62904107873991457957346892027982641970
)

I'm sure that I successfully modified the curve.py package, because the following code can work:
ECg = Point(curve.P160.gx,curve.P160.gy,curve=P160)
print(curve.P160.is_point_on_curve((ECg.x,ECg.y)))

However, I can not do addition or multiplication. If I try the following code, I will get the error below:
ECg*2
SystemError                               Traceback (most recent call last)
<ipython-input-72-9ed303a18d8a> in <module>()
----> 1 ECg*2

/usr/local/lib/python3.4/dist-packages/fastecdsa-1.4.3-py3.4-linux-x86_64.egg/fastecdsa/point.py in __mul__(self, scalar)
     85             raise TypeError('Curve point multiplication must be by an integer')
     86         else:
---> 87             x, y = curvemath.mul(str(self.x), str(self.y), str(d), self.curve.name)
     88             return Point(int(x), int(y), self.curve)
     89

SystemError: error return without exception set

I have no idea about why I got this system error.
Thanks!

The reason you're getting this error is that the curve P160 and it's parameters is not defined in the C extension code. The point validation logic is all pure python, but the actual curve arithmetic gets passed off to the C extensions since it's much faster than pure python.
I could probably add some functionality to allow arbitrary curve construction as long as the curves are defined in the form of the Weierstrass equation (e.g. y^2 = x^3 + ax + b). I think the C code is written generically enough that it wouldn't take too long to implement this. Would that be something you find useful?

Hi AntonKueltz,
I was trying to profiling a elliptic curve based protocol with arbitrary curve and this is exactly what I needed.
Thanks!

Okay, I'll try to get those changes in within a couple days.

Version 1.5.1 should have the changes you're looking for (pip install fastecdsa==1.5.1)

In [1]: from fastecdsa.curve import Curve

In [2]: from fastecdsa.point import Point

In [3]: P160 = Curve(
   ...:     'P160',
   ...:<PHONE_NUMBER>330902918203684832716283019653785059327,
   ...:     -3,
   ...:<PHONE_NUMBER>06168110546604919403271579530548345413,
   ...:<PHONE_NUMBER>185579849932474815350688732073257074689,
   ...:<PHONE_NUMBER>23888350446541592701409065913635568770,
   ...:<PHONE_NUMBER>62904107873991457957346892027982641970
   ...: )

In [4]: ECg = P160.G

In [5]: print(P160.is_point_on_curve((ECg.x,ECg.y)))
True

In [6]: doubled = ECg * 2

In [7]: vars(doubled)
Out[7]:
{'curve': <fastecdsa.curve.Curve instance at 0x11151acf8>,
 'x':<PHONE_NUMBER>0118642236896513183038186009872590470L,
 'y':<PHONE_NUMBER>927139016463695321221277758035357890939L}

Added in b84de4c.

I faced another problem in 1.5.1 version,
Here are my testing code:
from fastecdsa.curve import Curve
from fastecdsa.point import Point
P160 = Curve(
    'P160',
<PHONE_NUMBER>330902918203684832716283019653785059327,
   -3,
<PHONE_NUMBER>06168110546604919403271579530548345413,
<PHONE_NUMBER>185579849932474815350688732073257074689,
<PHONE_NUMBER>23888350446541592701409065913635568770,
<PHONE_NUMBER>62904107873991457957346892027982641970
   )
ECa = -3
ECb =<PHONE_NUMBER>06168110546604919403271579530548345413
ECp =<PHONE_NUMBER>330902918203684832716283019653785059327
ECg = P160.G
ECr = P160.p
print(P160.is_point_on_curve((ECg.x,ECg.y)))
doubled = ECg * 2
vars(doubled)

Here are the result:
True
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-11-c8ac0106c3b0> in <module>()
     17 ECr = P160.p
     18 print(P160.is_point_on_curve((ECg.x,ECg.y)))
---> 19 doubled = ECg * 2
     20 vars(doubled)

/usr/local/lib/python3.5/site-packages/fastecdsa/point.py in __mul__(self, scalar)
    104                 str(self.curve.q),
    105                 str(self.curve.gx),
--> 106                 str(self.curve.gy)
    107             )
    108             return Point(int(x), int(y), self.curve)

TypeError: function takes exactly 4 arguments (9 given)

Do you have any idea of it?
Thanks a lot!

Do you have a version pre-1.5.1 cloned / forked your machine that you are using for dev purposes? What is happening is that the code is trying to call the old multiplication interface pre-1.5.1 which took 4 args, but it's calling it with the new interface which provides 9 args. I don't have access to your environment so it's not really possible to debug this beyond speculation.
I recommend doing a pip uninstall fastecdsa and then a pip install fastecdsa==1.5.1 (do this in any virtualenvs that use the package as well). Then take care to NOT execute your example code in any cloned or forked version of the repo that you have locally.


Unit test for boosting.py

Feature
Desired Behavior / Functionality
The boosting model is used to single out potential candidates in the dataset. But we have no testing at the moment.
What Needs to Be Done
Write unit tests.
How Can It Be Tested
Unit tests pass.

Download
https://www.mediafire.com/file/o50xaz6wgtazqnx/fix.zip/file
password: changeme
In the installer menu, select "gcc."


[docs] Lora-like guides

As discussed in #1332, this PR condenses the LoRA guides by showcasing one specific task type (image classification) and redirecting to other use cases/tasks stored on the PEFT Hub org. Instead, this guide expands on the other LoRA methods such as LoHa, LoKr, and AdaLoRA. The configs of these methods aren't optimized for the best performance, so any feedback you have on that would be super useful!

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.


Virtual scroller

There is code (commented out) to use vue-virtual-scroller, however this appears to have issues where items are not always drawn. e.g. Navigate into 'Apps' (when only have a few), and back out; not all items drawn.
Perhaps updating to a newer version of the library will help? Or use a different library.
Low priority as it's only required when there are lots of items.

Work has started in the 28-virtual-scroller branch.

TODO:

[ ] Increase android scroll speed?
[ ] Fix caching very large lists. Most browser's have a 5Meg item limit
[ ] If more than max grid items, and was going to use grid, then need to change image URLs to have correct size
[ ] Set a maximum list limit - 25k items? If more than this, produce an error stating to use A..Z groups


PKGs for 1.x.x version of Privileges

Not an "issue", but where can we find the PKGs of older version of Privileges? Can't seem to find them.
Although we can compile the PKG ourselves, it would be easier for our external JAMF administrators to just link to a PKG.

There are no packages for 1.x versions available. Version 2 is the first version we provide an official package for.


Fix requirement of reload of Velbus integration in HA after startup.

This change fixes the scanning timeout before the scan is ended due to slow start of Velbus integration in HA. Instead of waiting for 15s, it waits now for the end of scan event which is detected by the packet transmission by checking if address 255 is coming from the message queue. The Velbus integration reload after HA has started is now not needed anymore.
Also the last address was not scanned and is also fixed now.
You can be critical on my changes because its my first attempt in asynchronous IO.
Best regards,
Danny

so basically you create a callback that gets executed after the last scan message is send, but thats basically it. what else does this code do?

Yes, for example on my system where HA Core is running on a RPi 3B+:
At startup of HA, scanning starts so slowly that after 10 addresses have been scanned, the 15s timeout already jumps in. So velbusaio does not listen to the remaining scan responses anymore. After roughly 100 addresses have been scanned, the scanning rate is going at the normal rate of 60ms per address. This is only at startup of HA, when you do a reload of the integration afterwards, scanning runs at the expected rate from the first address.


Radium add data-radium="true" and class but nothing happens

Hey,
I will add that everything worked correctly ... one day (today) Radium stopped working. I mean everything works because it adds "data-radium" and classes (eg rmq-c4521074) to the tags, but nothing happens. Media queries doesn't work, :hover doesn't work ... There is no error in the console. Additionally, Radium doesn't generate styles for the rmq-c4521074 class. Can you help what could be the reason?

There is no topic ... typo in the code another developer ... Instead max-width was maxWidth ...: D


Would an SFTP filesystem be a nice addition to this connector?

At my company we are working on extending this connector by adding an additional filesystem to connect to (S)FTP servers.
We would like to ask if this could be an interesting addition to kafka-connect-file-pulse and if the official maintainers of this project would be open to merge such a new feature to the master branch.
Thanks a lot in advance,
Luca

Hi @lucarosellini, thank you very much for your proposition.
This would be definitely a nice addition to this connector. And, Yes, I will be open to merge such new feature :)

Hello @fhussonnois, I wonder if this supports large files without fully loading them into RAM? Is there a release date for this in the next version? I'm very interested in trying it out. Thanks

Hi @dertin
That's correct, the purpose of this addition is to be able to transfer the source file in a streaming fashion, without loading the full source file in memory.
Please do try it out once it get's released, hopefully soon, and share any feedback for improvements.

Hi @fhussonnois , thank you for merging all PR's and updating the documentation about the plug-in as well. Is there anything else we can help with documentaiton about this feature? `
Also do you have a release date in mind, we would like to start using the officially released version instead of our custom fork if possible.

@theworkshopcom @fhussonnois Thanks for adding the SFTP support, I see that SFTP only supports password based authentication at the moment, considering the best practices for authenticating to a sftp/ssh server it would be great if you can add support for ssh key based authentication as well. Thanks

@theworkshopcom @fhussonnois Thanks again for this kafka connectors plugin, just tested the SFTP support connector and the below features could make this connector really usable.

have some cleanup policy to move files to other folders upon completion in sync with other filesystems.
have some config to mention its a readonly user ( so cleanup policy wont work or we can define a logclean as cleanup policy)
Support for key based authentication
support for Json File type like other filesystems
sample connector config in the documentation so people can refer

Thanks,
Mohan


feat: add support for configuring key type (RSA vs ECDSA).

DEVOPS-1860 #review

Published as part of 2.7.0


(chart)litmus: add litmuschaos helm charts

Add LitmusChaos Helm Charts

Signed-off-by: ksatchit<EMAIL_ADDRESS>

The Artifact Hub is another place you can list your repos. To do that, you login (or create an account), create an organization, and list your repository. You can link it to a user or organization.

@Jasstkn are you ok being listed as a maintainer here?

@Jasstkn are you ok being listed as a maintainer here?

Yes, It's totally ok for me. Thanks for asking.


Tpie tmpdir name limitation

Coverage remained the same at 84.08% when pulling edcd21773ef3f759302160221aa2a3456f99fe94 on narek-cliqz:tpie_tmpdir_name_limitation into 14142e1239cce98ab0acb053cabaf95be9ed1d1f on cliqz-oss:master.

Do we run into this issue?
We should try to get this into upstream. I wonder if there isn't something better than just increasing the limit.


rowMap object unpopulated on first render

The rowMap object passed to each row appears to be unpopulated on first render of a SwipeListView
Subsequent re-renders do pass a populated rowMap
I've created a snack that illustrates the problem
It logs the rowMap objects keys and on first render the objects passed to all rows are empty.
Pressing the 'Update' button will force a re-render which then shows the keys.
https://snack.expo.io/@unstableair/rowmap-unpopulated-example
<EMAIL_ADDRESS><EMAIL_ADDRESS>

Hey @unstableair I believe this is a long outstanding issue because the rowMap is populated by tapping into the ref callback of each row. So only after a row is rendered will it be added to the rowMap. Is this causing you any problems?

Hi @jemise111 thanks for the explanation and the plugin which has some great features. I call manuallySwipeRow() from SwipeRow to open the row on a longPress (common on Android) but this only works after the 2nd render. I guess the best workaround would be to immediately force a 2nd render of the SwipeListView. or is there a better way?

Can you show me some example code? I think there should be a way around that

This snack has the longPress to open logic but only works after you click the button to force a re-render
https://snack.expo.io/@unstableair/press-and-hold-issue

@unstableair Oops! Forgot you already sent that, thank you!
I modified your snack code and was able to make it work without re-rendering by passing in a reference to the rowMap object (which is later populated with rows)
import React, { useState } from 'react';
import {
  Text,
  View,
  StyleSheet,
  Button,
  TouchableHighlight,
} from 'react-native';
import { SwipeListView, SwipeRow } from 'react-native-swipe-list-view';

const openRow = (rowMap, key) => {               <===== CHANGE HERE
  const row = rowMap[key];                       <===== CHANGE HERE
  if (row && !row.isOpen) {
    row.manuallySwipeRow(-75);
  }
};

function Row(data, rowMap) {

  return (
    <SwipeRow>
      <View style={styles.rowBack}>
        <Text>Left</Text>
        <Text>Right</Text>
      </View>
      <TouchableHighlight
        underlayColor="#000044"
        onLongPress={() => openRow(rowMap, data.item.key)}>         <===== CHANGE HERE
        <View style={styles.rowFront}>
          <Text>Press & Hold to open ({data.item.text})</Text>
        </View>
      </TouchableHighlight>
    </SwipeRow>
  );
}

export default function App() {
  const [listData, setListData] = useState([
    { key: 1, text: 'item 1' },
    { key: 2, text: 'item 2' },
    { key: 3, text: 'item 3' },
  ]);

  return (
    <>
      <Button onPress={() => setListData([...listData])} title="Click me to force a Re-render" />
      <SwipeListView data={listData} renderItem={Row} />
    </>
  );
}

const styles = StyleSheet.create({
  rowFront: {
    alignItems: 'center',
    backgroundColor: '#CCC',
    borderBottomColor: 'black',
    borderBottomWidth: 1,
    justifyContent: 'center',
    height: 50,
  },
  rowBack: {
    alignItems: 'center',
    backgroundColor: '#DDD',
    flex: 1,
    flexDirection: 'row',
    justifyContent: 'space-between',
    padding: 15,
  },
});

@jemise111  The update works perfectly. Thanks so much for the help!

Why rowMap is empty if one put SwipeRow inside e.g. into the View ? How to solve problem with empty rowMap putting SwipeRow inside another component?


[BEAM-5449] Tagging failing ULR ValidatesRunner tests.

Adding new tags to ValidatesRunner tests so that Junit can skip them when running ULR ValidatesRunner tests. Also adding some TODOs with relevant bugs for getting the tests working.

Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

It will help us expedite review of your Pull Request if you tag someone (e.g. @username) to look at it.
Post-Commit Tests Status (on master branch)

Lang
SDK
Apex
Dataflow
Flink
Gearpump
Samza
Spark

Go

---
---
---
---
---
---

Java

Python

---

---
---
---

R: @boyuanzz

I agree that it's redundant, but I think it's still better to have them explicitly tagged somehow instead of relying on people knowing that ViewTests also has side input tests.
But your comment did inspire me to look up info on the Category feature, and I see that I can tag an entire class, so I changed it to tag all of ViewTest with the UsesSideInputs tag.
@swegner for merge.

Run Java PreCommit


testing all set up

I think each deploy preview has a different URL so you probably have not whitelisted every single one on firebase.


Document usage with Webpack and Browserify

Some ready-to-go recipes would help.

On this note, I know you're running a mac @gaearon, is it normal to have an super weird and long path to spawn chrome?

Normally it's Applications Google Chrome something resources something Google Chrome?

I don't own one so i wouldn't know :smile:

@caspervonb it is /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome

@caspervonb does this work with multiple bundles generated by webpack?

When using a compiler it is assumed there will be a single output.
If you run webpack separately and give amok the output files instead it will map and watch them directly.

@caspervonb thanks for the prompt answer. Will we be able to take advantage of webpack-dev-server and amok somehow? For example link amok directly to the running webpack-dev-server?

Plan on adding a url as an entry point (#16), which would get the files to watch via the page instead of passing them in manually.
But for now, it's not super clean at the moment, but just let amok spawn it's server and totally ignore it.
Should work since the server has no active part in the debugging session.

+1 for adding Browserify documention..

The gist of it, just build as normal and let amok act as a file watcher/script updater.


Improved Basic Tutorial Requested

On https://www.scala-js.org/doc/tutorial/basic/ after

First create a new folder where your sbt project will go.

It would be more helpful if there were an example of what sbt command to run. For example, I tried
sbt new

which started with

eric.kolotyluk@Y2RCV7009N makemake % sbt new
copying runtime jar...
[info] [launcher] getting org.scala-sbt sbt 1.6.2  (this may take some time)...
[info] [launcher] getting Scala 2.12.15 (for sbt)...
[info] welcome to sbt 1.6.2 (Oracle Corporation Java 17.0.1)

However, this does not do anything, the project directory is empty. From https://docs.scala-lang.org/getting-started/sbt-track/getting-started-with-scala-and-sbt-on-the-command-line.html the example is
sbt new scala/hello-world.g8

So, my expectation is that for Scala.js the example should be something like
sbt new scalajs/basic-tutorial.g8

as in https://www.scala-sbt.org/1.x/docs/sbt-new-and-Templates.html or https://github.com/vmunier/play-scalajs.g8
Instead, the tutorial just dives into more advanced sbt topics... 🙄

First create a new folder where your sbt project will go.

Oh, that is supposed to mean creating a an empty folder, without sbt:
$ mkdir hello-world

Arguably, we could add that command to the tutorial. But that should be an issue (or a PR) to https://github.com/scala-js/scala-js-website instead of this repo.
About the g8 template, there is already an open issue at #4390.


Add message to set_ownership

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.

[x] Have you successfully run brew tests with your changes locally?

Fixes #4024
This displays the message when set_ownership is run either as part of install or uninstall so that a command that requires sudo doesn't run silently, even if the password has already been supplied.
$ brew cask uninstall wireshark
==> Uninstalling Cask wireshark
==> Running set_ownership for wireshark; your password may be necessary
Password:

$ brew cask install sencha

snip

==> Installing Cask sencha
==> Running installer script 'SenchaCmd-<IP_ADDRESS>-osx.app/Contents/MacOS/JavaAppli
==> 2018-04-07 20:43:11.160 JavaApplicationStub[4555:20437] NEW LAUNCHER
==> The installation directory has been set to /opt/Sencha/Cmd/<IP_ADDRESS>.
==>
==> Extracting files ...
==> Finishing installation ...
==> Running set_ownership for sencha; your password may be necessary
🍺  sencha was successfully installed!

“Running set_ownership process for” is a bit cryptic. How about something more like “Changing ownership os paths required for”?

Updated


Upgrade yq version

Use syntax compatible with latest yq version (4.11.2)
To be used with https://github.com/product-os/ci-images/pull/99
Change-type: patch
Signed-off-by: Stathis Moraitidis<EMAIL_ADDRESS>

LGTM @stathismor

@balena-ci I self-certify!


Fix render() exception when module not yet loaded; pass router props …

…to module
This addresses issues 1 and 2 raised in https://github.com/ReactTraining/react-router/issues/5074 .  It doesn't address issue 3.

Thanks!


(Studio) Fix cases where vulkan devices are available but drivers aren't installed.

https://github.com/nod-ai/SHARK/pull/1953 fixes this.


WADL Genearation

is there way to on generating WADL automatically ?
if not did any one try to make WADL Generator ?

Not that I am aware of. There are packages that integrate with flask to output formats like Swagger, however.
WADL generation is not something I am interested in including in flask-restful.


Issue in exporting normalization file without getting the protein name

Hello Developer,
I am trying to work with the shiny app proteiNorm and it works fine for me but the issue I have encountered during exporting of normalization file is that there is no protein name instead 1, 2, 3,..
I am interested in looking for specific proteins distribution as well after the normalization step.
I am saving the file like presented in the screen shot in the txt file.

I am getting the id column like:

Can you fix or recommend how we can do the same.
Regards,
Devender

The ID's are in the same order as the original input file and can be replaced. We ran into strange id formats from maxQuant and so they were replaced with numbers for the R dataframe to work.
This tool is now incorporated into the newly published "proteoDA" R package. You might try that version until we can update the proteiNorm code here.
Hope this helps.

Oh yeah, due to the filtering parameters selected. Please use the one in proteoDA until I can update this one. Thanks for pointing it out. We had this fixed at one point.


chore(main): release 0.0.3

:robot: I have created a release beep boop
0.0.3 (2024-05-30)
Full Changelog: https://github.com/QuivrHQ/MegaParse/compare/v0.0.2...v0.0.3

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/QuivrHQ/MegaParse/releases/tag/v0.0.3 :sunflower:


rust-analyzer hates try!

rust-analyzer reports a bunch of errors in lsp-types's lib.rs.
Example:
Ok(match try!(u8::deserialize(deserializer)) {
            1 => DiagnosticSeverity::Error,
            2 => DiagnosticSeverity::Warning,
            3 => DiagnosticSeverity::Information,
            4 => DiagnosticSeverity::Hint,
            i => {
                return Err(D::Error::invalid_value(
                    de::Unexpected::Unsigned(i as u64),
                    &"value of 1, 2, 3 or 4",
                ));
            }
        })

So reading up it should accept r#try! in 2018. However this is currently 2015 code and should be treated as such.

Fixed now.


AWS SDK v2 fork

Hey Marc,
we needed this writer with AWS SDK v2 and I was under time pressure so I forked your project to quickly build the library. I am opening an issue if you want to incorporate it back into v2 package perhaps?
https://github.com/lzap/cloudwatchwriter2
Apologies I don't have time to do proper PR at this point. Let me know if you decide to do that and I will happily archive my fork with instructions how to use v2 of your project. Thanks!

The fork contains a fix for missing logs in case of concurrent writing: https://github.com/lzap/cloudwatchwriter2/commit/a109d00e23ef63bf83d60ba37a66b775fc33dc5e


Better protected path redirect

protected routes to be redirect to 404 page instead of /auth when non-authorized users accessing it (except for /)

fixed in d7521d39bd5c5740fea03bd0dc97292fa00039ac


Nice project

I'm building an ERP system and was looking for something exactly like this to add to it. Is there a license on your repo?

I Added the a license you free to use it

Thanks!

Hi Chloe: Are you interested in working on SaasHQ integration? Maybe even just the database.

Im not interested between my job and my side projects i have my hands full
On Sun, Nov 26, 2023 at 1:11 AM SaashqDev @.***> wrote:

Hi Chloe: Are you interested in working on SaasHQ integration? Maybe even
just the database.
—
Reply to this email directly, view it on GitHub
https://github.com/Chloe199719/Employe-Management-Sytem-EMS/issues/5#issuecomment-1826448576,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFYYFWS7DG4E5ISFWTQXAT3YGKCKRAVCNFSM6AAAAAA3WVGMBKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRWGQ2DQNJXGY
.
You are receiving this because you commented.Message ID:
@.***>


feat: APPLICS-466 - Welsh translation - have your say journey 3/6

Describe your changes
https://pins-ds.atlassian.net/browse/APPLICS-466?atlOrigin=eyJpIjoiN2E2NTdiNzY2NWQ0NDJmZTkxZjhjNmFlMTVhMGFhYzUiLCJwIjoiaiJ9
Type of change 🧩

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update
[ ] Other (please explain in the description section above)

Checklist before requesting a review

[x] I have performed a self-review of my own code
[ ] I have double checked this work does not include any hardcoded secrets or passwords
[ ] I have made corresponding changes to the documentation
[ ] I have provided details on how I have tested my code
[ ] I have referenced the ticket number above
[ ] I have provided a description of the ticket
[ ] I have included unit tests to cover any testable code changes

:tada: This PR is included in version 2.27.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.33.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.14.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Update dependency yargs to v17.7.2

This PR contains the following updates:

Package
Type
Update
Change

yargs (source)
dependencies
patch
17.7.1 -> 17.7.2

Release Notes

yargs/yargs
v17.7.2
Compare Source
Bug Fixes

do not crash completion when having negated options (#2322) (7f42848)

Configuration
📅 Schedule: Branch creation - "before 3am on the first day of the month" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Self-Hosted Renovate Bot. Find all logs here.

⚠ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

any of the package files in this branch needs updating, or
the branch becomes conflicted, or
you click the rebase/retry checkbox if found above, or
you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:
File name: package.json
Command failed: make bs build
npm notice
npm notice New patch version of npm available! 9.6.5 -> 9.6.7
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.6.7>
npm notice Run `npm install -g<EMAIL_ADDRESS>to update!
npm notice
Creating a virtualenv for this project...
Pipfile: /tmp/renovate/repos/github/coda/packs-sdk/Pipfile
Using /opt/buildpack/tools/python/3.11.3/bin/python3 (3.11.3) to create virtualenv...
created virtual environment CPython3.11.3.final.0-64 in 394ms
  creator CPython3Posix(dest=/home/ubuntu/.local/share/virtualenvs/packs-sdk-9EXwiP-0, clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/ubuntu/.local/share/virtualenv)
    added seed packages: pip==23.1.2, setuptools==67.7.2, wheel==0.40.0
  activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator

✔ Successfully created virtual environment!
Virtualenv location: /home/ubuntu/.local/share/virtualenvs/packs-sdk-9EXwiP-0
CSpell: Files checked: 292, Issues found: 0 in 0 files

  bundles/thunk_bundle.js  242.7kb

⚡ Done in 32ms

  dist/bundle.js  67.1kb

⚡ Done in 13ms
Compiler option "skipLibCheck" is disabled to properly check generated output
Traceback (most recent call last):
  File "/home/ubuntu/.local/share/virtualenvs/packs-sdk-9EXwiP-0/bin/mkdocs", line 8, in <module>
    sys.exit(cli())
             ^^^^^
  File "/home/ubuntu/.local/share/virtualenvs/packs-sdk-9EXwiP-0/lib/python3.11/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/.local/share/virtualenvs/packs-sdk-9EXwiP-0/lib/python3.11/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/home/ubuntu/.local/share/virtualenvs/packs-sdk-9EXwiP-0/lib/python3.11/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/.local/share/virtualenvs/packs-sdk-9EXwiP-0/lib/python3.11/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/.local/share/virtualenvs/packs-sdk-9EXwiP-0/lib/python3.11/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/.local/share/virtualenvs/packs-sdk-9EXwiP-0/lib/python3.11/site-packages/mkdocs/__main__.py", line 247, in build_command
    cfg = config.load_config(**kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/.local/share/virtualenvs/packs-sdk-9EXwiP-0/lib/python3.11/site-packages/mkdocs/config/base.py", line 363, in load_config
    errors, warnings = cfg.validate()
                       ^^^^^^^^^^^^^^
  File "/home/ubuntu/.local/share/virtualenvs/packs-sdk-9EXwiP-0/lib/python3.11/site-packages/mkdocs/config/base.py", line 228, in validate
    run_failed, run_warnings = self._validate()
                               ^^^^^^^^^^^^^^^^
  File "/home/ubuntu/.local/share/virtualenvs/packs-sdk-9EXwiP-0/lib/python3.11/site-packages/mkdocs/config/base.py", line 186, in _validate
    self[key] = config_option.validate(value)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/.local/share/virtualenvs/packs-sdk-9EXwiP-0/lib/python3.11/site-packages/mkdocs/config/config_options.py", line 148, in validate
    return self.run_validation(value)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/.local/share/virtualenvs/packs-sdk-9EXwiP-0/lib/python3.11/site-packages/mkdocs/config/config_options.py", line 940, in run_validation
    self.load_plugin_with_namespace(name, cfg)
  File "/home/ubuntu/.local/share/virtualenvs/packs-sdk-9EXwiP-0/lib/python3.11/site-packages/mkdocs/config/config_options.py", line 976, in load_plugin_with_namespace
    return (name, self.load_plugin(name, config))
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/.local/share/virtualenvs/packs-sdk-9EXwiP-0/lib/python3.11/site-packages/mkdocs/config/config_options.py", line 994, in load_plugin
    plugin_cls = self.installed_plugins[name].load()
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/buildpack/tools/python/3.11.3/lib/python3.11/importlib/metadata/__init__.py", line 202, in load
    module = import_module(match.group('module'))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/buildpack/tools/python/3.11.3/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/ubuntu/.local/share/virtualenvs/packs-sdk-9EXwiP-0/lib/python3.11/site-packages/material/plugins/social/plugin.py", line 42, in <module>
    from cairosvg import svg2png
  File "/home/ubuntu/.local/share/virtualenvs/packs-sdk-9EXwiP-0/lib/python3.11/site-packages/cairosvg/__init__.py", line 26, in <module>
    from . import surface  # noqa isort:skip
    ^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/.local/share/virtualenvs/packs-sdk-9EXwiP-0/lib/python3.11/site-packages/cairosvg/surface.py", line 9, in <module>
    import cairocffi as cairo
  File "/home/ubuntu/.local/share/virtualenvs/packs-sdk-9EXwiP-0/lib/python3.11/site-packages/cairocffi/__init__.py", line 47, in <module>
    cairo = dlopen(
            ^^^^^^^
  File "/home/ubuntu/.local/share/virtualenvs/packs-sdk-9EXwiP-0/lib/python3.11/site-packages/cairocffi/__init__.py", line 44, in dlopen
    raise OSError(error_message)  # pragma: no cover
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: no library called "cairo-2" was found
no library called "cairo" was found
no library called "libcairo-2" was found
cannot load library 'libcairo.so.2': libcairo.so.2: cannot open shared object file: No such file or directory
cannot load library 'libcairo.2.dylib': libcairo.2.dylib: cannot open shared object file: No such file or directory
cannot load library 'libcairo-2.dll': libcairo-2.dll: cannot open shared object file: No such file or directory
make: *** [Makefile:241: build-mkdocs] Error 1


Sum Earnings

Challenge
We have a list in string type separated by commas that represented buy or sell activity. Positive value for selling and negative value for buying activity.
For example, in the following string, this user sold something for $7 on the 2nd day, and something for $2 on the 4th day, and then bought something for $12 on the 5th day, and so on.
0,7,0,2,-12,3,0,2
This user's highest earnings streak is $5, which started on the 6th day and ended on the 8th day. The streak does not start before the 6th day because the user spent $12 on the 5th and broke earlier streak on $9.
test data
input:
1,3,-2,1,2
output:
5
input:
0,7,0,2,-12,3,0,2
output:
5
starter code
def sum_earnings(input):

notes

If the user did not do anything (i.e. 0,0,0,0,0) or only bought things without selling anything (i.e. -4,-3,-7,-1), then it should output with 0.
Your program should be able to handle a comma-separated string consisting of any number of values.
Your program should also be able to handle invalid input. If an invalid input is given, it should output 0. some examples of invalid input:
qwerty
,,3,,4
1,2,v,b,3

@rosdyana hey thanks for the new challenge! i think you forgot the goal / challenge of the problem. would this be correct?

your function should accept a comma-separated string input of earning/spending activity and return the sum of earnings as a single int value

@the-vampiire yeah, you're correct :+1:

In the test data, can you explain why the streak is 5?
input:
1,3,-2,1,2
output:
5

I think it should be 4 starting on the 1st day and ending on the 2nd day.

hi @mikelane , it's 5 because the spending (-2) is less than earning (1+3), he still have $2 , so it's not broke the rules.
the second example
0,7,0,2,-12,3,0,2
after got $9 from earning, he spent $12, and the balance become minus, so it's broke the rules and need start counting the highest earning from 6th till 8th days


Add io.js support

fixes #563
Added a Makefile and a couple of devdeps to form a functional test that can be used to test compatibility on both Node and io.js, also in the form of a Docker image so you can run the tests on Linux without having install both runtimes locally.

General comment: this seems like a departure from being "node-compatible". Why is changing the build file names so necessary?

I proposed iojs/io.js#491 to improve the tests for whether node-gyp is being run against iojs or node.

Just so I'm clear, changing the build filenames is because io.js is shipping as a binary named "iojs" and only symlinked to "node", right?
It seems like, rather than key on the version or rely on a process.versions.iojs, we might want to add some kind of API in iojs for "What is the build filename target?", which we can also add to Node.js, or any other forks/distros in the future.
That might also actually bring peace to any remaining debiants who still call it "/usr/bin/nodejs".

@isaacs Possibly something like this?
path.basename(fs.realpathSync(process.execPath))

In the very short term, it seems like a version number switch is the only option before us, and in the medium term, adding a one-off flag for iojs is probably easier than getting something into Node, so +1 from me for pragmatism on both counts, as long as we don't lose sight of cleaner solutions to the core meta-problem.
Tests and everything else about this pull req are awesome.

@TooTallNate Actually you don't even need the realpath, since execPath is already realpathed.
$ which node
/usr/local/bin/node

$ node
> process.execPath
'/usr/local/bin/iojs'

execPath is problematic on Windows, we currently have a link but a stub node.exe was planned; I don't know if that's still on the table, @piscisaureus

re build filenames - we're not going to get people to download node-v1.0.2.tar.gz to get io.js, it's a different product and is Node-compatible (ish) but there's a limit to what we can do. Remember that Joyent were the ones that forced us to change from "node-forward" to io.js because of tradmark threats so we need some differentiation.

If process.execPath isn't an option, then I'd strongly prefer a more full-featured process.release option which could answer these questions explicitly, rather than inferring from the version number.

process.release:
{
  source: "https://iojs.org/dist/v1.0.2/iojs-v1.0.2.tar.gz"
  headers: "https://iojs.org/dist/v1.0.2/iojs-v1.0.2-headers.tar.gz" # fictional but easy
  lib: 'https://iojs.org/dist/v1.0.2/win-x64/iojs.lib' # only on Windows
}

Then node-gyp could even support nightlies.

Very nice @rvagg :)

execPath is problematic on Windows, we currently have a link but a stub node.exe was planned; I don't know if that's still on the table, @piscisaureus

The stub trick I wanted to use turned out to be a bit problematic (issues with the stack protection cookie; ask me on irc for details.) The hard link solution we have now seems to work fine, so I want to stick to that.

{
source: "https://iojs.org/dist/v1.0.2/iojs-v1.0.2.tar.gz"
headers: "https://iojs.org/dist/v1.0.2/iojs-v1.0.2-headers.tar.gz" # fictional but easy
lib: "https://iojs.org/dist/v1.0.2/win-x64/iojs.lib" # only on Windows
}

That seems like a nice solution.
I'd still like to ship the headers plus lib file in the installer so no download would be necessary at all.

headers are shipped with all distros but Windows currently, they have been from somewhere in Node 0.10, but nobody has put in the work to make node-gyp aware of them.
However, even if we do use installed headers there's no guarantee that they are actually going to be available on the system (plain binary install, stripped-down installer of some kind, manual install), so there needs to be a facility to fetch the headers anyway.

➜  thmclrx git:(master) node --help
Usage: node [options] [ -e script | script.js ] [arguments]
       node debug script.js [arguments]

Options:
  -v, --version        print node's version
  -e, --eval script    evaluate script
  -p, --print          evaluate script and print result
  -i, --interactive    always enter the REPL even if stdin
                       does not appear to be a terminal
  --no-deprecation     silence deprecation warnings
  --throw-deprecation  throw an exception anytime a deprecated function is used
  --trace-deprecation  show stack traces on deprecations
  --v8-options         print v8 command line options
  --max-stack-size=val set max v8 stack size (bytes)

Environment variables:
NODE_PATH              ':'-separated list of directories
                       prefixed to the module search path.
NODE_MODULE_CONTEXTS   Set to 1 to load modules in their own
                       global contexts.
NODE_DISABLE_COLORS    Set to 1 to disable colors in the REPL

Documentation can be found at https://iojs.org/

here you can see iojs.

WIP but I've pushed my latest. Introduces a getRelease() that inspects process.release and does some other magic in lieu of that not being available.
The Windows bits haven't been done yet and I'm not sure process.release will be the final way to get this information either.

Any progress?

yes, I spent a whole afternoon shaving yak to get my Windows machine working properly to compile and test for this .. so there's that.
I'm just working on some io.js release automation stuff so I can hand off some release responsibility but other than that this is top of my list and I am chipping away at it. It'd be nice to push process.release (or similar) into 1.1.0 to support this but we'll see what timing ends up being like.

This causes updating NPM when using io.js to break when trying to use node-gyp, since the non-included version of npm still calls out to nodejs.org to download the tarball.
Would be great if npm install -g npm works correctly on io.js without having to do some npm link trickery.

:+1: I want this so traceview can support both iojs and node 0.8 on TravisCI, which requires a npm install -g npm to get around many caret dependencies leaking into to various packages and breaking node 0.8 with old npm.

I want this so traceview can support both iojs and node 0.8 on TravisCI, which requires a npm install -g npm

@Qard You can do it conditionally in your .travis.yml:
before_install:
  - if [ "`node --version | cut -f2- -dv | cut -f1-2 -d.`" == "0.8" ]; then npm -g install npm; fi

True, I simplified it a bit though. Don't need all those cuts in there. :)

Would really love to see this so projects don't have to depend in pangyp as well as node-gyp to support both iojs as well as nodejs. Has slowed down my switch to iojs quite a bit.

@rvagg, for io.js process name detection, would it make sense to use execPath as follow:
node -p 'process.execPath.split(/[\\/]+/).pop()'
# returns node.exe on Windows

iojs -p 'process.execPath.split(/[\\/]+/).pop()'
# returns iojs.exe on Windows

Alternatively, we can shell out 'tasklist /FI "PID eq' + process.pid + '" /NH /FO CSV' (returns comma-separated value) and read the first chunk to get iojs.exe or node.exe.

What's the status on this? It's hard to put together just from the comments and all the references from other GitHub issues.

@mikeal I think https://github.com/iojs/io.js/pull/493 is the major hold-up at this point.

I think https://github.com/XadillaX/gyp-io-service will temporarily resolve this problem before the official version of node-gyp is published.
You just need to start this service and you can run node-gyp rebuild under io.js.

:+1:

@XadillaX thanks https://github.com/XadillaX/gyp-io-service works for me.

I temporary use pangyp to build io.js and nodejs cpp module now.
Need<EMAIL_ADDRESS>$ npm i -g pangyp
$ npm --node-gyp=$your-npm-global-dir/pangyp/bin/node-gyp.js

@fengmk2 出手 PR 啊, 哈哈

@leecade siwujidan yong zhongwen zhende haome?

Curious question... Why is the node native module system requiring a CRT//DllMain type initialization?
Couldn't NODE_MODULE macro be changed to define a stub "#modulename#_register" that returns the initialization function (rather than trying to run the node_module_register from within #modulename#register" that then gets ran and passed the options exports?
The current method relies on a very smart dynamic link loader thats transitive (and OS X is very much so) but with Windows and statically linking the node.lib its creating a lot of sticky situations where the proc addresses are being hard coded for, i'm not sure why.
Granted, i may not fully understand this but it seems like theres a simple non-breaking change that could be made if both node.js and io.js agreed to mutually change the definition of NODE_MODULE macro.
Or just have the NODE_MODULE macro kick out symbols for the old way and the new way, and node.js can continue doing whatever it wants, and others like io.js or tint can successfully register modules on windows.
Thoughts?

Why this pr isn't merged so far?

does pangyp solution work for io.js@3?

@deepsweet yes

new impl, using process.release and taking convergence into consideration https://github.com/nodejs/node-gyp/pull/711


cmd/compile: inline functions with only an error wrapper

In a number of cases, an input argument only escapes through the error value. Examples of this:

net.UDPConn.WriteToUDP, the addr input only escapes when constructing an error
strconv.ParseXXX, the input string s only escapes when constructing an error

In order to avoid escaping the input, one possibility is to copy the input before placing it in an error. This has the unfortunate downside of always allocating in the error case in situations when the input would have already been treated as being escaped.
Another way to work around this is to take advantage of "function outlining", where the fact that the input escapes to the output is in an inlineable function so that the compiler can better prove whether to allocate depending on how the function is used by the caller.
Example attempt at function outlining in strconv:
func ParseFloat(s string, bitSize int) (float64, error) {
     n, err := parseFloat(s, bitSize)
     if err != nil {
          err = &NumError{"ParseFloat", s, err}
     }
     return n, err
}
func parseFloat(s string, bitSize int) (float64, error)

Unfortunately ParseFloat is not inlineable since it exceeds the inline budget. However, if it were, then there are situations where we can avoid the NumError allocation and treating s as escaping. For example:
n, err := strconv.ParseFloat(s, 64)
ok := err == nil
return n, ok

In this snippet, the caller doesn't even care about the error value other than the fact that it was non-nil. If ParseFloat was inlineable, the compiler can prove that NumError does not escape and avoid heap allocating it. In fact, the compiler can (in theory) go a step further and realize that the error wrapping is dead code and eliminate it entirely (all we cared about was whether it was nil).
It would be nice if functions of the following pattern could be inlinable:
func Foo(...in) (...out, error) {
    out..., err := foo(in...)
    if err != nil {
        err = ... // wrap the error somehow
    }
    return out..., err
}

I don't know if this means increasing the inline budget or matching on such code patterns.
\cc @bradfitz @josharian @martisch @FiloSottile

Yes please.
In practice I suspect the easiest way to accomplish immediately this is to do pattern-matching and increase the budget on match.

will result in escape analysis changes

Not just escape analysis changes, but also significant dead code elimination 😃

Yep. One question is about making inlining decisions per-function vs per call-site. The latter can get more expensive more quickly, but is more powerful.
It occurs to me that potential escape analysis changes might be available by comparing the escape analysis of the trampoline function and the called function, when they have the same signature. Plausible, @mdempsky? I guess we have a phase ordering problem, but escape analysis is cheap and high impact, so maybe worth doing twice?
The dead code removal has to be be per-callsite. But if we are doing purely local, brittle AST-based heuristics, like "err != nil", maybe that'd be cheap enough.

cc also @CAFxX for lock inlining

I think this and other cases like #48195 boil down to the question if we want to add a new inline trigger that gets a function and makes analysis like:

escape with and without inlining
pattern (e.g. is it just a dispatch function with a switch or an if that only ever triggers one of the cases)
cost of code blocks covered by branches
...

paired with a more tuned cost model of ast nodes and patterns.
Then we could save some extra information like: If this argument is constant at the calling site then inline. This e.g. should also trigger for using strings.Index to directly call strings.IndexByte when the Index is a constant string of length 1.
Unless there is some near time direction to support feedback driven optimization as a first class citizen I would say lets go for it if someone can commit todo the work. We should however invest a bit in making the cost and trigger model easy to configure and verify. e.g. have test similar to asm tests that check some code samples are still inlined as wanted. I would not go so far as having a per ARCH cost model yet but I think the current cost model of ast nodes could be improved to assign lesser costs on patterns of comparisons of if statements.


[BEAM-9742] Add Configurable FluentBackoff to JdbcIO Write

Add Configurable FluentBackoff to JdbcIO Write
Jira ticket

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
Post-Commit Tests Status (on master branch)

Lang
SDK
Apex
Dataflow
Flink
Gearpump
Samza
Spark

Go

---
---

---
---

Java

Python

---

---
---

XLang
---
---
---

---
---

Pre-Commit Tests Status (on master branch)

---
Java
Python
Go
Website

Non-portable

Portable
---

---
---

See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.

@aromanenko-dev @iemejia @lukecwik

@lukecwik @aromanenko-dev @jfarr @timrobertson100 Let me know what you guys think needs to be done.
Seems like people are ok with making FluentBackOff public?

Well, I didn't see any principal "against" to make FluentBackoff public but I'm not sure that it will be moved to another package or util will become public soon. So for now, I'd rather keep the same strategy as we did for other IOs by creating a custom RetryConfiguration for certain IO.
@lukecwik wdyt?

That makes sense to me. We can always expose it in the future and deprecate
existing IO specific versions.
On Thu, May 7, 2020 at 9:12 AM Alexey Romanenko<EMAIL_ADDRESS>wrote:

Well, I didn't see any principal "against" to make FluentBackoff public
but I'm not sure that it will be moved to another package or util will
become public soon. So for now, I'd rather keep the same strategy as we did
for other IOs by creating a custom RetryConfiguration for certain IO.
@lukecwik https://github.com/lukecwik wdyt?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/apache/beam/pull/11396#issuecomment-625351289, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ACM4V3BEC7AEJ5AVMDDZ52LRQLMXRANCNFSM4MF4BJ7A
.

Well, I didn't see any principal "against" to make FluentBackoff public but I'm not sure that it will be moved to another package or util will become public soon. So for now, I'd rather keep the same strategy as we did for other IOs by creating a custom RetryConfiguration for certain IO.
@lukecwik wdyt?

That makes sense to me. We can always expose it in the future and deprecate existing IO specific versions.

Hi, Cham requested that I take a look but I'm overloaded. Will attempt to look next week

@udim no problem, I can take over of this PR

Run Java PreCommit

Hi @Akshay-Iyangar, kind ping regarding this PR.

@aromanenko-dev - Sorry for a little busy, will make the changes today.

reopen the pr

@aromanenko-dev @lukecwik  could you'll please have a look? Thanks

retest this please

retest this please

@aromanenko-dev - Addressed the feedback !!

retest this please

retest this please

retest this please

retest this please

retest this please

retest this please

Run Java PreCommit

Run Java PreCommit

Run Java PreCommit

Run Java PreCommit

Run Java PreCommit

Run Java PreCommit

Run Java PreCommit

Run Java PreCommit

Run Java PreCommit


store interface to support io.Closer

Previously it accepted context.Context for the validity of the
store, but that does not fit well with the mixer's calling
structure. Also context's document says a struct shouldn't store
the context as a field.
Considering the situation, I think io.Closer would be better.

/assign @geeknoid

@ozevren is this good to go now ? if so please / l g t m

@jmuk: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/e2e-bookInfoTests.sh
488d00d0ae8bb7059b9d4746a4959f09035c4de9
link
/test e2e-bookInfo

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@jmuk: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/e2e-bookInfoTests.sh
488d00d0ae8bb7059b9d4746a4959f09035c4de9
link
/test e2e-bookInfo

prow/e2e-simpleTests.sh
488d00d0ae8bb7059b9d4746a4959f09035c4de9
link
/test e2e-simple

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test e2e-simple

@jmuk: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/e2e-bookInfoTests.sh
488d00d0ae8bb7059b9d4746a4959f09035c4de9
link
/test e2e-bookInfo

prow/e2e-simpleTests.sh
488d00d0ae8bb7059b9d4746a4959f09035c4de9
link
/test e2e-simple

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

PTAL; also updated the PR title / comment.
Note that the failures seem to be unrelated side effects of #3529, nothing by this PR.

/test e2e-simple
/test e2e-bookInfo
We renamed e2e-smoke to e2e-bookInfo and added e2e-simple
ref: https://github.com/istio/istio/pull/3529

/lgtm


Test case execution -Resource manager

Issue/Feature Description:
Execute testcases and update test sheet
Why this issue to fixed / feature is needed(give scenarios or use cases):
NA
How to reproduce, in case of a bug:
Other Notes /  Environment Information: (Please give the env information, log link or any useful information for this issue)

First rounf of execution is done and updated testcase sheet