text:
0.36.0 release not compatible with sphinx autoapi plugin

We use sphinx to create documentation for our quantify-scheduler and quantify-core packages. It looks like when we have qcodes==0.36.0 installed the building of the documentation fails.
Unfortunately, the stack trace is not informative in where and why it happens:
[AutoAPI] Reading files... [  1%] /home/docs/checkouts/readthedocs.org/user_builds/quantify-quantify-scheduler/checkouts/545/quantify_scheduler/gettables_profiled.py

Traceback (most recent call last):
  File "/home/docs/checkouts/readthedocs.org/user_builds/quantify-quantify-scheduler/envs/545/lib/python3.8/site-packages/sphinx/events.py", line 94, in emit
    results.append(listener.handler(self.app, *args))
  File "/home/docs/checkouts/readthedocs.org/user_builds/quantify-quantify-scheduler/envs/545/lib/python3.8/site-packages/autoapi/extension.py", line 164, in run_autoapi
    if sphinx_mapper_obj.load(
  File "/home/docs/checkouts/readthedocs.org/user_builds/quantify-quantify-scheduler/envs/545/lib/python3.8/site-packages/autoapi/mappers/python/mapper.py", line 306, in load
    data = self.read_file(path=path, dir_root=dir_root)
  File "/home/docs/checkouts/readthedocs.org/user_builds/quantify-quantify-scheduler/envs/545/lib/python3.8/site-packages/autoapi/mappers/python/mapper.py", line 323, in read_file
    parsed_data = Parser().parse_file(path)
  File "/home/docs/checkouts/readthedocs.org/user_builds/quantify-quantify-scheduler/envs/545/lib/python3.8/site-packages/autoapi/mappers/python/parser.py", line 41, in parse_file
    return self._parse_file(
  File "/home/docs/checkouts/readthedocs.org/user_builds/quantify-quantify-scheduler/envs/545/lib/python3.8/site-packages/autoapi/mappers/python/parser.py", line 37, in _parse_file
    node = astroid.builder.AstroidBuilder().file_build(file_path, module_name)
  File "/home/docs/checkouts/readthedocs.org/user_builds/quantify-quantify-scheduler/envs/545/lib/python3.8/site-packages/astroid/builder.py", line 135, in file_build
    return self._post_build(module, builder, encoding)
 ...
   File "/home/docs/checkouts/readthedocs.org/user_builds/quantify-quantify-scheduler/envs/545/lib/python3.8/site-packages/astroid/raw_building.py", line 82, in attach_const_node
    _attach_local_node(node, nodes.const_factory(value), name)
  File "/home/docs/checkouts/readthedocs.org/user_builds/quantify-quantify-scheduler/envs/545/lib/python3.8/site-packages/astroid/nodes/node_classes.py", line 5531, in const_factory
    instance.postinit(_create_dict_items(value, instance))
  File "/home/docs/checkouts/readthedocs.org/user_builds/quantify-quantify-scheduler/envs/545/lib/python3.8/site-packages/astroid/nodes/node_classes.py", line 5502, in _create_dict_items
    for key, value in values.items():
RuntimeError: dictionary changed size during iteration

just that it occurs right after autoapi is running.
After some trial and error I found out that if I do a pip install --no-deps qcodes<0.36.0 the build succeeds, and when I do a pip install --no-deps qcodes==0.36.0 it fails.
Unfortunately, I don't have a minimal working example other than pip installing our quantify package and building the documentation locally:
mkdir tmp
cd tmp
git clone --no-single-branch --depth 50 git@gitlab.com:quantify-os/quantify-scheduler.git .
git fetch origin --force --tags --prune --prune-tags --depth 50 merge-requests/545/head:external-545
git checkout --force a7cc1ff360a2da8bb64f44f405a5b7bc5f3389fc
git clean -d -f -f
conda create --name tmp python=3.8
conda activate tmp
pip install quantify-scheduler
pip install -r requirements_dev.txt
pip install --no-deps qcodes==0.36.0
cd docs
python -m sphinx -T -E -b html -d _build/doctrees -D language=en . _build/html

this will fail the build with the error I pasted above. After doing a pip install --no-deps qcodes<0.36.0 it succeeds.

Are you using the QCoDeS sphinx plugin ?
The only other thing that I can think of is the lazy loading that was added with https://github.com/QCoDeS/Qcodes/pull/4788

Hi @jenshnielsen, could you share a link to the plugin you mentioned? I'm not able to find it myself, unfortunately. I will investigate the lazy loading thing.

importing h5py directly solves the issue :smile:. For completeness, I added the line import h5py inside our conf.py file and now the documentation build succeeds. We can close this issue, but I'm still curious about the qcodes sphinx plugin/extension.

Great to hear that we found this issue. It would probably be good to report it over here https://github.com/scientific-python/lazy_loader/issues if we can find a way to reproduce  it a bit simpler.
We are using this https://github.com/QCoDeS/Qcodes/blob/master/qcodes/sphinx_extensions/parse_parameter_attr.py extension to be able to document Parameters on instruments a bit better (instance attributes defined in __init__

Thanks :) created an issue over here https://github.com/scientific-python/lazy_loader/issues/37

authors: jenshnielsen rsokolewicz

repo: QCoDeS/Qcodes


text:
Driver for Keysight m3202a

Driver includes memory management and background loading of waveforms

Hi thanks for the contribution. I will do my best to finish reviewing it within next week; as there are lots of code, I will do the review partially starting from tomorrow.

I will continue to review. But as a general comment please provide input and return types in the functions. Thanks.

source: gharchive/pull-request

authors: GateBuilder sldesnoo-Delft

license: MIT

license_type: permissive

license_source: github-api


text:
Unable to use Transcrypted file

Heya, I'm trying to run a generated python file in a GraalJS environment but get this error:
Exception in thread "main" SyntaxError: Unnamed:1:13 Expected an operand but found import
'use strict';import{AssertionError,AttributeError,BaseException,DeprecationWarning,Exception,IndexError,IterableError,KeyError,NotImplementedError,RuntimeWarning,StopIteration,UserWarning,ValueError,Warning,__JsIterator__,__PyIterator__,__Terminal__,__add__,__and__,__call__,__class__,__envir__,__eq__,__floordiv__,__ge__,__get__,__getcm__,__getitem__,__getslice__,__getsm__,__gt__,__i__,__iadd__,__iand__,__idiv__,__ijsmod__,__ilshift__,__imatmul__,__imod__,__imul__,__in__,__init__,__ior__,__ipow__,
             ^
Unnamed:3:207 Expected eof but found }
hasattr,input,int,isinstance,issubclass,len,list,map,max,min,object,ord,pow,print,property,py_TypeError,py_iter,py_metatype,py_next,py_reversed,py_typeof,range,repr,round,set,setattr,sorted,str,sum,tuple,zip}from"./org.transcrypt.__runtime__.js";var __name__="__main__";print("Ara ara~");

The code of the python file is simply print("Ara ara~") (don't ask why xD) but it for some reason doesn't work
On a side note, is it possible to make Transcrypt use require instead of import?

What version of Python and Transcrypt are you using?

I'm using python 3.10 and the latest version of Transcrypt available from PyPi

The code works in NodeJS so i have no idea what the issue could be

Because Transcrypt uses the AST module, it is important to make sure that the version of Python being used matches the version of Transcrypt. Even though it doesn't make any difference with you're Python source code, the implementation details of the Python language itself affect the structure of the AST. As such, it may need to be parsed in a different way between versions.
The latest version of Transcrypt (3.9.0) expects a Python version 3.9 AST. Can you try running Transcrypt using Python 3.9 and see if that makes any difference?

But the code runs on NodeJS perfectly fine? But yeah I'll try that

Ah, I'm unable to install a Python 3.9 distribution currently, sorry

I've just attached a screenshot of the code being ran in Python and NodeJS successfully, but failing in GraalJS (I've made a program to run JS code from GraalJS in the stock JVM)

There is a chance it may not make a difference, but it's the first thing to try. The mismatch of Python/Transcrypt versions can cause unpredictable transpilation errors to creep in. Node may be more forgiving with generated JavaScript that is malformed.
If you happen to have Python 3.7 available, you can try that as well. You would just need to use Transcrypt==3.7.16 in that case. You only need the right Python version for transpiling to JS, so even a cloud instance or docker container running the matching Python version would work.

Ah okay then, I'll try using GitHub actions then on a test repo

I've done it with Replit before, but that platform currently has Python 3.8 as a default so there a few extra steps to get 3.9 installed there that you may not want to hassle with. I have a demo repl available with the required setup if you want to play around with it though.

Ah that'll be useful, thanks!

Now that I look at the error in more detail, while the Python version is still an issue I'd address, you may be right in that it has more to do with graaljs and the handling of the transcrypt runtime import.

I've also now ran it in a GitHub action (can be found here: https://github.com/Mythical-Forest-Collective/test-repo/runs/5339470717)
Also yeah, i have no idea why it's an issue with graal... Is there a way to make Transcrypt use require instead of import?

I use require in my own Python code to import JS libraries, but in this case I don't think so.  It looks like it's the actual import for the transpiled Transcrypt JS runtime and that is likely baked in to Transcrypt.
I'm not a JS expert (which is why I like Transcrypt so much!), but is there anything in graaljs related to ES6 support that might need to be turned on?

Ah okay, and no I don't think so, GraalJS should support ES6 already?

It does support ES6 for sure, i double checked that, so i have no idea what the issue could possibly be now, but no matter what I'm getting a syntax error despite me trying other options

I've managed to figure it out now!

What did the issue end up being?  How did you solve it?

source: gharchive/issue

authors: JennaSys Mythical-Forest-Collective

repo: QQuick/Transcrypt

license_source: bigquery


text:
第二 更新QADate

QUANTAXIS PR 😇
感谢您对于QUANTAXIS的项目的参与~ 🛠请在此完善一下最后的信息~
注意

如果非第一次fork, 请先将quantaxis 库的内容PR进您的项目进行更新, 然后再执行对于quantaxis的pr
请完善CHANGELOG再进行PR

PR前必看
请使用如下代码对要PR的代码进行格式化:
使用以下代码来格式化
pip install https://github.com/google/yapf/archive/master.zip
yapf -i --style .style.yapf <file>

🛠该PR主要解决的问题🛠:
emmmm  来自二次元的pr
作者信息:somewheve
时间:  二次元

Hello @somewheve! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file QUANTAXIS/QAUtil/QADate.py:

Line 40:1: W293 blank line contains whitespace
Line 62:1: W293 blank line contains whitespace
Line 74:1: W293 blank line contains whitespace
Line 80:1: W293 blank line contains whitespace
Line 101:1: W293 blank line contains whitespace
Line 107:1: W293 blank line contains whitespace
Line 122:1: W293 blank line contains whitespace
Line 128:1: W293 blank line contains whitespace
Line 145:1: W293 blank line contains whitespace
Line 163:1: W293 blank line contains whitespace
Line 172:1: W293 blank line contains whitespace
Line 189:1: W293 blank line contains whitespace
Line 195:1: W293 blank line contains whitespace
Line 208:1: W293 blank line contains whitespace
Line 232:80: E501 line too long (102 > 79 characters)
Line 265:1: W293 blank line contains whitespace
Line 281:1: W293 blank line contains whitespace
Line 299:1: W293 blank line contains whitespace
Line 305:1: W293 blank line contains whitespace
Line 337:1: W293 blank line contains whitespace
Line 351:1: W293 blank line contains whitespace
Line 457:1: W293 blank line contains whitespace
Line 478:1: W293 blank line contains whitespace
Line 651:1: W293 blank line contains whitespace

