Update TensorFlow example to a stable version

Recently TensorFlow's latest image is updated to 1.6.0. Our TensorFlow example has some deprecated library in 1.6.0 and it may cause potential failure when executing training layer on Kubernetes 1.9.3 using CPU. Thus, move the TensorFlow version back to the stable 1.5.0. version which is tested on Minikube, Vagrant, IBM Cloud, ICP, and Kubeadm.

Move it to #44


Table crashes on Singleplayer Japanese/Korean 4ball

The table seems to crash when trying to do singleplayer in either Japanese or Korean 4ball.
It crashes for the person who tried to play. For everyone else, there's a person in slot 1 and there's no game running, seems like it doesn't try to start the game via the network.
You can add yourself to slot 1, add yourself to slot 2, table works as expected, just remains crashed for that person who tried to start the singleplayer game.

Not able to reproduce this on latest local version - keep an eye out on the next release with a newly imported table. If you can, please test this with Udon debugging enabled in client (it needs certain launch arguments - see https://docs.vrchat.com/docs/debugging-udon-projects. Then, if it crashes, post the log output.

Lines 2401 and 2408 wern't wrapped in a logger check. the crash was caused by the logger not being found when trying to push a string to it.

Fixed in 1.2.2, which is out this week.


CI fails uploading coverage report

Bug description
Codecov upload fails with the following message:
[2023-01-31T21:37:27.017Z] ['error'] There was an error running the uploader: Flags must consist only of alphanumeric characters, '_', '-', or '.' and not exceed 45 characters. Received ${COVERAGE_SCOPE},cpu,pytest,python3.10

This happens for all CPU runs (fabric, pytorch, app).
How to reproduce the bug
See a recent run here:
https://github.com/Lightning-AI/lightning/actions/runs/4058544132/jobs/6985592303
cc @carmocca @akihironitta @borda

The error is confusing, because COVERAGE_SCOPE=lightning_fabric, so all flags follow the requirements in the error message.

I think it's literally ${COVERAGE_SCOPE} 😆 I'm not too confident, but we need to replace it with ${{ env.COVERAGE_SCOPE }}.

we need to replace it with ${{ env.COVERAGE_SCOPE }}

or replace it with outputs... :otter:

I just noticed another failure in the GPU CI for PL and Fabric:
https://dev.azure.com/Lightning-AI/lightning/_build/results?buildId=133485&view=logs&j=3f274fac-2e11-54ca-487e-194c91f3ae9f&t=52d5efce-740d-5403-d28f-0b2f846bfb92&l=229

==> Collecting reports
    + /__w/2/s/tests/tests_pytorch/coverage.xml bytes=603351
==> Appending environment variables
    + linux
    + azure
==> Uploading
    .url https://codecov.io/
    .query commit=d8cce4a6ee8eddf897537a156be857da8416e6f2&branch=HEAD&name=GPU-coverage&flags=gpu%2Cpytest&package=py2.1.12
    Gzipping contents..
    Compressed contents to 37363 bytes
    Pinging Codecov...
Error: Could not determine repo and owner

This might be tricky to fix since there is no indication of where it is looking for this information.

This might be tricky to fix since there is no indication of where it is looking for this information.

just fixed it as it was missing CODECOV_TOKEN among secrets... :otter:


Extension - Do not show transaction history in case sender account null

Describe the bug
Do not show transaction history in case the sender account null
To reproduce the bug
Check with account: kGfgMX3aQHvFDftJmPY7qMDhf6w351MoLUN1j4npS3Z9U4SV1 (Vara network)

Reason

Data from subscan api have from_account_display or to_account_display is null

Solution

If transaction history missing data, don't handle adding the history

Version test: http://file.cdmteck.com/s/qzc9p5BMirCfZLQ
Validation passed

Re-check some networks is normal


quick reply buttons

Hello,
I want to make quick reply button without text. I tried but there is no method for this. Could you make method that only sending quick reply button?
Thanks

Hi, this is not supported by the Messenger Platform API. You have to provide a text when sending a quick reply button. If still required I recommend to file a feature request on the FB Messenger Platform.


Python 3.6 is not supported.

Description
Remove Python 3.6 from PyPi configuration.
Update ci.yml (dependency check).
How Has This Been Tested?

github actions
review

Process
I know the process and did my best to follow it

Pull Request Test Coverage Report for Build 628

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

Totals

Change from base Build 619:
0.0%

Covered Lines:
400

Relevant Lines:
400

💛  - Coveralls


move Ontology User Pathway to Reference

We recently created the Ontology user pathway (https://oboacademy.github.io/obook/pathways/ontology-user/), but this is not so much a pathway where you do this, then that, but more of a collection of resources for ontology users.
I suggest we move it to the Reference section, rather than Pathway.
What do other's think?

Agree

I agree too. I have to admit I’m not totally sure what a “pathway” is in this context but i would imagine it’s some sequence of things to learn. That ontology-user page is not that; it’s, as you note, a collection of resources.


compatible with ARTY-Z7

Is it compatible with ARTY-Z7?
I know that I have to create a new xpr file to apply it to the board, but I'm asking is it similar to making it.

Hi @zenon4689 ,
We do not have plan to reflect in ARTY-Z7 not yet.
As you know, we are not supporting Zynq Chip set now.
However utilization is enough for porting into ARTY-Z7 I think.
Thanks


Fix file level test result status

This PR fixes file level test result status:

if all tests in file succeeded status is passed
if at least one is failed status is failed

Fixes #41

@sergii4 please go for it 👍🏿, I've forgotten some of the context of the code to know if there are any gotchas but it generally looks ok and you have tests which is a big improvement 🙌🏾


Detect if running in a browser and override the window.nostr object

The method should map the connect.getPublicKey() and connect.signEvent(evt) to the equivalent of the NIP07 window.nostr object

Hey! is this issue still open? would love to work on this can you please guide me through it.

Hey @sarthak13gupta! Yes this is def open.
I think there could be many ways and I didn't think about it extensively, but the idea would make sure to check if you are in a browser ie. if window !== undefiend if yes you set imperatively window.nostr object with  connect.getPublicKey() and connect.signEvent(evt)


How to find the “depthTest = false” mesh in the depthMap?

When I turn off the depthTest, it cannot be found in the depthMap…
depthTest = true

When I only turn off depthTest,this object disappears in the depthMap.

are you able to share the repro project for this @wei292224644 ?

it seems the project is linked here https://forum.playcanvas.com/t/how-to-find-the-depthtest-false-mesh-in-the-depthmap/16154/3

Hi @mvaligursky ,
Yes,I raised this question.


modified README to cater for log-effect + licence badge

@barambani yeah, noticed that too. I'm ok switching

Ok, another PR. 👍


 (D:\vscode demo\vscode-extension-samples-main\vscodeUI\vscodedata\vsc-umat-v3\node_modules\gulp-remote-retry-src\index.js:70:33)
at Request._callback (D:\vscode demo\vscode-extension-samples-main\vscodeUI\vscodedata\vsc-umat-v3\node_modules\lodash\lodash.js:10118:25)
at Request.requestRetryReply [as reply] (D:\vscode demo\vscode-extension-samples-main\vscodeUI\vscodedata\vsc-umat-v3\node_modules\requestretry\index.js:105:19)
at Request. (D:\vscode demo\vscode-extension-samples-main\vscodeUI\vscodedata\vsc-umat-v3\node_modules\requestretry\index.js:146:10)
at Request.self.callback (D:\vscode demo\vscode-extension-samples-main\vscodeUI\vscodedata\vsc-umat-v3\node_modules\request\request.js:185:22)
at Request.emit (events.js:400:28)
at Request.emit (domain.js:537:15)
at Request. (D:\vscode demo\vscode-extension-samples-main\vscodeUI\vscodedata\vsc-umat-v3\node_modules\request\request.js:1154:10)
at Request.emit (events.js:400:28)
at Request.emit (domain.js:537:15)
at IncomingMessage. (D:\vscode demo\vscode-extension-samples-main\vscodeUI\vscodedata\vsc-umat-v3\node_modules\request\request.js:1076:12)
at Object.onceWrapper (events.js:519:28)
at IncomingMessage.emit (events.js:412:35)
at IncomingMessage.emit (domain.js:53

7:15)
at endReadableNT (internal/streams/readable.js:1334:12)
at processTicksAndRejections (internal/process/task_queues.js:82:21)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

How can I solve it

We have a great developer community over on slack where extension authors help each other. This is a great place for you to ask questions and find support.
Happy Coding!

This problem has puzzled me for a long time how to solve it?

Is anyone going to address this issue? The problem seems to be that the references-view extension was moved into vscode, and when they moved it they removed the old versions of it from marketplace.visualstudio.com, which breaks the build for older versions. Can the old versions be put back into marketplace?


[FLUFFOS] Find All References quirks

I've been playing around with the Find All References feature and noticing some weird things happening.

Maybe not an issue so much as a nitpick, but the matched function is shown in full, with visible line returns characters. This is alright for small functions but functionally useless for larger functions as it ends up truncating with ... anyway. I would expect only the opening line of the function to match.

Sometimes it matches fluffos efuns that should not be matched. I have not been able to reproduce this 100%, maybe it was fixed in a newer release than I originally pulled, but the code snippet this is matching is essentially this:

nomask varargs void quit_character () {
    character_exit();
    flush_messages();
}

Right clicking & Find All References on a function declaration, (ex: nomask void character_exit ()) results in "No results. Try running a previous search again:" most of the time, some functions seem to work but others don't work at all. Doing the same on a usage of character_exit(); will bring up valid results sometimes, but it will still fail and say "No results. Try running a previous search again:". It seems to work better if the references are in the same file.

Part of this ticket was split into #20


Update name to PhoenixSlimeExample

@lpil your feedback is welcome but do not merge this one.  We need to ship the PhoenixSlime package so I can update mix.exs and mix.lock.

I'll go through and rename the extensions to .slime.

@lpil any thoughts?

Looks good! :)


Win+H dialog is not working correctly

Describe the bug
When I focused on the TextBox and press Win+H dialog says:

To Reproduce
Create TextBox without brush set focus on it and press Win+H.
Expected behavior
Avalonia must support Windows voice input dialog.
Avalonia version
11.1.0
OS
Windows
Additional context
No response

FocusManager.ClearFocus();
SearchBoxUI.Focus(NavigationMethod.Tab);
InputSimulator input = new InputSimulator();
input.Keyboard.KeyPress(WindowsInput.Native.VirtualKeyCode.TAB);
input.Keyboard.KeyPress(WindowsInput.Native.VirtualKeyCode.TAB);
input.Keyboard.KeyPress(WindowsInput.Native.VirtualKeyCode.TAB);

await Task.Delay(5000);

App.VoiceService.LaunchVoiceInput();

I had to use a hard hack because when focusing with TAB selection it works😅


reword error message when sending test message to read-only topic in the app

One minor thing in the app regarding auth:
When you're subscribed to a topic with read-only permissions, the "send test message" of course fails.
The error message could be reworded now from "unexpected response 403" to something like " no write permission", to avoid confusion.

Did this as part of https://github.com/binwiederhier/ntfy-android/commit/3abd0b3da9a5f0b8d991dc1a3fd081991e0de6fc#diff-5e01f7d37a66e4ca03deefc205d8e7008661cdd0284a05aaba1858e6b7bf9103R132


Syndicate with ActivityPub

Is there an opportunity to support the ActivityPub open standard for syndicating content as social updates?

Not really possible with a static site generator.

Thanks for the advice. Maybe something for a future iteration that’s not built on a static site generator?

But, it’s a Gatsby template…

This template for sports calendars is, yes. But I might need to explore other options in the future for my versatile solutions. Then ActivityPub might be feasible.


./sshrd.sh boot not working

I'm trying to get 14.3 blobs from my bootlooping iPhone X, and I can get ./sshrd.sh 14.3 to work but the command after that ./sshrd.sh boot causes my iPhone X to get kicked back into Recovery Mode. Idk what to do :P

it seems to be an issue on my end

I have a IPad Pro 1st gen A9X with dead NAND and have desperately been hoping to recover data from an SSH RAMDISK. Can it still be read?

I have a IPad Pro 1st gen A9X with dead NAND and have desperately been hoping to recover data from an SSH RAMDISK. Can it still be read?

@badger200 is your device able to boot into DFU from Recovery Mode?

(you can use my script to help boot into DFU from Recovery Mode)
https://gist.github.com/0x8ff/9cef409d3b584514046fcffdd7639ca3


"update slippage with delegate" error

Describe the bug
A user with a transaction on LiFi is unable to bump the slippage and it shows a "must update slippage with delegate" error. The user says he's connected correctly, with the initiator address to the destination chain.
Is it possible that the delegate is misconfigured to be the LiFi Diamond contract instead of the user who initiated the transaction?
Additional context
https://discord.com/channels/454734546869551114/1157040600139444234/1157040668884095006

Another case
https://discord.com/channels/454734546869551114/1157090433789333535/1157090632569987223


[stable/traefik] deploy type can be Deployment (default) or DaemonSet

What this PR does / why we need it:
Which issue this PR fixes

porting #3191 to latest charts version

Special notes for your reviewer:
Checklist

[ ] DCO signed
[X] Chart Version bumped
[X] Variables are documented in the README.md

/assign @dtomcej

Closing it and creating a new fresh pull request, rebasing from too old pr is awful and must be legally forbidden.


Add FromIterator impl for tuple

I would like to add FromIterator implementation for tuple up to ?.
I often have a situation where I have one iterator and I want to produce two distinct value of it:
use std::iter::FromIterator;

impl<A, B> FromIterator<Two<A, B>> for (Vec<A>, Vec<B>) {
    fn from_iter<T>(t: T) -> Self
    where
        T: std::iter::IntoIterator<Item = Two<A, B>>,
    {
        let i = t.into_iter();
        let (lower, _) = i.size_hint();
        let mut a = Vec::with_capacity(lower);
        let mut b = Vec::with_capacity(lower);

        for two in i {
            a.push(two.0);
            b.push(two.1);
        }

        (a, b)
    }
}

pub struct Two<A, B>(A, B);

fn main() {
    let (a, b): (Vec<_>, Vec<_>) = (0..42).map(|_| Two(0, 0)).collect();

    println!("{:?}, {:?}", a, b);
}

We could imagine the same with HashMap
use std::cmp::Eq;
use std::collections::HashMap;
use std::hash::Hash;
use std::iter::FromIterator;

impl<A, B, C, D> FromIterator<Two<A, B, C, D>> for (HashMap<A, B>, HashMap<C, D>)
where
    A: Eq + Hash,
    B: Eq + Hash,
    C: Eq + Hash,
    D: Eq + Hash,
{
    fn from_iter<T>(t: T) -> Self
    where
        T: std::iter::IntoIterator<Item = Two<A, B, C, D>>,
    {
        let i = t.into_iter();
        let (lower, _) = i.size_hint();
        let mut aa = HashMap::with_capacity(lower);
        let mut bb = HashMap::with_capacity(lower);

        for Two((a, b), (c, d)) in i {
            aa.insert(a, b);
            bb.insert(c, d);
        }

        (aa, bb)
    }
}

pub struct Two<A, B, C, D>((A, B), (C, D));

fn main() {
    let (a, b): (HashMap<_, _>, HashMap<_, _>) = (0..42).map(|_| Two((0, 0), (0, 0))).collect();

    println!("{:?}, {:?}", a, b);
}

here I use Two, but the point would be to add it to std for use tuple directly.

Well, I knew I miss something https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.unzip

@Stargateur I think this is still useful. for example, there is a impl<T, E> FromIterator<Result<S, E>> for Result<T, E>. if there is a FromIterator impl for (A, B), I can collect Result<(A, B), E> into Result<(C, D), E>. I can't do this with unzip, because the iterator is of type Result<(A, B), E>, which is not a tuple.

This would also be very useful for collecting to tuples with an arity other than 2, and is more general than unzip (as stated above). However, I don't believe it's possible to implement FromIterator for tuples without either Default + Extend<_> (as used in the OP) or collecting to an intermediate collection. Here are my attempts:
// this only works on "collection-like" types due to `Default + extend<_>`, which
// makes this fairly useless
impl<AItem, AIter> crate::iter::FromIterator<(AItem,)> for (AIter,)
where
    AIter: Default + Extend<AItem>,
{
    fn from_iter<T: IntoIterator<Item = (AItem,)>>(iter: T) -> Self {
        let mut a_iter = AIter::default();

        for (a,) in iter.into_iter() {
            a_iter.extend_one(a)
        }

        (a_iter,)
    }
}

impl<AItem, AIter> FromIterator<(AItem,)> for (AIter,)
where
    AIter: FromIterator<AItem>,
{
    fn from_iter<T: IntoIterator<Item = T>>(iter: T) -> Self {
        // since neither tuples nor FromIterator are defined in `alloc` (where `Vec`
        // is defined), this isn't possible due to:
        // error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
        let mut a_iter = Vec::default();

        for (a,) in iter {
            a_iter.extend(a)
        }

        (AIter::from_iter(a_iter),)
    }
}


Fixed an issue that caused invoked actors to be created before resolving assign actions from entry of the same state

Changes to the algorithm:

Instead of flattening the actions in getActions into an array I now group them in "blocks".
The main purpose for this is to have invoke actions and entry actions grouped together
This allows me to defer send actions to the end of the current block and flush them then

Can we document this behavior, if it differs from the SCXML algorithm (which I suspect it does)?

Where I would document this? I'm not exactly sure if this differs from the SCXML. The spec itself doesn't mention those semantics at all as far as I can tell. The algorithm at the bottom is just an informative section (not normative) and it also doesn't mention those things explicitly. However, I certainly see how I could read from it different semantics.
I'm gonna land this to get things going - but if we figure out where to document this I will happily follow up with a PR to add a note about this.


allow array argument

Fixes #1

:+1: :)

