Join table

is there a way to filter according to a belongsTo column ?

use OptimistDigital\NovaInputFilter\InputFilter;

class BelongsToFilter extends InputFilter
{
    public function apply(Request $request, $query, $search)
    {
        return $query->whereHas('cars', fn ($query) => $query->where('name', 'like', "%$search%"));
    }
}

Here is an simple example.

Still not working
it seems like the apply function is never call
It just append another condition to the one generated by nova

Can you send me a snippet of your filter file.

here it is
class CptFilter extends InputFilter
{
/**
* The filter's component.
*
* @var string
*/
public $component = 'select-filter';
/**
 * Apply the filter to the given query.
 *
 * @param  \Illuminate\Http\Request  $request
 * @param  \Illuminate\Database\Eloquent\Builder  $query
 * @param  mixed  $value
 * @return \Illuminate\Database\Eloquent\Builder
 */
public function apply(Request $request, $query, $search)
{
    // return $query->whereHas('compte', fn ($query) => $query->where('numero', 'like', "%$search%"));
    $cpt = Compte::where('numero', 'like', "%$search%")->first();
    return $query->where('id_compte', $cpt->id_compte);
}

/**
 * Get the filter's available options.
 *
 * @param  \Illuminate\Http\Request  $request
 * @return array
 */
public function options(Request $request)
{
    return [];
}

}

And here is how call it
InputFilter::make(['id_compte'], 'CptFilter'),

Still no idea ?

