Add check for too-long words

It's possible for a word within an otherwise-valid wordset to be longer than the size of the board. This breaks everything, and such cases should raise an exception early-on and terminate. See here:
> python make_puzzle_v2.py caligraphy --packing-constant=1.1 --strategy=median --optimize-words

Removed too-similar words (superstring): paintbrush

Pre-optimization word stats:
    num_words: 26
    packing_level: 1.036
    word_len (mean/max): 8.96 / 18
    collision_avoidance_prob (min/mean): -0.368889 / 0.668540

Ended optimization with loop_cnt=0

Words removed:
Words added:

Post-optimization word stats:
    num_words: 26
    packing_level: 1.036
    word_len (mean/max): 8.96 / 18
    collision_avoidance_prob (min/mean): -0.368889 / 0.668540

['logo', 'font', 'ming', 'lama', 'tibet', 'brush', 'islam', 'vellum', 'scapula', 'secular', 'document', 'bastarda', 'light-box', 'hiragana', 'katakana', 'buddhism', 'plastrons', 'ethiopian', 'typography', 'visual arts', 'testimonial', 'graphic design', 'ink and wash painting', 'western calligraphy', 'lindisfarne gospels', 'wedding invitations']

{10: 'caligraphy', 21: 'vietnamese calligraphy', 18: 'chinese calligraphy', 19: 'japanese calligraphy', 17: 'korean calligraphy', 14: 'korean language', 8: 'typeface', 7: 'writing', 11: 'inscription', 16: 'tigrinya language', 9: 'parchment', 13: 'greek language', 12: 'religious art'}

Traceback (most recent call last):
  File "/Users/jonsimon/Code/wonder-words-generator/make_puzzle_v2.py", line 385, in <module>
    make_puzzle(args.topic, args.board_size, args.packing_constant, args.strategy, args.optimize_words, args.relatedness_cutoff)
  File "/Users/jonsimon/Code/wonder-words-generator/make_puzzle_v2.py", line 311, in make_puzzle
    covered_up_words, doubled_up_words, deltas = find_words_in_board(board, word_tuples_to_fit)
  File "/Users/jonsimon/Code/wonder-words-generator/make_puzzle_v2.py", line 228, in find_words_in_board
    raise ValueError(f"word '{wt.board}' does not appear in the board, something has gone HORRIBLY wrong")
ValueError: word 'LOGO' does not appear in the board, something has gone HORRIBLY wrong

Added check in https://github.com/jonadsimon/wonder-words-generator/commit/a9fc1f8fae2388a133d9bdc9835139085080b934


Progressively slower VSCode with newer versions

Just giving feedback on the program. I didn't know where else to put it.
Visual Studio Code is getting progressively slower with the newer updates to favor "looks".
I had 1.26.1 version for a long time. I recently upgraded to 1.37.1 and noticed it required x3 to open, double the time to open terminal, less responsiveness overall slowdown. And for what, better looking interface? I don't like it. The most important issue though for me was the significantly lagging terminal window, which I constantly use. I thought it was an extension causing it, but no I couldn't find the culprit. So now I'm back to 1.26.1 and I'm not changing for the foreseeable future. I'd much rather have a fast program than a cool-looking program.
I didn't notice this issue just with 1.37.1 but with a couple of other previous versions I installed along the way (I don't remember version ids). I have a powerful PC RTX 2080, i7 3770, 16GB Ram Windows 8.1 AMD64 perfectly maintained. There can be no reasons for slowdown on my part.

I don't the that's a general observation. The chart below is the time is takes to restore a window with an editor and a terminal. There is a repeating monthly pattern and an overall downwards trend.

noticed it required x3 to open, double the time to open terminal, less responsiveness overall slowdown. And for what, better looking interface? I don't like it

Show me the numbers! This guide tells you how: https://github.com/microsoft/vscode/wiki/Performance-Issues


I want to clear the session when I close the program. What shoud I do?

the session['username'] isn't cleared when I close the program and then run the program.
I want to clear the session when I close the program. What shoud I do?
E.g:
http://flask.pocoo.org/docs/0.10/quickstart/#sessions