If you publish this, I can use it in https://github.com/sindresorhus/ava/pull/349

Already done, and already commented about it ;)


CLA bot

For upcoming sorting out legal stuff, we would need to developers to agree on CLA stuff
https://github.com/apps/cla-bot
https://github.com/finos/cla-bot
https://colineberhardt.github.io/cla-bot/
https://cla-assistant.io/
https://cla.opensource.microsoft.com/
https://opensource.google/docs/cla/
https://www.reddit.com/r/programming/comments/99h71l/clabot_a_github_bot_for_automation_of_contributor/

I heard that someone told me that CLA bot will get rewritten and probably open-sourced, who knows who 🤷


Use a separate process for the compiler and compiled code

We should run compiled code in a separate process. It will allow us to execute Selectors when a debugger is stopped on a breakpoint.

Closed by https://github.com/DevExpress/testcafe/pull/4592.


Be able to change currency test in Sunstone

Description
Sunstones shows a K symbol when adding costs to the templates, it would be nice to be able to add some currency string via configuration YAMLs.
Use case
Show the cost in the local currency.
Interface Changes
Sunstone.

Progress Status

[ ] Branch created
[ ] Code committed to development branch
[ ] Testing - QA
[ ] Documentation
[ ] Release notes - resolved issues, compatibility, known issues
[ ] Code committed to upstream release/hotfix branches
[ ] Documentation committed to upstream release/hotfix branches

to be addressed in FireEdge Sunstone only

addressed in https://github.com/OpenNebula/one-ee/commit/705e9779ee1893011b758c88154a39dd6fc5f2d9


Do not construct provider when validating user ID

[Left as a draft while I review test coverage]
Relates to #2845
When creating a provider, the code previously inserted the provider into the database and then instantiated it in order to validate that the user ID is correct. Alter the code so that it just instantiates the client and some supporting structures to validate the user ID.
This client deliberately does not use the client cache in order to simplify the code. Since this is the first usage of the client for that provider, we will never find a suitable client in the cache anyway.
Summary
Provide a brief overview of the changes and the issue being addressed.
Explain the rationale and any background necessary for understanding the changes.
List dependencies required by this change, if any.
Fixes #(related issue)
Change Type
Mark the type of change your PR introduces:

[ ] Bug fix (resolves an issue without affecting existing features)
[ ] Feature (adds new functionality without breaking changes)
[ ] Breaking change (may impact existing functionalities or require documentation updates)
[ ] Documentation (updates or additions to documentation)
[x] Refactoring or test improvements (no bug fixes or new functionality)

Testing
Outline how the changes were tested, including steps to reproduce and any relevant configurations.
Attach screenshots if helpful.
Review Checklist:

[x] Reviewed my own code for quality and clarity.
[x] Added comments to complex or tricky code sections.
[ ] Updated any affected documentation.
[x] Included tests that validate the fix or feature.
[ ] Checked that related changes are merged.

coverage: 50.359% (-0.2%) from 50.514%
when pulling a93da49ed6e3ac3e74f3badb8aef0449b8f3f4c9 on gh-delegate-service
into 3fe642045d759e94cb008447db886986b2f85217 on main.


Voice implementer support for HTTP Signatures in IETF HTTP WG

Hi, I'm @msporny, primary author of the HTTP Signatures specification at IETF for many years now. You've implemented some variation of that specification.
I need your help to move that specification towards a global standard at IETF. Hearing from implementers, such as you, is a big part of determining if the work toward a global standard should proceed. The IETF HTTP Working Group is determining whether the work should proceed right now. This is very good news, because the European Banking API community, W3C DID Working Group, W3C Credentials Community Group and other standards setting organizations depend on implementations standardizing on a way to do HTTP Signatures.
The deadline for noting your support is Jan 31st 2020 (in ~10 days).
Here's where you can make a difference...
Here is the IETF HTTP WG Call for Adoption:
https://lists.w3.org/Archives/Public/ietf-http-wg/2020JanMar/0002.html
To note your support of the specification:

