JDisc injects null config objects

When a config parameter with no default value is not given a value in services.xml, the config system throws an exception with info on how to fix the issue. JDisc should propagate this exception, but is instead injecting a null config object. Of course, this causes a NullPointerException when component code uses the injected config object.

[2017-10-02 07:20:51.231] WARNING : container2       Container.com.yahoo.jdisc.core.ApplicationLoader
    Exception thrown while activating application.
    exception=
    java.lang.RuntimeException: Error constructing ‘com.yahoo.foo.bar.MyClass’
    Caused by: java.lang.NullPointerException
    at com.yahoo.foo.bar.MyClass.<init>(MyClass.java:36)
    at ============= Dependency Injection =============.newInstance(Unknown Source)


Refactor key management

Supersedes #3213
This PR is turning into a major refactoring over the crypto and key management system, which seems both long overdue and somewhat inescapable.
I'll want to integrate the general changes in (but not merge) #3034 and possibly #3193 together with #3137.
The main issues that this PR aims to solve are:

Independent subsystems that happened to use the same crypto had to share the same session keys (and key-store division).
Assumption that the twin consensus systems of block production (Aura/Babe) and finality (Grandpa) each required keys (which dirtied a lot of Substrate, placing APIs like fn fg_authority_key() all the way through the codebase). Though they do now, they won't forever and it shouldn't be an assumption that we bake in to internal APIs.
Keys passed in through CLI are sticky; their existence enabled the consensus system workers and force them to use these keys alone. Rather whatever key in the key store that happens to be an authority should be used at any given time.

TODO:

Refactor ImOnline:

[x] Should get its own key and not piggy-back on other session keys.

Dynamic key selection:

[x] Enable Babe and Grandpa to be able to determine current authority key (if there is one).
[ ] Dynamically select the correct authoring key to use in each subsystem.
[ ] Use --validator to enable active validation process; remove any validator key-management stuff from the CLI (--key). (A second --worker arg can enable off-chain workers.)
[ ] Remove all static-key selection code (--key all the way down to key-choice).
[ ] Remove authority_key/fg_authority_key APIs completely.
[ ] Make --password work (should accept a manually-entered password and use it for everything in the keystore).
[ ] Introduce RPCs for session rotation, using code from #3034 if it makes sense. There should be a single RPC author_rotateKeys which creates a new set of session keys, saves them to the key-store and returns their public keys, so that a rotation-transaction can be constructed. There should be no pollution of the APIs with session keys: the rotation API should be wholly independent of each of the individual keys. This may mean new APIs in the OpaqueKeys trait.

Refactor Client:

Create a basic Client trait that provides all the basic APIs and has Block as an associated item. Probably a separate PR.

I would also like to solve the fact that service construction is highly monolithic and polluted by consensus-module-specific code. Really it should just be a case of specifying the block production and finality systems and letting it do the rest. Code for set-up, take-down, RPC and key-store integration should be provided through traits that the consensus modules (Babe, Aura, Grandpa and eventually Rho and PoW) implement within their module's scope. There shouldn't be any consensus-module-specific logic dirtying up service.rs.

Refactor service:

Move out any consensus-module-specific code, and hardwired assumptions that they each have "authority keys", from service.rs into the respective consensus modules. Provide a single API endpoint (i.e. a type that implements some ConsensusSystem trait and have that as the only resource that service needs know of.  Probably a separate PR.

This also adds:

Add Call type to extensible transactions.
Add swap to allow two storage items in the same map to be swapped.

I would also like to solve the fact that service construction is highly monolithic and polluted by consensus-module-specific code. Really it should just be a case of specifying the block production and finality systems and letting it do the rest. Code for set-up, take-down, RPC and key-store integration should be provided through traits that the consensus modules (Babe, Aura, Grandpa and eventually Rho and PoW) implement within their module's scope. There shouldn't be any consensus-module-specific logic dirtying up service.rs.

Let's defer this to another PR - this isn't an API decision that should be rushed.
My ideal solution would just be to encapsulate everything within a fn initialize exposed by every crate by convention. If a trait is really necessary,
trait Initialize {
    type Args;
    type Background: Future<Item = ()> + Send + Sync + 'static;

    fn initialize(args: Args) -> Self::Background;
}

@rphmeier Yup I'm happy with this model.

Reviewed it all (though much of it is my code anyway). Looks good except for the comments.


cannot pass plaintext password to rancher HA config file

Rancher Version:
1.1.0
Docker Version:
1.11.2~xenial (from docker repos)
OS and where are the hosts located? (cloud, bare metal, etc):
AWS
Setup Details: (single node rancher vs. HA rancher, internal DB vs. external DB)
HA rancher
Environment Type: (Cattle/Kubernetes/Swarm/Mesos)
Cattle
Steps to Reproduce:
Attempt to stand up rancher-HA without using the UI:
Take the ha-setup.sh script and before running swap out the encrypted password string (looks like: ef9d168kjhf09asdf6dd15b25f6ae718:laskdfjasdfsf09d8fasdf09sd7fas8d7g0sad9g87as0dgga8g) with a plain text password.
Then uncomment the export CATTLE_HA_ENABLED=true line.
Results:
The rancher server containers cannot connect to the database.
In order to connect you must uncomment the encryption key. Which I believe means communications cross server-cluster are not encrypted? (please correct me if I am wrong).
Expected:
It would be nice to be able to tell rancher that the db password you are providing is not encrypted and that rancher shouldn't try and decrypt the string.
Maybe a flag like CATTLE_DB_CATTLE_PASSWORD_PLAINTEXT=true
It looks like this could be processed around line 140 of https://github.com/rancher/cattle/blob/master/code/iaas/api-logic/src/main/java/io/cattle/platform/iaas/api/manager/HaConfigManager.java
Browsing through the rancher code base is a little tricky though. If someone is willing to help point me to the right location I'm happy to put in a PR.

whoops, this should be under cattle.

@cpoole This is the correct repo to file this. :)
I've added this as an enhancement request.

With the new HA in 1.2, this is no longer applicable as we've refactored HA to be much simpler and just run additional arguments with the rancher-server command.
The config file no longer exists.


fix: type incompatibility with Webpack plugins[]

Follow up from #13 - a small mistake from my side, sorry!
With<EMAIL_ADDRESS>I received the following error within my webpack.config.ts
跟进 #13 - 我犯了一个小错误，抱歉！
在使用<EMAIL_ADDRESS>时，我的 webpack.config.ts 中出现了以下错误

With this PR:
有了这次公关：

@afc163 any way to get this merged? Follow-up from #13


Fixes for KVM, Cloud Hypervisor & libvirt tests

Skip Cloud Hypervisor, libvirt, KVM tests for distributions other than
Ubuntu and CBLMariner. Lots of failures in other distros leading to
exceedingly high failure rate. Other distros can be enabled after
fixing the issues seen in those distros.
Increase timeout for Cloud Hypervisor tests since timeout failures
were seen during some runs.
In KVM unit tests, if the tool is killed due to timeout, we don't
get any stdout. In this case copy all log files from the logs dir.

Signed-off-by: Anirudh Rayabharam<EMAIL_ADDRESS>

@anirudhrb There are multiple different issues fixed by this PR. Can you please make a separate commit for each of them?


Setting Gain / Offset / Gain may reset offset

Keith think's there is a scenario where changing gain, offset, gain, etc will cause the offset to reset to 0.   He does not have exact steps to reproduce.
Try to reproduce and determine if there is an issue.

Was unable to reproduce the issue. I'm closing the issue now, but it should be reopened if this crops up again.


NaN or Inf found in input tensor

I get the problem 'NaN or Inf found in input tensor' when training SiamRPN in the dataset that you give.

I get the problem 'NaN or Inf found in input tensor' when training SiamRPN in the dataset that you give.

Hi~ Thanks your interest on our work. I didn't meet your problem. Could you debug the label of data? It seems error happens with log function.