repo: QUANTAXIS/QUANTAXIS

license: mit


text:
🛑 Youte+ is down

In 9d4d13a, Youte+ (https://youteplus.digitalobservatory.net.au/) was down:

HTTP code: 502
Response time: 631 ms

Resolved: Youte+ is back up in 65c79d2 after 7 minutes.

repo: QUT-Digital-Observatory/monitoring


text:
实测phptrace对fpm环境完全无用

刻意调整pm.start_servers=1、pm.max_spare_servers=1、pm.min_spare_servers=1。
phptrace -p 、phptrace -p  -s均无任何反应。

版本：php5.5.20

确认启用扩展了吗？

启用了。运行无报错，无任何反应。

@microhuang  你好，phptrace -p <PID> 中的PID 必须是worker进程ID， 请确认一下您使用的master进程ID还是worker进程ID

worker pid、master pid都试过。

1:
sudo ./php-trace -p  23004 -s
phptrace 0.2.0 stable, published by 360 infra webcore team
INVALID PARAM: address info not enough
2:
sudo ./phptrace -p  23004 -s
phptrace 0.2.0 stable, published by 360 infra webcore team
INVALID PARAM: sapi-globals: <sapi_globals>
打印堆栈信息失败。

环境PHP Version 5.5.9-1ubuntu4.4
框架 yaf
1、在php-fpm环境下，调试成功，但是加载了调试后，页面就会502错误，
2、打印出来的信息完全没有作用，是不是对于yaf扩展这样的框架 调试

@joostshao  你好，感谢反馈， 不过你所述的跟这个issue无关， 请另开一个issue， 并附上尽量详细的信息， 比如操作系统， PHP版本， php-config的输出等等

简单测试了一下。
CentOS 6.6，selinux off，php-fpm.x86_64 5.5.21-1.el6.remi，trace 正常。打印 stack of function call 报 'can not print php stack'。

@yinchuan stack功能用以打印PHP函数的调用栈， 如果PHP当前没有执行任何脚本， 可能无法打出调用栈。

authors: click1 joostshao microhuang shafreeck yinchuan


text:
Processs was killed during evaluation

When I run python main_SensatUrban.py --mode test --gpu 0, I met this problem

Is this error caused because program was killed by out of memory  killer? How to solve it?

补充：我调取了服务器的资源管理器，在载入数据后，内存情况如下

在“Confusion on sub clouds” print后，内存满了，程序立马被杀了

I solved it !!! add the swap to 33G, i get the result successfully now !!!

repo: QingyongHu/SensatUrban


text:
Job logs should be updated as the code is executed

What is the expected behavior?
Currently the the job logs do not update until a program is finished.  This means one cannot track the progress of a function as it goes through its steps.  As functions can get arbitrarily long, it would be nice to be able to rack the status of them as they go through.

ref:
https://github.com/Qiskit-Extensions/quantum-serverless/blob/9a56a13d53405b2bdbbeb7a654d903de8f76f443/gateway/api/management/commands/update_jobs_statuses.py#L56
Need to update logs on each poll

repo: Qiskit-Extensions/quantum-serverless


text:
Add links to transpile topics

Closes #378

Adding links as topics are added to Main

repo: Qiskit/documentation


text:
Fix log_level from old options

Summary
The old options parameter in Sampler and Estimator constructors allowed log_level to be specified. Since log_level is now under environment, we should still accept it with a deprecation warning.
It also allowed image, which is now an implicit option but still needs to be copied to runtime options.
Details and comments
Fixes #

Pull Request Test Coverage Report for Build 3239088558

0 of 14 (100.0%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.4%) to 65.537%

Totals

Change from base Build 3236758906:
0.4%

Covered Lines:
3501

Relevant Lines:
5342

💛  - Coveralls

Pull Request Test Coverage Report for Build 3239088558

14 of 14 (100.0%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.4%) to 65.537%

Totals

Change from base Build 3236758906:
0.4%

Covered Lines:
3501

Relevant Lines:
5342

💛  - Coveralls

repo: Qiskit/qiskit-ibm-runtime


text:
Create logging utility functions

Summary
Fixes #419
Details and comments

Pull Request Test Coverage Report for Build 1853980601

51 of 65 (78.46%)  changed or added relevant lines in 3 files are covered.
2 unchanged lines in 1 file lost coverage.
Overall coverage increased (+0.1%) to 83.113%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

qiskit_nature/logging.py
42
56
75.0%

Files with Coverage Reduction
New Missed Lines
%

qiskit_nature/drivers/second_quantization/psi4d/psi4driver.py
2
84.43%

Totals

Change from base Build 1848493109:
0.1%

Covered Lines:
8795

Relevant Lines:
10582

💛  - Coveralls

authors: coveralls manoelmarques

repo: Qiskit/qiskit-nature


text:
Fix DAGCircuit.collect_runs()

Summary
Fixes #1871 Fixes #1820
dag.collect_runs() should only collect runs of gates that are non-conditional, otherwise the optimizations that are based on them won't work.

Do you mind writing a test that failed master but passes with your PR?

@1ucian0 test added.

repo: Qiskit/qiskit-terra


text:
Adds method to list nodes on a wire

Summary
Fixes #1502
Adds a method nodes_on_wire() to the DAGCircuit. This method yields all the nodes in the DAG which affect the given wire. The method takes 2 parameters -
wire : the wire to be looked at
only_ops(optional) : default to False, if True then only the op nodes are returned, otherwise all nodes on the wire are returned.
This will be affected by #1815 and will be updated to return DAGNodes instead.

@maddy-tod while you are working on the file, can you rename qiskit/dagcircuit/_dagcircuit.py to qiskit/dagcircuit/dagcircuit.py (ie. removing the underscore) at a convenient time (for example, as the last commit in this PR)? Since you are one of most active contributors working on the file, it would make it smoother if you took care of it during one of your PRs, to avoid some conflicts.

I have also renamed qiskit/dagcircuit/_dagnode.py to qiskit/dagcircuit/dagnode.py after #1815 .

This looks good, there were some conflicts that I resolved.
However during the review, I noticed that the DAGNode.__eq__ method is defined so that it can compare DAGNode against int. This was probably done due to some convenience, but I think it is a bit of an unexpected behavior to compare objects of different types. It took me a while to understand why the test was comparing against ints, when the nodes_on_wire() method is returning DAGNodes. Can we fix this in a follow up PR?

@ajavadia That was done to allow for easier testing (there was a comment in the code about it at some stage but it must have been removed). I think this was mainly because the older version of DAGNode.__eq__ only allowed for identical DAGNode objects to compare to equal. This meant that we couldn't test that, for example, a method returned the nodes in the right order without looking at the node_id, as if we simply made identical objects to what we were expecting they wouldn't compare as equal. It was neatest to put it in DAGNode.__eq__ as otherwise all the testing would have to access the private variable _node_id.
The work @1ucian0 is doing should fix this but we could also refactor it out by having a method to return the  _node_id/compare a given val with the _node_id to see if it is equal.

authors: ajavadia diego-plan9 maddy-tod


text:
ParameterExpression.eq takes bounded expr == value

Summary
This is a code update in response to issue #5423
The current implementation of eq method of ParameterExpression class only allows comparison between two parameter expressions.
With this update it should be possible to compare a bounded parameter expression with a fixed value.
Details and comments
If the argument passed to __eq__ is a number:
(1) Check that self has no unbound parameters i.e. self.parameters == 0
(2) Check that the value of the sympy expression is equal to the argument
Added a test called test_compare_to_value_when_bound in test/python/circuit/test_parameters.py to check that the comparison with a fixed value works

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Adish Vartak seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

authors: CLAassistant avartak


text:
How to obtain wavefunction from quibit registers

Description

Hi, I found in this link that there is a way to obtain wavefunction from quibit registers, and an  example is given:
import qiskit
from qiskit import QuantumProgram
import qiskit.extensions.qiskit_simulator

qp = QuantumProgram()
qr = qp.create_quantum_register('qr', 2);
cr = qp.create_classical_register('cr', 2);
circ = qp.create_circuit('bell', [qr], [cr])
circ.h(qr[0])
circ.cx(qr[0], qr[1])
circ.barrier(qr)
circ.save(1, qr)
circ.barrier(qr)
circ.measure(qr, cr)

backend = 'local_qiskit_simulator'
config = {'data': ['saved_quantum_state',
                   'saved_density',
                   'saved_quantum_state_ket',
                   'saved_probabilities']}
result = qp.execute('bell', shots=10, backend=backend, config=config)
result.get_data('bell')

its output is:
{'counts': {'00': 5, '11': 5},
 'saved_probabilities': {'1': [0.5, 0.0, 0.0, 0.5]},
 'saved_quantum_states': [{1: array([0.70710678+0.j, 0.        +0.j, 0.        +0.j, 0.70710678+0.j])},
  {1: array([0.70710678+0.j, 0.        +0.j, 0.        +0.j, 0.70710678+0.j])},
  {1: array([0.70710678+0.j, 0.        +0.j, 0.        +0.j, 0.70710678+0.j])},
  {1: array([0.70710678+0.j, 0.        +0.j, 0.        +0.j, 0.70710678+0.j])},
  {1: array([0.70710678+0.j, 0.        +0.j, 0.        +0.j, 0.70710678+0.j])},
  {1: array([0.70710678+0.j, 0.        +0.j, 0.        +0.j, 0.70710678+0.j])},
  {1: array([0.70710678+0.j, 0.        +0.j, 0.        +0.j, 0.70710678+0.j])},
  {1: array([0.70710678+0.j, 0.        +0.j, 0.        +0.j, 0.70710678+0.j])},
  {1: array([0.70710678+0.j, 0.        +0.j, 0.        +0.j, 0.70710678+0.j])},
  {1: array([0.70710678+0.j, 0.        +0.j, 0.        +0.j, 0.70710678+0.j])}],
 'saved_quantum_states_ket': [{'1': {'00': [0.707106781186548, 0.0],
    '11': [0.707106781186547, 0.0]}},
  {'1': {'00': [0.707106781186548, 0.0], '11': [0.707106781186547, 0.0]}},
  {'1': {'00': [0.707106781186548, 0.0], '11': [0.707106781186547, 0.0]}},
  {'1': {'00': [0.707106781186548, 0.0], '11': [0.707106781186547, 0.0]}},
  {'1': {'00': [0.707106781186548, 0.0], '11': [0.707106781186547, 0.0]}},
  {'1': {'00': [0.707106781186548, 0.0], '11': [0.707106781186547, 0.0]}},
  {'1': {'00': [0.707106781186548, 0.0], '11': [0.707106781186547, 0.0]}},
  {'1': {'00': [0.707106781186548, 0.0], '11': [0.707106781186547, 0.0]}},
  {'1': {'00': [0.707106781186548, 0.0], '11': [0.707106781186547, 0.0]}},
  {'1': {'00': [0.707106781186548, 0.0], '11': [0.707106781186547, 0.0]}}],
 'time_taken': 0.000511}

But when I was trying the code, I find that QuantumProgram and qiskit.extensions.qiskit_simulator can't be imported successfully. I am not sure whether it's because of the updating of Qiskit version. Then how can I obtain the wavefunction now?
Thank you!
Your Environment

QISKit version: 0.6.0
Python version: 3.6

I searched for the Changelog, and found that in the Deprecated part of version 0.5.0, there is a sentence saying ''Simulators no longer return wavefunction by setting shots=1. Instead, use the local_statevector_simulator, or explicitly ask for snapshot.'' What does it mean?

That standard way to the get the final state vector is to use the statevector_simulator backend to execute a single shot of a circuit with no reset or measure instructions. For example:
import qiskit
from qiskit import QuantumRegister, ClassicalRegister, QuantumCircuit
from qiskit import Aer

qr = qiskit.QuantumRegister(2)
circ = qiskit.QuantumCircuit(qr)
circ.h(qr[0])
circ.cx(qr[0], qr[1])

backend = Aer.get_backend('statevector_simulator')
result = qiskit.execute(circ, backend=backend).result()
result.get_data(circ)

This will return the output
{'statevector': array([0.70710678+0.j, 0.        +0.j, 0.        +0.j, 0.70710678+0.j])}

You may also use result.get_statevector(circ) to directly get the np array from the output of the statevector simulator.

Thank you so much! This is exactly what I'm looking for.

No problem!

repo: Qiskit/qiskit-tutorial


text:
error in the interface between ansys and qiskit metal

Environment

Qiskit version:  qiskit metal 0.1.5
Python version:  python 3.11.9
Operating system: Windows

What is happening?
Running the code in order to do epr simulation (look at thi page https://qiskit-community.github.io/qiskit-metal/tut/4-Analysis/4.02-Eigenmode-and-EPR.html#), after a cfertain time the code didn't finish to run and the follow message appears "'Exception.', (0, None, None, None, 0, -2147024382), None))". On ansys also appears "Script macro error: Invalid PropServer 'Freq. vs. pass:re(Mode(1)):Curve1'"
How can we reproduce the issue?
Follow this tutorial https://qiskit-community.github.io/qiskit-metal/tut/4-Analysis/4.02-Eigenmode-and-EPR.html# and when you arrivwe at the part that run epr analysis you should see the same error
What should happen?
The program starts to run correctly but at the certain time it stops and give me an error message
Any suggestions?
I don't know if it is something related to the version of ansys

Hi - I think you're looking for the qiskit-metal repository, which is here, and totally separate to the Qiskit SDK: https://github.com/qiskit-community/qiskit-metal.
We can't do anything about this here, but that repo is your best bet - you might want to refile this issue there.

authors: SimonaZaccaria jakelishman

repo: Qiskit/qiskit


text:
Update development_strategy.rst

Summary
Details and comments

@chriseclectic , @dcmckayibm would you be able to add info for your elements where Jay has written TBD?

I would on wait -- make an issues and assign to them

authors: derivation jaygambetta


text:
DAG compose efficient in number of nodes

What is the expected enhancement?
Several methods on terra's DAGCircuit implement some variant of graph composition by topologically sorting one of the input graphs and appending its nodes to the other, one by one. (See e.g. DAGCircuit.compose). The downside of this approach is that the number of operations grows as the number of nodes in the sorted graph. If the sorted DAGCircuit is shorter than it is wide, this is probably actually preferable. Another option for implementing DAG composition is removing output nodes from one circuit, input nodes from the other, and directly adding edges between them. This will scale as the number of qubits, not the number of nodes, which would be preferable if both graphs are longer than they are wide.
In networkx, implementing this style of composition is difficult because each graph is implemented on top of its own dictionary, so there is no way easy way to add edges between the graphs. (There are a handful of ways this might actually be possible, e.g. a globally unique node_id and hacking a dictionary merge on _multi_graph._adj, or if all of our DAGCircuits live as disjoint subgroups inside a single networkx graph, ... but each of these approaches sound likely to cause more problems than they solve.) Is implementing a more efficient composition any simpler in retworkx?

I've been looking at this a bit, the internal data structure for the graphs from petgraph should make this possible, but we'll likely want to contribute an implementation there for both Graph and StableGraph because I haven't been able to find the functionality and I expect it will require manipulation of private attributes.
But, basically the graphs are vectors of the nodes and edges inside petgraph. So it should be possible to just extend those vectors with the list of nodes and edges from another graph. The tricky bits I can see as a potential problem with will likely come up around indexes. Each node and edge struct in a graph keeps track of indexes for it's edges and nodes respectively. So we can easily extend the vectors but then the rhs nodes and edge object will need to be updated to refer to the new indexes otherwise the structure of the graph will be broken.
In the meantime we might have some performance improvements by trying to implement as much of the existing compose algorithm inside of retworkx as we can, just for the faster iteration time. So even if the algoirthm is inefficient it will at least perform better.

authors: kdk mtreinish

repo: Qiskit/retworkx


text:
Line numbers are getting munged

Not entirely sure how to reproduce this minimally, but with better_exceptions enabled:
Traceback (most recent call last):
  File "test_color.py", line 1, in <module>
    from better_exceptions import color
  File "/src/qix-.better-exceptions/better_exceptions/color.py", line 64, in <module>
    SUPPORTS_COLOR = True
    └ None
TypeError: hex() argument can't be converted to hex

and without them enabled:
Traceback (most recent call last):
  File "test_color.py", line 1, in <module>
    from better_exceptions import color
  File "/src/qix-.better-exceptions/better_exceptions/color.py", line 51, in <module>
    print hex(magic_number)
TypeError: hex() argument can't be converted to hex

Strange, the traceback module also seems to get lineno this way: https://github.com/python/cpython/blob/master/Lib/traceback.py#L306

In fact you get the frame f_lineno, what you surely want is the traceback tb_lineno.

You'd think they'd be the same thing... I'll look into this. Thanks for the information @paradoxxxzero, as always!

Reproducible test case in 24b18886fc40fd507965ba62b4b5a24cf57d1ca3 by running python test_bug.py.

Fix released as 0.1.5!

authors: Qix- paradoxxxzero

repo: Qix-/better-exceptions


text:
添加微信反代功能

目前非固定公网IP将无法使用微信官方api连接发送消息
因此需构建反代连接
源库未加此功能
在源库的基础上新加了此功能
特此请求合并

export MEDIA_ID=""
export TOUSER=""
这两个值不知道怎么获取，能帮忙指点下吗，谢谢


text:
Update JLab contributing guidelines as needed

Summary

Jlab contribution guidelines can be found at https://jupyterlab.readthedocs.io/en/stable/developer/contributing.html
and the instructions for local env set up at https://jupyterlab.readthedocs.io/en/stable/developer/contributing.html#setting-up-a-local-development-environment
As we onboard @gabalafou  and others we should ensure we contribute patches or updates as needed

Pasting some notes from my notebook when I was setting up my environment.

Thoughts getting JupyterLab running locally from docs:

Single source of truth for contributor docs: good! https://jupyterlab.readthedocs.io/en/latest/developer/contributing.html
In the above doc, lots of links but no quick "getting started" section. Not sure where to begin, or what sequence of steps to take. "Installing Node.js and jlpm" section does not cover how to install jlpm; it only covers Node.js.
would be great if readthedocs automatically published a “last updated” datetime string on doc pages

@gabalafou do you think we should send a PR to tackle some of these ☝🏽 ? else we can close this issue and send PR's as needed with other deliverables/items?

Just going to mark it as on hold and move over to the next milestone

Other items that will need documenting:

CI use (once the doit items are merged and we got a CI)
scope of what is being tested vs not
how to local/Gitpod development work

authors: gabalafou trallard


text:
List of channels - edit mode

Goal :
have a react component to define the list of channels to use in an environment
Figma design

Concepts :

a 'channel' is a source of packages
a channel has a name, max length 255 character
For the moment, we consider any non-empty string is a valid channel name

Behavior

The box has a maximum height and overflow content scrolls. Expect this height to be a parameter.
Clicking on the arrow collapses/expand the box.
Row containing channel names can be reordered - order matters here.
Clicking on the "+ Add channel" button adds a row at the bottom of the component, with an empty textfield.
When creating an env from scratch, the list of channels must be empty and only the "+ Add channel" button is shown

API and data
The API endpoint is like : api/v1/build/<build_id>/ and the data to use are in result['data']['specification']['spec']['channel']
( @ostojics  Don't focus on the API endpoint for the moment, I just leave this here for later when we connect the UI to the API)
According to the API, you can expect the data to be given under the form:
["conda-store","default", "blablabla"]
It is required that the component returns the data of its content under the same format (an ordered list of strings). We'll need to give this content to the API to build the environment.
Other :
Split this main component into sub-components as necessary.

PR in progress : https://github.com/Quansight/conda-store-ui/pull/18

@ostojics  By testing the component, I realize we didn't think of ... a remove button for the channels :)
Can you add a trash bin icon similar to what we see in #5 please ?

@pierrotsmnrd Done

authors: ostojics pierrotsmnrd

repo: Quansight/conda-store-ui


text:
Allow for customization of jupyterlab theme

[ ] ensure support for unicode test (specifically spanish)
[ ] allow for customized landing pages
[ ] ensure the configuration is specific to qhub

The changes will be made in:
https://github.com/quansight/qhub-jupyterhub-theme

@aktech suggested that we export the theme to a config file so it makes it easier to customize it (#175). Any suggestions @tylerpotts @tonyfast?

@aktech suggested that we export the theme to a config file so it makes it easier to customize it (#175). Any suggestions @tylerpotts @tonyfast?

Duplicate of https://github.com/Quansight/qhub-cloud/issues/142

authors: costrouc laisbsc tylerpotts

repo: Quansight/qhub


text:
[ENH] - Support Entry Points for Plugins

Feature description
Add support for Entry Points for Plugins to allow easy code-sharing eg for a new assistant in #173. Also some details in #166.
Value and/or benefit
Extensions can be easily shared - it's just a simple pip install. The current behaviour requires users to 'discover' an extension for themselves, and then to make sure that they install it correctly so that it's recognised by ragna.
Anything else?
This has been used very successfully (IMO) by llm.
Most of the hard work has already been done (ie the plug-in interfaces like ApiAssistant already exist), there is just the final-step of adding some packagaing details and some brief logic related to plug-in discovery.
I can mock-up a quick example if this is of interest.

In general, I'm in favor of this. Like you said, it makes sharing really easy. One question arises though: where do we hook in external components? My current idea would be to do it as part of the component selection in the config wizard. We could just chain them to the builtin ones
https://github.com/Quansight/ragna/blob/dc497ef4768b8f8bd4d5c3736eb1d67b27050387/ragna/_cli/config.py#L161-L165
Of course we need to change the phrasing in the wizard to account for that. Plus, we probably need to put the class path as part of the selection (as well as ragna check) to make it clear where a component is coming from.

I just spent a little time on this and made an attempt with the pydantic2 model_post_init hook. I was reading through some of the comments in the code, and I realised that there are lots of ways for users to interact with the config settings (env vars, kwargs, TOML files etc). I settled on model_post_init as it felt like the most robust way to load the extensions. But perhaps it causes issues in other ways (and I think it does rely on pydantic version 2) - what is your opinion?
I also added a mock package and a notebook to show it works. All available in my branch here.

I think that I may only have a partial understanding of the intended workflows. I'm going to be more explicit here about my current understanding. Please correct the bits that I have wrong (and then I will follow-up with a response to your previous questions):
Workflow 1 -  UI entrypoint (ragna ui)
a. No TOML file is present. In this case, the program will exit and instruct to use the wizard. The user will use the wizard (ragna init) to generate the TOML and then return to the start.
b. A valid TOML file is present. Proceed as usual. No wizard is called.
Workflow 2 - CLI entrypoint (ragna api)
(same as workflow 1)
Worfklow 3 - Python API
a. No TOML file is present. The user can rely on the pydantic defaults, or environment variables, or passing something explicitly to the constructor. No wizard is called.
b. A valid TOML file is present. The user can rely on  the pydantic defaults, or environment variables, or passing something explicitly to the constructor, or the TOML file. No wizard is called.
From my current understanding, the wizard is only called in situations 1.a and 2.a. Do I have this correct?

Could you explain how you got to that conclusion?

It seemed to me like a user could be relying on a TOML file, or environment variables, or passing something to the constructor, or the pydantic defaults for configuration. The simplest way that I could think of for loading the plugins in a way that didn't mess with the user's original config was to add them at the end with the post_init hook.

IMO that is simpler and more expressive than doing what you have suggested in your notebook:

My previous example was only to illustrate that the plugin was present in the config. I admit that it was a pretty ugly example to post in the notebook, and I should have thought about it more. I agree with your suggestion for the Python API syntax. This is also possible with the code on my branch (I pushed a commit a while ago that illustrates this).

I feel it would better fit in the config wizard

My current understanding (see my previous comment) is that there are many situations where the wizard will not be called eg the user wants to test a new plugin, and already has a valid TOML file. I wasn't sure how to deal with this situation. That was the main reason I didn't put it in the wizard.

With your hook on the config, this happens magically without the user knowing about it. And that ties again into our discussion in https://github.com/Quansight/ragna/issues/180.

I think I've taken up too much of your time now on the wizard - apologies! I agree that the best use of time now is probably for me to embrace it! With that personal hurdle out of the way, the only issue I see is how to deal with workflows that need a plugin and where the wizard is not involved (see above eg using the Python API). What would be your suggestion for handling plugins in these cases?
Once I have your ideas on this, I'll update the branch to include everything you suggest.

From my current understanding, the wizard is only called in situations 1.a and 2.a. Do I have this correct?

Correct.

My current understanding (see my previous comment) is that there are many situations where the wizard will not be called eg the user wants to test a new plugin, and already has a valid TOML file. I wasn't sure how to deal with this situation. That was the main reason I didn't put it in the wizard.

My point in this discussion here and in #180 as well is that components have requirements and users need an easy way to discover them. pip installing any package just gives them access to the code they need, but won't do anything for the components to actually be available. And that is the main concern. Unless you find a way to educate the users on how to meet the requirements that doesn't involve the wizard, the wizard stays and all config generation will be done with it.

many situations where the wizard will not be called eg the user wants to test a new plugin, and already has a valid TOML file.

The point of the configuration file is to be explicit. Imagine you needing to deploy this and don't know about the magic plugin handling. For some reason, the apps keep crashing on startup with an error message that points to a component that you haven't even selected as part of your config. This is horrible UX. I would much rather have users add a few extra lines to the configuration file to avoid such a situation.
One thing that we can do is to add an --update flag to ragna init that re-runs the wizard, but uses an existing file as base rather than creating one from scratch. So if users do something like pip install vikings, they will either need to fix their existing configuration file by hand or run ragna init --update and select the new components like that.

I've added an attempt to incorporate it into the wizard here. What do you think? (I put it in 'common' rather than 'builtin' because I felt that a plugin wasn't a builtin. I can change it if preferred.)

One thing that we can do is to add an --update flag to ragna init that re-runs the wizard, but uses an existing file as base rather than creating one from scratch.

Seems reasonable. Is this a separate issue, or would I add it to the my current branch?

The point of the configuration file is to be explicit.

One comment on this - it seems like env vars currently override the config file. Is this consistent with this approach? It could be disabled via pydantic (but perhaps it's considered a necessary exception).

What do you think?

My preferred way of doing it would be as I have described it in https://github.com/Quansight/ragna/issues/189#issuecomment-1803931462. Let _select_components take another argument for an entrypoint name and just chain the third party components together with the builtin ones to have all of them in the same dialog. To avoid naming conflicts, we should "namespace" the options based on the module the come from. SO maybe something like

ragna: Anthropic/Claude
vikings: IvarTheBoneless

Is this a separate issue

Separate issue. While it helps the adoption of the entrypoints, this is a change that can stand on its own. Maybe I just want to make a change to an existing configuration file and want to have the proper guidance.

it seems like env vars currently override the config file. Is this consistent with this approach?

Yes, this is consistent, because env vars are set by the person deploying this and thus are explicit as well. Plus, we need this kind of behavior, since something like an URL could very easily change between different deployments, but you don't want to have a different configuration file each time.

All of that being said, I'm not sure if I would merge a PR for this right away: there already exists a way for users to hook in third-party components. This would only make it easier. While this is a good thing, we should actually wait for demand before we go for the change. Meaning, unless  there is a third-party library that says "hey, we want these hooks" this change only makes it more complicated for us without any benefit.

No problem. Happy for you to close/leave open this issue as you see fit.
I'm not sure if it's useful to archive my current branch in some way eg open a PR and then immediately close it, in case there is any desire to refer back to it in the future?

If you are up to that, I think sending a PR linking this thread would be fine. Right now our issue / PR tracker is reasonably small that we don't need to close stuff to avoid losing track.

authors: nenb pmeier

repo: Quansight/ragna


text:
Warming up Consolidators gets Runtime Type Errors when creating TradeBars from data pulled with History

Expected Behavior
Consolidators should warmup fine using TradeBars made from data pulled with History
Actual Behavior
We get an error when warming up Consolidators with TradeBars made from data pulled with History
Potential Solution

Reproducing the Problem
https://www.quantconnect.com/terminal/processCache?request=embedded_backtest_4b692859243dc3b2f499a8aa16ac0d9e.html
System Information

Web QC
Checklist

[ x] I have completely filled out this template
[ x] I have confirmed that this issue exists on the current master branch
[ x] I have confirmed that this is not a duplicate issue by searching issues

[ x] I have provided detailed steps to reproduce the issue

Hey!
Believe this is a bug in the code of the algorithm:
    def ThirtyMinuteHandler(self, sender, bar):
        self.short_ema.Update(bar)

ExponentialMovingAverage is a IndicatorBase<IndicatorDataPoint> the call to Update should provide a IndicatorDataPoint as shown in the stack
During the algorithm initialization, the following exception has occurred: ArgumentException : IndicatorBase.Update() 'input' expected to be of type QuantConnect.Indicators.IndicatorDataPoint but is of type QuantConnect.Data.Market.TradeBar
  at QuantConnect.Indicators.IndicatorBase`1[T].Update (QuantConnect.Data.IBaseData input) [0x000b5] in :0
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in :0
  at Initialize in main.py:line 60 :: thirtyMinuteConsolidator.Update(tradeBar)
 ArgumentException : IndicatorBase.Update() 'input' expected to be of type QuantConnect.Indicators.IndicatorDataPoint but is of type QuantConnect.Data.Market.TradeBar
  at QuantConnect.Indicators.IndicatorBase`1[T].Update (QuantConnect.Data.IBaseData input) [0x000b5] in :0
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in :0

Using the following seems to work:
    def ThirtyMinuteHandler(self, sender, bar):
        self.short_ema.Update(IndicatorDataPoint(bar.EndTime, bar.Close))

authors: Martin-Molinero shilewenuw

repo: QuantConnect/Lean


text:
Recycle stuff from rst2ipynb?

Dear Sphinxcontrib-jupyter devs,
I just discovered this project. Having the same deep need for a rst to ipynb conversion, we have been dreaming for a while of exactly this: a jupyter export extension for Sphinx. Thank you!!! I am now impatient to try it out and see how it fits into our documents pipeline for SageMath. See e.g
https://more-sagemath-tutorials.readthedocs.io/ .
The jupyter notebooks that are linked from each page there are produced using a hacky solution rst-to-ipynb that we implemented on top of pandoc and notedown. You may want to briefly explore it in case you find something to recycle there; e.g. the test files.
The tricky part of such a converter is how to flatten the tree structure of a RST document into the linear (code, text, code, text, ...) structure of a Jupyter notebook, without too much degradation. The above tests exercise this a bit.
Cheers,
Nicolas
cc: @slel

Just an FYI to @nthiery and the devs here, nbsphinx is another project that can be used to convert notebooks for Sphinx docs.
Very cool to see this project moving forward 👍

Yes indeed, though nbsphinx goes the other way round: integrating existing notebooks into a sphinx collection of documents, rather than exporting sphinx documents as notebooks.

@nthiery Very glad it's useful for you!
We'll certainly explore rst-to-ipynb and see what we can combine.
I'm not one of the devs, I'm one of the authors of these lectures and, given that all source is RSTs, we had a pressing need to generate notebooks.  For example, we use them to test the code in our RSTs every night.  See the badges here:
https://lectures.quantecon.org/status.html
Anyway, I'm really pleased that some of what our project has put together is useful for others.  I hope we can share more of our tools over time.
@willingc Thanks for comments and PR ;-)
The lead devs of this project are on holiday but will be back in action in a couple of weeks.
(CC @NickSifniotis @myuuuuun @mmcky )

You are absolutely right @nthiery. Just giving a heads up...in case you hadn't seen. :sunny:
Very nice that folks are writing these tools. +1 for sharing. Happy holidays to all.

Thanks @nthiery I am working my way through the rst-to-ipynb project now - it will be an excellent resource. The collection of tests is great and I am currently trying to think of the best way to test the sphinx-extension. Would it be OK if we used many of those test cases? Also are those tests compared with known ipynb output or are they mainly for testing execution?

Thanks [1]@nthiery I am working my way through the rst-to-ipynb project
now - it will be an excellent resource. The [2]collection of tests is
great and I am currently trying to think of the best way to [3]test the
sphinx-extension. Would it be OK if we used many of those test cases?

Yes, please reuse whatever you can, in the tests or elsewhere.

Also are those tests compared with known ipynb output or are they
mainly for testing execution?

Testing execution, plus occasionally visually inspecting the produced
collated all.ipynb. Not great :-) Presumably, the right thing to do
would be to store a copy of the produced notebooks (after visual
inspection), and use nbdime [1] to automatically test later runs.
I can provide you with a copy of the currently produced ipynb if
helpful.
Cheers,
Nicolas
[1] https://github.com/jupyter/nbdime

fyi @vidarf re: nbdime

Thanks @nthiery -- a reference copy of the notebooks would be great for testing against. I will take a closer look at nbdime to see how to setup some automated testing.

I have setup some basic test infrastructure for testing a set of rst files against a known ipynb output as PR #34. Will populate with some test cases before merging.

Thanks [1]@nthiery -- a reference copy of the notebooks would be great
for testing against.

Please find it attached. Not implying it's necessarily the best possible output :-)

Oops, mail attachments don't work. Second attempt :-)
expected_outputs.zip

thanks @nthiery. It is great to get a set of corresponding notebooks -- not necessarily to use as a golden master :) -- but to get another perspective on the translation between rst and ipynb. Thanks for sending them through -- it is greatly appreciated.

Reviewing the rst2ipynb files has been really helpful. I have made a few changes so far to the extension as a result:

use html based image inclusion in markdown cells within the notebook. This allows support for directive attributes such as scale etc. See PR #45
updated display math to be simpler markdown output with default alignment properties as a result. Previously we had wrapped them in html tables.

@nthiery when integrating tests for tables I noticed one of the test cases has not header.
In the PR https://github.com/QuantEcon/sphinxcontrib-jupyter/pull/43 I have some discussion about how the extension supports tables and we currently export to markdown for readability rather than html. However this would mean that the extension couldn't parse tables without headers based on a restriction in markdown.
Do you have any thoughts from a sage perspective? Are tables (without a header) important to support?

[1]@nthiery when integrating tests for tables I noticed one of the test
cases has not header.
In the PR [2]#43 I have some discussion about how the extension
supports tables and we currently export to markdown for readability
rather than html. However this would mean that the extension couldn't
parse tables without headers based on a restriction in markdown.
Do you have any thoughts from a sage perspective? Are tables (without a
header) important to support?

Sorry, this went under the radar. From the top of my head, I don't
think this feature is used much, if at all, in Sage documents. Or
worst comes to worst, we could avoid it.
Given the readability benefits of Markdown vs HTML tables, this sounds
like a good compromise.

thanks @nthiery. Great I will go ahead and merge the table support that we have. I think down the track it would be good to support both html and markdown output.

authors: jstac mmcky nthiery willingc

repo: QuantEcon/sphinxcontrib-jupyter


text:
报错：Could not find the input entity for <telethon.tl.types.PeerChannel object at 0x107fe2630>.

执行: python login.py报错如下：
2020-03-20 11:24.42 telethon session               session=covid-19
2020-03-20 11:24.42 before telegram client start
2020-03-20 11:24.43 telegram client started
2020-03-20 11:24.43 start polling
2020-03-20 11:24.43 retriece messages with last_id last_id=1
Traceback (most recent call last):
File "login.py", line 17, in
main()
File "login.py", line 13, in main
loop.run_until_complete(crawler.start_poll())
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/base_events.py", line 573, in run_until_complete
return future.result()
File "/Users/Gavin/python3/Covid-19/ncov-channel-crawler/crawler/crawler.py", line 106, in start_poll
more = await self._poll()
File "/Users/Gavin/python3/Covid-19/ncov-channel-crawler/crawler/crawler.py", line 77, in _poll
PeerChannel(self._CHANNEL_ID), min_id=last_id, limit=100, reverse=True,
File "/Users/Gavin/python3/Covid-19/ncov-channel-crawler/venv/lib/python3.7/site-packages/telethon/client/messages.py", line 531, in get_messages
return await it.collect()
File "/Users/Gavin/python3/Covid-19/ncov-channel-crawler/venv/lib/python3.7/site-packages/telethon/requestiter.py", line 114, in collect
async for message in self:
File "/Users/Gavin/python3/Covid-19/ncov-channel-crawler/venv/lib/python3.7/site-packages/telethon/requestiter.py", line 58, in anext
if await self._init(**self.kwargs):
File "/Users/Gavin/python3/Covid-19/ncov-channel-crawler/venv/lib/python3.7/site-packages/telethon/client/messages.py", line 25, in _init
self.entity = await self.client.get_input_entity(entity)
File "/Users/Gavin/python3/Covid-19/ncov-channel-crawler/venv/lib/python3.7/site-packages/telethon/client/users.py", line 437, in get_input_entity
.format(peer)
ValueError: Could not find the input entity for <telethon.tl.types.PeerChannel object at 0x107fe2630>. Please read https://docs.telethon.dev/en/latest/concepts/entities.html to find out more details.

我没有遇到过这种问题，请问你是修改了代码么

authors: QuantumGhost V-know

repo: QuantumGhost/ncov-channel-crawler


text:
🛑 Strava stats is down

In c27a557, Strava stats (https://strava-stats.quentinp.me/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Strava stats is back up in b30536d.

repo: QuentinPhilipp/uptime


text:
How to send any file?

How to send any file? because currently we can send only images, videos and audio! so i want to have it compatible with all files! any guidance plz?

It's possible to add attachments to message: For example: image, audio file or video file. We don't have any restrictions here - you can attach any type of file. Look at this link.

any code? that can help me out?cause i partially can understand that link's instruction

For example:
       QBChatMessage chatMessage = new QBChatMessage();
       QBAttachment attachment = new QBAttachment("photo");
       attachment.setId("123456789");
       attachment.setName("attachmentName");
       attachment.setContentType("image/jpg");
       attachment.setUrl("http://image.url.com");

       chatMessage.setBody("Message with attachment body");
       chatMessage.addAttachment(attachment);

Or upload file like this and send it with attachment
QBContent.uploadFileTask(file, isPublic, new QBEntityCallback<QBFile>() {
    @Override
    public void onSuccess(QBFile qbFile, Bundle bundle) {
        // create a message
        QBChatMessage chatMessage = new QBChatMessage();
        chatMessage.setSaveToHistory(true); // Save a message to history

        // attach a txt
        QBAttachment attachment = new QBAttachment("txt");
        attachment.setId(qbFile.getId().toString());
        chatMessage.addAttachment(attachment);

        // send a message
        // ...
    }

Ok thanks! but one last help (im a newbie)
Can tell me where to add this code in q-municate project?

For example you can look at classes QBBaseChatHelper - there is creation of QBAttachment. Or QBGroupChatHelper, QBPrivateChatHelper with QBContent.uploadFileTask.

Hmmm... Can u guide me like, give me a working code of this?that would be awesome of you!

Anyone? who can help me out~!

close, long time inactivity

authors: ProgrammerNinja RomanPronin tatanka987

repo: QuickBlox/q-municate-android


text:
Server crashed after a "/player" command

Versions

Minecraft: 1.17.1
QuickCarpet: 3.1.1

Crash report
crash-2021-08-14_22.22.32-server.txt
Was not able to spawn a player using "/player spawn Alex" (no confirmation output and no error in the console), and the server crashed after "/player [name] drop" (the targeted player was online). Both client and server have the latest quick carpet version. These commands also don't work in single player. The server has the Lithium mod (v0.7.3) too.

3.1.1 does not work with 1.17.1, use 3.2.0-dev: https://github.com/QuickCarpet/QuickCarpet/actions/runs/1121892220

authors: EmilRiedeman skyrising

repo: QuickCarpet/QuickCarpet


text:
[CGR-6] Project Directory Structure

To make it easier for people moving between projects a common project directory structure should be followed. There may be multiple formats for different solutions: application, library, etc.

I'm not sure this one is something we should recommend. Maybe a very very high level structure, but even that, depending on the direction of each project, it would be pretty hard to come up with something that accommodates every situation I think.

Here is something the php community came up with:
https://github.com/php-pds/skeleton
They analyzed existing projects and basically just used what at least 80% (or some other pretty high number) of projects were doing and codified it.
These are only recommendations after all. But I do think there should probably be multiple standards

"js only, module"
"js only, application"
"composite project"

Iit would also be useful to recommend something (or at least document) what to do when the js is secondary to the project. E.g. a web app written in ruby that has javascript, but not a whole lot. This could be as simple as "defer to the main technology standards of the project".

authors: RCopeland kalisjoshua skluck

repo: QuickenLoans/js-concord


text:
Possible compat issue of some kind involving these libraries

That looks like you put both FLK and QKL in your mods folder, please only use one

Looks like that did it, but now I'm off to solve another, unrelated error.

repo: QuiltMC/quilt-kotlin-libraries


text:
Error while running R arcbinding script

Hi there,
I am now having the same error message  in calling rarcproxy as in https://github.com/R-ArcGIS/r-bridge-install/issues/3,
I was following the instructioins in the course
"_Part 1 of a two-part webinar series on integrating the statistical programming language R with Esri's ArcGIS for Desktop.
Cameron Plouffe of the Esri Canada Education and Research group covers several basic R programming concepts and manipulating data frames using Hadley Wickham's "dplyr" package, and then demonstrates how you can use the new R-ArcGIS bridge to interface directly to ArcGIS geodatabases within R.
Slide deck:http://slides.com/camplouffe/integrating-r-with-arcgis
Webinar materials: https://github.com/cplouffe/r-arcgis-webinar
Integrating R with ArcGIS (Part 2): https://www.youtube.com/watch?v=TNnCgQ-jG2I
Categoría
    Gente y blogs
Licencia
    Licencia de YouTube estándar_ "

When going through the Part 1 video of the course, everything seemed to go ok. It is when I tried to add the R script as a tool in arctoolbox (Part 2 of the course after performing the ANOVA analysis) that I had the message:
Executing: Script toronto_crime Drug_Arrests Population 4 C:\Users\josesevilla\Documents\ArcGIS\Default.gdb\toronto_crime_Script2 C:\Users\josesevilla\Documents\ArcGIS\Default.gdb\toronto_crime_Script3
Start Time: Mon Jul 18 10:34:08 2016
Running script Script...
Error in .Call("arc_error", msg, PACKAGE = "rarcproxy") :
"arc_error" not available for .Call() for package "rarcproxy"
Completed script Script...
Succeeded at Mon Jul 18 10:34:09 2016 (Elapsed Time: 1,07 seconds)
I tried running ArcMAP as Administrator but to no avail...

running the script RVversion, I get this:
Executing: RVersion
Start Time: Mon Jul 18 12:31:47 2016
Running script RVersion...
R.exe --version
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Completed script RVersion...
Succeeded at Mon Jul 18 12:31:48 2016 (Elapsed Time: 1,26 seconds)

Hello @josesevilla,
We just released a new version of the library, v121. Could you see if installing this resolves your issue?
Thanks, Shaun

Hello @josesevilla, it's been sometime since you filed this issue, and we've released a number of new versions in the interim. If you're still having problems with the current release, let us know and we can take a look.

authors: josesevilla scw

repo: R-ArcGIS/r-bridge-install


text:
Add Tomcat Container with REST API

Single Tomcat Container with Swagger and RADAR REST API

First solution RADAR-CNS/RADAR-RestApi@2ad6d95

authors: afolarin fnobilia

repo: RADAR-CNS/RADAR-Docker


text:
End of Game graphics not displaying (no handler was executed)

The End of Game overlays don't seem to be working properly for me. The game state shows End of Game is live/active and it does seem to fetch the data from the matches, but there just isnt an image being displayed in the browser source. Everytime I try to refresh the browser source I get the "Request was sent, but no handler was executed" warning.
Steps to reproduce the behavior:

Finish spectating a public match using the tool (from start to finish) & press on load match (postgame) in the game state module,
(or) load the gameid (I used 5855110823)
Check the End of Game overlays (or lack thereof)

I expect the overlays to be available when the tool fetches the data for the specific match. I assume there isnt something else I need to do before or after to make it functional.
2022-05-04T00:11:53.550Z [info ] server      : Listening for requests on http://localhost:3003
2022-05-04T00:11:59.969Z [warn ] lpte-svc    : Request was sent, but no handler was executed. This will result in a timeout. Meta={"namespace":"league-end-of-game","type":"request","version":1,"reply":"request-2c807935","channelType":"REQUEST"}
2022-05-04T00:12:01.227Z [info ] plugin-webapi: Fetching match data for matchid=5855110823
2022-05-04T00:12:01.966Z [info ] plugin-webapi: Fetched match for matchId=5855110823, gameId=5855110823
2022-05-04T00:12:13.527Z [warn ] lpte-svc    : Request was sent, but no handler was executed. This will result in a timeout. Meta={"namespace":"league-end-of-game","type":"request","version":1,"reply":"request-54ba106b","channelType":"REQUEST"}
System:

OS: Windows 10
Node: 16.10
Browser: Firefox

This should be fixed with the newest version of the end-of-game module.

authors: Himyu kryxeno

repo: RCVolus/league-prod-toolkit


text:
[suggestion] chunk for gems

Hi! i know the mod is intended for apply fortune to metals, but it would be cool to also have an option to apply it for gems too, in case a modpack creator want to add a gem cutting mechanic, while not have to sacrifice fortune.
Otherwise, the only other way i have found is to register gems as an ingot with content tweaker, then jaopca and crafttweaker to remove the added recipe for being an ingot, or add a custom chunk item and tweak everything manually

This should be pretty easy to add but you would probably be the only one to use it so I'm not sure if I'll add this

yeah, i supposed it, it is indeed a niece feature, ty for taking the time to respond

authors: Biviho RCXcrafter

repo: RCXcrafter/AOBDorechunks


text:
Downloading the binaries through a proxy

Downloading the binaries through a proxy if either HTTPS_PROXY or HTTP_PROXY environment variable is set.
closes #48

After #102 I would be inclined to accept this if you want to fix conflicts

ok, rebased.
In the meantime I changed the strategy with our CI a bit. Now https://github.com/RCasatta/electrsd/pull/51 would be more important to me, but it would still be good to have the proxy stuff included.

I don't think the CI build error in 1.41.1 has anything to do with my changes.

authors: RCasatta ulrichard

repo: RCasatta/bitcoind


text:
Faucet Documentation Error

There is a problem with the architecture documentation.
Table 6: ETH_DST << should be VIP
Operations:
        Send traffic destined for FAUCET VIPs to the controller

https://github.com/REANNZ/faucet/commit/48732f48c2274356974f6a9c6390dd790cb8d911

repo: REANNZ/faucet


text:
Values in x axis disappear when using scale_x_flowjo_fasinh()

Using the following function:
p_ch_eq <- ggcyto(transform(gat2_comp, transList), aes(x = 488 B 525/50-A, y =  640 C 670/10-A))
p_ch_eq <- p_ch_eq + geom_hex(bins = 128)
p_ch_eq  + ggcyto_par_set(limits = list(x = c(0.5, 5), y = c(0, 5))) + geom_density2d(colour = "black")
I get this plot:

As you can see the values for both axis (x and y) are displayed from 1 to 5. This is log scale. When I add the function scale_x_flowjo_fasinh() to scale up my data in the x axis I got the following plot:

And as you can see there are no displayed values for the x axis. Is there any way to transform the data along the x axis and at the same time display the values of that axis?

It works fine for me ,
data("GvHD")
fs <- GvHD[1:2]
p <- ggcyto(transform(fs, aes(`FL1-H`, `FL2-H`)) + geom_hex() + geom_density2d(color = "black")
p + scale_x_flowjo_fasinh() + scale_y_log10()

Make sure you don't transform 488 B 525/50-A when your do transform(gat2_comp, transList) so that you end up transform it twice as you add scale_x_flowjo_fasinh

authors: mikejiang pablodig

repo: RGLab/ggcyto


text:
why should we trust any repo you maintain?

You're a cybercriminal.

*a hero 🤭

*a hero 🤭

@Krutoy-4el not sure how wiping the computers of fellow developers can be considered "heroic". And even if you somehow believe that Russians and Belarusians who have no control over the situation deserve this, take note that this has also damaged attempts to document human rights violations and war crimes commited by these countries leaders1 2. In addition, he has attempted to cover up his crimes, lie about the impact, and censor people who tried to warn others of the malware and it's impact3.

full story for those interested in why people no longer trust this guy

authors: Krutoy-4el TheMikeyRoss TheOtterlord


text:
🛑 Activated Male is down

In ce33e1b, Activated Male (http://activatedmale.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Activated Male is back up in e0a4035.

repo: RJVCA/uptime


text:
🛑 Ancient Pet Liver is down

In 74f8162, Ancient Pet Liver (https://ancientpetliver.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Ancient Pet Liver is back up in 30131b5 after 7 minutes.


text:
BigNumber Error

BigNumber Error: BigNumber() constructor call without new:

It resolves after I added new at line 61 and 64 (#L61-64)

Easy fix. Library must have changed for this to slip through.

authors: jimmydorry shernshiou


text:
🛑 Sensor Tracker login is down

In 2eec61f, Sensor Tracker login (https://stg.ceotr.ca/sensor_tracker) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Sensor tracker login is back up in 5e19d98 after 1 minute.

repo: RKTowse/upptime


text:
🛑 Sensor Tracker login is down

In 2032815, Sensor Tracker login (https://stg.ceotr.ca/sensor_tracker) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Sensor tracker login is back up in d8ec658 after .


text:
🛑 CEOTR Home Page loads is down

In bf06f24, CEOTR Home Page loads (https://stg.ceotr.ca CEOTR Home) was down:

HTTP code: 0
Response time: 0 ms

Resolved: CEOTR Home Page loads is back up in fe7cb2d after 2 minutes.


text:
🛑 Sensor Tracker login is down

In 0fdd0ae, Sensor Tracker login (https://stg.ceotr.ca/sensor_tracker) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Sensor tracker login is back up in cefadc0 after .


text:
🛑 CEOTR Home Page loads is down

In 12467e3, CEOTR Home Page loads (https://stg.ceotr.ca CEOTR Home) was down:

HTTP code: 0
Response time: 0 ms

Resolved: CEOTR Home Page loads is back up in 60417de after 2 minutes.


text:
🛑 Sensor Tracker login is down

In 06423f9, Sensor Tracker login (https://stg.ceotr.ca/sensor_tracker) was down:

HTTP code: 502
Response time: 96 ms

Resolved: Sensor tracker login is back up in fa1cfb0.


text:
🛑 CEOTR Home Page loads is down

In 1ea750b, CEOTR Home Page loads (https://stg.ceotr.ca CEOTR Home) was down:

HTTP code: 0
Response time: 0 ms

Resolved: CEOTR Home Page loads is back up in 915a93c after 2 minutes.


text:
🛑 Sensor Tracker login is down

In 85a1f45, Sensor Tracker login (https://stg.ceotr.ca/sensor_tracker) was down:

HTTP code: 502
Response time: 97 ms

Resolved: Sensor tracker login is back up in 6d4482b.


text:
🛑 CEOTR Home Page loads is down

In 05218ef, CEOTR Home Page loads (https://stg.ceotr.ca CEOTR Home) was down:

HTTP code: 0
Response time: 0 ms

Resolved: CEOTR Home Page loads is back up in 5ab5956.


text:
🛑 CEOTR Home Page loads is down

In d1c045f, CEOTR Home Page loads (https://stg.ceotr.ca CEOTR Home) was down:

HTTP code: 0
Response time: 0 ms

Resolved: CEOTR Home Page loads is back up in 4fa1bb2 after 2 minutes.


text:
🛑 Sensor Tracker login is down

In 934a8c4, Sensor Tracker login (https://stg.ceotr.ca/sensor_tracker) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Sensor tracker login is back up in 5e08fa0 after .


text:
🛑 CEOTR Home Page loads is down

In de8517d, CEOTR Home Page loads (https://stg.ceotr.ca CEOTR Home) was down:

HTTP code: 0
Response time: 0 ms

Resolved: CEOTR Home Page loads is back up in 149c37c.


text:
🛑 Sensor Tracker login is down

In de190f2, Sensor Tracker login (https://stg.ceotr.ca/sensor_tracker) was down:

HTTP code: 502
Response time: 97 ms

Resolved: Sensor tracker login is back up in 963acd7.


text:
🛑 Sensor Tracker login is down

In 545118c, Sensor Tracker login (https://stg.ceotr.ca/sensor_tracker) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Sensor tracker login is back up in f37f854 after .


text:
🛑 Sensor Tracker login is down

In b2ff87b, Sensor Tracker login (https://stg.ceotr.ca/sensor_tracker) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Sensor tracker login is back up in 1e5ed88 after .


text:
🛑 CEOTR Home Page loads is down

In cede1a5, CEOTR Home Page loads (https://stg.ceotr.ca CEOTR Home) was down:

HTTP code: 0
Response time: 0 ms

Resolved: CEOTR Home Page loads is back up in 2322681 after 2 minutes.


text:
🛑 Sensor Tracker login is down

In a679058, Sensor Tracker login (https://stg.ceotr.ca/sensor_tracker) was down:

HTTP code: 502
Response time: 111 ms

Resolved: Sensor tracker login is back up in 13f3f88 after 38 days, 6 hours, 47 minutes.


text:
🛑 CEOTR Home Page loads is down

In f65f61b, CEOTR Home Page loads (https://stg.ceotr.ca CEOTR Home) was down:

HTTP code: 0
Response time: 0 ms

Resolved: CEOTR Home Page loads is back up in 9d29dbc after 2 minutes.


text:
queen can use burrower tunnels WHILE ON OVI

Description
bruh

The message that tells you you can't do this should be:
We can't climb through a tunnel while immobile.

Fixed by https://github.com/RMC-14/RMC-14/pull/5006

authors: DrSmugleaf Kadeo64 Skarletto


text:
Unrecognised version number: 65

i'm developing an application for android and iOS which communicate with PHP server, i am using RNCryptor to encrypt the data between them.
For both iOS , PHP encryption/decryption are working fine but in android the decryption are not working and giving me org.cryptonode.jncryptor.CryptorException: Unrecognised version number:65.
After tracing your code in Android you are supporting 2 versions of codes "2","3" and my encryption from the server "PHP" is returing 65
So do you have any idea what i'm doing wrong ?

have the same issue(
String to decode: "AwGBfFE6+BAQXP6iS/76r8eyzMlCUrIpGIiCJ1txpMw11hk32ObOniqi41T7BoG7dtXTecn4kOEh8NQQP MUxYzuwCb9kjaDyLcfDcWGh5JxTkA=="
key: "vRmfE690PF8u0123e24W7OdhF37g5e8g"

A (not so wild) guess here, but likely one side is using base64 to encode the output, the other isn't decoding it.

Your guess is correct that decoding money needs to do base64 processing first

authors: FoneG ramziShadid vados60

repo: RNCryptor/JNCryptor


text:
ginkgo-DotOS-dot12.1-abhishekhembrom08

RMX1805-Evolution-X-elle-abhishekhembrom08 please sucess this time.

done this one so closing.

repo: ROM-builders/temporary


text:
[Enhanced Cover Art Upload] rateyourmusic broken?

I've successfully used this with Bandcamp, DIscogs, Amazon, and Deezer, but RYM is giving me this error message. The link is not recognized automatically, either. I am logged in, but even so I have to jump through hoops to get to the artwork manually so that's probably related.

Here's the MB page: https://beta.musicbrainz.org/release/6cacebb4-e212-46c6-84fa-7f644704d237/cover-art

#785 will fix the script to recognise those RYM URLs. However, RYM support might be broken for the reasons mentioned there, so YMMV.

If RYM support is still broken for you after this patch (e.g., HTTP error 403), feel free to open a new issue report 🙂

authors: ROpdebee psychoadept

repo: ROpdebee/mb-userscripts


text:
Modify deployment target to iOS 10.0

Do you have any reason to set the deployment target OS to iOS11?
If there is no reason, will you change it to iOS 10.0 or higher?

Thanks!

Thanks


text:
Magic carpet has two shadows

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Go to Shantay Pass
Travel to Pollnivneach using a carpet
Make sure Hide Fake Lights and Shadows is enabled in 177 HD settings
Observe two shadows, one from the base game, one from 177 HD

Expected behavior
Only the shadow from 177 HD is visible.
Screenshots

Environment (please complete the following information):

OS: Windows
RuneLite version: 1.8.20
Launcher version: 2.1.3

Turn on disable baked shadows if, it's on May of been 1 that I've missed

Turn on disable baked shadows if, it's on May of been 1 that I've missed

It is

Ah yes, I shall add to the list

#311 Fixed

authors: Mark7625 sz-piotr xxEzri


text:
[TorrentGalaxyBridge] Add new bridge

New bridge for TorrentGalaxy. This bridge provide a feed for TGx based on search term and the required language.
TorrentGalaxy shares MiNX releases (x265 encoded videos), lighter in size and with a better resolution.
Known-bug: sometimes the site ask for a a human validation, but this occur not so often.

Hmmm, Travis annoyed me with "String concat is not required here; use a single string instead" where I use something like $var = self::URI . '/torrents.php'
Should I correct that ? Because it's seems very legit to write that kind of statement. "self::URI/torrents.php" is not very conventional, nor easily readable.
Someone to tell me the best way ?

Travis is actually complaining about the entire statement up to the final semi-colon. It just happens to begin at that line. Essentially, if you concatenate two literal strings, you can just make them one. There is an example on the Wiki.

Looks good to me. Thanks for your contribution :+1:

authors: GregThib LogMANOriginal

repo: RSS-Bridge/rss-bridge

license: unlicense


text:
Error TS2449: Class 'BaseClient' used before its declaration

Versions >=12.0.0.0, the class BaseClient is generated at the end of the file and TypeScript throw error "Error TS2449: Class 'BaseClient' used before its declaration".

I'm also facing this issue.
Generated using the NSwag toolchain v12.0.1.0 (NJsonSchema v9.12.3.0 (Newtonsoft.Json v11.0.0.0)) (http://NSwag.org)

<Target Name="ClientBuildAndBundle" AfterTargets="Build" Condition="$(SkipCustomization)!='true'">
	<Copy SourceFiles="@(ReferencePath)" DestinationFolder="$(OutDir)References" />
	<Exec Command="$(NSwagExe_Core21) run $(SpaRoot)nswag.json /variables:Configuration=$(Configuration)" />
	<RemoveDir Directories="$(OutDir)References" Condition="$(SkipCustomization)!='true'" />
</Target>

"codeGenerators": {
		"swaggerToTypeScriptClient": {
			"className": "{controller}Client",
			"moduleName": "",
			"namespace": "",
			"typeScriptVersion": 2.7,
			"template": "Fetch",
			"promiseType": "Promise",
			"httpClass": "Http",
			"injectionTokenType": "OpaqueToken",
			"dateTimeType": "Date",
			"nullValue": "Undefined",
			"generateClientClasses": true,
			"generateClientInterfaces": true,
			"generateOptionalParameters": false,
			"wrapDtoExceptions": false,
			"wrapResponses": false,
			"generateResponseClasses": false,
			"responseClass": "SwaggerResponse",
			"useTransformOptionsMethod": false,
			"useTransformResultMethod": false,
			"generateDtoTypes": true,
			"operationGenerationMode": "MultipleClientsFromOperationId",
			"markOptionalProperties": true,
			"generateCloneMethod": false,
			"typeStyle": "Interface",
			"extensionCode": "src/api/client.extensions.ts",
			"clientBaseClass": "BaseClient",
			"generateDefaultValues": true,
			"excludedTypeNames": [],
			"handleReferences": false,
			"generateConstructorInterface": true,
			"convertConstructorInterfaceData": false,
			"importRequiredTypes": true,
			"useGetBaseUrlMethod": true,
			"baseUrlTokenName": "API_BASE_URL",
			"queryNullValue": "",
			"output": "src/api/controllers.ts"
		}
	}

// ...
function throwException(message: string, status: number, response: string, headers: { [key: string]: any; }, result?: any): any {
    if(result !== null && result !== undefined)
        throw result;
    else
        throw new SwaggerException(message, status, response, headers, null);
}

export class BaseClient {

    public getBaseUrl = (path?: string) => {
        return getBaseUrl();
    }
}
// ...

What is the content of client.extensions.ts?

export class BaseClient {
// Este método se ejecuta cada vez que realizamos una petición al servicio web
protected transformOptions(options: any) {
return Promise.resolve(options);
}
// Método que pinta la petición y respuesta
protected transformResult(url: string, response: HttpResponseBase, processor: (response: HttpResponseBase) => any): Observable<any> {
    return processor(response);
}

}

Looks good to me (v12.0.1):

Output:

XD.
I created a new project with same settings the old project and it remains.
Project Nswag:
https://www.dropbox.com/s/rup20qufmu6qwx6/Config-Nswag-Problem-With-BaseClient.nswag?dl=1
This my settings:

If i press ENTER next to the open bracket class, this character is generated.
Nswag is sensitive from version >=12.0.0.0
Thanks you help @RSuter

This is not good. Will check it

I'm still having this problem with with the latest v12.0.3.0

The fix is not released yet.

@Wezea do you think the fix https://github.com/RSuter/NJsonSchema/commit/a2fd2158785d956b1e010aea58a64884e24178c2 will solve your problem too?

This is the controller.ts and client.extension.ts. The build chain setting I described here
The problem is still that the BaseClient is insert after the Client.
api.zip

I had accidentally added my base class to the extendedClasses property which resulted in this behavior... Doesn't appear you've done that, but thought I'd mention it for anyone else who might come along with this issue. Makes sense since extended classes need to be declared after the generated ones.

12.2.5 was working fine for me. But, updating to 12.3.0 which was released 5 hours ago gives me the error TS2449: Class 'Foo' used before its declaration.
It seems the ordering of how the model classes are written in the output .ts file is not taking into account the inheritance between them.

12.2.5 was working fine for me. But, updating to 12.3.0 which was released 5 hours ago gives me the error TS2449: Class 'Foo' used before its declaration.
It seems the ordering of how the model classes are written in the output .ts file is not taking into account the inheritance between them.

The same happened to me just now

Will fix this soon

See https://github.com/RicoSuter/NSwag/issues/2184

authors: RSuter RicoSuter Wezea alvarosinmarca jordan-ware llusetti maxotek

repo: RSuter/NSwag


text:
Pragma warning disable with comment incompatible with Resharper code analysis

Hi
In the C# generated client, the pragma disable warning line (#205), with trailing comment is ignored by Resharper code analysis leading to warnings being identified. Obviously this is not an issue with NSwag, however would it be at all possible to move the comment to the line above (or just remove it) since they seem unlikely to fix any time soon?
Thanks very much!

Can you create a pr with this? File.liquid
Thanks

See #1832
Thanks!

PR merged + released v12.0.9

authors: RSuter ackginger


text:
Generating C# Web API Controllers, no response codes

From an Open API spec I generate C# code for some web API controllers (ASP.NET Core). However, in the generated code it seems to me that no HTTP status codes are specified (e.g. by using attributes like [ProducesResponseType(404)] before each method definition).
This has the effect that the Swagger UI generated from the code lacks any information about the different return codes, only 200 appears.
Did I miss anything in the configuration of the code generator?

The controller generator is not really ready for ASP.NET Core output and needs a lot of work... see https://github.com/RSuter/NSwag/projects/4

authors: DrDeterminant RSuter


text:
[HUST CSE][rt_ai_mpython.c]fix: In line 63,wrong conditional judgment, change the duplicate info.input_n to output_n

第63行条件判断语句错误 if(!handle->info.input_n && !handle->info.input_n)，重复判断 !handle->info.input_n，该条件原意对infoinput_n和info.input_n进行判断，由于失误重复对infoinput_n进行了判断，应将后一个改为 !handle->info.output_n

麻烦审核一下该份pr或提出意见，谢谢

@pinxue @BernardXiong @armink

麻烦审核一下该份pr或提出意见，谢谢

收到，我最近回合并，谢谢。

麻烦审核一下该份pr或提出意见，谢谢

收到，我最近回合并，谢谢。

请问我看到有check failed但原因是dependence安装错误，会有影响吗？

收到，我检查一下，谢谢。

麻烦审核一下该份pr或提出意见，谢谢

收到，我最近回合并，谢谢。

请问我看到有check failed但原因是dependence安装错误，会有影响吗？

收到，我检查一下，谢谢。

您好，再次打扰抱歉。请问这个pr是否还能被合并呢？

不好意思，我们CI好像有点问题，我会手动试一下你的，如果没问题我就合并了。谢谢。

好的，谢谢。校方这边今天在催所以麻烦了。

repo: RT-Thread/RT-AK


text:
🛑 GeoHelper (.ru) is down

In e1c5084, GeoHelper (.ru) (https://geohelper.rtuitlab.ru) was down:

HTTP code: 0
Response time: 0 ms

Resolved: GeoHelper (.ru) is back up in 1d3fd95.

repo: RTUITLab/upptime


text:
🛑 Hahaton is down

In 09d40bb, Hahaton (https://hahaton-mirea.ru) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Hahaton is back up in bab33e8.


text:
Update Lens To V2

:construction_worker: Purpose
Lens was refactored, start some test refactoring
:rocket: Changes

Remove all usage of v1 lens and replace with v2 lens
add mocks of rtfs for better test handling

:warning: Breaking Changes

No, support for Lens through the API was long deprecated pending replacement with the v2 API. That being said, original usage patterns will work for indexing, but not for searching

@bobheadxi can confirm lens reindex works :ok_hand:

repo: RTradeLtd/Temporal


text:
output speed changes without any reason

the output voice's speed so the pitch changes without a reason. It is a checkpoint pth so it doesn't have an index file. As seen in the video; it works the first time, but not the second time. What could be the reason of this?
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/assets/90216013/32dd1029-e992-48da-8637-156b8fdf14e2

What's the version of RVC you used?

It's a history bug. If you modify the output sample rate, the second output audio would be strange, and this is fixed on the latest version.


text:
Error while converting in Model Inference

After training, I proceed to input the Inferencing voice and index file to convert but all of them gave the same error. How do I fix this problem?
"
Traceback (most recent call last):
File "C:\Users\Asus\AI\RVC-beta\RVC-beta-v2-0528\my_utils.py", line 14, in load_audio
ffmpeg.input(file, threads=0)
File "C:\Users\Asus\AI\RVC-beta\RVC-beta-v2-0528\runtime\lib\site-packages\ffmpeg_run.py", line 325, in run
raise Error('ffmpeg', out, err)
ffmpeg._run.Error: ffmpeg error (see stderr output for detail)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Asus\AI\RVC-beta\RVC-beta-v2-0528\infer-web.py", line 161, in vc_single
audio = load_audio(input_audio_path, 16000)
File "C:\Users\Asus\AI\RVC-beta\RVC-beta-v2-0528\my_utils.py", line 19, in load_audio
raise RuntimeError(f"Failed to load audio: {e}")
RuntimeError: Failed to load audio: ffmpeg error (see stderr output for detail)
Traceback (most recent call last):
File "C:\Users\Asus\AI\RVC-beta\RVC-beta-v2-0528\runtime\lib\site-packages\gradio\routes.py", line 321, in run_predict
output = await app.blocks.process_api(
File "C:\Users\Asus\AI\RVC-beta\RVC-beta-v2-0528\runtime\lib\site-packages\gradio\blocks.py", line 1007, in process_api
data = self.postprocess_data(fn_index, result["prediction"], state)
File "C:\Users\Asus\AI\RVC-beta\RVC-beta-v2-0528\runtime\lib\site-packages\gradio\blocks.py", line 953, in postprocess_data
prediction_value = block.postprocess(prediction_value)
File "C:\Users\Asus\AI\RVC-beta\RVC-beta-v2-0528\runtime\lib\site-packages\gradio\components.py", line 2076, in postprocess
processing_utils.audio_to_file(sample_rate, data, file.name)
File "C:\Users\Asus\AI\RVC-beta\RVC-beta-v2-0528\runtime\lib\site-packages\gradio\processing_utils.py", line 206, in audio_to_file
data = convert_to_16_bit_wav(data)
File "C:\Users\Asus\AI\RVC-beta\RVC-beta-v2-0528\runtime\lib\site-packages\gradio\processing_utils.py", line 219, in convert_to_16_bit_wav
if data.dtype in [np.float64, np.float32, np.float16]:
AttributeError: 'NoneType' object has no attribute 'dtype'"

What's the path of your input audio?

What's the path of your input audio?

It inside the "weights" file inside the "RVC-beta-v2-0528" files
C:\Users\Asus\AI\RVC-beta\RVC-beta-v2-0528\weights

i have the same issue did you figure it out??

Same problem


text:
Selected Items Panel Background

I can't find the property 'Selected Items Panel Background' in Custom Style. Is it possible change it?

Should be resolved with the latest build (assembly version: 1.0.21; nuget package version 1.0.60).
Use the new properties added: SelectedItemsPanelBackground, DropDownPopupBackground.

authors: phliberato sdolhaor

repo: RWS/Multiselect-ComboBox


text:
Patch Methods

I added the Patch device method and the tests as described in issue 74.
I discovered that Patch Entity and the context model changes were not yet live on development and only local in #30.
I therefore bundled here all these changes to be reviewed together.
The made changes can be summarized as:

Patch Methods (Device and Entity)
ContextEntity Remodel (to make attribute interface more clear to the user)
Helper functions (does entity/device exists ?)
Test functions to test new and a few old uncovered methods
Change of comments to make functionality more clear

please adjust the changelog

authors: RedingJeff tstorek

repo: RWTH-EBC/FiLiP


text:
React todo list app

In this milestone, I;

Created the todo app using create react app
Set up linters for react/redux
Added a descriptive README file
Implemented the correct use of gitflow
Implemented the use of Components, props and state, events, hooks, lifting state
Used Best practices in my code
Fixed linter errors

status: APPROVED :green_circle: :100:
Hi, @Rachelwebdev ,

Good job so far 👍 Your project is complete!  There is nothing else to say other than... it's time to merge it :shipit:
Congratulations! 🎉
Highlights ⚡
✅ Descriptive PR 👍
✅ Nice design 🔥
✅ Linters are passing 👏
✅ Correct functionality 🙌
Optional suggestions

N/A

Every comment with the [OPTIONAL] prefix won't stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better. Some of them were simply missed by the previous reviewer and addressing them will really improve your application.
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.

As described in the Code reviews limits policy  you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.

Thanks for the approval

authors: Rachelwebdev anthonymr

repo: Rachelwebdev/react-todo


text:
Add security definition for generate python client with auth enabled

Python client generator is now point to the monorail.yml, so add the security fields to enable auth in client code.
@RackHD/corecommitters @cgx027

*** BUILD #491 ***

test this please

:+1:

:+1:

+1

authors: JenkinsRHD WangWinson anhou jlongever

repo: RackHD/on-http


text:
Remove microkernel required property from shell-reboot base task

I'm using this task for some switch discovery scripts, because the code and data structures deserve re-use, but the property tags are now a little too restrictive and don't add any value.
Supports:
https://github.com/RackHD/on-http/pull/210
https://github.com/RackHD/on-taskgraph/pull/84
@RackHD/corecommitters @VulpesArtificem

:+1:

:+1:

test this please

authors: anhou benbp jlongever yyscamper

repo: RackHD/on-tasks


text:
Table feature doesn't support variable list size

When there is less/more than 30 students on the grading CSV file, the generated PDF will still generate 30 columns.
The problem is that lines and cell dimensions are still hard-coded from the unwraped PDF file that was used to implement this feature.
In order to fix this, the code must:

Take number of students in calculations, when calculating table lines
Take number of students in calculations, when calculating number of cells

Trying to introduce PDF generation library to genpdf-rs, since it has much more high level, user friendly API for generating tables without low level calculations. It should be able to render tables with less code, which will be more maintanable.

Still missing lines when there's 32 students in the group.

repo: RadeKornjaca/lister


text:
Null safety support

Flutter 2 is here!
Please consider migrating to null-safety.

Available in 3.0.0 version


text:
Enhance update_config_docstring.py: Type Hint Integration and Improved Documentation Handling

update_config_docstring.py
Overview
The update_config_docstring.py script has been updated to enhance the documentation generation process for the InvokeAIAppConfig class. These updates include the addition of type hints, improved handling of unknown variable and member types, and more robust documentation generation. This description will cover each of the updates made, along with the specific issues that were resolved.

Addition of Type Hints

Issue:

The script previously did not include explicit type hints for variables such as k, v, and others within loops and functions, which led to errors being flagged by tools like Pylance.

Update:

Added explicit type hints for variables to ensure that the script is compatible with static type checkers.
This involved identifying the types of variables such as k and v within the loop iterating over InvokeAIAppConfig.model_fields.items(). The types were determined based on their usage and context.

Resolution:

The k variable was identified as a str, representing the key in the dictionary.
The v variable was identified as an instance of a model field class, which was inferred from the InvokeAIAppConfig.model_fields dictionary.

python
for k: str, v: ModelFieldType in InvokeAIAppConfig.model_fields.items():
if v.exclude or k in _excluded:

Handling Unknown Member Types

Issue:

Pylance flagged errors related to unknown member types such as items() and exclude. These methods were part of the dictionary and model field objects, respectively, but their types were not explicitly defined.

Update:

The script was updated to provide explicit type information for these members to ensure that the type checker recognizes them correctly.
For example, items() was confirmed to be a method of dictionary objects returning an iterable of key-value pairs, and exclude was recognized as a boolean attribute of model fields.

Resolution:

The following updates were made:

python
for k: str, v: ModelFieldType in InvokeAIAppConfig.model_fields.items():
if v.exclude or k in _excluded:
This ensures that the type checker understands the usage of these methods and attributes, resolving the errors flagged by Pylance.

Enhanced Documentation Generation

Issue:

The original script generated documentation strings based on model field descriptions but lacked some context-specific information, such as valid values for Literal types.

Update:

The script was enhanced to include the valid values for Literal types within the generated documentation. This was done by checking if a field’s type was a Literal and then extracting the possible values to include in the documentation.

Resolution:

The generate_config_docstrings function was updated to detect Literal types and append the valid options to the documentation string.

python
if getattr(field_type, "origin", None) is Literal:
options = [f"{str(x)}" for x in get_args(field_type)]
extra = f"Valid values: {', '.join(options)}"
This enhancement provides clearer and more complete documentation for users interacting with the InvokeAIAppConfig class.

Improved Docstring Replacement Logic

Issue:

The original script replaced the existing docstring with a new one but had potential issues with accurately locating and replacing the docstring without introducing syntax errors.

Update:

The script was improved to ensure that the docstring replacement process is robust. This included accurately locating the start and end of the existing docstring and inserting the new docstring with proper formatting.

Resolution:

The following logic was implemented:

docstring_start_index = next(i for i, line in enumerate(lines[class_def_index:]) if '"""' in line) + class_def_index
docstring_end_index = (
    next(i for i, line in enumerate(lines[docstring_start_index + 1 :]) if '"""' in line)
    + docstring_start_index
    + 1
)

lines = lines[:docstring_start_index] + [docstring, "\n"] + lines[docstring_end_index + 1 :]

This ensures that the docstring is correctly replaced without affecting the rest of the file, maintaining the integrity of the code.

Conclusion
These updates address the issues related to unknown types and member functions, enhance the robustness of the docstring generation process, and ensure that the script is compatible with static type checkers. The improvements make the `update_config_docstring.py` script more reliable and the generated documentation more informative for developers using the `InvokeAIAppConfig` class.

## Summary

<!--A description of the changes in this PR. Include the kind of change (fix, feature, docs, etc), the "why" and the "how". Screenshots or videos are useful for frontend changes.-->

## Related Issues / Discussions

<!--WHEN APPLICABLE: List any related issues or discussions on github or discord. If this PR closes an issue, please use the "Closes #1234" format, so that the issue will be automatically closed when the PR merges.-->

## QA Instructions

<!--WHEN APPLICABLE: Describe how you have tested the changes in this PR. Provide enough detail that a reviewer can reproduce your tests.-->

## Merge Plan

<!--WHEN APPLICABLE: Large PRs, or PRs that touch sensitive things like DB schemas, may need some care when merging. For example, a careful rebase by the change author, timing to not interfere with a pending release, or a message to contributors on discord after merging.-->

## Checklist

- [ ] _The PR has a short but descriptive title, suitable for a changelog_
- [ ] _Tests added / updated (if applicable)_
- [ ] _Documentation added / updated (if applicable)_

This pull request introduces significant updates to the update_config_docstring.py script:

Type Hint Integration: Improved type hinting for better code readability and to aid static analysis tools. This includes specifying types for variables to resolve previously unknown type errors reported by Pylance.

Enhanced Error Handling: Replaced generic exception handling with more specific exceptions to improve error handling and debugging processes. This ensures that errors are more accurately caught and addressed.

Documentation Updates: Adjusted the script to better handle docstring generation for the InvokeAIAppConfig class. The new implementation ensures that the generated docstrings are accurate and comprehensive, reflecting the latest configuration attributes and their descriptions.

Fixes for Pylance Issues: Addressed several Pylance warnings related to unknown variable and member types by adding appropriate type hints and ensuring compatibility with Pylance's type checking.

These updates enhance the maintainability of the script, improve its robustness, and ensure that it generates up-to-date and accurate documentation for the InvokeAIAppConfig class.


text:
🛑 RSOS服务控制面板 is down

In 0145210, RSOS服务控制面板 (https://$US_SITE) was down:

HTTP code: 530
Response time: 246 ms

Resolved: RSOS服务控制面板 is back up in 543beab after 11 minutes.

repo: RainThings/uptime


text:
🛑 HK区服 is down

In 0e1043d, HK区服 (https://$HK_SERVER) was down:

HTTP code: 0
Response time: 0 ms

Resolved: HK区服 is back up in f51f897.


text:
你好，很喜欢你这个风格，能否把整个模板库分享下，自己做太难了

你做的已经很好了，基本功能都有了。之后等我的工作流再成熟一点，会放库上来，现在还有点零碎。

你做的已经很好了，基本功能都有了。之后等我的工作流再成熟一点，会放库上来，现在还有点零碎。

期待 ing

好强

请问下面的热力图是怎么实现的

请问下面的热力图是怎么实现的

Activity History
obsidian://show-plugin?id=obsidian-activity-history

已分享示例库，可以去releases下载。


text:
using dbflow to access content provider from other app that using  dbflow

Hi
i want to know how to access content provider from one app to other app,in 2 app i use dbflow and i should access from app 1 to 2 database and from app 2 to 1 database , if just one app installed no access for others

this is not a dbflow question but a general ContentProvider question, which can go on stackoverflow.

authors: agrosner muhammadzadeh

repo: Raizlabs/DBFlow


text:
[Feature]  Add a calculator to calculate the angle between two lines

Description
Add a calculator to calculate the angle between two lines
Please do assign me this issue under gssoc'24
Screenshots
No response
Checklist

[X] I have checked the existing issues.
[X] I follow Contributing Guidelines of this project.
[X] I am a GSSOC'24 contributor.
[ ] I am a IWOC'24 contributor.
[ ] I am a JWOC'24 contributor.
[ ] I am a SWOC'24 contributor.

Code of Conduct

[X] I agree to follow this project's "Code of Conduct".

Provide any supporting screenshot or reference to this type of calculator @AMS003010

So this calculator will be used to get the angle theta between two lines. The angle theta will be calculated using the formula in the below screenshot.
Screenshot

Hello @Rakesh9100 🤗
Would be great if you could assign me this issue under gssoc'24

If the equation of a line is taken to be in the form of ax + by  + c = 0, then the values of a, b and c for the 1st line and the 2nd line each is taken as input from the user and the the slope for each line is calculated , which become m1 and m2. Then m1 and m2 are used to calculate the inner angle between the lines using the formula below

Hello @Rakesh9100 🤗
Please assign me this issue under gssoc'24.
Thank you

What would be the name of your calculator @AMS003010

It could be called Angle between two lines calculator

So @Rakesh9100 can I start working on this issue
We can improvise on the name of the calculator if its too long...

Go ahead @AMS003010

@Rakesh9100
I have added the angle between two lines calculator.
Please do review the PR and add the appropriate labels.

@Rakesh9100
I have added the angle between two lines calculator and fixed all the issues.
Sorry for the delay 😅