Go here and click "subscribe to this list": https://lists.w3.org/Archives/Public/ietf-http-wg/
Verify your subscription by checking your email and clicking on the link that is mailed to you.
Go here and click "respond to this message": https://lists.w3.org/Archives/Public/ietf-http-wg/2020JanMar/0002.html
Write an email stating:
4.1 That you support the adoption of the draft.
4.2 Why you support the adoption of the draft.
4.3 How you plan to make use the specification, either directly, or indirectly (via someone else's software).
Set up an email filter to put all mail sent to<EMAIL_ADDRESS>into its own folder. The mailing list averages ~350 emails/month. You can also leave the mailing list immediately after sending the email above if that amount of email traffic is unacceptable to you.

For an example of the type of email you could write, see this:
https://lists.w3.org/Archives/Public/ietf-http-wg/2020JanMar/0018.html
Thanks a ton for supporting the specification through your implementation. I hope you consider helping us take the specification across the goal line by voicing your support in the IETF HTTP Working Group!

@msporny thanks for your leadership pushing the draft forward. I maintain this library part-time and sometimes have to put off responding until I have an unbroken chunk of time to re-establish context.
I see the latest draft is now at https://tools.ietf.org/html/draft-richanna-http-message-signatures-00. Is there anything I can do to support it?

Looking at the mailing list, it looks like the draft was adopted as an IETF standards-track draft for HTTP2 thanks to @richanna's efforts, right?
https://tools.ietf.org/html/draft-ietf-httpbis-message-signatures
That's great news. I'm going to work toward full compliance with this latest draft.

@msporny thanks for the work that you and the team have put into the draft. With the latest draft released, I have updated the implementation in this library so it now supports the full scope of draft-ietf-httpbis-message-signatures-09.


How login and logout views should be

How login and logout views should be? is the anything related to tokens (like generating and returning token) or user model like (logout(request) or authenticate(request, username=username, password=password)) should be done in login and logout views?
can you provide some examples?

If by Login you mean creating an auth token, please view the convert-token endpoint. In order to sign the user out, you need to send a request to the revoke-token/ endpoint. This way, a user's token will be removed and its permissions revoked.
You can see both endpoints by running swagger via docker: https://github.com/wagnerdelima/drf-social-oauth2#run-swagger-editor.


rewrite of js2coffee

this is related to https://github.com/js2coffee/js2coffee/issues/270
since js2coffee using narcissus for parsing the JS AST and narcissus is not just buggy, it's really old and deprecated. So it would be nice to use esprima, acorn or the uglify parser which is not an implementation of Parser API but can be transformed into it, therefor it has some more nice features.
@michaelficarra
And maybe it would make more sense to write it new instead of refactor it. And in that case maybe support coffee-redux. I'm not into it, just fly over the Intentional Deviations and not sure how big the diff is and if it's possible to support both coffee and coffee-redux.
What you think?

Posted some updates: #333
At the moment it should be pretty solid. I'm confident about the idea of replacing js2coffee 0.x eventually with the rewrite, as soon as some more polishing is added in, and the site fully updated.
http://js2coffee.github.io/js2coffee-redux/


DO NOT MERGE Windows CI: Port TestAttachDisconnect

Signed-off-by: John Howard<EMAIL_ADDRESS>Ported by using a simple PowerShell implementation of cat to workaround the inability of the Windows busybox image to support interactive inside a container on Windows.

Actually - while this test works 100% reliably locally, it so far has failed 100% on Jenkins. :open_mouth:  Investigating...

Adding "DO NOT MERGE" to title. Still investigating why I'm seeing intermittent Jenkins failures now.


How to split a view into pieces

Like the layouts and pieces in Rails, I want a method to reuse the code. Currently the webview tag can only display a whole html page; hence I should always write duplicated html header tags and so on. Sharing on the global javascript objects among them directly (since they may in the same page it's redundant to have another scheme handle the sharing problem) could also save a lot of codes. Or is there any way to customize an html tag so that I can implement what I need.

Electron doesn't provide this, you have to use a template engine yourself, you can find some discussions at https://github.com/atom/electron/issues?q=is%3Aissue+jade+is%3Aclosed.


TPV T-cell differentiation  in thymus

I was doing some annotation intersections last night  some condensin complex  become annotated to the slim term adhesion.
This seemed  odd, and it appears they are generated by this parentage:

Is all T-cell differentiation part of adhesion (or indeed any at all?). I know nothing about this but it seems wrong for t-cell differentiation to be part of aggregation?

This seems odd to me too. @addiehl can you give us a quick sanity check please?

It seems that 'T cell aggregation' has the logical def; leukocyte activation and has_participant some T cell. I think this was a typo. It should be leukocyte aggregation and has_participant some T cell.

I agree with David's diagnosis of the problem and agree with his suggested fix.

Fix committed. Thanks Alex and Val.


node_security_group_additional_rules and vpc_security_group_ids is not working for me

Description
node_security_group_additional_rules
If your request is for a new feature, please use the Feature request template.

[x] ✋ I have searched the open/closed issues and my issue is not listed.

⚠ Note
Before you submit an issue, please perform the following first:

Remove the local .terraform directory (! ONLY if state is stored remotely, which hopefully you are following that best practice!): rm -rf .terraform/
Re-initialize the project root to pull down modules: terraform init
Re-attempt your terraform plan or apply and check if the issue still persists

Versions

Module version [Required]: 19.19.1

Terraform version:

Provider version(s):

Reproduction Code [Required]

locals {
  eks_additional_sgr = {
    description = "Allow internal access"
    protocol    = "-1"
    from_port   = 0
    to_port     = 0
    type        = "ingress"
    cidr_blocks = ["<IP_ADDRESS>/8"]
  }
}

resource "aws_security_group" "node_sg_additional" {
  name_prefix = "node_sg_additional"
  vpc_id      = var.vpc_id

  ingress {
    from_port = 1025
    to_port   = 65535
    protocol  = "tcp"
    cidr_blocks = [
      "<IP_ADDRESS>/8",
    ]
  }
}

module "eks" {
  source  = "terraform-aws-modules/eks/aws"
  version = "~> 19.19.1"

  cluster_name    = "hogehoge"
  cluster_version = "1.27"

  cluster_addons = {
    coredns    = {}
    kube-proxy = {}
    vpc-cni = {
      before_compute = true
      most_recent    = true
      configuration_values = jsonencode({
        env = {
          # Reference docs https://docs.aws.amazon.com/eks/latest/userguide/cni-increase-ip-addresses.html
          ENABLE_PREFIX_DELEGATION = "true"
          WARM_IP_TARGET           = "1"
        }
      })
    }
  }

  vpc_id                   = var.vpc_id
  subnet_ids               = ["subnet-hogehogehogehoge", "subnet-hogehogehogehoge"]
  control_plane_subnet_ids = ["subnet-hogehogehogehoge", "subnet-hogehogehogehoge"]

  cluster_security_group_additional_rules = {
    ingress_cluster_https_port = {
      description = "Allow internal Cluster endpoint https"
      protocol    = "tcp"
      from_port   = 443
      to_port     = 443
      type        = "ingress"
      cidr_blocks = ["<IP_ADDRESS>/8"]
    },
    ingress_self_all = local.eks_additional_sgr
  }

  node_security_group_additional_rules = {
    ingress_cluster_https_port = {
      description = "Allow internal Cluster endpoint https"
      protocol    = "tcp"
      from_port   = 443
      to_port     = 443
      type        = "ingress"
      cidr_blocks = ["<IP_ADDRESS>/8"]
    },
    ingress_self_all = local.eks_additional_sgr
  }

  eks_managed_node_group_defaults = {
    ami_type                              = "AL2_x86_64"
    instance_types                        = ["m6i.large", "m5.large", "m5n.large", "m5zn.large"]
    attach_cluster_primary_security_group = true
    vpc_security_group_ids                = [aws_security_group.node_sg_additional.id]
    iam_role_additional_policies = {
      ssm = "arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore"
    }
  }
  eks_managed_node_groups = {
    spot_x86_instances = {
      ami_type                              = "AL2_x86_64"
      instance_types                        = ["c6a.xlarge", "c5a.xlarge", "t3a.xlarge", "c5a.xlarge"]
      attach_cluster_primary_security_group = true
      capacity_type                         = "SPOT"
      min_size                              = 1
      max_size                              = 2
      desired_size                          = 1
      subnet_ids                            = ["subnet-hogehogehogehoge", "subnet-hogehogehogehoge"]
    }
  }
}

Steps to reproduce the behavior:

Expected behavior

Nodes would be attached security group aws_security_group.node_sg_additional and security group rules ingress_cluster_https_port and ingress_self_all .

Actual behavior

security group aws_security_group.node_sg_additional never be attached to Nodes and also ingress_cluster_https_port and ingress_self_all   never added eks-cluster-sg-hogehoge.

Terminal Output Screenshot(s)

Additional context

please refer to the examples provided for guidance on how to accomplish this https://github.com/terraform-aws-modules/terraform-aws-eks/tree/master/examples/complete


[bug] error with openai proxy and lang chain

Describe the bug
should be able to chain.invoke via the OpenAI callable in langchain and a base url pointing at a guardrails server but it errors on role of type None
To Reproduce
Steps to reproduce the behavior:

setup a guardrails server with 1 guard and 1 validator such as gibberish text
configure a langchain chain with a openai callable that has base_url set to the gr servers guards/guard_name/openai/v1 endpoint
invoke the chain syncronously

Expected behavior
should complete and validate
Library version:
0.5.0
Additional context

@dtam I think they originally were using ainvoke which might explain the behaviour.  I believe this comment in the docs means that, for LCEL, ainvoke is equivalent to astream:

Whenever using runnables without LCEL, make sure to call .astream() on LLMs rather than .ainvoke to force the LLM to stream tokens.

Source: https://python.langchain.com/v0.1/docs/expression_language/interface/#async-stream-events-beta
This would explain why it worked when telling the model to activate streaming (that should send the stream=True keyword to the guardrails server).  Still not sure why it blew up otherwise, but probably has something to do with the fact that Langchain was expecting a text/event-stream but was just getting application/json

I tested this again today to see where we were on being able to support this.  The call actually goes through and validates appropriately but since we are not responding with the entire message structure including the role, Langchain's OpenAI pydantic model blows up.
Also, the streaming implementation does not work with ainvoke with or without setting streaming=True on the OpenAI model.


feature: customize app name

It's a pretty simple commit, allowing an app_name to be set in config.json, which reflects the app name in a reported issue. This would only affect issues moving forwards.
Currently, this commit is setup so that the config MUST have an app_name, although I could modify the commit to have a default so that the config SHOULD have an app_name, with a default of "Electrum".

Pull Request Test Coverage Report for Build 16

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.05%) to 93.103%

Totals

Change from base Build 15:
0.05%

Covered Lines:
135

Relevant Lines:
145

💛  - Coveralls


Swagger documentation generator

Cleanup errors in API 2.0 swagger definition
Add script to generate documentation in PDF form

@RackHD/corecommitters

Build finished.

👍


Add logging::Registry::insert_logger

As discussed earlier today, this PR splits Registry::insert into insert_closure and a lower level insert_logger. insert defaults to insert_closure so this shouldn't be a breaking change.
This makes it possible to create unlogged dataflows without knowing about the logger itself:
let timely_logger = worker.log_register().remove("timely");

worker.dataflow(/* unlogged dataflow */);

if let Some(logger) = timely_logger {
  if let Ok(logger) = logger.downcast::<Logger<TimelyEvent>>() {
    worker
      .log_register()
      .insert_logger::<TimelyEvent>("timely", *logger);
    }
}

If insert and insert_closure do the same thing, perhaps we should just have insert?

Yeah I kept insert for backwards compatibility, but it's not the most dramatic change. I'll take it out.

Erm, I meant the other way; perhaps we should keep insert and not bother with insert_closure.


fix(deisctl): fixes for graceful upgrades.

fix stateless upgrade handling
stop extra router cycling

fixes #4419
fixes #4503

:+1:


[Bug]: Unbridge setting not working for doorbells

What happened?
Due to a bug in the current version doorbell cameras will not be unbridged although the corresponding setting is set to true.
This will be fixed in the next version but since a switch from bridged to unbridged can cause issues the plugin will automatically set unbridge to false if these conditions are encountered.
Again: this will only affect users with doorbell cameras, which enableCamera setting was wrongly set to false and therefore the unbridge setting was not working. (these doorbells were never truly unbridged)
The user can afterwards choose to change to unbridged mode via the settings.
See Bridged and Unbridged Mode and Problems for more information.
Device Type
Doorbell (Supported)
Plugin Version
v2.0.x (Supported)
HomeBridge Version
other (UnSupported)
NodeJS Version
other (UnSupported)
Operating System
Other (UnSupported)
Relevant log output
none

This is fixed/implemented in latest beta (2.0.1-beta.17)


[BUG] Unable to upload a file through UploadFileAsync

Library name and version
Azure.AI.OpenAI.Assistants 1.0.0-beta.4
Describe the bug
We have a .Net Core API and we have installed Azure.AI.OpenAI.Assistants 1.0.0-beta.4 nuget package.
We are trying to upload a file through .Net Core API using the AssistantsClient.UploadFileAsync it is failing with weird error.
Below is the code we tried with
var workingDirectory = AppContext.BaseDirectory;
string filePath = Path.Combine(workingDirectory, fileName);
await File.WriteAllTextAsync(filePath, fileContent);
var fileUploadResponse = await _assistantsClient.UploadFileAsync(filePath, OpenAIFilePurpose.Assistants);
await _assistantsClient.LinkAssistantFileAsync(assistantId, fileUploadResponse.Value.Id);

But, await _assistantsClient.UploadFileAsync(filePath, OpenAIFilePurpose.Assistants);  fails with below error
Additional properties are not allowed ('filename' was unexpected)
Status: 400 (Bad Request)

Content:
{
  "error": {
    "message": "Additional properties are not allowed ('filename' was unexpected)",
    "type": "invalid_request_error",
    "param": null,
    "code": null
  }
}

But same code works fine if we try it in windows form application.
Expected behavior
File should get uploaded to Assistant.
Actual behavior
We get this error
Additional properties are not allowed ('filename' was unexpected)
Status: 400 (Bad Request)

Content:
{
  "error": {
    "message": "Additional properties are not allowed ('filename' was unexpected)",
    "type": "invalid_request_error",
    "param": null,
    "code": null
  }
}

Reproduction Steps
In any .Net Core API application try the code mentioned in the description.
Environment
No response

Do we have any ETA on this?

same issue here, any solution?

I had the same issue after updating nugets.
🛠Downgrading to the following nuget versions is a workaround for the time being🛠
Azure.AI.OpenAI 1.0.0-beta.16
Azure.AI.OpenAI.Assistants 1.0.0-beta.3
Here's the request that is working fine with 1.0.0-beta.16 and 1.0.0-beta.3:

And this is after updating to 1.0.0-beta.17 and 1.0.0-beta.4:

...which is failing with:
{
  "error": {
    "message": "Additional properties are not allowed ('filename' was unexpected)",
    "type": "invalid_request_error",
    "param": null,
    "code": null
  }
}


wasm-smith: add a "no trapping" mode

I think we could do this with a post-processing pass, similar to what we do with ensure_termination.
We'd walk over each instruction and potentially insert some code right before it:

We would insert a couple instructions to ensure that a division instruction's denominator is never zero
We would insert a couple instructions to mask heap addresses to ensure they are within the memory's minimum size
Similar for table.get and table.set
Similar for trapping floating point conversion instructions
Every unreachable would be replaced with code to create dummy result values (ie zeroes) and then br out of the current control frame

We would also have to make sure that active data/elem segments were always in bounds of their memories/tables.
I think that's everything? I might be missing some trapping cases, but I think the approach would work for everything.
cc @alexcrichton

Done in https://github.com/bytecodealliance/wasm-tools/pull/769


Possible RN 0.61 Android view regressions

After upgrading from 0.60.5 to 0.61.1, I'm seeing some funky visual behaviors with Android which might be directly related to #26289, but I don't know enough about them to say for sure. For example, look at the difference in the buttons from<EMAIL_ADDRESS>in the first screenshot below. Another example is my swipe deck component based on Animated.View. In Android now the swipe cards which have solid white backgrounds are somehow merging visually (second screenshot below). That is to say, all text and icon elements of both the top card and the underlying card are visible simultaneously.
Note: all screenshots are from a Samsung Galaxy S7 Edge. These behaviors did NOT occur for me in the Android emulator.
React Native version:
System:
OS: macOS Mojave 10.14.6
CPU: (4) x64 Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz
Memory: 19.70 MB / 8.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 8.11.4 - ~/.nvm/versions/node/v8.11.4/bin/node
Yarn: 1.17.3 - /usr/local/bin/yarn
npm: 6.10.3 - ~/.nvm/versions/node/v8.11.4/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 13.0, DriverKit 19.0, macOS 10.15, tvOS 13.0, watchOS 6.0
Android SDK:
API Levels: 28, 29
Build Tools: 28.0.3, 29.0.2
System Images: android-28 | Intel x86 Atom_64, android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom
IDEs:
Android Studio: 3.4 AI-183.6<IP_ADDRESS>92245
Xcode: 11.0/11A420a - /usr/bin/xcodebuild
npmPackages:
react: 16.9.0 => 16.9.0
react-native: 0.61.1 => 0.61.1
npmGlobalPackages:
react-native-cli: 2.0.1
react-native: 0.61.0
Steps To Reproduce

Connect an Android device (Does it have to be a Samsung Galaxy S7 Edge? I don't know)
react-native init oldbutton --version 0.60.6; cd oldbutton
yarn add react-native-vector-icons react-native-paper
Edit App.js to add a button somewhere with this code:

import { Button } from 'react-native-paper';
<Button dark color="#aaaaff" mode="contained" onPress={() => {}}>Test Button</Button>

react-native run-android and observe the button's visual behavior before/while touching
cd ..; react-native init newbutton; cd newbutton
Repeat steps 3-5

Describe what you expected to happen:
I expected the views not to change so significantly between versions. See the third screenshot below. I used a lighter color on the button so you can see that even unpressed, the button has changed visually (odd dark outline), but the difference is more significant while pressing.
Snack, code example, screenshot, or link to a repository:

Note: all screenshots are from a Samsung Galaxy S7 Edge. These behaviors did NOT occur for me in the Android emulator.

Seems to be related to #26544

I think https://github.com/facebook/react-native/issues/26544 is a duplicate of https://github.com/facebook/react-native/issues/26289 (or at least strongly related), and this would appear to be too. The only one I'm not sure about is the card as it doesn't look like that has any elevation shadow to begin with.
@lafiosca is it fixed by adding TouchableNativeFeedback.SelectableBackgroundBorderless = () => null; to index.js?

@mikebouwmans Yes, at least the button examples above look likely related to that, to me. Apologies if my issue is redundant.
Although I wonder my other visual problem with the swipe cards becoming transparent is directly related. If it's about elevation, perhaps so? Those cards were using zIndex and did not use the elevation style property directly. I don't know that I have the time right now to try to boil down a minimal example unfortunately.

@mjmasn It seems that workaround does not fix the buttons or cards in my app, nor the button in the reproduction steps app. 😔

@mjmasn It seems that workaround does not fix the buttons or cards in my app, nor the button in the reproduction steps app. 😔

Have you tried removing the border-radius?

It would be helpful if you are able to get a repro that doesn't require react-native-paper

@lafiosca how about TouchableNativeFeedback.Ripple = () => null;

@TheSavior I am currently trying to work up a minimal example of the overlapping views problem. I'll update here when I have something.

Something making this a lot more difficult and time-consuming: I'm seeing inconsistent rendering results on the Android device after doing a manual shake&reload (even with Fast Refresh disabled). That is to say: I'll have a piece of code that seems to be rendering wrong, but then if I kill the app and run react-native run-android again, it becomes fine.
To phrase it another way: working from a non-minimal bad sample, pruning out bits of code and doing a manual reload may show the same bad behavior even though killing and restarting does not. This makes it confusing and tough to track down the minimal sample quickly.

After some extensive testing to try to reproduce the overlapping swipe card views problem, I have made some strange findings. As I mentioned in my previous comment, "breaking" the view breaks it for all subsequent reloads, unless I kill the app and restart from scratch. I determined that the thing that "breaks" the view is by having the react-native-paper button render on the screen, even though the button is not involved in the card view!!
The code is here: https://gist.github.com/lafiosca/dda9096adbc9ab3078c83d1d3bff112d
Creating a new 0.61.1 app and copying those files into it, when I run on the Android device (Galaxy S7 Edge) I see the overlapping text on the cards:

If I comment out line 23 of App.js (the Button) and kill/restart (NOT just reload) the app, the cards look fine:

Alternatively, following @mjmasn's suggestion and uncommenting line 6 of index.js to replace TouchableNativeFeedback.Ripple seems to clear up the issue (although it means the button no longer has ripple feedback):

I've tried the Ripple workaround in my original app, and it seems to clear up the initial problems I noticed there as well. This may be a solid enough workaround for me to proceed using 0.61.1.
I am curious to know what in react-native-paper could be causing this problem that impacts other views, and I would love to understand why that also permanently messes up the views even through reloads of "good" code. But I do not have the time this afternoon to delve any deeper into this.

callstack/react-native-paper#1341 seems related, but it raises a question in my mind: when there's a change like this, who is responsible for addressing it?

It depends what the problem is. If react-native core had a breaking change to behavior that we didn't expect to have this result then it should probably be fixed in core because it is more widespread than just one library. If it is caused by something fishy being done in react-native-paper, then I'd expect it to be fixed in react-native-paper.
If you can get a repro that doesn't require paper, or able to track down a commit in the core that caused this, that would help it get addressed in core.

It could be happening only with specific versions of android. In my case it's renders fine on API 28 but on API 23 it renders with this issue.
@lafiosca it looks like your emulator is running API 28. Try to boot another emulator running API 23

Excellent call, @greis. Running it on an API 23 emulator reproduced the issue. Thanks.

I am also seeing these shadow/zIndex issues on emulator running API 27

I wonder if this issue isn't a duplicate of https://github.com/facebook/react-native/issues/26544, according to the screenshots.
Would be awesome if OP could confirm.
Also, @ferranp and @satya164, do you think this could be related to any potential business logic that lives inside Paper?

I think it’s very likely that all of the issues referenced above are duplicates. I find it bizarre that even just rendering the component from react-native-paper also seems to “contaminate” my other views, but I am guessing that part is not the fault of react-native. I don’t have the time and knowledge to confirm for certain, but if you’d like to close this as a duplicate I’d understand.

Animated component also broken.
I think this should be fixed asap.

I am facing this problem and hope to solve it as soon as possible.

@grabbou it's definitely a react-native issue linked to TouchableNativeFeedback.SelectableBackgroundBorderless() and TouchableNativeFeedback.Ripple() with borderless param set to true.
We don't use react-native-paper.
I'll upload my repro repos in a sec.

Reproduction:
https://github.com/mjmasn/ElevationIssue60 (working)
https://github.com/mjmasn/ElevationIssue61 (broken)

I am also seeing very strange visual artifacts on certain components on Android after 0.61.x
I am also experiencing massive levels of inconsistency between reloads and / or fast refreshes as @lafiosca identifies above.
All of my probems only exist when there is a border radius applied to something - two examples:
Previously working border radius on a view over an icon
{
  backgroundColor: 'white',
  borderColor: primary,
  borderWidth: 1,
}

{
  backgroundColor: 'white',
  borderColor: primary,
  borderWidth: 1,
  borderRadius: 0,
}

Previously working border radius on a set of navigation tabs
{
  backgroundColor: white,
  borderTopLeftRadius: 15,
  borderTopRightRadius: 15,
}

{
  backgroundColor: white,
}

I will try and pull this behavior out into an example repo over the weekend.

@lafiosca  I think I have the same issue with your second screenshot. The backgroundColor can not be rendered correctly. See below:
On React Native 0.61

On React Native 0.60

I tried to remove the Animated.View but backgroundColor is still not working. I am trying to give a example to reproduce it.

Just want to note that this issue isn't entirely new to RN 0.61 - I don't have a repro immediately on hand, but I've noticed in previous versions of RN that if an element has both borderRadius and backgroundColor, and is very, very large, the backgroundColor disappears.

@jeremy-deutsch that sounds like https://github.com/facebook/react-native/issues/15826
No idea if it's actually related to these new issues or just a similar symptom.

@jeremy-deutsch that sounds like #15826
No idea if it's actually related to these new issues or just a similar symptom.

Ah yeah, didn't see that issue somehow. The connection might still be worth looking into, though.

FWIW my app on latest version of 0.60 didn’t have these issues at all.

In my case, the height is not so large, so I think maybe we have different issues here. @mjmasn

duplicate of #26544. Please continue discussion there.
@grabbou @empyrical


Is there a way to specify image size?

I really want to scale an image.  Should I include white space in the image or is there a better way to set max size?

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

ID: 6dd2bb3d-3104-1be7-7232-8a194074af4b
Version Independent ID: 2efecbe2-8538-8659-7740-6f8852f7875b
Content: Markdown reference for OPS and docs.microsoft.com - Contributor Guide
Content Source: Contribute/markdown-reference.md
Product: non-product-specific
GitHub Login: @meganbradley
Microsoft Alias: mbradley

Images on the docs site generally scale down images to the width of the page. Aim for around 1000 px wide. I think it renders more like 800 px on a desktop, but much less on Mobile generally. Docs markdown doesn't have size tag since the design is responsive to the device.
Does that help? Thanks, Jason


Can not read cells such as "("5")"

What OS?

Windows

Description
can not read cells such as "("5")",but i can open it by LibreOffice
if there is a
A,B,C
a1,b1,c1
a,b,"("5")"

Expected behavior

but in LibreOffice can read it correctly

can you identify string by ""?

Rainbow CSV can read it correctly,too

I have to look into this but
A,B,C
a1,b1,c1
a,b,"(""5"")"

is correct and works.
The "..." is used to enclose a field in quotation marks, it allows it to contain the delimiter ,. However, if you want a field that is already quoted to contain " itself, you must use the delimiter twice, i.e. "", to escape the quotation marks.
You can read https://www.ietf.org/rfc/rfc4180.txt page 2 7.
7.  If double-quotes are used to enclose fields, then a double-quote
       appearing inside a field must be escaped by preceding it with
       another double quote.  For example:

 "aaa","b""bb","ccc"

This extension uses papaparse.js for parsing and largely adheres to the csv "standard" (with a few tolerances).


Newline character in URL is causing strange Protege behavior

A newline has been accidentally added to the URL here:
https://github.com/AgriculturalSemantics/agro/blob/0af9b5fe6db92e8357388e1d9b7d20ced2ca4c56/src/ontology/agro-edit.owl#L36-37
Although this is still valid OWL syntax (the literal is typed as a string), it appears to be causing weird Protege behavior. Protege reports:
Caused by: java.net.URISyntaxException: Illegal character in query at index 49: https://stats.oecd.org/glossary/detail.asp?ID=447

And the UI fails to update the Annotations tab (I will report this to the Protege team)

Reported the bug here #444


specify additional custom require paths in package.json

just like require('project-name/...') is recognized, we could specify more custom paths in the package.json
{
  "require-paths": {
    "dtv-channel": "src/components/active/content-item/channel"
  }
}

This would allow us to keep away from requiring "up" the file structure while at the same time not end up with super long require paths
require('directv-fl/src/components/first/content-item/channel/sports')
would become
require('dtv-channel/sports')
It would also be nice to be able to set a custom name for the root level, to be able to use something different than the repo name
{
  "require-paths": {
    "dtv": "./"
  }
}

So that require('dtv/app') works even though the repo name is directv-fl.
We could even make a generic "root" symbol (like ~), so that we can use the same require statements across projects
{
  "require-paths": {
    "~": "./"
  }
}

This would allow require('~/app') to work in all projects.

this was fixed in commit 2bf58c7aa4f745c56d8e55a46a0652fe99452632


automatically publish bmaclient into pypi

Hi mas @indrarudianto! , have you wonder for this repository will be automatically published to pypi? from what i see for now, bmaclient workflow's made in one single place only (kept on pythonpackage.yml), with automatically publish to pypi i think we can achieve this with break down several steps to be exact like :
# .github/workflows/test.yml
# using current pipeline

# .github/workflows/lint.yml
# additional for linter if necessary
name: Lint

on:
  push:
    branches:
      - [master]
  pull_request:
    branches:
      - '*'

jobs:
  black:
    runs-on: ubuntu-latest
    teps:
      - uses: actions/checkout@v2
      - name: Set up Python ${{ matrix.python-version }}
        uses: actions/setup-python@v1
        with:
          python-version: ${{ matrix.python-version }}
    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        pip install tox
    - name: Format with black
      run: tox -e black .

# .github/workflows/publish.yml
name: Publish

on:
  push:
    tags:
      - 'v*'

jobs:
  publish:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Set up Python ${{ matrix.python-version }}
        uses: actions/setup-python@v1
        with:
          python-version: ${{ matrix.python-version }}
      - name: Build bmaclient
        run: |
          pip install --upgrade setuptools wheel
          python setup.py sdist bdist_wheel
      - name: Create release
        id: create_release
        uses: actions/create-release@v1
        env:
          github_token: ${{ secrets.github_token}}
        with:
          tag_name: ${{ github.ref }}
          release_name: ${{ github.ref }}
      - name: Publish package to PyPI
        uses: pypa/gh-action-pypi-publish@master
        with:
          password: ${{ secrets.pypi_password}}

For releasing into pypi itself will be triggered through commit with a tag when pushed on upstream. what do you think?

Hi @sodrooome. Thanks for submitting the issue. That's a good idea. For publish workflow, I think we need to restrict to master branch only. I can add the configurations later in the meantime or I can just merge it if you already make a PR.


Yaml file documentation

Currently it is a mess. In the case of get_stats calls and the stat_id, we should be using a values:[] with all the possible values for that stat_id

Has been cleaned up across all apps. Please document interface well moving forward.


Notebooks: Unable to copy text when code cell is in execution mode

Azure Data Studio Version:

Steps to Reproduce:

Install Kqlmagic, run command '%reload_ext Kqlmagic' in a code cell.
Run a kusto query and when authentication window opens, notebook cell wont let copy the auth code.

@gupta1 what version of ADS are you using?

These are the details:

Given that kqlmagic isn't shipping by default in April (and the other high pri issues already in that milestone), moving this out.


python310Packages.deepdiff: 6.2.3 -> 6.3.0

Changelog: https://github.com/seperman/deepdiff/releases/tag/6.3.0
Description of changes

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 226320 run on x86_64-linux 1

10 packages failed to build:

python310Packages.pytest-ansible
python310Packages.pytest-ansible.dist
python310Packages.runway-python
python310Packages.runway-python.dist
python311Packages.atsim_potentials
python311Packages.atsim_potentials.dist
python311Packages.pytest-ansible
python311Packages.pytest-ansible.dist
python311Packages.runway-python
python311Packages.runway-python.dist

64 packages built:

ansible (python310Packages.ansible-core)
ansible-later (python310Packages.ansible-later)
ansible-later.dist (python310Packages.ansible-later.dist)
ansible-lint (python310Packages.ansible-lint)
ansible-lint.dist (python310Packages.ansible-lint.dist)
ansible.dist (python310Packages.ansible-core.dist)
ansible_2_12
ansible_2_12.dist
ansible_2_13
ansible_2_13.dist
appdaemon
appdaemon.dist
deepdiff (python310Packages.deepdiff)
deepdiff.dist (python310Packages.deepdiff.dist)
home-assistant-component-tests.apple_tv
home-assistant-component-tests.litterrobot
kargo
kargo.dist
poetry
poetry.dist
poetryPlugins.poetry-audit-plugin
poetryPlugins.poetry-audit-plugin.dist
poetryPlugins.poetry-plugin-up
poetryPlugins.poetry-plugin-up.dist
python310Packages.ansible
python310Packages.ansible-compat
python310Packages.ansible-compat.dist
python310Packages.ansible-kernel
python310Packages.ansible-kernel.dist
python310Packages.ansible-runner
python310Packages.ansible-runner.dist
python310Packages.ansible.dist
python310Packages.atsim_potentials
python310Packages.atsim_potentials.dist
python310Packages.pyatv
python310Packages.pyatv.dist
python310Packages.pylitterbot
python310Packages.pylitterbot.dist
ttp (python310Packages.ttp)
ttp.dist (python310Packages.ttp.dist)
python311Packages.ansible
python311Packages.ansible-compat
python311Packages.ansible-compat.dist
python311Packages.ansible-core
python311Packages.ansible-core.dist
python311Packages.ansible-kernel
python311Packages.ansible-kernel.dist
python311Packages.ansible-later
python311Packages.ansible-later.dist
python311Packages.ansible-lint
python311Packages.ansible-lint.dist
python311Packages.ansible-runner
python311Packages.ansible-runner.dist
python311Packages.ansible.dist
python311Packages.deepdiff
python311Packages.deepdiff.dist
python311Packages.pyatv
python311Packages.pyatv.dist
python311Packages.pylitterbot
python311Packages.pylitterbot.dist
python311Packages.ttp
python311Packages.ttp.dist
sublime-music
sublime-music.dist


Question: how to evaluate rnad algorithm

Hi.
Is there any way to evaluate a model trained with the rnad algorithm against a random agent? (like tic_tac_toe_dqn_vs_tabular.py for example)
In tic_tac_toe_dqn_vs_tabular.py, the action is taken from the return value of the step function (type step_output) and env is transitioned to the next state.
However, the return value of the step function in rnad is of type dect, so I ',m not sure if I can do the same thing in this way.
Is there any better way to do this?

Ok so you can do it, but you need a few steps because the RNaD implementation does not expose the policy as an RNaD agent.
You can get the policy for any state using action_probabilities: https://github.com/google-deepmind/open_spiel/blob/7c58b6c28cc975f2a7a02a7ea604197a30ed3186/open_spiel/python/algorithms/rnad/rnad.py#L985 (you can get the state from the environment using get_state accessor in rl_environment). Then you can just sample an action from the policy and take a step on the environment using the action.
Hope this helps!

Thank you for your reply.
By following your comments, I was able to do what I wanted to do!
It helped, thank you very much.

No problemo, glad it helped!


Request: Scene name & color

I searched everywhere and hope I didn't miss something.
Don't know which category this would belong to, but I can't find
get/scene_name
get/scene_color
and the corresponding listeners.
Would like to see these as they are part of the "basic" live set.

Oh, I just recognized there is also no scene/fire. Or did I miss this, too?
This would be essential, too.

I just found out there is /live/song/get/scene_names which works, but is not documented.
This seems to be inconsistent as other calls for multiple names have a different structure.
/live/track/get/devices/name
/live/device/get/parameters/name
/live/track/get/clips/name
Following this it should be /live/song/get/scenes/name


Old Snow tests show Snow vulnerability on Firefox

Lines 50 and 74 are old tests that do crazy stuff to bypass Snow using embed and object.
Now with #53, These tests show that on Firefox Snow fails to protect realms when those techniques are being used.
This is an active vulnerability in Snow-Firefox that needs to be addressed

Does this leave me extra vulnerable?

Not at all, this simply means Snow can be bypassed which is similar to not having Snow running in the first place, so you're not left more vulnerable than before, but just as much.

From f2258c79d102441254d7cc1c2ed56c317c5e5805 these 2 tests are skipped, but still need to be solved!

objects and embed are now forbidden by CSP thanks to #118


Interrupt Overflow

Hello, I have a question, the Sscofpmf spec why don't support the interrupt overflow of cycle and instret?

See https://lists.riscv.org/g/tech-privileged/message/909:

This lack or omission starts from the fact that there are no mhpmevent CSRs for those fixed-function counters.  (Also note that one could program one of the other "general function" counters to count instret or cycles.)

See https://lists.riscv.org/g/tech-privileged/message/909:

This lack or omission starts from the fact that there are no mhpmevent CSRs for those fixed-function counters.  (Also note that one could program one of the other "general function" counters to count instret or cycles.)

thank you very much


feat(@angular/cli) Added support for multiselect list prompt

@clydin Here is the PR for just the core changes to @angular/cli and @angular-devkit-core. Including the changes you requested on https://github.com/angular/angular-cli/pull/13004. Please let me know if any further changes are necessary!
I will open a second PR with the guard schematic changes if/when this one is merged in.
Thank you,
Michael

Messed up commits again... Going to close and reopen.


Navbar right side icons appear too small

Short description of the problem:
The icons on the right in the navbar appear too small.

What behavior are you expecting?
The same size of icons for both menu toggle and action icons as shown in the Material Design guidelines on https://material.google.com/components/subheaders.html

Steps to reproduce:

Create an empty tabs project ionic start tabs tabs --v2
Change a template e.g. home.html with header code based on the documentation:

<ion-header>
 <ion-navbar>
    <button ion-button menuToggle>
      <ion-icon name="menu"></ion-icon>
    </button>

    <ion-title>
      Page Title
    </ion-title>

    <ion-buttons end>
      <button ion-button>
        <ion-icon name="search"></ion-icon>
      </button>
      <button ion-button>
        <ion-icon name="more"></ion-icon>
      </button>
    </ion-buttons>
  </ion-navbar>
</ion-header>

Which Ionic Version? 2.x
Plunker that shows an example of your issue
I have created a Plunkr but in this Plunkr the icons are the same size:

http://plnkr.co/edit/Gn9m7rfjc9WSGUOLBwBt?p=info
Run ionic info from terminal/cmd prompt: (paste output below)

add icon-only to the button:
<button ion-button icon-only ...>

Thanks! http://ionicframework.com/docs/v2/api/components/navbar/Navbar/ wan't reflecting this.

No problem.  If you haven't already, check the release notes too:
https://github.com/driftyco/ionic/blob/master/CHANGELOG.md

thanks! 👍


handle Markdown syntax to manage all basic HTML elements

Is your feature request related to a problem? Please describe.
I tried to use some Markdown elements for a presentation like third level titles, links or code block, but those elements are not managed yet.
Describe the solution you'd like
It would be nice to base Slidesk syntax on default Markdown syntax and use an existing Markdown parser that can be extended to generate the HTML.
I found Marked that could be easily configured to do what is needed.
Describe alternatives you've considered
The alternative I imagine is to implement and maintain the most common markdown elements, but it can be complicated.
Additional context

Available in next version

@taorepoara can I close ?

Yes, it works fine !


Provide examples and structure for testing prospective APIs in REPL

We'd like to improve the ability to test and prototype APIs for minerva (mainly minerva-requests and bbop-response-barista) from a simple environment.
First: https://github.com/geneontology/noctua/issues/577
Note: https://github.com/geneontology/minerva/issues/200

@goodb

@goodb
The libraries and noctua-repl should be testable again.
Should I assume that you're running minerva and barista locally and that you want to be able to prototype commands to these local systems as JSON blobs?


consolidate keyRef resolution logic

Signed-off-by: Jake Sanders<EMAIL_ADDRESS>

This is awesome. Looks like you missed the e2e_test.go stuff since that doesn't run by default though.


Missing information in JSON report

Version: 2.4.0-alpha.933
When using APIPort to generate a JSON report I don't get the information I was expecting.
Build a hello world console application
dotnet new console -n HelloWorld
cd HelloWorld/
dotnet restore
dotnet build

JSON report
When running the ApiPort to generate a JSON report:
dotnet ApiPort.dll analyze -f ./HelloWorld/bin/Debug/netcoreapp2.0/ -r JSON

I get the following content:
{
  "SubmissionId": "042e1393-25c9-4b6a-8b2c-629ec842c045",
  "ApplicationName": "",
  "CatalogLastUpdated": "2018-03-06T15:41:30.3267612+00:00",
  "MissingDependencies": [],
  "UnresolvedUserAssemblies": [],
  "Targets": [
    ".NET Core,Version=v2.0",
    ".NET Framework,Version=v4.7.1",
    ".NET Standard,Version=v2.0"
  ],
  "BreakingChanges": [],
  "BreakingChangeSkippedAssemblies": []
}

HTML report
When running the ApiPort to generate an HTML report:
dotnet ApiPort.dll analyze -f ./HelloWorld/bin/Debug/netcoreapp2.0/ -r HTML

I get the following report

I would expect the JSON report to have the same information as the HTML report.

Currently, the JSON format returns a JSON serialized version of AnalyzeResponse.
What additional information would make this seem closer?
The one I can think of is:

Adding a list of calling assemblies that use that API would be useful

In addition to that it would be great to have the same Portability Summary information.

list of assemblies, with the percentage of each .net version (.NET Core, Version=2.0, .NET Framework, Version=4.7.1 and .NET Standard, Version=2


Broken type inference for function parameter

Expected: Since movement is correctly inferred as requiring a pair of numbers, I expect the pair passed to step to have to be a pair of numbers, as well.
Instead, step is incorrectly given a polymorphic type.

Still happening.  https://code.world/blocks#Pfvqr34HFr1hiDMtzr8IwsA


 Alter legacy tagging page

Add descriptive text on what legacy tagging is, and it's purpose. Change
the redirect after you click 'Save', to take the user back to the topic tagging
taxonomy instead of the overview edit page.

Original

Updated
Creating a new document with legacy tags auto generated

Editing existing document with tags already added


New routines for counting CNOTs

@israelferrazaraujo this looks pretty good! Actually, I'm looking forward to merging your new code into my existing one. So, if @adjs is also happy with the changes, we can accept. I will merge your changes into my fork's feature branch and create a PR.
I think this is really going somewhere!


css variables in the style sheet

It would be cool to be able to do something like
:root {
  --main-bg-color: brown;
}
.bode {
  color: var(--main-plot-color);
}
.waveform {
  color: var(--main-plot-color);
}

Would make customizing big style sheets a bit easier and would help with adding skins for my synth at some point

Related to #75


Trying to get the .exe file?

So I am trying to comple something and I have prepared everything.  It works very well up until it returns this to me:
linking PCHex++.elf
f:/devkitpro/devkitarm/bin/../lib/gcc/arm-none-eabi/4.9.2/../../../../arm-none-e
abi/bin/ld.exe: cannot find -lsftd
f:/devkitpro/devkitarm/bin/../lib/gcc/arm-none-eabi/4.9.2/../../../../arm-none-e
abi/bin/ld.exe: cannot find -lsf2d
collect2.exe: error: ld returned 1 exit status
make[1]: *** [/f/PCHex-plusplus-master/PCHex++.elf] Error 1
make: *** [build] Error 2
Does anyone have any suggestions?  I think what it is trying to tell me is I need the lsf3d.exe file in the bin folder of the "devkitPro."  Any help is greatly appreciated.  Thanks and have a great day/evening.

-l is a linker flag and imagine the l is "lib" so you get libsf2d. It complains that it can't find the library file "libsf2d.a".

@profi200 Where should that "libsft2.a" file go?  Sorry for the "childish" questions.  I am quite ignorant in this area of technology.

@amspady20 Download sf2dlib and make install it, the same with libsftd (https://github.com/xerpi/sftdlib) then you will be able to compile PCHex.

@xerpi Thanks.  I really appericate the help.  Have a nice night.


Naudio WPF Demo 8 band Equalizer Frequency ranges

Hi Mark, et al,
I'm working with the Naudio WPF Demo 8 band Equalizer. It works nicely. But I can't figure out the audible frequency bands (0-22KHz range) for each of the band sliders.
The demo code looks like this...
 bands = new EqualizerBand[]
                   {
                        new EqualizerBand {Bandwidth = 0.8f, Frequency = 100, Gain = 0},
                        new EqualizerBand {Bandwidth = 0.8f, Frequency = 200, Gain = 0},
                        new EqualizerBand {Bandwidth = 0.8f, Frequency = 400, Gain = 0},
                        new EqualizerBand {Bandwidth = 0.8f, Frequency = 800, Gain = 0},
                        new EqualizerBand {Bandwidth = 0.8f, Frequency = 1200, Gain = 0},
                        new EqualizerBand {Bandwidth = 0.8f, Frequency = 2400, Gain = 0},
                        new EqualizerBand {Bandwidth = 0.8f, Frequency = 4800, Gain = 0},
                        new EqualizerBand {Bandwidth = 0.8f, Frequency = 9600, Gain = 0},
                   };

So assuming standard audio spans from 0Hz to 22050 Hz, how does the Frequency parm in the EqualizerBand constructor map to the 0-22KHz range?

The frequency parameter is in Hz, and you can give it any value (obviously staying below Nyquist frequency - half the sample rate). I kept the maximum band fairly low in this example to avoid issues with lower sample rates, but no reason why you can't go higher.

Mark,
Thanks for the quick reply.
Ok, so for audio with a 44.1K sample rate I could set Frequency as high as 22050?
Example
new EqualizerBand {Bandwidth = 0.8f, Frequency = 22050, Gain = 0},
What I might do is get the sample rate in the ISampleProvider constructor and calc the Frequency for each band accordingly.

I found this link that has a good explanation of how to choose the Equalizer bands frequencies.
https://www.presonus.com/learn/technical-articles/equalizer-terms-and-tips
With this info, I'm closing this issue. If anyone has anything to add, please do comment below.


Support for large PQC signature algorithms

Thanks to the contribution by @baentsch openssl now supports plugable signature algorithms (see PR). As earlier mentioned in https://github.com/openssl/openssl/issues/10512#issuecomment-1263184329 and https://github.com/open-quantum-safe/oqs-provider/issues/121 the size constants returned by ossl_statem_client_max_message_size and ossl_statem_server_max_message_size cause failures for PQC algorithms with large signature size. Could we continue the discussion initiated by @baentsch to enable the use of PQC algorithms with large signature sizes for oqsprovider?

I think what I said in this comment still applies:

Those constants are just to sanity check the sizes. We've never needed or supported larger sizes before, so it made sense. If the constants no longer represent what is sane then we can change them.

Do we know what sane alternative values for these should be?

To ensure that all PQC signature algorithms at all security levels standardized by NIST can function properly, my preference would be for the value to be set to 65538 = 2^16+2, which aligns with the values specified in the TLS 1.3 specification and oqs-openssl111.

my preference would be for the value to be set to 65538 = 2^16+2

Which is essentially the max allowed by the protocol right?. I'd be ok with that. Before it made sense to restrict this because no valid handshake that we could actually complete would have such large signatures. Now this is possible.

Yes, according to
      struct {
          SignatureScheme algorithm;
          opaque signature<0..2^16-1>;
      } CertificateVerify;

in the spec.
Linking the corresponding locations in openssl1 below: statem_clnt.c and statem_srvr.c

PR welcome to make this change. I'd suggest a macro for the size in the same style as SERVER_HELLO_MAX_LENGTH.

Perfect, will do it by the end of the day.


transition-group not working on table in edge

Version
2.3.3
Reproduction link
https://jsfiddle.net/az8n11g1/
Steps to reproduce
Transitions are not working on tables in my application. So I've created a jfiddle according to issue #3907 to demonstrate the issue.
The transition works great in chrome but not in edge
I'm using edge 40.15063.0.0 on windows 10
.
What is expected?
transition when shufling items
What is actually happening?
transitions are ignored

it seems to be a problem with edge itself not applying the transform property to tr elements. You should open a bug report in their tracker. It may be a limitation of tables too


Add map, foldl, foldr to the backend

Hi, this is in reference to #4434 .
Tell me if it needs anything more. I believe K.rnn is really unintuitive to use for simple maps and folds if it can even be used.

This is a bit niche, but safe, since it is merely thinly wrapping the TF API (note that Keras will stay close to the TF API for the foreseeable future).
LGTM.


PANIC in query-engine/connectors/sql-query-connector/src/query_builder/write.rs:22:56called Option::unwrap() on a None value

Hi Prisma Team! My Prisma Client just crashed. This is the report:
Versions

Name
Version

Node
v12.18.3

OS
darwin

Prisma Client
2.14.0

Query Engine
query-engine 5d491261d382a2a5ffdc71de17072b0e409f1cc1

Database
undefined

Query
mutation {
  createOneCharge(data: {
    stripeChargeId: "X"
    source: {
      connect: {
        id: "X"
      }
    }
    invoice: {
      connect: {
        id: "X"
      }
    }
  }) {
    id
    createdAt
    stripeChargeId
    updatedAt
    invoiceId
    sourceId
  }
}

Logs
engine {
  engine   flags: [
  engine     '--enable-raw-queries',
  engine     '--unix-path',
  engine     '/tmp/prisma-7bf593125da51df0a0eaa69a.sock'
  engine   ]
  engine }
  engine stdout  Starting a mysql pool with 13 connections.
  engine stdout  Started http server on http+unix:///private/tmp/prisma-7bf593125da51df0a0eaa69a.sock
  engine Search for Query Engine in /Users/alan/Documents/app/nacho/server/node_modules/.prisma/client
  plusX Execution permissions of /Users/alan/Documents/app/nacho/server/node_modules/.prisma/client/query-engine-darwin are fine
  engine Client Version: 2.14.0
  engine Engine Version: query-engine 5d491261d382a2a5ffdc71de17072b0e409f1cc1
  engine Active provider: mysql
  engine stdout  PANIC in query-engine/connectors/sql-query-connector/src/query_builder/write.rs:22:56
called `Option::unwrap()` on a `None` value  +9s
  engine TypeError: this.currentRequestPromise.cancel is not a function
  engine     at NodeEngine.handlePanic (/Users/alan/Documents/app/nacho/server/node_modules/@prisma/client/runtime/index.js:26344:36)
  engine     at NodeEngine.setError (/Users/alan/Documents/app/nacho/server/node_modules/@prisma/client/runtime/index.js:26290:16)
  engine     at LineStream.<anonymous> (/Users/alan/Documents/app/nacho/server/node_modules/@prisma/client/runtime/index.js:26585:24)
  engine     at LineStream.emit (events.js:315:20)
  engine     at LineStream.EventEmitter.emit (domain.js:483:12)
  engine     at addChunk (_stream_readable.js:295:12)
  engine     at readableAddChunk (_stream_readable.js:271:9)
  engine     at LineStream.Readable.push (_stream_readable.js:212:10)
  engine     at LineStream.Transform.push (_stream_transform.js:152:32)
  engine     at LineStream._pushBuffer (/Users/alan/Documents/app/nacho/server/node_modules/@prisma/client/runtime/index.js:23721:19)
  engine     at LineStream._transform (/Users/alan/Documents/app/nacho/server/node_modules/@prisma/client/runtime/index.js:23715:10)
  engine     at LineStream.Transform._read (_stream_transform.js:191:10)
  engine     at LineStream.Transform._write (_stream_transform.js:179:12)
  engine     at doWrite (_stream_writable.js:403:12)
  engine     at writeOrBuffer (_stream_writable.js:387:5)
  engine     at LineStream.Writable.write (_stream_writable.js:318:11)
  engine     at Socket.ondata (_stream_readable.js:716:22)
  engine     at Socket.emit (events.js:315:20)
  engine     at Socket.EventEmitter.emit (domain.js:483:12)
  engine     at addChunk (_stream_readable.js:295:12)
  engine     at readableAddChunk (_stream_readable.js:271:9)
  engine     at Socket.Readable.push (_stream_readable.js:212:10)  {"timestamp":"Jan 18 22:27:21.949","level":"ERROR","fields":{"message":"PANIC","reason":"called `Option::unwrap()` on a `None` value","file":"query-engine/connectors/sql-query-connector/src/query_builder/write.rs","line":22,"column":56},"target":"query_engine"}
  engine {
  engine   error: SocketError: other side closed
  engine       at Socket.onSocketEnd (/Users/alan/Documents/app/nacho/server/node_modules/@prisma/client/runtime/index.js:24788:25)
  engine       at Socket.emit (events.js:327:22)
  engine       at Socket.EventEmitter.emit (domain.js:483:12)
  engine       at endReadableNT (_stream_readable.js:1220:12)
  engine       at processTicksAndRejections (internal/process/task_queues.js:84:21) {
  engine     code: 'UND_ERR_SOCKET'
  engine   }
  engine }
  engine {
  engine   error: Error: connect ECONNREFUSED /tmp/prisma-7bf593125da51df0a0eaa69a.sock
  engine       at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1141:16) {
  engine     errno: 'ECONNREFUSED',
  engine     code: 'ECONNREFUSED',
  engine     syscall: 'connect',
  engine     address: '/tmp/prisma-7bf593125da51df0a0eaa69a.sock'
  engine   }
  engine }
  engine {
  engine   error: Error: connect ECONNREFUSED /tmp/prisma-7bf593125da51df0a0eaa69a.sock
  engine       at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1141:16) {
  engine     errno: 'ECONNREFUSED',
  engine     code: 'ECONNREFUSED',
  engine     syscall: 'connect',
  engine     address: '/tmp/prisma-7bf593125da51df0a0eaa69a.sock'
  engine   }
  engine }  +1s

Client Snippet
This works:
    const charge = await ctx.prisma.charge.create({
      data: {
        stripeChargeId: '',
        invoice: {
          connect: {
            id: invoice.id,
          },
        },
      },
    })

Doesnt work:
    const charge = await ctx.prisma.charge.create({
      data: {
        stripeChargeId: '',
        source: {
          connect: {
            id: source.id,
          },
        },
        invoice: {
          connect: {
            id: invoice.id,
          },
        },
      },
    })

Schema

model Charge {
  id             String   @id @default(cuid())
  createdAt      DateTime @default(now())
  stripeChargeId String
  updatedAt      DateTime @updatedAt
  invoiceId      String
  invoice        Invoice  @relation(fields: [invoiceId], references: [id])

  sourceId  String?
  source  Source?

  @@index([invoiceId], name: "invoiceId")
  @@index([sourceId], name: "sourceId")

}

it is because @relation(fields: [sourceId], references: [id]) was missing in the schema.
A nicer error would have been appreciated!

it is because @relation(fields: [sourceId], references: [id]) was missing in the schema.
A nicer error would have been appreciated!

Hey @alan345
Can you please share your whole schema? I wasn't about to reproduce with a simple example.

Hey @alan345
Can you please share your whole schema? I wasn't about to reproduce with a simple example.

I am going to close this as its been 3 months now and there is no activity here.
Please reply if you want us to take another look.


When adding a ViewPager as header, the viewpager can not scroll smoothly.

As the title description. But when I add this head to an original ListView, it works perfect. So I think there is maybe something conflict between these two.

@lovetuzitong Why you close this issue?

Ah..I have solved this problem. The issue I opened before is not exactly, the problem is when I user ViewPager.setCurrentItem(position, smooth) the page scrolled without any animation.
In line 629 :
if (position % mNumColumns == 0) {
    return headerViewContainer;
}

modified to :
if ((position+1) % mNumColumns == 0) {
    return headerViewContainer;
}

Ensure the header view is at top level of this row.

@lovetuzitong Thank u so much!:smile:

@lovetuzitong
I found a screen flicker problem when i use your method, and then add some code solved screen flicker problem.
ViewPager viewPager = (ViewPager) headerViewContainer.findViewById(R.id.viewPager);
if (viewPager != null) {
      position++;
      headerViewContainer.setMinimumWidth(your phone screen width);
}
if (position % mNumColumns == 0) {
    return headerViewContainer;
}

@Jcdroid Good job !


Fix/TRSV2-194: Deleted references to node and NPM as no longer being used

We don't use node.js in the TRS and so as part of a more general refactoring, this commit removes all node/npm files

Codecov Report

:exclamation: No coverage uploaded for pull request base (develop@58f9160). Click here to learn what that means.
The diff coverage is n/a.

:exclamation: Current head 2d0d4e8 differs from pull request most recent head 4085a96. Consider uploading reports for the commit 4085a96 to get more accurate results

@@            Coverage Diff             @@
##             develop     #135   +/-   ##
==========================================
  Coverage           ?   12.63%
==========================================
  Files              ?       72
  Lines              ?     2888
  Branches           ?      417
==========================================
  Hits               ?      365
  Misses             ?     2510
  Partials           ?       13

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 58f9160...4085a96. Read the comment docs.


Microsoft Excel 2010 doesn't render file with charset UTF-8

There is a bug in MS Excel where it doesn't honor the charset specified in the CSV file without a Byte Order Mark (BOM).

The fix is as such:
var BOM = "%ef%bb%bf";
var DATA_URI_PREFIX = "data:text/csv;charset=utf-8," + BOM;
I'd love to submit a pull request but I am unable setup the dev env to run the existing tests.

With ng-csv.min.js, a BOM is not prepended.
It goes well with ng-csv.js.
It looks like a problem related with uglifying.

@eitetsujo did you try to add add-bom="U+FEFF"?

It can not work for me.
The file ng-csv.min.js is included as defined in package.json. And in my app, all vender js files are compressed as a single file. In this case, the BOM char '\ufeff' is replaced as empty char.
If I add ng-csv.js by myself, the after compression, the BOM char is still right. So as most of the js libs do, the NOT min version file should be the main js.

Another problem about the add-bom is, if I set add-bom="true" as that in example, the attribute true will be evaluated as string, but not boolean, so even add-bom="false" will be trated as enabling BOM.

@Mavlarn
Are you sure it's replaced with an empty char, and not the actual BOM char?
E.g., if you run '\ufeff' in your console it will look empty, but it's there.
You could perhaps even copy/paste this code into your console to see what I mean:
encodeURIComponent('')

That aside I don't understand why export to Excel isn't just a default UTF16 + delimiter, wouldn't that just always work?

If I compress min version, encodeURIComponent(b) display empty char, but the NOT min version, result is "%EF%BB%BF"

@Mavlarn You are correct. The minified file does have the correct char, but after running it through uglifyjs (version 2.4.10) the char is removed.


Why a lot of rounds needed for a very simple data set? And outcome is very sensitive to eta.

Hi all,
I have tried to use xgboost to solve regression problem. The data is artificial/made-up and it is really simple:
if gender = "male", then y = 1; if gender = "female", then y = 5.
However, for such a simple data set, it seems to be difficult for xgboost to capture the pattern for small number of rounds, and it is very sensitive to the choice of eta...
Environment info
Operating System: Windows 7
Compiler: R version 3.4.0
Package used (python/R/jvm/C++): xgboost(R)
xgboost version used: xgboost_0.6-4
Steps to reproduce

Generate data set

data = data.frame(y = rep(c(1, 5), each = N), gender = rep(c("male", "female"), each = N))

One-hot encoding

data_ohe = model.matrix(~.-1, data[,which(names(data) != "y")])

Train the model. Since there is only one feature, I use only 2 rounds, with very small eta. In my understanding, one round is simple a tree, and in this simple case, one tree should be sufficient. However, the prediction I got is way-off the target...

xgb.model = xgboost(data = as.matrix(data_ohe), label = data$y, booster = "gbtree",
objective = "reg:linear", max_depth = 2, nround = 2, eta = 0.001)
predict(xgb.model, newdata = as.matrix(data_ohe))
My questions

I tried to adjust eta and nrounds, and for large eta, say 0.5, it converges quickly to the correct results.
So my question is: why would xgboost need so many rounds/trees for such a simple data set? And why would the results so sensitive to eta?
In my intuition, nround =1 would suffice and the outcome is in-sensitive to eta for this situation. Or did I misunderstand something.

Here is an update: if I change the data to be:
y = x + 1 for male, and y = 3x + 4 for female.
See the picture for my data.

And I fit a xgboost method to it:
xgb.model = xgboost(data = as.matrix(data_ohe), label = data$y, booster = "gblinear",
objective = "reg:linear", max_depth = 10, nround = 100, eta = 0.5)
The fitted outcome (red dots) are:

This basically suggests that xgboost cannot work with interactions between variables, while if I fit the data to a linear regression model with interaction terms, then the fit is perfect.

On your question:  eta (learning rate) is a kind of regularization, and it's not surprising that such simple and clean data would strongly depend on it. The smaller learning rate, the more iterations are necessary to converge. Keep in mind that the gbtree booster by default has non-zero L2 regularization parameter (lambda=1), so set it to zero along with eta=1 if you want to see immediate convergence. Otherwise tree leaf weights would tend to be "shrunk". Also, it is generally useful to set base_score to a meaningful value (to mean of the label in this regression case) so that boosting does not spend iterations learning the baseline when using eta<1.
And I don't follow your conclusions in the second part. It is clear from the plot that the tree booster did learn the interactions, while not in a perfectly smooth manner, as is typical for tree learners. The linear booster learns simple linear regression: it's smooth but here it did not include any interactions.

Hi khotilov,
Thank you for your answer.
From your answer, I understand that if nrounds>1, then eta will have strong influence on the outcome. I am still not quite sure why it will take more than one tree for such simple data set...
For the second part, to make it more clear, what my conclusions are the following:

"gbtree" boosting method will learn interactions. For example, you see red dots fit almost perfectly with the black dots.

"gblinear" boosting method ignores interactions between variables, as you only see two parallel lines for the fitted results with no interactions.

Please see the example below.
library(xgboost)
N = 250
d = data.frame(y = rep(c(1, 5), each = N), f = rep(c(0, 1), each = N), m = rep(c(1, 0), each = N))
base_score = mean(d$y)

bst = xgboost(data = as.matrix(d[,-1]), label = d$y, objective = "reg:linear", nround = 1,
              eta = 1, lambda = 0, max_depth = 2, base_score = base_score)
table(predict(bst, as.matrix(d[,-1])))
xgb.dump(bst)
base_score - 2
base_score + 2

bst = xgboost(data = as.matrix(d[,-1]), label = d$y, objective = "reg:linear", nround = 1,
              eta = 0.1, lambda = 0, max_depth = 2, base_score = base_score)
table(predict(bst, as.matrix(d[,-1])))
xgb.dump(bst)
# equivalent to
base_score - 2 * 0.1
base_score + 2 * 0.1

Output:
> bst = xgboost(data = as.matrix(d[,-1]), label = d$y, objective = "reg:linear", nround = 1,
+               eta = 1, lambda = 0, max_depth = 2, base_score = base_score)
[1]	train-rmse:0.000000
> table(predict(bst, as.matrix(d[,-1])))

  1   5
250 250
> xgb.dump(bst)
[1] "booster[0]"                      "0:[f0<0.5] yes=1,no=2,missing=1"
[3] "1:leaf=-2"                       "2:leaf=2"
> base_score - 2
[1] 1
> base_score + 2
[1] 5
>
> bst = xgboost(data = as.matrix(d[,-1]), label = d$y, objective = "reg:linear", nround = 1,
+               eta = 0.1, lambda = 0, max_depth = 2, base_score = base_score)
[1]	train-rmse:1.800000
> table(predict(bst, as.matrix(d[,-1])))

2.79999995231628 3.20000004768372
             250              250
> xgb.dump(bst)
[1] "booster[0]"                      "0:[f0<0.5] yes=1,no=2,missing=1"
[3] "1:leaf=-0.2"                     "2:leaf=0.2"
> # equivalent to
> base_score - 2 * 0.1
[1] 2.8
> base_score + 2 * 0.1
[1] 3.2

Hi khotilov,
Right, the base_score is the key! Now I understand it! Thanks a lot for the examples.


Topic recognition

This is an initial inspection, no action is required at this point
Same as PR #164
Possible duplicate submission?


Use idevice_id for devicelab iOS device lookups

This replaces the use of ideviceinfo (whose output was then filtered for
device IDs) with an invocation idevice_id -l, which returns the list
directly, one per line.

Fixes a TODO that was reintroduced in #13624 (which was a revert of an older patch).


Xml comments fixing 1

PR Details
This PR is fixing numerous XML Comments issues reported by DocFX, our Stride Docs API generator.
Description

Mostly incorrect cref corrected which couldn't be resolved for various reasons like typos, missing namespace, private methods.
Some typos fixed along the way

These corrections will make links in Stride Docs working, or removing the link if the entity is not available for public access.
Related Issue
https://github.com/stride3d/stride/issues/1681
Motivation and Context
Stride Docs improvements.
Types of changes

[x] Docs change / refactoring / dependency upgrade
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist

[ ] My change requires a change to the documentation.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

Awesome, we just have to check whether this has a conflict with any PR in the queue...

No problem, so I shall wait with other PRs on the same subject, there is around 150 issues left? 🤣

@tebjan, which PRs should I check if I have a conflict with?

I fixed a conflict in this PR.

Thanks !