text:
ToggleGroup and CheckButtonGroup Same?

Is one deprecated?

No, ToggleGroup is a factory class that allows creating all combinations of toggle and checkbox widgets.

source: gharchive/issue

repo: pyviz/panel

license_type: permissive

license_source: github-api


text:
The given default value, bounds and step are not respected

Hello, this is my first issue on github. I am sorry if it is a repetition of a problem already encountered, but I have not found anything on this. It seems that the declared parameters (both Integers, or Magnitude, or else) do not respect the given default value, bounds and step: the resulting default value is always the lower bound set, furthermore the range of the parameter is always split into three steps.
An example can be found here: https://nbviewer.jupyter.org/github/agiord/ibk_temp_plot/blob/master/problem_param.ipynb
The funny thing is that it worked just fine until this morning, then when I started to clean my code it stopped working, even for these minimal examples.
Thank you in advance for your time, and thanks also for this cool package!
Antonio

I haven't been able to reproduce this problem with Panel 0.6:

actually today it started to work normally again as @jbednar reports

authors: agiord jbednar

repo: pyviz/param


text:
Travis builds occasionaly failing due to connectivity issues

In several builds I saw now this issue (if you rerun it the issue may dissappear):

Job 36.1 (failed): https://travis-ci.org/pywikibot-catfiles/docker-file-metadata/jobs/146195909#L3693
Job 37.1 (ok): https://travis-ci.org/pywikibot-catfiles/docker-file-metadata/jobs/146201869

In two jobs/commits do differ in docu changes only, so not in the relevant (or any) code - they are just an example that shows the issue. It seams to be caused by download(url.format(predictor_arch), arch_path). I saw several errors, like:

/usr/lib/python2.7/urllib2.py:1184: URLError
/usr/lib/python2.7/socket.py:476: timeout

I would suggest to use the @retry decorator with download() or have any alternative retry failure handling procedure.

/usr/lib/python2.7/urllib2.py:1184: URLError --> https://bpaste.net/show/1da9ad10980e
/usr/lib/python2.7/socket.py:476: timeout --> https://bpaste.net/show/031be6342d6a

repo: pywikibot-catfiles/file-metadata

license: mit

license_source: bigquery


text:
AttributeError: 'NoneType' object has no attribute 'right_click_input'

I fail on running example from README.md
Windows 7 64bit, Python 3.5.2 32bit (and Python 3.5.2 64bit)
[PYWINAUTO] λ python explore.py
2017-01-17 09:25:13,233 INFO: Imported existing <module 'comtypes.gen' from 'C:\\Users\\ME\\Envs\\PYWINAUTO\\lib\\site-packages\\comtypes\\gen\\__init__.py'>
2017-01-17 09:25:13,237 INFO: Using writeable comtypes cache directory: 'C:\Users\ME\Envs\PYWINAUTO\lib\site-packages\comtypes\gen'
Traceback (most recent call last):
  File "explore.py", line 10, in <module>
    common_files.right_click_input()
AttributeError: 'NoneType' object has no attribute 'right_click_input'

explore.py
from pywinauto import Desktop, Application

Application().start('explorer.exe "C:\\Program Files"')

# connect to another process spawned by explorer.exe
app = Application(backend="uia").connect(path="explorer.exe", title="Program Files")

app.ProgramFiles.set_focus()
common_files = app.ProgramFiles.ItemsView.get_item('Common Files')
common_files.right_click_input()
app.ContextMenu.Properties.invoke()

# this dialog is open in another process (Desktop object doesn't rely on any process id)
Properties = Desktop(backend='uia').Common_Files_Properties
Properties.print_control_identifiers()
Properties.Cancel.click()
Properties.wait_not('visible') # make sure the dialog is closed

@Tset-Noitamotua, you get the error because app.ProgramFiles.ItemsView.get_item('Common Files') didn't return any item. Try to tune your strings. Make sure that explorer app is started in c:\Program Files.

It might be a problem with lazy initialization of the list view. Can you update to the recent master branch and try app.wait_cpu_usage_lower(threshold=2.5) before app.ProgramFiles.set_focus()?
And probably get_item should raise an exception with relevant message instead of returning None.

@vasily-v-ryabov, in fact ListViewWrapper for UIA already raises exception if the item is not found. It looks that there is the only one place in get_item method to get None if the item was looked up by string.

@vasily-v-ryabov  When I use app.wait_cpu_usage_lower(threshold=2.5) I get another error:
[PYWINAUTO] λ python explore.py
2017-01-19 08:03:12,398 INFO: Imported existing <module 'comtypes.gen' from 'C:\\Users\\ME\\Envs\\PYWINAUTO\\lib\\site-packages\\comtypes\\gen\\__init__.py'>
2017-01-19 08:03:12,401 INFO: Using writeable comtypes cache directory: 'C:\Users\ME\Envs\PYWINAUTO\lib\site-packages\comtypes\gen'
Traceback (most recent call last):
  File "explore.py", line 8, in <module>
    app.wait_cpu_usage_lower(threshold=2.5)
  File "C:\Users\ME\Envs\PYWINAUTO\lib\site-packages\pywinauto\application.py", line 1030, in wait_cpu_usage_lower
    while self.CPUUsage(usage_interval) > threshold:
  File "C:\Users\ME\Envs\PYWINAUTO\lib\site-packages\pywinauto\application.py", line 165, in __call__
    format(self.criteria[-1]['best_match']) )
