Dissolved /enterprise/ dir, made TOC titles match top-of-page title

The four moved .md files/pages, rendered, in order of existing TOC:

https://review.docs.microsoft.com/en-us/microsoft-edge/extensions-chromium/developer-guide/declare-permissions?branch=pr-en-us-1985 - resided in /enterprise/ dir but was presented in Developer Guide TOC bucket & remains there.

https://review.docs.microsoft.com/en-us/microsoft-edge/extensions-chromium/developer-guide/match-patterns?branch=pr-en-us-1985 - moved to Developer Guide TOC bucket, OK?

These two pages moved from /enterprise/ dir to /publish/ dir, and moved from Enterprise TOC bucket (which is now gone) to Publish TOC bucket next to other Publish articles, OK?

https://review.docs.microsoft.com/en-us/microsoft-edge/extensions-chromium/publish/hosting-and-updating?branch=pr-en-us-1985
https://review.docs.microsoft.com/en-us/microsoft-edge/extensions-chromium/publish/auto-update?branch=pr-en-us-1985

The redirects to test:

https://review.docs.microsoft.com/en-us/microsoft-edge/extensions-chromium/enterprise/declare-permissions?branch=pr-en-us-1985 - passed.
https://review.docs.microsoft.com/en-us/microsoft-edge/extensions-chromium/enterprise/match-patterns?branch=pr-en-us-1985 - passed.
https://review.docs.microsoft.com/en-us/microsoft-edge/extensions-chromium/enterprise/hosting-and-updating?branch=pr-en-us-1985 - passed.
https://review.docs.microsoft.com/en-us/microsoft-edge/extensions-chromium/enterprise/auto-update?branch=pr-en-us-1985 - passed.

Docs Build status updates of commit 8e7ae31:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.redirection.json
:white_check_mark:Succeeded

microsoft-edge/extensions-chromium/developer-guide/declare-permissions.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/developer-guide/match-patterns.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/developer-guide/migrate-your-extension-from-manifest-v2-to-v3.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/getting-started/manifest-format.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/getting-started/part1-simple-extension.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/getting-started/part2-content-scripts.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/publish/api/using-addons-api.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/publish/auto-update.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/publish/create-dev-account.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/publish/github.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/publish/hosting-and-updating.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/store-policies/csp.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/whats-new/released-features.md
:white_check_mark:Succeeded
View

microsoft-edge/toc.yml
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit c0a41b0:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.redirection.json
:white_check_mark:Succeeded

microsoft-edge/extensions-chromium/developer-guide/declare-permissions.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/developer-guide/match-patterns.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/developer-guide/migrate-your-extension-from-manifest-v2-to-v3.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/getting-started/manifest-format.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/getting-started/part1-simple-extension.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/getting-started/part2-content-scripts.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/publish/api/using-addons-api.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/publish/auto-update.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/publish/create-dev-account.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/publish/github.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/publish/hosting-and-updating.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/store-policies/csp.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/whats-new/released-features.md
:white_check_mark:Succeeded
View

microsoft-edge/toc.yml
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit 7771c5d:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.redirection.json
:white_check_mark:Succeeded

microsoft-edge/extensions-chromium/developer-guide/declare-permissions.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/developer-guide/match-patterns.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/developer-guide/migrate-your-extension-from-manifest-v2-to-v3.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/getting-started/manifest-format.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/getting-started/part1-simple-extension.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/getting-started/part2-content-scripts.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/publish/api/using-addons-api.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/publish/auto-update.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/publish/create-dev-account.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/publish/github.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/publish/hosting-and-updating.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/publish/verify-microsoft-edge-program.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/store-policies/csp.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/whats-new/released-features.md
:white_check_mark:Succeeded
View

microsoft-edge/toc.yml
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit 127e532:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.redirection.json
:white_check_mark:Succeeded

microsoft-edge/extensions-chromium/developer-guide/declare-permissions.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/developer-guide/match-patterns.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/developer-guide/migrate-your-extension-from-manifest-v2-to-v3.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/getting-started/manifest-format.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/getting-started/part1-simple-extension.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/getting-started/part2-content-scripts.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/publish/api/using-addons-api.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/publish/auto-update.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/publish/create-dev-account.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/publish/github.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/publish/hosting-and-updating.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/publish/publish-extension.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/publish/update-extension.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/publish/verify-microsoft-edge-program.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/store-policies/csp.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/whats-new/released-features.md
:white_check_mark:Succeeded
View

microsoft-edge/toc.yml
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Looks good to me.
@mikehoffms what about the conflicting files?

Docs Build status updates of commit 8e94397:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.redirection.json
:white_check_mark:Succeeded

microsoft-edge/extensions-chromium/developer-guide/declare-permissions.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/developer-guide/match-patterns.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/developer-guide/migrate-your-extension-from-manifest-v2-to-v3.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/getting-started/manifest-format.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/getting-started/part1-simple-extension.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/getting-started/part2-content-scripts.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/publish/api/using-addons-api.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/publish/auto-update.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/publish/create-dev-account.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/publish/github.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/publish/hosting-and-updating.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/publish/publish-extension.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/publish/update-extension.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/publish/verify-microsoft-edge-program.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/store-policies/csp.md
:white_check_mark:Succeeded
View

microsoft-edge/extensions-chromium/whats-new/released-features.md
:white_check_mark:Succeeded
View

microsoft-edge/toc.yml
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Trapping Rain Water

Description: Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after raining.
Example:
Input: height = [0,1,0,2,1,0,1,3,2,1,2,1]
Output: 6

Please assign me .

@Saloni6111 Can you assign me this issue ?

PR is already merged for this


Adobe Target v2 Extension v0.19.2 release notes

updated release notes for Adobe Target v2 Extension v0.19.2

Hi @jasonwaters and @hbhandal80 - just a suggestion - can we please use the corporate GitHub repository for any documentation updates submitted by internal Adobe employees? That would simplify and expedite the documentation update process. Thanks!


Enable snowflake-connector-python debug logging with environment variables

Describe the feature
dbt should support an environment variable to enable debug logging for the snowflake-connector-python library. This will help dbt users track down issues that arise like:
Apache Arrow format is not supported

Snowflake support requires these logs to diagnose and resolve issues that occur using their platform.
Describe alternatives you've considered
We could enable these logs by default. snowflake-connector-python debug logs are pretty verbose though, so it might be wise to restrict this logging behind an env var.
Additional context
Relevant to intermittent errors like The result set in Apache Arrow format is not supported for the platform.
Who will this benefit?
Snowflake users; snowflake support

Closed by #2635


Introduce OrdinalReturnTypeInferenceV2 to infer RexCall's return type

What changes are proposed in this pull request, and why are they necessary?

Given a SQL definition - SELECT udf(StructCol) AS modCol FROM foo
Prior to this PR, Coral-Schema generates a nullable schema for modCol with top level and inner fields set to nullable even when StructCol is non-nullable. Since udf's return type nullability inference is unavailable to RelToAvroSchemaConverter, this shuttle assumes the schema after applying th UDF is nullable.
This PR introduces a new SqlReturnTypeInference - OrdinalReturnTypeInferenceV2which has been leveraged in RelToAvroSchemaConverter to derive udf - cast_nullability's return type schema (and its nullability info) more accurately. This inference strategy has been applied when the SqlCall's return type is same as one of the operands type AND that operand refers to a field from the input schema.
How was this patch tested?

./gradlew build
added new UTs.

@ljfgem

Thanks @aastha25 for this PR! Could you kick off a regression test for it for safety?
This is a new code path and only targets the UDF schema generated for the newly defined SqlReturnTypeInference.

And have we tested on the target view? Could you add the test results in the testing done?
The target view is unavailable. Hence the UDF has been tested within the realms of Coral.

@aastha25 Thanks for confirmation.
Could we collaborate with the user to produce a test view and ensure this PR works for it on Spark shell?

@aastha25 Thanks for confirmation. Could we collaborate with the user to produce a test view and ensure this PR works for it on Spark shell?

unfortunately the view will be created & tested by the user next week, after Coral & Spark enable support for it. In case of any issues, we'll need to work on a potential follow up PR.


Duplicate error/warning as message while custom command output processing.

While running PyLint as Custom Command on my project I have duplicates of each error/warning as a message with the same text and line number.

Regexes for PyLint in Microsoft.PythonTools.targets file are described as
<PyLintErrorRegex>
  <![CDATA[^(?<filename>.+?)\((?<line>\d+),(?<column>\d+)\): (?<level>error) (?<code>.+?): (?<message>.+?)$]]>
</PyLintErrorRegex>
<PyLintWarningRegex>
  <![CDATA[^(?<filename>.+?)\((?<line>\d+),(?<column>\d+)\): (?<level>warning) (?<code>.+?): (?<message>.+?)$]]>
</PyLintWarningRegex>
<PyLintMessageRegex>
  <![CDATA[^(?<filename>.+?)\((?<line>\d+),(?<column>\d+)\): (?<level>[^ ]+) (?<code>.+?): (?<message>.+?)$]]>
</PyLintMessageRegex>

So if PyLintErrorRegex match for output line than PyLintMessageRegex will match too.
In the method CustomCommand::WriteLine the ErrorTask object is created for each matched Regexp. It would be more correct to create it for the first match only and exit from for loop.

Thank you for the detailed report


Give a link to online service?

Hello! I've made a library and a webservice to convert HTML to HyperScript-Helpers.
Webservice is hosted here: http://html-to-hyperscript.paqmind.com/
Manual conversions of HTML to HS turned out to be very boresome.
I'd like to leave a link to it in README. A bit of self-marketing, but I think it may be useful for other people. Would you accept such PR?

