Option for adding errorbar legend

Description
Hi, I think it will be great if we have an option to show error bar in the legend similar to what shade and fade do.
Current behavior
Currently, we cannot show error bar in the legend. Only the line is shown in the left figure.
import numpy as np
import pandas as pd
import proplot as pplt

state = np.random.RandomState(51423)
data = state.rand(20, 8).cumsum(axis=0).cumsum(axis=1)[:, ::-1]
data = data + 20 * state.normal(size=(20, 8)) + 30
data = pd.DataFrame(data, columns=np.arange(0, 16, 2))

fig, axs = pplt.subplots(ncols=2)

ax = axs[0]
h = ax.plot(data, means=True, label='label')
ax.legend(h)

ax = axs[1]
h = ax.plot(data, means=True, shadestd=1, label='label')
ax.legend(h)

Proplot version
3.4.3
0.9.7

Not actually... That's a colorbar. The error bar is not shown in the legend in my original left figure.

Ah my bad I read your original question wrong! Use errorbar instead
import numpy as np
import pandas as pd
import proplot as pplt

state = np.random.RandomState(51423)
data = state.rand(20, 8).cumsum(axis=0).cumsum(axis=1)[:, ::-1]
data = data + 20 * state.normal(size=(20, 8)) + 30
data = pd.DataFrame(data, columns=np.arange(0, 16, 2))

fig, ax = pplt.subplots()
x = np.linspace(0, 10)
y = x
yerr = abs(np.random.randn(x.size))
h = ax.errorbar(x, y, yerr=yerr, label="test")
ax.legend()
pplt.show(block=1)

For completeness

Thanks. My suggestion was to include that option with ax.plot(data, means=True).
Currently, it is supported when you show errors with shading or fading options e.g. ax.plot(data, means=True, shadestd=1).
That way, it will be more consistent.

I see that is a bit inconsistent indeed. I can put this on the stack of todos. Should be an easy fix.

Note to-self:

Extract and pass label to error bar in plot.py @ 1506


Label on badge? (Like the type of test it passed?)

I apologize, knowing this is almost certainly going the wrong place, but... Every single badge and theme I've seen assumes only one pipeline is in use and it's pass/fail. But on one codebase we have pipelines for 2 dimensions of tests on 3 dimensions of operating systems. And we'd like to see the pass/fail for each of them, with labels for which is which. What am I missing? I don't see any example of anything like this in the themes or the docs.
Thanks! Sorry it's in the wrong place.

Hi there @rfay! There’s no way to do with with our default badges, but it’s something that https://shields.io/ supports (and supports Buildkite repos). Would that work for you?

Thanks for the response! I was immediately baffled by the terseness of their example, find no way to tie a badge to a pipeline name. (https://shields.io/#/examples/build) - It ties it to a hash, but it has no indication what the hash is representing. There aren't any docs about using shields.io with buildkite are there? (didn't find any with the poking around and googling I did)

Sorry, the shields.io website used to have the Buildkite example on the homepage 😔 Now it looks like you need to search for “buildkite” in the input at the top to see the example URL. That would have been super confusing.
The format is:
https://img.shields.io/buildkite/<badge-is>/<branch>.svg?label=<label>
The label is one of the standard shields.io parameters — you could add others too if you wanted.
It took a long time for it to get added to shields.io, so we didn’t update our docs, but we should go do that now! I’ll leave this open until it’s done.

Thanks - Where does the buildkite pipeline go in that? I'm just not understanding how it can be a dynamic badge without knowing the right pipeline. I see where it gets the branch.

Ah, the URL doesn't take a pipeline info directly, it takes the badge ID.
You can find the badge ID in the Build Badges section of your Pipeline Settings:
https://buildkite.com///settings/badges


Use in operator for type predicates

I was wondering if 'swim' in pet would make more sense here since it is more readable. What do you think?

Generally speaking, if swim is going to be renamed in the future, it will be much harder to spot the bug. Even though we're talking about such small piece of code.


How to handle this situation in the softmax layer if the number overflows?

For example, if the input have 5 number:8, 18, 28, 38, 48
the output will like this:

because according to the softmax calculation：we need to add exp(8)...exp(48) together. However, exp(48) is too big for c++ and it overflows. So how to handle this situation?
And if the input are:1, 2, 3, 4, 5
everything is fine because they are not too big.
Any helps or hints are appreciate!!!

Hello @ppplinday,
As you mentioned exp is a bit easy to overflow. To avoid special cases and paths in NEON calculations we do not report/check nans and infinities instead we continue to perform the calculations as normal that why you get these strange numbers instead of -inf.
I don't think there is much to do than normalizing your values to a smaller range.
We could have a look and try to saturate the values internally and check if the results are what we expect, but I am not quite sure that this is correct.
Regards,
George

@ppplinday  we will address this issue and fix it in the next maintenance release. For now you can normalize your values to avoid it.

@GeorgeARM  Thank you so much! Waiting for next release!


SubscriptionClient error when using interactiveLogin to MSA (work/school) based account

Package Name: @azure/subscriptions
Package Version: 2.0.0
Operating system:Windows 10 1909
[ X ] nodejs

version: 12.16.0

[ ] browser

name/version:

[ X ] typescript

version: 3.7.5

Is the bug related to documentation in

[ ] README.md
[ ] source code documentation
[ ] SDK API docs on https://docs.microsoft.com

Describe the bug
When using the new @azure subscription package, the SubscriptionClient works fine when using business (AAD) account everything works fine.  When using MSA account (work/school), the wrong STS endpoint is used.  How should this be toggled when creating the SubscriptionClient in the new @azure package?
To Reproduce
Steps to reproduce the behavior:

Create a new subscription client using @azure/arm-subscriptions.
Call a function, such as listLocations and capture the result.

Expected behavior
Expect to have both AAD and MSA based logins work with the new SubscriptionClient.
Screenshots
SAMPLE REQUEST:
import * as msRestNodeAuth from '@azure/ms-rest-nodeauth';
import { SubscriptionClient, SubscriptionModels, SubscriptionMappers } from '@azure/arm-subscriptions';

msRestNodeAuth.interactiveLogin().then((creds) => {
    const client = new SubscriptionClient(creds, );
    const subscriptionId = '<sub id>';
    client.subscriptions.listLocations(subscriptionId).then((result) => {
        console.log(result);
    });
}).catch((err) => {
    console.error(err);
});

SAMPLE RESPONSE
To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code AKM5FQQA6 to authenticate.
(node:14660) UnhandledPromiseRejectionWarning: Error: The access token is from the wrong issuer 'https://sts.windows.net/f8cdef31-a31e-4b4a-93e4-5f571e91255a/'. It must match the tenant 'https://sts.windows.net/82e076c1-4bc7-4cf2-b638-08ed8b7b4a13/' associated with this subscription. Please use the authority (URL) 'https://login.windows.net/82e076c1-4bc7-4cf2-b638-08ed8b7b4a13' to get the token. Note, if the subscription is transferred to another tenant there is no impact to the services, but information about new tenant could take time to propagate (up to an hour). If you just transferred your subscription and see this error message, please try back later.
    at new RestError (C:\Users\caleteet\source\Test\authTest\node_modules\@azure\ms-rest-js\dist\msRest.node.js:2400:28)
    at C:\Users\caleteet\source\Test\authTest\node_modules\@azure\ms-rest-js\dist\msRest.node.js:3544:37
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:14660) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 3)
(node:14660) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled
will terminate the Node.js process with a non-zero exit code.

Additional context
Add any other context about the problem here.

UPDATE: I have found that if the tenant associated with the Azure subscription is passed to the interactiveLogin function, it works.
import * as msRestNodeAuth from '@azure/ms-rest-nodeauth';
import { SubscriptionClient, SubscriptionModels, SubscriptionMappers, } from '@azure/arm-subscriptions';

const options: msRestNodeAuth.InteractiveLoginOptions = {
    domain: '<your tenant id instead of common>'
};

msRestNodeAuth.interactiveLogin(options).then((creds) => {
    const client = new SubscriptionClient(creds);
    client.subscriptions.list().then((result) => {
        console.log(result);
    });
}).catch((err) => {
    console.error(err);
});

This, of course, takes place as part of the authentication (ms-rest-nodeauth), to allow an access token has the appropriate authorization for the subscription.  I will need to figure out how to map this back so the users don't need to pass in their tenant id.  This is really confusion when using with SubscriptionClient.

@caleteeter  Thanks for reporting this. But I think the problem is in ms-rest-nodeauth instead of @azure/arm-subscriptions. will have to check on that.

I will need to figure out how to map this back so the users don't need to pass in their tenant id.

@caleteeter We are hoping that https://github.com/Azure/ms-rest-nodeauth/pull/91 would resolve this for you by exposing a function in @azure/ms-rest-nodeauth that will list all tenants for the account.
This is most likely a limitation of the v1 apis used by adal-node. We will not need the above workaround once we move to using v2 apis.

This should belong to the Management group team. Removed "Subscription" tag

@caleteeter In the latest version of the @azure/ms-rest-nodeauth package, we now expose a method called buildTenantList that will give you the list of tenants without having to ask your user.
The sample at https://github.com/Azure/ms-rest-nodeauth/blob/master/samples/interactivePersonalAccount.ts should be able to help.
Please re-open this issue if the above solution does not work for you


Refactor references of Microsoft.Azure.Services.AppAuthentication to Azure.Identity

https://github.com/dotnet/dnceng/issues/885

For RolloutScorere, this bit exists in deploy.yaml. The environment variable AzureServicesAuthConnectionString is used by AzureServiceTokenProvider. Ensure this value is not actually used and, if it is, reformat it in a way acceptable to EnvironmentTokenCredential.
https://github.com/dotnet/dnceng/blob/c55ff7197477466713293b2c40fc138023216ed2/eng/deploy.yaml#L142-L161

I couldn't find anywhere the AzureServicesAuthConnectionString was used, but the other four variables were being used, so I deleted both of them. We'll see if that breaks things when it comes time to deploy RolloutScorer.

I couldn't find anywhere the AzureServicesAuthConnectionString was used, but the other four variables were being used, so I deleted both of them. We'll see if that breaks things when it comes time to deploy RolloutScorer.

To be clear, AzureServicesAuthConnectionString will not be referenced in our code anywhere. It is consumed by the Microsoft.Azure.Services.AppAuthentication library. So a simple string search will return nothing. The only way to be sure is to grok how the project is expecting authentication to work.

I couldn't find anywhere the AzureServicesAuthConnectionString was used, but the other four variables were being used, so I deleted both of them. We'll see if that breaks things when it comes time to deploy RolloutScorer.