Thank you! I get RuntimeWarning: invaild value encountered in log
delta[2]=np.log(tw/(w+eps)+eps)
delta[3]=np.log(th/(h+eps)+eps)

Thank you! I get RuntimeWarning: invaild value encountered in log
delta[2]=np.log(tw/(w+eps)+eps)
delta[3]=np.log(th/(h+eps)+eps)

Glad that I can help you. If you have other questions, pls email me<EMAIL_ADDRESS>

Thank you! I get RuntimeWarning: invaild value encountered in log
delta[2]=np.log(tw/(w+eps)+eps)
delta[3]=np.log(th/(h+eps)+eps)

I get the problem 'NaN or Inf found in input tensor' when training SiamRPN in the dataset that you give.

hi~I meet the same problem~could u help me for how to modify these two equations～thank u so much～

Thank you! I get RuntimeWarning: invaild value encountered in log
delta[2]=np.log(tw/(w+eps)+eps)
delta[3]=np.log(th/(h+eps)+eps)

hi .I meet the same problem. could u help me for how to modify these two equations～thank u so much～

This error still occurs. How to fix it?


how to use this code to create distributed system

./start_demo.sh can create cluster on only one computer. If i want to create distributed hadoop system using this code on more than one computer, What should I do.

Hello. Pls try to use Docker Swarm which only requires little modification of Docker Compose.


rebuild with cxx

pytensor 2.12.3
Destination channel: Default
Links

PKG-6364
dev_url:        https://github.com/pymc-devs/pytensor//tree/rel-2.12.3
conda_forge:    None
pypi:           https://pypi.org/project/pytensor/2.23.0
pypi inspector: https://inspector.pypi.io/project/pytensor/2.12.3

Related PRs

https://github.com/AnacondaRecipes/causalimpact-feedstock/pull/1

Explanation of changes:

compiler('c') and compiler('cxx') was added in run to support the compilation of code at runtime
added a flag preventing a known issue with macOS clang++ throwing errors when narrowing types in implicit casts

Linter check found the following problems:
ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_14dt0jpjct/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:80: invalid_url: https://pytensor.readthedocs.io/en/latest/ : Not reachable: 403

===== ERRORS =====

clone/recipe/meta.yaml:45: compilers_must_be_in_build: The recipe requests a compiler in a section other than build
clone/recipe/meta.yaml:44: compilers_must_be_in_build: The recipe requests a compiler in a section other than build
===== Final Report: =====
2 Errors and 1 Warning were found

Linter check found the following problems:
ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_a7f0ly7wxn/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:82: invalid_url: https://pytensor.readthedocs.io/en/latest/ : Not reachable: 403

===== ERRORS =====

clone/recipe/meta.yaml:46: compilers_must_be_in_build: The recipe requests a compiler in a section other than build
clone/recipe/meta.yaml:47: compilers_must_be_in_build: The recipe requests a compiler in a section other than build
===== Final Report: =====
2 Errors and 1 Warning were found

Linter check found the following problems:
ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_dbzhn_pcof/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:84: invalid_url: https://pytensor.readthedocs.io/en/latest/ : Not reachable: 403

===== ERRORS =====

clone/recipe/meta.yaml:46: compilers_must_be_in_build: The recipe requests a compiler in a section other than build
clone/recipe/meta.yaml:47: compilers_must_be_in_build: The recipe requests a compiler in a section other than build
===== Final Report: =====
2 Errors and 1 Warning were found

Linter check found the following problems:
ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_c1q5hobv_n/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:84: invalid_url: https://pytensor.readthedocs.io/en/latest/ : Not reachable: 403

===== ERRORS =====

clone/recipe/meta.yaml:47: compilers_must_be_in_build: The recipe requests a compiler in a section other than build
clone/recipe/meta.yaml:46: compilers_must_be_in_build: The recipe requests a compiler in a section other than build
===== Final Report: =====
2 Errors and 1 Warning were found

Linter check found the following problems:
ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_53qpke5cff/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:84: invalid_url: https://pytensor.readthedocs.io/en/latest/ : Not reachable: 403

===== ERRORS =====

clone/recipe/meta.yaml:47: compilers_must_be_in_build: The recipe requests a compiler in a section other than build
clone/recipe/meta.yaml:46: compilers_must_be_in_build: The recipe requests a compiler in a section other than build
===== Final Report: =====
2 Errors and 1 Warning were found

Linter check found the following problems:
ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_80xr7iwffv/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:84: invalid_url: https://pytensor.readthedocs.io/en/latest/ : Not reachable: 403

===== ERRORS =====

clone/recipe/meta.yaml:47: compilers_must_be_in_build: The recipe requests a compiler in a section other than build
clone/recipe/meta.yaml:46: compilers_must_be_in_build: The recipe requests a compiler in a section other than build
===== Final Report: =====
2 Errors and 1 Warning were found

Linter check found the following problems:
ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_1cz__rjtel/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:84: invalid_url: https://pytensor.readthedocs.io/en/latest/ : Not reachable: 403

===== ERRORS =====

clone/recipe/meta.yaml:46: compilers_must_be_in_build: The recipe requests a compiler in a section other than build
clone/recipe/meta.yaml:47: compilers_must_be_in_build: The recipe requests a compiler in a section other than build
===== Final Report: =====
2 Errors and 1 Warning were found


node unable to create or dilute batch

⚠ Support requests in an issue-format will be closed immediately. For support, go to Swarm's Discord.
Context

Summary
For nodes 0 and 4 in our dev gateway cluster, create and dilute batch requests never complete.
Observations

The send transaction request to the xdai backend returns but the watch pending transaction never returns.
The backed never makes the call or fails to make the call to the smart contract as observed by monitoring the postage contract events on the chain
increasing the gas price by 10x does not change the behavior
trying multiple endpoints did not fix the issue