Sure, seems like a useful tool.


how to use Inline mode?

hello Mike!
thank you for such a good free project!
All works like a charm, but can you please instruct me how to use Inline mode with predefined roles?
I activated it in BotFather and when i start messege with tagging bot by its nickname like this @Kourva - telegram just adds text string with suggestion "Ask me", and when I type something - nothing happens.
can you please write a little guide in github README.md how to use Inline Roles with some examples.
Thank you!

Hi @chelaxian , sorry for late reply. I'm glad you liked it.
You need to write prompt after username to get roles (e.g: @chelaxian prompt). if you don't like prompt, you can edit main.py and change inline handler command in line 191 and add yours like role...
191  @bot.inline_handler(lambda query: query.query == "role")


Implement the creation of frame power histogram

Implement a script which creates a histogram for frame power.
Using this histogram, it is possible to define power-threshold in speaker-dependent YAML file

Coverage remained the same at 88.633% when pulling 3af5d9cc2a6eff388205ad09c1ff4cd1641615c3 on npow_histogram into 1216c5f9211f12de59b06c43db1be9d09b738f8d on master.


some images are imported as childImageSharp, some are not

I am working on a project gatsby-strapi.
I updated strapi with npm update and it broke my project (because you actually have to migrate).
In order to solve this, I created a new strapi, where I recreated all the content types, and I got the data from the database that I already had.
Except, since then, my gatsby project breaks, because now all the images for my blog posts are not imported as childImageSharp (which was the case before), and I only have url :

On the other side, I have other categories for which I CAN import the childImageSharp:

And all this is very,very ironical because the reason I updated in the first place was that I wasn't able to import the svgs correctly for these pathologies!
I tried to create a new category, articles, but I have the exact same problem:

Is there any solution for this?  I will anyway try to go back to the last git commit that worked, but I think it's just such a pity :(
Thank you in advance for your help
My system:
Node.js version: v12.18.3
NPM version: 6.14.8
Strapi version: 3.2.5
Database: mongoDB (Atlas)
Operating system: Windows10

Did you find any solution for that?

I got same issue - there is solution: https://github.com/strapi/gatsby-source-strapi/issues/98#issuecomment-582492769

I got same issue - there is solution: https://github.com/strapi/gatsby-source-strapi/issues/98#issuecomment-582492769

I have the same problem with components in single files.
While the solution in #98 works for one component, I can't
add resolvers for every component.. There are far too many.
If I query the images through allImageSharp or allFile, I can get the imageSharp Nodes.
The "original name" of the images are pretty cryptic though, i.e. "1c2c1b54482eea1a21f1e3e5337d5751.png"
And I'd like to query through the component.
Another workaround that seems to be working would be to query upload/files from Strapi, as then I'd have only
one directory, meaning only one resolver.
Any other solutions how to get imageSharp nodes on images sourced from strapi?

To explain my problem better:
 strapiFactFile {
    singleMediaField {
       childImageSharp {
        id //works
      }
    }
    aComponent {
      SingleMediaFieldTwo {
        id //works
        childrenImageSharp //error
      }
    }
  }

Is this a problem with the plugin or on my side?

I'm not able to fix this, but perhaps this might help:

With the plugin installed through npm, images in components are of type "Strapi[...]". You can't query the local file.
Images outside of components are of type "File". You can query childImageSharp here.

Now I replaced the package files with my own build (I changed nothing). Then, it looks different:

Images outside of components are of type "Strapi[..][FieldName] and DO have a property "localFile" through which you can access imageSharp
Images inside of components behave exactly the same.

It seems there is a problem with the packing of the package (?). Unfortunately, I've no idea about that or how to even get the processed files that I find in node_modules. The build command of this package only copies them to /dist.
I'll probably use a fork to fix this, otherwise, I'll update the package and it'll stop working again...

Hello, we're aware of this issue, but let's keep discussing it on #98 instead


Prepare release 4.0.5

Summary of the changes / Why this improves CrateDB
Checklist

[ ] User relevant changes are recorded in CHANGES.txt
[ ] Touched code is covered by tests
[ ] Documentation has been updated if necessary
[ ] CLA is signed
[ ] This does not contain breaking changes, or if it does:

It is released within a major release
It is recorded in CHANGES.txt
It was marked as deprecated in an earlier release if possible
You've thought about the consequences and other components are adapted
(E.g. AdminUI)

also, i think you have to adjust https://github.com/crate/crate/blob/master/es/es-server/src/main/java/org/elasticsearch/Version.java


Add zero-mean weight constraint

I needed this constraint for my own application and thought it can be useful for others.

When treating audio signals directly from the waveform, with Conv1D for example, we can enforce a zero-mean constraint on each filter by passing kernel_constraint=ZeroMean(axis=0). In this way we get closer to a filterbank.
Similarly, it can be applied with Conv2D using kernel_constraint=ZeroMean(axis=[0,1]) (if data_format="channels_last") to zero-mean each spatial filter (depth not included).

I think it's a pretty general constraint and I'm sure their are other useful uses which I didn't think of.

Thanks for the PR. However, this is trivial for users to implement for themselves, and it would not be broadly useful. We will not make it part of the Keras API.

No problem, indeed, this is trivial.


proposal: builtin/new: giving new the ability to call init when creating custom types

In most cases, we now have users creating a user-defined type in the following way.
You can see that the person who defined the type didn't want the value to be externally modified.
But in many cases, the user may create the type in the wrong way, as in the case of //wrong
and new is used very, very rarely in the creation of user-defined types.
type NewStruct struct {
	value *string
}

func (s *NewStruct) GetValue() *string {
	return s.value
}

func New() *NewStruct {
	e := "example"
	return &NewStruct{value: &e}
}

// main()
func main() {
	//right
	s := New()
	s.GetValue()
	//wrong
	s := &NewStruct{}
	s.GetValue()
}

Based on the above, I think we should enhance the functionality of new to make it true to its name.
Just as importing a package executes init, I think that when you create a struct, you should also execute the corresponding init method (if any).
It gives the struct the correct way to initialize, and allows the developer to correctly initialize some non-public values.
It also saves the developer from having to write a New function (which would become unnecessary).
It looks like this

type NewStruct2 struct {
	value *string
}

func (s *NewStruct2) init() {
	e := "example"
	s.value = &e
}

func (s *NewStruct2) GetValue() *string {
	return s.value
}

func main() {
	s := new(NewStruct)  // new will call method `init` when create NewStruct
	s.GetValue()
}

This allows any user to use new to create types correctly.
and it makes the behavior of go more consistent...
Unreasonable questions like the following can also be answered:
Why does import execute init but not call init anywhere else, shouldn't init be called for all initializations?

2023/09/05 Add
I envision that he should work correctly like import->init().
When I create a type using new(), it try to call the method init().
The init is an internal function, so it takes care of things that only the creator wants to have to do when the function is initialized.

For language change proposals, please fill out the template at https://go.googlesource.com/proposal/+/refs/heads/master/go2-language-changes.md .
When you are done, please reply to the issue with @gopherbot please remove label WaitingForInfo.
Thanks!

see previously #28939

Hi @godcong ,
I think the
Options pattern gives better control and flexibility than constructors.
Plus, there is no way to pass custom args in new .

Note that it is fundamentally impossible to prevent a user from creating a zero value of your type. For example, you can write
var x T

s := make([]T, 1)
x := s[0]

m := map[bool]T{}
x, _ := m[true]

ch := make(chan T)
close(ch)
x, _ := <-ch

var s []T
for cap(s) == len(s) {
    s = append(s, *new(T))
}
x := s[:cap(s)][cap(s)-1]

or any number of other ways. The property of any Go type having a zero value - and that zero value being represented entirely by 0 bits in memory - is a deliberate choice, deeply ingrained and assumed in the language. It's relied on for efficiency in a number of places as well (the examples above demonstrate how make an append make that assumption to be efficient).
I'll also note that while NewT can take arbitrary arguments, your init function can't (and it can't be made to do that, given that e.g. append most definitely can't take any constructor arguments). That means that we'd still have an unfortunate asymmetry where some types - even without a zero value - can be initialized using new, while others can't.
I really don't see this happening, to be honest.

Proposal Title
Automatic Invocation of User-Defined  init  Method when Using  new
Summary
Automatically invoke the  init  method of a user-defined type when creating an instance using the  new  keyword.
Motivation
In the current version of Go language, when creating an instance of a user-defined type using the  new  keyword, the  init  method of that type is not automatically invoked.
This requires developers to manually call the custom NewFunction to initialize the instance. To improve development efficiency and code readability, it is proposed to automatically invoke the  init  method of user-defined types when creating instances using the  new  keyword.
Detailed Design
When creating an instance of a user-defined type using the  new  keyword, the compiler will automatically invoke the  init  method of that type immediately after the instance is created. This ensures that the instance is properly initialized right after creation without the need for manual invocation of the  init  method by developers.
Here is an example code demonstrating the usage of this feature:
package main

import "fmt"

type MyStruct struct {
    Name string
}

func (m *MyStruct) init() {
    m.Name = "Initialized"
}

func main() {
    instance := new(MyStruct)
    fmt.Println(instance.Name) // Output: Initialized
}

Compatibility
The introduction of this language feature will not affect existing Go code, as it is an enhancement specifically for instances created using the  new  keyword. Existing code will continue to work as before.
Open Questions
The introduction of this language feature may raise some discussions and questions, such as:

Should the  init  method support parameter passing?
Should the  init  method support return values?
Should the  init  method be allowed to be called multiple times?