To be clear, AzureServicesAuthConnectionString will not be referenced in our code anywhere. It is consumed by the Microsoft.Azure.Services.AppAuthentication library. So a simple string search will return nothing. The only way to be sure is to grok how the project is expecting authentication to work.

I'm going to assume that since RolloutScorer doesn't make use of the references to the Microsoft.Azure.Services.AppAuthentication library that was removed, that it doesn't use that parameter in the project deployment. (RolloutScorer looks like it was already updated to use Azure.Identity, too).
Unless there's something automagical going on in the background for how Azure Functions are deployed?

To be clear, AzureServicesAuthConnectionString will not be referenced in our code anywhere. It is consumed by the Microsoft.Azure.Services.AppAuthentication library.

Oh, one idea: Write a new TokenCredential class that reads that environment variable and adapts it into something the new library understands.

I'm going to assume that since RolloutScorer doesn't make use of the references to the Microsoft.Azure.Services.AppAuthentication library that was removed, that it doesn't use that parameter in the project deployment. (RolloutScorer looks like it was already updated to use Azure.Identity, too).

Having now looked through the RolloutScorer code, I agree, that appears to be the case.

To be clear, AzureServicesAuthConnectionString will not be referenced in our code anywhere. It is consumed by the Microsoft.Azure.Services.AppAuthentication library.

Oh, one idea: Write a new TokenCredential class that reads that environment variable and adapts it into something the new library understands.

I don't think this will be necessary.
The migration guidance doc calls out how to migrate those connection strings near the beginning: https://learn.microsoft.com/en-us/dotnet/api/overview/azure/app-auth-migration?view=azure-dotnet
Given that the migration to use Azure.Identity in RolloutScorer was back in Dec 2022, and we've been able to deploy it without issues since then, it doesn't look like that variable is necessary.
Tagging @dkurepa in case he has further insight, since he did the original migration.

Given that the migration to use Azure.Identity in RolloutScorer was back in Dec 2022, and we've been able to deploy it without issues since then, it doesn't look like that variable is necessary.

Looking through the history I suspect the change in dotnet/arcade-services#2150 did (unintentionally?) change how authentication worked.
But that's the past.

Going to merge this. @dkurepa let me know if there's anything else that should've been changed when I removed the AppAuth references.


Creating cloudformation template with some fixed parameters

I would like to build a cloud formation template that can create a cluster similar to cfncluster but with some fixed parameters. I have tried modifying the template with some parameters (centos6 OS, slurm, and a custom-ami). I would like to use this template for AWS marketplace. I am using centos6 due to the issue discussed here.
Cluster creation fails at Master Server creation. Apparently, one of the errors is at

cfn-init -s cluster-fixed-params-1 -v -c default -r MasterServer --region us-west-2

/usr/lib/python2.6/site-packages/cfnbootstrap/packages/requests/packages/urllib3/util/ssl_.py:79: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail.
Updating to Python 2.7 may help resolve the above problem. But, centos6 yum depends on Python 2.6.6 and may break other things.
Could you help me with building a cloudformation template that can create a cluster similar to cfncluster but with some fixed parameters?
Let me know if you need more information.
Thanks
Santi

Refer: https://stackoverflow.com/questions/29134512/insecureplatformwarning-a-true-sslcontext-object-is-not-available-this-prevent

Re-open if you still have any issue. closing

@mohanasudhan I have tried installing all the libraries and cloud formation failed at master server creation.
I have tried using the template (https://github.com/awslabs/cfncluster/blob/develop/cloudformation/cfncluster.cfn.json)
directly on cloud formation with ubuntu1604 and ran into same problem. Everything works fine with cfncluster cli. Could you help with creating a cloudformation template that I can directly use with AWS cloudformation?


add hint to install onnx python package

tests cannot run without package

Thank you! Can you add a note to the README as well?

@seanmor5 anything else you want me to add?

:green_heart: :blue_heart: :purple_heart: :yellow_heart: :heart:


Fix buttons not taking a translucent background color

Change-Id: I7781e710b4c3efd41c9585e2e5cd4c6cc2d50736

Note that I have not yet tested this on a version of Android lower than SDK 21 Lollipop.

Here is an example of what this looks like. Button2 has a blue background with 50% transparency which yields a purple tint, Button3 has a yellow background with 50% transparency which yields an orange tint, and Button4 has no background, which also needs the shadow suppressed (the state/outline manipulation is responsible for this).

@jisqyv I've pushed two changes. The first fixes the crash on Android versions prior to 5.0. The second one removes a check that no longer seems to be need which forces the background color in Device Default and other themes to be white. The latter was something I bumped into when testing using the old emulator running Android 2.x using the button test project previously shared. We may want to keep the last commit separate since it's somewhat independent of the original reason for this change (but needed if testing the change on an old version of Android).


Not working with redroid

ENV:

ecapture: 0.7.0
devices: redroid 13 (docker container)

Error:
2023/12/16 17:30:14 Failed to read kernel configuration., error:open /proc/config.gz: no such file or directory
Redroid didn't include /proc/config.gz, maybe can add some argument like --force to force execute ecapture?

Good suggestion, I will evaluate it.

Can confirm /sys/kernel/btf/vmlinux is existed in redroid

Not all androids will have /sys/kernel/btf/vmlinux present. I intend to be compatible with both cases.

Not all androids will have /sys/kernel/btf/vmlinux present. I intend to be compatible with both cases.

Sweet, I'm looking forward to using it with redroid👍

Can you check where the '/proc/config.gz' file has been changed on your Redroid device?

Can you check where the '/proc/config.gz' file has been changed on your Redroid device?

I have tried many times with the Redroid (from android 12-13), it looks like /proc/config.gz has removed and I can't find where is it.

Okay, I know what happens now, so the IsContainer function in bpf_androidgki.go is not done yet
Force return true in IsContainer function to make it work

The 'IsContainer' function does not return 'true' directly, and some features need to be detected. What are the characteristics of Redroid that are different from Android? Like a file? A configuration?

The IsContainer function does not return true directly, and some features need to be detected. What are the characteristics of Redroid that are different from Android? Like a file? A configuration?

TBH, I also don't know what the difference between them XD.
The reason why I use Redroid is it just a docker container and it is easy to deploy it.

Well, it looks like a niche need. I'm not going to fix it to the project, what do you think?

Well, it looks like a niche need. I'm not going to fix it to the project, what do you think?

Well, maybe need a --force arg and don't need to fix the IsContainer function

@hongyang51 在你的开发板设备上， config的路径是什么呢？

@hongyang51 在你的开发板设备上， config的路径是什么呢？

/boot/config* , 但是我只是修改了检索的路径，修改为/data/local/config.gz 可以手动push上去。
校验与否对我来说实际不太重要


Enable prettier prose wrap option.

:tada: This issue has been resolved in version 1.0.2 :tada:
The release is available on:

1.0.2
GitHub release

Your semantic-release bot :package::rocket:


[#115322155] Use correct version of fly for Bootstrap/Deployer Concourse

What
We should use the correct version of fly for each Concourse. Assuming that the Bootstrap Concourse and Deployer Concourse will be using different versions, either now or again in the future.
As part of this we've taken the opportunity to refactor how the environment is setup for these scripts. See commit messages for more details.
How to review
Use this branch to push pipelines to a bootstrap concourse (./vagrant/deploy.sh). Push pipelines to the deployer concourse (make dev). This should create and use 2 different fly commands in the bin directory. This should not touch any fly binaries that happen to be on your path.
Check that the bosh-cli script works correctly.
Who can review
Anyone but @timmow or myself.

I think I've now addressed all the comments here. Ready to be re-tested.

Tested OK
Thanks! 👍


feat: Ability to add Non-secret records

Summary of Changes
Added a non-secret module with minimal API just to expose the on-secret APIs for Indy library here
This will enable business logic that requires saving custom records like wallet history to be saved to the wallet and retrieved back when possible
Related Issue #685

It's true that the naming could be too 'Indy-centric'. At first sigh I would call it 'Generic Records Module', but probably it's too long.

I like the direction of this. So the module will used like genericRecords. Don't think that's too long.
So it would be something like
agent.genericRecords.saveRecord()

// another thought?
agent.genericStorage.saveRecord()

@TimoGlastra that's a good idea 'genericRecords'. I will change to that

Nice! So in that case saveRecord method would become just save to avoid verbosity?

Codecov Report

Merging #702 (985ee05) into main (2b6441a) will increase coverage by 0.06%.
The diff coverage is 93.54%.

@@            Coverage Diff             @@
##             main     #702      +/-   ##
==========================================
+ Coverage   86.17%   86.24%   +0.06%
==========================================
  Files         343      347       +4
  Lines        7445     7516      +71
  Branches     1258     1163      -95
==========================================
+ Hits         6416     6482      +66
- Misses        973     1033      +60
+ Partials       56        1      -55

Impacted Files
Coverage Δ

.../src/modules/generic-record/GenericRecordModule.ts
83.33% <83.33%> (ø)

...les/generic-record/service/GenericRecordService.ts
94.44% <94.44%> (ø)

packages/core/src/agent/Agent.ts
98.09% <100.00%> (ø)

...modules/generic-record/repository/GenericRecord.ts
100.00% <100.00%> (ø)

...neric-record/repository/GenericRecordRepository.ts
100.00% <100.00%> (ø)

packages/node/src/NodeFileSystem.ts
37.14% <0.00%> (ø)

packages/core/src/crypto/JwsService.ts
90.90% <0.00%> (ø)

packages/core/src/utils/transformers.ts
74.41% <0.00%> (ø)

packages/core/src/agent/MessageSender.ts
73.68% <0.00%> (ø)

... and 28 more

Continue to review full report at Codecov.

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

@TimoGlastra @blu3beri Any idea about the dummy module that've been mixed with our changes? should we create a new clean PR?

Not sure what happened here. Can you try to merge with main?

closes #685


Fix broken responsive css

this is all working now in #193
Got rid of hamburger menu that we no longer need now that our top nav is much shorter. also, made a non-wonky tablet view and generally tightened up the mobile views.


cudaErrorInvalidResourceHandle error when running some RNN models

Both this notebook and this notebook in dive into deep learning textbook errors with cudaErrorInvalidResourceHandle on line 1505 of src/operator/rnn-inl.h.

I'm using CUDA 10.1 + CUDNN 7.6.4 on 4 V100 GPUs (p3.8xlarge instances).

@DickJC123 @ptrendx Could you guys help with this issue here?

I will take a look at this.  Thanks for pointing this out.

Glancing over the code knowing now of this issue, I see a problem that may be related.  If the code has been compiled for CUDA/CUDNN use, and then an RNNOp is instantiated on a system with no GPU, the code will fail at the call to cudaEventCreateWithFlags() in the constructor.  Calling this lazily on first use (on a gpu) would solve this.  I suspect the approach will also fix the issues with the notebooks that you point out, although I have not verified this.
Are you blocked by this?  It might take me a day or two to make a proper PR with the fix properly verified.

@DickJC123 Actually the 1.6.0 release could be blocked by this. Please do lemme know if you need any help on verification/reproduction/fixing so that we could streamline your fix. Thanks!

@DickJC123 BTW I mentioned earlier that I was running with 4 V100 GPUs.

@ptrendx has postulated that the problem involves having the main python thread create the RNNOp (and its held cuda event) with either no context or a GPU-0 context, then having the event recorded on a stream of a different GPU.  I will be pushing a fix momentarily that delays creating the cuda event until first use, which should correct this scenario.
I have verified the PR reinstates proper behavior when run on a system with no GPU.  I appreciate your offer to see if the PR cures this issue you raised with the notebooks.  Thanks!

@DickJC123 Fix merged, now closing this issue.


set_input on dnn::Net

Hello, I try to set an input value on a network with an image blob, but set_input does not exist on the dnn::Net trait, but it exist on dnn::NetTrait. Is NetTrait not implemented for Net, or am I doing something wrong?
let detector: dnn::Net = dnn::read_net_from_caffe(...);
let blob: core::Mat = dnn::blob_from_image(...);
detector.set_input(&blob, ...);

Well, NetTrait is implemented for Net: https://github.com/twistedfall/opencv-rust/blob/master/src/opencv/hub/dnn.rs#L2947 so maybe you didn't import it with use opencv::dnn::NetTrait?

Thanks, that was a beginners blunder. Well, it is a great API :)

No problem! :)