The problem is this: in the transactionMonitor.checkPending method calls to the blockchain backend NonceAt always return the same number on any block it receives (it's the number 28 on node bee-0-0). Different swap-endpoints were used (e.g.: getblock.io), but without success. The go-ethereum client, through which we make blockchain calls, was upgraded to the latest version, but that didn't help either. Overwriting the nonce returned by the call in the code to the latest one also didn't help because the TransactionReceipt blockchain call has returned not found error.

On the node bee-0-0 the nonce was reset by https://github.com/ethersphere/nonce-reset and the pending transactions were removed from the localstore.


Homophonic substitution

Homophonic substitution is a type of encryption where each plaintext letter is replaced by one or more ciphertext symbols (usually numbers or letters) selected at random from a pool of possible symbols. The objective of using multiple symbols is to increase the complexity of the ciphertext and make it more resistant to frequency analysis attacks.
Describe the solution you'd like
Not a bug but I want to add codes in C, C++, python, and java.

Assigned!
@MrKoshens : C, C++, Python, Java


Appropriate for use with libmysqld?

Howdy!
Before I were to get started attempting to add support for embedded mysql; is there any reason this wouldn't work with rust-mysql-simple?
And barring any technical problems; what about licensing if I wanted to link statically?

Hi!
TIL that libmysqld exists 😅

is there any reason this wouldn't work with rust-mysql-simple?

If you can't connect to it via TCP or socket, then it won't work. I am not sure what you need to do to make it work because i know nothing about libmysld.

And barring any technical problems; what about licensing if I wanted to link statically?

Current license is MIT. It permits static linking AFAIK.

just a FYI for @photex (and others if interested) -- libmysqld (embedded MySQL) is going to be removed in MySQL 8.0: http://mysqlserverteam.com/mysql-8-0-retiring-support-for-libmysqld/
(And being deprecated for the 5.7 series.) Probably not worth building anything on top of it / for use with it any more. Cheers.


Service google_say interfere with Soundtouch component Presets option?

Home Assistant release (hass --version):
0.47.1
Python release (python3 --version):
Python 3.4.2
Component/platform:
tts/Google
media_player/soundtouch
Description of problem:
Runnig service google_say is cousing an error:
2017-06-30 22:44:00 WARNING (Thread-1) [homeassistant.components.media_player.soundtouch] Unable to find preset with id http://<IP_ADDRESS>:8123/api/tts_proxy/9e75318f3a91a37407aa85e28d106122f829ce8d_en_-_google.mp3
That mp3 file is playable by visiting generated URL. I am not using
Expected:
Generated voice output play through SoundTouch speaker.
Problem-relevant configuration.yaml entries and steps to reproduce:
  - platform: soundtouch
    host: <IP_ADDRESS>
    port: 8090
    name: Soundtouch

Call google_say service using Developer Tools --> Services
or
Call google_say service within Automation

Additional info:
Soundtouch component is working without any issue except this one.

Hi,
I'm the author of the Soundtouch component and to my knowledge, these devices are not able to play a file from a simple URL. It can only play music from:

Streaming services (Spotify, Deezer, etc ...)
What they called local music (Ithunes and Windows media player only)
DLNA

It's a feature I would like to be able to implement but I can't right now. But to confirm I'll take a look to the latest API documentation to check if something has changed or if I miss something. Playing an mp3 file from an URL seems to be a quite basic feature.
A dirty workaround (who will not work without HA Soundtouch component update) can be to provide the file with and embedded DLNA server instead of an HTTP(S) server. But at this time, the HA Soundtouch component only support playing presets. Not DLNA or Ithunes devices for example.
I'll do some tests and report feedback.

Oh, I see.
Thank you for your time.

The Soundtouch has been such a disappointing purchase for me. From issues like the above, to the automatic shut off to even when on aux cable to even the app. I agree, playing am MP3 from a simple url seems to be a basic feature but when I tried picotts + Soundtouch, nothing.
The soundtouch is now stupidly expensive paper weight.

Ok, after some tests, I have half a good news.
I can confirm the Soundtouch API doesn't support playing an URL.
Nevertheless, the good news is the Soundtouch devices support DLNA and we are able to send a DLNA message in order to ask the device to play an HTTP URL.
The bad news is the URL has to be in HTTP and not HTTPS. I don't know if it is a limitation of the device or  a limitation of the DLNA protocol (or a limitation in my understanding of the DLNA protocol :) ).
I did some tests and it's working fine but I'll need some time in order to implement a working version for Home Assistant.
@misosec it should be working out of the box for you configuration because it seems your are not using SSL but in my case I think I'll have to add an Nginx reverse proxy instead of using HA in HTTPS.
More to come soon.

@CharlesBlonde Half a good news is much more better than no good news! :-)
I am not exposing my HASS to Internet yet so I am not using SSL.
Thank you for your effort! Maybe it wont be so useless device afterall... :-)

So here is an answer from SoundTouch API team:

This is not currently possible; however, an API to do exactly what you are requesting is in the works, but it is still in private Beta and not yet widely available. We are hoping for broader availability for later this summer; until then unfortunately there’s likely not much more we can do to help.

Good news, right?

Yes, good news!
I send an email to the support too but I haven't any answers yet.
Another good news: using DLNA, I was able to do exactly what you wanted to do this morning: playing a Google TTS message from Home Assistant. I need to do more tests but I think I should be able to submit a PR this weekend.

That's great!!

@CharlesBlonde I am really looking forward to this! I would love another usable speaker in the house!


Update Lab07_Deploy_Solution.md