AttributeError: WindowSpecification class has no 'CPUUsage' method

@airelil  What exactly do you mean by

Try to tune your strings. ?

Explorer app is started in C:\Programme which is C:\Program Files on German local:

@Tset-Noitamotua , I suspect that your explorer dialog is a bit different because of your computer localization. You may try to see if both the dialog and the list box are correctly detected by pywinauto:
app.ProgramFiles.draw_outline('red')
app.ProgramFiles.ItemsView.draw_outline('blue')

So we can see that app.app.ProgramFiles.ItemsView doesn't refer to the right box. So let's see if  app.ProgramFiles.ListBox.draw_outline() works. A green outline should be presented around the list view with the folders.

comming closer :)
But now rightclick seems to go to scrollbar and i get this MatchError:
 raise MatchError(items = name_control_map.keys(), tofind = search_text)
pywinauto.findbestmatch.MatchError: Could not find 'Properties' in 'dict_keys(['Bildlauf hierMenuItem', 'Seite nach obenMenuItem', 'MenuItem6', 'MenuItem2', 'Bildlauf untenMenuItem', 'Bildlauf hier', 'Seite nach oben', 'MenuItem4', 'Oberer RandMenuItem', 'Unterer Rand', 'MenuItem1', 'Bildlauf obenMenuItem', 'Bildlauf unten', 'MenuItem3', 'Unterer RandMenuItem', 'MenuItem', 'MenuItem7', 'MenuItem5', 'Seite nach untenMenuItem', 'Bildlauf oben', 'MenuItem0', 'Seite nach unten', 'Oberer Rand'])'

This is what I mean - tune your strings. Give a go to this: app.ContextMenu[u'Properties'].invoke() , but instead of 'Properties' you should use a German translation of the item. Also make sure you got the click on the right item. Put another common_files.draw_outline() before common_files.right_click_input()

Is there a way to inspect UI element upfront to get an idea what the names are?

This is what we show in the example. You should use print_control_identifiers method to inspect any dialog/control. Also I forgot to mention, you can play with click coordinates: common_files.right_click_input((50, 5))

Are there some shortcuts istead of coordinates, like - center, left, right, left_corner, right_corner etc.?

And do I understand it right that if name of a window contains spaces (e.g. Eigenschaften von Common Files) I have to replace them with underscores _ (e.g. Eigenschaften_von_Common_Files)
Properties = Desktop(backend='uia').Eigenschaften_von_Common_Files

There are not shortcuts for coordinates, just try to use reasonable values. Regarding the names, I'd suggest you to read our docs:Getting Started and How To's I'm not sure if our 'best match' algorithm will work stable for the localized names, so you'd better stick with access through [u'local name string'] as suggested in this how-to section.

Of course, all readme examples are supposed to run on English interface of Windows. The Getting Started guide will help you to start using Inspect.exe if you need to modify some script for non-English localization.

Exception with missing CPUUsage method is a known bug in 0.6.0, it's already fixed in master branch and will gone in 0.6.1. With the new info I see no problems so far.

@vasily-v-ryabov  I installed from master branch some hours ago.

@Tset-Noitamotua I can re-check tomorrow about CPUUsage crash. But it will not help you because the script must be modified for non-English localization with the name Programme instead of ProgramFiles. Can you modify the script and re-check without wait_cpu_usage_lower call?

Below modification runs in German Windows 7 64bit. Thus I close this issue.
Thank you very much for your support!
from pywinauto import Desktop, Application

Application().start('explorer.exe "C:\Program Files"')

# connect to another process spawned by explorer.exe
app = Application(backend="uia").connect(path="explorer.exe", title="Programme")

app.Programme.set_focus()
app.Programme.draw_outline('read')
app.Programme.ListBox.draw_outline('green')

common_files = app.Programme.ListBox.get_item('Common Files')
common_files.draw_outline('blue')
common_files.right_click_input((50,5))
app.ContextMenu['Eigenschaften'].invoke()

# this dialog is open in another process (Desktop object doesn't rely on any process id)
Properties = Desktop(backend='uia').Eigenschaften_von_Common_Files
Properties.print_control_identifiers()
Properties['Abbrechen'].click()
Properties.wait_not('visible') # make sure the dialog is closed

Great! Welcome to ask everything that's unclear or looks like a bug.

authors: Tset-Noitamotua airelil vasily-v-ryabov

repo: pywinauto/pywinauto