Please do not use GitHub for support. Use IRC (#pocoo on freenode) or Stack Overflow instead.

Thank you for your reminder.


From 8.2.0 .env file in root dir is ignored

Switching from 8.1.2 to 8.2.0 .env file in root dir is ignored.
I'm using this command:
cargo watch -x run --ignore "custom_dir"

Specifically, it does so for virtual workspaces (where there isn't a package at the top level)

Fixed in 8.2.1

I cannot try, still not present:

Right, sorry, took me a while longer to get to crates.io publish, but that's done now.

It works now!


Adding backup and license files for graphics + Resolve Styling comments

Adding backup for all the graphics created and their licenses.
Adding punctuation to bullet points.
Rephrasing sentences in section: Why should I use generative design.
Changing the image of gears to illustrate different values.
Change wording of some sentences in what is generative design
Changing wording of some sentences in anatomy of each stage
Making lego girl image a little bit older by adding glasses
Changing wording of some sentences in mars example

PR name and description need to be updated to reflect scope - I'll be able to review after that.

Pr name and description was updated to reflect scope

Ready for review @radumg

@radumg All font files were deleted.


× Encountered error while trying to install package. :flash-attn

Hello.
First of all thanks for this great openfold.
Currently I am facing an error in my install.
scripts/install_third_party_dependencies.sh

I used development version for install. Because in release version, pytorch and nvcc versions are old and I could not install gcc 8 on ubuntu 22.04. I used 1c279f9 commit version.
The contents of environmnet.yml is as follows.
name: openfold_venv
channels:
  - conda-forge
  - bioconda
  - pytorch
dependencies:
  - conda-forge::python=3.7
  - conda-forge::setuptools=59.5.0
  - conda-forge::pip
  - conda-forge::openmm=7.5.1
  - conda-forge::pdbfixer
  - conda-forge::cudatoolkit==11.3.*
  - bioconda::hmmer==3.3.2
  - bioconda::hhsuite==3.3.0
  - bioconda::kalign2==2.04
  - pytorch::pytorch=1.12.*
  - pip:
      - biopython==1.79
      - deepspeed==0.5.9
      - dm-tree==0.1.6
      - ml-collections==0.1.0
      - numpy==1.21.2
      - PyYAML==5.4.1
      - requests==2.26.0
      - scipy==1.7.1
      - tqdm==4.62.2
      - typing-extensions==<IP_ADDRESS>
      - pytorch_lightning==1.5.10
      - wandb==0.12.21
      - git+https://github.com/HazyResearch/flash-attention.git@5b838a8bef78186196244a4156ec35bbb58c337d
      - git+https://github.com/NVIDIA/dllogger.git

I observed the following error in install.
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> flash-attn

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

failed

CondaEnvException: Pip failed

Also, I have attached the install log because the error we confirmed in log is very long.
install_log.txt: all logs
install_log_error.txt: log corresponding to the error part
install_log_error.txt
install_log.txt
My apologies if this is my fault.
Thanks in advance.
Keigo

What kind of GPU do you have?

The following GPUs are used.
Are the GPU specs not enough?
01:00.0 VGA compatible controller: NVIDIA Corporation GP106 [GeForce GTX 1060 6GB] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GP106 High Definition Audio Controller (rev a1)


primitive job for computing gradients in AdaptVQE fails when using Aer's Estimator with approximation=True

Environment

Qiskit Terra version: 0.22.2 (and Aer version 0.11.1)
Python version: 3.9.5
Operating system: MacOS/ Linux Mint

What is happening?
When using Aer's implementation of Estimator and setting approximation=True, the primitive job for computing the commutator expectation values for the gradients in AdaptVQE fails. This estimator seems to work fine for regular VQE and also for AdaptVQE when approximation=True is omitted, which tells me that the issue is specifically related to the AdaptVQE implementation of the gradient calculation.
How can we reproduce the issue?
The following program for calculating the ground state of diatomic hydrogen:
from qiskit.algorithms.minimum_eigensolvers import AdaptVQE, VQE
from qiskit_aer.primitives import Estimator
from qiskit_nature.problems.second_quantization import ElectronicStructureProblem
from qiskit_nature.converters.second_quantization import QubitConverter
from qiskit_nature.mappers.second_quantization import JordanWignerMapper
from qiskit_nature.circuit.library import UCCSD, HartreeFock
from qiskit.algorithms.optimizers import COBYLA
import numpy as np

basis = 'sto-3g'
interatomic_distance = 0.735

from qiskit_nature.drivers.second_quantization import ElectronicStructureMoleculeDriver, ElectronicStructureDriverType
from qiskit_nature.drivers import Molecule
molecule = Molecule(
    geometry=[["H", [0.0, 0.0, 0.0]], ["H", [0.0, 0.0, interatomic_distance]]], charge=0, multiplicity=1
)
driver = ElectronicStructureMoleculeDriver(
    molecule, basis=basis, driver_type=ElectronicStructureDriverType.PYSCF
)
q_molecule = driver.run()
qubit_converter = QubitConverter(JordanWignerMapper())
es_problem = ElectronicStructureProblem(driver=driver)
second_q_op = es_problem.second_q_ops()
qubit_op = qubit_converter.convert(second_q_op[0])

num_qubits = es_problem.num_spin_orbitals

HF_state = HartreeFock(num_spin_orbitals=es_problem.num_spin_orbitals,
                                                       num_particles=es_problem.num_particles,
                                                       qubit_converter=qubit_converter)

ansatz = UCCSD(qubit_converter=qubit_converter,
                     num_particles=es_problem.num_particles,
                     num_spin_orbitals=es_problem.num_spin_orbitals,
                     initial_state=HF_state)

VQE_instance = VQE(ansatz=ansatz,
                   optimizer=COBYLA(),
                   estimator=Estimator(approximation=True),
                   initial_point=np.zeros(ansatz.num_parameters),
                   callback=None)

AdaptVQE_instance = AdaptVQE(VQE_instance)

result = AdaptVQE_instance.compute_minimum_eigenvalue(qubit_op)
print(result)
print(result.optimal_circuit.decompose())
AdaptVQE_instance.ansatz = result.optimal_circuit
print(AdaptVQE_instance.ansatz.decompose())

results in the following traceback:
Traceback (most recent call last):
  File "/Users/joelbierman/opt/anaconda3/envs/Qiskit-0392-esm-010-nature-045/lib/python3.9/site-packages/qiskit/algorithms/observables_evaluator.py", line 70, in estimate_observables
    expectation_values = estimator_job.result().values
  File "/Users/joelbierman/opt/anaconda3/envs/Qiskit-0392-esm-010-nature-045/lib/python3.9/site-packages/qiskit/primitives/primitive_job.py", line 50, in result
    return self._future.result()
  File "/Users/joelbierman/opt/anaconda3/envs/Qiskit-0392-esm-010-nature-045/lib/python3.9/concurrent/futures/_base.py", line 438, in result
    return self.__get_result()
  File "/Users/joelbierman/opt/anaconda3/envs/Qiskit-0392-esm-010-nature-045/lib/python3.9/concurrent/futures/_base.py", line 390, in __get_result
    raise self._exception
  File "/Users/joelbierman/opt/anaconda3/envs/Qiskit-0392-esm-010-nature-045/lib/python3.9/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/Users/joelbierman/opt/anaconda3/envs/Qiskit-0392-esm-010-nature-045/lib/python3.9/site-packages/qiskit_aer/primitives/estimator.py", line 135, in _call
    return self._compute_with_approximation(
  File "/Users/joelbierman/opt/anaconda3/envs/Qiskit-0392-esm-010-nature-045/lib/python3.9/site-packages/qiskit_aer/primitives/estimator.py", line 292, in _compute_with_approximation
    circuit.save_expectation_value(observable, self._layouts[i])
  File "/Users/joelbierman/opt/anaconda3/envs/Qiskit-0392-esm-010-nature-045/lib/python3.9/site-packages/qiskit_aer/library/save_instructions/save_expectation_value.py", line 191, in save_expectation_value
    instr = SaveExpectationValue(operator,
  File "/Users/joelbierman/opt/anaconda3/envs/Qiskit-0392-esm-010-nature-045/lib/python3.9/site-packages/qiskit_aer/library/save_instructions/save_expectation_value.py", line 64, in __init__
    raise ExtensionError("Input operator is not Hermitian.")
qiskit.extensions.exceptions.ExtensionError: 'Input operator is not Hermitian.'

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

Traceback (most recent call last):
  File "/Users/joelbierman/Desktop/electronic-structure-methods/test/adaptVQE/H2_AdaptVQE_bug.py", line 46, in <module>
    result = AdaptVQE_instance.compute_minimum_eigenvalue(qubit_op)
  File "/Users/joelbierman/opt/anaconda3/envs/Qiskit-0392-esm-010-nature-045/lib/python3.9/site-packages/qiskit/algorithms/minimum_eigensolvers/adapt_vqe.py", line 215, in compute_minimum_eigenvalue
    cur_grads = self._compute_gradients(theta, operator)
  File "/Users/joelbierman/opt/anaconda3/envs/Qiskit-0392-esm-010-nature-045/lib/python3.9/site-packages/qiskit/algorithms/minimum_eigensolvers/adapt_vqe.py", line 146, in _compute_gradients
    res = estimate_observables(self.solver.estimator, self.solver.ansatz, commutators, theta)
  File "/Users/joelbierman/opt/anaconda3/envs/Qiskit-0392-esm-010-nature-045/lib/python3.9/site-packages/qiskit/algorithms/observables_evaluator.py", line 72, in estimate_observables
    raise AlgorithmError("The primitive job failed!") from exc
qiskit.algorithms.exceptions.AlgorithmError: 'The primitive job failed!'

What should happen?
The algorithm completes without primitive job failure. Aer seems to be flagging these commutator operators as non-Hermitian, which is a bit odd considering that using Aer's Estimator implementation without setting approximation=True works just fine. The hermiticity should be independent of this argument.
Any suggestions?
No response

This may be more an issue for Qiskit Aer repo rather than Terra - @ikkoham may be able to ascertain better.

I see, thank you. Should I close this and re-open it in Aer?

If it is an Aer issue it can be transferred over there. Maybe let @ikkoham make a determination since he is working with the Aer primitives too and we can go from there.

I think I have tracked down where the error occurs and it looks to be an Aer issue, so I can close this and re-open the issue in Aer if you would like.
This error only occurs for Aer's Estimator when approximation is True and shots is None. Setting Approximation=True, but setting shots to be some finite integer works just fine. In the code, there is a clear fork in the road that determines whether or not this error pops up in the _compute_with_approximation function in the file /qiskit_aer/primitives/estimator.py. On line 292, there is the conditional statement:
if shots is None:
                    circuit.save_expectation_value(observable, self._layouts[I])
else:
                    for term_ind, pauli in enumerate(observable.paulis):
                        circuit.save_expectation_value(pauli, self._layouts[i], label=str(term_ind))

Running circuit.save_expectation_value involves creating an instance of SaveExpectationValue in the file qiskit_aer/library/save_instructions/save_expectation_value.py, which involves checking that the operator is Hermitian. In this case, the gradient operators required by AdaptVQE is a SparsePauliOp where some of the Pauli coefficients are complex. Instantiating SaveExpectationValue involves checking that all of the Pauli coefficients are close to real. If they are not, it throws an error that not all of the Paulis in SparsePauliOp are Hermitian.
Now in the case shots is not None, instead of saving the expectation value of the SparsePauliOp as a whole, the code iterates over the individual Pauli terms and saves the expectation values of the individual terms, which neglects the coefficients which are added in later.
I guess one quick fix would be to just save all expectation values as per the second method, regardless of whether or not shots is None, but I am guessing that given that this conditional statement exists, there are good reasons for not doing it that way. (e.g. performance if `save_expectation_value incurs a computation overhead every time it is called- might not be desirable to do if not absolutely necessary.)

I guess for now, if you wanted to run noiseless AdaptVQE simulations using Aer, the thing to do would to set approximation=True, but make the number of shots really large to make the variance effectively zero since it is just sampling from a gaussian and not actually running the circuit shots individually when Approximation=False. The performance does not seem to get much worse if for instance I set shots=10**30

I think as far as algorithms go this was resolved so I am going to close this. If there is still some aspect with Aer Estimator feel free to open an issue on Aer for that.


home-off icon

Icon name: home-off
Use case: home automation (not at home), or for stock management (home = in stock, home-off = out of stock)
Screenshots of similar icons: https://lucide.dev/icons/home .. but off

Thanks! (And thanks for your amazing work)

@tchex See house-off in #1404.


BUG

After the character dies, it can be resurrected by going online again. Please fix this bug, thank you!

Thank you for the report, I will investigate.

Hi @ZhengPeiRu21 is there any update on this one? I'm only using the module for the hardcore aspect but stuck on this also :)

This should be resolved with https://github.com/ZhengPeiRu21/mod-challenge-modes/commit/8fb291d59eb796f84c51c91b2c58060549daf060. Would you please check if it continues to have issues?

I'm getting a warning when compiling @ZhengPeiRu21 it maybe nothing but worth noting for you.
/home/soap/azerothcore/modules/mod-challenge-modes/src/ChallengeModes.cpp:24:13: warning: enumeration value 'HARDCORE_DEAD' not handled in switch [-Wswitch]     switch (setting)             ^~~~~~~ /home/soap/azerothcore/modules/mod-challenge-modes/src/ChallengeModes.cpp:48:13: warning: enumeration value 'HARDCORE_DEAD' not handled in switch [-Wswitch]     switch (setting)             ^~~~~~~ /home/soap/azerothcore/modules/mod-challenge-modes/src/ChallengeModes.cpp:72:13: warning: enumeration value 'HARDCORE_DEAD' not handled in switch [-Wswitch]     switch (setting)             ^~~~~~~ /home/soap/azerothcore/modules/mod-challenge-modes/src/ChallengeModes.cpp:96:13: warning: enumeration value 'HARDCORE_DEAD' not handled in switch [-Wswitch]     switch (setting)             ^~~~~~~ /home/soap/azerothcore/modules/mod-challenge-modes/src/ChallengeModes.cpp:120:13: warning: enumeration value 'HARDCORE_DEAD' not handled in switch [-Wswitch]     switch (setting)

I'm getting a warning when compiling

Thank you for testing. The warning wouldn't have impacted anything but I have cleaned it up in https://github.com/ZhengPeiRu21/mod-challenge-modes/commit/f2918a78219e7315ec65c9e07199170c4b27e225. Please let me know if you see any other issues.

Thanks @ZhengPeiRu21 that has fixed the warning issue.
for some reason though now the idol to start a challenge mode isn't clickable, it's there in the graveyard but not able to be clicked


Update dependencies of async-log-attributes and make it to be optional

Signed-off-by: koushiro<EMAIL_ADDRESS>
Update proc-maroc2, syn and quote to v1.0
Make async-log-attributes to be optional (close #6)

@yoshuawuyts PTAL :)
Could you publish a patch version if the PR is merged ?

Now that tide depends on femme, it pulls in async-log-attributes and it's sad to see proc-macro2/syn/quote 0.x get back in the dependency tree.
This would be greatly appreciated to avoid duplicate dependencies.
@yoshuawuyts BTW, when you merge and make a release out of this, you should s/runtime/async-log/ in several places


Gradient picker

Hi everyone! Good job guys.
I have a question how hard will be implement gradient picker, with color stops.
Like user select first gradient color and end color.
Where I can start and maybe somebody can help me with this?

I am not sure what you are asking, could you add some more datils? Or maybe a picture?

Yes sure. I thing about something like this: http://i.stack.imgur.com/YFkzO.jpg

Hmm, yeah this is definitely outside of the scope of this package.


Remove npm-shrinkwrap as it causes issues for those who cannot access npm registry

For those using private npm repositories or npm enterprise with a different domain and those who cannot access npm registry, they cannot install this because of npm shrinkwrap.
I suggest removing it so others can install the dependencies through their proxy.

Sorry, we still need shrinkwrap.


PlatformNotAvailableError when docker compile wireguard

Description
Report follow alarm when use docker compile wireguard, platform is 918+... do we have any suggestion?
$ sudo docker run --rm --privileged --env PACKAGE_ARCH=apollolake --env DSM_VER=7.0.1 -v $(pwd)/artifacts:/result_spk synobuild
Password:
WireGuard version:        1.0.20211208
WireGuard tools version:  1.0.20210914
libmnl version:           1.0.4

Cloning into 'pkgscripts-ng'...

PlatformNotAvailableError:
[apollolake] is not available platform.

[ERROR] pkgscripts-ng/EnvDeploy -p apollolake -v 7.0.1 failed!
cp: cannot create regular file '/build_env/ds.apollolake-7.0.1/etc/ssl/certs/': No such file or directory

Thanks
Yong

I think it's because you use DSM_VER 7.0.1 rather than 7.0. Synology only releases new toolchains when there is a major update.

Thanks Runfalk!
After changed to 7.0, no the alarm!
But I found another issue: "ERROR: cannot verify netfilter.org's certificate", after reference topic: https://github.com/runfalk/synology-wireguard/issues/109, added "--no-check-certificate" in Makefile, then rebuild "sudo docker build -t synobuild .", at last, done compile, successful!
~/synology-wireguard/artifacts/WireGuard-1.0.20211208$ ls -l
total 3400
-rw-r--r-- 1 root root 1740800 Dec 23 11:25 WireGuard-apollolake-1.0.20211208_debug.spk
-rw-r--r-- 1 root root 1740800 Dec 23 11:25 WireGuard-apollolake-1.0.20211208.spk

~/synology-wireguard$ more Makefile |grep wget
        wget --no-check-certificate https://netfilter.org/projects/libmnl/files/$(LIBMNL_TAR)
        wget --no-check-certificate https://git.zx2c4.com/wireguard-linux-compat/snapshot/$(WIREGUARD_TAR)
        wget --no-check-certificate https://git.zx2c4.com/wireguard-tools/snapshot/$(WIREGUARD_TOOLS_TAR)


subsys: net: websocket: fix undefined reference

Fix undefined reference to MSG_DONTWAIT while building websocket client.
Observed when CONFIG_POSIX_API is not set (which is not covered by the sample/tests).

@jukkar @kartben do you think it should be reported on the 3.7 branch ? Look like a blocking issue on the 3.7 release...

@jukkar @kartben do you think it should be reported on the 3.7 branch ? Look like a blocking issue on the 3.7 release...

Yes, that would be a good idea.

@jukkar @kartben do you think it should be reported on the 3.7 branch ? Look like a blocking issue on the 3.7 release...

Yes, that would be a good idea.

I m leaving in vacations tomorrow morning so will propose this beginning of September. In the meantime if done by another contributor no problem of course

The PR need to have the backport label which is now there. After that the backport to 3.7 will happen almost automatically after the PR is merged upstream.  We just need to create an issue that is referenced by the backport PR, I can do this

The PR need to have the backport label which is now there. After that the backport to 3.7 will happen almost automatically after the PR is merged upstream. We just need to create an issue that is referenced by the backport PR, I can do this

Impressive! I wasn't aware this is automatically done this way 👍


Use automatic JSX runtime feature from esbuild

Description
As a developer using Vite I would like to see the automatic JSX runtime support of esbuild used instead of a custom transformation in Vite so that performance can be enhanced and details in implementation do not diverge.
Suggested solution
Use the automatic JSX runtime functionality as implemented in esbuild (see https://github.com/evanw/esbuild/pull/2349). See the release notes for this feature for more information.

Duplicate of #9429

Thanks, I missed that issue.


Refactor packages to fix split package issues

Fixes: https://github.com/eclipse/deeplearning4j/issues/8870
Because this is essentially impossible to review (given the number of files changed) here's a list of the exact changes made:
nd4j-common
Move all source files/classes: org.nd4j.* to org.nd4j.common.*
Exceptions: org.nd4j.linalg.collection.* -> org.nd4j.common.collection.*
            org.nd4j.linalg.function.* -> org.nd4j.common.function.*
            org.nd4j.linalg.io.* -> org.nd4j.common.io.*
            org.nd4j.linalg.primitives.* -> org.nd4j.common.primitives.*
            org.nd4j.linalg.util.* -> org.nd4j.common.util.*
                (Note: consequence that org.nd4j.linalg.util and org.nd4j.util are now merged into org.nd4j.common.util)

nd4j-kryo
Move all classes: org.nd4j.* -> org.nd4j.kryo.*

nd4j-grpc-client
Move all classes: org.nd4j.graph -> org.nd4j.remote.grpc

deeplearning4j-common
org.deeplearning4j.util -> org.deeplearning4j.common.util
org.deeplearning4j.config -> org.deeplearning4j.common.config

deeplearning4j-core: all org.deeplearning4j.* -> org.deeplearning4j.core.*
Exceptions:  org.deeplearning4j.api.loader.* -> org.deeplearning.core.loader.*
             org.deeplearning4j.api.storage.* -> org.deeplearning.core.storage.*

deeplearning4j-cuda: Move org.deeplearning4j.nn.layers.* -> org.deeplearning4j.cuda.*

deeplearning4j-nlp-chinese: org.deeplearning4j.text.* -> org.deeplearning4j.nlp.chinese.*

deeplearning4j-nlp-japanese: org.deeplearning4j.text.* -> org.deepleraning4j.nlp.japanese.*

deeplearning4j-nlp-korean: org.deeplearning4j.text.* -> org.deeplearning4j.nlp.korean.*

deeplearning4j-nlp-uima: org.deeplearning4j.text.* -> org.deeplearning4j.nlp.uima.*

deeplearning4j-ui-model: org.deeplearning4j.ui.* -> org.deeplearning4j.ui.model.*

datavec-spark-inference-server: org.datavec.spark.transform.* -> org.datavec.spark.inference.server.*

datavec-spark-inference-model: org.datavec.spark.transform.* -> org.datavec.spark.inference.model.*

datavec-spark-inference-client: org.datavec.spark.transform.* -> org.datavec.spark.inference.client.*

datavec-jdbc: org.datavec.api.* -> org.datavec.jdbc.*
    Exception: org.datavec.api.util.jdbc* -> org.datavec.jdbc.util.*

deeplearning4j-datasets: org.deeplearning4j.base.* -> org.deeplearning4j.datasets.base.*

deeplearning4j-nn: org.deeplearning4j.datasets.iterator.impl.MultiDataSetIteratorAdapter deleted in favor of (essentially identical) org.nd4j.linalg.dataset.adapter.MultiDataSetIteratorAdapter

nd4j-common-tests: org.nd4j.* -> org.nd4j.common.tests

Also: As per this issue - https://github.com/eclipse/deeplearning4j/issues/8878 - I have skipped tests on CUDA only for nd4j-json-client, nd4j-parameter-server-node, and nd4j-parameter-server
There are only tested using nd4j-native CI even under CUDA - hence these ignores aren't reducing test coverage, as they are already and still tested on CPU CI.
It will be fixed separately.
And I have ignored the test here: https://github.com/eclipse/deeplearning4j/issues/8882
Again, already failing on master, but CI wasn't running it due to https://github.com/eclipse/deeplearning4j/issues/8881

This looks OK, but are we really sure we want to break backward compatibility now? I suppose it's better to do it now than after 1.0 release though.

Yeah, the breaking change for packages/imports isn't exactly ideal, but (a) there isn't a way to fix this without breaking changes, and (b) I think it'll be worth it in the long run for OSGi/modules
And if we're even somewhat following semantic versioning, it has to before (or at latest at) the 1.0 release

@AlexDBlack Thank you for all the hard work!


Workspace: Swagger updates for CMK

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

Contribution checklist:

[x] I have reviewed the documentation for the workflow.
[x] Validation tools were run on swagger spec(s) and have all been fixed in this PR.
[ ] The OpenAPI Hub was used for checking validation status and next steps.

ARM API Review Checklist

[ ] Service team MUST add the "WaitForARMFeedback" label if the management plane API changes fall into one of the below categories.
adding/removing APIs.
adding/removing properties.
adding/removing API-version.
adding a new service in Azure.

Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs.

[x] If you are blocked on ARM review and want to get the PR merged urgently, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.
Please follow the link to find more details on API review process.

You don't have permission to trigger SDK Automation.
Please add yourself to Azure group from opensource portal if you are MSFT employee,
or please ask reviewer to add comment *** /openapibot sdkautomation ***.
Please ask<EMAIL_ADDRESS>(or NullMDR in github) for additional help.

Can one of the admins verify this patch?

Hi @DeMale I do not know if this is a good place, but I just happened to work on bringing this particular resource (MachineLearningService.Workspace) to terraform. But I found that this rest api does not work. Please have a check or we can discuss this more in an internal email.

This is a flag to mark the workspace as High Business Impact one on workspace creation. The flag to signal HBI data in the workspace and reduce diagnostic data collected by the downstream services

I strongly recommend you refine the current description of hbiWorkspace to include this information.

Hi @DeMale I do not know if this is a good place, but I just happened to work on bringing this particular resource (MachineLearningService.Workspace) to terraform. But I found that this rest api does not work. Please have a check or we can discuss this more in an internal email.

@ArcturusZhang Let's not combine other changes in this PR. We will create a separate PR for that change.

Please remove the readOnly: true for identity (here).
You can refer to this pr for details.

@ArcturusZhang Since you have a separate PR for the change requested, can we get this PR going?

Hi @DeMale I do not know if this is a good place, but I just happened to work on bringing this particular resource (MachineLearningService.Workspace) to terraform. But I found that this rest api does not work. Please have a check or we can discuss this more in an internal email.

@ArcturusZhang Let's not combine other changes in this PR. We will create a separate PR for that change.

Sure, thanks.

Hi @DeMale please let me know when you have resolved all the comments and ready to merge this pr

Hi @DeMale is this ready for merge? Or it has to wait until 01/13/2020?

Hi @ArcturusZhang It has to wait until 01/13/2020 until all the JEDI work gets into production regions.

Hi @ArcturusZhang It has to wait until 01/13/2020 until all the JEDI work gets into production regions.

Got it

/azp run

/azp run


No post data received

Hi,
I have a problem working with reactPHP (http server)
Scenario.
Apache receiving data
PHP script sending data via post to another server through a php script with curl to the reactphp server.
ReactPHP server sometimes receive data and sometimes not.
I have verified that from the apache server the data is always posted.
What is the problem then?
Thanks!
Please take a look at this simple code:
require 'vendor/autoload.php';

$loop   = React\EventLoop\Factory::create();
$socket = new React\Socket\Server($loop);
$http   = new React\Http\Server($socket, $loop);

$http->on('request', function ($req, $res) {

print_r($req);

    $req->on('data', function($data) use ($req, $res) {

            parse_str($data,$datos);
            if(count($datos)==0)
            {

                    echo "No data \n";
            }

            $res->writeHead(200,
            array(
                    'Access-Control-Allow-Origin'=>'*',
                     'Content-Type' => 'text/plain'
             ));

            $res->end("Ok\n");
    });

});

$socket->listen(5000,<IP_ADDRESS>);
$loop->run();

Hi @migmam, it appears you're having an issue with react/http and not react/socket. May I ask you to file the problem in its repo instead? Thanks!

Hi @clue
I have also tested with just react/socket and the result is the same.
Sometimes the posted data is not received.
This is my code.
<?php
require 'vendor/autoload.php';
$loop = React\EventLoop\Factory::create();

$socket = new React\Socket\Server($loop);
$socket->on('connection', function ($conn) {

$conn->write("Welcome to this amazing server!\n");
$conn->write("Here's a tip: don't say anything.\n");

    $conn->on('data', function ($data) use ($conn) {

        $request = explode("\n",$data);
        $request_properties = explode(" ",$request[0]);
        $method = $request_properties[0];
        $routes = explode("/",substr($request_properties[1],1));

        parse_str($request[5],$posted_data);
        print_r($posted_data);
        $conn->close();
    });
});
$socket->listen(5000,'<IP_ADDRESS>');
$loop->run();
?>

So the $posted_data is empty.

Thanks for posting back with more details :+1:

I have also tested with just react/socket and the result is the same.

So what exactly is the issue here? :)
Your example code starts processing once the first "data" event is emitted. Note that this event will be emitted once first chunk has been received, i.e. it does not necessarily include everything the sender intended to send at once. Depending on what you're doing here, you would usually use a framing protocol on top of the underlying streaming protocol so you can know how much of your data makes up a single "message".
It still looks like you're using HTTP (or HTTP-like protocol) here, so perhaps react/http would still help?

Hi @clue. Thanks for your answer.
I'm going to test it again and again because when the data is send from one server to itself ..it fails (no post data is received every since in a while)..but when I send data from one server (apache) to other server (react) it works correctly. It is a very strange behaviour. I will keep you updated.

I got same here:
Code:
<?php
include_once './vendor/autoload.php';

$loop = React\EventLoop\Factory::create();
$socket = new React\Socket\Server($loop);
$http = new React\Http\Server($socket);
$http->on('request', function ($request, $response) {
    $headers = array('Content-Type' => 'text/plain');
    $sink = new React\Stream\BufferedSink();
    $request->pipe($sink);

    $sink->promise()->then(function ($requestBody) use ($response, $headers) {
        parse_str($requestBody, $requestData);
        var_dump($requestBody, $requestData);

        $response->writeHead(200, $headers);
        $response->end("Hi, thanks man.\n");
    });
    $request->close();
});

$socket->listen(5050);
$loop->run();

Request:
curl -X POST -H "Cache-Control: no-cache" -H "Content-Type: application/x-www-form-urlencoded" -d 'd=22&f=f&f=f&f=f' "http://localhost:5050/notify"

Received:
 //$requestBody :
string(0) ""
// $requestData :
array(0) {
}
``

Ping @migmam, can you update the status here, does the problem persist or did you mange to resolve this in the meantime?

Hi Christian
It is not related to reactphp/socket. The tests I performed shown that it
was related (if so) with reactphp/http but not clearly sure.
I changed my code that was calling to reactphp/http from file_get_contents
to curl and the results were ok.
Regards,
Miguel Angel
2016-11-13 13:48 GMT+01:00 Christian Lück<EMAIL_ADDRESS>
Ping @migmam https://github.com/migmam, can you update the status here,
does the problem persist or did you mange to resolve this in the meantime?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/reactphp/socket/issues/39#issuecomment-260184300, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ANifo4VguYoFwNYhbN0Ieqbir-oPnfBAks5q9wcMgaJpZM4Ii9ii
.

Thanks for reporting back! :+1: I'll assume this is resolved and will close this for now, please feel free to report back otherwise.


Channel sorting broken

Running on master (dd5e50f).
As you can see the order is messed up when syncing to other clients, but the strange order also persists when refreshing. (Also note how the network lobby isn't where it should be)
https://gfycat.com/TalkativeKindlyAlbino

Assuming this is due to #1064

Interestingly I'm not able to fix it. Have you ensured you did an npm run build, @PolarizedIons ?

Yep I did, @YaManicKill. Recloned to be sure and still an issue.

Pinging @xPaw about this.

I don't have this problem. @PolarizedIons are you sure it's not a local change? Also, what browser do you use?

@bews Chromium Version 58.0.3029.81 (64-bit) on Arch Linux, but the fact that it persisted after a refresh (and diffrent in fact) leads me to believe it isn't a browser issue. No local changes - I did a fresh reclone to test that

FWIW, I can repro in Safari and Chromium

Probably #1064 broke it, unsure why though.

Just adding more info to this: it doesn't seem to happen when you "manually" join networks/channels. I connect though ZNC so it could be caused by that, or the amount of channels/queries it opens

I can't reproduce this. I also connect to ZNC.

Fixed in #1115. I think the ZNC thing was just a red herring


Refactoring SSA and SignalRunner. New RecurrenceRunner by @v1docq

Author of this refactoring is @v1docq
-wavelet feature extraction has been reworked. Now he using automated level of approximation calculation algo. After approx procedure runner create a vector of statistical features of each approx level.
-spectral feature extraction has been reworked. Now he using Hard Singular value threshold (HSVT), which truncated a decomposed matrix. For best window selection a pareto metric was implemented.
-add new Reccurence feature generator.

PR closed due to conflicts


Implement create collection

FYI GetOrCreate... will follow.

FYI GetOrCreate... will follow.

That's great! I checked the PR and  merged it, looks good to me


Log url from github actions is broken

See https://github.com/openaddresses/openaddresses/pull/6925#issuecomment-1710713420

Fixed in a84d1d0.


Could not serialize object

Been having some problem getting pbspark to work.
I get the following error:
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/pyspark/serializers.py", line 437, in dumps
    return cloudpickle.dumps(obj, pickle_protocol)
  File "/usr/local/lib/python3.10/site-packages/pyspark/cloudpickle/cloudpickle_fast.py", line 73, in dumps
    cp.dump(obj)
  File "/usr/local/lib/python3.10/site-packages/pyspark/cloudpickle/cloudpickle_fast.py", line 563, in dump
    return Pickler.dump(self, obj)
TypeError: cannot pickle 'google._upb._message.Descriptor' object

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/local/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/vscode/.vscode-server/extensions/ms-python.python-2022.6.3/pythonFiles/lib/python/debugpy/__main__.py", line 45, in <module>
    cli.main()
  File "/home/vscode/.vscode-server/extensions/ms-python.python-2022.6.3/pythonFiles/lib/python/debugpy/../debugpy/server/cli.py", line 444, in main
    run()
  File "/home/vscode/.vscode-server/extensions/ms-python.python-2022.6.3/pythonFiles/lib/python/debugpy/../debugpy/server/cli.py", line 285, in run_file
    runpy.run_path(target_as_str, run_name=compat.force_str("__main__"))
  File "/usr/local/lib/python3.10/runpy.py", line 269, in run_path
    return _run_module_code(code, init_globals, run_name,
  File "/usr/local/lib/python3.10/runpy.py", line 96, in _run_module_code
    _run_code(code, mod_globals, init_globals,
  File "/usr/local/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/workspace/test_proto.py", line 61, in <module>
    dfs = df.select(mc.from_protobuf(df.value, SimpleMessage).alias("value"))
  File "/usr/local/lib/python3.10/site-packages/pbspark/_proto.py", line 316, in from_protobuf
    return protobuf_decoder_udf(column)
  File "/usr/local/lib/python3.10/site-packages/pyspark/sql/udf.py", line 199, in wrapper
    return self(*args)
  File "/usr/local/lib/python3.10/site-packages/pyspark/sql/udf.py", line 177, in __call__
    judf = self._judf
  File "/usr/local/lib/python3.10/site-packages/pyspark/sql/udf.py", line 161, in _judf
    self._judf_placeholder = self._create_judf()
  File "/usr/local/lib/python3.10/site-packages/pyspark/sql/udf.py", line 170, in _create_judf
    wrapped_func = _wrap_function(sc, self.func, self.returnType)
  File "/usr/local/lib/python3.10/site-packages/pyspark/sql/udf.py", line 34, in _wrap_function
    pickled_command, broadcast_vars, env, includes = _prepare_for_python_RDD(sc, command)
  File "/usr/local/lib/python3.10/site-packages/pyspark/rdd.py", line 2816, in _prepare_for_python_RDD
    pickled_command = ser.dumps(command)
  File "/usr/local/lib/python3.10/site-packages/pyspark/serializers.py", line 447, in dumps
    raise pickle.PicklingError(msg)
_pickle.PicklingError: Could not serialize object: TypeError: cannot pickle 'google._upb._message.Descriptor' object

Using the following code:
from pyspark import SparkContext
from pyspark.serializers import CloudPickleSerializer
from pyspark.sql.functions import struct
from pyspark.sql.session import SparkSession

from pb.simple_pb2 import SimpleMessage
from pbspark._proto import MessageConverter

sc = SparkContext(serializer=CloudPickleSerializer())
spark = SparkSession(sc).builder.getOrCreate()
spark.conf.set("spark.sql.session.timeZone", "UTC")

example = SimpleMessage(
    name="test",
    quantity=5,
    measure=5.5
)

e = example.SerializeToString()
p = SimpleMessage()
p.ParseFromString(e)

print(p)

data = [{"value": example.SerializeToString()}]

df = spark.createDataFrame(data)  # type: ignore[type-var]
df.show()
df.schema

df.printSchema()

# Everything above works

mc = MessageConverter()
s = SimpleMessage()

dfs = df.select(mc.from_protobuf(df.value, SimpleMessage).alias("value"))
df_again = dfs.select(mc.to_protobuf(dfs.value, SimpleMessage).alias("value"))
df_again.show()

simple.proto
syntax = "proto3";

package pb;

message SimpleMessage {
  string name = 1;
  int64 quantity = 2;
  float measure = 3;
}

requirements.txt
certifi==2<IP_ADDRESS>
charset-normalizer==2.0.12
click==8.1.3
cloudpickle==2.1.0
croniter==1.3.5
dask==2022.5.2
delta-spark==1.2.1
deltalake==0.5.7
distributed==2022.5.2
docker==5.0.3
duckdb==0.3.4
fsspec==2022.5.0
HeapDict==1.0.1
idna==3.3
importlib-metadata==4.11.4
importlib-resources==5.7.1
Jinja2==3.1.2
kafka-python==2.0.2
locket==1.0.0
MarkupSafe==2.1.1
marshmallow==3.16.0
marshmallow-oneofschema==3.0.1
msgpack==1.0.4
mypy==0.961
mypy-extensions==0.4.3
mypy-protobuf==3.2.0
numpy==1.22.4
packaging==21.3
pandas==1.4.2
partd==1.2.0
pbspark==0.5.0
pendulum==2.1.2
polars==0.13.42
prefect==1.2.2
protobuf==4.21.1
psutil==5.9.1
py4j==<IP_ADDRESS>
pyarrow==8.0.0
pyparsing==3.0.9
pyspark==3.2.1
python-box==6.0.2
python-dateutil==2.8.2
python-slugify==6.1.2
pytz==2022.1
pytzdata==2020.1
PyYAML==6.0
requests==2.27.1
six==1.16.0
sortedcontainers==2.4.0
tabulate==0.8.9
tblib==1.7.0
text-unidecode==1.3
toml==0.10.2
tomli==2.0.1
toolz==0.11.2
tornado==6.1
types-protobuf==3.19.21
typing_extensions==4.2.0
urllib3==1.26.9
websocket-client==1.3.2
zict==2.2.0
zipp==3.8.0

protoc version 21.1

can you post your simple_pb2.py file?

vscode ➜ /workspace $ /usr/local/bin/protoc --version
libprotoc 3.21.1
vscode ➜ /workspace $ cd pb
vscode ➜ /workspace/pb $ /usr/local/bin/protoc -I . --python_out=. --pyi_out=. --proto_path=. ./*.proto

simple_pb2.py
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: simple.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import builder as _builder
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()

DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0csimple.proto\x12\x02pb\"@\n\rSimpleMessage\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x08quantity\x18\x02 \x01(\x03\x12\x0f\n\x07measure\x18\x03 \x01(\x02\x62\x06proto3')

_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'simple_pb2', globals())
if _descriptor._USE_C_DESCRIPTORS == False:

  DESCRIPTOR._options = None
  _SIMPLEMESSAGE._serialized_start=20
  _SIMPLEMESSAGE._serialized_end=84
# @@protoc_insertion_point(module_scope)

Here you go:
https://github.com/ttelfer/spark_proto

I think I figured it out. The problem is how you are generating your proto files, and then subsequently referencing them in python.
Note that in this project, when we generate using protoc in the Makefile we run something like this
poetry run protoc -I . --python_out=. --mypy_out=. --proto_path=. ./example/*.proto

We run this from the root directory and the resulting pb2 file creates messages with a reference to the fully qualified module here: https://github.com/crflynn/pbspark/blob/387eb74fc578145077117a976234e758510d5f5c/example/example_pb2.py#L23
When you are running your protoc you are running it from within the pb folder, which results in the fully qualified module being incorrect here: https://github.com/ttelfer/spark_proto/blob/02580c88e16245337ba2fc246e2bc67b5c7b3612/pb/simple_pb2.py#L19 which differs from how it's referenced in business logic here: https://github.com/ttelfer/spark_proto/blob/02580c88e16245337ba2fc246e2bc67b5c7b3612/test_proto.py#L6
Note the simple_pb2 vs pb.simple_pb2 whereas in the pbspark repo both are example.example_pb2.
This reference is important when it comes to pickling. Since this module reference is wrong it's not able to pass the pyspark udf down to the workers via pickling because it can't reference the message in the same way you would import it.
If you change that module reference to pb.simple_pb2, or rather regenerate your pb2 files by invoking protoc from the root directory, I think it should work. Although you will probably run into the bytearray bug I found above due to the newer version of protobuf.

@crflynn  running protoc as you suggested fixed the problem Thank you for taking a look.
Can I buy you a coffee?

No problem, and thanks for helping out with posting your project code.
I appreciate the offer; you should buy one for a friend of yours instead or consider donating to an organization like the EFF.


🎮 Game Request
Stacker game uses just html and css, at every level a group of boxes moves on a 10x10 grid.
Point down the features
Have to catch the speed of the boxes which are moving and have to freeze them at our desired place. This game's goal is to challenge the speed of player's vision and skills to make to the top of the stack.

Thank you for raising an issue 💗
You can self assign the issue by commenting /assign in comment 😀
Make sure you follow CODE OF CONDUCT and CONTRIBUTING GUIDELINES 🚀
Don’t Forget to ⭐ our GameZone🎮
Make sure you join our Discord🕹

Hey @sabhisharma-ise!
We are already having a similar game request in #1850 👀
Make sure you come up with a cool unique idea 😀
Waiting for your new game idea 💗.

Hey @sabhisharma-ise ! Thank you so much for your raising the issue💗
It’s all yours, you can come anytime again and make some contributions! 🚀
Alone, we can do little, but together we can do so much! 😇


Chat Archive and Captioning Upload

Closes #32
This pull request will add the ability to download chat logs from Twitch VODs alongside the VOD download itself, as well as the ability to reformat and export said logs into useful closed captioning formats like SAMI and RealText.

PR TODO:

[ ] Chat downloading

[x] Initial query
[ ] Pagination

[ ] Chat file archiving

[ ] Parsing downloaded JSON
[ ] Reformatting dates as second offsets from downloaded VOD starting form 0
[ ] Writing each line of the chat log file as something like offset=0;color=#FFFFFF;message="...".

note: possibly format the message with proper escape codes? or find certain escape codes in ascii to use as separators. look into allowed characters in IRC standard?
also note: this is not the file that gets uploaded to YouTube. This acts a base for the exported closed captioning file to work from.

[ ] Chat exporting

[ ] Slicing chat from specific offsets of seconds from 0
[ ] Taking archived chat logs and transcribing them into different formats

Possibly go line by line for the export? Each formatting function can just take the offset, color, and message and go from there as a prototype.
[ ] SAMI
[ ] RealText

[ ] Chat uploading

[x] New Google API Scopes
[ ] Additional fields for stage files to include exported captions such as a flag and path
[ ] service pulling captions list and inserting new media file upload for the captions file (with appropriate flags)

SAMI Format Document: https://www.w3.org/WAI/sami.html
Notes: uses milliseconds for timestamps, doesn't seem to have a stop parameter for SYNC (because of this, may need multilines to stack?). very html/xml-like but has oddities
Related stackoverflow question: https://stackoverflow.com/questions/55201241/need-help-to-format-youtube-sami-smi-caption
Example:
<SAMI>

		<SYNC Start=200>
NotQuiteApex: faek PogChamp :y
		<SYNC Start=10000>
NotQuiteApex: faek PogChamp 2!!!!!!!

</SAMI>

RealText Format Document: http://sites.mpc.com.br/ric/realtext/RealText_tutor.html
Notes: uses seconds in quotes (???), text can overlap itself (useful maybe?)
Example:
<window type="generic"
 wordwrap="true" />

<time begin="0" end="5"/>NotQuiteApex: faek PogChamp :y
<time begin="2" end="10"/>NotQuiteApex: faek PogChamp 2!!!!!!!

</window>

Definitely gonna need some formatting rules and config flags.

Also, YouTube let's subtitle tracks be named. VodBot should absolutely name the chat upload appropriately automatically.


refactor(linter): add LintFilter

Re-creation of #5329

#5685  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @DonIsaac and the rest of your teammates on  Graphite


Proble with different models!!

Hi,
I am having problem in implementation of different models even in Example Usage!
for example==>python run_dbn.py --dataset mnist --main_dir dbn-models --model_name my-deeper-dbn  --verbose 1 --rbm_layers 512,256 --rbm_learning_rate 0.005 --rbm_num_epochs 15 --rbm_batch_size 25 --finetune_batch_size 25 --finetune_learning_rate 0.001 --finetune_num_epochs 10 --finetune_loss_func softmax_cross_entropy --finetune_dropout 0.7 --finetune_act_func relu
output:
Traceback (most recent call last):
File "run_dbn.py", line 71, in
trX, trY, vlX, vlY, teX, teY = datasets.load_mnist_dataset(mode='supervised')
File "/home/h3kt0rz/.local/lib/python3.5/site-packages/yadlt/utils/datasets.py", line 27, in load_mnist_dataset
mnist = input_data.read_data_sets("MNIST_data/", one_hot=one_hot)
File "/home/homayoon/h3kt0rz/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py", line 235, in read_data_sets
SOURCE_URL + TRAIN_IMAGES)
File "/home/h3kt0rz/tensorflow/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/datasets/base.py", line 208, in maybe_download
temp_file_name, _ = urlretrieve_with_retry(source_url)
File "/home/h3kt0rz/tensorflow/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/datasets/base.py", line 165, in wrapped_fn
return fn(*args, **kwargs)
File "/home/h3kt0rz/tensorflow/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/datasets/base.py", line 190, in urlretrieve_with_retry
return urllib.request.urlretrieve(url, filename)
File "/usr/lib/python3.5/urllib/request.py", line 188, in urlretrieve
with contextlib.closing(urlopen(url, data)) as fp:
File "/usr/lib/python3.5/urllib/request.py", line 163, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.5/urllib/request.py", line 472, in open
response = meth(req, response)
File "/usr/lib/python3.5/urllib/request.py", line 582, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python3.5/urllib/request.py", line 510, in error
return self._call_chain(*args)
File "/usr/lib/python3.5/urllib/request.py", line 444, in _call_chain
result = func(*args)
File "/usr/lib/python3.5/urllib/request.py", line 590, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden
Please help me

Probably your link is broken.. try changing DEFAULT_SOURCE_URL to  'http://yann.lecun.com/exdb/mnist/'
in  Lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\mnist.py

Default source https://storage.googleapis.com/cvdf-datasets/mnist/ isn't working now.
Thanks @KapoorHitesh for the update


Why does "go help environment" not mention GOTOOLDIR?

Currently running Go 1.10.1 on linux/amd64, and noticed that while "go env" prints (among other things) the value of GOTOOLDIR:
GOTOOLDIR="/usr/lib/golang/pkg/tool/linux_amd64"
"go help environment" says nothing about the purpose and usage of that variable. Is that deliberate?

The go help environment message was written in d23973d23ca19f5c2992467c01e02df1780b576c by Ian. Maybe GOTOOLDIR was left out on purpose since the goal was to document "General-purpose environment variables"?
cc @ianlancetaylor for decision.

As a Go newbie, I had no idea what GOTOOLDIR was responsible for, I just noticed the discrepancy in that it was mentioned in one place and not the other, that's all. I suspect I'm not the only person who ever noticed that, just the only one who whined about it. :-)
Are there any other variables that might have been overlooked this way?

go env is mostly used for debugging purposes, while the purpose of go help environment is to document environment variables that the user may want to set to change the go tools' behaviour. Since the two have different goals, they don't necessarily have to describe the same set of variables.
On the other hand, GOTOOLDIR is currently more or less undocumented, so it may be a good idea to still include it in the go help environment output, in case someone like you sees it on go env and wants to know what the variable points to.


Fix README in examples

Codecov Report
Patch and project coverage have no change.

Comparison is base (13b1907) 100.00% compared to head (19424f3) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #15   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            4         4
  Lines          331       331
  Branches        64        64
=========================================
  Hits           331       331

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Itemlist Sizechanges lag when showing a lot of images

Idea: queue based async image loading to prevent opening a lot of threads


Update submodules

Update devlib and trappy to the latest and greatest

Let's boost LISA by using the most shining version of the main dependency libs ;-)


phone number login

Can we use this libraby for phone number login? and if yes how?

If you wish to receive SMS from your phone number login, no this lib cannot help you. I would suggest you implement your logic using a library and provider such as twilio.


Error reporting , number_chars/2

#13:
?-  number_chars(N,[a|a]).
2022/04/08 21:55:12 error(type_error(list, a), 'Expected list, found engine.Atom.') % unexpected

Expected: type_error(list, [a|a]).
To make errors more uniform, it helps a lot to express them internally in two ways: must_be(Type, X) and can_be(Type, X). See e.g. library(error) of Scryer. In above case, the entire term has to be reported. with can_be(list, [a|a]) you get this automatically.
(Also note that a dot in a list is not recognized just as in #1)

Maybe a clarification for this table which was created in preparation of Cor.2. What you need to conform to is Section 0 and Section 2. In Section 1 the sorry state prior to Cor.2 is depicted..

@ichiban: one question on this: how do I go-wise update and recompile?  ((For rust I say: git pull && cargo build --release and for C mostly git pull && make))

@UWN Thank you very much for letting me know the problems! git pull && go install github.com/ichiban/prolog/cmd/1pl will recompile and install 1pl from the source code.
Note that go install github.com/ichiban/prolog@latest will install the latest release of 1pl. Without a version suffix, it recompiles and install from the source code.
MacBook-Air:prolog ichiban$ git pull
Already up to date.
MacBook-Air:prolog ichiban$ go install github.com/ichiban/prolog/cmd/1pl
MacBook-Air:prolog ichiban$ $(go env GOPATH)/bin/1pl
Top level for ichiban/prolog (devel)
This is for testing purposes only!
See https://github.com/ichiban/prolog for more details.
Type Ctrl-C or 'halt.' to exit.
?-

Alternatively, you can git pull && go run cmd/1pl/main.go to run without installing it.
MacBook-Air:prolog ichiban$ git pull
Already up to date.
MacBook-Air:prolog ichiban$ go run cmd/1pl/main.go
Top level for ichiban/prolog (devel)
This is for testing purposes only!
See https://github.com/ichiban/prolog for more details.
Type Ctrl-C or 'halt.' to exit.
?-

Here is the draft for the corrections of Cor.2 for the errors of number_chars/2, so you can see all error clauses at the same time.

@UWN I'm sorry for not being clear! To git pull, you need to make a working copy first:
$ cd ~/src                                                   # Or anywhere you work with code.
$ git clone git@github.com:ichiban/prolog.git ichiban-prolog # Creates a working copy in ~/src/ichiban-prolog.
$ cd ichiban-prolog
$ git pull
Already up to date.
$ go install github.com/ichiban/prolog/cmd/1pl               # Installs 1pl from this working copy.

I think this is the fastest way to do git pull && go install github.com/ichiban/prolog/cmd/1pl.
Alternatively, you can fork github.com/ichiban/prolog first and make a working copy of it. It's a preferred way to make a pull request: https://github.com/ichiban/prolog#contributing
The files under ~/go/pkg/mod must be the cached files to build the 1pl command from go install github.com/ichiban/prolog/cmd/1pl@latest.

Or, how can I cleanly uninstall it? Such that I can just install it anew? I tried SO for this, but did not get any go-related good answer. Maybe I messed up something. But for other systems, everything is fine.

Thank you, finally, I have everything in place. I will close this now, to make sure that issues remain related to one clear topic.


Statically link prebuilt ord binaries

#1430 can be fixed if we provide statically instead of dynamically linked prebuilt binaries. I believe I tried this, and ran into an issue with statically linking a dependency. It would be great if we could revisit this and provide statically instead of dynamically linked binaries.

Static files can be compiled using the musl:
# Install musl dependencies
rustup target add x86_64-unknown-linux-musl
rustup toolchain add nightly-x86_64-unknown-linux-gnu
rustup target add x86_64-unknown-linux-musl --toolchain=nightly
sudo apt install musl-tools -y

# Compile
cd ord
cargo build --release --target=x86_64-unknown-linux-musl

cd ord/target/x86_64-unknown-linux-musl/release
ldd ord

This is my output

Thanks @ty01528 for providing the fix. However it doesn't work to me on Debian 10. Although I compiled the ord with static binaries:
ldd ord
statically linked

I am still getting the error:
ord --version
ord: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by ord)
ord: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ord)
ord: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.29' not found (required by ord)
ord: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by ord)
ord: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ord)

Any thoughts?


No Hovering Effect to Website Logo

The current website logo lacks a hovering effect. This feature request is to add a hovering effect to the website logo to enhance its visual appeal and provide a better user experience. The effect should include a subtle shadow and a slight scaling to make the logo more interactive and visually engaging.
Comment
Describe the new feature or enhancement you'd like to see.
I would like to see a hovering effect implemented for the website logo. The effect should include:
A subtle shadow that appears when a user hovers over the logo.
A slight scaling effect to give the logo a sense of depth and interactivity.
Use Case
How would this feature enhance your use of the project?
This feature would improve the overall user experience by providing visual feedback when interacting with the website logo. It would make the website appear more modern and engaging.
Describe a specific use case or scenario where this feature would be beneficial.
When users hover over the website logo, the hovering effect will provide a clear indication of interactivity, making the website feel more dynamic and responsive. This can enhance brand recognition and make the site more visually appealing.

@codervivek5 sir please assign this task to me
under gssoc 2024

no need to add these type of effects


code completion tutorials fixes

It's a benchmark for trying to get back sample and also remove some directlink to doc / repo in order to help scanning the deadlink. (Will never end )
Use + continuation block to have properly ordered + formated tutorial as some number are not good on the live site.
Removed the 2 space gap that make text look ugly
tutorial code rewritten in ebarboni repo for the pleasure 😄 see here: https://github.com/ebarboni/netbeanssamples/tree/main/ using the former folder organisation minus the version.
May better fit in apache repo maybe.
Ugly link to dzone.com webarchive.
Could we rewrite somewhere in the site what @geertjanw wrote ? Instead of webarchive link
https://web.archive.org/web/20151109174504/https://dzone.com/articles/mimelocation-mimeregistration
It could fit in the wiki section maybe.
Sister PR for the attributes addition https://github.com/apache/netbeans-antora-site/pull/20

@neilcsmith-net or @mbien will merge that today. Wanna see if infra is ok on linking to samples repo. To have some fundation to go further


Magic number verification failed for page - Distributed mode

OrientDB Version:  2.2.31 Enterprise Edition
Java Version: 1.8.0_131
OS: Amazon Linux AMI release 2018.03
Expected behavior
No exception while writing data to OrientDB
Actual behavior
No writing is allowed after 3-4 hours of continuously pushing data to orientdb. Got the following exception:

In orientDB, got the following exception

Restart orientdb initially helped but the issue happened again after 3-4 hours
Sometime orientdb could not be restarted because some database files were missing

Steps to reproduce
Continuously pushing data via a restful service to orientdb for more than 3-4 hours
Orientdb runs in distributed mode 1 master, 1 replica
No issue with  CPU/RAM/DISK before it crashed

Update on this issue:
I took the advice from the other tickets: Export data into JSON file and import into a empty database  - but it did not help. The same issue happened again
The question is do we have any work-around in case this issue  happens?

Guys the problem is not in storage but in  the way how distributed send database to other node assigned to @tglman

Yes, that is interesting. None the less could you try on completely not distributed node. I have to be sure.
What is the size of the files for this specific edge class? You see I expect that issue in distributed replication because index.cpm file is completely absent according to your screenshot, that can not happen in standalone mode because we never remove files (obviously :-) )

Should be fixed on latest 3.0.x but you should import/export your database to resolve it.


⚠ Jenkins Plugins Artifactory has degraded performance

In b2dd12a, Jenkins Plugins Artifactory (https://get.jenkins.io/plugins/artifactory/) experienced degraded performance:

HTTP code: 200
Response time: 2783 ms

Resolved: Jenkins Plugins Artifactory performance has improved in 4ab8951 after 2 hours, 32 minutes.


Add m0nst4 theme

Thanks for the adding the theme to the registry!

Thanks for the adding the theme to the registry!


[Question] grammar, early errors and precedence climbing

@mikesherov I'm trying to understand the Esprima code, and solve all known issues, but no solutions yet.
Regarding early errors. What is the ideas here? It's own Scope tracker ala Acorn, or a solution ala Shift? See parseScript. It says
3. If body is a List of errors, then return body.

Under all circumstances it has to return an list of errors if we are following the specs. If we think about performance, scanning the whole AST tree aka Shift maybe too expensive?
Regarding the grammar. Current grammar solution isn't updated to latest specs, and using this inside functions like isolateCoverGrammar() is expensive. What is the thoughts here, and are the grammar error isolated out, so an error array will be returned? See what I wrote above.
The precedence climbing with all pop and push is also costly. TypeScript have a improved solution seen here. Any plans to change this?

Please submit questions or other open-ended discussions to the mailing-list instead.

Not much activity there, but will give it a shot.


Bug report: gulp manifest doesn't generate manifest (or errors)

Description
gulp manifest doesn't generate a manifest zip file.
Steps to reproduce
gulp manifest
Expected results

Actual results

Project you experience issues with
yoteams-deploy
generator version
4.0.1
build tools version
1.8.0
nodejs version
v16.13.2
npm version
8.1.2
Operating system (environment)
macOS
Additional Info
It was working at one point, returned today and the pre-existing manifest zipfile wasn't being updated.  Unzip & validate the manifest - not updated.  Just delete the zipfile.  gulp manifest never recreates the file and no error in command.
yoteams-deploy version is 1.2.0-preview.2
gulp nuke, gulp build, gulp validate-manifest and gulp manifest all execute without error but still no manifest zip file.

Filing this issue helped lessen the problem area.  The manifest.json file had a syntax error in it:

I commented out a line and didn't think about it.  Removed that line entirely and now manifests are being generated.
So I guess the question is: why did gulp [validate-manifest|manifest|build] pass without errors?

Hi @pglombardo
That's indeed not good. Thanks very much for reporting. We need to do some investigation then.
Cheers,


Redesign popup msgs

There are several popup msgs that occur in different places in the app. Copied to clipboard msgs, password fail on account created msg, sending transaction. These need to be looked for color, style, font size, popup placement on screen, and duration. In some cases it make be better to make the msg persistent and for the user to tap ok to dismiss the msg.

Fixed in #321


Deep .merge of identical objects that contain arrays returns a new object

A .merge with {deep: true} of two identical objects that contain an array is returning a new object.
For example:
var a = Immutable({foo: []})
var b = Immutable({foo: []})
var ab = a.merge(b, {deep: true})
ab === a  // => false

Without a nested array it works as expected:
var a = Immutable({foo: {}})
var b = Immutable({foo: {}})
var ab = a.merge(b, {deep: true})
ab === a  // => true

Added a failing test case for this in AkiraMD/seamless-immutable@98a912dd1d60e2fe7c805f6455c7e1c045ef0a88

Oh boy... started trying to fix this myself, but to be honest the current codebase is kind of a horror show. Going to try some other libraries instead.


Mapbox iOS SDK 10.7 causes bug in iPhone 7 on device, unable to down grade to 10.6

Please feel free to disregard this issue or leave this as an issue for now for those potentially seeing problems with iPhone 7 and the current Mapbox iOS v10.7 implementation.
There is currently a bug for iPhone 7 and Mapbox iOS SDK 10.7 where 3D displays are not working correctly and the app is crashing. https://github.com/mapbox/mapbox-maps-ios/issues/1508
I'm unable to down grade to an earlier version of the Mapbox SDK with out manually altering the RCTMGL swift code due to the use of new layer attributes such as fillExtrusionAmbientOcclusionIntensity & fillExtrusionAmbientOcclusionIntensity that have been introduced in the newest version of the Mapbox SDK
Just wonder if there is a need to implement SDK specific code in this library.

Probibly just should stop supporting soon to be legacy devices - thou my iPhone 7 still works perfectly well.

Just wonder if there is a need to implement SDK specific code in this library.

It's autogenerated code. And we need it to support latest features of the libraries.
Those two lines get's the versions for android/iOS.
https://github.com/rnmapbox/maps/blob/038abe17beaf3c8f7a8505270d379978a6716a13/scripts/autogenerate.js#L62-L63
You should be able to change rnMapboxMapsDefaultMapboxVersion and implementation 'com.mapbox.maps:android: versions in your iOS/android build files and run autogenerate again to get a version that works on older map boxes.

Thanks @mfazekas, that is good to know - just thought it good to leave this here for anyone else thats looking.


Child fishing HP flag is busted

Child fishing HP flag is busted, it doesn't appear in the Lake Hylia area on the menu when collected.

Fix in #9


add some api doc

add the BigIntegerTypeHandler

Could you just remove the number from the explanation?
For example : has five build() methods -> has the following build() methods
And if it's possible, please apply the non-translation changes to the other language files.
Thank you!
Iwao


triggering redirects?

Hello! Great work on next-controller. Really love the clean API as an alternative to function API route handlers!
I was curious on what the recommended approach is for redirecting a user to another route. I noticed you can throw a 300 or 301 status code:
throw new HttpException(301);

However not sure how to trigger a redirect to a desired route.
I noticed the this.res object lacks the res.redirect([status, ] path) method from Node res, so curious what the recommended way to do a redirect is?

Sorry for responding so late. The reason why there isn't a res.redirect([status, ] path) is that it is an express-like function, next-controller does not constraint the user to use a specific framework (not even next itself) but allows us to use any framework we like instead. But yes there is a to perform a redirect, to do so, just declare the type of the req and res property explicitly in your controller, for example, if you're using express:
@api
export default class MyController extends ApiController {
    protected req: Express.Request;
    protected res: Express.Response;

    get() {
        const res = this.res; // now `res` has a redirect function since it's included in express
    }
}

next itself also has a dedicated Reponse interface, just declare it in the controller and you're free to use. Don't throw an HttpException if the status code is not 4xx or 5xx, it's confusing.


Why does template installation time out? Can the timeout actually be set

Output of helm version:Timeout：request did not complete within requested timeouts 30s
Output of kubectl version:

@qitao-222 Can you provide more details to help troubleshoot the issue? What Helm version are you using? Can you show the template command you run and the output from the command?


Problem definition (and term) protein retention in Golgi apparatus

GO:0045053  protein retention in Golgi apparatus
Biological Process
Definition
The retention of proteins within the Golgi apparatus. Golgi-localized carbohydrate-modifying enzymes have a short N-terminal domain that faces the cytosol, a single transmembrane alpha helix, and a large C-terminal domain that faces the Golgi lumen and that contains the catalytic site. How the membrane-spanning alpha helix in a Golgi enzyme causes its localization and prevents its movement to the plasma membrane is not known.
I think this term is probably generally used for the regulatory pathway that holds cargo proteins in the Golgi until they are required on the cell surface (such as the ubiquitin ligase Pub1).
However, the gloss is about retention signals in Golgi resident proteins (this should not be annotated as a process, it would be like annotating a protein with a TM domain to retention in the membrane.)
I suggest obsoleting the term (2 meanings), and suggest that for the intended regulatory pathway use
"GO:0042997   negative regulation of Golgi to plasma membrane protein transport" instead.
(I.e this is 2 ways of saying the same thing)

Note that the term also seems to be used for "retrograde transport"  (i.e recycling) which is also another term.
I am blocking this GO term for PomBAse today so I won't report the PAINT mappings as hopefully they will disappear.


.icon-delete style visibility

Hi,
In Chrome, when I hover the search area as described in the below image, the cursor changes to a hand on the specific area. Perhaps, the .icon-delete style on line 225 needs as well the visibility property as 'hidden' and also this property must be 'visible' alongside the opacity property on line 238.

Thank your for reporting us that!


Plugins/extensions

I saw that OpenAI just released ChatGPT plugins to everyone.
This includes: wolfram alpha, browsing, ambition, zapier....
I've been using smol-ai for a few days and I think it's awesome.
Are there any plans to integrate plugins in the project (is it even possible to access these features through the API?)
Do you need help with that?
Cheers //

thanks  for the idea! no, not right now, but i'm loooking at Voyager to do some skill library stuff...


Adapt to blackjax 1.0.0

Adapts the code for the hmc and nuts kernels to reflect changes in blackjax 1.0.0.
BlackJax changed their kernel interface. They use now classes with the member function step. I adapted the code such that it requires minimal changes in our code base. However, the readability is decreased and we should tidy it up either in this PR or in a subsequent PR.

Awesome, that was so quick! Are you still actively working on this or should I already take a look tomorrow? If so, you can remove the draft status.

thanks :-) that was fast 🚀


Voting with websockets

added voting (already checked with backend) going to backend and receiving
added timer 10s in frontend with bubbles bursting at the end and sending to backend that it is the end of the question

Closes #49 Closes #50


write.merge errors on table creation

Main class is initialized with adjust_sql_objects=True.
Actual errors: mssql_dataqframe.core.errors.SQLTableDoesNotExist
All dataframe columns are text with possibly no unique identifier.

Issue originates from pyodbc not raising pyodbc.ProgrammingError("...Invalid object name...") error for long strings.
pyodbc issue

fixed now that data types and sizes are explicitly checked before writing data


selector: '[href*=#]' not working

I'm trying to make this script work on all elements with a href attribute that contains a hashtag. In the documentation it's says it must be a valid CSS selector. Is this not valid?

You're missing the quotes around the #. Have you tried selector: '[href*="#"]' ?

I have tried '[href*="#"]' and "[href*='#']" aswell. Still doesn't work :/

I'll do some debugging and report back. Thanks.

Thanks! If it helps, this is how the URLs look like: /about-us/#compliance

Aha! This is the issue:

https://github.com/cferdinandi/smooth-scroll/blob/master/dist/js/smooth-scroll.js#L411
https://github.com/cferdinandi/smooth-scroll/blob/master/dist/js/smooth-scroll.js#L99-L169

In particular, getClosest is looking for a data attribute, class, ID, or element type rather than any valid CSS selector, so it's failing and return null. I would need to rewrite getClosest to support your use case (and I should). In particular, it looks like I should use the matches API: https://developer.mozilla.org/en-US/docs/Web/API/Element/matches#Browser_compatibility
I'll update this issue once it's been addressed, though I've got a few other commitments at the moment and cannot guarantee a completion date.

@horgen I haven't had time to address this just yet, but as a workaround in the interim, you can leave the default selector in place and use querySelectorAll to apply the data-scroll attribute. This can happen at any time, since the script checks for the selector on click rather than in advance.
var anchors = document.querySelectorAll( '[href*="#"]' );
for (var i = 0, len = anchors.length; i < len; i++) {
    anchors[i].setAttribute( 'data-scroll', 'true' );
}
smoothScroll.init();

In looking at this more closely, the match method is not widely supported. Accordingly, I'm recommending one programatically add the data-scroll attribute as part of the init process:
;(function (window, document, undefined) {

    'use strict';

    // Cut the mustard
    var supports = 'querySelector' in document && 'addEventListener' in window;
    if ( !supports ) return;

    // Get all anchors
    var anchors = document.querySelectorAll( '[href*="#"]' );

    // Add smooth scroll to all anchors
    for ( var i = 0, len = anchors.length; i < len; i++ ) {
        anchors[i].setAttribute( 'data-scroll', true );
    }

    // Initial smooth scroll (add your attributes as desired)
    smoothScroll.init();

})(window, document);


WheelPropagation Default Value

The default value for wheel propagation appears to be true. I had to explicitly define wheelPropagation to be false in order to prevent the custom scrollbar from scrolling the main page scrollbar.

Duplicate of #826


brain.screenshot(time_viewer=True) crash

I was running the mne-bids-pipeline (so with mne-23dev cloned from GitHub in backend), but a bug appeared just after the creation of the reports of the first subject. After investigation, it turns out that the bug comes from MNE, from the option time_viewer=True in the screenshot method. By setting it to false, the image plots nicely.
I tried to make a reproducible example with sample data, but this does not reproduce the issue (Else). So I've also included here the (IF True) my stc file and my subjects file which isolate the code on my computer.
from pathlib import Path
import matplotlib
import matplotlib.pyplot as plt
import mne
from mne.datasets import sample
matplotlib.use('Qt5Agg')

if True:
    stc_fname = Path("mne_data/ds003392/derivatives",
                     'mne-bids-pipeline/sub-01/meg/',
                     'sub-01_task-localizer_coherent+dSPM+hemi-lh.stc')

    subjects_dir = Path("mne_data/ds003392/derivatives/freesurfer",
                        'subjects')
    subject = 'sub-01'
    stc = mne.read_source_estimate(stc_fname, subject=subject)
else:
    data_path = sample.data_path()
    fname = data_path + '/MEG/sample/sample_audvis-meg'

    stc = mne.read_source_estimate(fname)
    subject = "sample"
    subjects_dir = Path("C:/Users/charb/mne_data/MNE-sample-data/subjects")
brain = stc.plot(subject=subject, subjects_dir=subjects_dir,
                 initial_time=0.13, views=['lat'], hemi='split')
brain.toggle_interface()
brain._renderer.plotter.reset_camera()
brain._renderer.plotter.subplot(0, 0)
brain._renderer.plotter.reset_camera()
figs, ax = plt.subplots(figsize=(15, 10))

# BUG : Set time_viewer to False to remove the Bug
image = brain.screenshot(time_viewer=True)
ax.imshow(image)
ax.axis('off')
plt.show()

Expected results
An interactive plot.
Actual results
When I run the code, the figure appears one second and then crashes
(mne_dev) C:\Users\charb\Desktop\parietal>C:/Users/charb/anaconda3/envs/mne_dev/python.exe c:/Users/charb/Desktop/parietal/test.py
Using pyvista 3d backend.

Using control points [13.01218636 16.52222281 48.36637508]
Traceback (most recent call last):
  File "c:\Users\charb\Desktop\parietal\test.py", line 51, in <module>
    image = brain.screenshot(time_viewer=True)
  File "C:\Users\charb\anaconda3\envs\mne_dev\lib\site-packages\mne\viz\_brain\_brain.py", line 2631, in screenshot
    trace_img = np.reshape(
  File "<__array_function__ internals>", line 5, in reshape
  File "C:\Users\charb\anaconda3\envs\mne_dev\lib\site-packages\numpy\core\fromnumeric.py", line 299, in reshape
    return _wrapfunc(a, 'reshape', newshape, order=order)
  File "C:\Users\charb\anaconda3\envs\mne_dev\lib\site-packages\numpy\core\fromnumeric.py", line 58, in _wrapfunc
    return bound(*args, **kwds)
ValueError: cannot reshape array of size 1082952 into shape (1015,4)

(mne_dev) C:\Users\charb\Desktop\parietal>

Additional information
I'm working on Windows.
(mne_dev) C:\Users\charb\Desktop\parietal\mne-bids-pipeline>python
Python 3.9.2 | packaged by conda-forge | (default, Feb 21 2021, 04:59:43) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import mne; mne.sys_info()
Platform:      Windows-10-10.0.19041-SP0
Python:        3.9.2 | packaged by conda-forge | (default, Feb 21 2021, 04:59:43) [MSC v.1916 64 bit (AMD64)]
Executable:    C:\Users\charb\anaconda3\envs\mne_dev\python.exe
CPU:           Intel64 Family 6 Model 158 Stepping 10, GenuineIntel: 8 cores
Memory:        7.9 GB

mne:           0.23.dev0
numpy:         1.20.2 {blas=NO_ATLAS_INFO, lapack=lapack}
scipy:         1.6.2
matplotlib:    3.4.1 {backend=Qt5Agg}

sklearn:       0.24.1
numba:         0.53.1
nibabel:       3.2.1
nilearn:       0.7.1
dipy:          1.4.0
cupy:          Not found
pandas:        1.2.4
mayavi:        4.7.2
pyvista:       0.29.1 {pyvistaqt=0.3.0, OpenGL 4.5.0 - Build <IP_ADDRESS>11 via Intel(R) UHD Graphics 630}
vtk:           9.0.1
PyQt5:         5.12.3
>>>

I'm guessing this is some sort of off-by-one error as:
>>> 1082952 // 4 / 1014
267.0

@GuillaumeFavelier can you look?

I added it in the list, I'll fixt it ASAP.

I'm trying to reproduce so I downloaded sub-01_task-localizer_coherent+dSPM+hemi-lh.stc and the sub-01 folder but I obtain the following when I run the script:
/tmp/bug.py in <module>
     10     subjects_dir = 'subjects'
     11     subject = 'sub-01'
---> 12     stc = mne.read_source_estimate(stc_fname)
     13 else:
     14     data_path = sample.data_path()

~/source/mne-python/mne/source_estimate.py in read_source_estimate(fname, subject)
    301             fname += '-stc'
    302         elif any(stc_exist) or any(w_exist):
--> 303             raise IOError("Hemisphere missing for %r" % fname_arg)
    304         else:
    305             raise IOError("SourceEstimate File(s) not found for: %r"

OSError: Hemisphere missing for 'sub-01_task-localizer_coherent+dSPM+hemi-lh.stc'

Also, as a way to mitigate since it's a blocker, does it work if you change the size parameter in stc.plot before calling screenshot()?

OSError: Hemisphere missing for 'sub-01_task-localizer_coherent+dSPM+hemi-lh.stc'

@crsegerie Can you share the STC for the right hemisphere two? Bot are needed here

Yes @GuillaumeFavelier, if I add size=(500, 500) in the stc.plot, the bug disappears !

the bug disappears !

I like your enthusiasm :) For me, it's still there in a corner case of stc.plot :sweat_smile:

Here is the right hemisphere : https://drive.google.com/file/d/1y7puZ7RPMGV6uB6tN_Pu-MgamuaAFvlb/view?usp=sharing
(In the script only left hemisphere is imported ? Weird, but ok...)

(In the script only left hemisphere is imported ? Weird, but ok...)

Yeah, MNE tries to automatically find the other hemisphere. It's a bit odd, yes…

Thanks for sharing. I still cannot reproduce locally but I'll try to simulate this scenario anyway and come up with a fix eventually.
About the origin of the issue itself, it's not clear so I can only guess here. Reasons why the trace plot would not have the correct size could be either unexpected DPI configuration or PyQt5 inconsistencies on Windows for example.

@GuillaumeFavelier yes I also suspected some kind of hi-DPI interaction
@crsegerie can you check if you have any of those settings for high-resolution displays activated?
https://windowsreport.com/fix-hidpi-issues-windows-10/

I checked my graphic settings, but did not find any anomalies.

if it is more convenient for you, we can arrange a meeting if you want to explore my debugger on VS Code?

@GuillaumeFavelier So the default size is 800; why would changing that to 500 change anything? What's the rationale? (It seems to work so this is great – but I have no idea why that works?)

PyQt5 inconsistencies on Windows for example.

Probably this, or something similar. My guess is that there is a situation where the sizes reported are inconsistent, or we don't use them correctly, and that whether or not this situation occurs depends on the size itself and/or interactions with the window (resizes, etc.). So trying different size options will tell us if some work and others don't, and then we could start looking at various MNE / Qt / matplotlib / vtk variables so see what each layer "thinks" the size should be, and thus figure out who's getting it wrong and why.

Thanks @larsoner!
I just realized that @crsegerie switched from size=800 (default) to size=(500, 500), i.e., a tuple. Maybe that's also part of the solution…

IIRC an int just gets turned into (size, size) internally so size=800 should give identical results to (800, 800)

Ok. I've tested (500, 500), 500, (800, 800), and 800 and it's not a matter of tuple not tuple... Only the 500 are working

Ok. I've tested (500, 500), 500, (800, 800), and 800 and it's not a matter of tuple not tuple... Only the 500 are working

You mean 500 and (500, 500) are working, yes?

Only the size matter, not the tuple

OK. 500 working, 600 working, 799 working, 800 not working, 801 not working

Can you see if you can reproduce with a simple example using sample data? For example:
import os
import os.path as op
import mne
from mne.datasets import sample

data_path = sample.data_path()
sample_dir = op.join(data_path, 'MEG', 'sample')
subjects_dir = op.join(data_path, 'subjects')
fname_stc = op.join(sample_dir, 'sample_audvis-meg')
stc = mne.read_source_estimate(fname_stc, subject='sample')
brain = stc.plot(subjects_dir=subjects_dir, size=500, inital_time=0.1)
img = brain.screenshot(time_viewer=True)
print(img.shape)

For me I get:
(669, 500, 3)

Can you tell me if this works for you at 500 and 800? And if one or both of them succeed, what the print statement prints?
Also, what is your screen resolution? And can you tell me if this prints something other than 1.:
>>> python -c "from mne.conftest import pixel_ratio; print(pixel_ratio.__wrapped__())"
1.0

There is a small typo inital_time > initial_time.
For me the code works for both 500 and 800.
For 500 I obtain : (667, 500, 3)
For 800 I obtain : (1067, 800, 3)
My screen resolution : 1920x1080.
When I run the tests, I get 1.

So the only difference is my 667 and your 669


On-Chain Payment no TX why?

Well i received a on-chain payment on my zap but when i try to go to the tx it says transaction not found why is it doing this how can i fix it any suggestions?

If this is still an issue please provide some more information to help us investigate (a transaction id would help). Thanks.


Angular 2 version

I believe it would be interesting to keep a version of the plugin that was compatible with the Angular 2 future (since this had a few minor changes in its structure), or even a better support of angular 1.5 components system.

Any updates on this?

https://github.com/danialfarid/ng-file-upload/issues/1243


Add: 8 Kanal

Channel Name
8 Kanal
Alternative Names (optional)
8 канал
Network (optional)
No response
Owners (optional)
No response
Country
RU
Subdivision (optional)
No response
City (optional)
Moscow
Broadcast Area
c/RU
Languages
rus
Categories (optional)
entertainment
NSFW
FALSE
Launched (optional)
No response
Closed (optional)
No response
Replaced By (optional)
No response
Website (optional)
http://8tv.ru/
Logo
https://www.lyngsat.com/logo/tv/num/8_tv_ru.png
Notes
No response

Channel8.ru


make VERSPM the Getting Started example

VERPAT is less complete than VERSPM so we agreed to update the Getting Started section to refer to VERSPM.  VESimHouseholds is a good example package for new users.

and also the VEGUI automatic test

VERPAT is getting close to complete and so we're going to keep it as the example.


point endianness fix

Fixes PostgreSQLPoint endianness when using binary encoding. Fixes #125.

Hey @tanner0101, you just merged a pull request, have a coin!
You now have 1102 coins.


Document requirement that G must be a JSON-serializable object

Would it be helpful to document the requirement that G must always be a JSON-serializable object? I found https://github.com/nicolodavis/boardgame.io/issues/533#issuecomment-569276056 after realizing that my game behaved differently depending on whether or not it was using a server; with purely client-side usage it handles instance methods correctly but with server-enabled multiplayer they are not defined.
In retrospect, the reason for this restriction was obvious, but it may not be immediately apparent when you're just starting out.

Sure! Would you like to open a PR? Maybe we could a note to the State section here?

Can we add some sort of automatic check? Even if it is meant to be run as part of the test suite? Basically encodify and decodify the state and see if it is still the same? This would prevent several bugs

@flamecoals We could add some tests for this. Are there any areas where you’ve seen this produce bugs?
I’m not sure we should add a step of stringify, parse, deep compare to the actual engine, although I guess at some point some kind of tooling behind a development flag could run these checks if enough people are running into this issue.

Thanks, submitted #743.
I thought about the automated checking idea at the framework level when I was creating this issue too. I'm personally fine without it; I can just write my own tests for this sort of thing.

Yes, We had a bunch of bugs in FBG caused by developers using classes to represent the state that are not serializable. The tricky thing is that sometimes while testing locally it works fine, but when playing an online game it will fail somewhat silently. So I like your idea of adding this check at least if the debug mode is on or something... I might send a PR later

I’ve debugged instances of people using classes in G at least twice in the Gitter chat and actually when I first started using the framework I also had the instinct to use classes for decks etc. so it does seem to be a relatively common problem. Thanks for adding this to the docs :+1:


Script Wrong on Page

This page provides the following script (below) to run.  This script fails on Windows 10 Pro.  The command mountvol does not have a switch of /s which is the first line in the list of commands provided.  So, the mounting to X: fails which makes the rest of the script commands fail.
mountvol X: /s
copy %WINDIR%\System32\SecConfig.efi X:\EFI\Microsoft\Boot\SecConfig.efi /Y
bcdedit /create {0cb3b571-2f2e-4343-a879-d86a476d7215} /d "DebugTool" /application osloader
bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} path "\EFI\Microsoft\Boot\SecConfig.efi"
bcdedit /set {bootmgr} bootsequence {0cb3b571-2f2e-4343-a879-d86a476d7215}
bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} loadoptions DISABLE-LSA-ISO
bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} device partition=X:
mountvol X: /d

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

ID: 41c2cb44-269d-3334-019a-726eb5432f1c
Version Independent ID: 251024cc-b818-18c6-a112-4ac0276cb4b1
Content: Manage Windows Defender Credential Guard (Windows 10)
Content Source: windows/security/identity-protection/credential-guard/credential-guard-manage.md
Product: w10
Technology: windows
GitHub Login: @DulceMontemayor
Microsoft Alias: dansimp

Please notice the amount of closed issues regarding this exact issue:

Disabling Windows Defender Credential Guard is not working with Windows 10 1803 #5190 by ealfan was closed 29 days ago
none of this worked - I still am unable to run my virtual machine #4952 by OhiosBatman was closed on Sep 23
Instructions regarding Windows Defender Credential Guard EFI variables do not work #4221 by foxbunny was closed on Jun 23
variable is incorrect #4084 by lengthmin was closed on Jul 24
Command line instructions are incorrect #3234 by RichardRanft was closed on Sep 6
Neither the steps worked and nor the tool worked :-( #3108 by sachinmar was closed on Apr 8
maybe an extra step is mentioned in the doc? #2663 by sasanmcp was closed on Feb 20
Windows Sandbox Enables Windows Defender Credential Guard #2612 by hadeernd was closed on May 7
Instructions for disabling not working... #2569 by darnocian was closed on May 9
Credential guard enabled but not running... #2327 by haseeb1986 was closed on Apr 16
[SOLVED] ERROR!! "The device is not valid as specified" ! #2216 by ahmedbr was closed on Jun 3
**Can't disable Credential Guard #2141 by tomneko was closed on Feb 28
Terminated Credential Guard #1984 by jkd2020-github was closed on Jun 9
DOES NOTHING #1924 by cacodemon9000 was closed on Aug 14
-SOLVED- It doesn't work for me #1915 by 2IRG-FB was closed on Jun 9
Missing parts for VMWARE and HAXM users #1862 by Vahhab was closed on Oct 16, 2018
The parameter is incorrect. #1776 by damian123 was closed on Jun 23
bcdedit missing DISABLE-VBS identity protection security #1623 by mgeatz was closed on Sep 12, 2018
(Solved) Raw-mode is unavailable courtesy of Hyper-V. (VERR_SUPDRV_NO_RAW_MODE_HYPER_V_ROOT) #1556 by DuggerConsulting was closed on Jun 23
Credential Guard via Intune #1400 by tmguinn was closed on Apr 11

@toddalbers. Firstly disable secure boot and enable legacy boot mode in bios
Just now i entered those commands with admin rights, ALL commands worked properly.
i enabled Windows Defender Credential Guard EFI. here is the screenshot

@toddalbers : is there a chance that you have tried running cmd.exe as a regular user, without selecting to run the program as Administrator?
Another possible explanation for your issue might be that your computer does not have an UEFI BIOS, although that would have to be a relatively old computer.
Anyway, I am fairly certain that your issue does not prove the documentation to be false.
You are also more likely to get help from other Microsoft Social or TechNet forum pages.

@illfated thank you for your help with this!!