These questions will require further research and decision-making during the discussion and implementation process.
@gopherbot please remove label WaitingForInfo

@godcong In short, what u r proposing is a constructor' for all types(not just struct`).
I voting down for this proposal-

Strictly Backwards incompatible
Overloading of new
Options pattern offers better flexibility, control and readability over constructors

@godcong In short, what u r proposing is a struct).constructor' for all types(not just `
I voting down for this proposal-

Strictly Backwards incompatible
Overloading of new
Options pattern offers better flexibility, control and readability over constructors

Did you misunderstand me?
When new has finished what it was doing, it calls init().
If you don't implement init(), you don't have to do anything.
All the actions are the same as before, it's not overloading, and it doesn't affect the original processing.

When new has finished what it was doing, it calls init().

What bout the existing types with init methods?

It's simple to write a factory function that does exactly what you want.  This proposal doesn't add new functionality that we don't have already, but introduces a number of difficulties as @Merovius mentions above.  Also, the emoji voting is not in favor.  Therefore, this is a likely decline.  Leaving open for three weeks for final comments.

No further comments.


fix(ssr): change the way window object was defensively checked.

Fixes developerdizzle/react-virtual-list#63

@developerdizzle Could you please review the change and merge.

@developerdizzle, please check this PR.


[WIP] Ecto 3.1

This PR builds upon #9, but adds support for Ecto 3.1, which changed repo internals again.

As all the tests are now working, I think some internal changes have been made to ecto 3.1 that allow tracking of changed assocs like we used to do in Ecto 2.

As all the tests are now working, I think some internal changes have been made to ecto 3.1 that allow tracking of changed assocs like we used to do in Ecto 2.

This is awesome! Looks like the association code has changed to use the repo instead of applying action on Ecto.Repo.Schema.

I can imagine why, they introduced a new argument for all the repo functions that's part of the dynamic repo feature. You'd have to touch the entire codebase to pass this name argument to everything.
Good for us!

Ecto 3.1.1 released yesterday which changed things again - update incoming

manually merged


The requested URL returned error: 500 when trying to push

When trying to push my code into an empty repo, I get "Error: fatal: unable to access<EMAIL_ADDRESS>The requested URL returned error: 500" (user, domain and web-server used in place of redacted info).
I've checked all the possible GitHub open/closed issues, Google searches and other resources I can find for the past hour and have had no luck. This is not related to the 500.19 issue getting the IIS server error.
Any help would be greatly appreciated as I'm currently at a loss.
--AppSettings.webpages:Enabled: 'false'
--AppSettings.ClientValidationEnabled: 'true'
--AppSettings.UnobtrusiveJavaScriptEnabled: 'true'
--AppSettings.UserConfiguration: '~\App_Data\config.xml'
--AppSettings.DefaultRepositoriesDirectory: '~\App_Data\Repositories'
--AppSettings.GitPath: '~\App_Data\Git\git.exe'
--AppSettings.GitHomePath: '~\App_Data'
--AppSettings.RecoveryDataPath: '~\App_Data\Recovery'
--AppSettings.LogDirectory: '~\App_Data\Logs'
--AppSettings.serilog:minimum-level: 'Information'
--AppSettings.AuthenticationProvider: 'Cookies'
--AppSettings.ImportWindowsAuthUsersAsAdmin: 'false'
--AppSettings.MembershipService: 'ActiveDirectory'
--AppSettings.ActiveDirectoryDefaultDomain: 'domain.com'
--AppSettings.ActiveDirectoryBackendPath: '~\App_Data\ADBackend'
--AppSettings.ActiveDirectoryMemberGroupName: 'MemberGroup'
--AppSettings.ActiveDirectoryRoleMapping: 'Administrator=Admin group'
User Configuration:
--User config file: 'C:\inetpub\wwwroot\Bonobo.Git.Server\App_Data\config.xml'
--User config readable: OK
--User config saveable: OK
--User config folder: Exists, 4 files, 8 entries, writeable
Repo Directory
--Configured repo path: '~\App_Data\Repositories'
--Effective repo path: 'C:\inetpub\wwwroot\Bonobo.Git.Server\App_Data\Repositories'
--Repo dir: Exists, 1 files, 2 entries, writeable
Git Exe
--Git path: 'C:\inetpub\wwwroot\Bonobo.Git.Server\App_Data\Git\git.exe'
--Git.exe exists: OK
Federated Authentication
--Not Enabled:
Active Directory
--Backend folder exists: OK
--Backend folder: Exists, 0 files, 4 entries, writeable
--User count: 28
AD Teams
AD Roles
--Administrator: 10 members
Internal Membership
--Not Enabled
**********************************************************************************
Exception Log
--LogFileName: : C:\inetpub\wwwroot\Bonobo.Git.Server\App_Data\Logs\log-20171119.txt
--Log File total length: 554105
--Starting log dump from : 544105
ainName)
2017-11-19 11:04:27.456 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:27.487 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:27.519 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:27.551 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:27.599 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:27.614 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:27.645 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:27.676 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:27.692 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:27.723 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:27.755 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:27.770 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:27.801 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:27.833 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:27.848 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:27.880 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:27.911 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:27.942 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:27.958 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:27.989 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:28.020 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:28.117 -05:00 [Information] Searching for group "TSC_Support group" in domain "domain.com"
2017-11-19 11:05:02.447 -05:00 [Warning] GitAuth: No auth header, anon operations not allowed
2017-11-19 11:05:02.447 -05:00 [Warning] GitAuth: No auth header, anon operations not allowed
2017-11-19 11:05:02.478 -05:00 [Error] Error caught in GitController
System.FormatException: Invalid length for a Base-64 char array or string.
   at System.Convert.FromBase64_Decode(Char* startInputPtr, Int32 inputLength, Byte* startDestPtr, Int32 destLength)
   at System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength)
   at System.Convert.FromBase64String(String s)
   at Bonobo.Git.Server.GitAuthorizeAttribute.IsUserAuthorized(String authHeader, HttpContextBase httpContext)
   at Bonobo.Git.Server.GitAuthorizeAttribute.OnAuthorization(AuthorizationContext filterContext)
   at System.Web.Mvc.ControllerActionInvoker.InvokeAuthorizationFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__19(AsyncCallback asyncCallback, Object asyncState)

Are you able to try using a URL without the username embedded in it - e.g. http://web-server/Bonobo.Git.Server/Dashboard_FrontEnd.git ?
(Then provide the username / password through the Git client. )
If this works, then that's a useful datapoint for us.

Are you able to try using a URL without the username embedded in it - e.g. http://web-server/Bonobo.Git.Server/Dashboard_FrontEnd.git ?

Unfortunately no, neither URL work.
I've received a slightly more specific error this time around though from a different context. Neither URL works in either context but I get the error 500 from Brackets (the editor I'm using to write the code being pushed to my repo) which is using git.exe. When trying to do it from Git Bash I get "fatal: Authentication failed for ''http://web-server/Bonobo.Git.Server/Dashboard_FrontEnd.git'" I also get this when trying to use the embedded username URL.

This exception in the log:
System.FormatException: Invalid length for a Base-64 char array or string.
   at System.Convert.FromBase64_Decode(Char* startInputPtr, Int32 inputLength, Byte* startDestPtr, Int32 destLength)
   at System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength)
   at System.Convert.FromBase64String(String s)
   at Bonobo.Git.Server.GitAuthorizeAttribute.IsUserAuthorized(String authHeader, HttpContextBase httpContext)
   at Bonobo.Git.Server.GitAuthorizeAttribute.OnAuthorization(AuthorizationContext filterContext)
   at System.Web.Mvc.ControllerActionInvoker.InvokeAuthorizationFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__19(AsyncCallback asyncCallback, Object asyncState)

Suggests that there's something strange about the Authoriziation header which is being sent by the client (or at least, received by the server - perhaps something in between is meddling).  This header should look something like Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==, and Bonobo attempts to base-64 decode the last bit- in your case it seems that's failing.
Are you able to run a client (preferably  just command-line Git) on the same machine as Bonobo, and if so, are you able to run something like Fiddler to see what the auth header actually looks like?

I ran command line git on the server running Bonobo and got the same error, when I ran Fiddler I can't for the life of me get it to actually pick up any traffic from git. I tried it on the IIS box and on my local machine and picked up nothing from Git Bash, Git in cmd or Git in Brackets.
The most I was able to get was doing the "wrong" thing and trying to open the git URL in IE which did get me a similar 500 response in Fiddler. I got a couple 401 Unauthorized from IIS before I got the 500 error with the same System.FormatException, so maybe the cause is IIS? It didn't actually render the error page, just the 500 exception, but I was able to see the HTML in Fiddler from the 401: "The authenticated user does not have access to a resource needed to process the request"
It's entirely possible I've overlooked something during setup and will inevitably look silly for it. :stuck_out_tongue:

@jbdicarlo Thanks for persisting with this - sometimes Fiddler is tricky with local stuff.
An alternative is, from the command line, to run set GIT_CURL_VERBOSE=1 before you run the git command.     There should be at least two connections - the first one will fail with a 401 Unauthorized, then the second one will have the Authorization: header in it.
If you have access to some means to decode a base64 string, then you should see if it makes sense.  Don't post it here, because even though it looks like nonsense it's actually your unencrypted username/password

Does this seem like what we're looking for?
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\jbdicarlo>set GIT_CURL_VERBOSE=1