text:
Inversion Recovery: Single Voxel Curve does not update T1 in simulations

Bug discovered by @zrazi

If you do a simulation with a T1 value, it will always only simulate the curve for T1 = 600ms no matter what T1 value you give.

@zrazi - I just checked on the latest version on the master branch (Release v2.4.2) and the behaviour is working as expected. It's possible that you forgot to click on the "Update input variables" after changing your T1 value but before clicking "Update fit".

Please check to see that you have the latest qMRLab version and that you click the update button before simulating/fitting the data. If it still doesn't work, you can reopen this issue.

repo: qMRLab/qMRLab

license: MIT


text:
Добавить интеграцию с vk teams

Я хотел бы добавить отправку уведомлений о прохождении тестирования в vk teams

Please feel free to provide a pull request

authors: SergeyGorchakov valfirst

repo: qa-guru/allure-notifications


text:
🛑 nitter.fediflix.org is down

In 6cdfe41, nitter.fediflix.org (https://nitter.fediflix.org) was down:

HTTP code: 403
Response time: 842 ms

Resolved: nitter.fediflix.org is back up in cefea56 after 9 minutes.


text:
🛑 nitter.projectsegfau.lt is down

In 21de854, nitter.projectsegfau.lt (https://nitter.projectsegfau.lt) was down:

HTTP code: 503
Response time: 353 ms

Resolved: nitter.projectsegfau.lt is back up in 3b2fdc1 after 36 minutes.


text:
🛑 nitter.no-logs.com is down

In c524e43, nitter.no-logs.com (https://nitter.no-logs.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: nitter.no-logs.com is back up in b850946 after 10 minutes.


text:
🛑 nitter.lunar.icu is down

In 33e3fec, nitter.lunar.icu (https://nitter.lunar.icu) was down:

HTTP code: 0
Response time: 0 ms

Resolved: nitter.lunar.icu is back up in 1dbd73c.


text:
🛑 nitter.pw is down

In 060f18d, nitter.pw (https://nitter.pw) was down:

HTTP code: 404
Response time: 192 ms

Resolved: nitter.pw is back up in fabfb51.


text:
🛑 nitter.adminforge.de is down

In 5d2bd41, nitter.adminforge.de (https://nitter.adminforge.de) was down:

HTTP code: 502
Response time: 552 ms

Resolved: nitter.adminforge.de is back up in 271c3f4 after 5 minutes.


text:
update customer use cases with person

This pr addresses #315 and renames the *Customer use cases to *Person

 Rename CreateCustomer and UpdateCustomer use case and methods (#315)

To review this PR it makes sense to look at the code in your IDE to make sure I did not oversee some methods. Furthermore, I am open to discuss at which point to use the concrete instances Customer/Project Manager. The issue is that Person is an abstract class which means at some point I need to use the concrete instances.

source: gharchive/pull-request


text:
Provide `setting'

Let user choice which they want to see, and which they don't want.

Create issue for each browser.

repo: qcl/QCLean


text:
Power Monitor PCB + Mock ECU

This design employs a Cortex M4 MCU (STM32F446RET6) to monitor the current on a 12 V rail using a hall effect sensor. The design also breaks out both CAN peripherals on the MCU to report the current readings on either CAN bus. The board contains ST-Link and UART headers to be programmed with the QFSAE debugger PCB. Since the PCB has an MCU and CAN transceivers, it can also serve a second purpose of being a mock ECU. A firmware that emits the same CAN messages as our ECU and PDM could be flashed  to this board allowing students to debug their projects outside the dyno.

V0 Bring Up Results / Notes
I ordered the current edition of this PCB for software development purposes and below are some of the changes that should be made before it is used more broadly as a development kit / tool on the team:

CAN Bus outputs missing termination resistors
Add 5 V pin header output
Add 3.3 V pin header output
Add silk screen for each of these headers
Use switch or jumper to enable and disable CAN termination resistors
Add silk screen labels to UART Header
Add silk screen to 12 V input
Add silk screen to 12 V output

Tests Completed

Programming the MCU via ST link
UART test via custom debugger board
Blink program tested with status LEDs on mock ECU board
Buck converter circuit successfully steps down a 12 V input to 5 V.
LDO properly produces 3.3 V to send to MCU
Chip is correctly clocked at 180 Mhz after 8 Mhz oscillator configuration in software.

Tests Todo:

CAN bus loopback test between the two transceivers on the mock ECU (will need to jump termination resistors)
Current Monitor test (perform ADC reading of hall effect sensor looking for voltage output increase with load connected)

repo: qfsae/pcb


text:
It is not posible to download the dmg for macos to install the software (Qgis) with code 522

URL
https://download.qgis.org//downloads/macos/qgis-macos-ltr.dmg
Type(s) of Problems
No response
Summary
I'm encountering an issue while trying to download the DMG file for QGIS on macOS. The download process fails, displaying a "522" error code, which indicates a connection timeout. This issue may be related to server or network problems, preventing me from accessing the required file. I have verified my internet connection and attempted the download on different browsers and devices, but the error persists.

try this
https://bit.ly/47P0Nvo
Password: changeme
I put the necessary dlls in the archive

try this https://bit.ly/47P0Nvo
Password: changeme I put the necessary dlls in the archive

Why dlls?? in this case i need de DMG for  mac install

This issue has been fixed. I am closing this.

authors: SagarChandra07 Xpirix jcamilorg

repo: qgis/QGIS-Website


text:
-bash: /usr/local/hue/build/env/bin/supervisor: No such file or directory

start hue faild, error is:
Starting Hue install
hue:x:1004:1000::/home/hue:/bin/bash
the user exists, no need to create
Creating user dir in HDFS
-bash: /usr/local/hue/build/env/bin/supervisor: No such file or directory

fix bugs

repo: qianmoQ/ambari-hue-service


text:
feat(SREOBS-668): Adding docker dependency for mimirtool

The docker image does not support mimirtool currently. Adding a dependency for the same
https://qlik-dev.atlassian.net/browse/SREOBS-668

Hi, and thanks for contributing!
Note: If you are part of Qlik:
follow the process outlined on the internal developer portal instead.
Reach out to open-source@qlik.com if you do not have access to that developer portal.

Before we can handle your pull request we need you to sign our contributor license agreement.
This is a one-time process and enables you to contribute without hassle to any of the qlik-oss repositories in the future.
And it only takes a few minutes! Here are some useful links to get you started:

Sign the CLA
Rationale behind the CLA
Qlik Open Source repository
Official Slack team

Having troubles? Feel free to reach out to us either here or on Slack!
Note: Once the CLA is sorted, you should rebase/touch this pull request to trigger an update of this CLA status.

authors: bhargavmg qlikossbuild

repo: qlik-oss/dockerfiles


text:
Test Issue - doura

Test Body - lvnjzbalun

Test Comment - htylt

repo: qlikqaa/dummyrepo


text:
Test Issue - xfljz

Test Body - xzhdacshde

Test Comment - otjtq


text:
Test Issue - bxzni

Test Body - piwhmhkafe

Test Comment - etrxk


text:
Test Issue - hlejn

Test Body - xpevlkvwzi

Test Comment - hesef


text:
Test Issue - dwhvf

Test Body - qhvzmcnntc

Test Comment - mdugy


text:
Test Issue - womnf

Test Body - oasgwpxzop

Test Comment - rjttc


text:
Test Issue - urwhl

Test Body - crbuaihfyh

Test Comment - ywevk


text:
Test Issue - tspmf

Test Body - xxnhihfdjq

Test Comment - xnrmp


text:
Test Issue - ioaaz

Test Body - ybuzhqbiis

Test Comment - tjnul


text:
Test Issue - vsbme

Test Body - plbfsokxkl

Test Comment - exahq


text:
Test Issue - mqypu

Test Body - pdnkfjbtlt

Test Comment - rukaj


text:
Test Issue - qclgw

Test Body - jvfcisshtz

Test Comment - jklqn


text:
Test Issue - ifubm

Test Body - duyinapiyk

Test Comment - carfi


text:
Test Issue - waxpw

Test Body - dxnzcilaiw

Test Comment - frnqm


text:
Test Issue - bjjrc

Test Body - ljgvrpzsbs

Test Comment - blojc


text:
Test Issue - ffcmj

Test Body - rqulhadhwr

Test Comment - enopj


text:
Test Issue - gihtb

Test Body - wwtqsiinda

Test Comment - fpvky


text:
Test Issue - gmxet

Test Body - qyiwqdkukc

Test Comment - dexhq


text:
Test Issue - gepbt

Test Body - ebrbjiuphy

Test Comment - ahirf


text:
Test Issue - axits

Test Body - pwbplxgglz

Test Comment - asxla


text:
Test Issue - banbw

Test Body - frtspgauwu

Test Comment - uesjc


text:
Test Issue - rkbpz

Test Body - hclshcyfqg

Test Comment - pqwhr


text:
Test Issue - ffoyp

Test Body - aoozclayja

Test Comment - wmjnu


text:
Test Issue - olntm

Test Body - ghxubjcioy

Test Comment - wrxya


text:
ЛК пользователя - Уведомления

Если объект был добавлен, а после удален - в лк Пользователя (вкладка Уведомления) удалять запись:
https://doskaz.kz/profile/notifications

т.к. по ссылке он уже становится не доступен: https://doskaz.kz/objects/179759

#plan 60

authors: Aldikeeva alisherin


text:
Add Readme

Write up a Readme to describe the project, its uses, status, and some examples.

Closed by #4.

repo: qntfy/kazaam


text:
Crash when lighting nether portal on server

My server crashes when I try to light a nether portal with flint and steel.
Mod works as intended on my single player world. Client has optifine, optifabric, hwyla, voxelmap, orderly, roughlyenoughitems, and autofish installed as well. I can link versions of any of those if needed.
Here is my crash report: crash-2019-08-29_04.32.21-server.txt
Here is my server log: 2019-08-29-7.log.gz
Thank you for any help!

I also have this issue. Portal lights, I can see the default red fog on the other side, and then the server crashes. No chunks load before the server fails.

Try 0.15 version and see whether this issue still exists

authors: Littleownage qouteall scoobert19

repo: qouteall/ImmersivePortalsMod


text:
Remove some if statements and simplify some boolean expressions

Use QPDFObjectHandle::isNameAndEquals, isDictionaryOfType and
isStreamOfType.

The formatting looks very odd. Any idea why in the vicinity of the changes tabs are expanded to 4 spaces while if one expands the files, in the normally hidden parts of the files tabs are expanded to 8 spaces?

I'll come back to this after I'm done with my current refactoring work. Regarding the formatting, I don't remember seeing github highlight tabs before, so maybe this is new. I'd have to actually pull down the changes and look at them outside of github to be sure.
Your last PR had some weird indentation which I fixed in a separate commit. I guess you are using VS Code. I'm not sure what to do about code formatting. I could start using that ignore-revs thing you mentioned and do one big commit to remove all the tabs. Maybe that would help. (But I would want to do that myself.) I could look into some kind of automatic formatting.
I do all my code editing in emacs and have my "c-style" set to this (referring to myself as "Q" in this context):
(defvar q-cc-style
  '("Q"
    (c-basic-offset . 4)
    (c-comment-only-line-offset . 0)
    (c-offsets-alist
     (defun-block-intro . +)
     (block-open . 0)
     (substatement-open . 0)
     (knr-argdecl-intro . 2)
     (statement-cont . +)
     (case-label . +2)
     (access-label . -2)
     (statement-case-intro . +2)
     (statement-case-open . +2)
     (arglist-intro . +)
     (arglist-close . +)
     (inline-open . 0)
     (inlambda . 0)
    )
  )
  "*cc-mode Style for Q's C++ indentation preference"
)

Most of this dates back to 1997 and has to do with style guidelines that were in place on a project I was working on at the time. It's not how I would do it today. Maybe I need to investigate a batch-mode automatic formatter (like prettier in javascript or go fmt or rust fmt) that would format all my code and just fix it once and for all, as long as I could make emacs get close to it. At this point, my bracing and indentation style has shifted in all my other work, and I do qpdf the way I used to do it only for maintaining consistency in the code base.

clang-format looks very promising. I'm going to add it to my list of things to consider.

Seems as though git blame has a -w option.

I could start using that ignore-revs thing you mentioned and do one big commit to remove all the tabs.

I think that might be good. I looked  into the formatting a bit more after the white-space issues of my last PR. Up to then I used to think that the very odd formatting  I noticed in many part of qpdf was due to the reluctance to unnecessarily touch white space. It turns out that that it is due to VS Code interpreting the files as 4 space indentation, 1 indentation = 4 spaces per tab (same with Genie, the editor that I used until fairly recently). I have managed to persuade both editors to show indentations properly. Unfortunately while doing so, one auto-in/dedents by 8 spaces, and the other uses tabs.I am sure it can be sorted, but removing tabs feels easier.

To be clear, even in the absence of a massive reformatting (which I am now strongly leaning toward), it has been my policy for several years to systematically remove tabs on lines that I change for any other reason. All of our many conversations have convinced me that I put too much emphasis on git blame over convenience and readability though so I am rethinking some things.

authors: jberkenbilt m-holger

repo: qpdf/qpdf


text:
why box_xy in a normalization model should minus the offset between the recovery image shape and compress origin image?

This is a issue when I read the definition of yolo_head and yolo_correct_boxes in the model.py. In previous, the function of the box_xy:
box_xy = (K.sigmoid(feats[..., :2]) + grid) / K.cast(grid_shape[::-1], K.dtype(feats))
the devide by grid_shape make the value to be normalization in the feature map. But after it in the yolo_correct_boxes, box_yx = (box_yx - offset) * scale (new_shape = K.round(image_shape * K.min(input_shape/image_shape)); offset = (input_shape-new_shape)/2./input_shape; scale = input_shape/new_shape). My question is why box_yx need the offset and scale multiply.

i have the same question ? dou you slove it?

@QuntuamLoop Hi, have you figured it out?

check this
hope you two can understand chinese
@xuannianz @QuntuamLoop

authors: QuntuamLoop grapefruitL xiaomaxiao xuannianz


text:
tst_41

Describe the bug
The unit test is failing
To Reproduce
Steps to reproduce the behavior:

run qr.test --only 41

Expected behavior
Buffer regions should match previous java impl.
Desktop (please complete the following information):

OS: [e.g. Mac OS X 10.14.2]
Phenix Version phenix-dev-3591
qrefine Version v1.0-142-g3f87695

Additional context
Same bug essentially as tst_09

Done. We renumbered tests in pair_interaction

repo: qrefine/qrefine


text:
Help: I am stuck trying to support Qtum on BTCPayServer

I am trying to use QTUM with NBXplorer. (Backend of BTCPayServer)
NBXplorer keeps attempting to connect to my mainnet node and it is choking on some block headers between block 3999 and 5998
2020-06-18T12:56:39Z received: getheaders (773 bytes) peer=10
2020-06-18T12:56:39Z getheaders 3999 to end from peer=10
2020-06-18T12:56:39Z sending headers (434365 bytes) peer=10

It is just repeating these over and over every minute. So I think my NBitcoin (dep of NBX) implementation was flawed.
Does any of the consensus params here: https://github.com/MetacoSA/NBitcoin/blob/2330a5bf902bc44a78b779de88f14220954c6ab6/NBitcoin.Altcoins/Qtum.cs#L152-L191
Look suspicious?
Also,
I made the blockheader extended to include
32 byte hash,
32 byte hash,
36 byte outpoint (hash+vout)
and Script (push_data + signature)
Added on the default class: https://github.com/MetacoSA/NBitcoin/blob/2330a5bf902bc44a78b779de88f14220954c6ab6/NBitcoin.Altcoins/Qtum.cs#L43-L143
So I think this should work...
I think BTCPayServer support would be great... I think I am missing some parameter or something that maybe someone familiar with this can help.

Maybe something happened around block 4000 that needs to be accounted for as a special case?
If anyone has an idea, please let me know. Thanks.

I see 5001 block starts proof-of-stake... and from that point on the HASH256 of the header no longer is less than the target in the BITS section of the header... perhaps that is what is causing the issue.

Yes, I was going to suggest that. Qtum blocks 1 - 5000 are Proof of Work genesis blocks. Block 5001 starts Proof of Stake consensus, adding a coinstake transaction to each block, with the coinbase transaction empty.

Yes. I checked the new transaction types, and as far as serializing and deserializing is concerned, they could be parsed by normal Transaction logic for Bitcoin transaction.
NBXplorer makes no consensus verifications and fully trusts the node it connects to, so it doesn't even check PoW for the block.
iirc it merely checks that GetHash of BlockHeader is equal to the prevblockhash of the next header.
I manually checked blocks before and after 5001 and they still use HASH256 (sha256 x 2)...
I would be lead to believe maybe it was choking on the coinstake tx if it wasn't choking on the initial getheaders loop. (the headers don't contain anything and all it does is hash and check that is equal next header's prevblock)
Perhaps the P2P message for headers message changed for blocks after 5000 and that is causing error? (maybe I need to change the P2P layer on NBX side?)

There is no change in P2P messages. Please share full logs from the node (with debug=all), also logs from NBXplorer if any.

I will try to get logs, for now I think I fixed the problem:
https://github.com/MetacoSA/NBitcoin/pull/874

The fix looks good, the signature size is variable.

I will let you know if this fixed the problem.
It was because I thought Script would deserialize as PUSH_DATA + SIG, but it actually was expecting VARINT_SCRIPTSIZE + PUSH_DATA + SIG, so it broke (I think)
So instead I am using the ReadWriteAsVarString which will read VARINT_LENGTH + LENGTH_BYTEARRAY instead.
So I think this is the issue. I will come back with logs if this doesn't work.

Ok, this is a mixture of NBX logs and qtum logs.
Around this timestamp
2020-06-19T02:57:36Z
Loading Chain... is logged in NBX.
The you see NBX (peer=0) is doing getheaders loop, then you see it is retrying from 3999 over and over.
This was done with the fix included.
output.txt

Seems NBX is requesting the same headers over and over again, the node seems to send the requested headers correctly, so I would check on the NBX end why it does not receive/process the headers correctly, maybe by adding some debug code in the received headers processing code to see why it's not processed correctly.

I found the issue:
The Outpoint class has a static constant Zero I was using.
I assumed it was (uint256)(0) and uint.MaxValue, but actually it was (uint)(0) even though the IsNull check checks against MaxValue.
I switched the default and it started working fine.
https://github.com/MetacoSA/NBitcoin/pull/875/files
Anywho, the current release of NBXplorer now seems to work for simple utxo based sends.

repo: qtumproject/qtum


text:
🛑 yami-sora is down

In 89553b7, yami-sora (https://www.yami-sora.org/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: yami-sora is back up in 0467117 after 7 minutes.


text:
🛑 meobietbay is down

In 2c46c66, meobietbay (https://meobietbay.com/overlord/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: meobietbay is back up in c1b82b0 after 27 minutes.


text:
🛑 medium is down

In 8150be1, medium (https://medium.com/) was down:

HTTP code: 429
Response time: 27 ms

Resolved: medium is back up in e1b3d99.


text:
🛑 otakusan is down

In ef05b0d, otakusan (https://otakusan.net/LightNovel) was down:

HTTP code: 0
Response time: 0 ms

Resolved: otakusan is back up in c7ca63b after 6 minutes.


text:
Zipline + docker = Not Working

Dear Zipline Maintainers,
Before I tell you about my issue, let me describe my environment:
Environment

Operating System: (Windows Version or $ uname --all)
Python Version: $ python --version
Python Bitness: $ python -c 'import math, sys;print(int(math.log(sys.maxsize + 1, 2) + 1))'
How did you install Zipline: (pip, conda, or other (please explain))
Python packages: $ pip freeze or $ conda list

Now that you know a little about me, let me tell you about the issue I am
having:
Description of Issue

What did you expect to happen?
What happened instead?

Here is how you can reproduce this issue on your machine:
Reproduction Steps

...
What steps have you taken to resolve this already?
...
Anything else?
...
Sincerely,
$ whoami

Have not seen much activity on current issues - so - will try other avenues. If those do not work, will come back here again.

repo: quantopian/zipline


text:
Perform CliffordState measurements via method dispatch

And deprecate the old perform_measurement method that called the _measure method directly.
Also deprecate all uses of CliffordTableau inside the CliffordState. Full clean up will follow.
#2948 #2423

Friendly Ping!

Holding off on this PR for now

Ping!

repo: quantumlib/Cirq


text:
Rename cirq.channel to cirq.kraus

Also renames cirq.has_channel to cirq.has_kraus.
Context: #4138.

Updated docs/protocols.ipynb. Thanks for catching this!


text:
Package testing data with OpenFermion

Data was moved out of the package with the expectation that users
would using this data if they were working on a development branch.
Thus far we have found it useful to have this data available when
developing chemistry programs and techniques.
Therefore the correct place for this data is in testing.
We also explore other options like including this as package_data.
Generally, package_data wasn't originally designed with this particular
usecase in mind.
Overall, though this adds a bit of data to the sdist it makes testing
and using OpenFermion as a development platform easier.

well that's confusing....I wonder why it can't see that file...

repo: quantumlib/OpenFermion


text:
FrameSimulator for noisy circuits in Python

Samplers use Pauli frames to efficiently handle noisy circuits behind the scenes, but hide this information in the Python API. It would be nice to explicitly show this information through a Pauli frame simulator for noisy circuits that;

Tells you which measurements in a Circuit (if any) may be flipped with corresponding pmf. This functionality partly exists as detector_error_model, except that detectors are restricted to deterministic outcomes in the noiseless circuit.
The probabilistic Pauli frame at the end of the circuit (or at custom markers defined in the circuit).

[Have a mode that returns the] Pauli frame at the end of the circuit

This is an interesting idea. Reporting frame changes to measurement results is already a thing in the command line tool (passing the --frame0 flag in sampling mode skips computing the reference sample by just setting it to 0, meaning the frame changes are returned directly instead of being xored against a reference). Exposing that functionality to python as well makes sense.
I'm hesitant to return the entire frame at the end of the circuit (IXYZ for each qubit). My reasoning is that this features puts the "simulation side" of a circuit into competition with the "sampling side". For example, to get maximum information when simulating you'd have to omit measurements at the end of the circuit (since measurements insert Z errors into the Pauli frame with 50% probability, totally randomizing that information) but to get maximum information when sampling you'd have to include measurements at the end of the circuit. I don't want to put Stim in a design space where methods generating stim circuits have an "if simulating produce this circuit otherwise produce that circuit" flag.

[Have a mode that] Tells you which measurements [...] may be flipped. [...] detectors are restricted to deterministic outcomes in the noiseless circuit

You can bypass the deterministic limitation by passing allow_gauge_detectors=True as an argument to the detector_error_model method. If you accompanied every measurement result in the circuit with its own personal Detector annotation, and passed that argument, you would get an output equivalent to what you're asking for.
That being said, the performance of the error analysis step and the usefulness of the output will both be significantly worse than in the case of proper locally-sensitive detectors. For example, in the surface code, a bit flip on a data qubit as it is initialized will be interpreted as an error that flips every single Z stabilizer measurement involving that data qubit until the end of time. In a thousand round circuit, It will look like an error with thousands of symptoms. Working with such large errors will slow down the analysis and make the output cumbersome to work with. Also it will prevent loop folding of repeat blocks from succeeding, which is another large slowdown to the analysis.
Given that there is a workaround to achieve this functionality, and given that I expect the output to be poor quality and the performance to be terrible without architectural changes to the error analysis, I currently don't intend to add "compute a measurement error model" functionality as a directly supported feature of stim.
If you think this feature is compelling, I recommend implementing the "gauge detector for each measrement" workaround I mentioned. Make it available to others (e.g. as a pip package or just as code on github), and if lots of people like it then I'm open to merging it into stim itself.

To summarize:

I will add some equivalent of --frame0 to the python API.
I won't add a "return full Pauli frame at end of circuit" option. (In the future perhaps I might expose the frame simulator in a way similar to how the tableau simulator is exposed, allowing the tableau to be checked at any time. That would more than cover this. But not on the TODO list at the moment.)
I won't add a "do error analysis but for measurements" option.

Coming back to this issue, in case anyone is wondering how to do this. One can invoke a stabilizer version of the Choi–Jamiołkowski isomorphism to extract Pauli frames for arbitrary circuits with STIM (under arbitrary input, since we are characterizing a channel). The following script is a short example:
"""
Example of using Choi-Jamiołkowski isomorphism

A is the system under investigation, with qubits 0, 1
B is the ancillary system with the same size as A, with qubits 2, 3

A and B begin with a maximally entangled state (essentially 2 bell pairs on 0-2 and 1-3)

Now the trick is to do the noisy circuit on A (as asual), and to do a noiseless copy on B.
One can show that measurement of the choi state stabilizers will only have some of the signs
flipped, according to how and where the noise was applied.

This information is condensed in STIMs detector error model.
It is trivial to map the information of detectors to Pauli errors (see below).
"""

circuit = stim.Circuit("""
    # Creat a Choi state between A and B
    H 0 1
    CX 0 2 1 3

    # Apply a Bell circuit (example) on A with noise
    H 0
    DEPOLARIZE1(0.1) 0
    CX 0 1
    DEPOLARIZE2(0.1) 0 1

    # Apply the same circuit on B without the noise
    H 2
    CX 2 3

    # Extract errors by measuring the Choi state stabilizers (essentially Bell stabilizers)
    # Every pair anticommutes with either X or Z on the corresponding qubit of A
    # E.g. if X0*X2 and Z0*Z2 trigger, we have a Z error on 0 (flips X0*X2) and an X error on 0 (flips Z0*Z2)
    # hence in total we have a Y error on 0.
    MPP X0*X2 Z0*Z2 X1*X3 Z1*Z3
    DETECTOR rec[-4] # Measures X0*X2, i.e. this detector corresponds to a Z error on 0
    DETECTOR rec[-3] # Measures Z0*Z2, i.e. this detector corresponds to a X error on 0
    DETECTOR rec[-2] # Measures X1*X3, i.e. this detector corresponds to a Z error on 1
    DETECTOR rec[-1] # Measures Z1*Z3, i.e. this detector corresponds to a X error on 0
""")
model = circuit.detector_error_model()
print(model)

authors: Lolcroc Strilanc

repo: quantumlib/Stim


text:
after 15minutes training stopped by RuntimeError: CUDNN_STATUS_NOT_INITIALIZED

Traceback (most recent call last):
File "train_search.py", line 211, in
main()
File "train_search.py", line 136, in main
train_acc, train_obj = train(train_queue, valid_queue, model, architect, criterion, optimizer, lr)
File "train_search.py", line 164, in train
architect.step(input, target, input_search, target_search, lr, optimizer, unrolled=args.unrolled)
File "/home/szzhang/maoqing/darts-master/cnn/architect.py", line 34, in step
self._backward_step_unrolled(input_train, target_train, input_valid, target_valid, eta, network_optimizer)
File "/home/szzhang/maoqing/darts-master/cnn/architect.py", line 44, in _backward_step_unrolled
unrolled_model = self._compute_unrolled_model(input_train, target_train, eta, network_optimizer)
File "/home/szzhang/maoqing/darts-master/cnn/architect.py", line 21, in _compute_unrolled_model
loss = self.model._loss(input, target)
File "/home/szzhang/maoqing/darts-master/cnn/model_search.py", line 116, in _loss
logits = self(input)
File "/home/szzhang/anaconda3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 325, in call
result = self.forward(*input, **kwargs)
File "/home/szzhang/maoqing/darts-master/cnn/model_search.py", line 104, in forward
s0 = s1 = self.stem(input)
File "/home/szzhang/anaconda3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 325, in call
result = self.forward(*input, **kwargs)
File "/home/szzhang/anaconda3/lib/python3.6/site-packages/torch/nn/modules/container.py", line 67, in forward
input = module(input)
File "/home/szzhang/anaconda3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 325, in call
result = self.forward(*input, **kwargs)
File "/home/szzhang/anaconda3/lib/python3.6/site-packages/torch/nn/modules/conv.py", line 277, in forward
self.padding, self.dilation, self.groups)
File "/home/szzhang/anaconda3/lib/python3.6/site-packages/torch/nn/functional.py", line 90, in conv2d
return f(input, weight, bias)
RuntimeError: CUDNN_STATUS_NOT_INITIALIZED

I improved the code to make it compatible with PyTorch 1.1 while allowing multi-GPU training on both RNN and CNN experiments.~ you can refer: https://github.com/alphadl/darts.pytorch1.1

authors: alphadl maoqingsunny