UI update - screenshot updates to match interface (and also so I don't have to renumber the rest of the lab)
Module: 00
Lab/Demo: 00
Fixes # .
Changes proposed in this pull request:

Submitted by clifford-smith on behalf of MOC Labs Review.


loss=None and no logs when automatic_optimization=False

🐛 Bug

I think there is a bug when automatic_optimization=False. The loss=None (https://github.com/PyTorchLightning/pytorch-lightning/blob/72f19768c828b734d8565ffef7b78fb9a57ba847/pytorch_lightning/trainer/training_loop.py#L336) and this means that all the checkpoint_callbacks cannot work. There is no way to set the loss.
I also add that in the documentation (https://pytorch-lightning.readthedocs.io/en/latest/optimizers.html#manual-optimization) the training_step does not return anything. However, if it does not return anything, all the logs do not work because of: https://github.com/PyTorchLightning/pytorch-lightning/blob/72f19768c828b734d8565ffef7b78fb9a57ba847/pytorch_lightning/trainer/training_loop.py#L681.
Expected behavior
There should be a way to set the loss, and the behaviour when nothing is returned in training_step should be clear.
Environment
* CUDA:
        - GPU:
                - GeForce RTX 2080 Ti
                - GeForce RTX 2080 Ti
        - available:         True
        - version:           10.2
* Packages:
        - numpy:             1.19.1
        - pyTorch_debug:     False
        - pyTorch_version:   1.6.0
        - pytorch-lightning: 1.0.2
        - tqdm:              4.48.2
* System:
        - OS:                Linux
        - architecture:
                - 64bit
                - ELF
        - processor:         x86_64
        - python:            3.6.9
        - version:           #26-Ubuntu SMP Mon Jun 24 09:32:08 UTC 2019

alsp https://github.com/PyTorchLightning/pytorch-lightning/issues/4295

Thanks @denadai2! I'll modify the doc example to report loss value, if you care about logging your loss values (which in most cases is yes!)

@SeanNaren actually, it's not only about the doc. It's also that if the loss is nan, pytorch lightning skips to write ALL the logged variables because of: https://github.com/PyTorchLightning/pytorch-lightning/blob/72f19768c828b734d8565ffef7b78fb9a57ba847/pytorch_lightning/trainer/training_loop.py#L681

To be more clear, this step is skipped: https://github.com/PyTorchLightning/pytorch-lightning/blob/72f19768c828b734d8565ffef7b78fb9a57ba847/pytorch_lightning/trainer/training_loop.py#L687

Thanks @denadai2 just to confirm the logic is as below:
You've overridden the training step and set automatic_optimization to false.
Your training_step function logs metrics now using self.log, but never returns a loss (you may have multiple losses or something)
You would like other metrics aside from the loss to be logged in training, but because of this line:
https://github.com/PyTorchLightning/pytorch-lightning/blob/f40d08679d31ef6e705f1e0e5a66473c817325e1/pytorch_lightning/trainer/training_loop.py#L721
We never get to this part of the code:
https://github.com/PyTorchLightning/pytorch-lightning/blob/f40d08679d31ef6e705f1e0e5a66473c817325e1/pytorch_lightning/trainer/training_loop.py#L725-L730

Currently blocked on https://github.com/PyTorchLightning/pytorch-lightning/pull/4495

Hi
I'm not sure if my problem is related to this bug it seems so.
because I wanted to do backward and step in the middle of training_step so I set the automatic_optimization to False. I'm logging in the training_step and validation_step as follows:
def training_step(self, batch, batch_idx):
    ...
   self.log('train_loss', loss.view(1,).item(), prog_bar=True)
   self.log('train_ci', train_cindex, prog_bar=True)
   return loss

def validation_step(self, batch, batch_idx):
   ...
   self.log('val_loss', eval_loss.view(1,).item(), prog_bar=True)
   self.log('val_ci'  , eval_cindex, prog_bar=True)
   return eval_loss

It works quite well until it reaches a specific epoch and throws this error (the batch size and the dataset size are the same):
Epoch 49:  50%|██████████████████                  | 1/2 [00:00<00:00,  2.34it/s, loss=nan, v_num=54, train_loss=3.51, train_ci=0.938, val_loss=3.58, val_ci=0.689]Traceback (most recent call last):
  File "trainer_main.py", line 45, in <module>
    trainer.fit(model, tcga_dm)
  File "/home/asalimi/.conda/envs/mytorch/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 440, in fit
    results = self.accelerator_backend.train()
  File "/home/asalimi/.conda/envs/mytorch/lib/python3.8/site-packages/pytorch_lightning/accelerators/gpu_accelerator.py", line 54, in train
    results = self.train_or_test()
  File "/home/asalimi/.conda/envs/mytorch/lib/python3.8/site-packages/pytorch_lightning/accelerators/accelerator.py", line 68, in train_or_test
    results = self.trainer.train()
  File "/home/asalimi/.conda/envs/mytorch/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 485, in train
    self.train_loop.run_training_epoch()
  File "/home/asalimi/.conda/envs/mytorch/lib/python3.8/site-packages/pytorch_lightning/trainer/training_loop.py", line 565, in run_training_epoch
    self.trainer.logger_connector.log_train_step_metrics(batch_output)
  File "/home/asalimi/.conda/envs/mytorch/lib/python3.8/site-packages/pytorch_lightning/trainer/connectors/logger_connector.py", line 536, in log_train_step_metrics
    self.log_metrics(metrics, grad_norm_dic)
  File "/home/asalimi/.conda/envs/mytorch/lib/python3.8/site-packages/pytorch_lightning/trainer/connectors/logger_connector.py", line 79, in log_metrics
    metrics.update(grad_norm_dic)
TypeError: 'NoneType' object is not iterable
Exception ignored in: <function tqdm.__del__ at 0x7f34fe50eca0>
Traceback (most recent call last):
  File "/home/asalimi/.conda/envs/mytorch/lib/python3.8/site-packages/tqdm/std.py", line 1122, in __del__
  File "/home/asalimi/.conda/envs/mytorch/lib/python3.8/site-packages/tqdm/std.py", line 1335, in close
  File "/home/asalimi/.conda/envs/mytorch/lib/python3.8/site-packages/tqdm/std.py", line 1514, in display
  File "/home/asalimi/.conda/envs/mytorch/lib/python3.8/site-packages/tqdm/std.py", line 1125, in __repr__
  File "/home/asalimi/.conda/envs/mytorch/lib/python3.8/site-packages/tqdm/std.py", line 1475, in format_dict
TypeError: cannot unpack non-iterable NoneType object

I checked the loss and eval_loss to not be None and they are not None. it seems the error happens right after the return loss.
also I think a documentation is needed to specify how to log and return values in training_step and validation_step. this was a bit confusing for me.

after some debugging I solved the Error by changing the training_step to this:
def training_step(self, batch, batch_idx):
    ...
   self.log('loss', loss.view(1,).item(), prog_bar=True, logger=True)
   self.log('train_ci', train_cindex, prog_bar=True, logger=True)

However now although I set the logger to True, the loss and train_ci aren't logged in the tensorboard. and also I cannot see them in the progress bar.

@asalimih try returning the loss at the end of training_step. This temporanly solves the bug I pointed out.

@asalimih try returning the loss at the end of training_step. This temporanly solves the bug I pointed out.

@denadai2 the first error I explained here had the return loss line. after I removed the line it didn't throw error but now metrics wouldn't be logged.

We're currently in a deep dive into automatic_optimization=False behaviour after a lot of different bugs have appeared in different edge case situations. Please have a look at #4485
The logging changes will hopefully make logs a little clearer, but in terms of actual functionality for automatic_optimization we're in the process of debugging.
@asalimih could you reproduce the bug with this? https://github.com/PyTorchLightning/pytorch-lightning/blob/master/pl_examples/bug_report_model.py
@denadai2 just finishing the final logging refactor here: https://github.com/PyTorchLightning/pytorch-lightning/pull/4552
Once we figure out some of the functionality issues with automatic_optimization, i'll circle back here.

@tchaton


docs: add note on default import path

Following the "Usage" section in the docs, I tried to use this plugin and spent like half an hour trying to figure out why it's not working.
At first glance it looked very simple to use. Little I knew that it actually only import components from a specific path set by dirs option. Which I had to change according to my project structure.
So I added a little note so new users can have a heads up about the default path.

Can we move the note down after the code snippets and above ## TypeScript? Thanks

Done!


_TensorDict.permute(...) operation (+ transpose)

The _TensorDict parent class supports a bunch of tensor operations such as view and unsqueeze.
Modifications of those tensordicts will result in changes in the original tensordict (provided they don't violate the tensordict specs).
unsqueeze:
>>> t = TensorDict({'a': torch.randn(3, 4)}, [3])
>>> t.unsqueeze(0).set('b', torch.randn(1, 3, 4));
>>> print(t)
TensorDict(
    fields={
        a: Tensor(torch.Size([3, 4]), dtype=torch.float32),
        b: Tensor(torch.Size([3, 4]), dtype=torch.float32)},
    batch_size=torch.Size([3]),
    device=cpu,
    is_shared=False)
>>> t.unsqueeze(0).fill_('a', 0.0);
>>> print(t.get('a'))
tensor([[0., 0., 0., 0.],
        [0., 0., 0., 0.],
        [0., 0., 0., 0.]])

view:
>>> t = TensorDict({'a': torch.randn(3, 4)}, [3])
>>> t.view(-1).set('b', torch.randn(12));
>>> print(t)
TensorDict(
    fields={
        a: Tensor(torch.Size([3, 4]), dtype=torch.float32),
        b: Tensor(torch.Size([3, 4]), dtype=torch.float32)},
    batch_size=torch.Size([3]),
    device=cpu,
    is_shared=False)
>>> t.view(-1).fill_('a', 0.0);
>>> print(t.get('a'))
tensor([[0., 0., 0., 0.],
        [0., 0., 0., 0.],
        [0., 0., 0., 0.]])

A similar behaviour should be implemented for _TensorDict.permute(...). The expected behaviour would be:
view:
>>> t = TensorDict({'a': torch.randn(3, 4, 1)}, [3, 4])
>>> t.permute(1, 0).set('b', torch.randn(4, 3));
>>> print(t)
TensorDict(
    fields={
        a: Tensor(torch.Size([3, 4]), dtype=torch.float32),
        b: Tensor(torch.Size([3, 4]), dtype=torch.float32)},
    batch_size=torch.Size([3]),
    device=cpu,
    is_shared=False)
>>> t.permute(1, 0).fill_('a', 0.0);
>>> print(t.get('a'))
tensor([[[0.],
         [0.],
         [0.],
         [0.]],
        [[0.],
         [0.],
         [0.],
         [0.]],
        [[0.],
         [0.],
         [0.],
         [0.]]])

The same should work with transpose (which would permute two dimensions only).
This would require a new _CustomOpTensorDict subclass, similar to ViewedTensorDict and UnsqueezedTensorDict.

Closed by #62

closed as per #99
thanks @TimoStoff


Issue moving to React Native 0.60.x

It's been a slow and tedious effort for the react native update, seems that there is a roadblock with the ios pod setup.
package.json
{
   ...
   "react-native": "^0.60.3",
   "react-native-config": "^0.11.7",
   ...
}

Podfile
target 'MyApp' do
  ...
  pod 'react-native-config', :path => '../node_modules/react-native-config'
  ...
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    targets_to_ignore = %w(React)

    if targets_to_ignore.include? target.name
      target.remove_from_project
    end

    if target.name == 'react-native-config'
      phase = target.project.new(Xcodeproj::Project::Object::PBXShellScriptBuildPhase)
      phase.shell_script = "cd ../../"\
                           " && RNC_ROOT=./node_modules/react-native-config/"\
                           " && export SYMROOT=$RNC_ROOT/ios/ReactNativeConfig"\
                           " && export BUILD_DIR=$RNC_ROOT/ios/ReactNativeConfig"\
                           " && ruby $RNC_ROOT/ios/ReactNativeConfig/BuildDotenvConfig.ruby"

      target.build_phases << phase
      target.build_phases.move(phase,0)
    end
  end
end

Build Path Headers:

$(SRCROOT)/../node_modules/react-native-config/ios/ReactNativeConfig (nonrecursive)
$(SRCROOT)/../node_modules/react-native-config/ios/** (recursive)

Error:

ld: library not found for -lReactNativeConfig
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Tried to manually react-native link, no dice.
Is anyone else seeing this?

I'm also having trouble upgrading because of this module. Manually linking didn't solve it for me either.

@bsonntag The manual link was not working here also, but after a cd android && ./gradlew clean, the command react-native run-android works again.

@marceloch2 I have no issues with Android, it's only the iOS build that is failing.

Update on my keyboard mashing.
I ended up using react-native init and then manually adding the dependencies into my app and the react-native-config issue disappeared.  I think this problem is related to stale references to linked dependencies and the root issue is not specific to react-native-config.
While it was time consuming to do brain surgery from my old to new react native project - I think for the 0.5x to 0.6x transition may be a big enough change to do it this way.

I had the same issue, but got it solved by removing the preprocessing step like it's described in the diff of this readme change: https://github.com/luggit/react-native-config/commit/1eb6ac01991210ddad2989857359a0f6ee35d734

Are there any plans to release a new version on npm with that bugfix ?

@GertjanReynaert
thanks that was the issue, just to add that you need the github master in your package.json not the npm version

I had the same issue, mine is a bit weird. It works on debug mode but not release mode (Android).
package.json
"react-native": "0.60.4",
"react-native-config": "^0.11.7"

Im using auto-linking. when I ran ENVFILE=.env.prod react-native run-android --variant=release. It did shows "Reading env from: .env.prod"
So weird!!

react-native link react-native-config
then update Pod for iOS, Gradle Sync for android. It worked for me!

Happens exactly the same to me. Did you find a solution, @edwinwong90?

Guys! is there any update for that?

I had the same issue, but got it solved by removing the preprocessing step like it's described in the diff of this readme change: 1eb6ac0

GOD... This saved me! I was stuck on this for days! Thank you for showing me how dumb I can be :)

I had the same issue, but got it solved by removing the preprocessing step like it's described in the diff of this readme change: 1eb6ac0

So do I just hit the "-" sign for all of these settings in Xcode?

Go to your project -> Build Settings -> All
Search for "preprocess"
Set Preprocess Info.plist File to Yes
Set Info.plist Preprocessor Prefix File to ${BUILD_DIR}/GeneratedInfoPlistDotEnv.h
Set Info.plist Other Preprocessor Flags to -traditional
If you don't see those settings, verify that "All" is selected at the top (instead of "Basic")

I had the same issue, but got it solved by removing the preprocessing step like it's described in the diff of this readme change: 1eb6ac0

i feel blind and stupid. can anyone link to the code changes in the diff that refer to the preprocessing step?

In my case, I was getting the same error on a semi-fresh react-native project when compiling on an Apple M1 chip.
I was able to "resolve" this by excluding the arm64 arch in my podfile. I see this as a workaround, as I don't have a good understanding of why it's failing on the Apple M1:
target 'MyProject' do
  config = use_native_modules!

  use_react_native!(:path => config["reactNativePath"])

  use_flipper!({ 'Flipper-Folly' => '2.3.0' })
  post_install do |installer|
    flipper_post_install(installer)
    installer.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
        config.build_settings['EXCLUDED_ARCHS'] = 'arm64'
        config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
      end
    end
  end
end

I'm not sure if this is the correct approach but it seems to have solved the "ld: library not found for -lReactNativeConfig" error and I can use the library without problems now.


Create snip-49.md

Hello
As I created 10 days ago this topic https://community.starknet.io/t/snip-10-introducing-privacy-preserving-transactions-on-starknet/104115
I decided to add it here too to have more visibility.
Br,
Tudor.

@abdelhamidbakhta @ArielElp @bbrandtom
https://community.starknet.io/t/snip-10-introducing-privacy-preserving-transactions-on-starknet/104115

@abdelhamidbakhta done


fix: Change Kotlin version from 1.9.10 to 1.7.22 to fix Android builds

This change fixes the issue #729
As I shared in the mentioned issue to use Kotlin 1.9.x project needs to be already on Android Gradle Plugin 8.x, which is not something that every project can already do now. Thus, I suggest to rollback Kotlin version for better compatibility like I had to do in Plus Plugins as well (see https://github.com/fluttercommunity/plus_plugins/issues/2251)

Thanks for your work @vbuberen !


Subtractor

I need to create a substractor entity for lines 253 a 254 in the file vga_ctrl.vhd.

Solved.


refactor(provider): moves login method to cordovaOauth

This will allow to add another oauth platform support (i.e. for regular browser) and to reuse the same providers for other platforms.

Thank you!


Expected behavior
Better Visible Blocking, That The User Should Be Able To Control

Fix
Cookie Disable (1st and Third Party Control), JS Disable, Improved Ad/Tracker Blocking
Let Us Control Our Browsing Experience For Once

could you provide more info about what trackers were not blocking according to that report? Thanks.

Closing as not a bug (we don't know which domain is the one not blocked by our app).
For any issue related to not blocking trackers please include more info (as the domain not being blocked). Also, FYI we use the tracker radar dataset. Feel free to open an issue there if you think any tracker domain should be added to the dataset.


bulk-crap-uninstaller: Update to v5.3, Fix autoupdate

The URL has changed slightly, as well as using ZIP format instead of 7z.
Updates URL and Autoupdate, as well as making the Bin section alphabetical.

[x] I have read the Contributing Guide.

/verify


Add set math

Things like
Superset ⊃
Subset ⊂
Does not contain ∌
etc.

Hi, should I do this?
Superset ⊃
Will it return true or false ?
for example: A= {1,2,3,4} B={1,2,3}
Therefore, A ⊃ B => true
A ⊂ B => false
A ∌ B => false

Seems right to me, go for it!
Thanks for your contributions! Your other two PRs are now released in gem 1.4.0.

Thanks! I have added these in the latest PR.


Refactor workflow share modal

We use email to share a workflow instead of name.
Refactor workflow_user_access to use an enum instead of bits.
The frontend is also refactored to be more general. Such that we can reuse it for the project and file sharing later.
The DB needs to be updated manually. A script cannot do it.

Update Apr. 17 2023: @aglinxinyuan will finish it by this week.


Persist Device Key

The Device Key list should be persistent in this way we can reboot an Android Device without any need to retap it.

Moved to android application repo.


[FLINK-2914] Add missing break Statement in ZKJobGraphStore

Any way to test for this fix?

Looks correct (and affects only logging).
Will merge this...


Add enabled prop to KeyboardAvoidingView

Hello 👋,
Thanks for this pretty extensive binding. I just noticed that the enabled prop of KeyboardAvoidingView was missing so I decided to add it.

Published as 0.66.1 :)


Add rpm measurement

RPM measurement is needed for smart activation/de-activation of optional wasted spark operation. Before this can be implemented, the other issue with disturbances from running wasted spark needs to be resolved.

Branch 'dalathegreat-rpm-test' contains prototype rpm measurement. Before this can be even considered for merging with main branch wasted spark needs to be stable.

You may want to consider using sequential ignition during cranking due to the ECU using batch injection during cranking. It may be the reason you have a fail to start sometimes when using wasted spark.

Hello, any update with RPM measurement? I tested, and detect the sequence in fine. But it will be problem if car switch on ig 2, not totally off the arduino. The program stuck in syncAchieved. After resume crank, it will fire at wrong position. If any how we can reset the loop without switch off the arduino, these will solve the issue.
Since it using interrupt, Pulsein no longer available, it will interupt the firing sequence...

Are you using wasted spark or sequential ignition mode?

Im using sequential mode.. but using waste spark also same i believed. If any way we can reset the syncAchieved back to Zero 0 after running without pressing reset button or turn off the arduino?

Yes, very easy to do! Just add a timer that starts counting if we haven't had any interrupts trigger for a time (say 2-5second), and if we haven't gotten any interrupts, set syncAchieved  == 0

Nice thank you, it work now. I used long press button code. When no pulse, CK signal will go direct HIGH for 2-3 second, and it will reset the syncAchieved. So far tested on engine simulation no random firing. It will reset and start new ignition firing when only after CP detect. Will test on real engine next week. I will update again.

If these work, we can start convert 4G63 batch injector and waste spark to sequential system ;)

@majdimohammad Cool! Do post the code if you want to! 👍 Good luck with the project!

Yes i will post the code after the test. Is anyone have sr20 waveform fullcycle.. so i can compare and count the trigger between CK and CP?

I'll dig out a waveform, unless Daniel has one handy. Basically cylinder 4 has a large window, and cly 1-3 has small windows. The large window is 12 pulses low to high, and the small window is 4 pulses low to high. There is appx 90 pulses between windows. The ECU decides where in the cyl windows to fire the ignition.

Hi guys. Is it possible to run this on different engine? Like honda d15y. Thank you

No, the sr20 and the d15 use different methods of engine position tracking. A majority of the Honda's use a hall sensor on the crank to track engine position. The issue being is a variable reluctance sensor is needed to convert the hall signal to a logic signal.

Oh i see. How sad. 😥 anyways thanks for your fast reply.. maybe i should try speeduino instead. Thnx again. Cheers👍

I'll dig out a waveform, unless Daniel has one handy. Basically cylinder 4 has a large window, and cly 1-3 has small windows. The large window is 12 pulses low to high, and the small window is 4 pulses low to high. There is appx 90 pulses between windows. The ECU decides where in the cyl windows to fire the ignition.
An oscilloscope is really helpful in this situation.

Yes, i used 8 channel hantek oscilloscope ;) without these tool, it we will never know what happen in there.
If u have a full picture of trigger disk also will help..

https://ibb.co/HnD0tS1
https://ibb.co/dpTDw04


Fix Build Warnings (part 6): Add XML comments and remove unused variables in Csharp code

Fix Build Warnings (part 6): Add XML comments and remove unused variables in the files below
Partitioner.cs, StatCounter.cs, StatusTracker.cs, JvmObjectReference.cs, SerDe.cs, DataFrame.cs, Functions.cs, MapWithStateDStream.cs, DStreamStateSample.cs, MessagePublisher.cs

Thanks Kaarthik for the merge:)


Add max copier version constraint

Since v 6 will probably include a bunch of backwards compatibility issues, we need a max copier version constraint.
By default, it must be something like <next_major_version(min_copier_version).

Replaced by #348


Responsive FAQ accordin menu

What would you like to share?
I will be creating faq according using html, css, js.
Additional information
No response

@Abirpal202049 mentor, please assign me

@Abirpal202049 Kindly assign me this Issue.

@kashyap1905 @Jaideep25-tech kindly assign me this.

Can I work on this Issue? Kindly assign me @AyushSingh22

Can you attach any screenshots for reference?

For now, I am assigning this to you. Start working !! @Sulagna-Dutta-Roy


Ability to remove services programatically

Is your feature request related to a problem? Please describe.
I would like to open Uppload multiple times on the same page using different triggers, and each trigger will have different settings as to which services are available.  When I call .use() and pass it an array of services, this often doubles-up the services so they appear multiple times.
Describe the solution you'd like
A way to remove one or more services, or better yet, reset the services so that you can start again. I am able to add new services any time, but it's not possible to remove them. So either Uppload.reset() or Uppload.remove().
Describe alternatives you've considered
There don't appear to be any, other than destroying the object and recreating it from scratch, which seems like a waste considering there's already a .updateSettings() method.
Additional context

Thank you for creating this awesome repository.

Great idea! I'll implement and release this within a couple of hours.

@sigma-technology, this is deployed in v2.6.0:
There are two new functions:

remove(slug: string): void
updatePlugins(pluginUpdateFunction: IPluginUpdateFunction): void

To remove a specific plugin (both services and effects are plugins), you can use remove:
const uppload = new Uppload();
uppload.use([new Instagram(), new Crop()]);
// Later
uppload.remove("instagram");

To update all plugins programmatically, use updatePlugins:
uppload.updatePlugins(plugins => plugins.filter(plugin => {
  plugin.name === "instagram"
}));

or like this:
uppload.updatePlugins(plugins => {
  const result = plugins.length > 4 ? [] : plugins;
  result.push(new Crop(), new Unsplash());
  return result;
});

So, if you want to remove all plugins (i.e., reset), you can do this:
uppload.updatePlugins(plugins => []);

We also make sure there are no duplicates now, so even if you add a plugin twice, it'll only be registered once. Let me know if you need anything else! :)

I've also updated the API docs: https://uppload.js.org/api

@AnandChowdhary I was just trying to find this issue because I was going to come and apologise because I just found that part in the API docs and thought I had missed it previously!
Thank you so much for the extremely fast response, this is a huge improvement.  I will get on to testing it now and let you know if I find any issues.


config(prow/config): forbid merge pull request to release-x.y.z of tidb-test repo

Why

if allow it, it may break other hotfix pull request on mysql-test job.

Ref:

https://github.com/pingcap/tidb/pull/45088 affected

Fix: https://github.com/PingCAP-QE/ci/issues/2206

/lgtm

/lgtm

/approve


Implement key mappings

A/C:

The extension defines a default keymap (matching that in Firemacs Classic)
The default keymap is installed in storage if no keymap already exists

[ ] Crummy version
[ ] Factor out constants
[ ] Factor out storage get/set API
[ ] Factor out keymap logic
[ ] Factor out explicit calls from main script

Lack of a proper module system is no fun but window should do since we're in the context of the background page here and won't be meddled with

While I'm here, I suppose I may as well:

[ ] Build the whole extension, not just the background script bundle
[ ] Make the readme useful

...it's 2am, I'll update the README tomorrow. Today.


rot13 is not only about encoding, it's also about decoding

I mean whatever = rot13(rot13(whatever))
So rot13 wording should be rephrased

I will open a PR soon

This makes sens, thanks for update. :)


RIPOR2

autosomal dominant nonsyndromic genetic hearing loss
Synonyms
N/A
Parent term (use OLS, or your favorite ontology browser)
N/A
Definition
Any autosomal dominant nonsyndromic genetic hearing loss in which the cause of the disease is a mutation in the RIPOR2 gene.
**Definition source (Please give PubMed ID, if applicable, in format PMID:#######)
PMID: 32631815
Children terms (if applicable) Should any existing terms be re-classified as children underneath this new proposed term?
N/A
Your nano-attribution (ORCID) or URL for a working group
ClinGen Hearing Loss GCEP

Dear @RyanFWebb,
Thank you for reaching out to the Mondo Disease Ontology, part of the Monarch Initiative!
We have received your ticket and will review it as soon as possible.
If you have any additional information or updates relevant to your inquiry, please add them in a comment on this ticket. Your input is valuable in helping us understand and resolve the issue effectively.
Thank you for your patience and for your contributions to Mondo!
Sincerely,
The Mondo Team

Hi Ryan,
I believe your submission for an autosomal dominant nonsyndromic hearing loss due to mutation in RIOPR2 is related to Deafness Autosomal Dominant 21, MONDO:0011761. Let me know what you think - thank you!
-Yousif

Hi Yousif,
That's correct, sorry if I mistakenly entered something else.
Thank you,
Ryan
Ryan Webb
Clinical Genomic Research Coordinator
Broad Institute of MIT and Harvard
105 Broadway, Cambridge, MA 02142
@.***
207.752.4372
Pronouns: he/him
[image: BroadInstLogoforDigitalRGB.png] https://www.broadinstitute.org/
On Mon, Jul 29, 2024 at 9:47 AM Yousif @.***> wrote:

Hi Ryan,
I believe your submission for an autosomal dominant nonsyndromic hearing
loss due to mutation in RIOPR2 is related to Deafness Autosomal Dominant
21 https://omim.org/entry/607017, MONDO:0011761. Let me know what you
think - thank you!
-Yousif
—
Reply to this email directly, view it on GitHub
https://github.com/monarch-initiative/mondo/issues/7747#issuecomment-2255995899,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AYP4RGYFK7AY224U5H7GBD3ZOZBWHAVCNFSM6AAAAABINFSZ2SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJVHE4TKOBZHE
.
You are receiving this because you were mentioned.Message ID:
@.***>


[BUG] & [FIX-Provided] Tooltips of items in Flat Sidebar stay visible even on mouseout

Short description
Tooltips of items in Flat Sidebar stay visible even on mouseout.
What is current behavior
Tooltips of items in Flat Sidebar stay visible even on mouseout.
What is desired behavior
Tooltips of items in Flat Sidebar are hidden on mouseout.
Link to jsfidle/codepan with sample code
See flat sidebar example in Demos
Steps to reproduce or sample
https://w2ui.com/web/demos/#/sidebar/9

Fix:
Refresh function in Sidebar: Line 8379:
data-mouseLeave="mouseAction|Leave|this|${nd.id}|event|tooltip"
should be
data-mouseLeave="mouseAction|Leave|this|${nd.id}|event|handle"

Fixed


evoked.plot_image silently "works" when clim is not a dict

Here is the script to reproduce:
import os
import mne

sample_data_folder = mne.datasets.sample.data_path()
sample_data_raw_file = os.path.join(sample_data_folder, 'MEG', 'sample',
                                    'sample_audvis_raw.fif')
raw = mne.io.read_raw_fif(sample_data_raw_file, verbose=False).crop(tmax=120)

events = mne.find_events(raw, stim_channel='STI 014')
event_dict = {'auditory/left': 1, 'auditory/right': 2, 'visual/left': 3,
              'visual/right': 4, 'face': 5, 'button': 32}
epochs = mne.Epochs(raw, events, tmin=-0.2, tmax=0.5, event_id=event_dict,
                    preload=True)
epochs.pick_types(eeg=True, meg=False)
evoked = epochs.average()

evoked.plot_image(clim =[-4, 4])

This is a bit of a nitpicky bug but note how the clim has no effect. I think it should throw an error or use this clim ... either of the two. Fixing this can help improve user experience :)

I can work on this!


Clean up and localized client tabs

Rewrote FileVault, Displays, Directory Service, and Power. Cleaned up
and localized all other client tabs

Thanks!


fix alignment check

Should fix #100.
@giordano, if you can try this locally on ARM that would be helpful.

It works! https://cloud.drone.io/giordano/FFTW.jl/2


Main view scrolls down for some reason

When the main view becomes visible, and also when it switches between connected and disconnected, it has a tendency to scroll down.  This seems to be because the first focusable element, usually the DNS server name, is offscreen.
Ideally, the main view should start scrolled to the top, and the scroll position mostly shouldn't change on these transitions.

Fixed by #82


examples/axum-utoipa-bindings: the swagger ui cannot be shown properly when loading /swagger-ui

before a985d8c1340f80ab69b2b0e5de799df98d567732, the swagger ui can be shown when loading /swagger-ui.
the request for /swagger-ui is redirected to /swagger-ui/ and the assets of the swagger ui are loaded properly.
a985d8c1340f80ab69b2b0e5de799df98d567732 breaks this behavior and the request for /swagger-ui is not redirected and urls of the assets are wrong.
because the url of the swagger ui is /swagger-ui  and relative urls of the assets are resolved with /.
i think that it's better to revert a985d8c1340f80ab69b2b0e5de799df98d567732 on the master branch. then fix #1042 properly.
the simplest solution is panic!() when SwaggerUi::new() is called with "/".
i think that this is acceptable for most people because mounting the swagger ui to / is rare.
another solution is that adding the route for redirect only when the path does not ends with /.
diff --git a/utoipa-swagger-ui/src/axum.rs b/utoipa-swagger-ui/src/axum.rs
index 22a3179..7b76c7a 100644
--- a/utoipa-swagger-ui/src/axum.rs
+++ b/utoipa-swagger-ui/src/axum.rs
@@ -45,10 +45,20 @@ where
         let handler = routing::get(serve_swagger_ui).layer(Extension(Arc::new(config)));
         let path: &str = swagger_ui.path.as_ref();

-        router
-            .route(path, handler.clone())
-            .route(&format!("{}/", path), handler.clone())
-            .route(&format!("{}/*rest", path), handler)
+        if path.ends_with('/') {
+            router
+                .route(path, handler.clone())
+                .route(&format!("{}*rest", path), handler)
+        } else {
+            let slash_path = format!("{}/", path);
+            router
+                .route(
+                    path,
+                    routing::get(|| async move { axum::response::Redirect::to(&slash_path) }),
+                )
+                .route(&format!("{}/", path), handler.clone())
+                .route(&format!("{}/*rest", path), handler)
+        }
     }
 }

in this case, a request for /swagger-ui won't be redirected if SwaggerUi::new() is called with "/swagger-ui/".
but i think that this is what the code is intended to do.
there is another solution.
currently, assets are specified with relative urls.
so, using absolute urls for the assets in the html document of the swagger ui can solve this issue without the redirect.
but, this kind of change affects servers other than axum and you may have to pay more cost for testing than other solutions.
i prefer the second solution, but you can choice one of any solutions.

+1 having the same issue here

Added a quick revert here #1153

Can confirm the issue of the assets being not /swagger-ui/ but from / is fixed - would love to know how to proceed w/ this!

Right, I'd then just fix this directly, because reverting back to the original, is not feasible either it will again break the behavior the original commit was meant to fix.

another solution is adding the route for redirect only when the path does not end with /.

I would be interested to see whether this would fix the issue for both use cases.

i've created a PR (#1155) based on the patch in my previous comment.
in this PR, the limitation described in my previous comment has been solved.
without my change, mount_onto_path_ends_with_slash() and mount_onto_path_not_end_with_slash() fail due to this issue.


Jellyfish integration will not work

I recently opened an issue with hass-jellyfish-lighting in hopes to get this integration working with the snap. Unfortunately, the integration is running into errors with the snap, and I am thinking that the problem may be the innate ro nature of snaps. However, I wanted to open an issue here, just in case you know of a workaround for this.
Here are the error logs I'm seeing when attempting to get the integration installed:
Config flow could not be loaded: {"message":"Invalid handler specified"}
---
2023-10-26 17:00:23.287 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading flow for integration jellyfish_lighting: No module named 'jellyfishlightspy'

More logs here:
"jellyfish_lighting":{"config_flow":true,"integration_type":"hub","iot_class":"local_polling","name":"JellyFish Lighting"},"pirateweather":{"config_flow":true,"integration_type":"hub","iot_class":"cloud_polling","name":"Pirate Weather"},"hacs":{"config_flow":true,"integration_type":"hub","iot_class":"cloud_polling","name":"HACS"},"webrtc":{"config_flow":true,"integration_type":"hub","iot_class":"calculated","name":"WebRTC Camera"}},"helper":{}}}}
2023-10-26 17:04:09.345 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140298095516864] USER_NAME from FAKE_IP_ADDRESS (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36): Received {'type': 'manifest/get', 'integration': 'jellyfish_lighting', 'id': 65}
2023-10-26 17:04:09.345 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140298095516864] USER_NAME from FAKE_IP_ADDRESS (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36): Sending {"id":65,"type":"result","success":true,"result":{"domain":"jellyfish_lighting","name":"JellyFish Lighting","codeowners":["@bdunn44"],"config_flow":true,"documentation":"https://github.com/bdunn44/hass-jellyfish-lighting","integration_type":"hub","iot_class":"local_polling","issue_tracker":"https://github.com/bdunn44/hass-jellyfish-lighting/issues","requirements":["jellyfishlights-py==0.7.0"],"version":"1.2.0","is_built_in":false}}
2023-10-26 17:04:09.368 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading flow for integration jellyfish_lighting: No module named 'jellyfishlightspy'
2023-10-26 17:04:29.130 DEBUG (MainThread) [custom_components.hacs] <Integration bdunn44/hass-jellyfish-lighting> Getting repository information
2023-10-26 17:04:29.592 DEBUG (MainThread) [custom_components.hacs] <Integration bdunn44/hass-jellyfish-lighting> Running checks against v1.2.0

Are you aware of anything I might try in lieu of using the standard approach to installing an integration from HACS?

Hi,
Have you installed this through HACS? I recommend that you try to restart your HA instance and check if there's an issue related to HACS failing to install dependencies.

Thanks for getting back to me. HACS is the only way I've tried installing it (via the webui). It just fails and prints the errors above. Is there a way to do it via cli?

Hi, did you see my comment on the other issue?

Yes - sorry I was using Github mobile - Yes HA has been restarted, in combination w/ using HACS. I've tried several methods, and worked with the Jellyfish integration dev (see ticket linked) and we couldn't get it to work. It should work, but I have a sneaking suspicion that the snap is preventing the installation of the required libraries during the integration's installation. That said, I am rather new to HA and so I am not certain that matters in this case.

Hi, did you see my comment on the other issue?

Hi. See my comment on your issue with the package repo.
HACS should complain that it can't install that package, and that is why I want you to look for an error about it in the start-up of HA.
But it looks like there is an issue with other HA distributions as well, and not the snap? When I read through the other issue.

HACS should complain that it can't install that package, and that is why I want you to look for an error about it in the start-up of HA.

https://github.com/giaever-online-iot/home-assistant-snap/issues/18#issue-1368881117
This is a common error message when HACS fails to install dependencies upon startup. And that typically when dependencies collide with what is required by HA Core.
Those are always in the RO mount, while other runtime installs are installed under /root/snap/home-...

I think we've substantiated it's not the HA snap's issue. Thanks for your help on this.

I wanted to circle back to let everyone know that with the latest version of hass-jellyfish-lighting (v1.2.0) I now have a working integration!


Updated the URL for Edit this page functionality

This allows users who visit the website to edit a page through GitHub by opening a PR.

congrats on PR #100
thank you


Streaming formats supported for remote audio

I'm building a radio player app for personal use, and hoping to replace the html audio element which has problems when the app goes into background, but I can't get Native Audio to play a remote .m3u8 stream. Note that is a UTF-8 encoded playlist file, not the stream itself. Is that supported in any way?

I just took a thorough look into m3u8 files on iOS, and I have come to the conclusion that m3u8 cannot be added easily.
Although iOS has native support for m3u8, it requires the usage of AVPlayer and NOT the currently used AVAudioPlayer.
If we were to switch to AVPlayer, it would require a total rewrite of the plugin on iOS.

iOS-wise, it should be really, really easy to implement support for m3u8 in a NEW plugin.
See this repo for more info.
You would just do
let url = URL(string: "http://localhost:\(server.port)/file.m3u8")
let player = AVPlayer(url: "https://example.com") // important: URL must be remote; it cannot be a local URL.

and that's it.


GainNode.gain.value deprecation error in Chrome dev console

Just set up a p5 environment, and all my new p5 projects are throwing this warning in the Chrome dev console (Version 63.0.3239.84 (Official Build) (64-bit)) on Mac:

[Deprecation] GainNode.gain.value setter smoothing is deprecated and will be removed in M64, around January 2018. Please use setTargetAtTime() instead if smoothing is needed. See https://www.chromestatus.com/features/5287995770929152 for more details.
(anonymous) @ p5.sound.js:394
(anonymous) @ p5.sound.js:397
(anonymous) @ p5.sound.js:8
(anonymous) @ p5.sound.js:9

Wondering if this is a defect in my setup, or if this is a real problem requiring an update in p5.js-sound?

thanks @fascistutopia ! Looks like this is an issue we'll need to address very soon!

Aha, great!  Thanks.  :)


PickUDF now complains about all-zero ROI

Previously the internals complained about a weird extra_shape of the result buffer.
Fixes #609
Contributor Checklist:

[ ] I have added a changelog entry for my contribution
[ ] I have added/updated documentation for all user-facing changes
[x] I have added/updated test cases

How is the behavior of other UDFs? Is there any situation when running an UDF with an all-zero ROI makes sense?
I could just imagine that some sort of automation could come across that with code like "roi = select_by_criterion(map)" that returns an empty set. If UDFs behave sensibly with that, users don't have to handle this special case separately.
As discussed, perhaps emulate NumPy's behavior?
In [1]: import numpy as np

In [2]: a = np.ones((0, 1, 0))

In [3]: a.shape
Out[3]: (0, 1, 0)

In [4]: a
Out[4]: array([], shape=(0, 1, 0), dtype=float64)


Update from old to new version didn't preserve menu entry when running in a Windows Sandbox

Testing #164465
Followed the steps from the test plan item for

VS Code system setup
update from old to new version

Old version added context menu entries
Updating to new version didn't preserve the menu entries

Addressing the issue in windows sandbox is not planned for now.


Allocate identity hash on demand rather than at object allocation time

This improves identity hash distribution when allocating large numbers of composite objects.

Hi @blairmcg ,
I have a question, since I was also playing around with the lazy hash init. Since this is my first time looking at the VM, I didn't get all the way, but I noticed something peculiar and I'm wondering, if you have an explanation:

For test purposes I modified ObjectMemory::nextIdentityHash() in ObjMemPriv.inl to exclude a particular hash value (0xFFF0) from the list of values it sets to m_idHash. (I was planning to use that as a "Not Initialized" cookie).
Then I made a change to primitive IdentityHash16 in primasm.asm to test for that value and - if matched - trigger a break point in the debugger.

And I indeed found that every once in a while the break point would be hit, even though there shouldn't really have been an object with that hash. I'm wondering now where those objects were coming from. Perhaps you have an explanation.
In case you'd like to try this yourself, my changes are at https://github.com/bernhardkohlhaas/DolphinVM/commit/87b42ee13f09fdbcaaa20c754120f852248aa940  in https://github.com/bernhardkohlhaas/DolphinVM/tree/HashLazyInit
(This was just code for testing and playing around, so there is a lot of junk in there, so please disregard some of the mess)
The way I reproduced the breakpoint was:

Set a breakpoint in primasm.asm, line 1985,
Boot fresh image with the VM
Launch the image and attach the debugger to the running Dolphin7.exe process
Then in the image open a new workspace and in there type "Object new hash" (without quotation marks).

Usually after hitting the  key after "new" the breakpoint would trigger.
Could you please explain, why there were still objects with that hash (although I worked from an image that was booted with my modified VM)?
Thanks so much in advance for your help,
Bernhard

@bernhardkohlhaas , there is nothing fundamentally wrong with what you have done, you are just seeing some objects that have survived from the boot image (dboot.img7).
I wondered about the same issue, and having decided that zero was the obvious choice for an uninitialized identity hash, I added a bit of code to the VM to dump out the objects in the dboot image with zero id hash. There turned out to only be three, and none of them stored in any hashed collection, which was lucky. Since the boot image can't be rebuilt at all easily, the luck will persist so I stopped worrying about patching it up.
BTW: I moved the primitive into C++ from assembler, taking advantage of some other work I'd done to reduce the cost of calling C++ primitives. This will make it easier to experiment with other RNGs, although I'm not sure that there would be much to gain given that only 16-bits of the result can be used.

@blairmcg , thanks so much for the explanation. Yes, it's very nice to have the primitive in C++ now, though tinkering with assembler was exciting in its own way. :)


Design Outline

Main Topics

[x] use click package for parsing arguments
[x] design the project as both a command line utility and a package

major additions

skeleton structure for the codebase is in place
package and command line implementation is done.
added file explorer for finding training configs

minor additions

added utility functions
updated README
also tried changing the license to an MIT license but haven't verified if that's good yet.

MIT license change was good. closing this now.


Hack for ArteDigital

Customization

Wrong pull request (Should be local)

Are you using opentok-meet? Why can't you just remove the draggable attribute from the facePublisher if you don't want it to drag?

Yes, but was weird we were removing the attribute but it did not work, probably because other conflict in our code, we just added the very ugly hack because we are rush, I need to check it again to see what was our error with more time; Thanks a lot the code is really good.

Strange, removing the draggable attribute should stop the draggable directive from being added to the component which is what's adding the dragging functionality. https://github.com/aullman/opentok-meet/blob/master/public/js/directives.js#L1

At the end found the problem and removing draggable works perfectly, thanks a lot!