C:\Users\jbdicarlo>git clone http://web-server/Bonobo.Git.Server/Dashboard_Fr
ontEnd.git
Cloning into 'Dashboard_FrontEnd'...
* Couldn't find host web-server in the _netrc file; using defaults
* timeout on name lookup is not supported
*   Trying XX.XX.XX.XX...
* TCP_NODELAY set
* Connected to web-server XX.XX.XX.XX) port 80 (#0)
> GET /Bonobo.Git.Server/Dashboard_FrontEnd.git/info/refs?service=git-upload-pac
k HTTP/1.1
Host: web-server
User-Agent: git/2.13.1.windows.2
Accept: */*
Accept-Encoding: gzip
Pragma: no-cache

< HTTP/1.1 401 Unauthorized
< Cache-Control: private
< Content-Type: text/html
< Server: Microsoft-IIS/8.5
< X-AspNetMvc-Version: 5.2
< WWW-Authenticate: Basic realm="Bonobo Git"
< X-AspNet-Version: 4.0.30319
< WWW-Authenticate: Negotiate
< WWW-Authenticate: NTLM
< X-Powered-By: ASP.NET
< Date: Mon, 20 Nov 2017 12:49:22 GMT
< Content-Length: 1293
<
* Connection #0 to host web-server left intact
Username for 'http://web-server': jbdicarlo
Password for 'http://jbdicarlo@web-server':
* Couldn't find host web-server in the _netrc file; using defaults
* Found bundle for host web-server: 0x41ad80 [can pipeline]
* timeout on name lookup is not supported
* Hostname web-server was found in DNS cache
*   Trying XX.XX.XX.XX...
* TCP_NODELAY set
* Connected to web-server (XX.XX.XX.XX) port 80 (#1)
> GET /Bonobo.Git.Server/Dashboard_FrontEnd.git/info/refs?service=git-upload-pac
k HTTP/1.1
Host: web-server
User-Agent: git/2.13.1.windows.2
Accept: */*
Accept-Encoding: gzip
Pragma: no-cache

< HTTP/1.1 401 Unauthorized
< Cache-Control: private
< Content-Type: text/html
< Server: Microsoft-IIS/8.5
< X-AspNetMvc-Version: 5.2
< WWW-Authenticate: Basic realm="Bonobo Git"
< X-AspNet-Version: 4.0.30319
< WWW-Authenticate: Negotiate
< WWW-Authenticate: NTLM
< X-Powered-By: ASP.NET
< Date: Mon, 20 Nov 2017 12:49:38 GMT
< Content-Length: 1293
<
* Ignoring the response-body
* Connection #1 to host web-server left intact
* Issue another request to this URL: 'http://web-server/Bonobo.Git.Server/Das
hboard_FrontEnd.git/info/refs?service=git-upload-pack'
* Couldn't find host web-server in the _netrc file; using defaults
* Found bundle for host web-server: 0x41ad80 [can pipeline]
* Re-using existing connection! (#1) with host web-server
* Connected to web-server (XX.XX.XX.XX) port 80 (#1)
* Server auth using NTLM with user 'jbdicarlo'
> GET /Bonobo.Git.Server/Dashboard_FrontEnd.git/info/refs?service=git-upload-pac
k HTTP/1.1
Host: web-server
Authorization: NTLM TlRMTVNTUAABAAAAB4IIogAAAAAAAAAAAAAAAAAAAAAGAbEdAAAADw==
User-Agent: git/2.13.1.windows.2
Accept: */*
Accept-Encoding: gzip
Pragma: no-cache

< HTTP/1.1 401 Unauthorized
< Content-Type: text/html; charset=us-ascii
< Server: Microsoft-HTTPAPI/2.0
< WWW-Authenticate: NTLM *** BASE 64 REMOVED ***
< Date: Mon, 20 Nov 2017 12:49:38 GMT
< Content-Length: 341
<
* Ignoring the response-body
* Connection #1 to host web-server left intact
* Issue another request to this URL: 'http://web-server/Bonobo.Git.Server/Das
hboard_FrontEnd.git/info/refs?service=git-upload-pack'
* Couldn't find host web-server in the _netrc file; using defaults
* Found bundle for host web-server: 0x41ad80 [can pipeline]
* Re-using existing connection! (#1) with host web-server
* Connected to web-server (XX.XX.XX.XX) port 80 (#1)
* Server auth using NTLM with user 'jbdicarlo'
> GET /Bonobo.Git.Server/Dashboard_FrontEnd.git/info/refs?service=git-upload-pac
k HTTP/1.1
Host: web-server
Authorization: NTLM *** BASE 64 REMOVED ***
User-Agent: git/2.13.1.windows.2
Accept: */*
Accept-Encoding: gzip
Pragma: no-cache

< HTTP/1.1 401 Unauthorized
< Cache-Control: private
< Content-Type: text/html
< Server: Microsoft-IIS/8.5
< X-AspNetMvc-Version: 5.2
< X-AspNet-Version: 4.0.30319
< WWW-Authenticate: Negotiate
* NTLM handshake rejected
* Authentication problem. Ignoring this.
< WWW-Authenticate: NTLM
< X-Powered-By: ASP.NET
< Date: Mon, 20 Nov 2017 12:49:38 GMT
< Content-Length: 1293
<
* Connection #1 to host web-server left intact
fatal: Authentication failed for 'http://web-server/Bonobo.Git.Server/Dashboa
rd_FrontEnd.git/'

C:\Users\jbdicarlo>

Yes, thanks - it looks like an IIS problem - can you check the step on this page
https://bonobogitserver.com/install/ marked "Configure Authentication"
It appears that IIS is asking the client to do NTLM rather than basic auth, and then Bonobo is being confused by that.
If you wanted to be doing Windows auth, then check out this page: https://bonobogitserver.com/windows-authentication/

The page for doing Windows auth makes no mention of changing the IIS configuration to "Enabled" (see screen shot). Is this also required?

Windows authentication should be disabled in IIS.

Only enabled in the config file.


Rewrite LiveSplit autosplliter in AutoSplitterRuntime

LiveSplit One (the rewrite of LiveSplit) has autosplitter support now in the form of the new auto splitting runtime (ASR), with these new autosplitters being written in Rust rather than C#. Eventually the current autosplitter will have to be rewritten as I don't think AutoSplitting Language (ASL) will be supported once LiveSplit One releases, plus with LiveSplit One being cross platform, it'll give the opportunity for Linux users to autosplit easily without having to jump through hoops with Wine and Proton.
ASR Resources:
https://github.com/LiveSplit/obs-livesplit-one
https://livesplit.org/asr/asr/

https://github.com/p2sr/sar-auto-splitter

Merged into LiveSplit.Autosplitters https://github.com/LiveSplit/LiveSplit.AutoSplitters/commit/3a363fa973a1ff28d1050bfdb84cc6b3f73a8575


Define consumer profile member variable for ToolConsumer

Fix for #9

Thanks for the request, but I am not sure I follow the reasoning behind it.  A Tool Profile is associated with a Tool Provider, so why should this be added as a property of the ToolConsmer object?  How would you intend to use this?  Do we need to extend the data model to store it?  Thanks.

Hi Stephen,
The $profile variable is being set in the initialize() method of the ToolConsumer class. But it is not actually declared in the ToolConsumer class.
Furthermore, there are various instances in the library where it is being accessed (e.g. in DataConnector_mysql.php).
So I assume that this needs to be declared as a public variable.

Sorry, I totally misunderstood the profile variable as a ToolProfile object and realised that it refers to the tool consumer profile data. Which is basically a generic object type. I have updated the patch with the correct definition in the PHPDoc.

Yeah, this looks fine. 👍


Not able to upload cookbook

Description
Briefly describe the issue
Not able to upload cookbook from Work station
Chef Version 12.15
Tell us which version of chef-client you are using (see below for Server+ChefDK bugs).
Platform Version
Tell us which Operating System distribution and version chef-client is running on.
Replication Case
SJC-ML-SHITOLE:f5-learn shitole$ knife cookbook upload  f5-learn
ERROR: Could not find cookbook f5-learn in your cookbook path, skipping it
Uploaded 0 cookbook.
SJC-ML-SHITOLE:f5-learn shitole$
SJC-ML-SHITOLE:f5-learn shitole$
SJC-ML-SHITOLE:f5-learn shitole$
SJC-ML-SHITOLE:f5-learn shitole$ pwd
/Users/shitole/chef-repo/cookbooks/f5-learn
SJC-ML-SHITOLE:f5-learn shitole$ ls
Berksfile	Vagrantfile	chefignore	files		metadata.json	recipes		test
README.md	attributes	definations	libraries	metadata.rb	spec
SJC-ML-SHITOLE:f5-learn shitole$ cd ..
SJC-ML-SHITOLE:cookbooks shitole$ ls
chefignore		dummy			f5-bigip		f5-bigip-0.5.2.tar.gz	f5-learn		learn_chef_apache2	starter
SJC-ML-SHITOLE:cookbooks shitole$
Tell us what steps to take to replicate your problem.  See How to create a Minimal, Complete, and Verifiable example
for information on how to create a good replication case.
Client Output
The relevant output of the chef-client run or a link to a gist of the entire run, if there is one.
SJC-ML-SHITOLE:f5-learn shitole$ knife cookbook upload  f5-learn
ERROR: Could not find cookbook f5-learn in your cookbook path, skipping it
Uploaded 0 cookbook.
SJC-ML-SHITOLE:f5-learn shitole$
SJC-ML-SHITOLE:f5-learn shitole$
SJC-ML-SHITOLE:f5-learn shitole$
SJC-ML-SHITOLE:f5-learn shitole$ pwd
/Users/shitole/chef-repo/cookbooks/f5-learn
SJC-ML-SHITOLE:f5-learn shitole$ ls
Berksfile	Vagrantfile	chefignore	files		metadata.json	recipes		test
README.md	attributes	definations	libraries	metadata.rb	spec
SJC-ML-SHITOLE:f5-learn shitole$ cd ..
SJC-ML-SHITOLE:cookbooks shitole$ ls
chefignore		dummy			f5-bigip		f5-bigip-0.5.2.tar.gz	f5-learn		learn_chef_apache2	starter
SJC-ML-SHITOLE:cookbooks shitole$
The debug output (chef-client -l debug) may be useful, but please link to a gist, or truncate it.
Stacktrace
Please include the stacktrace.out output or link to a gist of it, if there is one.
NOTE: CHEF CLIENT BUGS ONLY
This issue tracker is for the code contained within this repo -- chef-client, base knife functionality (not
plugins), chef-apply, chef-solo, chef-client -z, etc.

Server issues
ChefDK issues
Cookbook Issues (see the https://github.com/chef-cookbooks repos or search Supermarket or GitHub/Google)

What happens if you run the knife cookbook upload command from the chef-repo directory?

Hi,
this looks like a local problem rather than a chef bug, and we'll be closing this issue.
For problems like this, we strongly recommend asking our awesome community on the Chef mailing lists, or on StackOverflow. (Please pick only one place to ask your question, however, as it's considered impolite to post the same question to multiple forums.)
You can find information about joining and asking questions on our mailing lists here. On StackOverflow, please tag your question with the "chef" label so that it shows up in this list.


Problem uploading / verify code to arduino

Hi
I recently installed DCS Bios and BORT.
I installed the DCS BIOS lib to the Arduino IDE and i made a sketch code.
For unknown reasn to me i can not verify or upload the sketch code to the arduino.

Hello @BarB310562
It seems your DCS BIOS arduino lib installation didn't succeed. Did you respects theses steps:

download .zip of the lib: here (current last version: dcs-bios-arduino-library-0.3.9.zip)
add it to arduino IDE: Sketch / include library / add .zip library / browse for the .zip file


Vibe Transfer feature

New feature just dropped that takes an image as input and few sliders for settings, works similarily to IPAdapter.
Is it possible to add the feature in your extension?
Thanks.

Done, works in txt2img and img2img, haven't tested inpainting.

Legend! I've heard on their discord that inpainting doesn't work with it so don't bother yet.


reopen #502

there's a bug with github where old bugs can't be reopened except by the project owner, sorry. i've posted a new repro script over there.
https://github.com/petkaantonov/bluebird/issues/502

Done


[SPARK-11550][Docs] Replace example code in mllib-optimization.md using include_example

Can one of the admins verify this patch?

@pravingadakh Everything looks good except for the positions of comments.

@yinxusen I have added example on off labels at places you mentioned.

@mengxr LGTM

ok to test

Merged build triggered.

Merged build started.

Test build #45538 has started for PR 9516 at commit 8f71ac6.

Test build #45538 has finished for PR 9516 at commit 8f71ac6.

This patch passes all tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):\n  * public class JavaLBFGSExample \n

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/45538/
Test PASSed.

Merged build finished. Test PASSed.

Merged into master and branch-1.6. Thanks!


Lint entire workspace or project.

I have installed plugin locally in worspace following these instructions. And tslint now shows errors only for opened files. Is it possible to configure plugin to show issues in Problems tab for all files in entire project? Is it possible to configure problem matcher as for old tslint plugin?

So, in order to see all errors I added tasks.json file with next content:
{
    "version": "2.0.0",
    "tasks": [
        {
            "type": "npm",
            "script": "lint",
            "problemMatcher": {
                "base": "$tslint5",
                "fileLocation": "absolute"
            }
        }
    ]
}

and installed plugin itself.

Yes you need the VS Code extension to get the problem matcher, not just the plugin

@mjbvz I have the new plugin installed but I'm only seeing issues for open files also. I already have the code above (from when I used the other plugin - which I've now removed).
I'm fairly sure that the lints used to just show up when I hit build (Cmd+Shift+B or run with F5) and the watcher was running, I never had to explicitly run a command before. Has this changed, or have I done something wrong?


Show-hide transitions based on ng-show

It would be great to have some default show and hide animations, i.e. fade-in and fade-out.

Yes, we should use "ng-show" / "ng-hide" instead of apply style(display:none) to DOM directly.


Is there a plan to add support for Go modules?

This is a request from the gRPC-Go team.
We plan to use the LRU cache implementation found here and would be nice if groupcache had Go modules support.
I can send a PR for the same if you are OK.

You mean just adding a go.mod file? It should work without one, but sure. Feel free to send a PR.
How is gRPC-Go using groupcache?

We are only interested in using the LRU implementation from groupcache. We plan to use that in one of the loadBalancing policy implementations where we need to cache the responses from a management server.
On second thoughts, maybe we should just duplicate that code.

Yeah, I'd just duplicate it. There are many LRU implementations around with various properties too.

Thanks.


Add tests

Tests for Python, JavaScript and (later) for any other platform.

Consider it as done for now.


Version info in settings panel shows latest release

Type of issue

[X] Bug
[ ] New feature
[ ] Improvement

Description
The version info in the settings panel simply points to the latest release and its release notes.
Screenshot

Steps to reproduce

Click the settings gear icon
Version info is shown on the top of the panel

Expected behavior
The actual version of RMS should be displayed and the link should point to that version's release notes.
Current behavior
The version info in the settings panel simply points to the latest release and its release notes.

Ashley to create a new deployment and verify.

I tried out with latest deployment and it showing the latest release notes and link. Let us know if this is still the issue.

@ppathan, this is not correct. We have not upgraded to the latest version and we see 1.0.2 as the version! The code just looks up the latest release on GitHub and shows that release's info.

@kidproquo Now I get it. The original screenshot was showing old release version so we thought other way :). Yeah this is a known issue. Will reopen.

@isaac73 Can you please look into this bug

Fixed. But will only work with the latest deployment.


Non-deterministic training explanation

Hello,
I have a LUIS model and I've come across with the situation explained here https://docs.microsoft.com/en-us/azure/cognitive-services/luis/luis-concept-prediction-score#differences-with-predictions-between-different-training-sessions.
I use non-deterministic training=true and I have some different predictions between training sessions (using either the same LUIS application or different one).
I have some questions

What this setting actually does and why it's recommended value is true?
As far as I understand it only affect the training speed. Is that correct?
Are there any differences in the quality of predictions if I have the same model, one with use-determinsitic training=true and one with non-deterministic training=false.

Thank you!

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

ID: 70e5f0fa-9b92-10d1-5151-6ed5510411a4
Version Independent ID: b9e05ee3-bbd0-994b-850a-350ba2981f13
Content: Prediction scores - LUIS - Azure Cognitive Services
Content Source: articles/cognitive-services/LUIS/luis-concept-prediction-score.md
Service: cognitive-services
Sub-service: language-understanding
GitHub Login: @diberry
Microsoft Alias: diberry

@ionut-matei  Thanks for the question! We are investigating and will update you shortly.

@diberry  Hi Dina, could you please share any insights for above questions if you have any? Thanks.

Training uses a small percent of negative sampling when this setting is set to true. You would turn it off/set to false, if you have testing that requires a specific value or a threshold value to pass. That is because the negative sampling's randomness may flip two top intents if they are close enough in score that the randomness flips them.
But why the negative sampling? Good question. #in-progress

@diberry Thanks Dina.
@ionut-matei
We will now proceed to close this thread. If there are further questions regarding this matter, please respond here and @YutongTie-MSFT and we will gladly continue the discussion.

Hi again,
LUIS portal (preview.eu.luis.ai) recommends setting non determinisitic training to true.

Why it's recommended? What are the advantages and disadvantages of using non determinisitic or determinisitc training( train with all data)? I couldn't find any documentation about this topic besides: https://docs.microsoft.com/en-us/azure/cognitive-services/luis/luis-concept-prediction-score#review-intents-with-similar-scores.
Thank you :)


Excercise 3 and 4, tested and implemented IsLeapYear and IsInputLeapY…

…ear - Maybe change name to something better in later version?

.


Unify OSL utility shaders used in DCC plugins

Currently we have a copy of some very similar OSL utility shaders for each DCC plugin.
Shaders like closure2surface and area light shaders.
We should have only one of each shared between all plugins.

Specifically, all these shaders are identical:

gaffer/material/as_material_builder.osl
max/as_max_closure2surface.osl
max/as_maya_closure2Surface.osl
blenderseed/as_closure2surface.osl

Gaffer shaders are deprecated and will disappear soon.

Blender and Maya area light shaders are very similar, they can be merged.
There is a texture2surface shader used when rendering swatches in Maya and Gaffer.

i'll be moving closure2surface, and the components2 (vector, etc) to DCC agnostic in appleseed/
@est77 we haven't added light shaders in maya, they are hardcoded nodes (skydome, phys. sky, arealight), plus the point, spot EDF.


Behaviour On/Off

it would be good to have an easy way to enable/disable de addon (without having to go to the addon preferences).
Here is a suggestion:
Why not on Middle click on the button it would maximize all windows
and on left click it would enable or disable the function
the point is that i don't want windows maximized all the time, just when i'm doing a specific kind of work.
So a easy way to enable/disable would be good.
ATM i have to go to about:addons and enable/disable the addon
thank you for your time and work, by the way :)