feat(dcph): enable federated learning with DeepCoxPH

Solves #120
Federated learning is of great interest for survival analysis: to use the DeepCoxPH model in a FedML experiment we need a couple of features that this PR adds:

Easy access to the PyTorch module -> this allows for clean-code when we need to access the torch module often, as when manipulating state dicts in a federated experiment
PyTorch module init before fit -> this allows injection of a pre-existing state dictionaries into a fresh model, needed for federated training
Time-independent risk prediction + optional Breslow estimator -> The Breslow estimator conserves too much info (e.g. unique event times) about the dataset, it cannot be used as-is in a federated experiment as it could cause privacy issues.

A couple of unrelated QoL improvements have been added to this PR to support its implementations, namely:

datasets.load_dataset now has a return_features kwarg for SUPPORT that returns a dict containing categorical and numerical feature names, allowing for easier preprocessing
Minimal .gitignore to avoid sifting through useless __pycache__ entries when adding changes to git after running tests
Integration tests for the dcph.DeepCoxPH model
Fix indentation in dsm tests

@chiragnagpal please review 🙏🏼

Integrated in https://github.com/autonlab/auton-survival/pull/137


Update rand to 0.6 and add wasm-bindgen feature enabling corresponding rand feature

This enables to me to use rusty-machine inside of WASM.
Thanks!

Ah, I didn't try compiling with features, so some more updates have to be made. I'll try to tackle that in a bit.

@AtheMathmo took me a long time, but this should work for all features now. This updates rand to 0.7, which should be a nice boon for users, and allows rusty-machine to be used in WASM


MatSelect Loop

Hi, im trying to set default value to MatSelect and handle value change in callback, but callback call is looped even when value is not changed in callback. Is it a bug, or my incomprehension?
<MatSelect Enhanced="true" ValueChanged="@HandleValueChange" Value="_value">
    <MatOption Value="1">One</MatOption>
    <MatOption Value="2">Two</MatOption>
</MatSelect>

@code {
private string _value = "";

public void HandleValueChange( string value )
{
    Console.WriteLine($"Value changed to: {_value}");
}

}

Hello I had the same problem, I think this could solve your problem, you have to add _value = value  to method HandleValueChange like this:
private string _value = "";
public void HandleValueChange( string value )
{
_value = value
Console.WriteLine($"Value changed to: {_value}");
}


Rich t/task 376

These changes are built on-top of task 297 changes, merging of this PR should be ok once they have merged into main.

Relevant changes now in PR#394.


fit.bayesreg()

Hi @bw4sz,
Can you include in the function the code that you wrote in "Bayesian/Intercept.R"?
I had a discussion with @KevCaz and we have to avoid source() in the code (no one is doing it).
PS. If you want to closed the issue:
https://help.github.com/articles/closing-issues-via-commit-messages/
Cheers,
Steve

I do not believe this solved my questions about generating man pages.

I will find a way ;) Thanks Ben for removing the source().

I've test a couple things, dummy functions, nothing works within Rstudio, I
do not believe it is that specific example.
On Fri, Dec 2, 2016 at 12:16 PM, Steve Vissault<EMAIL_ADDRESS>wrote:

I will find a way ;) Thanks Ben for removing the source().
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/TheoreticalEcosystemEcology/alienR/issues/1#issuecomment-264552072,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABJwrDs_0KEefY46ZiGSzTyl9dK_YzFsks5rEHykgaJpZM4LC6ij
.

--
Ben Weinstein, Ph.D.
Postdoctoral Fellow
Oregon State University
http://benweinstein.weebly.com/

Di you think it's because you added your functions in a folder inside the R folder?

Only some helper files are in a folder, the other two are normal, and not
showing up.
On Fri, Dec 2, 2016 at 3:10 PM Kevin Cazelles<EMAIL_ADDRESS>wrote:

Di you think it's because you added your functions in a folder inside the
R folder?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/TheoreticalEcosystemEcology/alienR/issues/1#issuecomment-264563426,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABJwrOvJnWS9VYMmkSABVH9pNDicONGsks5rEIk3gaJpZM4LC6ij
.


Custom HTML Head no longer working to use for custom CSS because of

Hi,
I was using the "Custom HTML Head" in previous versions of Pigallery2 to apply custom css. This no longer works because in the new version of Pigallery2 because there is a static  added to whatever is put inside the "Custom HTML Head" and the browser will not understand
Possible solution would be to add another field called "Custom CSS" to the options page?

workaround for now is simply add

Hi,
I had to wrap it within script tags because of some angular webpack issue (if I recall correctly). I'm sure there is a solution to that. Feel free to play around with it. I did not wanted to spend too much time on it as I feel this is not a heavily used feature.
In #587 I plan to finally work on a dark theme, that will also allow creating custom themes, adding custom css code


[Angular/React] Default Sling Model

Use Case: As a Frontend developer with no Java skills, I do not want to always develop a Sling Model for my components.
Currently, if we create a new component (I tried with React but I guess its the same with Angular) that component will automatically dump all its props in the model when a model request is done at a parent level.
For example, lets say I have a new model-less button component at /content/mysamplespa/en/home/jcr:content/root/responsivegrid/button
These requests will be successful, dumping all properties automatically:
http://localhost:4502/content/mysamplespa/en.model.json
http://localhost:4502/content/mysamplespa/en/home/_jcr_content/root/responsivegrid.model.json
This request done at the component level will fail:
http://localhost:4502/content/mysamplespa/en/home/_jcr_content/root/responsivegrid/button.model.json

Invalid recursion selector value 'model'
Cannot serve request to /content/mysamplespa/en/home/_jcr_content/root/responsivegrid/button.model.json in org.apache.sling.servlets.get.DefaultGetServlet

This does not create a problem when running the app, it does create a problem during authoring, as the author will query the model at the component level after it was authored.
Suggestions:

Model-less components should render at the component level, same as they render through their parents.

We should include a sample dump-all sling model that can be used as a super type for all components. I have created one in my SPA, however it puts all the properties under an "all" node:

public class BaseComponentExporter implements ComponentExporter {
    static final String RESOURCE_TYPE =
            "mysamplespa/components/base";

...

    private Map<String, Object> getExportedProps(Resource res) {
        Map<String, Object> props = res.getValueMap()
                .entrySet().stream().filter(x -> {
                    return !x.getKey().contains(":");
                })
                .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));

        res.getChildren().forEach((Resource child) -> {
            props.put(child.getName(),getExportedProps(child));
        });

        return props;
    }

    public Map<String, Object> getAll() {
        return getExportedProps(request.getResource());
    }

Internal issue: CQ-4285256

IMO the archetype should not be adding code to the AEM Project - if there is value in having a DialogPropertiesComponent SlingModel, then that should be released as part of a SDK (Core Components, or some other vehicle).  The archetype should add ~0 logic to the project, and only "dumb" skeletal structures -- Any logic/impl (the royal) we deem as useful/best practice/whatever should be abstracted into a referencable, reusabe API/SDK.
Once an AEM project is generated from the archetype, all the code/logic/structure created is no longer under Adobe's control, so Adobe is no longer to improve it over time (bug fix or evolve features).

@davidjgonzalez too often I find the SampleFilter from the archetype running in production instances? In that case I would opt to remove that sample code, too.

@joerghoh absolutely agree. None of that sample code (including tests) should be in the archetype that is used to create the baseline for a production codebase, as none of that code should ever be deployed to production.

Closing this for now, because the actual work isn't related to the Archetype but to the JS SDK and this is being tracked elsewhere already.


Sessions don't load

Actions taken
"Cold start" the app (just installed)
Expected result
Sessions are visibile
Actual result
Sessions list is empty. A "refresh list" action reloads the sessions data

subscribe, 19 hrs too late.


Add quantity class Frequency

In retrospect, I probably should have run the tests, too

In retrospect, I probably should have run the tests, too

And set the milestone :trollface:


Fixes for embedding requirements install

I noticed sklearn is in the install which is deprecated and scikit-learn is already in there as well, and scipy was missing.
This fixes #210

Awesome!


add pt.yaml

Hi there, thanks for the great theme :)
This PR only adds Portuguese translation.

Thanks!


refactor: simplify create_puzzle.create

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

Project coverage is 99.44%. Comparing base (04b2fd2) to head (c553ae3).

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #50      +/-   ##
==========================================
+ Coverage   99.43%   99.44%   +0.01%
==========================================
  Files          11       12       +1
  Lines         176      181       +5
  Branches       15       15
==========================================
+ Hits          175      180       +5
  Partials        1        1

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


Adds Appveyor badge for master.

Related to https://github.com/rusoto/rusoto/issues/245 .

yolomerge


