Simplify writing JSON in a Razor view

A common task inside a razor view is converting part of the model into JSON and writing it to the page inside a script tag. The view model JSON can then be used by scripts executing on the page.
http://stackoverflow.com/questions/3365551/asp-net-mvc-how-to-convert-view-model-into-json-object (note: almost 70 thousand views)
There should be a simple way to use the application's configured JsonOutputFormatter to serialize JSON. With MVC5 in my own projects I use to add a HtmlHelper.Json(object) extension method to simplify this task. It handled accessing the application's common JsonSerializerSettings and wrapping the string result in an HtmlString to avoid encoding issues.
Because JSON isn't HTML, I think it would be better to expose a Json property on the base view, similar to the current Html and Url properties, with a class that exposes methods for serializing the model as JSON. A JsonHelper if you will. Alternatively, a simpler change would be to add a Json(object) method to the base view for serializing JSON.
Having property or method immediately visible in intelli-sense will make this task simple and discoverable, and using JsonOutputFormatter underneath will mean any configured settings, e.g. camel case properties or date format, will automatically flow through to JSON serialized on the view.

Yup, we think this is a great idea. We experimented with this a bit in the Music Store sample. This feature would need some design and discussion. Would you be interested in proposing a design PR?

A design PR? Do you have an example of what one of those looks like.
Some additional thoughts: Should the JsonHelper methods return HtmlString? The result shouldn't be escaped by Razor but JSON methods returning HtmlString seems a little weird.

re: Music Store, is this what you are talking about? https://github.com/aspnet/MusicStore/blob/master/src/MvcMusicStore.Spa/Helpers/JsonExtensions.cs
I imagined something rawer and more multi purpose, that would do nothing more than output a JSON string.

A design PR? Do you have an example of what one of those looks like.

Just team-lingo for a PR demonstrating what APIs you'd add and how it would be used. IE - add a 'Json' property to RazorPage, add the new interface, add to MvcSample.Web sample showing usage.

Should the JsonHelper methods return HtmlString

HtmlString is one of the known types that Razor doesn't HTML-encode. If you return a regular string it will get encoded.

Yeah I know a regular string will get encoded, I've made the odd MVC site in my day :P I bring it up because HtmlString seems like more like a HtmlHelper concept. Is it returned from public API methods outside of that class?

@JamesNK yes, HtmlString is now used (not just special-cased) in RazorPage for example.  IViewComponentHelper also has a few methods that return HtmlString.  So think of HTML encoding and not HTML helpers when you read HtmlString.

I had a look at making a PR. I'm not familiar with how Razor works, and I couldn't find the class where the Html property is added. Maybe I missed it but I couldn't find it on RazorView.

What is a ViewComponent? I started to write a PR and I noticed a JsonViewComponent.
https://github.com/aspnet/Mvc/blob/dev/src/Microsoft.AspNet.Mvc.Core/ViewComponents/ViewComponent.cs#L165-L173

What is a ViewComponent?

The replacement for child actions in MVC 6. Application authors can create ViewComponents and call them from any view.  They have some similarities to Controller classes but are directly invoked, not model bound, routed to or otherwise automatically used during request processing.
In any case you made the right suggestion for ViewComponent in PR #2524.

ab4cd5c


python error when using airr.read_rearrangement with gzip file

When using airr.read_rearrangement on a gzip file, get this error
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.8/dist-packages/airr/io.py", line 89, in __next__
    row = next(self.dict_reader)
  File "/usr/lib/python3.8/csv.py", line 110, in __next__
    self.fieldnames
  File "/usr/lib/python3.8/csv.py", line 97, in fieldnames
    self._fieldnames = next(self.reader)
_csv.Error: iterator should return strings, not bytes (did you open the file in text mode?)

it seems we don't have a python test for this.

open with 'rt' seems to work.


[menu] Update menu

[menu] Update menu
Description
Updating the menu to make it works with backbone and react-router

@pierr here is the menu which works with both react-router and backbone. Please take a look and give me your opinion


Chakra Update

I’ve managed to fix all the previous known issues with my Chakra component registrations as well as added the following new components: Highlight, Heading, Toast, Tooltip, Avatar, Accordion, FormControl, Progress

Hey! Thank you very much for this contribution
Merging the code and I will add to our component store soon.


Need GovCloud Workaround For LogGroup Tagging Support

Following:
Steps reproducible from the original blog.
Seems related to CDK Issue # 17960
CDK Version in use: 2.38.1
Version of cdk-serverless-clamscan construct: 2.4.4 latest at the time of posting via package.json's self minor updates.
Error Output deploying with cdk to us-gov-west-1:
11:08:21 AM | CREATE_FAILED        | AWS::Logs::LogGroup                   | rClamscanScanVPCFlowLogsLogGroupXXXXXXX
Encountered unsupported property Tags
❌  CdkTestStack failed: Error: The stack named CdkTestStack failed creation, it may need to be manually deleted from the AWS console: ROLLBACK_COMPLETE: Encountered unsupported property Tags
at prepareAndExecuteChangeSet (/opt/homebrew/lib/node_modules/aws-cdk/lib/api/deploy-stack.ts:386:13)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at CdkToolkit.deploy (/opt/homebrew/lib/node_modules/aws-cdk/lib/cdk-toolkit.ts:219:24)
at initCommandLine (/opt/homebrew/lib/node_modules/aws-cdk/lib/cli.ts:347:12)
The stack named CdkTestStack failed creation, it may need to be manually deleted from the AWS console: ROLLBACK_COMPLETE: Encountered unsupported property Tags

This isn't an issue that can be solved in this package. I'd recommend using the workaround mentioned  in that cdk issue

The workaround mentioned is seems to be at the construct level. Could there not be an option to check for GovCloud ARN and then execute a different tagging option/features?

The Aspect (workaround) would apply to all Log Groups in the stack, so you would apply it to the stack where this construct is used.
This construct isn't doing anything special for creating log groups, so any fixes for log groups should be made in the cdk repo


replace placement image

fixed: https://github.com/stolostron/hub-of-hubs-manager/issues/24
Signed-off-by: clyang82<EMAIL_ADDRESS>

/assign @nirrozenbaum


⚠ Bofrost.at has degraded performance

In 12e7e51, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1066 ms

Resolved: Bofrost.at performance has improved in 9a62d26.


Players get disabled enchantments

Hey!
After the v7.1 we suddenly have the issues that people are getting CE books which are set to "False" in the enchantments config... If they receive a book that is set to false, they can't put it on their tool, so it's basically useless, but they do lose their XP... I have tried resetting all configs and stuff, but nothing seems to fix the issue.

Thanks for the report, I just fixed the issue.
Commit: 53d80e5f9d15cc39f3f9a406551482bc19a62aa4


Extract value in TxBody.decode()?

I am trying to validate the amount I am sending in a transaction is correct before signing.
From a hex string of  the transaction, I use interface Tx in cosmjs-types/cosmos/tx/v1beta1/tx.js to create a Tx object.
Lets say test...
const test = Tx.decode(new Uint8Array(Buffer.from(<preimage>, "hex")))

Decoding is successful, and I see the value in Tx.body.messages[0].value with the typeUrl /cosmos.bank.v1beta1.MsgSend, which matches how I built the transaction (see below) . I am trying to recover this Uint8Array but after many attempts at decoding, I cant get a value that matches the amount I am sending. Is the object Coin in a format I am not noticing? What format is the data under value encoded in? I am receiving at Uint8Array of 108 characters and this is the decoded string 0a2d636f736d6f733136613278687a3265717467376b63333271796a30343366783267797a6765726c306564737876122d636f736d6f73313561707464716d6d376464677463726a7663356873393838726c726b7a6534306c34713068651a0c0a057561746f6d1203313030.
I am able to build, sign, and post a transaction using the following body, and when posted on the network the data matches what I am putting. I just dont know how to recover that value in body.value.messages[x].amount.
Here is how I build the TxBody and the value I am trying to recover
body = {
	typeUrl: "/cosmos.tx.v1beta1.TxBody",
	value: {
		messages: [{
			typeUrl: "/cosmos.bank.v1beta1.MsgSend",
			value: {
				fromAddress: <address>,
				toAddress: <targetAddr>,
				amount: [...coins(<value>, "uatom")],
			}
		}],
		memo: ""
	}
};

You can debug stuff like this with decode_raw:
$ echo '0a2d636f736d6f733136613278687a3265717467376b63333271796a30343366783267797a6765726c306564737876122d636f736d6f73313561707464716d6d376464677463726a7663356873393838726c726b7a6534306c34713068651a0c0a057561746f6d1203313030' | xxd -r -p | decode_raw --no-fixed
1: (45 bytes) "cosmos16a2xhz2eqtg7kc32qyj043fx2gyzgerl0edsxv"
2: (45 bytes) "cosmos15aptdqmm7ddgtcrjvc5hs988rlrkze40l4q0he"
3 {
· 1: (5 bytes) "uatom"
· 2: (3 bytes) "100"
}

I was able to dismantle and reformat the string under typeUrl to grab the data to check. Little hacky but it works, thanks!


Support training with multiple GPUs in same machine

Hi,
I want to run the training on multiple GPU. But seems there is no control arguments to enable it.
Please help, how to enable the multi-gpu training for Luminoth


Assign key.type to combo CSS class

Hi, while playing around with combos, I noticed that the type parameter assigned in raw_binding_map is not set to CSS classes of combos. I don't know if this is intentional (and this would have some downsides), but I would have assumed that the type is applied everywhere where the binding is used.
Example use case:
I use type to combine text and a glyph in some special cases:
parse_config:
  raw_binding_map:
    '&mkp MB3':
      tap: $$mdi:cursor-default-click-outline$$
      hold: 3
      type: text_with_symbol

draw_config:
  svg_extra_style: |
    .text_with_symbol.tap {
      translate: -1px 1px;
    }
    .text_with_symbol.hold {
      translate: 6px -31px;
      font-size: 8px;
    }

    .combo.text_with_symbol.tap {
      translate: -1px 1px;
    }
    .combo.text_with_symbol.hold {
      translate: 6px -13px;
      font-size: 8px;
    }

At the moment, the type is not applied to combos:

But with this PR, it would be:

There is already a workaround by setting the style explicitly again for every combo:
parse_config:
  zmk_combos:
    combo_mb3:
      type: text_with_symbol

I find the proposed changes more intuitive and concise, especially if the same binding is used more than once. But please feel free to close this if you like it that way.

By the way, good job with this tool; it's fantastic!!

Hi there, thanks for the nice words. Your workaround with the CSS translations look super nice!
This was indeed intentional, see key (k) description in the combo spec. That being said, I don't have a strong opinion on it so I am OK changing this to work this way. If you can run black to fix the check and update the keymap spec to say that both types apply I can merge, or if you don't want to bother setting up the toolchain I can do that myself soon.

To be honest, I found the workaround at the end while writing the PR description. Since this is indeed intentional, I'd leave the decision up to you.
Either way, I have executed black and adapted the combo description.


Warehouse file order differs from legacy PyPI file list