Yes, this is a good idea. I'm sure it's an easy add. I'll see if I can do it when I find time

If you're able to find some, tell me something will you?!
I'm searching for it as well ahahahah

Ok, I moved the options into the right click menu the addon action icon as checkboxes. No more options page. I also added an Enable/Disable checkbox.

Hopefully this will be good enough.

Due to Google enforcing their manifest v3, I am in the process of rewriting the entire addon. I think I will leave the original addon how it is, and add the new version as a new addon to both the Chrome and Firefox stores.
Someone else requested a new feature that I want to add as well.
And lastly, I want to try dealing with the ugly icon.
I hope to finish everything by next week, but we will see.

add the new version as a new addon to both the Chrome and Firefox stores.
Someone else requested a new feature that I want to add as well. And lastly, I want to try dealing with the ugly icon.
I hope to finish everything by next week, but we will see.

Nice news. Please, when you have it share the link to the new add-on so that I can switch to it :)
thanks

@ericchase Any news?

Sorry man, things did not go as projected
Honestly, I've been on hiatus from coding for a while
I might just have to split the new project up into parts and just push the minimal working code for now, and get back to the rest at a later time

I'll publish the new extension in beta mode if that's still a thing. Hopefully it will just work like before for now.

Ok, I did my best. Manifest v3 changed a lot of stuff around, so I did what I could to keep things similar to before.
If it gets approved, I'll let you know.