Update csslint version to 0.10.0 so that FreeBSD is happier.

csslint removed their architecture limitations in 0.10.0 and so it no longer stops building on FreeBSD.

Thanks for updating these.


Auto-added variables don't work when you try to edit their names!

I had three variables a,b,c, which I wanted to define together using destructuring. I clicked on the auto-added definition for a, and typed a comma. It disappeared and another a was created at the bottom of the list.
I think this can be fixed by, when you edit an automatically-added variable, it's marked as not automatically added any more.
I ended up adding a new variable and writing a,b,c in the name field, which worked, but the individual auto-added entries for a, b and c weren't deleted.

fixed by 82407c34eb317f2c99fd0b72840698ae1e671368


Expose API from command line for interrogating Gopkg.lock entries

What version of dep are you using (dep version)?

0.3.2 and 0.4.1
What dep command did you run?
dep status

What did you expect to see?
All dependencies, including transitive
What did you see instead?
Only direct dependencies
It would be great to have a dep command that interrogates the version/revision for a particular dependency listed in the Gopkg.lock. We have to resort to some seemingly fragile regex's to accomplish this in our build scripts.

Dep was officially deprecated earlier this year, and the proposal to archive this repository was accepted. As such, I'm closing outstanding issues before archiving the repository. For any further comments, please use the proposal thread on the Go issue tracker. Thanks!


Where to find examples of each language feature in the LSP?

I am new to learning about the LSP and curious how it all works. I am reading through the spec and find there are about ~40 "features":

Go to Declaration
Go to Definition
Go to Type Definition
Go to Implementation
Find References
Prepare Call Hierarchy
Call Hierarchy Incoming Calls
Call Hierarchy Outgoing Calls
Prepare Type Hierarchy
Type Hierarchy Super Types
Type Hierarchy Sub Types
Document Highlight
Document Link
Document Link Resolve
Hover
Code Lens
Code Lens Refresh
Folding Range
Selection Range
Document Symbols
Semantic Tokens
Inline Value
Inline Value Refresh
Inlay Hint
Inlay Hint Resolve
Inlay Hint Refresh
Moniker
Completion Proposals
Completion Item Resolve
Publish Diagnostics
Pull Diagnostics
Signature Help
Code Action
Code Action Resolve
Document Color
Color Presentation
Formatting
Range Formatting
On type Formatting
Rename
Prepare Rename
Linked Editing Range

However, they each only have a one-sentence description, followed by some type definitions on how the data is passed around. I would like something more intuitive, like these two things would be extremely helpful for better understanding how I could implement a VSCode language server for a new programming language. For each feature:

A deeper, or more practical, description of its purpose and use cases.
A screenshot or short GIF or video showing how it would appear in the VSCode editor UI.
An example of how you would implement it in the language server (some JS/TS snippet of some sort).

Does anywhere on the web have such documentation? The guide has links to some GitHub repos where I can maybe find some JS/TS code snippets (# 3), and even some basic screenshots. But it doesn't cover everything in the spec, and it leaves out a lot of detail/context on how it actually should behave or work. Please help in explaining how each feature works and any visual demonstrations showing expected behavior (or where I can find these resources on the web otherwise).
Thank you so much! I would have asked on StackOverflow but they would close the question as off topic. I would ask on Reddit but this is too specific, so I thought here was the best place to ask.

Something like this README, which has some GIFs.

https://code.visualstudio.com/api/language-extensions/programmatic-language-features
Hi, I hope this is what you need


Add Enterprise options

An enterprise option can be passed through as a string or an env var, to change the URL that Octokat calls.

You need to be authenticated for any of this to work. For enterprise, there can be extra authentication needed.


Update README.md

Might want to skip .md changes from triggering presubmits :)

The CI failure isn't related, so merging.


1 cause of discrepancy

I've discovered at least one cause of discrepancy between our master and Lorraine's:
https://github.com/ThrunGroup/implicit-hyper-opt/blob/master/data_loaders.py#L75-L81
Somehow, when we changed train_data to data and train_labels to targets, this results in different behavior.
Additionally, it's not clear to me why num_train is used for the val set as well
I'm also not sure why changing those field names leads to different behavior

Oh, the num_train is used to split the train and validation set properly. Still don't know about the other questions

I suspect that the difference in train_data, train_labels  and data, targets is due to a difference in random sampling for the different attributes. It is probably not material since both


SHIFT button makes graphical glitches

If you hold down SHIFT key and wait for a couple seconds - all regions will be outlined with a blinking border:

I found an issue which working in all modern browsers. To reproduce it you need to have more than 1 tab opened in browser window.
There are default hotkeys combinations to switch between tabs: CTRL + TAB for the next tab and CTRL + SHIFT + TAB for previous one.

You should be on a tab with ContentEditor located on the page (editor state doesn't matter).
Press CTRL + SHIFT + TAB to switch to another one tab.
Press CTRL + TAB to return back.
Now you can see region outline borders are blinking all the time, until you press SHIFT button one more time.

I think there is a browsers behavior problem. It looks like keyup event isn't sending to the tab which was active before switching. Because switch to previous tab combination has SHIFT key - editor think you are just holding it even after switching back.

I'll look to get a fix out in the next release but sounds like I need to check that only the shift key is down before starting the region outline flash. Thanks for the detailed description :+1:

Can you provide use case of this feature, please? I just found it accidentally after tab switching issue :}

@a-komarev it allows you to visually highlight the editable regions on a page, so if you want to know what can be edited (without starting the editor even) you just hold down shift.

@anthonyjb Is there is a way to mark regions this way programmatically? Because I'm not sure at least 1% of users will find this feature themselves.

@a-komarev sure call editor.hightlightRegions(true) send false to disable.
The feature/purpose is documented on the demo page second paragraph - Editable regions. In a lot of cases (like the demo page) I guess it's not that useful because almost everything editable is obvious, we've tended to find if useful on pages where only small sections of content are editable, like a product listing page where only a delivery notice top right can be edited in page (that sort of thing).

This is now fixed in the develop branch.

Thanks, working like a charm!


Missing include directories

After bootstrapping, running
C:\3D-Graphics-Rendering-Cookbook\Chapter5\GL01_Grid\build> cmake .. -G "Visual Studio 16 2019" -A x64
then
C:\3D-Graphics-Rendering-Cookbook\Chapter5\GL01_Grid\build> cmake --build . --config Release
yields:
C:\3D-Graphics-Rendering-Cookbook\Chapter5\GL01_Grid\src\main.cpp(5,10): fatal error C1083: Cannot open include file: 'shared/glFramework/GLFWApp.h': No such file or directory [C:\3D-Graphics-Rendering-Cookbook\Chapter5\GL01_Grid\build\Ch5_SampleGL01_Grid.vcxproj]

Make the build folder in the root folder of the repo.
C:\3D-Graphics-Rendering-Cookbook\build>cmake .. -G "Visual Studio 16 2019" -A x64


Support For TensorFlow > 2.0 (considering it is difficult to install compatible versions of tf)