Tonight, while load testing of pypi.org was ongoing, we saw some failures in automated systems that use --require-hashes with pip install, as ordering on the package file list page changed.
The specific package we saw break was pandas at version 0.12.0. We had a single hash for pandas-0.12.0.tar.gz. A few of our hosts were served from the legacy PyPI service, which succeeded as normal. The Warehouse endpoint, however, failed, since pandas-0.12.0.zip now preceded pandas-0.12.0.tar.gz in the file list.
At the moment, you can see that https://pypi.org/simple/pandas/ and https://pypi.python.org/simple/pandas/ differ by searching for pandas-0.12.0.tar.gz and pandas-0.12.0.zip and comparing the position.

Could you tell us what version of pip was used, and if you were using an intermediary or mirrored index? The order of the distributions shouldn't cause an issue.

We were using pip version 9.0.1 with no explicit index specified, so the default https://pypi.python.org/simple.
I can reproduce this currently with a local Python 2.7 install:
$ pip --version
pip 9.0.1

$ pip install --index-url https://pypi.python.org/simple pandas==0.12.0
Collecting pandas==0.12.0
  Downloading pandas-0.12.0.tar.gz (3.2MB)

$ pip install --index-url https://pypi.org/simple pandas==0.12.0
Collecting pandas==0.12.0
  Downloading https://files.pythonhosted.org/packages/49/32/61120c7350105faa1533211fe3226ca6e71cd08a50e6e137e0baee50d186/pandas-0.12.0.zip (3.4MB)

From a cursory look at _link_package_versions() it seems that the ordering between .zip and .tar.gz ultimately does come down to the order on the links page.

Yea, pip respects the order files are given to it by the index as the final tie breaker when it sorts files, so the order in /simple/ can change what file gets installed.

@clintharrison Is there a reason why you need to install from a .tar.gz and not .zip? If not, I would recommend adding hashes for both source distributions for that release. Newer releases are no longer allowed to have multiple types of sdists so this shouldn't be a problem moving forward.
However #3292 will "fix" this behavior so that .tar.gz sdists will come before .zips, so you shouldn't actually have to do anything to resolve this.

Also thanks for the report @clintharrison!

@di thank you for the quick fix! There was no particular reason, simply an oversight on our side, not realizing that there existed both sdists. We have since added both hashes and using the Warehouse served simple index worked just fine 💯


SIL: Fix SIL verifier's VerifyClassMethodVisitor [5.1]

When checking a super method call, make sure we look at the vtable
for the right class.
Previously we would visit all the methods of the derived class,
together with any methods they override, but that is not quite
right -- it's perfectly legal to use 'super' to call a method that
you're not overriding too.
Fixes https://bugs.swift.org/browse/SR-10260.

@swift-ci Please test


Consider adding StateVectorMixin to ProductState, _NamedOneQubitState

StateVectorMixin provides a couple of useful features on the state vector itself. ProductState and _NamedOneQubitState and its subclasses could benefit from it.
cc @mpharrigan wdyt?

The mixin uses qubit_map which is designed for a vector (aka ndarray) based representation so you can map qubits to indices in a contiguous array. ProductState is like a dictionary (so this isn't applicable) and NamedOneQubitState only has one qubit (per its name (it's also named per its name)).
Is StateVectorMixin used anywhere? Either "no" or my pycharm is broken :)

According to @viathor , this points to a more general problem of Cirq not having a philosophy with which to make technical decisions when it come to state representation. He'll file an issue about this.


Persist staticConfig for chat and wallet on logout

Fixes an issue where constant data such as the maximum length of a payment message would be reset on logout.

@keybase/react-hackers 👀 ?

why isn't this fetched on bootstrap again

@chrisnojima the constants in staticConfig don't change for users – it's data like what commands can a user select in chat or how the max length of stellar payments, basically just mappings of constants in Go to the frontend. It seemed better to just fetch those once on startup and use them throughout the life of the app as opposed to refetching the same values on each new login.

so nothing could ever change given a client version (zero server interaction)

@chrisnojima exactly


Release Candidate Comments (Issue Response Time)

This issue was created to collect comments about the upcoming metrics release.
This thread is for comments about Issue Response Time
GitHub location: https://github.com/chaoss/wg-evolution/blob/master/metrics/Issue_Response_Time.md
See all release candidates of metrics are at:
https://chaoss.community/metrics-202001/

Provide a Link to GrimoireLab in the Tools Providing the Metric.

Do you want to provide a link to the New Issue metric as a pointer for describing what an Issue is?
https://github.com/chaoss/wg-evolution/blob/master/metrics/Issues_New.md
I ask because you do this in Issue Active and Issue Closed

@GeorgLink any thoughts on what link should we use for GrimoireLab under the "Tools Providing the Metric" section?

This metric is a filter on another metric (Time to First Response). Should it exist on its own? Might be good to review this metric.

Closing this, as I think this issue has been resolved.


Mr

Hi,
I would like to use Dialogger for a voice to text transcription project.
I have problems installing. Can you help me with a newer version?
Thanks for understanding,
George Rusu

Hi George. Can you please explain what you're trying to achieve? As you'll have seen in the README, this project does not include a transcription service - you have to integrate it with something else.
Have you considered commercial solutions such as Trint or Descript?

Hi Chris,
Thanks for your prompt response.
I did the transcription with the Google API. I would like the transcribed file to be edited to increase the accuracy of the transcript. For this I need an editor with audio / video player and text transcription as you have the logic diagram. I don't have the text editing part with the player.
I would like to do something like www.sonix.com http://www.sonix.com  or www.happyscribe.com http://www.happyscribe.com  which also have an editor for transcribed files.
I found your software on GitHub and I'm trying to use it in my project but I couldn't install it. Thanks for what you recommended to me. Looks like I could use the API from www.descript.com http://www.descript.com .
Thank you so much for your understanding,
Best regards,
George
From: Chris Baume @.>
Sent: Thursday, September 23, 2021 11:41 AM
To: bbc/dialogger @.>
Cc: George Rusu @.>; Author @.>
Subject: Re: [bbc/dialogger] Mr (#2)
Hi George. Can you please explain what you're trying to achieve? As you'll have seen in the README, this project does not include a transcription service - you have to integrate it with something else.
Have you considered commercial solutions such as Trint https://trint.com/  or Descript https://www.descript.com/ ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/bbc/dialogger/issues/2#issuecomment-925613465 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AH5YSBLCTKUEAYXLZO22ILTUDLR2DANCNFSM5ES54ALA .
Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675  or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .   https://github.com/notifications/beacon/AH5YSBIRW6DORZ4FZSQFWMLUDLR2DA5CNFSM5ES54ALKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOG4V33GI.gif

Thanks George. Looks like you have a few options there for generating and correcting transcripts.


evalStateT vs. execStateT

It would be nice for some clarification as to why both of these exist, and whether one is to be preferred over another.

I'm not sure how it could be further clarified, given the types and existing descriptions for the functions - any suggestions? They're just fst and snd over runStateT.

Actually, no. I just failed to notice that the final type var in the declarations is different. My apologies.

No problem :smile:


Release Google.Cloud.Logging.NLog version 3.1.0

Changes in this release:

Commit cbaa00a: Renormalize line endings
Commit 02e2ddc: NLog GoogleStackDriverTarget skip reflection on Stream-objects (issue 5230)
Commit 0e6d135: NLog GoogleStackdriverTarget improve handling of System.Reflection (MemberInfo is better than MethodInfo)

Created release for Google.Cloud.Logging.NLog-3.1.0


[BUG] Website needs SSL certificate because it is a .dev domain and that namespace is secure.

Website needs SSL certificate because it is a .dev domain and that namespace is secure.

the domain has ssl now
please close this @j4qfrost

Thanks for reminding.


Wasm Engine Prototype

We wanted to explore what it would take to a) compile the delta kernel to WASM and b) create an abstract WASM engine that could be implemented in other programming languages like Javascript.
The main changes we had to do to the existing codebase were:

Remove Arrow & Parquet default features so it compiles to WASM
Reimplement the URL object as a Crate to handle none file system friendly OSes like browsers
Change the Cargo-toml to compile as a library

These changes were enough to compile the library into Wasm, particularly ignoring the default & sync engines which rely on FS dependencies.

We are looking to add delta support in Evefan and hence would want to have the engine drive which file changes are needed for read/writes but have the FS specific things be handled outside Wasm. Hence, we introduced a prototype wasm engine that could be another example. Ideally this can be brought into the repo as a official compilation option within the workspace with something like:
wasm-pack build --target web --release --features "wasm-engine"

To note

I've never done Rust before and this was a one day stint
The latter bit of Wasm engine doesn't compile yet but I put it in to serve as a discussion starter for the right abstraction for something like this
There's probably a nicer way of doing the URL bit and also make this work within the build process of the entire workspace.

Closing as this is meant to simply serve as an example :)


Track Cookbookbat Quest Monster

Need HTML from getting a quest for the test. More to come.

#2499 cares for this and more.


Graph Algorithms: Navigating Complex Relationships

@ajay-dhangar , why its invalid ??

@ajay-dhangar , Bro I apologize I didnt know that , but atleast add level 1 label , to the remainning pr's

@ajay-dhangar , I didnt seen it was 200 points limit , atleast add upto the 200 points , and get merged !!


Fix incorrect evaluation of the openstack_tenant_id variable.

Fix issue https://github.com/kubernetes-incubator/kubespray/issues/2760

This PR gets nullified by my PR I think.
Please review before merging this.

I am reverting the commit that introduces the bug fixed by this MR: https://github.com/kubernetes-incubator/kubespray/pull/2796


How to decode JSON dictionaries with variable/unknown keys

Is there a way to use Gloss to decode JSON with keys that are unknown in advance?  For instance:
{ "key_1234": {

},
"key_4567": {

}
}