https://chrome.google.com/webstore/detail/maximize-windows/oealklhjfdmeafmhkmgjplhlldkiblge
Welp, here it is. Please let me know if you find any bugs

@ericchase Thank you a lot for your time!!!
I understand how often "real life" gets in the way :).
I won't be able to test it, however. I'm sorry.
I'm on Firefox and won't get near chrome even if google pays me!
From what I've learned Manifest v3 is major pain for devs (specially adblock devs)

From what I've learned Manifest v3 is major pain for devs (specially adblock devs)...and still changing...

Yes, it seems so. I'm not sure how Firefox plans to deal with mv3. In any case, I've tried writing the code in a flexible manner. With some future adjustments, I should be able to generate versions for both Chrome and Firefox at the same time, which is the goal, since I use Firefox myself. I originally thought that mv3 would be available by now on Firefox, but they've pushed it back to next year seemingly. I will try to work on cross platform adjustments when I find the energy to

Firefox delayed it, yes.
But I was under the impression you could already develop add-ons based on game publish them on AMO.
But they also choose not to implement all mv3 because it cripples devs too much...


Invalid Opening Quote: a quote is found inside a field at line 1

From user:

"הוא פותח כרום, עושה login, נשאר שם שניה, עובר למזרחי באנגלית לדף לא קשור ונותן שגיאה."

From a quick search, it seems like a problem with export to CSV.

I tried running the scraper with mizrachi and csv export and could not reproduce.
@baruchiro Do we have any other input? If not I think we can close

I'm chatting with the user on FB, but we can't understand the problem.
I think we can keep it open for a while.

Closed: Not reproduced.


Use Dirichlet process clustering in the caller

The caller as such is not very important, but this would (1) be a nice warmup for later on when non-parametric Bayesian methods will likely be critical for tumor heterogeneity and (2) give us new intuition about real data.

Note that the current notes for the ACNV caller describe a model that does this.  Its implementation is issue #225.

Subsumed under issue #225.


dtype error in SP aquisition card driver when no averaging

        else:
            for c in chs:
                b = buffers[c]
                b.reshape((-1, samples_per_record))
                b *= 1.9/65535

b is a int16 and should be float64.

float32 is the smallest type that we could use here. Given that mean that we must copy the array the whole for loop could be replaced by a list comprehension.

Should be fixed by #31

Closed by #31


wrap_key: Don't ignore associated data

Cherry-pick of https://github.com/trussed-dev/trussed/pull/108

Done by #21


Fix curly brackets support in get_ports commands

Many public XDC files provide get_ports arguments in curly brackets:
https://github.com/Digilent/digilent-xdc/blob/master/Arty-A7-35-Master.xdc#L7
Currently, support for this feature is missing / incomplete. The following XDC file:
set_property PACKAGE_PIN E3 [get_ports { clk }]
set_property IOSTANDARD LVCMOS33 [get_ports { clk }]
create_clock -period 10.0 clk

causes the following error during the Yosys synthesis step:
...
7.38.3. Continuing TECHMAP pass.
Using template $paramod\$lut\WIDTH=1\LUT=2'01 for cells of type $lut.
No more expansions possible.
7.39. Executing XILINX_DFFOPT pass (optimize FF control signal usage).
Optimizing FFs in top.
7.40. Executing OPT_LUT_INS pass (discard unused LUT inputs).
Optimizing LUTs in top.
Removed 0 unused cells and 2 unused wires.
8. Executing HIERARCHY pass (managing design hierarchy).
8.1. Analyzing design hierarchy..
Top module:  \top
8.2. Analyzing design hierarchy..
Top module:  \top
Removed 0 unused modules.
set_property PACKAGE_PIN E3 [get_ports { clk }]
set_property IOSTANDARD LVCMOS33 [get_ports { clk }]
create_clock -period 10.0 clk
Warning: Couldn't find port matching  clk
ERROR: set_property IO_LOC_PAIRS: Incorrect number of arguments.

After removing the curly brackets, everything works as intended:
set_property PACKAGE_PIN E3 [get_ports clk]
set_property IOSTANDARD LVCMOS33 [get_ports clk]
create_clock -period 10.0 clk

I'm new to pragrammimg. let me handle this issue

Sure! In case you need any additional information, don't hesitate to ask!
Me and @tmichalak will be happy to help you

can you assist me in this

Of course! Here is the plugin source file:
https://github.com/SymbiFlow/yosys-symbiflow-plugins/blob/master/xdc-plugin/xdc.cc
First, make sure that you can compile Yosys and run it with the XDC plugin.
This requires setting some options for Yosys, or copying the files manually.
Tomorrow, I can give you more detailed information how to do that and test the plugin.

tell me more on how to do that

Here are instructions that will allow you to reproduce my error. I created another branch with the failing syntax, so it will be easier for you to set up a working project.

Create a workspace directory:

mkdir yosys_plugins_workspace
cd yosys_plugins_workspace

Download, compile, and install yosys. It is also possible to proceed without installing yosys globally but this option requires a more complicated yosys-plugins setup.

git clone https://github.com/symbiflow/yosys
cd yosys
make j$(nproc)
sudo make install
cd ..

Download, compile, and install yosys-plugins:

git clone https://github.com/SymbiFlow/yosys-symbiflow-plugins
cd yosys-symbiflow-plugins
make j$(nproc)
sudo make install
cd ..

Download the symbiflow-arch-defs repository which contains tests of the symbiflow toolchain and prepare the local conda environment:

git clone --recursive https://github.com/antmicro/symbiflow-arch-defs -b bufgmux_broken
cd symbiflow-arch-defs
export YOSYS=`which yosys`
make env
source env/conda/bin/activate symbiflow_arch_def_base

yosys + yosys_plugins are used in the toolchain synthesis step. Because of that, you can use the examples provided there to check whether your changes work correctly with the prepared synthesis script. You can use your system yosys installation after you set the YOSYS environment variable. The variable has to point to the yosys binary in your system.

Run the example to reproduce my errors:

cd build/xc/xc7/tests/bufgmux
make bufgmux_arty_bit

Note that this may take about 1h to generate the FPGA architecture for the chip.
On the other hand, you will be able to use other examples to test your changes.
Make sure that after changing the XDC plugin in the yosys-plugin repository, you built and installed the latest version of your plugin.


02-Dynamic-Router.ipynb Error after rl.add(time_route)