It appears that HyperGAN is not compatible with the latest versions of tensorflow 2. The following is the output / error message when I try to train a model on a folder of images. Help would be much appreciated.
2020-06-29 01:28:31.932986: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcuda.so.1
2020-06-29 01:28:31.985086: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-06-29 01:28:31.985449: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1561] Found device 0 with properties:
pciBusID: 0000:07:00.0 name: GeForce RTX 2070 SUPER computeCapability: 7.5
coreClock: 1.785GHz coreCount: 40 deviceMemorySize: 7.79GiB deviceMemoryBandwidth: 417.29GiB/s
2020-06-29 01:28:31.985545: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcudart.so.10.1'; dlerror: libcudart.so.10.1: cannot open shared object file: No such file or directory
2020-06-29 01:28:31.985575: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcublas.so.10'; dlerror: libcublas.so.10: cannot open shared object file: No such file or directory
2020-06-29 01:28:31.985602: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcufft.so.10'; dlerror: libcufft.so.10: cannot open shared object file: No such file or directory
2020-06-29 01:28:31.985627: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcurand.so.10'; dlerror: libcurand.so.10: cannot open shared object file: No such file or directory
2020-06-29 01:28:31.985653: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcusolver.so.10'; dlerror: libcusolver.so.10: cannot open shared object file: No such file or directory
2020-06-29 01:28:31.985679: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcusparse.so.10'; dlerror: libcusparse.so.10: cannot open shared object file: No such file or directory
2020-06-29 01:28:32.115486: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7
2020-06-29 01:28:32.115524: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1598] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.
Skipping registering GPU devices...
2020-06-29 01:28:32.118110: I tensorflow/core/platform/cpu_feature_guard.cc:143] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2020-06-29 01:28:32.153924: I tensorflow/core/platform/profile_utils/cpu_utils.cc:102] CPU Frequency:<PHONE_NUMBER> Hz
2020-06-29 01:28:32.154562: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x7fb89c000b60 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2020-06-29 01:28:32.154588: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): Host, Default Version
2020-06-29 01:28:32.158486: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] Device interconnect StreamExecutor with strength 1 edge matrix:
2020-06-29 01:28:32.158503: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1108]
Shuffling data
Traceback (most recent call last):
File "/usr/local/bin/hypergan", line 99, in
inputs.create(args.directory,
File "/usr/local/lib/python3.8/dist-packages/hypergan/inputs/image_loader.py", line 66, in create
dataset = dataset.map(parse_function, num_parallel_calls=4)
File "/home/livelycarpet87/.local/lib/python3.8/site-packages/tensorflow/python/data/ops/dataset_ops.py", line 1623, in map
return ParallelMapDataset(
File "/home/livelycarpet87/.local/lib/python3.8/site-packages/tensorflow/python/data/ops/dataset_ops.py", line 4016, in init
self._map_func = StructuredFunctionWrapper(
File "/home/livelycarpet87/.local/lib/python3.8/site-packages/tensorflow/python/data/ops/dataset_ops.py", line 3221, in init
self._function = wrapper_fn.get_concrete_function()
File "/home/livelycarpet87/.local/lib/python3.8/site-packages/tensorflow/python/eager/function.py", line 2531, in get_concrete_function
graph_function = self._get_concrete_function_garbage_collected(
File "/home/livelycarpet87/.local/lib/python3.8/site-packages/tensorflow/python/eager/function.py", line 2496, in _get_concrete_function_garbage_collected
graph_function, args, kwargs = self._maybe_define_function(args, kwargs)
File "/home/livelycarpet87/.local/lib/python3.8/site-packages/tensorflow/python/eager/function.py", line 2777, in _maybe_define_function
graph_function = self._create_graph_function(args, kwargs)
File "/home/livelycarpet87/.local/lib/python3.8/site-packages/tensorflow/python/eager/function.py", line 2657, in _create_graph_function
func_graph_module.func_graph_from_py_func(
File "/home/livelycarpet87/.local/lib/python3.8/site-packages/tensorflow/python/framework/func_graph.py", line 981, in func_graph_from_py_func
func_outputs = python_func(*func_args, **func_kwargs)
File "/home/livelycarpet87/.local/lib/python3.8/site-packages/tensorflow/python/data/ops/dataset_ops.py", line 3214, in wrapper_fn
ret = _wrapper_helper(*args)
File "/home/livelycarpet87/.local/lib/python3.8/site-packages/tensorflow/python/data/ops/dataset_ops.py", line 3156, in _wrapper_helper
ret = autograph.tf_convert(func, ag_ctx)(*nested_args)
File "/home/livelycarpet87/.local/lib/python3.8/site-packages/tensorflow/python/autograph/impl/api.py", line 265, in wrapper
raise e.ag_error_metadata.to_exception(e)
AttributeError: in user code:
/usr/local/lib/python3.8/dist-packages/hypergan/inputs/image_loader.py:41 parse_function  *
    image_string = tf.read_file(filename)

Yep, I'm getting the same problem

This should really be renamed "Support Tensorflow >2.0" or something

The develop branch of hypergan has been re-written in pytorch. We're still getting it ready for general release.


🐞 bug report

Explain bugs
when I open the proposal menu,
Active proposals continue to load for 5-10 minutes even though the active proposals do not exist while the peroposal history is loaded faster while the proposal history is loaded a lot
Steps to reproduce

go to DFOHUB
Click the proposal tab

** Expected behavior **
I hope the proposal loading is faster / or improved
Screenshot

Web Scenario3
Metamask
Additional context
Username dispute: Wandidw # 3191
ETH Wallet: 0xA9934A2183b4732fc14E07EA6B67dD728Bbe4CFD

Thank you for sharing.
This is happening because DFOhub doesn't use servers, and it read the data directly from the chain, so some time is slow...
In your behavior Active Proposals, continues loading because it is set to search every possible proposal until the generation block of a DFO.
If you have some ideas to improve this mechanism, we're R&D on how to make it faster.


[v1.11] vagrant: Bump 4.9 Vagrant box (Linux 4.9.326, to fix a kernel bug)

Manual backport of #21106,
in the attempt of fixing #24394.

Fixes: #24394
Once this PR is merged, you can update the PR labels via:
for pr in 21106; do contrib/backporting/set-labels.py $pr done 1.11; done

or with
make add-labels BRANCH=v1.11 ISSUES=21106

/test-1.17-4.9

/test-1.17-4.9

/test-1.19-4.9

/test-1.20-4.9

/test-1.21-4.9

/test-1.23-4.9

/test-backport-1.11

/test-backport-1.11

/test-backport-1.11

/test-1.17-4.9

/test-1.20-4.9

/test-1.21-4.9

/test-1.21-5.4

/test-1.23-4.9

/test-upstream-k8s

/test-runtime

/test-1.18-4.9

/test-1.23-4.9

/test-backport-1.11

@qmonnet Added commit trying to avoid trying to re-mount the bpf file system.

/test-backport-1.11

/test-1.19-4.9

Not sure why Cilium L4LB XDP didn't trigger, but it's not affected by the version of the Vagrant boxes anyway.


No sign of ODIN

If a person is opening the URL, you can't simply assume he knows the complete concept of ODIN and reason behind it
There should be an About section

@prabhakar267 , yeah..
That is why it is on the agenda for our Meetup. We need some collective ideas to put up a nice landing page :)
@samakha @shubhamkrm will be taking this up primarily, although anyone is welcome to claim this responsibility as an when we finalise the UI.


Cscfairmeta 409 update npm packages

This PR is for updating packages with security vulnerabilities found using npm audit.
To test that the Production build works as intended run:
cd /etsin/etsin_finder/etsin_finder/frontend && npm run build

DO NOT MERGE until etsin-ops has been tested properly with node v12.

Functional while using the development build. Website looks good and dataset publishing works.


Test new save system

@Warhammer47 and @SomethingSimpl, the last set of 20 or so commits dramatically changes the saved system by unifying the different bits and pieces of saving a game (incompatible with old saves!, it will error to load a old saved game).
The most pleasant feature of this is that we can now save a game into a file. For example, the players are saved as
%%%#>OB:{_sp_player_:OB:{garage:AR:[]
%%%#>score:SC:25
%%%#>rank:ST:"PRIVATE"
%%%#>money:SC:100}

SC means scalar, ST means string, OB:{} means nested, etc.
When we press save game, the save is generated on the server and copied to the clipboard of every client and also stored in the commander's profile as before. Likewise, there is now a button to load a game from the clipboard (commander).
This allow us to easily share saved games and to modify them if the save structure changes or there was an error.
It would be great to have this heavily tested, as it is a very important part of the mission.

Any case where it breaks?
Does it fixes #20, #17 and #35?

There is an existing error: #44
Be aware that this save structure is still not definitive, it will likely change 1 more time for a minor but important adjustment. There will be a release when the structure of the saved game is frozen.

Hi, will this server side savesystem work on linux server as well? I can test this weekend and come back to you.
-mike

I can run a test on server as well. What should i exactly look for? maybe i try different moment run the save and check if the created file store all infos correctly?

@mike-187, yes, it should work (thanks for testing it on Linux!). The de/serialization happens on the Arma engine, so it should be independent of the OS. The file does contain windows endings (\r\n) that are necessary to deserialisation, so make sure that if you modify the file string, the string that you copy back to Arma has \r\n. :)
@StefArma, we can try to test first the open issues I identified above to confirm that they were fixed. E.g. confirm that the FIA garage is saved and loaded correctly. Thanks a lot for the help!

@LordGolias hi, so did a quick test... on dedicated Linux server it is not completing the save game...
I just tried to start new mission on Altis and just tried to save the game right away.
on the server in the log file it finishes and says "[AS] Server: game saved." at the end but in Arma on the client the Save Game prompt never ends. I even did let it run for 15 mins or so. Nothing changed.
Hope it helps I uploaded here the server log from the quick test > https://pastebin.com/JqxpQVFk
When I just host it in MP game it works and it saves it to clipboard and to the file successfully.
My question is where does it save on the server? On the original antistasi mission it would save the progress to the server profile i.e. servername.vars.Arma3Profile file.
last question :) do you have a discord server where you guys discuss your version of Antistasi?
--Mike

dedicated Windows server it's not completing the save game as well.
My toughts about different kind of servers/users.

Open community: it's probably our case only so far,  i can play with people at night, then the next day other people wanna continue play and they can't because only we've the save. Workaround might be Dropbox but not really an immediate thing.

Closed community (clan): they probably wanna have control over thier own mission so that they get advantage that nooneelse can start from their save and mess up things. In addition they have the benefit they can leave the server open for potential people who wanna play their own stuff while they're not playing their campaign.

User hosting and SP, no issues at all, on the contrary very good way to handle the save.

Can't give an appropriate suggestion for the open community case because i don't know what it is actually possible and worth to do.
We're using inidbi2 mod serverside only that allow store each savegame (from ingame it always load the last)  and also playerstat, so that everyone who connect mantain his money,rank and gears(gears only if logged out within 100m from HQ otherwise respawn naked).

@mike-187, saving a game should take 5s tops. It is a bug.
Regarding the saved games location: currently, anyone can become a commander, which means that someone could remove all saved games. For this reason, any interaction with saved games is limited to local changes- Specifically, the following happens:

server serializes game to a string (AS_fnc_saveGame)
server sends the string to all clients
every client receives the string (AS_fnc_receiveSavedData) and copies it to clipboard
if the client is the commander, the string is stored in the player's profile under the save name he decided when saving

Bear with me, this will change once the server membership is re-introduced, as it will make sure players that modify the server data are white-listed by the server's admin.

@mike-187 and @StefArma, I reproduce the issue you mentioned, and fixed it in 6c866bfc6b185b6af91912eb7e49a0a9b8328e70. Thank you for the help on this.

@mike-187, regarding the discord, I haven't though about it. Here you go: https://discord.gg/3Wc49N not sure it will work, for now it is a test to see whether it is necessary or not.

Thank you all for the reported issues! I will close this for now and ask you to report issues as usual on github.


Exported Button Group in Scene keeps getting set in parent to new button group.

Godot version
3.4.4
System information
Windows 10
Issue description
I expect the parent scene to respect the default values i set in a scene unless I specifically set them otherwise.
Steps to reproduce
Create scene A.
Create Scene B with some button children. Give these button children a button group and save it as a resource. Give Scene B's root a script with an export variable of button group. Set the variable in editor to the saved button group.
Instance Scene B in Scene A. Now whenever you switch between the scenes in editor the Export field for button group in Scene A gets set to new button group instead of the default value.
Minimal reproduction project
ButtonGroupIssue.zip

@tex111 Please upload a minimal reproduction project to make this easier to troubleshoot.

I added it as requested. when you run the project then switch between scene tabs the behavior occurs. The behavior is in the inspector properties of the instanced scene in Main.tscn. You can then undo the change in the main scene but running and switching tabs causes the behavior to occur again.

This is probably because ButtonGroup has resource_local_to_scene on by default. I'm not really sure why though. It confused me at first too.

I'm guessing that this is probably caused by the corrupted resource_local_to_scene, so that the resource cannot be shared in the sub-scene.
May be fixed by #64526.

This is probably because ButtonGroup has resource_local_to_scene on by default. I'm not really sure why though. It confused me at first too.

I guess the idea is that if you have a scene with a group of buttons and you instantiate it multiple times in another one each gets its own group instead of an unique one for all the buttons.
Probably the thing is that you'd want it to be scene-local for instantiation and not for inheritance, where it feel awkward. I don't have time now for assessing this idea. Maybe one of you would like to open a proposal about it if you like the idea. 😁

I took a closer look at the code in the MRP, and the code seems to want to expand the number of shares in the ButtonGroup by exporting the ButtonGroup. That is to add a few extra Buttons to share the previous ButtonGroup.
For instantiating as a sub-scene (a child node in the main scene), I don't think this is feasible.
But for instantiating as the root node in the main scene (scene inheritance), I don't think it's impossible. This situation is equivalent to treating resource_local_to_scene as “protected” rather than “private”.
Subjectively speaking, there are still many such needs. And I think instantiating as a child node and instantiating as a root node can make a difference in this point.

Just encountered this issue today in 4.3dev. I have a simpler way to reproduce it.

create a button with toggle and save the scene as "button.tscn".
create a button group resource "button_group.tres".
create a new scene and instantiate some "button.tscn" buttons, assign "button_group.tres" to them.
now close and reopen the scene, all buttons have their own, different, scene local button group, no sharing.

This issue prohibits us from using button groups with externally saved buttons (which is a common practice if we want to duplicate a customized button many times).
My MRP:
button_group_issue.zip
Looking at the scene file all buttons share the same button group, but they are not once the scene is opened.


(Fixes #23)adding dark mode to documenttion

This PR adds a dark, light and default toggle  to the project, the implementation follows the instruction and hints givn.
Fixes https://github.com/ryansurf/cli-surf/issues/23
I am new to open source. so, I will look forward to the feedbaks.

Works great. I like that you choose to implement the automatic light/dark toggle, I didn't even know that was an option. Great work and welcome to open source!


Frontend Design Mockup - Sprint 1

Utilize Adobe XD/Figma to create a quick mockup of where each element will be positioned on the page

Reference: https://antalmanac.com/

New mockup: https://www.figma.com/file/nP5Z4Ugc0p9pnBaqNrtMS4/CruzCal?node-id=0%3A1


Line charts

Hi,
Can we remove the curves in the Line charts to make them straight lines as I highlighted in the below screen shot because the curves misleading the audience.

Kind regards,
Adil

Read the documentation, please. There is an option at http://www.chartjs.org/docs/#line-chart-chart-options called bezierCurve that you can set to false in the chart's initialisation.

Hi, Thank you for the answer but still it doesn't work after setting the bezierCurve=false as per the documentation.

Ok, I'm at work now so I cannot login to GitHub anymore, but I try to
do this through answering by email.
Do you set the option in the local `options` object that you pass

into the chart instantiation?
Per documentation it should look like this:

```

var options = {

    bezierCurve: false,

};

var myLineChart = new Chart(ctx).Line(data, options);

How do you pass the options to your chart?

	-----Original-Nachricht-----

	Betreff: Re: [Chart.js] Line charts (#1443)

	Datum: Wed, 09 Sep 2015 14:43:59 +0200

	Von: Adil Shahzad<EMAIL_ADDRESS>
	An: "nnnick/Chart.js"<EMAIL_ADDRESS>
	Hi, Thank you for the answer but still it doesn't work after setting
the bezierCurve=false as per the documentation.

	—
Reply to this email directly or view it on GitHub [1].

 Profitieren Sie von der sicheren E-Mail-Übertragung Ihrer Daten mit
einer kostenlosen E-Mail-Adresse der Telekom.
www.t-online.de/email-kostenlos

Links:
------
[1]
https://github.com/nnnick/Chart.js/issues/1443#issuecomment-138897404

That has been done, thank you so much for your hint. That's why I closed this issue.


TypeError: Cannot read property '_cookieJar' of null

🐛 Bug Report
Connect to a socket.io cause an this error:
(node:66998) UnhandledPromiseRejectionWarning: TypeError: Cannot read property '_cookieJar' of null
    at resolve (/Users/xxx/node_modules/jsdom/lib/jsdom/living/websockets/WebSoc
ket-impl.js:124:39)

To Reproduce
test('connection', async () => {
  const port = await getPort({ port: getPort.makeRange(8080, 65535) })
  const io = socketIO(port)
  const connection = new Promise(resolve => {
    io.on('connection', resolve)
  })
  const client = socket('http://localhost:' + port)
  await connection
})

Expected behavior
no errors log

Have you tried newer version of JSDOM, e.g. https://www.npmjs.com/package/jest-environment-jsdom-fifteen? Jest uses pretty outdated one because of Node 6 support (will be dropped in next major).

Have you tried newer version of JSDOM, e.g. https://www.npmjs.com/package/jest-environment-jsdom-fifteen? Jest uses pretty outdated one because of Node 6 support (will be dropped in next major).

I just tried jest-environment-jsdom-fourteen and errors also logged, but when I register an connect handler to the client-side socket intance, these errors disappears.

So it looks like it's not an issue with Jest but with jsdom or the way you use the library in tests. I'm gonna close this issue, as we can't help on that.

@chillyond did you figure this out. I am running into the same issue

@chillyond did you figure this out? I am running into the same issue

Yes, it seems if you listening connection on io instance(server side), and doesn't listening connect on socket instance(client side), then the error will appears. So you can either add a
connect listener or remove the connection listener, hope this helps you.

Hey @chillyond I am running into the same error and jest-environment-jsdom-fourteen also doesn't solve the problem for me.
Could you explain your solution a bit better? Where do you add the connect listener (or remove the connection listener), on the client side or on the server side?
My stacktrace:
UnhandledPromiseRejectionWarning: TypeError: Cannot read property '_cookieJar' of null
  at resolve (/home/cdimitroulas/code/headstart/hs-student-web/node_modules/jest-environment-jsdom-fourteen/node_modules/jsdom/lib/jsdom/living/websockets/WebSocket-impl.js:124:39)
  at new Promise (<anonymous>)
  at WebSocketImpl.openingQueues.set.openingQueues.get.then (/home/cdimitroulas/code/headstart/hs-student-web/node_modules/jest-environment-jsdom-fourteen/node_modules/jsdom/lib/jsdom/living/websockets/WebSocket-impl.js:112:94)
  at <anonymous>
  at process._tickCallback (internal/process/next_tick.js:189:7)

@cdimitroulas Yes, jest-environment-jsdom-fourteen doesn't solve this problem, my workround is, in brief, the client side's connect listener and the server side's connection listener must all be registered, or all not be registered, it works for me.

In my case, the transports option was mismatched between client and server, and that also triggered this bug.

@beaniemonk can you elaborate on how you fixed that?

Sure,
So on the server side I had this (short version):
// server
const sio = require("socket.io")({
    options: {
        transports: ["websocket", "polling"],
    }
});

(This option is OK for our specific case, but may or may not be a good idea for yours).
On the client side, I did not specify this option, so presumably it was rolling with the default transports: ["polling", "websocket"] instead. When I changed it to match:
// client
const socket = require("socket.io-client")("foo/bar", {
    transports: ["websocket", "polling"],
});

This error went away for me.
This mismatch should not be an issue normally, as far as I know -- it's something specific to the Jest/JSDOM environment.
@chillyond's suggestion of adding a socket.on("connect", ...) event handler unfortunately did not work in my case, but this did for some reason.


Updated LSTM Cell inputs description to 3D tensor

Actually the LSTM Cell takes a 3D tensor as input as we can see on line number 801 but the description at line number 860 mentions that the input should be a 2D tensor which is incorrect. The LSTM cell gives error with 2D tensor input. Hence modified the description as 3D tensor.

@googlebot  I signed it!

No, this is not correct. LSTMCell only take 2D input and it will only process one timestep (so there isn't a dim for timestep in the input). On the otherhand, LSTM layer will take 3D tensor, and the current docstring is correctly reflecting that.

@qlzh727 But the example used on the tensorflow official docs itself uses 3D tensor as input for LSTMCell.
https://www.tensorflow.org/api_docs/python/tf/keras/layers/LSTMCell

@qlzh727 But the example used on the tensorflow official docs itself uses 3D tensor as input for LSTMCell.
https://www.tensorflow.org/api_docs/python/tf/keras/layers/LSTMCell

Please pay attention to the sample code, the LSTMCell is wrapped in a RNN layer, which takes 3D tensor as input. When the input reaches the cell, the input shape is 2D. You can debug the code step by step to see the shape of input.


Gcfix

Build against Scala 2.11 finished with failure

Build against Scala 2.10 finished with failure

Build against Scala 2.10 finished with success

Build against Scala 2.11 finished with success


Update Catalina from 15.1 to 15.2.

Can I update my 15.1 installation to 15.2 just like a real Mac through system preferences, or it it more involved?

You should be able to but someone reported issues with it yesterday. I haven’t ran into the issue myself though.

I saw that and I believe they were upgrading from Mojave to Catalina.

I just upgraded to 15.2 without any problems. Lots of restarts but a satisfactory conclusion.


Refactor uploading project

azkaban.project.AzkabanProjectLoader#uploadProject method is too chunky and complicated. Break it up into small logical pieces so that it's easier to understand.
azkaban.project.DirectoryFlowLoader is mainly responsible for loading project flows. It should be separated from project validation which is used by external plugins like byteRay.
Given a project directory, DirectoryFlowLoader should only care about extracting the flow/job info and populating it to the project.
After separating the DirectoryFlowLoader, it would be easier to create and implement the new flowLoader for Flow 2.0 design.

Thanks for the work. The new code is more readable.


Reset search

Added support for a reset button using javascript and font awesome

#81

Hey, thanks for submitting! This is in my task queue, just give me a day or two more to get to it.

@lord any update on this? I am happy to resolve the gemfile.lock conflict

@bc-AlyssNoland sorry for the delay! No need to fix for now, let me review the code first, hopefully tonight or tomorrow.

@lord because of some issues after rebasing my dev branch, I'm going to reopen this so there aren't useless commits in the history unless you have an alternative suggestion

@bc-AlyssNoland  re: reopening a new PR, sounds good!

@PreciselyAlyss Just curious why this hasn't been re-opened? I think it's a great idea!

Hi any news on that awesome feature?

A quick feaute impel I used here - https://squiss-ts.pruvo.com is as follow:
search.js - change the bind method as follows:
  function bind() {
    content = $('.content');
    searchResults = $('.search-results');

    function inputCallback(e) {
      var wait = function() {
        return function(executingFunction, waitTime){
          clearTimeout(timeoutHandle);
          timeoutHandle = setTimeout(executingFunction, waitTime);
        };
      }();
      wait(function(){
        search(e);
      }, searchDelay );
    }
    $('#input-search').on('search',inputCallback);
    $('#input-search').on('keyup',inputCallback);
  }

layout.erb - change the search div as follows:
        <div class="search">
          <input type="search" class="search" id="input-search" placeholder="Search">
        </div>

_normalize.css - remove the following:
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

@ralph-dev @regevbr I haven't worked on a fork of slate since 2017 but the prior work could be iterated on


test: add tests for nativeClassProperties

The test case is wrong.  The desired outcome is for field initializers to remain as field initializers.
I'm guessing the transforms list needs an extra option: useDefineForClassFields: true.

The test output is incorrect.  So we're not picking up the desired new behavior yet.

The current module relationship is
binding_typescript_wasm -> swc_fast_ts_strip -> swc_ecma_transforms_typescript
Now, the swc_ecma_transforms_typescript module has been updated, but no new version has been released yet,
all dependencies are still referencing the old version.
We may need @kdy1 to explain the compilation and update process.

@magic-akari do you know if today's @swc/wasm-typescript v1.7.12 contains this new option?

@magic-akari do you know if today's @swc/wasm-typescript v1.7.12 contains this new option?

I don't know.

There are methods to ensure the use of a local build over crate packages. For details, refer to the script in this CI
https://github.com/swc-project/swc/blob/05961eb018e2e76ed5ef95de9bad923b2fe1df88/.github/workflows/CI.yml#L147-L152
I'm not certain if this is the recommended method.

maybe @kdy1 knows?

Sorry, I missed the email. I'll publish swc_ecma_transforms_typescript and swc_fast_ts_strip right away.

I published those crates and triggered publish of v1.7.14

thank you!


Content is empty

I have install it to the phone..
From android catlog see  like this

05-19 23:24:32.341 16936-16986/com.kickstarter.kickstarter.debug V/MixpanelAPI.DChecker: Querying decide server, urls:
>> https://decide.mixpanel.com/decide?version=1&lib=android&token=koala&distinct_id=5df63f94-9e5e-4a0e-ba1f-7352c250e3e4
05-19 23:24:32.341 16936-16986/com.kickstarter.kickstarter.debug V/MixpanelAPI.Message: ConnectivityManager says we are online
Attempting request to https://decide.mixpanel.com/decide?version=1&lib=android&token=koala&distinct_id=5df63f94-9e5e-4a0e-ba1f-7352c250e3e4
05-19 23:24:33.243 16936-16986/com.kickstarter.kickstarter.debug V/MixpanelAPI.DChecker: Cannot get https://decide.mixpanel.com/decide?version=1&lib=android&token=koala&distinct_id=5df63f94-9e5e-4a0e-ba1f-7352c250e3e4, file not found.
java.io.FileNotFoundException: https://decide.mixpanel.com/decide?version=1&lib=android&token=koala&distinct_id=5df63f94-9e5e-4a0e-ba1f-7352c250e3e4
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:250)

Hello! I'm not sure I understand, what is the question?

The left side menu blank, the content of each tab is empty.

Hi @idcmsbeta! You don't have access to all of our dependencies (they are private) so that's why the content is empty.

Wait .better private this project if status failure @eoji


"The MAC is invalid" error

I got that error on my VPS, except in local and incognito browser
"message": "The MAC is invalid.",
    "exception": "Illuminate\\Contracts\\Encryption\\DecryptException",
    "file": "/var/www/html/bench.lexigo.com/vendor/laravel/framework/src/Illuminate/Encryption/Encrypter.php",
    "line": 199,

If you have 2 similar project (different folders make sure they have the same APP_KEY


[WIP] Refactor django hello world to use demo and CC

Related to https://github.com/cockroachdb/docs/issues/7816
Also clean up app include directory structure
and make top-level toggles on python tutorials
more concise and usable. These toggles will
soon chnage with the docs redesign, however.

This change is

@ericharmeling, when I run the migration and app at the end, I get an error. Haven't had the chance to dig in yet. If you see something obvious, please let me know.
~/django/myproject$ python3 manage.py makemigrations myproject
Migrations for 'myproject':
  myproject/migrations/0001_initial.py
    - Create model Customers
    - Create model Products
    - Create model Orders
~/django/myproject$ python3 manage.py migrate
Operations to perform:
  Apply all migrations: admin, auth, contenttypes, myproject, sessions
Running migrations:
  Applying contenttypes.0001_initial...Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql)
psycopg2.errors.DuplicateTable: relation "django_migrations" already exists

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/django/db/migrations/recorder.py", line 67, in ensure_schema
    editor.create_model(self.Migration)
  File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/schema.py", line 324, in create_model
    self.execute(sql, params or None)
  File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/schema.py", line 142, in execute
    cursor.execute(sql, params)
  File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 100, in execute
    return super().execute(sql, params)
  File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 68, in execute
    return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 77, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 86, in _execute
    return self.cursor.execute(sql, params)
  File "/usr/local/lib/python3.7/site-packages/django/db/utils.py", line 90, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql)
django.db.utils.ProgrammingError: relation "django_migrations" already exists

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "manage.py", line 21, in <module>
    main()
  File "manage.py", line 17, in main
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 395, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 328, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 369, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 83, in wrapped
    res = handle_func(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/django/core/management/commands/migrate.py", line 233, in handle
    fake_initial=fake_initial,
  File "/usr/local/lib/python3.7/site-packages/django/db/migrations/executor.py", line 117, in migrate
    state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
  File "/usr/local/lib/python3.7/site-packages/django/db/migrations/executor.py", line 147, in _migrate_all_forwards
    state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
  File "/usr/local/lib/python3.7/site-packages/django/db/migrations/executor.py", line 246, in apply_migration
    self.record_migration(migration)
  File "/usr/local/lib/python3.7/site-packages/django/db/migrations/executor.py", line 261, in record_migration
    self.recorder.record_applied(migration.app_label, migration.name)
  File "/usr/local/lib/python3.7/site-packages/django/db/migrations/recorder.py", line 85, in record_applied
    self.ensure_schema()
  File "/usr/local/lib/python3.7/site-packages/django/db/migrations/recorder.py", line 69, in ensure_schema
    raise MigrationSchemaMissing("Unable to create the django_migrations table (%s)" % exc)
django.db.migrations.exceptions.MigrationSchemaMissing: Unable to create the django_migrations table (relation "django_migrations" already exists
)

Online preview: http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/6567cc835a35e490117d67c64978e784e6ec5173/
Edited pages:

v20.2/build-a-python-app-with-cockroachdb-django.md
v20.2/build-a-python-app-with-cockroachdb-pony.md
v20.2/build-a-python-app-with-cockroachdb-sqlalchemy.md
v20.2/build-a-python-app-with-cockroachdb.md

Closing in favor of work @ianjevans is doing.


Unable to load environment variables from .env.local

Describe the issue
We're keeping our environment variables in file .env.local instead of .env and ts-migrate-mongoose is not picking them out of the box.
In order to load them we needed to manually invoke dotenv
// migrate.ts

import { config } from 'dotenv'

config({ path: '.env.local', override: true })

export default {
  uri: process.env.MIGRATE_MONGO_URI ?? 'mongodb://localhost:27017/test'
  // "collection": "migrations",
  // "migrationsPath": "./migrations",
  // "templatePath": "./migrations/template.ts",
  // "autosync": false
}

Do you plan to support similar functionality?

I like the Idea so short answer is yes)

PR: https://github.com/ilovepixelart/ts-migrate-mongoose/pull/154

Released in: https://github.com/ilovepixelart/ts-migrate-mongoose/releases/tag/v3.1.9


Code coverage computation

We should compute code coverage for all three supported platform.
It would be cook to display a code coverage badge somewhere in the readme.

This has been done in the commits from 92660cb07493280a46e929fbb6364261237c50e0 to d070d63785c86ff9f496520741b678c1fe3bba5c


Created piano.html example.

Piano example.  You are welcome to edit it and e.g. change the camera position and lookTo, or to add or modify comments etc.  Whatever license you (Steven) like.
I am also happy if other people modify it later and make the keyboard warp.  Rebased against dev, but can rebase against master if you prefer.

Nice example, looking forward to seeing it cleaned up. One thing at a time of course, but I'd love to see it attached to a piano body, and maybe use readback and a sound library to make it play.

OK.  So I have made those cleanups, and now the piano keyboard is playing.
I'm not planning to add a piano body.  The intention is that these roads-of-keys can be used in other animations.

Looks better. At this point it's up to Steven.

This is great. The first question that came to mind was: wait, how are these keys constructed? Solution: add a togglable .spread():
http://acko.net/files/dump/tiles/piano.html
I noticed btw the cartesian view is inserted, but the children live outside it. So it's unused. (the default view is equivalent to cartesian range: [-1, 1] x 4, scale: [1, 1, 1, 1]). Fixed that on my end already.


fixed typo in readmes

I'm slightly ambivalent about this; "your local host" sounds good and "localhost" sounds good too, but I'm not sure about "your localhost".

thank you for the feedback @Ladicek.
fixed

merged: 90ba37456589eb64ac3b7a43a382475c0954af46


feat: moving actions into directives / api

Before submitting the PR, please make sure you do the following:

[x] Read the Contributing Guidelines
[x] Reference your PR to an issue that was discussed ahead of time
[x] The PR should contain a clear description of the problem it solves
[x] Ideally, include a test that fails without this PR but passes with it.

Tests and linting

[x] Run the unit tests with npm run test
[x] Run the linting with npm run lint
[x] Run the e2e tests with npm run e2e

Thank you for contributing to AgnosUI!

thx for the review @divdavem !


Can you add a license to the project?

I like your framework, but I want to fork it to use my own container, or maybe I could create a PR which factors out the buildContainer method to make it more flexible?
I'll do that now if you wish.

Yeah, I've been thinking of doing the same. What container are you thinking of using?

The one I wrote above, it's psr-11 compliant.

I didn't see the link on mobile @exts.
Do you think the following would suite your needs:
class App {
    public function __construct(ContainerInterface $container = null)
    {
        $this->buildContainer($container);
    }

    private function buildContainer() : void
    {
        $builder = new ContainerBuilder();

        if (null !== $container) {
            $builder->wrapContainer($container);
        }

        $builder->addDefinitions([
            EmitterInterface::class => object(SapiEmitter::class),

            InvokerInterface::class => get(Container::class),

            StackInterface::class => object(Stack::class),
        ]);

        $this->configureContainer($builder);

        $this->container = $builder->build();
    }
}

I haven't used the wrap functionality myself so far, but as far as I understand, that should do it.

I just made a cleaner PR here with a similar idea.

@exts Concerning license, it's defined in the composer.json: LGPL-3.0+. So feel free to fork if you want. I have some ideas though, will work on them today.

License was changed to MIT.


Remove .validation for NodeJSNightly v17.0.0-20210730

Related to #29068

Microsoft Reviewers: Open in CodeFlow

@ryfu-msft
Validation for v17.0.0-20210730 passed without the validation file when moving just the manifest files - #29068
Removing the old directory - #29063
This .validation file can be removed safely and does not need to be added/updated to accommodate the move
(Originally added in #25218)


[Question]: Can the python API be accessed from a ROS2 node?

Question
I'd like to use the Interbotix Python Arm Module from a custom node. The goal is to use the set_ee_pose_components function when a certain ROS message is received with x,y and z depending on the message content.
But including the InterbotixManipulatorXS class in a custom node leads to the node crashing with RuntimeError.
Here the code for a minimal subscriber as in the ROS2 documentation:
import rclpy
from rclpy.node import Node
from std_msgs.msg import String
from interbotix_xs_modules.xs_robot.arm import InterbotixManipulatorXS

class MinimalSubscriber(Node):

    def __init__(self):
        super().__init__('minimal_subscriber')
        self.subscription = self.create_subscription(
            String,
            'Test_topic',
            self.listener_callback,
            10)
        self.subscription  # prevent unused variable warning

        self.bot = InterbotixManipulatorXS(
            robot_model='wx250s',
            group_name='arm',
            gripper_name='gripper'
        )
        self.bot.arm.go_to_sleep_pose(2.0)

    def listener_callback(self, msg):
        self.get_logger().info('I heard: "%s"' % msg.data)

def main(args=None):
    rclpy.init(args=args)
    minimal_subscriber = MinimalSubscriber()
    rclpy.spin(minimal_subscriber)

    # Destroy the node explicitly
    # (optional - otherwise it will be done automatically
    # when the garbage collector destroys the node object)
    minimal_subscriber.destroy_node()
    rclpy.shutdown()

if __name__ == '__main__':
    main()

And the error obtained when running the node:
mankoch@mk-ubuntu:~$ ros2 run custom_ctrl minimal_subscriber
Traceback (most recent call last):
  File "/home/mankoch/project_ws/install/custom_ctrl/lib/custom_ctrl/minimal_subscriber", line 11, in <module>
    load_entry_point('custom-ctrl==0.0.0', 'console_scripts', 'minimal_subscriber')()
  File "/home/mankoch/project_ws/install/custom_ctrl/lib/python3.8/site-packages/custom_ctrl/minimal_subscriber.py", line 38, in main
    minimal_subscriber = MinimalSubscriber()
  File "/home/mankoch/project_ws/install/custom_ctrl/lib/python3.8/site-packages/custom_ctrl/minimal_subscriber.py", line 21, in __init__
    self.bot = InterbotixManipulatorXS(
  File "/home/mankoch/interbotix_ws/install/interbotix_xs_modules/lib/python3.8/site-packages/interbotix_xs_modules/xs_robot/arm.py", line 123, in __init__
    self.core = InterbotixRobotXSCore(
  File "/home/mankoch/interbotix_ws/install/interbotix_xs_modules/lib/python3.8/site-packages/interbotix_xs_modules/xs_robot/core.py", line 91, in __init__
    rclpy.init(args=args)
  File "/opt/ros/galactic/lib/python3.8/site-packages/rclpy/__init__.py", line 76, in init
    return context.init(args, domain_id=domain_id)
  File "/opt/ros/galactic/lib/python3.8/site-packages/rclpy/context.py", line 70, in init
    raise RuntimeError
RuntimeError

Is there a way of using the API this way?
Robot Model
wx250s
Operating System
Ubuntu 20.04
ROS Version
ROS2 Galactic
Anything Else
No response

I assume this is because, in creating the InterbotixManipulatorXS object, you're creating another node in the same process or context. To get around this, take a look at the xsarm_robot script for an example of how to do this. Basically, you would sub-class the InterbotixManipulatorXS class and use its core (the actual node) to create subs/pubs, use parameters, get the logger, etc.

Ah this makes sense. Thanks for the quick answer.


Extension host not responsive

Extension Name: vscode-icons
Extension Version: 7.27.0
OS Version: Windows_NT x64 10.0.15063
VSCode version: 1.28.0

We have written the needed data into your clipboard. Please paste:

Please read https://code.visualstudio.com/updates/v1_28#_extension-host-unresponsive


Youtube Stories

Checklist

[x] I'm reporting a site feature request
[x] I've verified that I'm running youtube-dl version 2020.02.16
[x] I've searched the bugtracker for similar site feature requests including closed ones

Description

Do youtube-dl support downloading youtube stories? if no is there any plans to support it? im planning to create web app to archive youtube stories similar to isdb.pw for instagram.

why closed, what information needed i should provide to make it complete? youtube-dl seems to support instagram stories but not youtube stories add support for youtube stories


How does NTVS compare with Visual Studio Code?

Watching Build I saw https://code.visualstudio.com/ launched and wondered what the advantages of each is? Certainly VS + NTVS offers a lot more functionality. But what if just deving a node based HTML app / website?

Good question.
Right now it's tough to really provide much guidance because it's only day 2, and we're genuinely interested in listening to user feedback so that we can learn how to best improve the overall Node.js dev experience going forward.
The advantages of NTVS are - as you mentioned - the feature-set and maturity of the product. From a quick glance... with VS, you're going to get more advanced debugging (conditionals, remote debugging, etc), unit testing, cloud integration, more semantically-correct IntelliSense for JavaScript using the NTVS static analysis engine (I believe VSCode will just show you all identifiers unless you're using TypeScript), profiling, all the awesome VS extensions already available (e.g. web essentials, package intellisense, task runner explorer, cool IoT stuff, etc.), starter project templates, npm integration, interactive window...
On the other hand, VSCode is cross-platform, super  lightweight, has a file/folder-based project system, code actions (lightbulbs), more seamless switching between client-side and server-side editing experiences, and can potentially evolve more quickly since it's being built from the ground up and isn't limited to long-established VS-isms.
So ultimately... if VSCode works for you, that's awesome! If NTVS works for you, also awesome! If you want to use both, but for different purposes... you get where I'm going. :smiley: I personally suggest is playing around with VSCode now, and if you like something in VSCode that's not in NTVS or vice versa, let us know.

Thanks! A great answer.
From some of the comments during /build it seems Code is focussed more on the tight edit/debug loop though you can add commands to it. VS Enterprise and to a lesser extent Pro address the big picture. VS is great and now there is community it is usable by open source projects. I've not yet decided if VSCode + command line build is the way to good for me with VS for the tough debugs etc.
I think you are correct about intellisense support - they talked about levels of support for different languages. I'm not ready for typescript just yet. :)
PS Am going to try Vorlon too for client debug
Will certainly let you know of any features requests etc
BTW I just updated to VS 2015 RC and can't find NTVS - is it not available yet? But I have other problems as windows 10 tools won't install either. Might have to roll back to VS2013.

This recording of the #build2015 presentation explains more.


__resolve_ckpt_dir does not work with ddp

Hi @tshu-w ,
at first, thank you very much for providing and maintaining this repo!
I just noticed, that the __resolve_ckpt_dir function brakes when used in conjunction with ddp.
I am on c65989fcc32ee1d9e41b1f0f84a16782a660bd17 and created the environment with:
mamba env create -n lt -f environment.yaml and just tried:
./run fit -c ./configs/mnist.yaml -c ./configs/presets/ddp.yaml -c ./configs/presets/debugger.yaml
Error message
...
  File "/home/jwkuenzel/miniconda3/envs/lt/lib/python3.10/site-packages/lightning/pytorch/trainer/call.py", line 190, in _call_callback_hooks
    fn(trainer, trainer.lightning_module, *args, **kwargs)
  File "/home/jwkuenzel/miniconda3/envs/lt/lib/python3.10/site-packages/lightning/pytorch/callbacks/model_checkpoint.py", line 257, in setup
    dirpath = self.__resolve_ckpt_dir(trainer)
  File "/home/jwkuenzel/projects/lightning-template/src/utils/loggers.py", line 33, in __resolve_ckpt_dir
    ckpt_path = os.path.join(trainer.log_dir, "checkpoints")
  File "/home/jwkuenzel/miniconda3/envs/lt/lib/python3.10/posixpath.py", line 76, in join
    a = os.fspath(a)
    a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType
TypeError: expected str, bytes or os.PathLike object, not NoneType
    a = os.fspath(a)
    a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType
TypeError: expected str, bytes or os.PathLike object, not NoneType

Confirmed this issue. It did not occur when I was using Lightning 1.9.x. I will check and resolve the problem as soon as possible ;)
For your reference, the HACK of __resolve_ckpt_dir is to solve this issue https://github.com/Lightning-AI/lightning/issues/14188. I also tried to provide a PR https://github.com/Lightning-AI/lightning/pull/14640, but it is currently in pending status.
I'm glad you found this repo and gave it a try. After all, my README and tests are not very complete.

Thank you very much!
I would love to see https://github.com/Lightning-AI/lightning/pull/14640 being merged into lightning. I think this would be a valuable addition.
Originally, I found your repo while browsing the pl issues, because I tried to integrate wandb into my workflow. I just saw that you removed wandb. May I ask you why?

I have been using wandb before, which is also very convenient. However, I found that the webpage would be a bit slow when there are many experiments. Recently, I want to try using AimStack as a replacement.
如果你想在我的 Template 中使用 Wandb，你需要在 Logger 中添加类似如下的代码，我不小心在整理代码时将记录删除了
@property
def WandbLogger_log_dir(self) -> str:
    if hasattr(self, "_log_dir"):
        return self._log_dir

    save_dir = self._save_dir
    name = self.experiment.name
    version = self.experiment.id
    if all(isinstance(x, str) for x in (save_dir, name, version)):
        self._log_dir = os.path.join(save_dir, name, version)
        return self._log_dir

WandbLogger.log_dir = WandbLogger_log_dir

It should be fixed by https://github.com/tshu-w/lightning-template/commit/f37f1e461d08a862059f840a3b6894a67fc8dba6


Fix JSON error handling

Fix to prevent KeyError on 'timeseries'.
If requested symbol is incorrect/null, Yahoo Finance API returns this response :
{'finance': {'result': None, 'error': {'code': 'Not Found', 'description': 'HTTP 404 Not Found'}}}

Hence raising a KeyError exception instead of the YFinanceException one, with an explicit error message.
You can re-create the case this PR fixes by trying an incorrect ISIN code, e.g. yf.Ticker("FR0000000000").info

Rebase to dev, is easy #1084

Rebase to dev, is easy #1084

Thanks, done :)

And squash commits #1084 - unnecessarily long commit log


LODF radial line fix

Allows for LODF calculations with radial lines.
Also added test for LODF calculation with radial lines.
fixes #165

Instead of using -1 to substitute for NaN use nothing. Julia has a pretty good interface to handle Arrays with missing values.

But in this case, replacing where MATPOWER places NaN and -Inf, with 0.0 and -1.0 is correct since is is reflecting the proportion of a radial line's flow that gets distributed to other lines (0.0) and to itself (-1.0) when the radial line is removed from service.
Right?