Theres nothing in the library specific to this scenario. Perhaps, create a custom transformation (https://github.com/hkellaway/Gloss#custom-transformations) - in the function you use, you can figure out all the key names based on the number of keys in the dictionary, and transform them how you want. That assumes the pattern for what the keys are is consistent and known.
Hope that helps!


Added Weather API Based simple JS project

It is a simple API based project in JS. Please merge it because it is easy to understand and learn from the beginners.

@microsoft-github-policy-service agree [company="{Student}"]
On Tue, 18 Oct 2022 at 00:02, microsoft-github-policy-service[bot] <
@.***> wrote:

@Reetesh-Tomar https://github.com/Reetesh-Tomar please read the
following Contributor License Agreement(CLA). If you agree with the CLA,
please reply with the following information.
@microsoft-github-policy-service agree [company="{your company}"]
Options:

(default - no company specified) I have sole ownership of
intellectual property rights to my Submissions and I am not making
Submissions in the course of work for my employer.
(when company given) I am making Submissions in the course of work
for my employer (or my employer has intellectual property rights in my
Submissions by contract or applicable law). I have permission from my
employer to make Submissions and enter into this Agreement on behalf of my
employer. By signing below, the defined term “You” includes me and my
employer.

Contributor License Agreement Contribution License Agreement
This Contribution License Agreement (“Agreement”) is agreed to by the
party signing below (“You”),
and conveys certain license rights to Microsoft Corporation and its
affiliates (“Microsoft”) for Your
contributions to Microsoft open source projects. This Agreement is
effective as of the latest signature
date below.

Definitions.
“Code” means the computer software code, whether in human-readable
or machine-executable form,
that is delivered by You to Microsoft under this Agreement.
“Project” means any of the projects owned or managed by Microsoft
and offered under a license
approved by the Open Source Initiative (www.opensource.org).
“Submit” is the act of uploading, submitting, transmitting, or
distributing code or other content to any
Project, including but not limited to communication on electronic
mailing lists, source code control
systems, and issue tracking systems that are managed by, or on behalf
of, the Project for the purpose of
discussing and improving that Project, but excluding communication
that is conspicuously marked or
otherwise designated in writing by You as “Not a Submission.”
“Submission” means the Code and any other copyrightable material
Submitted by You, including any
associated comments and documentation.
Your Submission. You must agree to the terms of this Agreement
before making a Submission to any
Project. This Agreement covers any and all Submissions that You, now
or in the future (except as
described in Section 4 below), Submit to any Project.
Originality of Work. You represent that each of Your Submissions
is entirely Your original work.
Should You wish to Submit materials that are not Your original work,
You may Submit them separately
to the Project if You (a) retain all copyright and license information
that was in the materials as You
received them, (b) in the description accompanying Your Submission,
include the phrase “Submission
containing materials of a third party:” followed by the names of the
third party and any licenses or other
restrictions of which You are aware, and (c) follow any other
instructions in the Project’s written
guidelines concerning Submissions.
Your Employer. References to “employer” in this Agreement include
Your employer or anyone else
for whom You are acting in making Your Submission, e.g. as a
contractor, vendor, or agent. If Your
Submission is made in the course of Your work for an employer or Your
employer has intellectual
property rights in Your Submission by contract or applicable law, You
must secure permission from Your
employer to make the Submission before signing this Agreement. In that
case, the term “You” in this
Agreement will refer to You and the employer collectively. If You
change employers in the future and
desire to Submit additional Submissions for the new employer, then You
agree to sign a new Agreement
and secure permission from the new employer before Submitting those
Submissions.
Licenses.

Copyright License. You grant Microsoft, and those who receive the
Submission directly or
indirectly from Microsoft, a perpetual, worldwide, non-exclusive,
royalty-free, irrevocable license in the
Submission to reproduce, prepare derivative works of, publicly
display, publicly perform, and distribute
the Submission and such derivative works, and to sublicense any or all
of the foregoing rights to third
parties.
Patent License. You grant Microsoft, and those who receive the
Submission directly or
indirectly from Microsoft, a perpetual, worldwide, non-exclusive,
royalty-free, irrevocable license under
Your patent claims that are necessarily infringed by the Submission or
the combination of the
Submission with the Project to which it was Submitted to make, have
made, use, offer to sell, sell and
import or otherwise dispose of the Submission alone or with the
Project.
Other Rights Reserved. Each party reserves all rights not
expressly granted in this Agreement.
No additional licenses or rights whatsoever (including, without
limitation, any implied licenses) are
granted by implication, exhaustion, estoppel or otherwise.

Representations and Warranties. You represent that You are
legally entitled to grant the above
licenses. You represent that each of Your Submissions is entirely Your
original work (except as You may
have disclosed under Section 3). You represent that You have secured
permission from Your employer to
make the Submission in cases where Your Submission is made in the
course of Your work for Your
employer or Your employer has intellectual property rights in Your
Submission by contract or applicable
law. If You are signing this Agreement on behalf of Your employer, You
represent and warrant that You
have the necessary authority to bind the listed employer to the
obligations contained in this Agreement.
You are not expected to provide support for Your Submission, unless
You choose to do so. UNLESS
REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING, AND EXCEPT FOR THE
WARRANTIES
EXPRESSLY STATED IN SECTIONS 3, 4, AND 6, THE SUBMISSION PROVIDED
UNDER THIS AGREEMENT IS
PROVIDED WITHOUT WARRANTY OF ANY KIND, INCLUDING, BUT NOT LIMITED TO,
ANY WARRANTY OF
NONINFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
Notice to Microsoft. You agree to notify Microsoft in writing of
any facts or circumstances of which
You later become aware that would make Your representations in this
Agreement inaccurate in any
respect.
Information about Submissions. You agree that contributions to
Projects and information about
contributions may be maintained indefinitely and disclosed publicly,
including Your name and other
information that You submit with Your Submission.
Governing Law/Jurisdiction. This Agreement is governed by the
laws of the State of Washington, and
the parties consent to exclusive jurisdiction and venue in the federal
courts sitting in King County,
Washington, unless no federal subject matter jurisdiction exists, in
which case the parties consent to
exclusive jurisdiction and venue in the Superior Court of King County,
Washington. The parties waive all
defenses of lack of personal jurisdiction and forum non-conveniens.
Entire Agreement/Assignment. This Agreement is the entire
agreement between the parties, and
supersedes any and all prior agreements, understandings or
communications, written or oral, between
the parties relating to the subject matter hereof. This Agreement may
be assigned by Microsoft.

—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/Web-Dev-For-Beginners/pull/899#issuecomment-1281305398,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANB24XTKNU4OSAUHM64OGS3WDWLSVANCNFSM6AAAAAARHKWZ5E
.
You are receiving this because you were mentioned.Message ID:
@.***>

@microsoft-github-policy-service agree
On Tue, 18 Oct 2022 at 00:14, microsoft-github-policy-service[bot]
@.***> wrote:

@Reetesh-Tomar the command you issued was incorrect. Please try again.
Examples are:
@microsoft-github-policy-service agree
and
@microsoft-github-policy-service agree company="your company"
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

@microsoft-github-policy-service agree company="Student"
On Tue, 18 Oct 2022 at 00:15, REETESH TOMAR @.***> wrote:

@microsoft-github-policy-service agree
On Tue, 18 Oct 2022 at 00:14, microsoft-github-policy-service[bot]
@.***> wrote:

@Reetesh-Tomar the command you issued was incorrect. Please try again.
Examples are:
@microsoft-github-policy-service agree
and
@microsoft-github-policy-service agree company="your company"
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>


component is missing a required dependency, or was made for a different version of foobar

I keep getting this error (https://imgur.com/a/2QFwVNO) after multiple re-installations of both foobar, the plugin, and  Visual C++ Redistributable for Visual Studio 2017. Not sure what the issue could be.

Strange, it is working nicely here, my version is the 1.4 beta 12.
I dont know to explain why it did not work when I was installing the plugin.
Suddenly it installed properly, I dont have any way to understand what happened.
Magically the problem vanished.

Since then it is working very well. I am sorry you are getting trouble. =(((

Try the beta 12 available at Foorbar2000 site.

From the looks of the screenshot you seem to be using Windows 10.
Could you please download the latest Dependencies.zip from https://github.com/lucasg/Dependencies/releases and then open foo_scrobble.dll with it. The list on the left side shows all dependencies. Only shared.dll from foobar2000 should show a question mark icon (since it's in a different directory and not found).

I had the same issue using the latest 1.3 stable release, but it loads with the latest 1.4 beta (both running under Wine).

Closing due to lack of feedback. Please re-open if the issue persists.


Does this lib support transaction pooling?

I need to convert Django queryset iterator to async iterator. Can I do this with django-async-orm?

Hello, we don't support query set iterators yet


missing space in background: at src/SwitchSelector.styled.ts

https://github.com/GR34SE/react-switch-selector/blob/4593bc163f948ff449230ee00aae1de840567e50/src/SwitchSelector.styled.ts#L82
when using css variables there is a problem in this line, where the variable is not rendered properly.
"solidvar(--white)"
it shoud be like
"solid var(--white)"

https://github.com/GR34SE/react-switch-selector/commit/36f54763a5681aa2b7a5c3faa5d37b6bfe742f80


Support subquery in having clause

Is your feature request related to a problem? Please describe.
Doris does not support subquery in having clause.
For example:
select a, sum(b) from t
group by a
having sum(b) =(subquery)

TPC-DS 23,24,44 query
Query 23:
WITH frequent_ss_items AS
(

SELECT substr(i_item_desc,1,30) itemdesc,
i_item_sk item_sk,
d_date solddate,
count(*) cnt
FROM store_sales ,date_dim ,item
WHERE ss_sold_date_sk = d_date_sk
AND ss_item_sk = i_item_sk
AND d_year IN (1999,1999+1,1999+2,1999+3)
GROUP BY substr(i_item_desc,1,30),i_item_sk,d_date
HAVING count(*) >4

), max_store_sales AS
(

SELECT max(csales) tpcds_cmax
FROM
(

SELECT c_customer_sk,
sum(ss_quantity*ss_sales_price) csales
FROM store_sales ,customer ,date_dim
WHERE ss_customer_sk = c_customer_sk
AND ss_sold_date_sk = d_date_sk
AND d_year IN (1999,1999+1,1999+2,1999+3)
GROUP BY c_customer_sk

) c

), best_ss_customer AS
(

SELECT c_customer_sk,
sum(ss_quantity*ss_sales_price) ssales
FROM store_sales ,customer
WHERE ss_customer_sk = c_customer_sk
GROUP BY c_customer_sk
HAVING sum(ss_quantity*ss_sales_price) > (95/100.0) *
(

SELECT *
FROM max_store_sales

)

)
SELECT sum(sales)
FROM
(

SELECT cs_quantity*cs_list_price sales
FROM catalog_sales ,date_dim
WHERE d_year = 1999
AND d_moy = 1
AND cs_sold_date_sk = d_date_sk
AND cs_item_sk IN
(

SELECT item_sk
FROM frequent_ss_items

)
AND cs_bill_customer_sk IN
(

SELECT c_customer_sk
FROM best_ss_customer

)
UNION
all SELECT ws_quantity*ws_list_price sales
FROM web_sales ,date_dim
WHERE d_year = 1999
AND d_moy = 1
AND ws_sold_date_sk = d_date_sk
AND ws_item_sk IN
(

SELECT item_sk
FROM frequent_ss_items

)
AND ws_bill_customer_sk IN
(

SELECT c_customer_sk
FROM best_ss_customer

)

) a LIMIT 100;
WITH frequent_ss_items AS
(

SELECT substr(i_item_desc,1,30) itemdesc,
i_item_sk item_sk,
d_date solddate,
count(*) cnt
FROM store_sales ,date_dim ,item
WHERE ss_sold_date_sk = d_date_sk
AND ss_item_sk = i_item_sk
AND d_year IN (1999,1999 + 1,1999 + 2,1999 + 3)
GROUP BY substr(i_item_desc,1,30),i_item_sk,d_date
HAVING count(*) >4

), max_store_sales AS
(

SELECT max(csales) tpcds_cmax
FROM
(

SELECT c_customer_sk,
sum(ss_quantity*ss_sales_price) csales
FROM store_sales ,customer ,date_dim
WHERE ss_customer_sk = c_customer_sk
AND ss_sold_date_sk = d_date_sk
AND d_year IN (1999,1999+1,1999+2,1999+3)
GROUP BY c_customer_sk

) d

), best_ss_customer AS
(

SELECT c_customer_sk,
sum(ss_quantity*ss_sales_price) ssales
FROM store_sales ,customer
WHERE ss_customer_sk = c_customer_sk
GROUP BY c_customer_sk
HAVING sum(ss_quantity*ss_sales_price) > (95/100.0) *
(

SELECT *
FROM max_store_sales

)

)
SELECT c_last_name,
c_first_name,
sales
FROM
(

SELECT c_last_name,
c_first_name,
sum(cs_quantity*cs_list_price) sales
FROM catalog_sales ,customer ,date_dim
WHERE d_year = 1999
AND d_moy = 1
AND cs_sold_date_sk = d_date_sk
AND cs_item_sk IN
(

SELECT item_sk
FROM frequent_ss_items

)
AND cs_bill_customer_sk IN
(

SELECT c_customer_sk
FROM best_ss_customer

)
AND cs_bill_customer_sk = c_customer_sk
GROUP BY c_last_name,c_first_name
UNION
all SELECT c_last_name,
c_first_name,
sum(ws_quantity*ws_list_price) sales
FROM web_sales ,customer ,date_dim
WHERE d_year = 1999
AND d_moy = 1
AND ws_sold_date_sk = d_date_sk
AND ws_item_sk IN
(

SELECT item_sk
FROM frequent_ss_items

)
AND ws_bill_customer_sk IN
(

SELECT c_customer_sk
FROM best_ss_customer

)
AND ws_bill_customer_sk = c_customer_sk
GROUP BY c_last_name,c_first_name

) b
ORDER BY c_last_name,c_first_name,sales

LIMIT 100;

Query 24
WITH ssales AS
(

      SELECT c_last_name ,
            c_first_name ,
            s_store_name ,
            ca_state ,
            s_state ,
            i_color ,
            i_current_price ,
            i_manager_id ,
            i_units ,
            i_size ,
            sum(ss_sales_price) netpaid
      FROM store_sales ,store_returns ,store ,item ,customer ,customer_address
      WHERE ss_ticket_number = sr_ticket_number
            AND ss_item_sk = sr_item_sk
            AND ss_customer_sk = c_customer_sk
            AND ss_item_sk = i_item_sk
            AND ss_store_sk = s_store_sk
            AND c_birth_country = upper(ca_country)
            AND s_zip = ca_zip
            AND s_market_id=7
      GROUP BY c_last_name ,c_first_name ,s_store_name ,ca_state ,s_state ,i_color ,i_current_price ,i_manager_id ,i_units ,i_size

)
SELECT c_last_name ,
      c_first_name ,
      s_store_name ,
      sum(netpaid) paid
FROM ssales
WHERE i_color = 'orchid'
GROUP BY c_last_name ,c_first_name ,s_store_name
HAVING sum(netpaid) >
(

      SELECT 0.05*avg(netpaid)
      FROM ssales

) ;
WITH ssales AS
(

      SELECT c_last_name ,
            c_first_name ,
            s_store_name ,
            ca_state ,
            s_state ,
            i_color ,
            i_current_price ,
            i_manager_id ,
            i_units ,
            i_size ,
            sum(ss_sales_price) netpaid
      FROM store_sales ,store_returns ,store ,item ,customer ,customer_address
      WHERE ss_ticket_number = sr_ticket_number
            AND ss_item_sk = sr_item_sk
            AND ss_customer_sk = c_customer_sk
            AND ss_item_sk = i_item_sk
            AND ss_store_sk = s_store_sk
            AND c_birth_country = upper(ca_country)
            AND s_zip = ca_zip
            AND s_market_id = 7
      GROUP BY c_last_name ,c_first_name ,s_store_name ,ca_state ,s_state ,i_color ,i_current_price ,i_manager_id ,i_units ,i_size

)
SELECT c_last_name ,
      c_first_name ,
      s_store_name ,
      sum(netpaid) paid
FROM ssales
WHERE i_color = 'chiffon'
GROUP BY c_last_name ,c_first_name ,s_store_name
HAVING sum(netpaid) >
(

      SELECT 0.05*avg(netpaid)
      FROM ssales

) ;

Query 44
SELECT asceding.rnk, i1.i_product_name AS best_performing, i2.i_product_name AS worst_performing
FROM

(
      SELECT *
      FROM

      (
            SELECT item_sk, rank() OVER (ORDER BY rank_col ASC) AS rnk
            FROM

            (
                  SELECT ss_item_sk AS item_sk, AVG(ss_net_profit) AS rank_col
                 FROM store_sales ss1
                  WHERE ss_store_sk = 410
                  GROUP BY ss_item_sk
                  HAVING AVG(ss_net_profit) > 0.9 *

                  (
                        SELECT AVG(ss_net_profit) AS rank_col
                        FROM store_sales
                        WHERE ss_store_sk = 410
                              AND ss_hdemo_sk IS NULL
                        GROUP BY ss_store_sk
                  )
            ) V1
      ) V11
      WHERE rnk < 11
) asceding,

(
      SELECT *
      FROM (
            SELECT item_sk, rank() OVER (ORDER BY rank_col DESC) AS rnk
            FROM

            (
                  SELECT ss_item_sk AS item_sk, AVG(ss_net_profit) AS rank_col
                  FROM store_sales ss1
                  WHERE ss_store_sk = 410
                  GROUP BY ss_item_sk
                  HAVING AVG(ss_net_profit) > 0.9 *

                  (
                        SELECT AVG(ss_net_profit) AS rank_col
                        FROM store_sales
                        WHERE ss_store_sk = 410
                              AND ss_hdemo_sk IS NULL
                        GROUP BY ss_store_sk
                  )
            ) V2
      ) V21
      WHERE rnk < 11
) descending, item i1, item i2
WHERE (asceding.rnk = descending.rnk
      AND i1.i_item_sk = asceding.item_sk
      AND i2.i_item_sk = descending.item_sk)
ORDER BY asceding.rnk
LIMIT 100;

Describe the solution you'd like
The subquery in having could be supported.
For example:
select a , sum(b) from t group by a having sum(b) = subquery1

Competitive analysis


Allow pod annotations to be set when using the helm chart

Currently it is not possible to set pod annotations for the flux pods, this is useful if for example you are using something like kube2iam and need to assign an IAM role to the pods so that ECR image scanning can work.

You changes have been published to our Helm repository, the chart version is 0.6.3.


Disable aggregation until we can apply it selectively

or sbt-scoverage is updated to deal with dependencies.
Unfortunately, enabling this revives the publishing of the coreMacros and chiselFrontend jars and we don't want that.

Ahh bummer, so coverage will still be split between the different subprojects?

Yes, it is quite disappointing. My attempts to work around it have so far failed so I think it's better to pull it than start spreading problematic jars.


w-config does not work when used in conjunction with w-extend

Fixed with<EMAIL_ADDRESS>and<EMAIL_ADDRESS>


Update broken links to Ansible in kubespray.md

@marekhanus
This PR includes multiple language files.
We limits fixes to a single language per PR, please see here.
And also see this PR which is in same situation.

@atoato88 Fixed.

@marekhanus
Thank you to update.
I remove language tag except for en because tihs PR includes en contents only.
/remove-language fr
/remove-language ja
/remove-language ko
/remove-language zh

/kind cleanup

Page preview:
https://deploy-preview-27473--kubernetes-io-master-staging.netlify.app/docs/setup/production-environment/tools/kubespray/#2-5-compose-an-inventory-file

Thanks @marekhanus .
/lgtm

/approve


Generate INTO SQL() tatement into string variable

    var data = [{id:1}];
    var sql = alasql('SELECT * INTO SQL({tableid:'one'}) FROM ?',[data]);
    // sql = 'INSERT INTO one (id) VALUES (1);');

Would it be possible also to export the table structure?

Have created feature request so people can vote
http://feathub.com/agershun/alasql/+25


add cask for hab

Adding a new cask

[✅] Checked there aren’t open pull requests for the same cask.
[✅] Checked there aren’t closed issues where that cask was already refused.
[✅] When naming the cask, followed the token reference.
[✅] Commit message includes cask’s name.
[✅] brew cask audit --download {{cask_file}} is error-free.
[✅] brew cask style --fix {{cask_file}} left no offenses.
[✅] brew cask install {{cask_file}} worked successfully.
[✅] brew cask uninstall {{cask_file}} worked successfully.

Thank you for the contribution. Seems like this is an open-source CLI tool. In that case, and to avoid duplication this should be only in homebrew.
I saw https://github.com/Homebrew/homebrew-core/pull/1994, but this should be reworked as a formula that is compiled, rather than a downloadable cask.
Pinging @DomT4.

Yeah that was my initial plan but Habitat has some dependencies on on the casks vmware-fusion and dockertoolbox in order to compile it from source and I wasn't able to find a good way to depend on a cask from inside of a formula. I'll look into it some more.

@vitorgalvao Hey Vitor. My message about the Cask accepting binaries is a generic reply, to be honest. I'm happy to poke people towards homebrew/binary instead if Cask wants to completely avoid CLI stuff going forwards?
If it can build from source & someone's willing to work on that we're certainly happy to take it in homebrew/core, but I wasn't sure if that was the case here.

I'm happy to poke people towards homebrew/binary instead if Cask wants to completely avoid CLI stuff going forwards?

We’re happy to take CLI stuff, it just seemed to me that since this is open-source and CLI-only, homebrew-core would be the better place.

but Habitat has some dependencies on on the casks vmware-fusion and dockertoolbox in order to compile it from source and I wasn't able to find a good way to depend on a cask from inside of a formula.

If there’s such a hurdle in getting this to compile from source, then sure, we’ll take it here.

If it can build from source & someone's willing to work on that we're certainly happy to take it in homebrew/core, but I wasn't sure if that was the case here.

If that happens, then we can switch (remove from HBC, add to HB).


Support SAS syntax checking/linting

As a user, I'd like to have SAS syntax checking/linting features.

We now have formatting in place for sas code. Does this fulfill this request, @enzhihpp?

We now have formatting in place for sas code. Does this fulfill this request, @enzhihpp?

They're different. Linter will report error/warnings for code quality issues. Formatter makes better alignment and pretty printing.

Yes, as @scnwwu mentioned, it's different. We hope the extension could analyze sas code statically.

I would like to add that if this feature would be added, that it would prevent us from submitting code to run if there is a syntax error or if it did not pass linting. The number of times I've kicked off code just to spot a simple syntax error like forgetting a semi-colon would help save time.


Adding a truststore for the certificate because otherwise the build w…

Adding a truststore for the certificate because otherwise the build won't be able to download the dependencies.

It doesn't work as I thought it should. Closing.


Support virtualized rendering of List/Chat items

Feature Request
Problem description
The problem happens in cases when List/Chat content should be rendered as virtualized.
Virtualization capabilities are not provided by Stardust components, and this provides client with an options to either use existing library for this, or to write virtualization functionality by her own.
The most common choice for this situation is to use react-virtualized. Unfortunately, that attempt won't result in successful problem's resolution.
The core of the problem is that container components of react-virtualized should  own items rendering process (see rowRenderer in the example below), and this is not possible to achieve with Stardust - as for Stardust components it is also critical to control logic of items' rendering (to provide event handlers, accessibility attributes, etc).
import { List as VirtualizedList } from 'react-virtualized'

<VirtualizedList
  ...
  rowRenderer={ ({ idx }) => .. render item given its index .. }
/>

Proposed solutions
There are at least couple of options how this issue could be addressed.
It is possible to add virtualisation capabilities to implementation of Stardust components, and provide the necessary API to the client to control it:
import { Chat, List } from '@stardust-ui/react'

// `virtualized` logic is part of Stardust component's implementation
<List items={...} virtualized />
<Chat items={ ... } virtualized />

Another (admittedly, more involved) approach is to extend capabilities of Stardust for composition scenarios, so that something like the following will be possible:
import { List } from '@stardust-ui/react'
import { List as VirtualizedList } from 'react-virtualized'

<List>
  { ({ renderItem }) => (
      <VirtualizedList
        ...
        rowRenderer={args => /* render row with `renderItem` */ }  />)}
</List>

@kuzhelov please discuss with @silviuavram as he is looking into the tree virtualization

Let's get some working examples for some of these proposals.  This decision will impact a lot of core patterns for us, one way or another.  I'd like to see virtualization done a couple ways and with a couple libraries before we make that call.
One concern is that we have shorthand APIs (with 4 input types) and children APIs already and adding a 6th form of component composition worries me a bit.  I'd like to see if we can simplify the API surface with real world usages.

For clarity, try items with random sizes, stateful items that change size, resize the list container vertically and horizontally.  Ensure we support auto height and all changes to items and container layout that are reasonably expected in a UI for a list (and other virtualized components).

https://github.com/stardust-ui/react/pull/1697 first prototype. Virtualization with https://react-window.now.sh/#/examples/list/variable-size. No accessibility (may be implemented later if we will go further with this). The tree is virtualised, with dynamic number of open items. Passing size before rendering (to react-window) is a limitation.

List and Chat can be virtualized when Children API is uesed. closing


Source from local json field

I've read the docs well, but i didn't find any option to set the source from a local field.
eg i have a local name field (json) which keeps my translations (name->en,name->fr ....)
I tried to  set   'source' => 'name->en' but no luck.
The only solution is to create an other getter eg
 public function getSlugNameAttribute($value)
 {
       return $this->name;
 }

and then use this in source   'source' => 'slug_name'.
But this is not the optimal i'd like!

Sorry for the delay.
Sadly, using a custom getter (or a callable) is the only way to do what you want right now.  It's only "unoptimal" in that you will need to add that customer getter method to your models (but you could make a trait if you are constantly re-using that method).  It shouldn't be "unoptimal" in terms of how fast your code runs.


UI toolkit - create a 'link-like' button and use in block explorer

We need a component that is semantically a button, but looks like an underlined link.
We currently have a button in block explorer at apps/explorer/src/app/components/blocks/home/blocks-refetch.tsx which can then make use of this component.

@campbellssource yes, thought the current implementation explicitly removes an underline, so perhaps we can create a variant.


Added JSON type

JSON field

Codecov Report

Merging #1270 (f2d1a2d) into main (bdedefe) will decrease coverage by 0.25%.
The diff coverage is 64.17%.

@@            Coverage Diff             @@
##             main    #1270      +/-   ##
==========================================
- Coverage   94.24%   93.99%   -0.26%
==========================================
  Files         209      213       +4
  Lines       35295    35528     +233
==========================================
+ Hits        33264    33394     +130
- Misses       2031     2134     +103

Impacted Files
Coverage Δ

src/indexer/segment_writer.rs
91.63% <0.00%> (-0.31%)
:arrow_down:

src/postings/json_postings_writer.rs
0.00% <0.00%> (ø)

src/postings/mod.rs
98.57% <ø> (ø)

src/postings/per_field_postings_writer.rs
79.41% <0.00%> (-20.59%)
:arrow_down:

src/schema/field_entry.rs
92.76% <0.00%> (-0.62%)
:arrow_down:

src/schema/json_object_options.rs
0.00% <0.00%> (ø)

src/schema/json_object_utils.rs
0.00% <0.00%> (ø)

src/schema/mod.rs
100.00% <ø> (ø)

src/schema/schema.rs
98.42% <ø> (ø)

src/schema/value.rs
52.87% <0.00%> (-2.02%)
:arrow_down:

... and 14 more

Continue to review full report at Codecov.

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


Entity implements device_state_attributes. Please report it to the custom component author.

Describe the bug
Warning message on start up - Entity x.x implements device_state_attributes. Please report it to the custom component author.
To Reproduce
Steps to reproduce the behavior:

Start/Restart HA Core
Check logs
See warning

Expected behavior
No warnings.
Screenshots
Entity sensor.morgan_mint_mobile_days_remaining_in_month (<class 'custom_components.mintmobile.sensor.DaysRemainingInMonthSensor'>) implements device_state_attributes. Please report it to the custom component author.
Entity sensor.nathan_mint_mobile_days_remaining_in_month (<class 'custom_components.mintmobile.sensor.DaysRemainingInMonthSensor'>) implements device_state_attributes. Please report it to the custom component author.
Entity sensor.morgan_mint_mobile_days_remaining_in_plan (<class 'custom_components.mintmobile.sensor.DaysRemainingInPlanSensor'>) implements device_state_attributes. Please report it to the custom component author.
Entity sensor.morgan_mobile_data_usage_remaining (<class 'custom_components.mintmobile.sensor.MintMobileSensor'>) implements device_state_attributes. Please report it to the custom component author.
Entity sensor.nathan_mint_mobile_plan_term (<class 'custom_components.mintmobile.sensor.CurrentPlanSensor'>) implements device_state_attributes. Please report it to the custom component author.
Additional context
HA Supervised 2021.12.9
Mint Mobile Integration via HACS v1.8

@nholben Thanks for reporting. I'll take a look and push out a change to address that.

@nholben Pushed out v1.9 to fix issue. Please upgrade and that error message should no longer be present.

Fixed - Thank you!


Forget historical payments for Land

New code tracks payment by address for Land. Since we never plan to return payment for Land we can forget this.

Ok i have removed it, that true we are not using it


option to add taints per nodepool

old method was to apply taints at cluster creation via nodeConfig (essentially type), now taints can be added per nodePool
fixes https://github.com/samsung-cnct/k2/issues/680

@davidewatson Thanks for the reminder on definitions.json - that is done.
@coffeepac Your comment as you know was dealt with and now we have schedulingConfig.


move off gogo

See this ticket for details. https://github.com/golang/protobuf/issues/1014

Compatibility issues between upstream protobuf and gogo protobuf have been known for a while. Right now, this can manifest in some oddities with grpc-gateway as well as the healthcheck support. For example, the following error is logged on the deps client.
ERROR: 2021/02/19 07:55:09 [core] Health check is requested but health check function is not set.

When we enable health checks, the compatibility issue becomes a bit more clear:
2021/02/19 07:50:53 rpc error: code = Unavailable desc = last connection error: connection active but received health check RPC error: rpc error: code = Internal desc = protobuf tag not enough fields in HealthCheckRequest.state:


Fix ParseOptions examples

Nokogiri.XML does not accept keyword arguments.
Resolves https://github.com/sparklemotion/nokogiri/issues/1902

Thank you for submitting this clarification! Merging and will push to nokogiri.org this morning.
Note: related to #1451

(Note: the CI failure was due to disk space on the worker node, which I'm fixing out of band.)

Updated: https://nokogiri.org/rdoc/Nokogiri/XML/ParseOptions.html
Thanks again!


Implemented DescribeCluster to Discover Cluster Version

Fixes #N/A
Description
Implemented DescribeCluster to Discover Cluster Version
How was this change tested?
Make Presubmit
Does this change impact docs?

[ ] Yes, PR includes docs updates
[ ] Yes, issue opened: #
[x] No

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>2
Warning: This coverage report may be inaccurate.
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

For more information on this, see Tracking coverage changes with pull request builds.
To avoid this issue with future PRs, see these Recommended CI Configurations.
For a quick fix, rebase this PR at GitHub. Your next report should be accurate.

Details

14 of 17 (82.35%)  changed or added relevant lines in 4 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.02%) to 82.701%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

pkg/operator/operator.go
0
1
0.0%

pkg/providers/version/version.go
12
14
85.71%

Totals

Change from base Build<PHONE_NUMBER>0:
0.02%

Covered Lines:
5713

Relevant Lines:
6908

💛  - Coveralls


power domain / management

Will it be easy to get into and wake from deep sleep via RTCs, and GPIO via both edge and level change etc.?
what will the sleep/deep sleep current demands be for power from LiPo input  etc. etc.

@ElectronicBattle
Good day,

I don't have information directly from myself on this but maybe look at: https://www.nxp.com/docs/en/application-note/AN12085.pdf

**We don't have an dedicated RTC coin cell battery connector, instead the lipo battery can be used to power the board incise their is no USB

Best estimate for the RT1060's low power mode is less than 150ma for lipo. (I would need to test this)

Thanks


Automate release mechanism

Releasing can now be done using:
mvn clean release:prepare release:perform

The machine executing this command will have to have correctly configured:

PGP - System installation + Maven local installation
Nexus Sonatype OSSRH repository credentials in Maven


Article sample config defines an Instance key but sample code uses config.Authority

Are the config Instance and the config.Authority variable are referring to the same value? Should the code be using config.Instance instead?
The article is also not very clear on why there is a string format argument in the sample config for Instance:
{
  "Instance": "https://login.microsoftonline.com/{0}",
    ...
}

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

ID: 08bcd9e7-d45f-1867-185a-c74636a9f448
Version Independent ID: 20e2b7a4-12b0-8cbf-d36f-63a9b527b7da
Content: Configure daemon apps that call web APIs - Microsoft identity platform
Content Source: articles/active-directory/develop/scenario-daemon-app-configuration.md
Service: active-directory
Sub-service: develop
GitHub Login: @jmprieur
Microsoft Alias: jmprieur

@fordprefect480 Thank you for your feedback . We will investigate and update the thread.

Hello @jmprieur, can you please check on this and share a clarity from the code side.

Hi @fordprefect480, thanks for your question. The Authority in this case is a property on the  AuthenticationConfig class, and is defined as such:
/// <summary>
/// URL of the authority
/// </summary>
public string Authority
{
    get
    {
        return String.Format(CultureInfo.InvariantCulture, Instance, Tenant);
    }
}

Thus, the authority in this case is a concatenation of the Instance and Tenant, which should answer your second question about the string format.
Since the code in the article reflects the current reality of the code sample, I'll close this one out as no changes are required. Do let us know, however, if you feel this closure was done prematurely. #please-close


feat(pkg/operator/csr): add NewServiceAccountMultiSubjectsApprover approver

To avoid the necessity of having multiple CSRApproverController instances like in https://github.com/openshift/cluster-policy-controller/commit/1f053433338879160c5a7f471bf5907f3315f08a
And instead be able to do https://github.com/openshift/cluster-policy-controller/pull/148/files instead.
~not really what I need actually, this would require more changes~

/retest-required

/retest-required

Changes seem good to me. I'm not an approver/reviewer in this repo so I'll leave approval/lgtm to those with the appropriate permissions.

Thanks, but know that /lgtm are always welcome ;)


textarea with v-pre attr should skip compile

skip compile before process it's :value when a textarea has v-pre attr
Fixed #3184

Thanks!


Why list of listeners resets silently?

Hi all!
Bluebird 3.4.7
Node 6.9.2
Snippet from here
if (index >= MAX_LENGTH - CALLBACK_SIZE) {
        index = 0;
        this._setLength(0);
}

Can somebody explain me, why list of listeners resets to 0 without any warnings or errors?

See discussion in https://github.com/petkaantonov/bluebird/issues/36 and comments in  https://github.com/petkaantonov/bluebird/commit/954565108e708ad1ab2a8b9b00069890bc529969

@benjamingr hi, thanks for quick response. But discussion and comments are not answering question – why length is cut without even a warning? I understand, that this is a rare case - when you are attaching 65535 listeners to a promise, but no warning even in debug mode?

ping @benjamingr


Can We add a marker to the particular position.

Can We add a marker to the particular position.

Hi Concern,
Please help. Below is my code.

 Edit map


Using nix-doom-emacs in a doom-emacs config repository, without home-manager?

Hi, I have a separate repo for my doom configuration (https://github.com/shaunsingh/nyoom.emacs) and was wondering if its possible to build/run the configuration using nix? Ideally without using home-manager? The readme only specifies how to use it with home-manager

I'm not sure how you would do it with a flake exactly, but in general you can remove a few lines from the home-manager example:
{ pkgs, ... }:

let
  doom-emacs = pkgs.callPackage (builtins.fetchTarball {
    url = https://github.com/nix-community/nix-doom-emacs/archive/master.tar.gz;
  }) {
    doomPrivateDir = ./doom.d;  # Directory containing your config.el init.el
                                # and packages.el files
  };
-in {
+in doom-emacs
-  home.packages = [ doom-emacs ];
-}

Crap. I can't stop the urge to figure it out.. Here's a broken patch that should give you a base to work off of.

I tried this:
{
  description = "shaunsingh's doom emacs configuration";

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
    nix-doom-emacs.url = "github:nix-community/nix-doom-emacs";
    emacs.url = "github:cmacrae/emacs";
    flake-utils.url  = "github:numtide/flake-utils";
  };

  outputs =
    { self
    , nixpkgs
    , emacs
    , flake-utils
    , nix-doom-emacs
    }:
    flake-utils.lib.eachDefaultSystem (system:
      let
        overlays = [ (import emacs) ];
        pkgs = import nixpkgs {
          inherit system overlays;
        };
      in
      with pkgs;
      {
        defaultPackage = nix-doom-emacs.package.${system} { doomPrivateDir = ./.; };
      }
    );
}

Results in this error: error: unable to execute '/nix/store/2yzavm1d79qwk52mb99bvlhsw1bffp0p-emacs-with-packages-27.2/bin/emacs-with-packages': No such file or directory
Is it possible to change what emacs package nix-doom-emacs is using as well, from the overlay I'm using (or from the emacs-overlay nix-doom-emacs uses)? I didn't find anything in the README

nix build works fine, so that's a start

Yay! (^:

nix run Results in this error

It should be running /nix/store/blahblah/bin/emacs instead. Not sure how you make Nix do that.

Is it possible to change what emacs package nix-doom-emacs is using as well

Sure, pass this in alongside doomPrivateDir: (my usage here)
        emacsPackages = emacsOverlay.emacsPackagesFor someEmacsPackage;

It seems like I have answered everything

@shaunsingh's flake.nix above got me building a per-directory emacs in result/bin that seems to be responsive to my doom.d configuration (because I declared coq in (doom! ... :lang ... coq) and proof general was installed upon booting up emacs), but it's not doom -- no vim, no themes, no doom home screen.
Here's my repo https://github.com/orbis-tertius/coq-tinyram it seems strange to me.

So it's good now @quinn-dougherty?


Use Waifu2X to enlarge background image

More testing is still needed, especially for old PCs.
Comparison:

cubic
waifu2x

native source code here

Just chiming in to give my own 2 cents, but Waifu2X can be resource intensive depending on the image resolution, so I would not recommend using machines that do not have the following specifications:

Supported OS (Win10+)
Supported GPU, this one is hard to quantify but looking at the page, an AMD R7-1700 and a GTX 1070 worked, so I believe anything that gives around the same level of performance would be acceptable. We would probably need to have some form of exception handling to handle cases where resource usage is too high, in which case, we would terminate the task and simply load the default image.
A somewhat recent version of any drivers

I think that covers it?

Just chiming in to give my own 2 cents, but Waifu2X can be resource intensive depending on the image resolution, so I would not recommend using machines that do not have the following specifications:

As long as its toggleable between the current implementation (MagicScaler) and w2x I'm fine with it. Especially due to the nature of w2x

Just chiming in to give my own 2 cents, but Waifu2X can be resource intensive depending on the image resolution, so I would not recommend using machines that do not have the following specifications:

In fact, Collapse can only run on systems above Windows 10, so in most cases there is no need to consider system version compatibility issues.
For supported GPUs, I think this is already checked in native. For example, the Vulkan Loader (vulkan-1.dll) fails to load, or the Vulkan api returns an error code. This toggle is disabled when native library fails to load.
Also I will add some extra checks for black or corrupted image.

Can I get the source for the OpenMP? I need the license file to be added manually as its not from NuGet

Can I get the source for the OpenMP? I need the license file to be added manually as its not from NuGet

https://github.com/llvm/llvm-project/blob/main/openmp/LICENSE.TXT
copied from vcredist

Tested and works great!

As per internal discussion, we can merge this PR now~
Thank you for your work


Fix memory leak due to misuse of K8s clients

The existing code creates two(!) Kubernetes client factories for each(!) reconciliation of each(!) object. The factories do get garbage collected, but because of goroutines, this does not happen immediately. Those factories accumulate a lot of memory, mostly due to the parsing of discovery data/server OpenAPI schema:

In fact, by inserting an error into the CR (and thereby causing a hot reconciliation loop), I could make the memory go above 2G in less than a minute.
Rewrite the code such that a single Kubernetes client factory is instantiated (through kube.New, factory being reused for creating a clientset for the storage driver secrets client), and also a single REST client getter. With this change, the memory of the ACS operator remains at ~80MB, even when the CR contains an error and there is little to no back-off between reconciles.

Did you perhaps run this change by @joelanford already?

Yes, I've sent out an upstream PR.


Fix Utility Umbrella & Primal Weather move nullifying

Fixes #461

Test failure is independent of this PR; verifying the mechanics are correct here.

Thanks!


CFTimeIndex changes to normal Index after renaming

MCVE Code Sample
Since this code crashes for me and I don't have xarray master, I can't create a tested MCVE Code sample at the moment, but I think something along the lines of:
import xarray as xr
ds = xr.Dataset(coords={'time': xr.cftime_range(start='2000', periods=6, freq='2MS', calendar='noleap'), 'something': [0, 1, 2, 3]})
print(ds.indexes['time'])
ds = ds.rename({'something': 'something_else'})
print(ds.indexes['time'])

Expected Output
CFTimeIndex([2000-05-01 12:00:00, 2000-05-02 12:00:00,
             ...
             2001-04-01 12:00:00],
            dtype='object', name='time', length=425)

After renaming
Index([2000-05-01 12:00:00, 2000-05-02 12:00:00,
             ...
             2001-04-01 12:00:00],
            dtype='object', name='time', length=425)

Problem Description
CFTimeIndex changes to normal Index after renaming
Output of xr.show_versions()

xarray: 0.14.0
pandas: 0.25.2
numpy: 1.17.2
scipy: 1.3.1
netCDF4: 1.5.3
pydap: None
h5netcdf: 0.7.4
h5py: 2.9.0
Nio: None
zarr: None
cftime: <IP_ADDRESS>
nc_time_axis: None
PseudoNetCDF: None
rasterio: 1.1.0
cfgrib: None
iris: None
bottleneck: 1.2.1
dask: 2.6.0
distributed: 2.6.0
matplotlib: 3.1.1
cartopy: 0.17.0
seaborn: None
numbagg: None
setuptools: 41.4.0
pip: 19.3.1
conda: None
pytest: 5.2.1
IPython: 7.9.0
sphinx: None

The culprit may be in ds_rename_indexes:
https://github.com/pydata/xarray/blob/40588dc38ddc2d573e3dc8c63b2e6533eb978656/xarray/core/dataset.py#L2662
where the index gets piped through pd.Index:
import pandas as pd
pd.Index(ds.indexes['time'])

returns an index instead of a CFTimeIndex

also, you can simplify that to
print(
    ds.indexes,
    ds.rename().indexes,
    ds.rename_dims().indexes,
    ds.rename_vars().indexes,
    sep="\n",
)

and the type of the index still gets dropped (on master)

Nice spot @mathause . We should be constructing from the type of v. pd.Index also has a method _shallow_copy IIRC we could call


set_dparam does not update ode initial values

It is in fact the problem I encountered in #144 ...

Whereas on parameters it works well

In case of mixing, only parameters are updated

Solved


Openproblems v2 results

Describe your changes
Issue ticket number and link
Closes #xxxx (Replace xxxx with the GitHub issue number)
Checklist before requesting a review

[x] I have performed a self-review of my code

Check the correct box. Does this PR contain:

[ ] Breaking changes
[ ] New functionality
[x] Major changes
[ ] Minor changes
[ ] Bug fixes

[ ] Proposed changes are described in the CHANGELOG.md

[ ] CI Preview succeeds and looks good!

Closing this PR in favour of separate PRs per task


Typedoc file discovery is different from TSC

[x] I have checked issues with bug label and found no duplicates

Expected Behavior
When running TypeDoc, I expect it to find the same files that a run of tsc would.

Actual Behavior
TypeDoc reimplements its own file discovery (even though TSC's can just be invoked as a library), and reimplements it poorly.

When trying to exclude node_modules to avoid a giant tree crawl, TypeDoc is going to recurse into all directories, afterwards discarding all files that were found:

https://github.com/TypeStrong/typedoc/blob/master/src/lib/application.ts#L267
(The isExcluded() check could/should happen BEFORE recursing into subdirectories)

TypeDoc could simply be calling ts.parseJsonConfigFileContent() to have JS return all filenames that are in scope of the current build, respecting includes/excludes that are already in the tsconfig.json.

Example: https://github.com/awslabs/jsii/blob/master/packages/jsii/lib/compiler.ts#L263

Steps to reproduce the bug
For one, run in a directory with a mix of .ts and .d.ts files. TSC would know to only look at the .ts files, but TypeDoc doesn't.
Run in a directory with { "exclude": ["node_modules"] } in the tsconfig.json. The directory is not ignored.
Environment

Typedoc version: HEAD
Node.js version:
OS:

Thanks for the feedback. I would like to see TypeDoc align more with the typescript compiler and how tsc reads projects. Until then you will have to pass arguments like "exclude" to typedoc as well as TypeScript.
Could you explain the specific issue you are seeing with .d.ts files? Is the problem that your file links are pointing to the wrong source flies? It would be helpful if you could include how to reproduce this with the typedoc/typescript configuration you are encountering this with.

Note: if you specify a tsconfig file with --tsconfig (and don't specify input files in the command) then TypeDoc will use the TS api to find source files

Hi @aciccarello I can reproduce this one on
tsc version: 3.5.5
typedoc: 0.15.0

when specify with tsconfig file
tsconfig files
    "extends": "./base-tsconfig.json",
    "references": [
        // prepend the common projects
        { "path": "../../WebCommon/typescript/util", "prepend": "true" }
     ]

tsc runs OK.
Typedoc fails to find the references all fails on
 Cannot find namespace 'Util'.

I'm willing to bet we need to do something special (or at least different from when TypeDoc was mostly written years ago) in order to support the references key, and currently we aren't.


isFullscreen option in App details

I saw recently that there's a new option in App Studio -> Manifest editor -> Details -> App details, called Fullscreen Mode.

This looks great if it does what I think it does, and I was waiting for it for a while. But when I check that option and go to Test and distribute, I see an error, and the manifest is now invalid.

Is this something that you're still working on, or is it supposed to be working already?
ETA if still working on it?

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

ID: d0b75ec1-0ded-400e-7291-b7776d510ae4
Version Independent ID: 157f3a51-42f6-f70f-a599-6775fcb34ed1
Content: Package your app - Teams
Content Source: msteams-platform/concepts/build-and-test/apps-package.md
Product: msteams
GitHub Login: @laujan
Microsoft Alias: lajanuar

@mdanielcristian Thanks for reporting this to us. I could repro the issue. I have raised a bug for this and we are working on fixing it.

We are tracking this internally.


Cannot migrate to Azure Bot Service ("does not have authorization to perform action..." error)

Bot Info

SDK Platform: .NET
SDK Version: <IP_ADDRESS>
Active Channels: DirectLine, Facebook Messenger
Deployment Environment:  Local (on-premise) server messaging endpoint, Bot Framework

Issue Description
Cannot migrate my bot to Azure Bot Service.
Reproduction Steps

Login to dev.botframework.com
Click on "Migrate" button next to the bot in the My Bots section
Choose region, Azure service level, check terms of agreement, etc.
Error message...sometimes blank, sometimes the error in "Actual Results" below

Expected Behavior
Migration to Azure bot service, no error message.
Actual Results
An error occurred: 403
The client '...' with object id '...' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourceGroups/write' over scope '/subscriptions/...'

Hi 5amuraix,
Can you provide BotID and Bot name?

Hi Francisco,
Thanks for the reply.
After contacting our CSP and MS support, apparently it was an issue with our Azure account.


fix: dont fail deployment on indentation based codeblocks

towards #2031
hotfix until new gfm version gets released

Brilliant! All working again.


afpacket.(*TPacket).ReadPacketData segmentation violation

version:tags v1.2.0
go version: go1.22.5
[signal SIGSEGV: segmentation violation code=0x1 addr=0x7fd1acc1c00c pc=0x3c24b56]
goroutine 74 gp=0xc00324c380 m=2 mp=0xc00009c808 [running]:
runtime.throw({0x49387d8?, 0x0?})
runtime/panic.go:1023 +0x5c fp=0xc0009f6ad0 sp=0xc0009f6aa0 pc=0x43e93c
runtime.sigpanic()
runtime/signal_unix.go:895 +0x285 fp=0xc0009f6b30 sp=0xc0009f6ad0 pc=0x457385
github.com/gopacket/gopacket/afpacket.(*v3wrapper).next(0xc0031a8308?)
github.com/gopacket/gopacket@v1.2.0/afpacket/header.go:256 +0x16 fp=0xc0009f6b40 sp=0xc0009f6b30 pc=0x3c24b56
github.com/gopacket/gopacket/afpacket.(*TPacket).ZeroCopyReadPacketData(0xc0031a8240)
github.com/gopacket/gopacket@v1.2.0/afpacket/afpacket.go:324 +0xde fp=0xc0009f6bd8 sp=0xc0009f6b40 pc=0x3c230fe
github.com/gopacket/gopacket/afpacket.(*TPacket).ReadPacketData(0x2c5db2d1d8d4850?)
github.com/gopacket/gopacket@v1.2.0/afpacket/afpacket.go:439 +0x73 fp=0xc0009f6ca8 sp=0xc0009f6bd8 pc=0x3c23c13
asm/pkg/lscanner/ethhandle.(*AfpacketHandle).ReadPacketData(0xcccccccccccccccc?)
asm/pkg/lscanner/ethhandle/afpackethandle.go:73 +0x70 fp=0xc0009f6d50 sp=0xc0009f6ca8 pc=0x3c25b90
github.com/gopacket/gopacket.PacketDataSource.ReadPacketData-fm()
:1 +0x85 fp=0xc0009f6df8 sp=0xc0009f6d50 pc=0x3ac4965
github.com/gopacket/gopacket.(*PacketSource).NextPacket(0xc00324a690)
github.com/gopacket/gopacket@v1.2.0/packet.go:943 +0x58 fp=0xc0009f6f00 sp=0xc0009f6df8 pc=0x3ac0c98
github.com/gopacket/gopacket.(*PacketSource).packetsToChannel(0xc00324a690, {0x617e858, 0xc003217860})
github.com/gopacket/gopacket@v1.2.0/packet.go:960 +0xab fp=0xc0009f6fb8 sp=0xc0009f6f00 pc=0x3ac0eeb
github.com/gopacket/gopacket.(*PacketSource).PacketsCtx.gowrap1()
github.com/gopacket/gopacket@v1.2.0/packet.go:1026 +0x28 fp=0xc0009f6fe0 sp=0xc0009f6fb8 pc=0x3ac1368
runtime.goexit({})
runtime/asm_amd64.s:1695 +0x1 fp=0xc0009f6fe8 sp=0xc0009f6fe0 pc=0x4793c1
created by github.com/gopacket/gopacket.(*PacketSource).PacketsCtx in goroutine 72
github.com/gopacket/gopacket@v1.2.0/packet.go:1026 +0xd6
I found that there are many similar issues in the Google repository's issues section.

I sincerely apologize for the inconvenience caused, the issue arose due to my utilization of a socket that had already been closed. ReadPacketData(0xcccccccccccccccc?) is a wild pointer

I'd still say there's a bug in afpacket. A Go function shouldn't segfault even if misused.


Exclude vendor folders when calculating additions and deletions

In a project, our team uses cocoapods. We added Pods folder to the repo because cocoapods does not guarantee exact copies of generated files in different systems.
Now the problem is that Pods is not considered as a vendor folder also it is defined in Linguist's  vendor.yml so I now see Ruby as a language in the repo and big numbers for additions and deletions in graphs page.

This seems like a valid issue.
Is there a reason why:

We can't do anything for the numbers in additions/deletions...

@pchaigno

Is there a reason why:

We can't do anything for the numbers in additions/deletions...

Yup, because it’s not a function of Linguist but rather the GitHub.com code. The “we” is referring to Linguist, not GitHub, hence the follow up suggestion of contacting GitHub’s support team.


Relay Pagination: max_limit is not respected

I have read the docs thoroughly before making this bug report.

[X] Yes

I have read through other open issues, and my issue is not a duplicate.

[X] Yes

What version of the library you are using?
0.2.8
Which python version are you using?
3.12
What operating system are you on?
Mac
Description
I wanted to set up a connection node where all the items are returned. The reason why I didn't use the DjangoListField here is because the client expects to work with relay IDs, and it's also easy to swap between using / not using pagination for quick prototyping.
With graphene, setting max_limit=None ensures that all the items in that connection are returned.
For this test, I set my relay page size to 2 like this:
GRAPHENE = {
    "RELAY_CONNECTION_MAX_LIMIT": 2,
}

I tried setting up the model in two ways (with None, and a number greater than the max no. of connections), but both didn't work, and the default page size was still being respected:
class HousingCompanyNode(IsTypeOfProxyPatch, DjangoObjectType):
    real_estates = DjangoConnectionField(RealEstateNode)
    developers = DjangoConnectionField(DeveloperNode, max_limit=9999)

class HousingCompanyNode(IsTypeOfProxyPatch, DjangoObjectType):
    real_estates = DjangoConnectionField(RealEstateNode)
    developers = DjangoConnectionField(DeveloperNode, max_limit=None)

I think the bug is here:
https://github.com/MrThearMan/graphene-django-query-optimizer/blob/9d58c3be48faa6a4551f06c20c3c712dff4f7068/query_optimizer/fields.py#L215-L223
I'm hitting this code path and it overrides the size value of pagination_args, not respecting the max_limit

Correction: max_limit is respected for top level connections, just not for nested ones. This was a conscious choice to make implementing #61 easier at the time.
However, with the addition of get_filter_info, this is now possible, and I was able to fix this. Released in 0.2.10.

@MrThearMan you're right. I'm in the process of reproducing this with the test models, but when max_limit is None for nested fields, we seem to be ignoring order_by filters on the nested field because we never hit the paginate_prefetch_queryset function.
I will keep you posted as I try to reproduce.
I'm not 100% sure yet because I had to implement some custom order_by logic for my use case, which might be interfering with this.

I found a separate issue while testing this. totalCount is broken on nested fields if max_limit=None
To reproduce:
class DeveloperNode(IsTypeOfProxyPatch, DjangoObjectType):
    class Meta:
        model = DeveloperProxy
        interfaces = (relay.Node,)
        connection_class = CustomConnection

class HousingCompanyNode(IsTypeOfProxyPatch, DjangoObjectType):
    real_estates = DjangoConnectionField(RealEstateNode)
    developers = DjangoConnectionField(DeveloperNode, max_limit=None)

{
  pagedHousingCompanies {
    edges {
      node {
        name
        developers {
          totalCount
          edgeCount
          edges {
            node {
              name
            }
          }
        }
      }
    }
  }
}

Where the response I get is as follows:
{
  "data": {
    "pagedHousingCompanies": {
      "edges": [
        {
          "node": {
            "name": "Ballard PLC",
            "developers": {
              "totalCount": 0,
              "edgeCount": 3,
              "edges": [
                {
                  "node": {
                    "name": "Daniel Anderson"
                  }
                },
                {
                  "node": {
                    "name": "Nicholas Hobbs"
                  }
                },
                {
                  "node": {
                    "name": "Norman Richardson"
                  }
                }
              ]
            }
          }
        },
        ...

I'm in the process of reproducing this with the test models, but when max_limit is None for nested fields, we seem to be ignoring order_by filters on the nested field because we never hit the paginate_prefetch_queryset function.

I was wrong. We do hit the paginate_prefetch_queryset but exit early before doing the ordering because of this conditional block:
https://github.com/MrThearMan/graphene-django-query-optimizer/blob/65225ed150cc8af7edd60d6066fddf48bfe24c6d/query_optimizer/optimizer.py#L173-L176
I was running into an issue because I've been relying on the manual order_by code you've written (and not the OrderingFilter, because this lets me order by computed fields and also ensure that order_by is run after all other filters -- but that's worth a separate discussion altogether)
However, is this block still relevant given that we already return early if the field is not a connection field here?

I found a separate issue while testing this. totalCount is broken on nested fields if max_limit=None

I'll reopen the issue to fix this, I already know what the issues is so shouldn't be too difficult.

As for the ordering filter, you might be interested in my CustomOrderingFilter, since it let's you write custom ordering functions. It makes other changes too, like changing order_by statements from strings to enums, and changing filters to e.g. pk -> pkAsc & -pk -> pkDesc, so its not a drop in replacement, but maybe worth a look.

Fixed both issues with max_limit=None in 0.3.0.
However, the fix for limiting with first is not as optimal as it could be, since techically we don't need to count the number of rows in the database in order to use the first filter when max_size=None. The issue is that the existing functions for calculating pagination limits expect the size to be known, and I didn't want to add yet another logic path for this case (at least not at the moment, since the paginate_prefetch_queryset method is getting out of hand as is).

Awesome!
Yeah, that tradeoff definitely seems reasonable for now


fix: Losing graphic control extension for some frames

see: https://github.com/matt-way/gifuct-js/issues/30

@bigtimebuddy


Surface dB context switch error troubleshooting

Fixes #9518
@Rick-Anderson @cncgate @niltor Head-check me on this update. I'm not going to walk the steps if this is the known-good fix. It's a time-saver for me not to do so if this is the correct content to surface. Otherwise, let me know that this isn't necessarily the fix, and I'll walk a test scenario to talk-the-talk. 🚶:smile:

@guardrex 	I don't think that's the only reason you can get that error. We can't doc every way you can get an exception. The closed issue is enough for other folks to find this error. If others run into this problem we'll reconsider.


Not working with New Teams API - new install

I am unable to get the API token populated using companion. Manage API is enabled in Teams settings. In companion, the API Version is 2.0.0 and the IP address is correct.
I attempt to press button presets for MS Teams but not seeing the Allow or Block request from Teams.  Error: "Disconnected Teams not running"
Microsoft Teams version 24231.512.3106.6573
Companion version v3.4.0

Hi @daveontherun,
There's a few things to check and a few limitations. If you could confirm the following that would be good:

Confirm that the IP address is <IP_ADDRESS> - it MUST be localhost; MS Teams only accepts local connections and will not respond to  queries from a computer on the network. (sorry if this is misleading; the 1.0 API allowed remote calls if I recall correctly).
Confirm that you have turned on third party API within Teams. Settings -> Privacy -> Third Party API

Just adding to that, I use some port forwarding rules both on Windows and Mac to overcome that useless Microsoft limitation of only listening on localhost.
For Mac I use socat (I listen to my whole subnet, but you could make the range a single host):
socat -d TCP4-LISTEN:8124,range=<IP_ADDRESS>/24,reuseaddr,fork TCP:<IP_ADDRESS>:8124
On Windows 11 I achieve the same result using those two commands (in this case I only listen to one specific host):
netsh advfirewall firewall add rule name="Companion to Teams" protocol=TCP dir=in localip=<IP_ADDRESS> localport=8124 action=allow
netsh interface portproxy add v4tov4 listenport=8124 listenaddress=<IP_ADDRESS> connectport=8124 connectaddress=<IP_ADDRESS> protocol=tcp

Hope that helps!

The issue was I was trying to remote call from another PC. The firewall and port forwarding worked like a charm. Thank you both!
I suggest maybe adding a note in the help section to mention 2.0 API only allows localhost


Add function to merge time series by time

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

Files
Coverage Δ

src/startorch/timeseries/utils/__init__.py
100.00% <100.00%> (ø)

src/startorch/timeseries/utils/merge.py
100.00% <100.00%> (ø)

:loudspeaker: Thoughts on this report? Let us know!.


Investigate ODIS Signer timeouts

During the CB earn firefighting we saw evidence that the signer timeouts we added weren't working correctly

Figure out how to test the signer timeouts
Test the signer timeouts
If timeouts aren't working, fix them or create a new ticket to do so if it's complicated

Run it locally with an added sleep statement to reproduce this and confirm

We should confirm this is still happening in the logs before further investigation. We've made a decent number of changes that may have fixed this.

Not high priority now since things have been running smoothly. Will re-open if we observe this during the improved load testing.


ConfigureVisibilityOnHost exist main execution when not in admin mode

ATM the current execution gets exited when ConfigureVisibilityOnHost on Windows needs to run commands in elevated mode. This aborts any successive provisioning in Vagrant

Fixed by issue #230


Check failed to run: undefined method `missing_extensions?' for nil:NilClass

Please forgive a very newbie question but I keep getting errors on my Sensu server (someone else who has left the company set it up before I started).  I am really stuck and would appreciate any guidance on how to troubleshoot this.
Check failed to run: undefined method missing_extensions?' for nil:NilClass, ["/opt/sensu/embedded/lib/ruby/site_ruby/2.3.0/rubygems/stub_specification.rb:146:in missing_extensions?'", "/opt/sensu/embedded/lib/ruby/site_ruby/2.3.0/rubygems/basic_specification.rb:71:in contains_requirable_file?'", "/opt/sensu/embedded/lib/ruby/site_ruby/2.3.0/rubygems/specification.rb:1037:in block in find_by_path'", "/opt/sensu/embedded/lib/ruby/site_ruby/2.3.0/rubygems/specification.rb:1036:in each'", "/opt/sensu/embedded/lib/ruby/site_ruby/2.3.0/rubygems/specification.rb:1036:in find'", "/opt/sensu/embedded/lib/ruby/site_ruby/2.3.0/rubygems/specification.rb:1036:in find_by_path'", "/opt/sensu/embedded/lib/ruby/site_ruby/2.3.0/rubygems.rb:209:in try_activate'", "/opt/sensu/embedded/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:126:in rescue in require'", "/opt/sensu/embedded/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:40:in require'", "/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/aws-sdk-core-2.3.16/lib/aws-sdk-core/xml/parser/engines/ox.rb:1:in <top (required)>'", "/opt/sensu/embedded/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require'", "/opt/sensu/embedded/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require'", "/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/aws-sdk-core-2.3.16/lib/aws-sdk-core/xml/parser.rb:86:in load_engine'", "/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/aws-sdk-core-2.3.16/lib/aws-sdk-core/xml/parser.rb:92:in try_load_engine'", "/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/aws-sdk-core-2.3.16/lib/aws-sdk-core/xml/parser.rb:79:in block in set_default_engine'", "/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/aws-sdk-core-2.3.16/lib/aws-sdk-core/xml/parser.rb:78:in each'", "/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/aws-sdk-core-2.3.16/lib/aws-sdk-core/xml/parser.rb:78:in set_default_engine'", "/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/aws-sdk-core-2.3.16/l…
Sensu version 0.29
Ubuntu 14.04

This error is not related to Sensu Core, it is a AWS Sensu Plugin error. Please feel free to report this error at https://github.com/sensu-plugins/sensu-plugins-aws
Thank you 👍


Cleanup for #150

Removed the double if block.
Is undefing the defines necessary? If so just re-add them.

Actually it would be necessary if entered in #if defined(__GNUC__) and GNUC end implementing __has_builtin to avoid a warning.
Probably the best way, now that __has_builtin is defined, would be:
#if defined(__GNUC__) || __has_builtin(__builtin_bswap64)
	#define JT_HAS_INTRINSIC_BSWAP64
#endif

#if defined(__GNUC__) || __has_builtin(__builtin_bswap32)
	#define JT_HAS_INTRINSIC_BSWAP32
#endif

#if defined(__GNUC__) || __has_builtin(__builtin_bswap16)
	#define JT_HAS_INTRINSIC_BSWAP16
#endif

This way no undef is necessary and looks cleaner to me.


We didn't handle absurd clauses without absurd patterns

data False
open data Truth | rua
def f Truth : False
| rua
def inconsistency : False => f rua

😱

@ice1000
  private static Pat.Preclause<Term> checkRhs(@NotNull ExprTycker exprTycker, @NotNull LhsResult lhsResult) {
    return exprTycker.subscoped(() -> {
      exprTycker.localCtx = lhsResult.gamma;
      var term = exprTycker.withSubSubst(() -> {
        // We `addDirectly` to `parentLets`.
        // This means terms in `parentLets` won't be substituted by `lhsResult.bodySubst`
        // IDEA said that this line is useless...
        exprTycker.lets.addDirectly(lhsResult.bodySubst());
        return lhsResult.preclause.expr().map(e -> lhsResult.hasError
          // In case the patterns are malformed, do not check the body
          // as we bind local variables in the pattern checker,
          // and in case the patterns are malformed, some bindings may
          // not be added to the localCtx of tycker, causing assertion errors
          ? new ErrorTerm(e, false)
          : exprTycker.check(e, lhsResult.type).wellTyped());
      });

      return new Pat.Preclause<>(lhsResult.preclause.sourcePos(), lhsResult.preclause.patterns(), term);
    });
  }

It seems that in the case of expr() is None we just return term as None. Is there an pass after this to check again if None expr is actually not type-checked?

Is there an pass after this to check again if None expr is actually not type-checked?

I think you can even do that before type checking. You may also add a boolean variable for the presence of absurd patterns and report error if the boolean is false and the body is None.

there are other absurd patterns
example def abs (n : Int) : Nat
 => match n, n {
 | pos n, neg m
 | neg n, pos m
 | pos n, pos m => n
 | neg n, neg m => n
 | negpos _, _ => 0
 | _, negpos _ => 0
 }

And currently, even something like this can pass
example def abs (n : Int) : Nat
 => match n, n {
 | pos n, neg m
 | neg n, pos m
 | pos 1, pos 1
 | pos n, pos m => n
 | neg n, neg m => n
 | negpos _, _ => 0
 | _, negpos _ => 0
 }

Seems that match expressions do not have coverage checks. /cc @wsx-ucb


Fix dependency installation in Makefile

In the last version bump, the dependency installation in Makefile was commented, it was probably a mistake, undoing...

Should be fixed in develop by now :-)
Thank you very much for your PR and help to reach a green status again!


Jupyter Panel Stuck on loading variables....

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version: 1.89.0-insider
OS Version: Darwin arm64 23.5.0

Steps to Reproduce:
This week, VSCode have bug not showing variable in Jupyter Panel after few cell run. It will stuck on loading variables....

@amunger do we make changes to variable fetching recently?

no changes were made to the Jupyter variable view
@guocity can you set "jupyter.logging.level": "verbose", repro the issue and then post the content of the jupyter logs here. The command `Jupyter: Show Output' should get you there
You can also try using the built-in variables view, which works for python kernels with "notebook.experimental.variablesView": true. It should show up in the debug side-bar.

sure, i have moved to stable build, and if i encounter the issue, i will paste the log here


Filtering out actions

I'm using this to power a marketplace feed.
I want the ability to be able to fetch the current state of an object to show to the user its sold or be able to filter stout all together.
Is this possible ?

you need to dig the codes to figure out

you need to dig the codes to figure out

i would send the action signal when an item is sold or sold out. that would show up in their stream
https://django-activity-stream.readthedocs.io/en/latest/actions.html


FAQ: Default installation prefix on Linux

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

Why does Homebrew on Linux recommend that I install to /home/linuxbrew/.linuxbrew?

Review period will end on 2020-11-25 at 18:44:40 UTC.

Sorry, most what you wrote is already covered by the FAQ answer "Why do you compile everything?"
What I meant in my offhand comment to you in Slack is that it's not clear why /home/linuxbrew/.linuxbrew was chosen over other prefixes. Why not /usr/local on Linux, or /opt/homebrew, or /brew/store?  I think the issue that most users have with /home/linuxbrew/.linuxbrew is that it's weird and doesn't look right on Linux. (Why am I making a user home directory for a user that doesn't exist? /opt is in FHS so why does Homebrew hate standards? Etc, etc.)
In our FAQ answer we need to succinctly describe the various constraints that Homebrew on Linux is designed to operate under, and explain why /home/linuxbrew was a good compromise choice.

Review period ended.

Sorry, most what you wrote is already covered by the FAQ answer "Why do you compile everything?"

I disagree that I wrote is addressed well in the FAQ, in particular, why should you install in the recommended location and not somewhere else? That's best answered here:

However do yourself a favour and install to /usr/local. Some things may
not build when installed elsewhere. One of the reasons Homebrew just
works relative to the competition is because we recommend installing
to /usr/local. Pick another prefix at your peril!

https://docs.brew.sh/Installation#untar-anywhere
I'd be up for copying this text to the FAQ.
I've added this text:

The prefix /home/linuxbrew/.linuxbrew was chosen so that users without admin access can ask an admin to create a linuxbrew role account and still benefit from precompiled binaries.