Hi, I tried to use the the Notebook docs/02-dynamic-routes.ipynb on Google Colab and use Cohere api key as embedding model.
The static route works fine, but when using dynamic router it throw error on the last cell (as Screenshot)
Error:
2024-03-10 07:38:16 WARNING semantic_router.utils.logger No LLM provided for dynamic route, will use OpenAI LLM default. Ensure API key is set in OPENAI_API_KEY environment variable.
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
[<ipython-input-11-f02444f1667a>](https://localhost:8080/#) in <cell line: 1>()
----> 1 out = rl("what is the time in new york city?")
      2 get_time(**out.function_call)

1 frames
[/usr/local/lib/python3.10/dist-packages/semantic_router/llms/openai.py](https://localhost:8080/#) in __init__(self, name, openai_api_key, temperature, max_tokens)
     27         api_key = openai_api_key or os.getenv("OPENAI_API_KEY")
     28         if api_key is None:
---> 29             raise ValueError("OpenAI API key cannot be 'None'.")
     30         try:
     31             self.client = openai.OpenAI(api_key=api_key)

ValueError: OpenAI API key cannot be 'None'.

For some reason it not detect that already use cohere like in the static route.

Hey can you try setting the OPENAI_API_KEY env var? Ie os.environ[“OPENAI_API_KEY”] = “your api key” — that should help :)

Hi @antonsapt4 yes this is the expected behaviour.

Yes an LLM (ie OpenAI in this example) is required for dynamic routes, whereas static routes use embedding models (ie Cohere in this example) only.
As above, the dynamic route requires an LLM, whereas static route does not.
Yes there is an example here.

I hope those help!


update devtool packages

I hacked the devtools into the previous host-configs in the ATS PR and missed these.  This is a noop change but will cause problems if we don't fix them for the next TPL build.

Codecov Report

Merging #628 (c01f834) into develop (6933e39) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop     #628   +/-   ##
========================================
  Coverage    94.58%   94.58%
========================================
  Files          123      123
  Lines         8059     8059
========================================
  Hits          7623     7623
  Misses         436      436

Continue to review full report at Codecov.

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


Move confidence threshold back to 90% now that many users have to select the type manually

Coverage remained the same at 25.497% when pulling aabda988e62df364c7478484d36625fea1dc26e8 on marco-c:conf into ba8faeb9ecc46b5d98b3531c8d8435099a8b8ccc on mozilla:master.


[Feature Request] Add Control-Lora workflow

Hello, this is an awesome workflow setup but I am hoping that it would be possible along with existing options to add the new control-loras in this user friendly workflow:
https://huggingface.co/stabilityai/control-lora
(I know this is probably not an easy thing to do and you already have a massive to-do list but I just thought I'd ask)

It's planned for a future update

That's awesome! Thanks for the great work!


hashing somethingorother, url names are ugly

the display name should be different from the url name, maybe add an option for both? and the hashing thing too

Hashing thing is for pictures, url names will be fixed in this issue


feat: use node16

Currently see the following warning:

The following actions uses node12 which is deprecated and will be forced to run on node16: tgymnich/publish-github-action@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/

Now we have to migrate to Node 20 to address #98.

Yes!

@Goooler I made the quick switch for this

Thank you


Unable to smart populate unowned 1:1 when autoJoinOneToOneOwner = false

I have autoJoinOneToOneOwner: false set in my config and am trying to smart populate an unowned 1:1 relationship. The relationship is not smart populated.
const user = await ctx.em.findOneOrFail(User, { id, }, ['slug'])

Here is the relationship definition. User is not the owning side.
class User {
...
  @OneToOne(() => Slug, slug => slug.user)
  slug: IdentifiedReference<Slug>;
}

Two deficiencies I notice in the current autoJoinOneToOneOwner: false behavior:

If I load a User, there is no key for slug. It's not even null, it's just not there. I expected it would be an IdentifiedReference with a id = null.

I expected to be able to override the default behavior by adding the relationship to the populate array. That does not seem to be possible at the moment.

we can make it null value explicitly, but currently it is not designed the way you are expecting (with having null object always there). Reference instance always needs to have id. There is #264 that suggests the same, but I personally do not like it that much. Definitely not what I want to have as default behaviour, although I am thinking about supporting that optionally.
you will still get instance of Reference wrapper, but yes, you should be definitely able to load the entity via populate.

I guess I know what is happening, will try to look into it soon.

Thinking about 1. more, and I think it is correct the key is not there. We do not know if it is null or not, it could be a value. Without the join, the information is just not present yet.

I think that’s a reasonable position, the main DX consideration was that it
made me second guess whether the relationship was properly defined. Being
able to populate it would have reassured me everything was ok
On Thu, Dec 12, 2019 at 6:49 PM Martin Adámek<EMAIL_ADDRESS>wrote:

Thinking about 1. more, and I think it is correct the key is not there. We
do not know if it is null or not, it could be a value. Without the join,
the information is just not present yet.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/mikro-orm/mikro-orm/issues/269?email_source=notifications&email_token=AADH4M3MFTQYQLPCPDVUXDLQYLLX7A5CNFSM4J2DWYK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGYRG5A#issuecomment-565252980,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AADH4M3OSA3GF7MEJ6NPJNTQYLLX7ANCNFSM4J2DWYKQ
.

I can't replicate this. Here is the test case:
https://github.com/mikro-orm/mikro-orm/pull/271/files#diff-b5a1e90fb6b83d3756b42386aa6f9791R45
Do you see any difference from what you are doing?

I don't see any difference from what you are doing. I will take a break and look again.
But I don't see how your test case is possible. Please take a look at EntityLoader.ts#158
  private getChildReferences<T extends AnyEntity<T>>(entities: T[], prop: EntityProperty<T>): AnyEntity[] {
    const filtered = this.filterCollections(entities, prop.name);
    const children: AnyEntity[] = [];

    if (prop.reference === ReferenceType.ONE_TO_MANY) {
      ...
    } else { // MANY_TO_ONE or ONE_TO_ONE
      children.push(...entities.filter(e => (Utils.isEntity(e[prop.name]) || e[prop.name] as unknown instanceof Reference) && !(e[prop.name] as AnyEntity).isInitialized()).map(e => {
        const ref = e[prop.name];
        return Utils.isReference<T>(ref) ? (ref as Reference<T>).unwrap() : ref;
      }));
    }

You have already agreed with me (on point 1) that e[prop.name] === undefined. So the entities.filter call will find nothing and at the end of the loop children.length === 0.
This will pop back up to findChildren
  private async findChildren<T extends AnyEntity<T>>(entities: T[], prop: EntityProperty, where: FilterQuery<T> = {}, orderBy?: QueryOrderMap): Promise<AnyEntity[]> {
    const children = this.getChildReferences<T>(entities, prop);
    const meta = this.metadata.get(prop.type);
    let fk = meta.primaryKey;

    if (prop.reference === ReferenceType.ONE_TO_MANY || (prop.reference === ReferenceType.MANY_TO_MANY && !prop.owner)) {
      fk = meta.properties[prop.mappedBy].name;
    }

    if (children.length === 0) {
      return [];
    }

And return [], which is used to initialize the collection

That happens only if you do not provide the populate parameter explicitly. I thought that in your case it is broken because of the Reference wrapper, but it works (the new tests are passing, see #271.
Also, the change hat introduced the autoJoinOneToOneOwner, was just about not appending to the populate automatically. In this case, the populate is already correctly formed (includes the 1:1 owner).
But there is one possible case where I see it can be broken - if you had the user entity already loaded (without explicitly populating the owner).
const user123 = await ctx.em.findOneOrFail(User, 1); // can happen anywhere in the same context

// now user#1 is already in the identity map, so calling this will not load it from the database, but just try to populate the slug, which is in this case undefined
const user = await ctx.em.findOneOrFail(User, 1, ['slug']);

Maybe that is your problem? Can you doublecheck whether the user entity is already in the identity map before you do the const user = await ctx.em.findOneOrFail(User, { id, }, ['slug']) call? Just try to console.log(ctx.em.getReference(User, 1)) and see if you get the full entity or just a reference with id.

You are 100% correct. This User is loaded during auth middleware, before my findOneOrFail. What do you suggest for this edge case?

I will try to handle this somehow automatically. For findOne, you could pass { refresh: false } in the options param, that should trigger reloading of already known entity, but this time with the auto join happening.

Fixed in 3.0.0-rc.4.


Traeffik logs do not match the "upper case format" please consolidate

Fixed in https://github.com/ITISFoundation/osparc-ops-environments/pull/338


Sails overwrites models with different identities set

Sails version: 0.12.1
Node version: 4.4.1
NPM version: 2.14.20
Operating system: Windows 8.1

I've tested solution from #2064 for my new project, and when my structure reached that point:
```
  models/
    test1/dir/model.js //with identity: "test1/dir/model"
    test2/dir/modej.js //with identity: "test2/dir/model"
    model.js // no changes in identity
```
I've found a wall that I cannot break.
In my `sails.model` only existing were `model` and `"test2/dir/model"`. I assume that `"test1/dir/model"` was overwritten by the second one. Is there any chance to fix this or some "workaround"? I need something like `vendor/package` structure and for as long as it's possible I'd like to avoid creating separate hook.

Fixed to match requirements.

There you go sailsbot.


Include the prompt in the results

Is there any way to get the prompt in response.MultiResponse?
Tried adding opoptions.WithNoStripPrompt() but no luck yet. While GetPrompt() can get the prompt, it would be nice to get exact prompt if a certain command in a long list to SendConfigs failed

It seems the option should be set on SendConfigs (and not in NewPlatform!)
d.SendConfigs(data, opoptions.WithNoStripPrompt())

Thanks!!

Hey @kellerza -- yep you got it -- it is kind of confusing and that is my fault, so sorry about that! but yeah, the idea is that any "platform" wide options live in options (just options) and apply to the driver as a whole, and the "operation" options live in "opoptions" and are applied on a per operation basis. HTH!


Prop "numColumns" in List still working

I was trying to make 2 items per row in a List. Tried using flexbox way many times but didn't work out, it kept only showing 1 item per row(i.e. just a column). And eventually figured that gotta use "numColumns".
Sample code
      <List
        numColumns={2}
        style={styles.list}
        renderItem={renderItem}
        data={[1, 2, 3, 4, 5]}
      />

Here is an example we implemented in Kitten Tricks app. Take a look at the list item styles

Thanks @artyorsh . This was where I figured the property "numColumns" matters. It would be great if that can be reflected from the 4.2-beta documentation 'cause I couldn't see it, or maybe that property is from "FlatListProps" but I couldn't see the detail of it either. I was not implementing in the TS way.


Update and fix dependency cache CI action step

The dependency cache step is using v2 of the cache action, v3 is the latest. It is also not excluding Gaffer JARs from the cache. Gaffer JARs should be excluded because the presence of previous builds in the cache can caused inconsistent behaviour. It appears to have always been the intention to exclude these JARs but the current config doesn't work as expected.
https://github.com/gchq/Gaffer/blob/1f8b7431870e5c276d2c8aa9f90eb9ab61eeecb3/.github/workflows/continuous-integration.yaml#L76
The cache is also not being used except for repeat runs of the CI over the same commit. The step returns the message Cache not found for input keys and all dependencies must be downloaded manually. It seems it should be possible to use caches from other branches, at least with the v3 version of the action.
An example configuration for the v3 version of the action for Maven can be found here.

The version of the cache action was upgraded in PR #2894. The configuration for the cache action was reworked in PR #2871. The "not found" error message is no longer seen for on new PRs or additional commits on existing PRs and this problem is therefore resolved.


Add auth0 to the application

@amitabh-sahu we can keep the auth on frontend itself for now.
Whenever a new user signs-up, we can get a unique identifier from Auth0 (like userId) and save that on our backend instead of all the user state.


refactor: update linter and address minor violations

There's nothing too major here though we do get to remove a bunch of config for deprecated linters that have finally been removed; the more exciting thing is when we move to Go v1.22 as there's a few linters that'll start running like for cleaning up our looping variables

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 66.66%. Comparing base (1ea785e) to head (8fa27e1).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1110      +/-   ##
==========================================
+ Coverage   66.11%   66.66%   +0.55%
==========================================
  Files         160      160
  Lines       12792     9924    -2868
==========================================
- Hits         8457     6616    -1841
+ Misses       3877     2848    -1029
- Partials      458      460       +2

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Adding manual mulled container for qq_manhattan tool

Made a manual container for https://github.com/galaxyproject/tools-iuc/pull/3238 in case it doesn't get pushed to biocontainers in time for the recording for ASHG workshop

Biocontainer got created at https://quay.io/repository/biocontainers/mulled-v2-8a7a11298f666d8999e0e1da5b27294e8e5f4835 overnight, so this is not needed anymore


Why UI is not updaded ( reactive ) with the new value?

I create a local variable and input data from a textfield.
The value is stored into the variable ( if I click on the button to show snackbar, I see the value in the message ), but the UI is not updated.
Code:

          <b-field label="Name">
            <b-input id="nome" v-model="message" placeholder="add your name"></b-input>
          </b-field>
          {{ this.message }}
          <button class="button is-primary" @click="snackbar">
             Launch snackbar (default)
          </button>

Declaration:

Route Name:
landing-page
Vue.js:
2.5.17
Electron:
2.0.8
Node:
8.9.3
Platform:
win32
Thanks

I'm pretty sure that
 { this.$snackbar.open('Default, positioned bottom-right with a green OK button ' + this.message) }
To access from a method, the data, you need to use this.$data.message

@test137E29B in the snackbar it works. The problem is here:
 </b-field>
          {{ this.message }
```}

If you are using text interpolation with the mustache syntax you don't need to use this.
{{ message }}
I don't think that would cause it to break, but might be worth trying. Also could you try using the Vue Devtools extension to check that the data is infact being updated on the component. I'm not seeing anything that would cause it not to be updated in the UI.
I created a quick test on codepen to demonstrate: https://codepen.io/XanderLuciano/pen/MqOOmK?editors=1010


Time polish for market creation

https://github.com/AugurProject/augur/issues/3014
https://github.com/AugurProject/augur/issues/3030

are the tix reference above "fixed" if so then type fixed or closes in front of tix url.


new WebOS 04.70.50 is always asking "CONNECTION REQUEST" YES / NO

Everything was running fine with WebOS 04.70.35.
Start Browser, open a Website and Switch TV off (see ct "Smart-TV eingespannt").
But my TV made an update to 04.70.50. After that TV is asking at each command YES or NO. I have to confirm this by remote control. LG said it is not possible to restore the old firmware.
I think the pairing function is changed in new firmware.
Do anyone help?

Anyone find a solution to this?


TUI

Create a Terminal-User-Interface for the application

I go back and forth on the idea of combining this with the view command so that they can share the arguments/flags logic. But I'll keep them separate for now.


Add Github Badges for unit test coverage and build status

As a member
I need to know build status and unit test coverage for the repo
So that I can be sure that repo is working and covered.
Details and Assumptions
Readme file should have build pass/fail badge and unit test coverage badges
Acceptance Criteria
Given a readme file
When a PR is merged,
Then build status pass/fail badges and unit test coverage badges should be present on the readme file.


xlrd.biffh.XLRDError: Excel xlsx file; not supported

$ python3 scripts/generate_profile.py FitSDKRelease_21.53.00.zip fitparse/profile.py
Traceback (most recent call last):
  File "/devel/git/python-fitparse/scripts/generate_profile.py", line 626, in <module>
    main(xls, profile)
  File "/devel/git/python-fitparse/scripts/generate_profile.py", line 558, in main
    types_rows, messages_rows = parse_spreadsheet(xls_file, 'Types', 'Messages')
  File "/devel/git/python-fitparse/scripts/generate_profile.py", line 339, in parse_spreadsheet
    workbook = xlrd.open_workbook(file_contents=xls_file.read())
  File "/usr/lib/python3.9/site-packages/xlrd/__init__.py", line 170, in open_workbook
    raise XLRDError(FILE_FORMAT_DESCRIPTIONS[file_format]+'; not supported')
xlrd.biffh.XLRDError: Excel xlsx file; not supported

from https://github.com/python-excel/xlrd#xlrd

Warning
This library will no longer read anything other than .xls files. For alternatives that read newer file formats, please see http://www.python-excel.org/.

You'll need to use openpyxl or a library that can read xlsx files. PR welcome!

@dtcooper see here: https://github.com/dtcooper/python-fitparse/pull/134


Pylance uses its own type stubs over actually installed libraries

Environment data

Language Server version: v2021.4.2
OS and version: macOS Catalina 10.15.7
Python version (& distribution if applicable, e.g. Anaconda): Python 3.9.4 via Homebrew, installed in a Poetry virtual environment in workspace/.venv

Expected behaviour
Pylance should search the venv libraries to see if they support types before searching its own bundled type stubs.
Actual behaviour
Pylance, when operating on PyJWT 2.0.1, tries to flag that the return type of jwt.encode is bytes, not str:

...which would be helpful, except that by all rights, that definition does not exist. PyJWT's own code says:
def encode(
        self,
        payload: Dict[str, Any],
        key: str,
        algorithm: str = "HS256",
        headers: Optional[Dict] = None,
        json_encoder: Optional[Type[json.JSONEncoder]] = None,
    ) -> str

Pylance seems to be pulling in a different definition for the types than the ones defined in the installed library.
Logs
Pylance sets its search paths like so:
Search paths for /Users/fluggo/software/python-test/src
  /Users/fluggo/.vscode/extensions/ms-python.vscode-pylance-2021.4.2/dist/typeshed-fallback/stdlib
  /Users/fluggo/software/python-test/src
  /Users/fluggo/software/python-test/src
  /Users/fluggo/software/python-test/typings
  /Users/fluggo/.vscode/extensions/ms-python.vscode-pylance-2021.4.2/dist/typeshed-fallback/stubs/...
  /Users/fluggo/.vscode/extensions/ms-python.vscode-pylance-2021.4.2/dist/bundled/stubs
  /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
  /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/lib-dynload
  /Users/fluggo/software/python-test/.venv/lib/python3.9/site-packages

Pylance parses its own type stub:
[BG(1)]   binding: /Users/fluggo/.vscode/extensions/ms-python.vscode-pylance-2021.4.2/dist/typeshed-fallback/stubs/jwt/jwt/__init__.pyi (1ms)

and the installed one:
[BG(1)]   parsing: /Users/fluggo/software/python-test/.venv/lib/python3.9/site-packages/jwt/api_jwt.py (17ms)
[BG(1)]   binding: /Users/fluggo/software/python-test/.venv/lib/python3.9/site-packages/jwt/api_jwt.py (4ms)

...but seems to prefer its own.

I recently added those logs and it does look like we are sticking typeshed before site-packages; it's likely we need to reexamine this ordering to ensure that it's something like:

extrPaths/PYTHONPATH
typings
workspace root
bundled partial
interpreter paths (like site-packages)
typeshed and bundled

But, it's a risky change to change this ordering, lest some stubs that work stop working.

I will note that if pyjwt is stubbed and has py.typed, it might be good to ask typeshed to remove them.

PyJWT does have py.typed, or at least, this version does. It would make sense to keep the stubs for prior untyped versions of PyJWT, but check whether the site-packages version has types before using the stubs.

Yes, I only suggest that as a workaround and courtesy to the typeshed project; it's a problem that we are using typeshed or our own stubs for projects that have their own.

This issue has been fixed in version 2021.5.3, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/main/CHANGELOG.md#202153-19-may-2021

Yes and no... while Pylance 2021.5.3 is certainly looking in the right place:
[BG(1)]   parsing: /users/fluggo/software/python-test/.venv/lib/python3.9/site-packages/jwt/__init__.py [fs read 0ms] (1ms)
[BG(1)]   binding: /users/fluggo/software/python-test/.venv/lib/python3.9/site-packages/jwt/__init__.py (1ms)
[BG(1)]   parsing: /users/fluggo/software/python-test/.venv/lib/python3.9/site-packages/jwt/api_jwt.py [fs read 1ms] (8ms)
[BG(1)]   binding: /users/fluggo/software/python-test/.venv/lib/python3.9/site-packages/jwt/api_jwt.py (4ms)

...it's not getting the right type:

I also encountered this issue with pyjwt 2.1.0 using Pylance 2021.7.3-pre.1.
Have we reached a consensus on how to solve this problem?

What problem are you referring to? We've removed the pyjwt stubs we had bundled, so they no longer conflict. If you mean the quality of the types, that is up to the library and is tracked in the cross-linked issue here: https://github.com/jpadilla/pyjwt/issues/660

What problem are you referring to? We've removed the pyjwt stubs we had bundled, so they no longer conflict. If you mean the quality of the types, that is up to the library and is tracked in the cross-linked issue here: jpadilla/pyjwt#660

The encode method in pyjwt. It should return str type but the pylance said it returns bytes type even after reinstall.

This will probably be fixed once https://github.com/python/typeshed/pull/5767 is merged; I was wrong to say that we had removed the stubs.

Though, we should still be picking pyjwt's own types, as it's py.typed (why this issue is closed), so maybe not. Hard to say without some trace logs to show what we are analyzing.