You are not calling the class you've made..
You should call CptFilter::make([], 'CptFilter) instead.

What should I pass to n the array ?

I’ll try and be back
Thanks

You should also not override public $component = 'select-filter' if you plan to use the input filter.

Thanks
But i'll leave it for now
It downgrade certain of my packages when installed


teleport: 14.0.3 -> 14.1.1, teleport_13: 13.4.3 -> 13.4.5, teleport_12: 12.4.22 -> 12.4.23

Description of changes
New upstream versions, including security fixes.
Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

teleport_12 fails to build for me, nixos x86_64:
Error: hash mismatch, expected 91666b9d5338d900a2100d888356c6f338e820c3a0c56c1808478d77063a4effdc392786a5ca17e295c77ca53134a56802b9eb12bd9ef6cae7031c4622b692f5, got cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e
    at IncomingMessage.<anonymous> (/nix/store/bq36zpv297p6dqnpjglqf3gdqyby4scd-prefetch-yarn-deps/libexec/index.js:42:49)
    at IncomingMessage.emit (node:events:529:35)
    at endReadableNT (node:internal/streams/readable:1368:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

teleport_12 fails to build for me, nixos x86_64:

That's weird. It passed ofborg, builds for me and consistently produces the same yarnHash.
If I'm reading the source code of fetch-yarn-deps, this is a hash mismatch for an individual yarn package? Seems to be get-intrinsic https://github.com/gravitational/teleport/blob/561b0a21d50aa6fee9fb5fdb7b5a89e696284ab2/yarn.lock#L8105-L8108
And it seems to match the checksum:
$ curl -sS https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.1.1.tgz | sha512sum
91666b9d5338d900a2100d888356c6f338e820c3a0c56c1808478d77063a4effdc392786a5ca17e295c77ca53134a56802b9eb12bd9ef6cae7031c4622b692f5  -

Ok appeared to work on a second try. nixpkgs-review happy, nixos x86_64 & macos 10.15, passthru.tests passes, nixos x86_64.


KAFKA-10012 Reducing memory overhead associated with strings in Metri…

SelectorMetrics has a per-connection metrics, which means the number of MetricName objects and the strings associated with it (such as group name and description) grows with the number of connections in the client. This overhead of duplicate string objects is amplified when there are multiple instances of kafka clients within the same JVM.
This patch address some of the memory overhead by making metricGrpName a constant and introducing a new constant perConnectionMetricGrpName. Additionally, the strings for metric name and description in createMeter have been interned since there are about 8 types of meter metric for every single client.

Thanks for the PR. Java's built in string interning mechanism is known to have issues. Not sure we want to do that. Maybe we can remove that part of the change from this PR?

@ijuma What issues with intern are you referring to? I know that there can be a performance hit when there are a lot of intern strings. I believe string interning mechanism has been improved in the later versions of java such as jdk8 / 9.
I would like to understand the concern better before removing the string interning showed here.
Thanks for the quick feedback!

@navina it's a native call (implying JNI overhead) and somewhat inflexible. We'd want to add a JMH benchmark to understand the full impact.

@ijuma  I have removed the intern() calls. Please take a look. Thanks!


HTTP Server doesn't work after update

Hi, after the latest update i have a erlamsa http server problem:

$ ./erlamsa -H <IP_ADDRESS>:17772
=ERROR REPORT==== 2-Nov-2018::14:28:59.411985 ===
Error in process <0.89.0> with exit value:
{undef,[{'',mutations,[],[]},
{erlamsa_main,fuzzer,1,[{file,"src/erlamsa_main.erl"},{line,107}]},
{erlamsa_fsupervisor,launch_fuzzing_process,2,
[{file,"src/erlamsa_fsupervisor.erl"},
{line,49}]}]}

Default python code:
import httplib
erlamsa_url = '<IP_ADDRESS>:17772'
original_string = "Hello erlamsa!"
httpconn = httplib.HTTPConnection(erlamsa_url)
headers = {"content-type": "application/octet-stream"}
httpconn.request('POST', '/erlamsa/erlamsa_esi:fuzz', original_string, headers)
response = httpconn.getresponse()
fuzzed_string = response.read()
print(original_string + " erlamsed to " + fuzzed_string)

Btw great work!

Hello, nice catch. Should work now, please check.
Thanks!

I have an additional question for you - What does your configuration during (for example wsdl/api/web apps testing) look like? How do you catch anomalies?

Answered in #7.


Order parameters

To make sure that the table does not change the order based o the instance. Use the order on the required property of the jsonschema as a guide

Created as task derived from baobabsoluciones/cornflow-app#47


How to dynamically modify the load strategy of grpc in shenyu

Question
shenyu中如何实现动态修改grpc的负载策略
How to dynamically modify the load strategy of grpc in shenyu

currently, grpc loadbalance can't modify, you can modify it in org.apache.shenyu.plugin.grpc.client.GrpcClientBuilder#buildClient when create selector data

currently, grpc loadbalance can't modify, you can modify it in org.apache.shenyu.plugin.grpc.client.GrpcClientBuilder#buildClient when create selector data

I may have successfully modified it, but I am currently unsure of any other impact


fix(core): looping over deeply changed object should update

Fix #5017
Overview

What is it?

[ ] Feature / enhancement
[ ] Bug
[ ] Docs / tests / types / typos

Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Use cases and why

One use case

Another use case

Checklist:

[ ] My code follows the developer guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have made corresponding changes to the documentation
[ ] Added new tests to cover the fix / functionality

looks like it's going to be fixed in v2


Add a Sentence struct, replace Vec with Sentence where possible

This PR shifts the focus from Vec<Token> to a new Sentence struct and moves the fields on the Token which semantically belonged to the sentence (sentence and tagger) to the sentence. Includes some general improvements like:

[x] Returning an iterator over Sentence / IncompleteSentence instead of a Vec<Vec<Token>> / Vec<Vec<IncompleteToken>>.
[x] Fixing indices on the token (byte_span / char_span) by making them relative to the input text (as opposed to relative to each sentence, as currently the case) and making them a Range instead of (usize, usize).

Future work in this direction would include rethinking the distinction between IncompleteSentence / Sentence and possibly unifying them or removing the need for one of them, but that's out of scope here.

This is ready for a review @drahnr if you have the time. It turned out more substantial than I initially thought. In addition to the things mentioned above:

there is now Span and Position structs which track the byte and char indices at the same time. (so instead of token.char_span() you now write token.span().char().
fields on the Suggestion, IncompleteToken and Token are now private and have getters.

There's a big diff because of many trivial changes, most of  the interesting ones are in the tokenizer.rs and types.rs. Again, I'd especially appreciate feedback regarding the changes and additions to the public API. Thanks!

Thanks a lot for the review!
I'm a bit conflicted regarding .char_range and .byte_range. Adding them would allow us to make .span pub(crate) which avoids the naming problem but it means:

trying to enforce that .char_range and byte_range are never used internally (internally, .span() should be used since it allows e.g. getting the starting byte and char index with .span().start()).
Code duplication by adding a char_range and byte_range method to every struct that has a Span (Suggestion, Sentence, IncompleteSentence, IncompleteToken, Token).
It makes some things which are easy to do with the Span API harder e.g. getting the start byte and char index as Position is .span().start() but would need .char_range().start and .byte_range().start otherwise. This is then easy to pass to e.g. rshift on the Suggestion which needs a Position.

so I think I'll keep it as it is. I'll look over this PR once more tomorrow and merge it then. Also if you haven't seen it already you might be interested in https://github.com/bminixhofer/nlprule/issues/50#issuecomment-808761738, an update regarding the spellchecking discussion.


StructuredOutputParser can't handle nested triple backticks

Checked other resources

[X] I added a very descriptive title to this issue.
[X] I searched the LangChain.js documentation with the integrated search.
[X] I used the GitHub search to find a similar question and didn't find it.
[X] I am sure that this is a bug in LangChain.js rather than my code.
[X] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

Example Code
import { StructuredOutputParser } from 'langchain/output_parsers';
import { z } from 'zod';

async function main() {
  const c =
    '{  "revisedOutput": "long markdown text with example ```javascript\\nfunction(){}``` here"}';

  const parser = StructuredOutputParser.fromZodSchema(
    z.object({
      revisedOutput: z.string(),
    }),
  );
  // the following line will throw an error
  const response = await parser.parse(c);
  console.log(response);
}

main();

Error Message and Stack Trace (if applicable)
/Users/dan/work/varuna/code/varuna/node_modules/langchain/dist/output_parsers/structured.cjs:83
            throw new output_parsers_1.OutputParserException(`Failed to parse. Text: "${text}". Error: ${e}`, text);
                  ^

OutputParserException [Error]: Failed to parse. Text: "{  "revisedOutput": "long markdown text with example ```javascript\nfunction(){}``` here"}". Error: SyntaxError: Unexpected token 'j', "javascript"... is not valid JSON
    at StructuredOutputParser.parse (/Users/dan/work/varuna/code/varuna/node_modules/langchain/dist/output_parsers/structured.cjs:83:19)
    at main (/Users/dan/work/varuna/code/varuna/app/dev/parse.tsx:15:33)
    at <anonymous> (/Users/dan/work/varuna/code/varuna/app/dev/parse.tsx:19:1)
    at Object.<anonymous> (/Users/dan/work/varuna/code/varuna/app/dev/parse.tsx:19:6)
    at Module._compile (node:internal/modules/cjs/loader:1546:14)
    at Object.transformer (/Users/dan/work/varuna/code/varuna/node_modules/tsx/dist/register-C1urN2EO.cjs:2:1122)
    at Module.load (node:internal/modules/cjs/loader:1317:32)
    at Module._load (node:internal/modules/cjs/loader:1127:12)
    at TracingChannel.traceSync (node:diagnostics_channel:315:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:217:24) {
  llmOutput: '{  "revisedOutput": "long markdown text with example ```javascript\\nfunction(){}``` here"}',
  observation: undefined,
  sendToLLM: false
}

Description

I am parsing a simple markdown, but that markdown might contain triple backticks.
using StructuredOutputParser fails on that scenario, partly because this will just randomly split the string in the middle...

System Info
$ npm info langchain

<EMAIL_ADDRESS>| MIT | deps: 14 | versions: 291
Typescript bindings for langchain
https://github.com/langchain-ai/langchainjs/tree/main/langchain/

keywords: llm, ai, gpt3, chain, prompt, prompt engineering, chatgpt, machine learning, ml, openai, embeddings, vectorstores

dist
.tarball: https://registry.npmjs.org/langchain/-/langchain-0.2.18.tgz
.shasum: f43e9aa8588048bfee38bf2d39e508c0410c4295
.integrity: sha512-7+5Y2FsdjlUBKJf1N+MyHn1PrGZQ9m87l3du7IeH4RiQp4j8Bz7mGV+Bjhr8FEXFjo85zLrbnpsN87pZCstubA==
.unpackedSize: 3.5 MB

dependencies:
@langchain/core: >=0.2.21 <0.3.0  langsmith: ~0.1.40
@langchain/openai: >=0.1.0 <0.3.0 openapi-types: ^12.1.3
@langchain/textsplitters: ~0.0.0  p-retry: 4
binary-extensions: ^2.2.0         uuid: ^10.0.0
js-tiktoken: ^1.0.12              yaml: ^2.2.1
js-yaml: ^4.1.0                   zod-to-json-schema: ^3.22.3
jsonpointer: ^5.0.1               zod: ^3.22.4

maintainers:
- nfcampos<EMAIL_ADDRESS>- jacoblee93<EMAIL_ADDRESS>- andrewnguonly<EMAIL_ADDRESS>- davidduong<EMAIL_ADDRESS>- hwchase17<EMAIL_ADDRESS>- basproul<EMAIL_ADDRESS>
dist-tags:
latest: 0.2.18    next: 0.3.0-rc.0

published 6 days ago by jacoblee93<EMAIL_ADDRESS>

Well, I know bot, that's what I linked.
I am sharing this because I think this is unexpected behavior, and took me an hour to figure what's happening because I didn't expect that langsmith is going to just split the string if there is something in between. I am not sure how to solve this, but maybe at least the error message could be improved, or one could try to first parse "as is" and only then remove those backticks.

I'm having same issue. I'm trying to Build an Extraction Chain but sometimes even with same prompt it throws the parse error.
An not good way that I'm using to try to prevent while it isn't fixed is creating a retry logic. For example:
For example:
const tryExtract = async (prompt: string, retries = 0) => {
  try {
    return await extract(prompt); // Here is the Extraction Chain logic
  } catch (error) {
     if (retries <= 5) {
       return tryExtract(prompt, retries + 1);
     }
     throw error;
  }
}

tryExtract("prompt here").then(console.log);
```

Hello, I'm working with @tlandart on this.
It seems @hnykda's idea could work, though we think it is probably cleaner to explicitly handle this case in the try block by only splitting when triple back ticks are outside of the curly brackets. It could look something like this:
...
try {
        const pattern = /```\s*\{/;
        const json = pattern.test(text)
            ? text.trim().split(/```(?:json)?/)[1]
            : text.trim();
        return await this.schema.parseAsync(JSON.parse(json));
    }
...

We have tested this approach with some possible values and it seems to behave as expected, but, if there is anything we have overlooked, please let us know.
We're first time contributors so if anyone has any comments on this it would be appreciated!

Looks valid to me


Laravel 11.x Compatibility

This is an automated pull request from Shift to update your package code and dependencies to be compatible with Laravel 11.x.
Before merging, you need to:

Checkout the l11-compatibility branch
Review all comments for additional changes
Thoroughly test your package

If you do find an issue, please report it by commenting on this PR to help improve future automation.

:alembic: Using this package? If you would like to help test these changes or believe them to be compatible, you may update your project to reference this branch.
To do so, temporarily add Shift's fork to the repositories property of your composer.json:
{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/laravel-shift/laravel-console-summary.git"
        }
    ]
}

Then update your dependency constraint to reference this branch:
{
    "require": {
        "nunomaduro/laravel-console-summary": "dev-l11-compatibility",
    }
}

Finally, run: composer update


conventional-commits user feedback

If you have any feedback about this feature, please share it below.

conventional-commits screenshot

This is a fantastic new feature, thank you a lot!
Two standard types are missing: revert, style
I would also add a tooltip when hovering the type to define them for beginners, especially the less known ones (style, perf)

Great feature!
I don't know why, but one of my repositories doesn't seem to be forming comments well.

https://github.com/eitsupi/neo-r-polars/commits/main/

I think linking to the spec in more places where it's mentioned would be helpful for teaching people what exactly it does: https://www.conventionalcommits.org/en/v1.0.0/

@cooljeanius where would you place that?

one of my repositories doesn't seem to be forming comments well

Fixed. It was unable to match a regex with trailing space because the code trimmed whitespace (the node content appeared as "feat:" so it did not match the required <keyword><colon><space> format)

@cooljeanius where would you place that?

Well, in the release notes, for one, and wherever else it's documented...

I really like this new feature!
Would it be at all possible to inject the --label-r, --label-g, --label-b, etc. CSS rules into the entire commit listitem with the label, instead of just the label?
This would make it simpler for people to modify the CSS of commit messages based on label. For example:

Also related to CSS, is there a particular reason the class selectors were changed to attribute selectors? (https://github.com/refined-github/refined-github/pull/7813/files#diff-3f9fea8670b02008b0c4d40fe195ad424c63509606fbe062497167784811a416)
I was under the impression that it was worse for performance.

modify the CSS of commit messages based on label

Use the :has() selector, like .listitem:has([rgh-conventional-commits=bug]) {border-color: red}. You’ll just have to copy the variables yourself and customize them if needed. I’m not a fan of making changes to code (and maintaining it) that one or zero people will take advantage of.

worse for performance.

Attribute selectors perform just about the same as class selectors, either way they don’t differ enough to be important. Here the code is just better with attributes.

making the chip/badge little bit smaller

Labels on GitHub are 12px, here I set them to 14px, the rest of the line is 16px. I tried both 12px and 16px and I think 14px is the sweet spot.

What are your thoughts on using emojis instead of colors to differentiate the various types? This would make the feature less in your face and it would keep the visual style/coolors people are already familiar with.

Before
	After

Demo CSS
[rgh-conventional-commits] {
    --label-r: 255;
    --label-g: 255;
    --label-b: 255;
    --label-h: 0;
    --label-s: 0;
    --label-l: 100;
}
[rgh-conventional-commits="feat"]:before {content: '✨ '}
[rgh-conventional-commits="fix"]:before {content: '🐛 '}
[rgh-conventional-commits="docs"]:before {content: '📚 '}
[rgh-conventional-commits="style"]:before {content: '💎 '}
[rgh-conventional-commits="refactor"]:before {content: '📦 '}
[rgh-conventional-commits="perf"]:before {content: '🚀 '}
[rgh-conventional-commits="test"]:before {content: '🚨 '}
[rgh-conventional-commits="build"]:before {content: '🛠 '}
[rgh-conventional-commits="ci"]:before {content: '⚙ '}
[rgh-conventional-commits="chore"]:before {content: '♻ '}
[rgh-conventional-commits="revert"]:before {content: '🗑 '}

I like emojis more that hard colors
It may not fit primer, but emoji + pale background is easy to visual grep:
Also, not sure if this is a widespread standard, but https://gitmoji.dev/ suggests different emojis

What about making this available in more places: PR lists, PR conversation tab, commit detail page (both old and new layout)?

available in more places: PR lists

Those already have labels. It would be too much.

PR conversation tab

Possible. I'm afraid it would also be confusing if we keep the existing style because it's easily confused with PR labels.

commit detail page

Possible. The issue would be the inability to see the real commit message though. At least now you can still access it if needed. Not sure if this is a concern.

@fregante After version without bg colors looks minimal and easy on eye compared to chip with background color.
You might have already tested but I still want to mention that do try with commits that already has emojis like fastapi

commits that already has emojis

Those are not “conventional commits” so this feature won’t apply there. The closest format would be fix(🐛): title, which is unnecessary

I like emojis more that hard colors

I disagree; I prefer the colors over emojis

Another vote against emojis - This feature already visually changes commit messages, adding emojis would be a step too far. It might make it hard to tell whether or not a commit originally had an emoji or if it was added by this.
Also (in my personal opinion), emojis don't look very good or professional. But that's a preference thing. I like colors better.

It might make it hard to tell whether or not a commit originally had an emoji or if it was added by this.

If it's inside chip (inside border) then it's from refined-github else from commit

I think that fight has been lost already 😃✌🎂
Between the two screenshots I proposed, the white+emoji one seems more serious/cleaner than the very colorful badges. But then that style is already present on issue lists too.

I really like his feature, but we don't strictly use the angular convention, so half of our commits are not correctly formatted.
Maybe we should use something more broader types that include e.g. impr (improvements) that I've seen quite often in the past.
Or make it customizable in the options maybe?

https://github.com/refined-github/refined-github/wiki/"Can-you-add-this-feature%3F"#3-it-doesnt-require-options

For semantical reasons, Feature commit labels should be green, not blue. Feature's very often imply additions. Additions are green. Removals are red. While removals are also feature changes, red is a reserved color, green is not. There is currently no usage of green so it also looks unbalanced in colors since you only see blueish, redish and greyish colors.
Before:

After:

I'll leave the current colors for now. They're customizable via CSS anyway. See my example code in https://github.com/refined-github/refined-github/issues/7814#issuecomment-2367550164 of you want to do that.
I'll release a new version tomorrow with fixes for the bugs reported.
Thanks for the feedback!


net/http: document that conn.Hijack might have left-over read/write timeouts on net.Conn

What does 'go version' print?

Found with go-1.2rc3, present in go-1.3, and still present in the default branch as of
20272:90616fa61ef4.

What steps reproduce the problem?

Setting a ReadTimeout or WriteTimeout on an http.Server and then hijacking a http.conn
(passed as the ResponseWriter) from a request handler leaves the deadlines set on the
connection.

This causes unexpected read and write behavior, requiring an unnatural removal of the
deadlines after hijacking. I found this while implementing the server half of the HTML5
EventSource API, and it also affects any other hijack users (e.g. go.net's websocket
package does not have code to clear deadlines when it takes over a connection; I have
not tested it though.)

A simplified example of the issue is here (probably useful to derive a regression test
from): http://play.golang.org/p/bRyjSayMJN

Adding these two lines fixes the issue:

diff -r 90616fa61ef4 src/pkg/net/http/server.go
--- a/src/pkg/net/http/server.go	Fri Jun 27 18:30:09 2014 -0700
+++ b/src/pkg/net/http/server.go	Fri Jun 27 22:43:18 2014 -0700
@@ -128,18 +128,20 @@
 func (c *conn) hijack() (rwc net.Conn, buf *bufio.ReadWriter, err error) {
 	c.mu.Lock()
 	defer c.mu.Unlock()
 	if c.hijackedv {
 		return nil, nil, ErrHijacked
 	}
 	if c.closeNotifyc != nil {
 		return nil, nil, errors.New("http: Hijack is incompatible with use of CloseNotifier")
 	}
+	c.rwc.SetReadDeadline(time.Time{})
+	c.rwc.SetWriteDeadline(time.Time{})
 	c.hijackedv = true
 	rwc = c.rwc
 	buf = c.buf
 	c.rwc = nil
 	c.buf = nil
 	c.setState(rwc, StateHijacked)
 	return
 }

I agree with Brad - let's document this.


Search api resource manager

MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Changelog
Add a changelog entry for this PR by answering the following questions:

What's the purpose of the update?

[x] new service onboarding
[ ] new API version
[ ] update existing version for new feature
[ ] update existing version to fix swagger quality issue in s360
[ ] Other, please clarify

When are you targeting to deploy the new service/feature to public regions? Please provide the date or, if the date is not yet available, the month.
When do you expect to publish the swagger? Please provide date or, the the date is not yet available, the month.
If updating an existing version, please select the specific language SDKs and CLIs that must be refreshed after the swagger is published.

[ ] SDK of .NET (need service team to ensure code readiness)
[ ] SDK of Python
[ ] SDK of Java
[ ] SDK of Js
[ ] SDK of Go
[ ] PowerShell
[ ] CLI
[ ] Terraform
[ ] No refresh required for updates in this PR

Contribution checklist:

[x] I commit to follow the Breaking Change Policy of "no breaking changes"
[x] I have reviewed the documentation for the workflow.
[x] Validation tools were run on swagger spec(s) and errors have all been fixed in this PR. How to fix?

If any further question about AME onboarding or validation tools, please view the FAQ.
ARM API Review Checklist

Applicability: :warning:
If your changes encompass only the following scenarios, you should SKIP this section, as these scenarios do not require ARM review.

Change to data plane APIs
Adding new properties
All removals

Otherwise your PR may be subject to ARM review requirements. Complete the following:

[x] Check this box if any of the following appy to the PR so that the label "ARMReview" and "WaitForARMFeedback" will be added by bot to kick off ARM API Review.  Missing to check this box in the following scenario may result in delays to the ARM manifest review and deployment.

Adding a new service
Adding new API(s)
Adding a new API version
-[ ] To review changes efficiently, ensure you are using OpenAPIHub to initialize the PR for adding a new version. More details, refer to the wiki.

[x] Ensure you've reviewed following guidelines including ARM resource provider contract and REST guidelines. Estimated time (4 hours). This is required before you can request review from ARM API Review board.

[ ] If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.

Breaking Change Review Checklist
If any of the following scenarios apply to the PR, request approval from the Breaking Change Review Board as defined in the Breaking Change Policy.

[ ] Removing API(s) in a stable version
[ ] Removing properties in a stable version
[ ] Removing API version(s) in a stable version
[ ] Updating API in a stable or public preview version with Breaking Change Validation errors
[ ] Updating API(s) in public preview over 1 year (refer to Retirement of Previews)

Action: to initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Addition details on the process and office hours are on the Breaking change Wiki.
Please follow the link to find more details on PR review process.

Hi @akning-ms, this is a resource manager pr.  Could you help redirect this to someone from the management-spec API review team

Hi @akning-ms, this is a resource manager pr. Could you help redirect this to someone from the management-spec API review team

Yes. removed you from assignee,   @gregoks next time, the change to readme in dataplane is by mistaken? next time better to send the PR which only for management plane or dataplane, not mix them in one PR to avoid confusion, dataplane & management PR has different review process.

Hi @akning-ms, this is a resource manager pr. Could you help redirect this to someone from the management-spec API review team

Yes. removed you from assignee, @gregoks next time, the change to readme in dataplane is by mistaken? next time better to send the PR which only for management plane or dataplane, not mix them in one PR to avoid confusion, dataplane & management PR has different review process.

Yea the dataplane readme was mistake, I removed it from this PR.

@gregoks - Signed off from ARM.


TypeError: off is not a function

I get this error whenever I use the Solana wallet adapter package in my Next.js project. Every time I run the project, I encounter this error initially. However, after refreshing the page, the wallet connection works fine, and transitions through Phantom also work well. But whenever I stop and restart the server on localhost, I consistently encounter this error again.
Unhandled Runtime Error
TypeError: off is not a function

Call Stack
StandardWalletAdapter.destroy
webpack-internal:/node_modules/<EMAIL_ADDRESS>(102:1)
eval
<EMAIL_ADDRESS>(24:14)
Array.forEach
<anonymous>
eval
<EMAIL_ADDRESS>(24:14)

This is also happening with me.. besides another error encounters often with object.setToggle.
These bugs must be solved quickly

Can you provide source code or a link to a hosted example of this please? I don't see this on our hosted example project: https://anza-xyz.github.io/wallet-adapter/example/

Closing as no repro / stale. Please provide more details.


Inline

Hi - my first GitHub pull request so apologies for anything missing and thanks in advance for any advice.
I have added in-lining the CSS as

Why don't you just render the css of the extract text plugin?

Yup - I actually did that in an early commit on my local repo.  But then I realised it was pig ugly.  For the user, they in effect have to tell Webpack to remove all CSS to an external css file and then extract it form there back into the HTML.    Yuk.  My suggested approach is intended to parallel the 'ExtractTextPlugin' approach whilst being an obvious alternative.  Your call though :-)

Why would you use a store? That's an antipattern. Think of multiple webpack-plugins or multiple compilations. Your store would be full of old data.

Maybe you could move this pull request into it's own plugin - the html-webpack-plugin offers hooks to modify the html output afterwards.

Re: using a store.
I thought I could get away with a naive implementation of the store as each invocation of webpack would cause a new instantiation.  However it looks like I'm the one being naive - in hindsight it is obvious as something like the 'watch' state will cause multiple compilations from a single instantiation.  Not sure I follow the use case of 'multiple webpack plugins' though...
Anyhow, back to the drawing board there - how to pass the CSS to the plugin. I am not keen to add to the Compilation as:
1: Conceptually it seems wrong: my understanding of the Compilation's purpose is to produce javascript and javascript-wrapped assets.  Attaching CSS which will have nothing to do with any of the Compilation's assets seems to be mixing concerns.
2: And more importantly: I am terrified of modifying core Webpack entities as I really do not yet have a grasp of the possible Unforeseen Consequences..
Any suggestions most welcome :-)
re: a separate plugin
There's an idea.  I'll take a look.  But please note that I have tried hard to minimize changes to html-webpack-plugin code so as to make this Pull request as risk-free as possible.  Once I sort out a store alternative I hope it might make it into the plugin.  Better for the user a single plugin with more options than two separate plugins to keep in sync.

PS : thanks for the feedback.  Much appreciated.

I believe this plugin is to bloated already so I would prefer to focus on separation of concerns and let it just generate the basic html skeleton ;)
If you want to do more than that then you might use the hooks or write a custom template like
https://github.com/jaketrent/html-webpack-template or https://github.com/SimenB/add-asset-html-webpack-plugin

Hi,
Happy to close this PR and move the in-lining to a separate plugin.
Would you be willing to accept a PR that moves any minify processing until after the 'html-webpack-plugin-after-html-processing' event?  I think that makes sense.
If you are worried about backward compatibility, I can think of two options: 1) another event, 2) an option on the minify option that defines when it happens.
Thoughts?

I guess I would add another event - why could minification be a problem?

Would love to see the plugin :+1:

Minification not a problem per se.
However one of the nice things about this PR is that it worked with the current minify options; i.e. including:
new HtmlWebpackPlugin({
  minify: { {
    minifyCSS: true
  }
});

would minify the inlined CSS as well.
Once the inlining is moved into a plugin fired by the 'html-webpack-plugin-after-html-processing' event, it is too late to use this option.  Obviously there are solutions to this, just none as clean as an new event firing between the 'after html processing' and before the call to html-minifier.
I'll get on with that plugin then.


[docker] debian baseimage update

Motivation
Keep debian base images up to date.
Have you read the [Contributing Guidelines on pull requests]
Yes
Test Plan
CI
Related PRs
Open dependabot docker prs.
If targeting a release branch, please fill the below out as well

Justification and breaking nature (who does it affect? validators, full nodes, tooling, operators, AOS, etc.)
Comprehensive test results that demonstrate the fix working and not breaking existing workflows.
Why we must have it for V1 launch.
What workarounds and alternative we have if we do not push the PR.

/land


Rare should equal failure with dictionary comparison

I have a dictionary equality ([[one should] equal:two]).
And sometimes this equality failed.
I look through the dictionaries and can't find any differences.
Then I rerun tests and everything fine.

@lolgear Thanks for the report! Does this problem still occur? It would be great if you could reduce this down to a smaller test case -- this is the first I've heard of an issue like this with Kiwi, so I wonder if maybe you have a race condition, or some other mutating state, in your tests?
@sharplet and I are trying to do some spring cleaning on open Kiwi issues. We care about fixing this if it's a problem, but I'll close this issue until we hear back from you. :)


services/rpcsrv: Strengthen Server error channel's type

Motivation
I'm trying to use rpcsrv.Server type in the developing application. I have global error channel which is used to sync app's error signals. In current implementation New contstructor accepts parameter of type chan error. Thus, I can't be sure that Server errors won't "disappear" from my application's view.
According to docs (and, accordingly, implementation), Server only writes errors to the channel. It seems that it is enough to accept a write-only channel.
P.S.
Similar work can be made for cases like<EMAIL_ADDRESS>

Blockchain.SubscribeForTransactions.

I don't remember exactly right now, but there was some reason for this behavior there.


Add tests with external python dependencies to CI build

What is this PR for?
Many of our python tests are excluded from the main build profile and hence, the CI builds as well because they require external dependencies. This PR modifies .travis.yml to download the needed python dependencies for our tests (matplotlib, pandas, and pandasql) using conda.
What type of PR is it?
Improvement
Todos

[ ] - matplotlib test for PySparkInterpreter

What is the Jira issue?
ZEPPELIN-1639
How should this be tested?
Make sure newly added python tests (for matplotlib and pandas) are passing on CI!
Screenshots (if appropriate)
Questions:

Does the licenses files need update? No
Is there breaking changes for older versions? No
Does this needs documentation? No

Looks like CI is stalled during PySpark execution somehow..
16/11/09 09:46:13 INFO PySparkInterpreter: File /tmp/zeppelin_pyspark-7835708002435081304.py created

No output has been received in the last 10 minutes, this potentially indicates a stalled build or something wrong with the build itself.

The build has been terminated

This CI failure is not unrelated, it also happened on my fork. I have a hunch that changing the path might have something to do with it, which would be odd since I regularly use Zeppelin with conda-based python installations with no issues all the time. I'll keep testing this further.


Constructor example uses misleading language when describing assignment

At https://docs.microsoft.com/en-us/dotnet/standard/attributes/writing-custom-attributes#declaring-constructors , I see:
> This public constructor takes a parameter and sets its value equal to a member variable.
The phrase “sets its value equal to” means that the value of “it” becomes the latter value. In this case, that sentence states that the value of the parameter has the value of the member variable assigned to it.
In fact, the opposite is happening. The parameter’s value is being assigned to the member variable. I think this language should be clarified.

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

ID: 7645edc8-46ad-431f-4f91-e77ba3941f17
Version Independent ID: ff721860-b8e8-3c3d-aefa-f1ec3e00fa69
Content: Writing Custom Attributes
Content Source: docs/standard/attributes/writing-custom-attributes.md
Product: dotnet
GitHub Login: @rpetrusha
Microsoft Alias: ronpet

Thanks for pointing out this error, @binki. We've opened PR #6508 to address it.


Transactions Support

The project does support transactions?
I think it would be interesting to offer support for SQL Transactions to simulate the behavior of a "Plan/Apply" using terraform as a parallel. This would ensure the safety of using iasql in pipelines.
Example:
sequenceDiagram
    participant Client
    participant Database

    Client->>Database: BEGIN TRANSACTION
    activate Database

    Client->>Database:  INSERT INTO dynamo_table (table_name, table_class, throughput, primary_key, region) VALUES (...)
    Database-->>Client: Success
    Client->>Database: INSERT INTO queue (name, fifo_queue, region) VALUES (...)
    Database-->>Client: Success

    alt Check resource as a `plan` - All operations successful
        Client->>Database: COMMIT (apply)
        Database-->>Client: Transaction Committed
    else Any operation fails
        Client->>Database: ROLLBACK
        Database-->>Client: Transaction Rolled Back
    end
    deactivate Database

Hi @msfidelis because we needed to hook in some logic in the transactions themselves, we couldn't use standard Postgresql transactions and had to implement approximations of them. You can read about how they work here.


Resize Dropdown and Colopicker to their full width

Colopicker and Dropdown now use all the available width.

The dropdown button and color-picker buttons now have the same width (28px).
A new boolean attribute short is added to the color picker specifying whether the text box should be displayed or not.
If the text box is displayed, the widget width is @widget-width. If not, it is @widget-width-short.
In the short mode, if there is a description, the color picker button is justified to the right, and if there is only the color picker button to displayed, it is on the left.

@jdfreder green button?

Sounds good! Thanks Sylvain!


Support builds for private git repos

https://github.com/redhat-appstudio/application-service/commit/2976522a9052887a66a537c5e502cb7ac3fb8848

Self approving since the CI / e2e tests are green, and the only change going in was previously approved.
/approve


InvalidArgumentError:  indices[10] = -1 is not in [0, 16081) 	 [[node model_1/embedding_1/embedding_lookup (defined at :1) ]] [Op:__inference_test_function_10607]

I am building a Wide & Deep model with Keras. However, after training and testing the model I get this error. I find the -1 very strange.
This is my code:
from tensorflow.keras.layers.experimental.preprocessing import StringLookup

def encode_inputs(inputs, use_embedding=False):
    encoded_features = []
    num_oov_indices = 10
    for feature_name in inputs:
        if feature_name in CATEGORICAL_FEATURE_NAMES:
            vocabulary = CATEGORICAL_FEATURES_WITH_VOCABULARY[feature_name]
            # Create a lookup to convert string values to an integer indices.
            # Since we are not using a mask token nor expecting any out of vocabulary
            # (oov) token, we set mask_token to None and  num_oov_indices to 0.
            lookup = StringLookup(
                vocabulary=vocabulary,
                mask_token=None,
                num_oov_indices=num_oov_indices,
                output_mode="int" if use_embedding else "binary",
            )
            if use_embedding:
                # Convert the string input values into integer indices.
                encoded_feature = lookup(inputs[feature_name])
                #embedding_dims = int(math.sqrt(len(vocabulary)))
                embedding_dims = int(np.ceil(len(vocabulary) ** 0.25))

                # Create an embedding layer with the specified dimensions.
                embedding = layers.Embedding(
                    input_dim=len(vocabulary), output_dim=embedding_dims
                )
                # Convert the index values to embedding representations.
                encoded_feature = embedding(encoded_feature)
            else:
                # Convert the string input values into a one hot encoding.
                encoded_feature = lookup(tf.expand_dims(inputs[feature_name], -1))
        else:
            # Use the numerical features as-is.
            encoded_feature = tf.expand_dims(inputs[feature_name], -1)

        encoded_features.append(encoded_feature)

    all_features = layers.concatenate(encoded_features)
    return all_features

The model creation:
def create_wide_and_deep_model():

    inputs = create_model_inputs()
    wide = encode_inputs(inputs)
    wide = layers.BatchNormalization()(wide)

    deep = encode_inputs(inputs, use_embedding=True)
    for units in hidden_units:
        deep = layers.Dense(units)(deep)
        deep = layers.BatchNormalization()(deep)
        deep = layers.ReLU()(deep)
        deep = layers.Dropout(dropout_rate)(deep)

    merged = layers.concatenate([wide, deep])
    outputs = layers.Dense(units=1, activation="linear")(merged)
    model = keras.Model(inputs=inputs, outputs=outputs)
    return model

When I try: wide_and_deep_model.fit(train_dataset, epochs=num_epochs)
I get the following error:
InvalidArgumentError:  indices[119] = 16083 is not in [0, 16081)
	 [[node model/embedding_1/embedding_lookup (defined at <ipython-input-28-db18f4de269d>:1) ]] [Op:__inference_train_function_2502]

Errors may have originated from an input operation.
Input Source operations connected to node model/embedding_1/embedding_lookup:
 model/embedding_1/embedding_lookup/1869 (defined at /usr/local/Cellar/python@3.9/3.9.4/Frameworks/Python.framework/Versions/3.9/lib/python3.9/contextlib.py:117)

Function call stack:
train_function```

@nielsnpo
Can you please refer to this link and let us know. [link1]

I have a similar Issue:
 (0) Invalid argument:  indices[4,0] = -1 is not in [0, 8) 	 [[node model_y_dnn/condition_embed_layer/embedding_lookup (defined at /tmp/tmpb36iffpd/dnn_model.py:163) ]]   (1) Invalid argument:  indices[4,0] = -1 is not in [0, 8) 	 [[node model_y_dnn/condition_embed_layer/embedding_lookup (defined at /tmp/tmpb36iffpd/dnn_model.py:163) ]] 	 [[model_y_dnn/condition_embed_layer/embedding_lookup/_72]]
for a lookup that is defined as len(vocab)+1


Channel

Hi. firstly I would like to thank you so much! . this has been life changing good for me!
I 'm trying to send a message in my public channel through the bot, but I cannot find the Telegram ID of the channel, so that I use SendMessage(IDOFTHECHANNEL,Text); Can you help me with that?! Thanks

If you configure your bot to listen for messages, and add a breakpoint after using GetMessages() while debugging, you should be able to determine which channel the message is coming from, and get its ID.
Additionally, while I believe this library still works, it's unmaintained. You might be better off using something like: https://github.com/MrRoundRobin/telegram.bot


refactor: move public images to public dir

Fixes https://github.com/ShortRuby/rubyandrails.info/issues/38
The images meant for entities were kept in the app/assets/images directory which isn't wrong but loads up the server more than it needs.
Having them under /public ensures that they are more easily served.
They will go away after we add AS support.
https://github.com/ShortRuby/rubyandrails.info/issues/35

Closing in favor of https://github.com/ShortRuby/rubyandrails.info/pull/40.
When we'll introduce https://github.com/ShortRuby/rubyandrails.info/issues/35, this PR will not be required


rolling_update: fix mon+rgw/multisite collocation

When monitors and rgw are collocated with multisite enabled, the
rolling_update playbook fails because during the workflow, we run some
radosgw-admin commands very early on the first mon even though this is
the monitor being upgraded, it means the container doesn't exist since
it was stopped.
With this commit we now run an ephemeral container instead for running
those radosgw-admin commands so we don't need to care if the mon container
is running.
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1970232
Signed-off-by: Guillaume Abrioux<EMAIL_ADDRESS>

backport note:
the task fetch the realm(s) in stable-6.0, stable-5.0 and stable-4.0 must be modified given it doesn't use the radosgw_realm module

@dsavineau maybe we should skip all of this https://github.com/ceph/ceph-ansible/blob/master/roles/ceph-handler/tasks/main.yml#L52-L78 when rolling_update is True ?

jenkins test centos-non_container-external_clients

@dsavineau maybe we should skip all of this https://github.com/ceph/ceph-ansible/blob/master/roles/ceph-handler/tasks/main.yml#L52-L78 when rolling_update is True ?

I think that's a good idea. I don't see any reason to play those tasks during the upgrade workflow.
IMHO those tasks are only needed during the main deployment or other day 2 operations like scale up and others

jenkins test centos-non_container-all_daemons

jenkins test centos-container-all_daemons

closing in favor of #6577


fix(admin_ui): peer dependency conflict issue

Pull Request Test Coverage Report for Build<PHONE_NUMBER>6
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 9.697%

Totals

Change from base Build<PHONE_NUMBER>3:
0.0%

Covered Lines:
11076

Relevant Lines:
114219

💛  - Coveralls


how to confuse,compression,encryption the react native js code?

Description
React Native JS bundle file how to confuse, compression, encryption, the existing program can not guarantee on the assets directory index.bundle file security?
When i decompose the android apk file, I get the index.android.bundle file from assets directory;
Then i open the bundle file with sublime text, I can easy find my request api  that was defined as const in js code!
React Native Is there a mechanism similar to android code confusion?
The stackoverflow has same question as below:
http://stackoverflow.com/questions/41542516/how-to-confuse-compression-encryption-the-react-native-js-code
Anyone help me? thanks very much

We don't currently offer any code obfuscation features.
If this feature is important to you, please post the feature request on Canny, and the community can vote and help prioritize it for the core team!
https://react-native.canny.io/feature-requests


🌱 Minor fixes in response to review comments to 1265

Summary
Same as the title.

/cc @MikeSpreitzer


[bug] model JSON of page is retrieved with the wrong path

Describe the bug
A clear and concise description of what the bug is.
Package version
1.3.10 upwards. 1.3.9 is working.
To Reproduce
Steps to reproduce the behavior:
1: Use SPA editor 1.0 on an AEM instance
2: Load in any page that is not included in the model root JSON so it has to be requested
3: Observe the behaviour (see screenshots)
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
1.3.9:

1.3.10+:

If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.

The only reason this doesn't completely break the spa editor is because the sling engine can handle this and still returns a model JSON , but still, this is quite dangerous.

Any further updates on this? same thing happens on publish URL too... if the site is /my-app/us/en/home.html the aem page model sends the request for en.model.json instead of home.model.json

Will try out the new version ... thank you !!!!

This is not yet fixed facing the same issue with v. 1.3.12  as well


Added json unmarshal for potentially encoded JSON string values

Signed-off-by: Steven Gettys<EMAIL_ADDRESS>

Need to add a couple more json encoding scenarios to the tests to validate

Hey @sgettys , I added below test in the test-cli.sh and the test failed. It looks like we need to always parse the output from terraform -json through a json parser. Do you mind to update the code to handle it?
${PORTER_HOME}/porter install --verbosity=debug --param file_contents='foo!' --param map_var='{"foo": "bar"}' --param array_var='["mylist", "https://ml.azure.com/?wsid=/subscriptions/zzzz/resourceGroups/rg-scctre-ws-935d/providers/Microsoft.MachineLearningServices/workspaces/ml-scctre-ws-935d-svc-0cdf&tid=zzzzz"]' --param boolean_var=true --param number_var=1 --force

echo "Verifying installation output after install"
verify-output "file_contents" 'foo!'
verify-output "map_var" '{"foo":"bar"}'
verify-output "array_var" '["mylist", "https://ml.azure.com/?wsid=/subscriptions/zzzz/resourceGroups/rg-scctre-ws-935d/providers/Microsoft.MachineLearningServices/workspaces/ml-scctre-ws-935d-svc-0cdf&tid=zzzzz"]'

Hey @sgettys , I added below test in the test-cli.sh and the test failed. It looks like we need to always parse the output from terraform -json through a json parser. Do you mind to update the code to handle it?
${PORTER_HOME}/porter install --verbosity=debug --param file_contents='foo!' --param map_var='{"foo": "bar"}' --param array_var='["mylist", "https://ml.azure.com/?wsid=/subscriptions/zzzz/resourceGroups/rg-scctre-ws-935d/providers/Microsoft.MachineLearningServices/workspaces/ml-scctre-ws-935d-svc-0cdf&tid=zzzzz"]' --param boolean_var=true --param number_var=1 --force

echo "Verifying installation output after install"
verify-output "file_contents" 'foo!'
verify-output "map_var" '{"foo":"bar"}'
verify-output "array_var" '["mylist", "https://ml.azure.com/?wsid=/subscriptions/zzzz/resourceGroups/rg-scctre-ws-935d/providers/Microsoft.MachineLearningServices/workspaces/ml-scctre-ws-935d-svc-0cdf&tid=zzzzz"]'

In addition, we would like to have all PRs to link to the issue that's trying to fix and have an explanation of the change. If the issue is not clear, it's best to summarize the issue in the PR description so that reviewers can easily catch up

Great test case, thanks for finding that! I'll address that test case and update the PR, thanks!

Hey @sgettys , I added below test in the test-cli.sh and the test failed. It looks like we need to always parse the output from terraform -json through a json parser. Do you mind to update the code to handle it?
${PORTER_HOME}/porter install --verbosity=debug --param file_contents='foo!' --param map_var='{"foo": "bar"}' --param array_var='["mylist", "https://ml.azure.com/?wsid=/subscriptions/zzzz/resourceGroups/rg-scctre-ws-935d/providers/Microsoft.MachineLearningServices/workspaces/ml-scctre-ws-935d-svc-0cdf&tid=zzzzz"]' --param boolean_var=true --param number_var=1 --force

echo "Verifying installation output after install"
verify-output "file_contents" 'foo!'
verify-output "map_var" '{"foo":"bar"}'
verify-output "array_var" '["mylist", "https://ml.azure.com/?wsid=/subscriptions/zzzz/resourceGroups/rg-scctre-ws-935d/providers/Microsoft.MachineLearningServices/workspaces/ml-scctre-ws-935d-svc-0cdf&tid=zzzzz"]'

In addition, we would like to have all PRs to link to the issue that's trying to fix and have an explanation of the change. If the issue is not clear, it's best to summarize the issue in the PR description so that reviewers can easily catch up

Might need to think about how to solve more complex nested json encoded values. Maybe should define some behaviors for this. Theoretically we could have n-nested json objects as outputs from terraform that could potentially have encoded JSON at any level. Let me dig into this a little more, might have to do a custom unmarshaler to solve this.

Closes #94

Reworked to support decoding nested values by unmarshaling into empty interface and then re-encoding with a custom json encoder that skips the html encoding.


npm package not registered.

This doesn't seem to be published:
npm install mesh-slice-polygon

The mesh-slice-polygon looks like it isn't currently published.

Indeed. Well, it is npm install git+https://github.com/tmpvar/mesh-slice-polygon.git then.


Activating the WP plugins causes a SyntaxError: Unexpected token '<'

Activating and configuring the Plausible WP Plugin successfully (= I see data coming in on the dashboard) causes a JavaScript or JSON error on my Wordpress pages to show up:
plausible analytics [Error] SyntaxError: Unexpected token '<'

(WordPress 6.1.1, self-hosted, Plausible Analytics 1.2.4, plausible.io Cloud)
Tested by deactivating the plugin - this error is gone. Unfortunately I cannot really trace it back, because it's reported on Line :1 on the root HTML document element…
Any ideas?

Found the reason: when using a Reverse Proxy on my custom domain (with the corresponding WP plugin setting), I also need to forward requests to the following path to plausible.io:
/js/plausible.outbound-links.js

This is in addition to the 2 paths which are stated in the docs here: https://plausible.io/docs/proxy/introduction#are-you-concerned-about-missing-data


[Suggestion] - Request for Adding Resource Requests and Limits to import-certs Init Container in Jira

Suggestion
We need to import additional certificates to Jira using the values.yaml file by specifying the secret name with .Values.jira.additionalCertificates.secretName. This secret name allows Jira to fetch the cacerts from the secret and add them to the pod.
However, there is no current option to set resource requests and limits for the import-certs init container. This functionality is essential for ensuring that the container has adequate resources allocated, similar to the nfsPermissionFixer pod.
Below is the current configuration:
yaml
Copy code
- name: import-certs
image: {{ include "jira.image" . | quote }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
volumeMounts:
- name: keystore
mountPath: /var/ssl
- name: certs
mountPath: /tmp/crt
command: ["/bin/bash"]
args: ["-c", {{ include "jira.addCrtToKeystoreCmd" . }}]
{{- end }}
Proposed Change:
We request adding the ability to specify resource requests and limits for the import-certs init container in the values.yaml file, similar to how it is done for the nfsPermissionFixer pod.
Here is an example of how the modified configuration should look:
yaml
Copy code
- name: import-certs
image: {{ include "jira.image" . | quote }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
resources:
{{- with .Values.**.resources }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- end }}
volumeMounts:
- name: keystore
mountPath: /var/ssl
- name: certs
mountPath: /tmp/crt
command: ["/bin/bash"]
args: ["-c", {{ include "jira.addCrtToKeystoreCmd" . }}]
{{- end }}
Product
Jira
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Thanks for addressing the fix @bianchi2


WBC-1651 Remove "breathe" css animation from audio-only image

Coverage remained the same at 100.0% when pulling fdae00accdac784cbc55346ea31e110dc4683da6 on WBC-1651 into cf141628e2f1f506e313660d7c497ffa89f7e3c2 on master.


Implement SA1642

Fixes #162 (ConstructorSummaryDocumentationMustBeginWithStandardText)

No. Way. :open_mouth:

And it even comes with a code fix! :open_mouth:

Of course it does! I don't want to write these texts myself ;) The code fix was actually very painfull to write. Maybe Im missing an easier way to do that

Why is this diagnostic so important in particular btw?

Because I do not joke around with my documentation. :+1:
This serves two purposes:

It verifies correctness of something that is not wrong very often but requires way too much reading to find those cases.
It provides a reference example for this type of behavior (checking the text of documentation associated with certain elements). I plan to, for example, provide an analyzer for implementations of IHttpApiCall<T> like this one which use a standard form of text. There will be hundreds of these classes in that SDK when it's complete.

We're going to need to tweak this a bit from the rules established by StyleCop. For now I'm taking the following approach:

Update the code to allow additional text at the end of the first sentence. For example, you could have this:

Initializes a new instance of the <see cref="MyType"/> class using A and B.

Merge this pull request.

File issues for discussion and/or work on modifications to the behavior of this analysis rule.


hangs on restarting redis

Hi,
Very nice Ansible script. Good job. Thank you, it helps a lot.
However, when I run it, it hangs on the "restart redis" task, I have to stop it manually:
NOTIFIED: [rolebooks/db/redis | restart redis] ********************************

Do you have the same behavior?
When I look at the services running on the targeted machine, it seems to be ok:
vagrant@vagrant-ubuntu-trusty-64:/$ ps aux | grep redis
root      6851  0.0  0.1   4444   648 ?        S    01:10   0:00 /bin/sh /etc/init.d/redis_6379 start
redis     6855  0.3  0.4  36740  2388 ?        Sl   01:10   0:00 /opt/redis/bin/redis-server <IP_ADDRESS>:6379

Here is how I used the script:
- hosts: all
  sudo: yes
  roles:
    - {
        role: rolesbooks/db/redis,
        redis_version: "2.8.17",
        redis_bind: "<IP_ADDRESS>",
        redis_port: "6379",
        redis_logfile: "{{project_dirs.logs}}/redis.log",
        redis_databases: "1",
        redis_daemonize: "no",
        redis_maxmemory: "100mb",
        redis_maxmemory_policy: "allkeys-lru",
      }

Thanks.

I am experiencing the same issue but it happens when using the
redis_password: somelongpassword property
From what I can tell it looks like in the init script that resides in /etc/init.d/redis_6379 is expecting a variable to be set when using password auth.
if [ -n "$REDIS_PASSWORD" ]; then     CLIEXEC="${CLIEXEC} -a ${REDIS_PASSWORD}" fi
so in the stop block of code
  stop)         if [ -f "$PIDFILE" ]; then             PID=$(cat "$PIDFILE")             log_daemon_msg "Stopping $NAME..."             $CLIEXEC shutdown             while [ -x /proc/${PID} ]; do                 log_daemon_msg "Waiting for Redis to shutdown ..."                 sleep 1             done             log_end_msg 0         else             log_daemon_msg "$NAME is not running"             log_end_msg 0         fi         ;;
it issues the command
 /opt/redis/bin/redis-cli -p 6379
that fails on authentication and enters an infinite loop.
My question is should I be setting this value somewhere that is not obvious from the documentation?

I know it's "a bit" old issue, but I just experienced exactly same behaviour as @YAmikep
The only difference is that I was not daemonizing redis. I actually only added redis_log variable, that's all. Steps, exactly what I did:

Run playbook with this role (default settings, latest role version). At this moment, I did not check if redis is working.
Later, I realized that my app cannot connect redis. Error was "MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk"
I decided to check redis logs and realized that there is no logfile by default. So I added redis_logfile: '/var/log/redis.log' and ran playbook again.
It hangs at restart redis. ^C, run playbook again - now it hangs at ensure redis is running.
Tried to run few more times with same result.
Removed redis_logfile and ran it again. Still hangs.
Connected to server via ssh and killed redis-server process. It restarted and.. my app now can connect redis.
Just to make sure, ran playbook once again - it worked just fine, no hangs.

OS is Ubuntu 16.04 (server), Xubuntu 16.04 (client), ansible is <IP_ADDRESS>, python is 2.7.12.
Clearly don't know where was the problem. Posting this to help anyone who finds himself in same situation.


ZEPPELIN-930 ] fix width and not close li tag in searchbar

What is this PR for?
closed li tag.
and Add a tooltip, and reduced the size of the horizontal search bar.
What type of PR is it?
Bug Fix and Improvement
What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-930
How should this be tested?
It changes the browser horizontal size.
Use the search feature.
Screenshots (if appropriate)
before

after

Questions:

Does the licenses files need update? no
Is there breaking changes for older versions? no
Does this needs documentation? no

@cloverhearts Good catch to close <li> tag 👍  Is there any particular reason that you changed placeholder to tooltip ?

Looks great to me.
Let's merge after reverting placeholder text back.

@bzz Thank you for you're review.
i will reverting placeholder text.
@minahlee @AhyoungRyu

Modification was completed.
Please review for this PR.

@cloverhearts Thanks for addressing that! LGTM 👍

LGTM

Merging if there is no more discussion


CDS, listeners not initialized, envoy server not starting

Title: CDS, listeners not initialized, envoy server not starting, stuck at DiscoveryRequest to xDS
Description:

Custom envoy image built on top of 1.30.4 version.
xDS control plane version: github.com/envoyproxy/go-control-plane v0.11.1
Trace logs enabled.

CDS, listeners not initialized, envoy server not starting, stuck at DiscoveryRequest to xDS. Admin endpoint also not initialized. We see a log 'Sending DiscoveryRequest for type.googleapis.com/envoy.config.cluster.v3.Cluster' with all the extensions in this request.
We see no grpc stream being established between envoy and xDS. We dont see below logs in our xDS app. Also no response logs at envoy side.
OnStreamOpen    {"name": "xds", "streamID": 1, "typeURL": ""}
OnStreamRequest {"name": "xds", "streamID": 1, "discovery.request": {"node":{"id":"043f95f81807","cluster":"staging_envoy","locality":{"region":"unknown","zone":"unknown","sub_zone":"unknown"}},"version":"","typeurl":"type.googleapis.com/envoy.config.cluster.v3.Cluster","respNonce":"","errorDetail":"<nil>"}}

Note: All IPs are masked in attached logs.
one of the xDS host ip: <IP_ADDRESS>
[Tags: "ConnectionId":"3"] connecting to <IP_ADDRESS>:19000
We see below logs for this connection id before sending DiscoveryRequest
[Tags: "ConnectionId":"3"] read error: Resource temporarily unavailable, code: 0
[Tags: "ConnectionId":"3"] hc grpc_status=0 service_status=serving health_flags=/failed_active_hc/pending_active_hc
Config:

Attaching sample config file.
smtp-test-config.yaml.txt

Logs:

Attached log file - smtp-pod-logs
smtp-pod-logs.txt

ConnectionId 3 looks like a failed health check request:
[2024-09-16 17:52:07.233][1][debug][hc] [source/extensions/health_checkers/grpc/health_checker_impl.cc:394] [Tags: "ConnectionId":"3"] hc grpc_status=0 service_status=serving health_flags=/failed_active_hc/pending_active_hc

until that passes the XDS requests will fail

Is there any issue with xDS cluster config?
    name: xds
    per_connection_buffer_limit_bytes: 32768 # 32 KiB
    type: STRICT_DNS
    connect_timeout: 5s
    # TODO: More evaluation for policy
    lb_policy: LEAST_REQUEST
    load_assignment:
      # TODO: add "policy" configuration
      cluster_name: xds
      # TODO: This must be plain text via NLB PrivateLink
      endpoints:
      - lb_endpoints:
        - endpoint:
            address:
              socket_address:
                address: xds.edge.svc.cluster.local.
                port_value: 19000

    health_checks:
      - interval_jitter: 1s
        unhealthy_threshold: 6
        healthy_threshold: 1
        event_logger:
        - name: envoy.health_check.event_sinks.file
          typed_config:
            "@type": type.googleapis.com/envoy.extensions.health_check.event_sinks.file.v3.HealthCheckEventFileSink
            event_log_path: "/dev/stdout"
        always_log_health_check_failures: true
        timeout: 4s
        interval: 10s
        grpc_health_check:
          service_name: xds:ready
    #max_requests_per_connection: xxx
    circuit_breakers:
      thresholds:
        - priority: DEFAULT
          max_connections: 20000
          max_pending_requests: 20000
          max_requests: 20000
          retry_budget:
            budget_percent:
              value: 25.0
            min_retry_concurrency: 10
        - priority: HIGH
          max_connections: 20000
          max_pending_requests: 20000
          max_requests: 20000
          retry_budget:
            budget_percent:
              value: 25.0
            min_retry_concurrency: 10
    typed_extension_protocol_options:
      envoy.extensions.upstreams.http.v3.HttpProtocolOptions:
        "@type": type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions
        upstream_http_protocol_options:
        common_http_protocol_options:
          idle_timeout: 55s
          max_headers_count: 170
          headers_with_underscores_action: ALLOW
        explicit_http_config:
          http2_protocol_options:
            max_concurrent_streams: 1024
            initial_stream_window_size: 65536 # 64 KiB
            initial_connection_window_size: 262144 # 256 KiB
            # allow_connect: ???
    dns_refresh_rate: 5s
    dns_failure_refresh_rate:
      base_interval: 1s
      max_interval: 10s
    respect_dns_ttl: true
    dns_lookup_family: V4_ONLY
    # use_tcp_for_dns_lookups: true
    track_cluster_stats:
      timeout_budgets: true
      request_response_sizes: true
    common_lb_config:
      healthy_panic_threshold:
        value: 0.0
      ignore_new_hosts_until_first_hc: true
    upstream_connection_options:
      tcp_keepalive:
        keepalive_probes: 5
        keepalive_interval: 5
        keepalive_time: 300
    # Remove hosts as soon as they are removed from discovery.
    # If this flag is set to false Envoy keeps them around until
    # they become unhealthy to handlemisbehaving xDS services.
    ignore_health_on_host_removal: true
    ```

 We are unable to figure out why grpc health check is failing.

Also, we have used gcc-10 to compile the code, as we were getting errors with gcc-11 present in https://hub.docker.com/layers/envoyproxy/envoy-build-ubuntu/f94a38f62220a2b017878b790b6ea98a0f6c5f9c
It seems gcc-11 treats warnings as errors.
relevent issue raised for this: https://github.com/envoyproxy/envoy/issues/35943

I also tried with tcp healthchecks for xDS cluster.
[Tags: "ConnectionId":"3"] hc tcp healthcheck passed, health_check_address=<IP_ADDRESS>:19000
Even though tcp healthcheck passed, DiscoveryRequest request is not being sent to xDS.
Only Log for xDS connection after 'Sending DiscoveryRequest' is
[Tags: "ConnectionId":"3"] close during connected callback.
@zuercher

Can someone please help with this issue?
@zuercher

This issue is resolved now.
We rebuilt our custom envoy image by adding our code on top of v1.31.2. We compiled using gcc-11.
Now xDS grpc communication working fine.
Not sure what was the issue earlier. I see the protobuf version is upgrade from 25.3 to 26.1 in latest version.


Shift+Tab doesn't go back to previous item

Toggle the extension Press Tab to switch selection, by pressing Shift+Tab the selection goes to the next item, instead of to the previous one, as expected.

Thanks, I'll have a fix up for this in the next few days.


Fix checksum check in no-pre-existing-paths

This is for MMENG-3803 (checksum check in no-pre-existing-paths rule does not work).
The root cause is quarkus service client throws exception when it hits 404. The exception was not caught by the rule script. It broke the rule without sending any error message.
There are two ways to fix it. One is to use a special config to avoid such exception. The other is to catch and handle such errors as in this pr.

LGTM.


Beginner Question: refreshing generated site doesn't play nice with routing

Hi, I might be missing something obvious, as I'm new to this framework as well as Elm in general.
However it seems that the routing works nice for clicking (e.g. click on a nav button and go to a new page).
The history and all works great as well.
However. When refreshing a page (not the home page), or when trying to go to a route directly,
the page cannot be found. This is not true when using elm-spa server, as there that does work all correctly.
It is however true when serving a generated website on something like gh-pages however.
I found some dirty tricks and can probably make it work. In short here is how it works:

they define a custom 404.html page which turns the path into query parameters, in a sane way, handling all its complexities (step 1)
the home page is than supposed to use this info to route from within the Elm code to that actual desired route (step 2)

Step 1 was just copy paste and that works. Step 2 will require some effort to actually add conditional logic to my home page to redirect somehow. And while I'm not afraid of the work, nor do I have doubt that I can make some Frankenstein work here, I do wonder if this isn't a small that I should actually take a closer look at.
As such:

Am I trying to do something that doesn't make any sense? E.g. does it make sense to use static hosting such as gh-pages, or should I need to use something dynamic instead?
Is there a cleaner solution here?
Can elm-spa somehow handle this out of the box? I would have imagined it would, it is in the end one-page application.

Now to be fair. I suspect that I do need to hack something here together, as this hasn't as much to do with Elm-spa, or even Elm, but more how browsers try to interpret urls. As such I suspect that I do always need use some kind of 404.html page as a fallback and do the routing properly to handle this browser behaviour. Even so, I wonder if there is perhaps a built-in or community driven approach for this, specifically for elm-spa. I couldn't find something, but I'm hoping my search-fu is failing.
On a sidenote I also wondered, as I couldn't find it anywhere, if it possible to make all routing work with relative paths instead of absolute paths. As that would be required to make it work with github pages that doesn't have custom domains. In my case I fixed it by attaching a custom (Apex) domain to it and that does work than nicely with absolute paths. But still, I do wonder if it wouldn't have been possible by having control over how it routes. I imagine one answer would be to use string links instead of the nice typed routes, but that is a very big trade-off.

good question -- in my app, I dynamically re-map all the valid routes to return index.html.
https://github.com/simpleiot/simpleiot/blob/master/api/server.go#L46
I'm not sure how you would do this with a static site ...
This is a bit of a hack, but could you simply copy index.html to all your routes?


Content flickering

Thank you for the awesome work! I love it.
Can you tell me how can I prevent to reload content before animation? Content loads -> then animation triggers. This creates not looking good flicker of content. Do you have any solution for that?

Hi @Frostbourn, the quick fix is to use version 2.4.0 of the library (which initially sets “display: hidden” to the child element), I will release a new version that lets you choose wether to initially hide elements or not by setting a prop.

Great, I can't wait!

Version 3 with a fix for this is now on beta, I'm closing this.


pug & pug-cli iinstallation success but " bash: pug: command not found"?

pug & pug-cli iinstallation success but"$ pug -v" " bash: pug: command not found"What causes it ?

The problem was solved .Make changes in your computer's environment configuration.
"C:\Users\MY\AppData\Roaming\npm"in "用户变量-PATH" Add the location of the folder where pug-cli is located

and for Linux users if you install pug and pug-cli and you get pug not found then you should use sudo to because the /usr/bin cat add a packages in the normal users


Doc: Cable Lengths

Reed Switch: 150mm leads

PIO to Orbitty Power Cable:
JST-XH x2 -> 22 AWG -> Bare Lead
Total length: 60mm

PWR Switch Extension Cable:
JST XH x 2 F -> 22 AWB -> JST XH x2 M
Total length: 160mm
Looking at cable end F - pin 1 on left

BK -> GND
RD -> VIN

USB hub 20 cm

LED extensions:
22 AWG 60mm


What is qesync..?

I'm curious.
When i use it? It send fake event?

+1 😄

@dilame Thanks :)

😄  this guy. I think (just theory) when I first wrote first version, I remember that this request was related to telling instagram what is device capable of and what experimental features can be used.
But not sure really.

@dilame @huttarichard thanks guys :)


Partial training while freezing most of the model/parameters

Is partial training of a few million parameters while freezing the rest of a multi-billion parameter model possible?

Thanks for the quick reply and tips on low VRAM models.
From a theoretical standpoint do you think it will ever be possible to train only part of the model and leave the rest frozen (and outside of VRAM) ?

We are already using this approach with LoRA example, most weights are frozen and offloaded to RAM, only when we are interacting with them directly we store them on VRAM.


Min. Window width dependent on zoom level

OS: Windows
Behaviour: the desktop client has a minimum Window width which is 👍
However I would like it even thinner and that could work if I zoom out Zulip.
Could the minimum width be reduced if the user zooms out?
PS: I could use Skype almost like a side bar but for Zulip Desktop to work that way it would need to be a little narrower.

It will make sense to make app thinner if you zoom out. Let me see if it's doable.

So what I'm planning to do here is that If a user Zooms out then we'll set the minWidth to 300 px. @vbNETonIce make sense?

The other option is to just set the default minWidth to 300px.

Set the minWidth to 300px and minHeight to 400px.


Swift4.0

@tellowkrinkle This'll go in after the 5.1.0 patch. This will be probably be 6.0.0. The linux build is most likely going to be broken. Need to install swift 4.0.
Fixes #48

Hm, actually, I think I'll just scrap 5.1.0 and go straight to 6.0.0.


How to load the property within the body

How to load the property within the body,
Like sitemesh2 same. Use <body <decorator: getProperty property = "body.class" writeEntireProperty = "true" /> <decorator: getProperty property = "body.id" writeEntireProperty = "true" / >>

example?

yes

html of body element invalid。

decorator:
<html>
<body>
   ...
   <sitemesh:write property='page.javascript'/>
</body>
</html>

webpage:
<html>
<body>
  ...
  <content tag="javascript">
    <script type="text/javascript">
       alert('Hello World!')
    </script>
  </content>
</body>
</html>


Correct file not found error

Correct file not found error introduced from last commit

Merging with administrative privs, looks like as usual we need to sync commit the content with the suite.


cannot enable trino plugin

i got this error when exec the below bash with version trino 436
sh-5.1# ./enable-trino-plugin.sh
Custom user and group are not available, using default user and group.
/conf] not found.find the conf directory of component [trino1]; dir [/etc/trino
Exiting installation.
help me to fix it, thanks

@tmph2003 this looks like permission issue. Ensure that you are using correct user that is running the trino server process and make sure that correct permissions are enabled.

@aakashnand I used dos2unix to convert all files from CRLF to LF and it worked successfully. But i got error when running docker-entrypoint.sh in ranger-admin container:
gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 665, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 387, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib/python3.8/http/client.py", line 1256, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1302, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1251, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1011, in _send_output
self.send(msg)
File "/usr/lib/python3.8/http/client.py", line 951, in send
self.connect()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 187, in connect
conn = self._new_conn()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 171, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa3e98519a0>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/requests/adapters.py", line 667, in send
resp = conn.urlopen(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 719, in urlopen
retries = retries.increment(
File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 436, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=6080): Max retries exceeded with url: /service/public/v2/api/service/name/trino (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa3e98519a0>: Failed to establish a new connection: [Errno 111] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/ranger-admin/trino_service_setup.py", line 14, in
service_exist=ranger.get_service('trino')
File "/usr/local/lib/python3.8/dist-packages/apache_ranger/client/ranger_client.py", line 99, in get_service
resp = self.client_http.call_api(RangerClient.GET_SERVICE_BY_NAME.format_path({ 'name': serviceName }))
File "/usr/local/lib/python3.8/dist-packages/apache_ranger/client/ranger_client.py", line 564, in call_api
response = self.session.get(path, **params)
File "/usr/local/lib/python3.8/dist-packages/requests/sessions.py", line 602, in get
return self.request("GET", url, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.8/dist-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/requests/adapters.py", line 700, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=6080): Max retries exceeded with url: /service/public/v2/api/service/name/trino (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa3e98519a0>: Failed to establish a new connection: [Errno 111] Connection refused'))
Please help me, thanks <3

@aakashnand
I've just remove network in docker-compose.yaml and it works
Thank you very much !!!


Create engelska.txt

Internationella Engelska Skolan or IES in Sweden

@ShariqMush  Pull request merged. Please notice that free educational license for JetBrains tools is for high and higher schools students, i.e. those who are over 13 of age. Thank you!

@philipto Im 14 tho I learned programming when I was 10 lol


Max/Min value of brisque

Hello, Thank you for providing this amazing repository.
I was wondering if there are min and max values for brisque score.
Thanks in advance.

Thank you for using the package.
The BRISQUE score is usually ranges in [0, 100]. Lower values of score reflect better perceptual quality of image with respect to the input model.
But, In some cases it can go above 100 but never below... Most of the cased its [0,100].


Allow players to customize their profile and add their contact information (US 04.01.01)

US 04.01.01
As a player, I want a profile with a unique username and my contact information.

Would need to consider privacy settings and user preferences
Usernames would have to be checked to ensure there is no duplication

Where do we store the user information? Profile? User object?

Want to be able to change email and or edit phone number


Split out Web vs non-web

FastMoq vs FastMoq.Core vs FastMoq.Web.
All web packages including Blazor from #10 will be in FastMoq.Web. The original code is FastMoq.Core. FastMoq includes FastMoq.Core and FastMoq.Web.

Closed on PR #19


Make the finish method of ThreadSafeQueue noexcept

This allows for easier lifetime management of the queue.

Make ThreadSafeQueue and OrderedThreadSafeQueue easier and safer to use.  In particular, the finish method is now noexcept. To use the queue, use the function queueManager, which takes a queue size, the number of threads, and a producer function, and returns a value generator.


User has too many groups?

I am using a modified version of this plugin and have noticed a potential issue that I wanted to validate.
I have setup Azure to obtain the groups like below:

All seems to work fine and I'm able to login.  If I inspect the token returned from my user, I correctly get the groups back like below:
{
    ...
    "groups": [
         "my-ad-group-1",
         "my-ad-group-2"
    ]
    ...
}

However, I noticed an edge case where some users who have far too many groups, simply don't get the "groups" provided back in the JWT access token.  My understanding is because the data is too large to fit in the token, so instead Azure returns back an API link which I guess it expects you to hit in a separate call to get that users groups.  So the token has the below instead:
{
    ...
    "_claim_names": {
        "groups": "src1"
    },
    "_claim_sources": {
        "src1": {
            "endpoint": "https://graph.windows.net/<tenant_id>/users/<user_id>/getMemberObjects"
    }
    ...
}

On a brief initial glance, I couldn't see anywhere obvious where this plugin would make this subsequent API call to get the groups, it seems like when it gets the token back it will just fail with a DEBUG log message complaining the groups are missing?
    def update_user_groups(self, user, claims):
        """
        Updates user group memberships based on the GROUPS_CLAIM setting.

        Args:
            user (django.contrib.auth.models.User): User model instance
            claims (dict): Claims from the access token
        """
        if settings.GROUPS_CLAIM is not None:
            # Update the user's group memberships
            django_groups = [group.name for group in user.groups.all()]

            if settings.GROUPS_CLAIM in claims:
                claim_groups = claims[settings.GROUPS_CLAIM]
                if not isinstance(claim_groups, list):
                    claim_groups = [claim_groups, ]
            else:
                logger.debug("The configured groups claim '%s' was not found in the access token",
                             settings.GROUPS_CLAIM)
                claim_groups = []
           ...

Was curious if you have seen this scenario before / whether the plugin supports this scenario or not?

Hi! This plugin does not support that. I’m happy to accept a pull request for it.
You’re right, azure will give this URL back instead of groups if it’s too many. There’s many ways to do this, but OBO is probably most common for graph. I’ve written docs about that here, in FastAPI-Azure-Auth.

Hi! This plugin does not support that. I’m happy to accept a pull request for it.
You’re right, azure will give this URL back instead of groups if it’s too many. There’s many ways to do this, but OBO is probably most common for graph. I’ve written docs about that here, in FastAPI-Azure-Auth.

Cool, I will need to look into this to fix it for us before we can migrate over to Azure, but looking at my schedule will probably be late next month.  Will definitely consider making it a PR for this repo as that would be better for us too.
You are definitely more knowledgeable about ADFS / Azure than me, so are you saying you would recommend OBO to be the best way to do this additional API call in this plugin? Or do you have any other suggestions?
One thing I did notice is that the API link that is returned in the token is referring to graph.windows.net but I noticed a lot of MS documentation refers to graph.microsoft.com - not sure what the difference is but I guess they will plan to depreciate one of those so will probably need to be mindful of that in the implementation, unless getting and using the access token is the same procedure for both.

Ok finally got round to doing this, pull request here: https://github.com/snok/django-auth-adfs/pull/247
Would be great to merge this in.


Feature Request: Supporting Stateful Balancer/Pickers

As an example, we have a picker that prefers newly created connections to old ones. Unfortunately, because the balancer is a singleton, the pickerbuilder also ends up being a singleton:
func init() {
    balancer.Register(return base.NewBalancerBuilder(RecencyBalancerName, newRecencyPickerBuilder())
}

As a result, we can't easily maintain per-connection state inside our picker builder, because that state ends up being global.
We worked around this issue by proxying the BalancerBuilder, per:
// In order to implement a stateful builder, we need to proxy the build call so that we can set up
// new state per client.
type proxyBuilder struct {
  balancer.Builder
}

func (pb *proxyBuilder) Name() string {
  return RecencyBalancerName
}

func (pb *proxyBuilder) Build(
  cc balancer.ClientConn, opt balancer.BuildOptions) balancer.Balancer {

  return base.NewBalancerBuilder(
    RecencyBalancerName, newRecencyPickerBuilder()).Build(cc, opt)
}

func init() {
  balancer.Register(&proxyBuilder{})
}

However, this seems like a common enough pattern that supporting stateful builders out of the box without the proxy boilerplate would be useful.
Thanks.

Closing as a grpc-go seems a more appropriate place for the FR. https://github.com/grpc/grpc-go/issues/1956


Asa Di Vaar Autotoggle

Asa Di Vaar autotoggle is different from all other uses of autotoggle. If we split the bani into 24 files per #20 then we can set the first line of pauri as the "main"

Still open? Check 2.1.1-beta.2

Closed with better implementation than what was suggested


add 2 domains to blacklist.txt

Hello,
I run https://lichess.org and I'm very grateful for this project of yours.

Thank you for your help. 👍
Could you please name a sample or source why solowtech.com should be listed? I could not find anything on a simple search.

solowtech.com is used as, and only as, a disposable email domain for the purpose of cheating and spamming on lichess.org
Since it's not a public email provider, blacklisting it won't impact any legit user.


BUG: "Value "legacy" (of type "string") for combo option "Fortran language standard to use" is not one of the choices" during scipy build

Describe your issue.
I am trying to build scipy to take advantage of a platform-specific compiler suite on an HPC platform (AMD's aocc compiler suite on AMD nodes). I have managed to build and install numpy on the platform. However, when I try to build scipy, I get the following meson build error.
LDFLAGS='-lblis' LIBS='-lblis' CFLAGS='-O3 -fPIC -fopenmp' CC=clang CXX=clang++ FC=flang pip3 install .
Processing /gpfsm/dnb34/sbasu1/build/scipy-1.11.3
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [28 lines of output]
      + meson setup /gpfsm/dnb34/sbasu1/build/scipy-1.11.3 /gpfsm/dnb34/sbasu1/build/scipy-1.11.3/.mesonpy-zpkcnm13 -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/gpfsm/dnb34/sbasu1/build/scipy-1.11.3/.mesonpy-zpkcnm13/meson-python-native-file.ini
      The Meson build system
      Version: 1.2.3
      Source dir: /gpfsm/dnb34/sbasu1/build/scipy-1.11.3
      Build dir: /gpfsm/dnb34/sbasu1/build/scipy-1.11.3/.mesonpy-zpkcnm13
      Build type: native build
      Project name: SciPy
      Project version: 1.11.3
      C compiler for the host machine: clang (clang 16.0.3 "AMD clang version 16.0.3 (CLANG: AOCC_4.1.0-Build#270 2023_07_10)")
      C linker for the host machine: clang ld.lld 16.0.3
      C++ compiler for the host machine: clang++ (clang 16.0.3 "AMD clang version 16.0.3 (CLANG: AOCC_4.1.0-Build#270 2023_07_10)")
      C++ linker for the host machine: clang++ ld.lld 16.0.3
      Cython compiler for the host machine: cython (cython 0.29.36)
      Host machine cpu family: x86_64
      Host machine cpu: x86_64
      Program python found: YES (/discover/nobackup/projects/tm5var4d/packages/python/3.12.0/bin/python3)
      Found pkg-config: /usr/bin/pkg-config (0.29.2)
      Run-time dependency python found: YES 3.12
      Program cython found: YES (/gpfsm/dnb34/tdirs/login/discover36.203087.sbasu1/pip-build-env-qwg6qf_v/overlay/bin/cython)
      Compiler for C supports arguments -Wno-unused-but-set-variable: YES
      Compiler for C supports arguments -Wno-unused-function: YES
      Compiler for C supports arguments -Wno-conversion: YES
      Compiler for C supports arguments -Wno-misleading-indentation: YES
      Library m found: YES

      ../meson.build:82:0: ERROR: Value "legacy" (of type "string") for combo option "Fortran language standard to use" is not one of the choices. Possible choices are (as string): "none".

      A full log can be found at /gpfsm/dnb34/sbasu1/build/scipy-1.11.3/.mesonpy-zpkcnm13/meson-logs/meson-log.txt
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

However, the log file it points to, /gpfsm/dnb34/sbasu1/build/scipy-1.11.3/.mesonpy-zpkcnm13/meson-logs/meson-log.txt, does not exist. Google did not give me a solution or even a clue. Please help.
Reproducing Code Example
LDFLAGS='-lblis' LIBS='-lblis' CFLAGS='-O3 -fPIC -fopenmp' CC=clang CXX=clang++ FC=flang pip3 install .

Error message
../meson.build:82:0: ERROR: Value "legacy" (of type "string") for combo option "Fortran language standard to use" is not one of the choices. Possible choices are (as string): "none".

SciPy/NumPy/Python version and system information
>>> sys.version_info
sys.version_info(major=3, minor=12, micro=0, releaselevel='final', serial=0)
>>> print(numpy.__version__)
1.26.1

Thanks for the report @AgilentGCMS. In order to retain the build directory and get access to the log file, you can use the -Cbuilddir=build option, then the file should be at build/meson-logs/meson-log.txt.
The problem here is (hopefully) only that fortran_std=legacy isn't a known option for this compiler. If you delete that (it's line 15 of the top-level meson.build file), does that fix the issue?

OK, that issue was solved by commenting out fortran_std=legacy, thanks!
However, now I have a new problem. On this particular HPC, architecture-tuned blas libraries are provided by blis and lapack libraries are provided by flame. In the old way of building scipy (without meson), this information was picked up from the numpy build, if it was built with the correct LIBS, CFLAGS and LDFLAGS. On my current system, I have already built numpy with blis and flame, and checked with numpy.show_config() that indeed numpy linear algebra operations are using those libraries. However, building scipy does not work. I've tried blas=blis in meson.build, but it fails with
LDFLAGS='-lblis-mt' LIBS='-lblis-mt' CFLAGS='-O3 -fPIC -fopenmp' CC=clang CXX=clang++ FC=flang pip3 install .
Processing /gpfsm/dnb34/sbasu1/build/scipy-1.11.3
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [42 lines of output]
      + meson setup /gpfsm/dnb34/sbasu1/build/scipy-1.11.3 /gpfsm/dnb34/sbasu1/build/scipy-1.11.3/.mesonpy-ap6gz14f -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/gpfsm/dnb34/sbasu1/build/scipy-1.11.3/.mesonpy-ap6gz14f/meson-python-native-file.ini
      The Meson build system
      Version: 1.2.3
      Source dir: /gpfsm/dnb34/sbasu1/build/scipy-1.11.3
      Build dir: /gpfsm/dnb34/sbasu1/build/scipy-1.11.3/.mesonpy-ap6gz14f
      Build type: native build
      Project name: SciPy
      Project version: 1.11.3
      C compiler for the host machine: clang (clang 16.0.3 "AMD clang version 16.0.3 (CLANG: AOCC_4.1.0-Build#270 2023_07_10)")
      C linker for the host machine: clang ld.lld 16.0.3
      C++ compiler for the host machine: clang++ (clang 16.0.3 "AMD clang version 16.0.3 (CLANG: AOCC_4.1.0-Build#270 2023_07_10)")
      C++ linker for the host machine: clang++ ld.lld 16.0.3
      Cython compiler for the host machine: cython (cython 0.29.36)
      Host machine cpu family: x86_64
      Host machine cpu: x86_64
      Program python found: YES (/discover/nobackup/projects/tm5var4d/packages/python/3.12.0/bin/python3)
      Found pkg-config: /usr/bin/pkg-config (0.29.2)
      Run-time dependency python found: YES 3.12
      Program cython found: YES (/gpfsm/dnb34/tdirs/login/discover33.29557.sbasu1/pip-build-env-hvh9a5lg/overlay/bin/cython)
      Compiler for C supports arguments -Wno-unused-but-set-variable: YES
      Compiler for C supports arguments -Wno-unused-function: YES
      Compiler for C supports arguments -Wno-conversion: YES
      Compiler for C supports arguments -Wno-misleading-indentation: YES
      Library m found: YES
      Fortran compiler for the host machine: flang (flang 16.0.3 "AMD clang version 16.0.3 (CLANG: AOCC_4.1.0-Build#270 2023_07_10)")
      Fortran linker for the host machine: flang ld.lld 16.0.3
      Compiler for Fortran supports arguments -Wno-conversion: NO
      Checking if "-Wl,--version-script" : links: YES
      Program pythran found: YES (/gpfsm/dnb34/tdirs/login/discover33.29557.sbasu1/pip-build-env-hvh9a5lg/overlay/bin/pythran)
      Found CMake: /usr/bin/cmake (3.20.4)
      WARNING: CMake Toolchain: Failed to determine CMake compilers state
      Run-time dependency xsimd found: NO (tried pkgconfig and cmake)
      Run-time dependency threads found: YES
      Library npymath found: YES
      Library npyrandom found: YES
      pybind11-config found: YES (/gpfsm/dnb34/tdirs/login/discover33.29557.sbasu1/pip-build-env-hvh9a5lg/overlay/bin/pybind11-config) 2.11.0
      Run-time dependency pybind11 found: YES 2.11.0
      Run-time dependency blis-mt found: NO (tried pkgconfig and cmake)

      ../scipy/meson.build:161:9: ERROR: Dependency "blis-mt" not found, tried pkgconfig and cmake

      A full log can be found at /gpfsm/dnb34/sbasu1/build/scipy-1.11.3/.mesonpy-ap6gz14f/meson-logs/meson-log.txt
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

What is the correct way of building scipy against architecture-tuned linear algebra libraries such as blis and flame?

What is the correct way of building scipy against architecture-tuned linear algebra libraries such as blis and flame?

This should be quite straightforward if your blis and libflame installs come with pkg-config (.pc) files. If not, the way to do it is craft your own .pc files (also not too difficult) - see http://scipy.github.io/devdocs/building/blas_lapack.html