text:
Please extend the 'conveyor service' to allow simpler URLs

What's the problem this feature will solve?
First of all, the new download URLs don't really work for Gentoo. We very much like the ability to use a simple substitution to generate URLs for a particular package version. Having to manually update hashes on every version bump would cause a very large maintenance burden for us. Querying the remote API is not really an option either, as URLs need to be static and must not rely on remote queries.
Therefore, we are using the conveyor service to download file via old-style URLs. However, we find it a bit inconvenient to use the three-part URL. In particular, we often tediously type something like:
.../${PN::1}/${PN}/${P}.tar.gz

This becomes problematic when we need to transform the filename since bash doesn't support e.g. simultaneous ::1 and ^ to uppercase it.
AFAIU the first-letter-of-package-name is part of the legacy directory organization that is no longer meaningful, and is not really necessary for the redirects to work.
Describe the solution you'd like
I would like to request that the conveyor service was extended to allow URLs without the 'first letter' part, i.e.:
/packages/{python_version}/{project_name}/{filename}

While I do realize that you probably don't want to put extra effort into the legacy API, I think this change could be made with very little effort. It would be of great convenience to us.

I don't see any reason why we couldn't do this.
We should probably drop the Python Version from the URL too. The values of it are kind of nonsense and inconsistent, and you can't really guess what it reliably across all of PyPI (other than for sdists, which I assume is Gentoo's use case so I doubt Gentoo would have noticed).
We could arguably drop even project name since filenames are guaranteed to be unique on PyPI, but I'm hesitant to do that since there is ambiguity in sdist filenames (is foo-2-2.tar.gz version 2 of foo-2 or version 2-2 of foo). The other thing that makes leaving the project name in the URL attractive is it makes it easier to implement Conveyer since we don't have to parse the filename, we can just hit the API for the project from the URL.
On a related note, it might make sense to put the project version in the URL. That need to not parse the filename only really works because the JSON api lists every version and every file. A new api probably won't do that so it will be easier to support this url long term with version number being part of the lookup.
So taking all of that, what about:
/packages/{project}/{version}/{filename}

?

That would certainly work for us.

authors: dstufft mgorny


text:
Implement PEP 629: versioning of the Simple repository API

What's the problem this feature will solve?
Implements PEP 629 which specifies the API version of the Simple repository API that's used.
Describe the solution you'd like
<meta name="pypi:repository-version" content="1.0"> to appear on Simple repository API pages.
Additional context

I believe this will take updating:

https://github.com/pypa/warehouse/tree/main/warehouse/templates/legacy/api/simple

And I would like to do the PR if that's okay.

I guess the question is whether the current /simple pages that PyPI provides are actually "version 1.0".
The PEP mentions that the python-requires metadata needed phased in, and the support for PEP 592 has also been added since then. IMO each of these would have been a new version if we consider PEP 503 to be the true "version 1.0".

I guess the question is whether the current /simple pages that PyPI provides are actually "version 1.0".
The PEP mentions that the python-requires metadata needed phased in, and the support for PEP 592 has also been added since then. IMO each of these would have been a new version if we consider PEP 503 to be the true "version 1.0".

The PEP explicitly says the current version is 1.0.
Sent from my iPhone

On Jan 26, 2021, at 8:12 PM, Dustin Ingram notifications@github.com wrote:
I guess the question is whether the current /simple pages that PyPI provides are actually "version 1.0".
The PEP mentions that the python-requires metadata needed phased in, and the support for PEP 592 has also been added since then. IMO each of these would have been a new version if we consider PEP 503 to be the true "version 1.0".

The PEP explicitly says the current version is 1.0.
Sent from my iPhone

On Jan 26, 2021, at 8:12 PM, Dustin Ingram notifications@github.com wrote:
I guess the question is whether the current /simple pages that PyPI provides are actually "version 1.0".
The PEP mentions that the python-requires metadata needed phased in, and the support for PEP 592 has also been added since then. IMO each of these would have been a new version if we consider PEP 503 to be the true "version 1.0".

I opened #9030 assuming that the templates are the only things that need updating.

I opened #9030 assuming that the templates are the only things that need updating.

source: gharchive/issue

authors: brettcannon di dstufft

repo: pypa/warehouse

license_type: permissive

license_source: github-api


text:
PyPi.org PYCURL page loops around to itself when the Python.org link is used, and the bintray link doesn't work

I don't see a better place to report broken download links on the Pypi website project pages for pycurl
Please move this if there is a better place for it.
I need pycurl or to be able to pass URLs to cURL from Python 3.8 in windows 7.
The Win7 PC  isn't "online,"  it is used to send REST commands to another app when relay closures are detected by a serial port GPI device.
Due to ZERO other applications that do what the one does with the REST server, we are stuck using Windows 7.

Hi, this issue tracker is for issues with the codebase behind https://pypi.org itself, not the projects hosted on PyPI.
You should report this issue to the tracker for the project in question instead: https://github.com/pycurl/pycurl/issues

authors: BDProductions di


text:
Remove the unused columns from pypa/warehouse#4581

Actually does the removal at the database level for https://github.com/pypa/warehouse/pull/4581. Must not be merged until after that one has merged and been deployed.

None of this data should matter at all, but just for completeness sake, I'm going to leave this to @ewdurbin to grab a snapshot before merging this.

Snapshot at s3://pypi-infra-terraform/backup/warehouse/warehouse-2018-10-17.sql.gz.gpg, encrypted with public keys:
rsa4096/0xC1D772D340780EF7 2011-09-30 "Donald Stufft (dstufft) <donald@stufft.io>"
rsa4096/0xEDC928AEEC732DA2 2017-12-26 "Ernest W. Durbin III <ewdurbin@gmail.com>"

source: gharchive/pull-request

authors: dstufft ewdurbin


text:
TV Paint: Validate mark in and out.

This validator checks whether the mark in and out are enabled, and set to the database settings.
If mark in/out are disabled, TVP will return the exposure frame range. In some cases the exposure frame range and the shots frame range can differ, so it more consistent to make sure the mark in/out are set and enabled.
When rendering the last frame gets extended to the fill the mark out range.
This has a repair action for enabling and setting the mark in/out to the database asset settings.

Not sure if MarkIn and MarkOut should match frameStart and frameEnd on asset (like 1001 - 1025).

@iLLiCiTiT let's port to 3.0 please

@tokejepsen ValidateProjectSettings should not validate frame start and frame end with this validator. Two validations of same data but one plugin has repair action.

@tokejepsen ValidateProjectSettings should not validate frame start and frame end with this validator. Two validations of same data but one plugin has repair action.

Good point. Done.

this plugin can use sceneFrameStart vs. frameStart and sceneFrameEnd vs frameEnd from context instead of collecting data from workfile again

I still need the state of the mark in/out to validate, which is not collected in the workfile data. Should we collect that as well?

Should we collect that as well?

Yes. And maybe change sceneFrameStart and sceneFrameEnd to sceneMarkIn and sceneMarkOut to make it clear? I did store the values as frameStart and frameEnd because values were used for whole publishing (extract review etc.) which does not make sence if they have scene prefix.

Yes. And maybe change sceneFrameStart and sceneFrameEnd to sceneMarkIn and sceneMarkOut to make it clear? I did store the values as frameStart and frameEnd because values were used for whole publishing (extract review etc.) which does not make sence if they have scene prefix.

Cool, done.

authors: iLLiCiTiT mkolar tokejepsen

repo: pypeclub/pype

license: MIT


text:
Safari autofills and submits TOTP code into the wrong input field.

Describe the bug
When you have TOTP enabled as a 2FA method, and you use TOTP integration of OSX, Safari will offer to autofill (and submit!) the TOTP code into the search field during the login flow.
Expected behavior

Safari should offer to autofill the TOTP code in the correct input field.
To Reproduce

Enable TOTP as a 2FA method on Pypi
Use the TOTP integration of OSX
Log into Pypi, enter username and password
On the next screen, Safari will offer to autofill the TOTP code into the search field:

My Platform

Safari on macOS Ventura 13.5.2
Additional context

Safari selecting the wrong form field may not be something you can control (I have no idea how it works), but even if it were to select the right field, I think the current login flow is not ideal:
I have a security key set up as my primary 2FA method and have only added TOTP tokens as a backup in case I lose my security key(s). I try to always use the security key on sites that allow it due to the phishing protection it offers compared to TOTP codes.
The way the login flow currently works on Pypi, all it takes to log in using TOTP with Safari is two consecutive presses of the fingerprint sensor: the first one autofills and submits username and password (OK), the second one autofills and submits the TOTP code (currently into the search field).
For comparison, this is what GitHub shows you after you have entered username and password, if you have both a security and TOTP enable as second factors:

The text input only appears after you explicitly select the TOTP option (authenticator app).  Thus it is far less likely that you accidentally login using TOTP when you meant to use your security key. Also, the page has no other text inputs that could be auto-filled accidentally.

Thanks for the detailed report! Based on this, I believe the linked change should solve this.
As to the overall design, I'll leave that to another day, when we have some more UX-minded folk to weigh in on it 😁

@miketheman thanks for the quick response. Unfortunately I still see the same behaviour.
I've cleared my cache and reloaded the page to make sure I have the new version. I've looked at the source, the autocomple="one-time-code" attribute is there, but it doesn't seem to make a difference. :(

@trendels Thanks for calling that out - I had tested the autofocus and autocomplete only for a single 2FA scheme.
Looks like back in #9805 the conversation was that if there are two methods (like your scenario) we should not autofocus on the TOTP, rather letting the user choose.
So my change helps folks who don't have both. 🤔
I even tried to hide the TOTP input completely if the user has WebAuthN, and Safari will still try to input to the search box. I'm not entirely sure how to discourage Safari from trying to use the input at all, will have to stew on that for a bit.

@trendels I circled back today to try and reproduce the issue on Safari Version 17.6 (19618.3.11.11.5)
I don't see the issue, but I also am working with a local development version, and am not an expert with Safari's security features.
Do you still see this behavior with the updated browsers?

Hi @miketheman, yes, I still see the issue on Safari Version 17.6 (19618.3.11.11.5)

authors: miketheman trendels

repo: pypi/warehouse


text:
Make Malware Verdicts auditable

What's the problem this feature will solve?
Because of https://github.com/pypa/warehouse/commit/ac9c649ecb6904696699d92e3254c919b25d7738, Malware Verdicts are completely removed once the associated object is deleted (CASCADE on delete). This eliminates the ability of to perform audits of verdicts or evaluate the efficacy of checks.
Describe the solution you'd like
Once #4440 is addressed, the schema of malware_verdicts should be modified such that verdicts are never removed from the database.

This is gone now https://github.com/pypi/warehouse/pull/13647

authors: dstufft xmunoz


text:
SteamVR Overlay not working

Whenever I try to enable the overlay, it doesn't show up for me in-game or in the apps in the SteamVR menu. Additionally, it starts causing constant spikes in my GPU frame time.
VV Disabled VV

VV Enabled VV

Suddenly started working fine just now with no issues to GPU as well so closing.

repo: pypy-vrc/VRCX


text:
Hot and Cold Measure for Initial Profiles

Summary
PyRolL should have different hooks for hot and cold measures for the initial profiles.
Therefore the constructors .round, .square and others can use a thermal expansion coefficient to calculate their own hot-cross-section.

I would use a mini-unit for heating up and cooling down for consistency.

What do you mean by mini-unit? Like a HotProfile / ColdProfile class that can be marked using a flag?

Just a unit similar to the rotator, taking a profile with temperature=t0 and producing a profile with temperature=t1, while scaling the cross-section accordingly. This shall not have a duration, because the case of actually simulating heating is covered by transports.

repo: pyroll-project/pyroll-core


text:
Support for multiple workers?

I'm just wondering how to get multiple workers working with socketio (this might be an issue with python-socketio, but I'm not sure). I'm currently on 0.0.10 and have the kwargs support, so I've tried using a client_manager like such:
from fastapi_socketio import SocketManager
from socketio import AsyncRedisManager
...
client_manager = AsyncRedisManager('redis://localhost:6379/1')
socket_manager = SocketManager(app=app, client_manager=client_manager)

and executing the server with
$ DEBUG=1 python -m uvicorn main:app --port 9000 --host 0.0.0.0 --workers 4

But when I attach a client to it, I've noticed that the client constantly disconnects and reconnects. In the server log, I'll get:
INFO:     connection closed
INFO:     127.0.0.1:35020 - "POST /socket.io/?EIO=4&transport=polling&t=OjdZ_BE&sid=drxs24MybaAm66dEAAAF HTTP/1.1" 200 OK
INFO:     127.0.0.1:35034 - "GET /socket.io/?EIO=4&transport=polling&t=OjdZ_S3 HTTP/1.1" 200 OK
INFO:     127.0.0.1:35040 - "POST /socket.io/?EIO=4&transport=polling&t=OjdZ_SF&sid=Vfa5Ul5cdE23LNbpAAAD HTTP/1.1" 400 Bad Request
Invalid session Vfa5Ul5cdE23LNbpAAAD (further occurrences of this error will be logged with level INFO)
2023-10-25 08:59:30 kevin-ubuntu engineio.server[182810] ERROR Invalid session Vfa5Ul5cdE23LNbpAAAD (further occurrences of this error will be logged with level INFO)
INFO:     127.0.0.1:35056 - "GET /socket.io/?EIO=4&transport=polling&t=OjdZ_SH&sid=Vfa5Ul5cdE23LNbpAAAD HTTP/1.1" 400 Bad Request
INFO:     ('127.0.0.1', 35066) - "WebSocket /socket.io/?EIO=4&transport=websocket&sid=Vfa5Ul5cdE23LNbpAAAD" [accepted]
INFO:     connection open
INFO:     connection closed
INFO:     127.0.0.1:35074 - "POST /socket.io/?EIO=4&transport=polling&t=OjdZ_SX&sid=Vfa5Ul5cdE23LNbpAAAD HTTP/1.1" 400 Bad Request
INFO:     127.0.0.1:35080 - "GET /socket.io/?EIO=4&transport=polling&t=OjdZ_gT HTTP/1.1" 200 OK
INFO:     127.0.0.1:35094 - "POST /socket.io/?EIO=4&transport=polling&t=OjdZ_gz&sid=Q3nKr2Uz_s2hrSFbAAAG HTTP/1.1" 400 Bad Request
INFO:     127.0.0.1:35116 - "GET /socket.io/?EIO=4&transport=polling&t=OjdZ_h0&sid=Q3nKr2Uz_s2hrSFbAAAG HTTP/1.1" 400 Bad Request
INFO:     ('127.0.0.1', 35108) - "WebSocket /socket.io/?EIO=4&transport=websocket&sid=Q3nKr2Uz_s2hrSFbAAAG" 403
INFO:     connection failed (403 Forbidden)
INFO:     connection closed
INFO:     127.0.0.1:35122 - "POST /socket.io/?EIO=4&transport=polling&t=OjdZ_hG&sid=Q3nKr2Uz_s2hrSFbAAAG HTTP/1.1" 400 Bad Request
INFO:     127.0.0.1:35134 - "GET /socket.io/?EIO=4&transport=polling&t=OjdZ_ra HTTP/1.1" 200 OK
INFO:     127.0.0.1:35148 - "POST /socket.io/?EIO=4&transport=polling&t=OjdZ_sC&sid=zhul5vF4Rxl087nVAAAB HTTP/1.1" 400 Bad Request
INFO:     127.0.0.1:35150 - "GET /socket.io/?EIO=4&transport=polling&t=OjdZ_sF&sid=zhul5vF4Rxl087nVAAAB HTTP/1.1" 400 Bad Request
INFO:     ('127.0.0.1', 35152) - "WebSocket /socket.io/?EIO=4&transport=websocket&sid=zhul5vF4Rxl087nVAAAB" 403

Similarly, on the client side, I'm seeing the connection drop due to the 403.

any updates on this?? I want to use gunicorn with multiple workers

authors: kevinhikaruevans lcsvcn

repo: pyropy/fastapi-socketio


text:
docker build failing on installer

The docker build part of CI is running the -1 version of the apt-get installer.   It appears that the repo on the website is not being updated fast enough.  A second run of the CI shows the correct version being used correctly.
Need to move the apt-get repo off GitHub Pages.  See #562

Duplicate of #557

Closing.  Verified that the docker build is pulling the latest version of the .deb file that was built by the rust.yaml workflow.

repo: pyrsia/pyrsia


text:
Solving divided by zero issue

Related to #9.
Here is a notebook regarding @mattwigway 's dataset after implementing this PR.

Sorry for the excessive commits, wondering how to squash them into one.

I use git rebase -i HEAD~k where k is the number of commits I want to move back.
Then, it'll pop you down into the rebase editor, where you get the option of picking what options you want for each commit. It should look like this, but if you've done it right, you should have all the commits line by line, like this:

Made some comments to make it easier to review.

We've reached a consensus that this should be a sufficient solution for the divide-by-zero problem.

authors: TaylorOshan Ziqi-Li ljwolf

repo: pysal/gwr


text:
ComplexPattern.call doesn't handle duplicate monomers properly

d649159998f17ff644bfcb1418c712b219bfb16e fixed a Python 3 compatibility issue but introduced a bug in ComplexPattern.call. In the check for multiple patterns from the same monomer, pcounts now contains Monomer ids and not the objects themselves, so the line  dup_monomers = [monomer.name for monomer, count in pcounts if count > 1] fails to call .name on those ids. We need to maintain the mapping from id to monomer object.

I should add that an exception is still raised when there are duplicate monomers, but it's AttributeError: 'int' object has no attribute 'name' rather than DuplicateMonomerError.

repo: pysb/pysb

license_source: bigquery


text:
Build with scikit-build-core backend rather than setuptools

I've gotten PySCF to build with scikit-build-core, using a pyproject.toml file and no setup.py.
The benefits of this are:

setup.py now seems to be disfavored as a way to build python packages
scikit-build-core integrates well with CMake and is recommended by the NumPy developers
you can pass arguments to CMake much more easily, without editing any files.
scikit-build-core has a convenient experimental capability to recompile on initial import for editable installations.

I was also able to get libcint to build as a submodule using FetchContent, further simplifying the management of compile options. (although I had to change libcint's CMakeLists to make it work.) If there are downsides to FetchContent, it can easily be switched back to ExternalProject_Add.
The traditional build method (clone and cmake) still works fine.
Give it a spin if you get bored!
GitHub won't let me aim this pull request at a new branch. Probably a bad idea to merge it into the master branch right now

This update will break the wheel release pipeline.
The current setup.py is not just a simple call to cmake. It also include platform specific customization for the wheel build process. These functions should be properly migrated before abandoning setup.py.  I think the static configurations of setup.py can be moved to pyproject.toml . The remaining functions can be left in setup.py. And the installation can let pyproject.toml invoke setup.py to compile the package.

Thanks for this valuable feedback. Definitely would not be good to break the wheel release pipeline!
I will restore those platform-specific customizations and check for other potential problems.

@sunqm It took a while, but I was able to make the CI and wheel release pipelines work. I have also checked that libxsmm and fftw3 build properly. As a bonus, libxc, libcint, and xcfun now all compile simultaneously with correct rpath and the compile options get passed in from the top level build.
The modified wheel release workflow is in the file .github/workflows/publish-skbuildcore.yml. It just builds the wheels; the actual publishing part is commented out. Have not yet checked the Docker part.

Successful CI run
Wheel release test

Thanks for reviewing this and providing feedback! This PR should definitely not be merged as-is and I will take a conservative approach for any future pull requests. Even so, it was instructive for me to experiment with the build system.

authors: chillenb sunqm

repo: pyscf/pyscf


text:
Add some support for loading fake modules

works only if open_code patch mode is not off
see #1079

This will not handle all possible cases. Relative imports are not supported, and for absolute imports in dot notation an __init__.py is expected in module paths above the leaf module.
Tasks

[x] Unit tests added that reproduce the issue or prove feature is working
[x] Fix or feature added
[x] Entry to release notes added
[x] Pre-commit CI shows no errors
[x] Unit tests passing
[x] For documentation changes: The Read the Docs preview builds and looks as expected

@Aran-Fey: I only added two tests (one of them basically your example test), please check if you need more cases covered.

I'm surprised that relative imports don't work, but that's not a problem for me. This will help a lot, thanks!

I'm surprised that relative imports don't work

You are right, this is easy to fix. Will do this.

authors: Aran-Fey mrbean-bremen

repo: pytest-dev/pyfakefs


text:
Buttons not working

Hi guys, when I try to click on a button, continues to load without stopping.
What can I do?

same here ! :((((

Working perfectly fine over here, must be a user error

One of the old issues said it was for using python 2.7 in Windows and after updating to 3.7 it' has been solved.
But for me python version is 3.7 and steel not working!!!!!!

Can you post the button attachment code and the @bot.callback() method related to that button so that i can help you?

One of the old issues said it was for using python 2.7 in Windows and after updating to 3.7 it' has been solved.
But for me python version is 3.7 and steel not working!!!!!!

Just to clarify: Python 2 is not supported by botogram.
Please post your source code so we can help you. Keep in mind that the network environment and many other things could lead to the described issue.

@bot.prepare_memory
def init(shared):
    path = ""

@bot.command("start")
def init(chat, message, args):
	"""Start the bot!"""
	btns = botogram.Buttons()
	user = message.sender
	path = "/users/{id}".format(id=user.id)
	msg = "Hello, {username} select one of the buttons popping below."
	btns[0].callback("Initialize Session", "init_session")
	btns[0].callback("Add Phone Number", "add_number")
	chat.send(msg.format(username=user.first_name), attach=btns)

@bot.callback("init_session")
def init_callback(query, chat, message):
	message.delete()
        query.notify("Hello world!")

if __name__ == "__main__":
	bot.run()

authors: DTRandom DanielTheGeek FrateSole MarcoBuster TheRealMrSteel armagg

repo: python-botogram/botogram


text:
Remove Deprecated API calls to Pytest, SciPy <1.3, Python 2

The test suite produces a bunch of DeprecationWarnings from Pytest 7, old Distutils, old SciPy API usage.
Removing this along with some code for Python 2 which we don't support anymore.
Bumps minimal SciPy to 1.3, which came out in 2019.

Coverage remained the same at 94.525% when pulling 7f883f67b7f0e2782a1fa8e965b9e9bd7dbd691d on bnavigator:remove-cruft into e3ae8ed07ac572bd58d3ced7fd12781d814012c8 on python-control:main.

authors: bnavigator coveralls

repo: python-control/python-control


text:
Optimization-based and moving horizon estimation

This PR adds new functionality for computing the optimal estimate for a (nonlinear) I/O system using an explicit cost function of a fixed window of applied inputs and measured outputs.  This optimal estimation problem is then used to create a system for solving moving horizon estimation (MHE) problems.  Documentation and unit tests are included.
Summary of changes:

Added the obc.OptimalEstimationProblem class and obc.create_mhe_iosystem() function, which implement that main new functionality.
Added gaussian_likelyhood_cost() to create cost function corresponding to Gaussian likelihoods for use in optimal estimation.
Added disturbance_range_constraint() to create a range constraint on disturbances.
Moved processing of control and disturbance indices for estimation problems into iosys.py and use that functionality consistently for obc.create_estimator_iosystem and obc.OptimalEstimationProblem.
Created a function for processing legacy keywords in config.py and updated legacy keyword processing class to use that functionality.
Added a pytest mark for slow tests (@pytest.mark.slow), which can be used during development to skip slow tests by running pytest -m "not slow".
Added unit tests, docstrings, and user documentation for new functionality, including a Jupyter notebook demonstrating optimal estimation and moving horizon estimation the PVTOL model system (from FBS2e and OBC notes).
Additional small updates to docstrings to fix typos and formatting issues.

Coverage: 94.51% (-0.3%) from 94.841% when pulling 9373f8e2eb8018f4c1fd925f341990f007f1da43 on murrayrm:oep_mhe-26Feb2023 into 26c44e164ac741da75c565a9876674e3c014f457 on python-control:main.

authors: coveralls murrayrm


text:
holidayreact: add alternate spellings to February

Relevant Issues

Needs to match love, loves, lovelies, wuv, wuvs... quick, get Shenan in here.
- @Preocts, https://discord.com/channels/267624335836053506/267624335836053506/1078159856688713778

Description

Added alternate spellings and misspellings to the February triggers in the holidayreact cog.
Did you:

[x] Join the Python Discord Community?
[x] Read all the comments in this template?
[x] Ensure there is an issue open, or link relevant discord discussions?
[x] Read and agree to the contributing guidelines?

As I've been implemented in this, I present for consideration:
https://regex101.com/r/1hw10r/1
Original (with plural hearts):
\b(love(s|lie|lies)?|wuv(s|lie|lies)?|hearts?)\b

Simplified (no uwu)
\b(l(ove|uv)(s|lies?)?|hearts?)\b

Simplified (with basic uwu because fun)
\b((l|w)(ove|uv)(s|lies?)?|hearts?)\b

test set:
love
lovelies
luv
luve
wuve, what is wuv?
baby don't hurt me
loves
lovelies
lovelie
wuvlie
wuvlies
wuvs
heart
hearts

authors: Preocts shenanigansd

repo: python-discord/sir-lancebot


text:
PDF to word/doc

Script Title -
Brief - Script for convert .pdf file back again to .doc
Instructions

Create a new folder for your script and file/folder name should be appropriate.
Create a README.md in your folder for program Instructions
add requirements.txt if needed

Programming Language

[x] Python

Happy Coding

@pawangeek can I have this issue?

Hey @pawangeek , can I take a part to solve this issue?

repo: python-geeks/Automation-scripts


text:
Exception during table parsing when borders are not aligned

The exception is raised when parsing table with not aligned borders.
Library version: 0.8.11
Table picture:

Xml:
err.xml.txt
Code:
from docx import Document

if __name__ == '__main__':
    doc = Document('doc.docx')
    for table in doc.tables:
        for row in table.rows:
            for cell in row.cells:
                print(cell.text)

Exception:
  File "C:\Python39\lib\site-packages\docx\table.py", line 173, in _cells
    cells.append(cells[-col_count])
IndexError: list index out of range

FWIW, I've stumbled across a similar issue due to the same bad practice in the HTML (rows where the number of cells in the row exceeded the initial default)
The problem appears to be that the cell function in the tables.py file doesn't check if the cell exists before trying to access it.  I've modified my local version to the following.
Check the index doesn't exceed the array, if it does return None.  Depending on how you're using this, you may need to make further changes upstream.
    def cell(self, row_idx, col_idx):
        """
        Return |_Cell| instance correponding to table cell at *row_idx*,
        *col_idx* intersection, where (0, 0) is the top, left-most cell.
        """
        cell_idx = col_idx + (row_idx * self._column_count)
        if cell_idx >= len(self._cells):
            return None
        return self._cells[cell_idx]

try https://github.com/python-openxml/python-docx/issues/881#issuecomment-1437979336

try #881 (comment)

Thanks for a workaround, maybe someone find it helpful, but in the end this need to be fixed within the library.

Fixed in v1.1.1 circa Apr 30, 2024.

authors: djplaner radoslav006 scanny tonal

repo: python-openxml/python-docx

license: mit


text:
Create reverse_without_reversed_python3.py

Add reverse function for python version 3!

Nice work!

authors: Ilyosiddin icoder-new


text:
🐛 [Bug] make_refitable + reuse_cached_engines causing IndexError

Bug Description
First execution
WARNING:torch_tensorrt.dynamo.conversion.aten_ops_converters:Unable to import quantization op. Please install modelopt library (https://github.com/NVIDIA/TensorRT-Model-Optimizer?tab=readme-ov-file#installation) to add support for compiling quantized models
INFO:torch_tensorrt.dynamo._compiler:Compilation Settings: CompilationSettings(enabled_precisions={<dtype.f32: 7>}, debug=False, workspace_size=0, min_block_size=1, torch_executed_ops=set(), pass_through_build_failures=False, max_aux_streams=None, version_compatible=False, optimization_level=None, use_python_runtime=False, truncate_double=False, use_fast_partitioner=True, enable_experimental_decompositions=False, device=Device(type=DeviceType.GPU, gpu_id=0), require_full_compilation=False, disable_tf32=False, assume_dynamic_shape_support=False, sparse_weights=False, make_refitable=True, engine_capability=<EngineCapability.STANDARD: 1>, num_avg_timing_iters=1, dla_sram_size=1048576, dla_local_dram_size=1073741824, dla_global_dram_size=536870912, dryrun=False, hardware_compatible=False, timing_cache_path='/tmp/torch_tensorrt_engine_cache/timing_cache.bin', lazy_engine_init=False, cache_built_engines=True, reuse_cached_engines=True)

INFO:torch_tensorrt.dynamo._compiler:Partitioning the graph via the fast partitioner
WARNING:torch_tensorrt.dynamo.utils:Could not detect the device on which the model exists. Assuming the model is on CPU
INFO:torch_tensorrt [TensorRT Conversion Context]:[MemUsageChange] Init CUDA: CPU +2, GPU +0, now: CPU 146, GPU 999 (MiB)
INFO:torch_tensorrt [TensorRT Conversion Context]:[MemUsageChange] Init builder kernel library: CPU +2088, GPU +384, now: CPU 2389, GPU 1383 (MiB)
INFO:torch_tensorrt.dynamo.conversion._TRTInterpreter:Converted node x [x] (Inputs: () | Outputs: (x: (1, 3, 224, 224)@torch.float32))
INFO:torch_tensorrt.dynamo.conversion._TRTInterpreter:Converted node relu/relu [aten.relu.default] (Inputs: (x: (1, 3, 224, 224)@torch.float32) | Outputs: (relu: (1, 3, 224, 224)@torch.float32))
INFO:torch_tensorrt.dynamo.conversion._TRTInterpreter:Converted node output [output] (Inputs: (relu: (1, 3, 224, 224)@torch.float32) | Outputs: (output: ))
INFO:torch_tensorrt.dynamo.conversion._TRTInterpreter:TRT INetwork construction elapsed time: 0:00:00.004099
INFO:torch_tensorrt.dynamo.conversion._TRTInterpreter:Building weight name mapping...
WARNING:torch_tensorrt.dynamo.utils:Could not detect the device on which the model exists. Assuming the model is on CPU
INFO:torch_tensorrt.dynamo.conversion._TRTInterpreter:Not found cached TRT engines. Start building engine.
INFO:torch_tensorrt [TensorRT Conversion Context]:Global timing cache in use. Profiling results in this builder pass will be stored.
INFO:torch_tensorrt [TensorRT Conversion Context]:Detected 1 inputs and 1 output network tensors.
INFO:torch_tensorrt [TensorRT Conversion Context]:Total Host Persistent Memory: 256
INFO:torch_tensorrt [TensorRT Conversion Context]:Total Device Persistent Memory: 0
INFO:torch_tensorrt [TensorRT Conversion Context]:Total Scratch Memory: 0
INFO:torch_tensorrt [TensorRT Conversion Context]:Total Activation Memory: 0
INFO:torch_tensorrt [TensorRT Conversion Context]:Total Weights Memory: 0
INFO:torch_tensorrt [TensorRT Conversion Context]:Engine generation completed in 1.16053 seconds.
INFO:torch_tensorrt [TensorRT Conversion Context]:[MemUsageStats] Peak memory usage of TRT CPU/GPU memory allocators: CPU 0 MiB, GPU 13 MiB
INFO:torch_tensorrt [TensorRT Conversion Context]:[MemUsageStats] Peak memory usage during Engine building and serialization: CPU: 4103 MiB
INFO:torch_tensorrt.dynamo.conversion._TRTInterpreter:Build TRT engine elapsed time: 0:00:01.165938
INFO:torch_tensorrt.dynamo.conversion._TRTInterpreter:TRT Engine uses: 13844 bytes of Memory
INFO:torch_tensorrt [TensorRT Conversion Context]:Serialized 26 bytes of code generator cache.
INFO:torch_tensorrt [TensorRT Conversion Context]:Serialized 16 timing cache entries
INFO:torch_tensorrt.dynamo._engine_caching:The blob was saved to /tmp/torch_tensorrt_engine_cache/qcp2nbn7adw2zbhxzqql4er37brkw33awbzf4jqx33pbhuvino3/blob.bin
ERROR: [Torch-TensorRT] - Platform constructor: linux_x86_64

Second execution
WARNING:torch_tensorrt.dynamo.conversion.aten_ops_converters:Unable to import quantization op. Please install modelopt library (https://github.com/NVIDIA/TensorRT-Model-Optimizer?tab=readme-ov-file#installation) to add support for compiling quantized models
INFO:torch_tensorrt.dynamo._compiler:Compilation Settings: CompilationSettings(enabled_precisions={<dtype.f32: 7>}, debug=False, workspace_size=0, min_block_size=1, torch_executed_ops=set(), pass_through_build_failures=False, max_aux_streams=None, version_compatible=False, optimization_level=None, use_python_runtime=False, truncate_double=False, use_fast_partitioner=True, enable_experimental_decompositions=False, device=Device(type=DeviceType.GPU, gpu_id=0), require_full_compilation=False, disable_tf32=False, assume_dynamic_shape_support=False, sparse_weights=False, make_refitable=True, engine_capability=<EngineCapability.STANDARD: 1>, num_avg_timing_iters=1, dla_sram_size=1048576, dla_local_dram_size=1073741824, dla_global_dram_size=536870912, dryrun=False, hardware_compatible=False, timing_cache_path='/tmp/torch_tensorrt_engine_cache/timing_cache.bin', lazy_engine_init=False, cache_built_engines=True, reuse_cached_engines=True)

INFO:torch_tensorrt.dynamo._compiler:Partitioning the graph via the fast partitioner
WARNING:torch_tensorrt.dynamo.utils:Could not detect the device on which the model exists. Assuming the model is on CPU
INFO:torch_tensorrt [TensorRT Conversion Context]:[MemUsageChange] Init CUDA: CPU +2, GPU +0, now: CPU 146, GPU 999 (MiB)
INFO:torch_tensorrt [TensorRT Conversion Context]:[MemUsageChange] Init builder kernel library: CPU +2088, GPU +384, now: CPU 2389, GPU 1383 (MiB)
INFO:torch_tensorrt.dynamo.conversion._TRTInterpreter:Found the cached engine that corresponds to this graph. It is directly loaded.
INFO:torch_tensorrt [TensorRT Conversion Context]:Loaded engine size: 0 MiB
Traceback (most recent call last):
  File "/home/holywu/test.py", line 16, in <module>
    trt_model = torch_tensorrt.compile(
                ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/holywu/.local/lib/python3.12/site-packages/torch_tensorrt/_compile.py", line 269, in compile
    trt_graph_module = dynamo_compile(
                       ^^^^^^^^^^^^^^^
  File "/home/holywu/.local/lib/python3.12/site-packages/torch_tensorrt/dynamo/_compiler.py", line 288, in compile
    trt_gm = compile_module(
             ^^^^^^^^^^^^^^^
  File "/home/holywu/.local/lib/python3.12/site-packages/torch_tensorrt/dynamo/_compiler.py", line 462, in compile_module
    trt_module = convert_module(
                 ^^^^^^^^^^^^^^^
  File "/home/holywu/.local/lib/python3.12/site-packages/torch_tensorrt/dynamo/conversion/_conversion.py", line 141, in convert_module
    interpreter_result = interpret_module_to_result(
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/holywu/.local/lib/python3.12/site-packages/torch_tensorrt/dynamo/conversion/_conversion.py", line 120, in interpret_module_to_result
    interpreter_result = interpreter.run()
                         ^^^^^^^^^^^^^^^^^
  File "/home/holywu/.local/lib/python3.12/site-packages/torch_tensorrt/dynamo/conversion/_TRTInterpreter.py", line 561, in run
    _refit_single_trt_engine_with_gm(
  File "/home/holywu/.local/lib/python3.12/site-packages/torch_tensorrt/dynamo/_refit.py", line 149, in _refit_single_trt_engine_with_gm
    torch_device = list(new_gm.state_dict().values())[0].device.type
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range

To Reproduce
import torch
import torch_tensorrt

class MyModule(torch.nn.Module):
    def __init__(self):
        super().__init__()
        self.relu = torch.nn.ReLU()

    def forward(self, x):
        return self.relu(x)

model = MyModule().eval().cuda()
inputs = (torch.randn((1, 3, 224, 224), device="cuda"),)
trt_model = torch_tensorrt.compile(
    model,
    ir="dynamo",
    inputs=inputs,
    enabled_precisions={torch.float32},
    min_block_size=1,
    make_refitable=True,
)

Environment

Torch-TensorRT Version (e.g. 1.0.0): 2.5.0.dev20240830+cu124
PyTorch Version (e.g. 1.0): 2.5.0.dev20240830+cu124
CPU Architecture:
OS (e.g., Linux):
How you installed PyTorch (conda, pip, libtorch, source):
Build command you used (if compiling from source):
Are you using local sources or building from archives:
Python version:
CUDA version:
GPU models and configuration:
Any other relevant information:

Seems fixed in https://github.com/pytorch/TensorRT/commit/8759736843c108d3c8edd95a8e8fc632d8372b3b

repo: pytorch/TensorRT


text:
Enable FP6-LLM kernel build on Windows

This PR includes a small set of changes to enable building the FP6-LLM kernels and the torch extension in general under Windows natively. Tested with MSVC 19.39 (VS2022 17.9) and NVCC 12.4.
I have not yet validated these changes with GCC, so keeping this in draft mode for now.

Done via #396

authors: gau-nernst matthewdouglas

repo: pytorch/ao


text:
Overdrive cpp extension

New PR for overdrive C++ extension similar to lfilter . Relates to #580 ( old PR )

Removed commented code
Added parallel_for in overdrive cpp.

Performance details
( 60 sec audio clip,  VM with 2 vCPUs)

Numctl details (  VM with 2 vCPUs)
Command used :
OMP_NUM_THREADS=1 numactl --membind 0 --cpubind 0 python -m timeit -n 100 -r 5 -s """
import torch
import torchaudio
x = torch.zeros(2, 100, dtype=torch.float)
torchaudio.functional.overdrive(x)
"""

(2 , 100 )  = 100 loops, best of 5: 14.1 nsec per loop
(32 , 100 )  = 100 loops, best of 5: 16.8 nsec per loop
(1000, 100) = 100 loops, best of 5: 28.2 nsec per loop
(2, 100000) = 100 loops, best of 5: 40.4 nsec per loop
(100, 100000) = 100 loops, best of 5: 44.3 nsec per loop
(1000, 100000) = 100 loops, best of 5: 55.7 nsec per loop
(10000, 10000) =100 loops, best of 5: 49.7 nsec per loop

@mthrok
Changes made

Removed commented code
Added parallel_for in overdrive cpp.

Performance details
( 60 sec audio clip, VM with 2 vCPUs)

Numctl details ( VM with 2 vCPUs)
Command used :
OMP_NUM_THREADS=1 numactl --membind 0 --cpubind 0 python -m timeit -n 100 -r 5 -s """
import torch
import torchaudio
x = torch.zeros(2, 100, dtype=torch.float)
torchaudio.functional.overdrive(x)
"""

(2 , 100 ) = 100 loops, best of 5: 14.1 nsec per loop
(32 , 100 ) = 100 loops, best of 5: 16.8 nsec per loop
(1000, 100) = 100 loops, best of 5: 28.2 nsec per loop
(2, 100000) = 100 loops, best of 5: 40.4 nsec per loop
(100, 100000) = 100 loops, best of 5: 44.3 nsec per loop
(1000, 100000) = 100 loops, best of 5: 55.7 nsec per loop
(10000, 10000) =100 loops, best of 5: 49.7 nsec per loop

@bhargavkathivarapu
Thanks for the update. So my understanding is that the speed is comparable to sox implementation.
Can you compare the same torchaudio.functional.overdrive function and Tensor shape before/after adding the C++ code? That will tell more directly how the C++ implementation improves the performance.

Can you merge the latest master commit to include #1297? I believe I killed the flaky bug. 🐛

@mthrok . Now all checks passed after merger master.

Can you compare the same torchaudio.functional.overdrive function and Tensor shape before adding the C++ code? That will tell more directly how the C++ implementation improves the performance.

( Reference 60 second clip ) Tensor shape of w = [1, 1323000]
Existing torchaudio overdrive timing

Comparison for that tensor w

Implementation
Relative run time
Run time

sox overdrive
1X
38.7ms

overdrive new(cpp)
2X
78.2ms

overdrive old (python)
~2000X
77000ms

@mthrok . Now all checks passed after merging master.

Can you compare the same torchaudio.functional.overdrive function and Tensor shape before adding the C++ code? That will tell more directly how the C++ implementation improves the performance.

( Reference 60 second clip ) Tensor shape of w = [1, 1323000]
Existing torchaudio overdrive timing

Comparison for that tensor w
Implementation	Relative run time	Run time
sox overdrive	1X	38.7ms
overdrive new(cpp)	2X	78.2ms
overdrive old (python)	~2000X	77000ms

Wonderful! Thanks!

authors: bhargavkathivarapu mthrok

repo: pytorch/audio


text:
Any manual to use backtranslation dataset?

Hi,
I want to learn how to use backtranslation dataset to generate on-the-fly back translations that could be used for training for other tasks. Is there any manual for the backtranslation dataset?
Thanks

Other than the docs in the source file, I don't believe we have any additional documentation.

Other than the docs in the source file, I don't believe we have any additional documentation.

repo: pytorch/fairseq


text:
[Feature Request] Add support to python 3.11 at the nightly verision

Motivation
Solution
Add in PyPI package for python 3.11
Alternatives
I  was wondering when you were going to release support for python 3.11 at least in the nightly version.
Additional context
I don't know how hard is it to be fair. But I think there was already a pull request which solved that and has been already merged.
See #1433

Completed

repo: pytorch/rl


text:
[Feature Request] Custom names for trainer hooks registration

Motivation
The default name of the registered hooks in the trainer can't be modified. This will eventually prevent us from registering multiple times a hook of the same type.
e.g.: https://github.com/pytorch/rl/blob/dd9a98f1732fb0892212c8173025a7957b40274b/torchrl/trainers/trainers.py#L1193-L1197
Solution
The register name of a hook should be an optional argument.

Closed by #663


text:
Add a redirect from pytorch/torchchat to the github repo

A temporary redirect from the site to the repo.

How would we test this?

authors: Jack-Khuu svekars

repo: pytorch/torchchat


text:
How to serve fine-tuned model with vllm

After training, the output folder only contain files like meta_model_0.pt. If I try to use vllm server to serve this model like this: python -m vllm.entrypoints.openai.api_server --model finetuned_model_path --dtype bfloat16  --port 1235 --max-logprobs 1. An error will show up saying  finetuned_model_pathdoes not appear to have a file named config.json

I've copied a few json files file origin folder to the my fine-tuned model folder and the above issue was resolved. But I'm facing another issue now:
python -m vllm.entrypoints.openai.api_server --model /weka/scratch/djiang21/Meta-Llama-3-8B/gsm8k-quick/ --dtype bfloat16  --port 1235 --max-logprobs 1
INFO 05-07 21:27:02 llm_engine.py:100] Initializing an LLM engine (v0.4.1) with config: model='/weka/scratch/djiang21/Meta-Llama-3-8B/gsm8k-quick/', speculative_config=None, tokenizer='/weka/scratch/djiang21/Meta-Llama-3-8B/gsm8k-quick/', skip_tokenizer_init=False, tokenizer_mode=auto, revision=None, tokenizer_revision=None, trust_remote_code=False, dtype=torch.bfloat16, max_seq_len=8192, download_dir=None, load_format=LoadFormat.AUTO, tensor_parallel_size=1, disable_custom_all_reduce=False, quantization=None, enforce_eager=False, kv_cache_dtype=auto, quantization_param_path=None, device_config=cuda, decoding_config=DecodingConfig(guided_decoding_backend='outlines'), seed=0)
Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
INFO 05-07 21:27:03 utils.py:660] Found nccl from library /home/djiang21/.config/vllm/nccl/cu12/libnccl.so.2.18.1
INFO 05-07 21:27:04 selector.py:27] Using FlashAttention-2 backend.
[rank0]: Traceback (most recent call last):
[rank0]:   File "/weka/scratch/djiang21/miniconda/envs/quiet-star/lib/python3.9/runpy.py", line 197, in _run_module_as_main
[rank0]:     return _run_code(code, main_globals, None,
[rank0]:   File "/weka/scratch/djiang21/miniconda/envs/quiet-star/lib/python3.9/runpy.py", line 87, in _run_code
[rank0]:     exec(code, run_globals)
[rank0]:   File "/weka/scratch/djiang21/Dongwei_quiet_star/vllm/vllm/entrypoints/openai/api_server.py", line 168, in <module>
[rank0]:     engine = AsyncLLMEngine.from_engine_args(
[rank0]:   File "/weka/scratch/djiang21/Dongwei_quiet_star/vllm/vllm/engine/async_llm_engine.py", line 366, in from_engine_args
[rank0]:     engine = cls(
[rank0]:   File "/weka/scratch/djiang21/Dongwei_quiet_star/vllm/vllm/engine/async_llm_engine.py", line 324, in __init__
[rank0]:     self.engine = self._init_engine(*args, **kwargs)
[rank0]:   File "/weka/scratch/djiang21/Dongwei_quiet_star/vllm/vllm/engine/async_llm_engine.py", line 442, in _init_engine
[rank0]:     return engine_class(*args, **kwargs)
[rank0]:   File "/weka/scratch/djiang21/Dongwei_quiet_star/vllm/vllm/engine/llm_engine.py", line 159, in __init__
[rank0]:     self.model_executor = executor_class(
[rank0]:   File "/weka/scratch/djiang21/Dongwei_quiet_star/vllm/vllm/executor/executor_base.py", line 41, in __init__
[rank0]:     self._init_executor()
[rank0]:   File "/weka/scratch/djiang21/Dongwei_quiet_star/vllm/vllm/executor/gpu_executor.py", line 23, in _init_executor
[rank0]:     self._init_non_spec_worker()
[rank0]:   File "/weka/scratch/djiang21/Dongwei_quiet_star/vllm/vllm/executor/gpu_executor.py", line 69, in _init_non_spec_worker
[rank0]:     self.driver_worker.load_model()
[rank0]:   File "/weka/scratch/djiang21/Dongwei_quiet_star/vllm/vllm/worker/worker.py", line 118, in load_model
[rank0]:     self.model_runner.load_model()
[rank0]:   File "/weka/scratch/djiang21/Dongwei_quiet_star/vllm/vllm/worker/model_runner.py", line 164, in load_model
[rank0]:     self.model = get_model(
[rank0]:   File "/weka/scratch/djiang21/Dongwei_quiet_star/vllm/vllm/model_executor/model_loader/__init__.py", line 19, in get_model
[rank0]:     return loader.load_model(model_config=model_config,
[rank0]:   File "/weka/scratch/djiang21/Dongwei_quiet_star/vllm/vllm/model_executor/model_loader/loader.py", line 224, in load_model
[rank0]:     model.load_weights(
[rank0]:   File "/weka/scratch/djiang21/Dongwei_quiet_star/vllm/vllm/model_executor/models/llama.py", line 415, in load_weights
[rank0]:     param = params_dict[name]
[rank0]: KeyError: 'tok_embeddings.weight'

Seems like we need to do some conversion between torchtune generated model format and HF model format?

I have the same question.

authors: MaxwelsDonc Some-random

repo: pytorch/torchtune


text:
Fix bot that pings us when PR labels are missing

Looks like the bot has been quiet since we migrated to main :p

Removing the label to make sure the bot works now - we'll know when we merge the PR

Good bot  \o/

repo: pytorch/vision


text:
ComboLBox not select function

Expected Behavior
Use select function to choose item from ComboLBox variable. (see green block)

Actual Behavior
Can't find select function from ComboLBox variable.
Steps to Reproduce the Problem

Short Example of Code to Demonstrate the Problem
Specifications

Pywinauto version: 0.68
Python version and bitness: 3.7
Platform and OS: Windows 10

Sorry, I choose the corresponding variable again. Now it works. It may cause by my ignore.
Thank you for the work dipping many developer time.

repo: pywinauto/pywinauto


text:
eth/chains: implement eip 155 for replay protection

required for #15 and #17

Codecov Report

Merging #20 (fe8e75b) into main (6c3a94f) will decrease coverage by 0.25%.
The diff coverage is 98.95%.

@@             Coverage Diff             @@
##              main      #20      +/-   ##
===========================================
- Coverage   100.00%   99.74%   -0.26%
===========================================
  Files            9       11       +2
  Lines          296      388      +92
===========================================
+ Hits           296      387      +91
- Misses           0        1       +1

Impacted Files
Coverage Δ

lib/eth/chains.rb
97.14% <97.14%> (ø)

lib/eth.rb
100.00% <100.00%> (ø)

spec/eth/chains_spec.rb
100.00% <100.00%> (ø)

spec/eth/key_spec.rb
100.00% <0.00%> (ø)

Continue to review full report at Codecov.

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


text:
🛑 nitter.domain.glass is down

In 2a33012, nitter.domain.glass (https://nitter.domain.glass) was down:

HTTP code: 503
Response time: 315 ms

Resolved: nitter.domain.glass is back up in da753a2 after 5 minutes.


text:
🛑 nitter.projectsegfau.lt is down

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

HTTP code: 503
Response time: 284 ms

Resolved: nitter.projectsegfau.lt is back up in 503b6cf after 21 minutes.


text:
🛑 nitter.fediflix.org is down

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

HTTP code: 403
Response time: 604 ms

Resolved: nitter.fediflix.org is back up in 1845723 after 10 minutes.


text:
🛑 nitter.mint.lgbt is down

In 62c908e, nitter.mint.lgbt (https://nitter.mint.lgbt) was down:

HTTP code: 0
Response time: 0 ms

Resolved: nitter.mint.lgbt is back up in cf23b30 after 6 minutes.


text:
🛑 nitter.privacytools.io is down

In 912cd4a, nitter.privacytools.io (https://nitter.privacytools.io) was down:

HTTP code: 0
Response time: 0 ms

Resolved: nitter.privacytools.io is back up in 1d98af3.


text:
🛑 nitter.tiekoetter.com is down

In 7e63b58, nitter.tiekoetter.com (https://nitter.tiekoetter.com) was down:

HTTP code: 502
Response time: 629 ms

Resolved: nitter.tiekoetter.com is back up in 106e51a after 16 minutes.


text:
🛑 notabird.site is down

In 583014d, notabird.site (https://notabird.site) was down:

HTTP code: 520
Response time: 69 ms

Resolved: notabird.site is back up in c9260d2.


text:
🛑 notabird.site is down

In 2b6a9b2, notabird.site (https://notabird.site) was down:

HTTP code: 520
Response time: 143 ms

Resolved: notabird.site is back up in 17e2a00 after 23 minutes.


text:
🛑 notabird.site is down

In 3c1d3e4, notabird.site (https://notabird.site) was down:

HTTP code: 520
Response time: 83 ms

Resolved: notabird.site is back up in 652780c after 5 minutes.


text:
🛑 notabird.site is down

In 67a9ddd, notabird.site (https://notabird.site) was down:

HTTP code: 520
Response time: 83 ms

Resolved: notabird.site is back up in 33f6652 after 5 minutes.


text:
Ease integration testing with json-server

Testing manual REST integration assumed having a ready-to-use backend with the correct routing and  data format configured, which led to many possible errors. We could therefore provide a simple JSON file that contains the correct data and use json-server to simulate a simple REST API, which should suffice for simple testing purposes.

Fix has been merged.

authors: edgarmueller planger

repo: qb-project/jsonforms


text:
Fix/depends on marketplace agreement

Description
Change overview (tick true):

[ ] This introduces backward incompatible changes
[ ] This adds a new backward compatible Feature
[ ] This fixes a Bug

Version information:

Next Version based on Semantic Versioning (see above): 1.4.1

How Has This Been Tested?

[ x ] Apply of one example was successfull

Checklist:

[ x ] I have run tests and documented them above
[ x ] I have performed a self-review of my own code
[ ] I have updated the documentation
[ x ] I have updated the CHANGELOG

@QBY-MarkusMaring gerne reviewen :)

I ticked the documentation checkbox, but the check still hasn't completed :(

repo: qbeyond/terraform-azurerm-linux-vm


text:
Proposed Changes

This starter strikes the perfect balance between simplicity and having most of the features I need.
I am going to be making some changes for my own project and wanted to know which ones you would like to receive pull requests for.

Use sass-loader to build .scss and extract-text-webpack-plugin to export the global styles.
HtmlWebpackPlugin used for all builds, including production (instead of copy)
Common chunks plugin on production builds to separate vendor files and improve load speed
Chunk hashes in file names for better browser caching
hmr-loader and all HMR code excluded from production builds
AOT compilation done through @ngtools/webpack instead of command line
Electron branch which builds exclusively for Electron applications, including e2e using Spectron

Is there a particular reason you are running command-line SASS instead of sass-loader through Webpack? I like to keep build pollution out of my source directories as much as possible.
Let me know what you want, or if you have good reasons for the way you chose to build it.

Is there a particular reason you are running command-line SASS instead of sass-loader through Webpack?

I believe this is to support AOT which doesn't work with the require() approach

Is there a particular reason you are running command-line SASS instead of sass-loader

it's not necessary any longer. you can use aot webpak plugin. this repo will migrate to it very soon

Is due to universal compatibility, but I may change that on the other branches when I make the next update
Separating the files also produces larger bundles as treeshaking is more effective when everything is in one
Not understanding what you mean here
We will be switching to ngtools soon, there were a lot of issues with it that I wanted to be fixed before migrating...but I feel it's safe to migrate now.
I don't use that, so it'd be difficult for me to maintain that

As mentioned above, the command line sass had to to do with AOT compatibility, but should not be needed when we switch to using ngtools

@qdouble, would you consider using webpack-merge to split config between common, dev, prod, and test environments and also allow for customization this way instead of via constants file?

@bmayen for me it seems easier to maintain a single config file then going back and forward between different files.

IMO, it's less about the difficulty of going back and forth between files than it is about being able to define a single common config for different environments and easily overriding any of it.
The constants.js approach is rather proprietary. We have a large team with many projects; using this setup requires everybody to not only understand webpack config, but also a proprietary way to customize it.
Last but not least, if we want to add different config for more environments than you've defined here, it's not very straightforward/clean.
What you gain in simplicity of having a single config, you lose in clarity and flexibility. I think the latter is far more beneficial to teams consuming this repo.

Well I don't think the constants.js file is really related to the issue of
having separate configs at all... that's there simply to define custom
project settings without having to touch the main config. There are indeed
tradeoffs for having separate config files, one of which being that can
create a bigger maintenance burden and can be harder to reason about. I
suppose I could accept a PR that separates config files if done cleanly
enough, but it isn't particular priority for me.
On Mon, Dec 19, 2016 at 8:16 PM, bmayen notifications@github.com wrote:

IMO, it's less about the difficulty of going back and forth between files
than it is about being able to define a single common config for different
environments and easily overriding any of it.
The constants.js approach is rather proprietary. We have a large team with
many projects; using this setup requires everybody to not only understand
webpack config, but also a proprietary way to customize it.
Last but not least, if we want to add different config for more
environments than you've defined here, it's not very straightforward/clean.
What you gain in simplicity of having a single config, you lose in clarity
and flexibility. I think the latter is far more beneficial to teams
consuming this repo.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/qdouble/angular-webpack2-starter/issues/215#issuecomment-268150477,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJ7seNjWHIkYUE8zwhPIHBihNepC6XS-ks5rJ1aSgaJpZM4LQkvG
.

Well I don't think the constants.js file is really related to the issue of
having separate configs at all
In the sense that using webpack-merge enables both custom settings and separate/additional environment configs. Two birds with one stone.

Just curious, do you see more of a downside to not taking this approach? Feature-wise this repo is the most forward-thinking of the options out there, but the implementation makes it difficult to integrate into a larger team.

@bmayen this repo is largely based off what I find convenient to use in my own projects... I'm able to use this starter configuration in different projects without any particular need for separate config files. As I said, if someone wants to go ahead and submit a PR for the different branches that creates separate configs and it's done cleanly enough, I'd consider merging it...but as I don't have a particular need for that, I don't plan on taking time to rewrite it.

Personally I find multiple configuration files less DRY and harder to figure out. I like your approach here @qdouble.

How would it be less DRY? It wouldn't be repeating the entire config for each environment, it would be pulling the common config out into its own file, allowing individual environments to only define their unique parts.

The advantage to separating out vendor chunks is that the vendor files typically change less than the application and are most of the size. So when the main application code changes the users only need to re-download a small portion of the application.
If the chunk hashes are added to the filename it makes browser caching much more efficient.
I submitted a PR with dependencies upgraded as far as they could go without breaking. Next step is to switch to @ngtools/webpack AOT compilation.

@bmayen using webpack-merge it is awkward, for example, if I need to insert one loader at the beginning and one at the end and get plugins in a certain order.
I find it much order to compose the loaders with if-then statements based on the environment with one file. Unless the config is really, really complex I find it easiest to figure out what is going on by reading through one file, rather than 10+ files that other starter projects use.

For argument's sake, what would you do if you used this config as a base for, say, 10 different projects with different devs on each, and you have a few additional environments for each and some other custom config you want to add? Sure, you could make all of your changes to this config inline, but then what happens when this repo is updated with something cool like @ngtools/webpack and you want to pull those changes into all of those projects?
I understand that that kind of support is not the goal of this repo, but I think it would be unfortunate to exclude that based on not wanting to read through separate configs. Also, to be clear, I'm not advocating 10+ config files. I haven't seen an approach like that and I agree it sounds unnecessarily complex. But a common config plus dev, prod, and test doesn't sound overly complicated to me. In fact, this starter already has a separate config for tests.

@bmayen angular2-webpack-starter may be closer to what you are looking for. I simply chose this one because it is a little more cutting edge, simpler, and I find it easier to customize to my specific build flow. Plus the author is very responsive.

@bmayen simplicity of a repo is a valid concern and imo, having separate configs simply makes the repo more complicated than one config. While I'll admit, there are use cases in which having multiple configurations can be more beneficial there is no particular strong need for it.
First of all, once you actually go to the effort of messing with any of the configs, you've taken on the tasks of editing the webpack configuration beyond just using the constants for plug and play. It seems to me a bit extra tedious to manage and keep track of an entirely different configuration when I can just manage what I want to do with an if statement.
Now, being that we are typescript and angular users, we're all used to modularity and splitting things up into components that are a simple as possible... so I get your stance on it... but in the particular arena my project configuration, it just feels less intuitive to put the settings in one file vs navigating 5-6 different configurations.

I realized that AngularClass/angular2-webpack-starter was closer to what I wanted, and I have already implemented most of these features there.
One thing you may consider @qdouble is to fork that repo and add NGRX & Universal. I've already added many of the missing features from this repo to there.
Feel free to close this issue if you would like.

@colinskow  I don't really see the point of creating carbon copies of other repos, but I'm sure we all cherry-pick certain things. I've added some of the stuff that you mentioned up top already and some I don't really plan to. Cheers.

authors: DzmitryShylovich bmayen colinskow qdouble


text:
Fetch single message

Discord API allows for fetching of a single message. See Get Channel Message.
However, this is not implemented in Discordie.
Maybe this can be implemented as ITextChannel.fetchMessage(messageId).
Example:
Method and URL:
GET https://discordapp.com/api/channels/223147496579999744/messages/248127708507114193
Headers:

Authorization: Bot <My Token>
User-Agent: DiscordBot (None, 0.0.01)
Content-Type: application/json

Response:
{
  "attachments": [],
  "tts": false,
  "embeds": [],
  "timestamp": "2016-11-15T16:50:55.698000+00:00",
  "mention_everyone": false,
  "id": "248127708507114193",
  "pinned": false,
  "edited_timestamp": null,
  "author": {
    "username": "Shantanu",
    "discriminator": "7372",
    "id": "210537673643444741",
    "avatar": "fd59a85912967b6b70a4dbad01f0ad72"
  },
  "mention_roles": [],
  "content": "test",
  "channel_id": "223147496579999744",
  "mentions": [],
  "type": 0
}

I'm going to note here for anyone else wanting to use this feature that it is already in the lib on the dev branch.

Thanks! For reference to others: https://github.com/qeled/discordie/blob/dev/lib/interfaces/ITextChannel.js#L143-L159

authors: TheDoctorsLife shantanuthatte

repo: qeled/discordie


text:
Node.js update breaks Discordie

Here is what I have of an error log.  This occured after the only code change was an update to node.js.
at IAuthenticatedUser.can (/var/lib/openshift/58990b4d0c1e66658a00015c/app-root/runtime/repo/node_modules/discordie/lib/interfaces/IUser.js:231:26)
    at IAuthenticatedUser.can (/var/lib/openshift/58990b4d0c1e66658a00015c/app-root/runtime/repo/node_modules/discordie/lib/interfaces/IAuthenticatedUser.js:289:32)
    at DiscordieDispatcher.client.Dispatcher.on.e (/var/lib/openshift/58990b4d0c1e66658a00015c/app-root/runtime/repo/start.js:344:20)
    at emitOne (events.js:96:13)
    at DiscordieDispatcher.emit (events.js:189:7)
    at DiscordieDispatcher.emit (/var/lib/openshift/58990b4d0c1e66658a00015c/app-root/runtime/repo/node_modules/discordie/lib/core/DiscordieDispatcher.js:37:16)
    at Discordie.handler (/var/lib/openshift/58990b4d0c1e66658a00015c/app-root/runtime/repo/node_modules/discordie/lib/networking/messages/gateway/message_create.js:12:19)
    at Discordie.processMessage (/var/lib/openshift/58990b4d0c1e66658a00015c/app-root/runtime/repo/node_modules/discordie/lib/core/MessageHandlerCache.js:11:55)
    at MessageHandlerCache.processGatewayMessage (/var/lib/openshift/58990b4d0c1e66658a00015c/app-root/runtime/repo/node_modules/discordie/lib/core/MessageHandlerCache.js:53:27)
    at DiscordieDispatcher.Dispatcher.on.e (/var/lib/openshift/58990b4d0c1e66658a00015c/app-root/runtime/repo/node_modules/discordie/lib/index.js:82:19)

Have you tried to install Node.JS 6?

After doing some restarts, the bot is not crashing so perhaps this is some other bug that happened to be triggered during an update.


text:
fix bug in nopus when no process.argv[1] is present

This is a little obscure, but running node with no process.argv[1], nopus throws a type error:
Cannot read property 'replace' of undefined.
This was caused by this line:
Module["thisProgram"]=process["argv"][1].replace(/\\/g, "/");
The fix for this was to replace this with:
Module["thisProgram"]=process["argv"][1]?process["argv"][1].replace(/\\/g, "/"):null;
Doing this doesn't seem to have any negative side-effects as nopus is checking this property and setting a default value later in code.

Rebased.

authors: briantanner qeled


text:
Stop longtime query

Please, add window for processing query in "Attributes table" (Advanced filter) to able stop this process.

Hi @shaninandrew,
This repository is for issues encountered when browsing the https://qgis.org website. For issues or requests related to the software itself, please go to https://github.com/qgis/QGIS/issues.
Closing.

authors: DelazJ shaninandrew

repo: qgis/QGIS-Website


text:
Certain ID schemes can become mixed up with barcodes during sorting

Bug Description
Discovered by Nick Youngblut on the forum.
If IDs have a scheme which overlaps with barcode segments (e.g. "idX_Y" and just "idX"), the sorting performed on the forward and reverse reads may no longer match IF the barcode IDs differ between forward and reverse reads (as is the case when a fastq manfiest format is used, or in the case where the barcodes are bases etc).
Steps to reproduce the behavior
Consider the sorting on these IDs
# file_name: number_of_sequences
./V130_166_L001_R1_001.fastq.gz: 295
./V130_2_167_L001_R1_001.fastq.gz: 6069
./V130_2_743_L001_R2_001.fastq.gz: 6069
./V130_742_L001_R2_001.fastq.gz: 295

This will spuriously pair up V130-forward and V139_2-reverse. Note that the sample ID is V130 NOT V130_166 as it might initially appear.
This results in an error like so:
Error in (function (fn, fout, maxN = c(0, 0), truncQ = c(2, 2), truncLen = c(0,  :
  Mismatched forward and reverse sequence files: 6069, 295.

Expected behavior
For V130_166_L001_R1_001.fastq.gz to be paired with V130_742_L001_R2_001.fastq.gz and so on.
Questions

Is there a better way to provide paired-end data to DADA2? Right now we are providing two directories which DADA2 must be sorting and pairing.
If not, should this bug be moved upstream?
Can we confirm that the MANIFEST file in the data directory has the correct information, if so, could we use that instead of the filenames to determine pairing?

References

https://forum.qiime2.org/t/qiime-dada2-denoise-paired-naming-bug/6385

cc @benjjneb

Sorry, it looks like the input are actually vectors, so we can arrange them as needed in the script.

I'm not sure I full understand the issue, it looks/sounds to me like we have a situation along the lines of this:
There is one directory containing forward reads and one containing reverse reads. These directories are both sorted. The files within the directories are matched up pairwise under the assumption that the forward and reverse reads will have sorted in the same order. In this instance we have a forward read directory that goes 130 then 130_2 because 130_166 sorts above 130_2, but in our reverse read directory we have 130_2 then 130 because 130_2 sorts above 130_742?
If that's the case, ensuring we get proper sorting in all cases sounds like a real pain. I don't 100% know the naming conventions for these files, but I guess we could split on _ and use the resulting elements to aid in sorting? Like in this situation the 130_2 ids would have one more section than the 130 ids so maybe we just put them at the bottom? And then if also had 130_3 or 130_4 or whatever we could do a secondary sort on that second element?

You are understanding the problem correctly. What we need to do is find a reasonable way to provide the order to the R script. For instance passing and parsing our internal manifest in R (CSV parsing in R is a bit idiosyncratic, but it's definitely workable). Then using that to define the order/pass the reads into DADA2. Basically we need to move some business logic into R to make sure the samples are paired up correctly.
An alternative would be to rename the files such that only the sample IDs are present, preventing the barcode segment (that second part of the _ in your example) from breaking the ordering between forward and reverse.
Really we can do anything here between the R and Python boundary, we just need to do something...


text:
No Module called geotransformer.ext

when I run steup.py build develop, the process runs but after trying to run the next step i get an error saying no module named geotransformer.ext found

Hello, I have also encountered this issue. Have you resolved it？

Hello, I managed to solve it!
if you are using an isolated container or an environment, are you running the commands in the same or not?
because this module adds to the system path.
Since I was using two different containers, was giving me that error.
Hope this helps!


text:
Which API does this use?

Where API does this code access?  Is it the API provided by fortnitetracker?

No, is not an API provided by fortnitetracker. This is an API based on Fortnite client (so like an official API).

authors: bzbirdman qlaffont

repo: qlaffont/fortnite-api


text:
Test Issue - bdtbp

Test Body - uodewxlfxt

Test Comment - gouuz

repo: qlikqaa/dummyrepo


text:
Test Issue - qntzq

Test Body - zozarjjhiv

Test Comment - onjgr


text:
Test Issue - zedvk

Test Body - jjjghhmpls

Test Comment - stikg


text:
Test Issue - gmbff

Test Body - tguzjzbmds

Test Comment - eikbc


text:
Test Issue - xnfmb

Test Body - etvnfthugv

Test Comment - jabqw


text:
Test Issue - eafee

Test Body - ouftpczgqo

Test Comment - indeh


text:
Test Issue - zlisq

Test Body - yjwryttbqj

Test Comment - iwiba


text:
Test Issue - hnthm

Test Body - xcqljmslje

Test Comment - jsgqr


text:
Test Issue - ctehr

Test Body - dojofcterw

Test Comment - hiwid


text:
Test Issue - lhrvw

Test Body - aproorzeqn

Test Comment - hucgj


text:
Test Issue - wlaib

Test Body - jcznobfgul

Test Comment - riuxv


text:
Test Issue - gwjcx

Test Body - arcpzgbemw

Test Comment - fwlle


text:
Test Issue - dtmbk

Test Body - usiduvxsyo

Test Comment - lhsab


text:
Test Issue - xspxh

Test Body - vpgsjmarbz

Test Comment - vtlit


text:
Test Issue - ubthf

Test Body - pmgoqxmtbp

Test Comment - jpjnu


text:
Test Issue - qnhev

Test Body - dfpgnifxjq

Test Comment - vcert


text:
Use [package] in Cargo.toml

This is what various tools expect, like cargo outdated.

Interestingly enough: cargo itself does accept both variants.

What's the difference between the two keywords?

Sorry for merging it that quickly.
package is the one that is mainly used by cargo and is also the one a cargo new will generate.
I suspect [project] is there for legacy reasons (seems there are test cases on the cargo repo for it). I right now don't have time to track it down further.

Ok thanks. No problem for the merge, as long as you know what you're doing :)

"Know what I'm doing" based on "it still compiles and is what cargo does", so yeah :)

Ah ah, at least it still compiles—could be worse ;) Thank you both!

authors: badboy qmonnet waywardmonkeys

repo: qmonnet/rbpf


text:
gpio_out level should be per-pin

The implementation is broken if different LEDs are configured to use a different gpio_mode: https://github.com/qmsk/esp/blob/f929ca9773ccce640a1bbbf8a44530b5f5e3ee59/main/leds_gpio.c#L29-L45

Fixed in https://github.com/qmsk/esp/commit/a5b4af4a8835cbf7cf4f96d0dc2546e1069ed452

repo: qmsk/esp


text:
Question about (onError) property

Hi there,
Can you give an example of using this property? Is it possible for example to write some error message if consumer doesn't enter anything in the input? (e.g. min="1")

For anyone searching for this, I came up with this - rather crude but worked for me -
<inline-editor
  (onSave)="column.hasError = false; saveEditable($event)"
  (onError)="column.hasError = true"
  max="10">
</inline-editor>

<span *ngIf="column.hasError">ERROR! Max is 10</span>

repo: qontu/ngx-inline-editor


text:
Configure layer internal tag

Make @internal tag configurable
Some projects, like MediaWiki, use the @internal tag with a different
semantics than the one imposed by deptrac. In the case of MediaWiki, the
intended semantics is "not for use by extensions", i.e. "internal to the
core repo".
To work around this issue, allow the config file to specify which tag
deptrac will interpret as "layer-internal". The @deptrac-internal tag
will continue to always work.

Tests need fixing, but otherwise LGTM.

Thank you for the quick response! I'll sort out the tests later today, sorry for the mess.

In most of your tests, you are passing an empty array as a parameter. This is no longer valid as you have specified in the __constructor PHPDoc that the array always has the key present. I think the PHPStan static analyser should complain about it too.

I had an idea: if we make it so all tags are exposed through ClassLikereference, we don't have to inject the config here anymore. We'd only need the config in DependsOnInternalToken.

@brightbyte thank you very much for your contributing, I looking forward to see more of your work land in deptrac.

authors: brightbyte gennadigennadigennadi

repo: qossmic/deptrac


text:
Problem getting an attachment with the showAttachment json parameter

Hi,
When trying to capture the output of the showAttachment parameter I get 2 different things

The data that I get has a length of 3004 chars but the length parameter is giving me a complete different length of 18691.
Is this a bug or am i doing something wrong?
I have set the callback method like this

Nevermind also fixed by just copying everything from memory. That seems to solve my weird issue

repo: qpdf/qpdf


text:
Code clean up: use range-style for loops wherever possible

Remove variables obsoleted by commit 4f24617.

Thanks -- I started doing this but didn't get through it. I'll scrutinize this and most likely accept it.

There's a merge conflict you might want to fix after my latest push. Looks like maybe I had made one of the changes you also made in my recent work. At this moment, all my changes are in main, so it's a good time to squeeze this in. If you don't get to it, I'll take care of the merge conflict.

(I'm still doing active work -- I just pushed the most recent increment.)

Rebased to latest main.

Rebased to latest main.

Thanks! I should have time to merge it later today or sometime this weekend.

authors: jberkenbilt m-holger


text:
k8s-executor KubernetesExecutorConfig add hostnetwork

Make sure you have checked all steps below.
Jira

[ ] My PR addresses the following Airflow Jira issues and references them in the PR title. For example, "[AIRFLOW-XXX] My Airflow PR"

https://issues.apache.org/jira/browse/AIRFLOW-XXX
In case you are fixing a typo in the documentation you can prepend your commit with [AIRFLOW-XXX], code changes always need a Jira issue.

Description

[ ] Here are some details about my PR, including screenshots of any UI changes:

Tests

[ ] My PR adds the following unit tests OR does not need testing for this extremely good reason:

Commits

[ ] My commits all reference Jira issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":

Subject is separated from body by a blank line
Subject is limited to 50 characters (not including Jira issue reference)
Subject does not end with a period
Subject uses the imperative mood ("add", not "adding")
Body wraps at 72 characters
Body explains "what" and "why", not "how"

Documentation

[ ] In case of new functionality, my PR adds documentation that describes how to use it.

When adding new operators/hooks/sensors, the autoclass documentation generation needs to be added.
All the public functions and the classes in the PR contain docstrings that explain what it does

Code Quality

[ ] Passes flake8

LGTM

authors: OopsOutOfMemory chenshaojin

repo: qtt-bigdata/airflow


text:
getAll for non-unique index

I want to delete all occurrences of a non-unique property index. How do I do this with this library?

Since IDBIndex has no delete method, you probably want to iterate over the index and delete each object one by one.
Example:
nameIndex.iterator.iterateValues(async (cursor)=>{
    console.log(cursor.key)  // access index key
    console.log(cursor.primaryKey) // access primary key
    console.log(cursor.value) // access object
    await cursor.delete() // or delete value using cursor
},{
    query: TodoTask.NameIndex.lowerBound("a"), // iterate over name starting with "a",
    direction: "prev" // descending order
})

In my case, each object has the property itemID, and I want to delete all objects that have, say, itemID = 4. I would use .only for that then I suppose?
Is there a way to call this with a for await loop? I thought the iterator would allow doing things like that?

Sorry no, I did not implemented iteration protocols. I might look into this in the future.

But yes on the .only, right?

How do you abandon an iteration midway if you've found what you need? Do you always have to iterate the full query?

I suppose I could call cursor.advance(<very high number>)?

How do you abandon an iteration midway if you've found what you need? Do you always have to iterate the full query?

You can use CursorIterationOption.limit to limit your result count. There is currently no break functionality.

But yes on the .only, right?

Ya, you probably want to use .only

authors: qualified-cactus retorquere

repo: qualified-cactus/promised-db


text:
🛑 otakusan is down

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

HTTP code: 0
Response time: 0 ms

Resolved: otakusan is back up in fcfac44.


text:
🛑 kokocon is down

In f06c759, kokocon (http://kokocon.net/) was down:

HTTP code: 500
Response time: 107 ms

Resolved: kokocon is back up in 93e04a3 after 11 minutes.


text:
🛑 kokocon is down

In aa0d551, kokocon (http://kokocon.net/) was down:

HTTP code: 500
Response time: 111 ms

Resolved: kokocon is back up in 4dc2f5c after 7 minutes.


text:
🛑 otakusan is down

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

HTTP code: 0
Response time: 0 ms

Resolved: otakusan is back up in 91edbc7 after 23 minutes.


text:
JSON representations of all Squiggle Formats.

Description of suggestion or shortcoming:
It seems like a good practice to allow convert items into JSON. Ideally, we could also read JSON.
This might require some formatting for each SqValue type.

We already have SqValue.asJS(), and runSquiggle tries to serialize values to JSON, but it's not clear how to do that for dists and lambdas.
Related: #1198.

I feel like dists shouldn't be too bad, just a bit annoying to have it work both ways.
SampleSets -> List samples
PointSet -> List coords
Symbolic -> List params.
I wouldn't expect lambdas to work, that would be pretty rough (could require bringing in a whole lot of the codebase)

(Playing with it now, I imagine SqValue.asJs() could already work. Maybe we have a button to copy the JS to the clipboard, or to log it to the JS console?

authors: OAGr berekuk

repo: quantified-uncertainty/squiggle


text:
NYSE Calender Error zipline

NYSE was closed on 12/5/2018 but when I'm trying to ingest a data bundle using the default NYSE calendar, it's raising an error saying
Missing sessions: [Timestamp('2018-12-05 00:00:00+0000', tz='UTC')]
but it wasn't a Trading day. Is there any workaround to make it work?

Hi there. This is due to the George H.W. Bush Day of Mourning (see this PR https://github.com/quantopian/trading_calendars/pull/42)
You can either install master branch of Zipline from here on GitHub, or run:
pip install -U trading-calendars
To get the latest version of the trading-calendars project that contains this holiday.
Zipline should have this taken care of by default whenever we do another release.

repo: quantopian/zipline


text:
Move placement from cirq.line to cirq.google.line.

Placement is also removed from list of global symbols exposed in cirq
package; it's moved to cirq.google instead.
For now placement strongly depends on the Xmon architecture and should
be developed here until new abstractions are introduced.
Fixes https://github.com/quantumlib/Cirq/issues/754

Automerge: started

Automerge done.

authors: CirqBot mrwojtek

repo: quantumlib/Cirq


text:
[TEST] Dummy change to test build

Checking if the qaoa networkx test failure is a build issue.

For what it's worth, I am also seeing failures that I believe are unrelated to my changes.

I know. Now my Friday night is totally ruined. 😭

Seems to be fixed now

authors: daxfohl tonybruguier


text:
Implement catalytic controlled-Hadamard

https://journals.aps.org/prxquantum/pdf/10.1103/PRXQuantum.2.030305
Fig 17.

@mpharrigan / @tanujkhattar what are your thoughts on adding a ControlledHadamard Bloq, which possibly delays the above implementation and just tags the cost? It would be nice to have this bloq to add more colour to the first quantized (and second quantized) decompositions. I know there is some discussion in #134 on how to do this generally, so wanted to check first.
An alternative would be to decompose via cirq and generalize appropriately.

I'd be fine with that. I think since this is a special decomposition for the controlled version of an ordinary bloq it doesn't conflict with #134 which deigns to automatically decompose ControlledBloq(bloq) as [ControlledBloq(sb) for sb in bloq.decompose_bloq()]

Did this ever get contributed?

no

I'll add a specific CHadamard bloq but leave it as a leaf bloq #873 and the existing cirq-based magic circuit and the explicit construction can be captured in methods, and the desired resource-counting behavior can be configured via the QECGatesCost cost-key

authors: fdmalone mpharrigan ncrubin tanujkhattar

repo: quantumlib/Qualtran


text:
sshs seems to be confused with User defined as a parameter for global and host

seen w/ sshs 3.4.0
sshs seems to be confused with User defined as a parameter for global and host
Here is the content of my config file.

Host *
User admin
ServerAliveInterval 30
ServerAliveCountMax 120
Host axis-b8a44f
User root

I'm expected to have the user root used for the connection to axis-b8a44f as it is shown by sshs

But it seems that it's not the case, based ion the ssh prompt
admin@axis-b8a44f's password:

sshs is using the locally installed ssh to connect to hosts. That might be an issue with your currently installed version of ssh.
What does ssh -V gives you ?

I'm currently having the issue with OpenSSH on Ubuntu on WSL

$ wsl.exe
Welcome to Ubuntu 20.04.5 LTS (GNU/Linux 4.4.0-19041-Microsoft x86_64)
$ ssh -V
OpenSSH_8.2p1 Ubuntu-4ubuntu0.5, OpenSSL 1.1.1f  31 Mar 2020

Hey! Looking back to your configuration, everything's fine, did you expected admin to show up in the User column?

authors: kvnco quantumsheep

repo: quantumsheep/sshs


text:
Datetimepicker Time picker

Hi,
two little issue.

The first one if we use qo-mode="time" and qo-format="HH:mm" the popover is the datetime mode and not the time mode.
if we change default option timeFormat = "HH:mm", it's not used in default time format.

Best regards

Hi,
timeFormat option is not in use currently.
Your first issue is important, it will be fixed in next commit. Currently you can change below code in end of datepicker.js
Replace
                 If (/datetime|time/.test(mode)) {
                          options.timepicker = true;
                          if (!attr.qoFormat) {
                              if (mode == 'datetime')
                                  options.format = 'MM-DD-YYYY HH:mm:ss';
                              else {
                                  options.format = 'HH:mm:ss';
                                  options.datepicker = false;
                              }

                          }
                      }

with
                 If (/datetime|time/.test(mode)) {
                          options.timepicker = true;
                          if (!attr.qoFormat) {
                              if (mode == 'datetime')
                                  options.format = 'MM-DD-YYYY HH:mm:ss';
                              else {
                                  options.format = 'HH:mm:ss';
                                  options.datepicker = false;
                              }
                          }
                          else if (mode == 'time') {
                              options.datepicker = false;
                          }
                      }

solved

authors: hougoul mehmetotkun

repo: quantumui/quantumui


text:
Image is wrong in values.yaml

The image in values.yaml is using the default values described in https://quarkus.io/guides/container-image#container-image-options

If we compare with the generated kubernetes.yaml, it uses the correct values provided via
quarkus.container-image.registry
quarkus.container-image.group

Expected: image: docker.my-internal-registry.com/my-group/project-name:1.0.0-SNAPSHOT
Current: image: antonio.silva/project-name:1.0.0-SNAPSHOT
The container-image.name is working as expected but the registry and group are not being considered.

Thanks for reporting! I will investigate it further and provide a fix in Quarkus upstream.

I think this issue is duplicated with https://github.com/quarkiverse/quarkus-helm/issues/41. If not, please feel free to reopen it.

repo: quarkiverse/quarkus-helm


text:
Does it support encryption?

Does it support encryption?

Answered here: https://github.com/quarkiverse/quarkus-jdbc-sqlite/issues/25

https://github.com/quarkiverse/quarkus-jdbc-sqlite/issues/25

authors: TheBlindM alexeysharandin

repo: quarkiverse/quarkus-jdbc-sqlite


text:
Added logos

Yeah I don't think it will work until the images are actually there and merged with this PR.

@shivam-sharma7 if you want to submit this same PR I can approve it.  I just can't approve and merge my own PR's.

@shivam-sharma7 if you want to submit this same PR I can approve it. I just can't approve and merge my own PR's.

no problem will wait till @ia3andy does not approves this PR.

repo: quarkiverse/quarkus-quinoa


text:
CI: Add GHA to publish rendered example on gh-pages?

I noticed the rendered examples are published on gh-pages but there isn't any CI allowing the files to be properly updated on code changes in main.
Should we (I) add something like:
on:
  push:
    branches: main

name: Quarto render examples

jobs:
  render-example:
    runs-on: ubuntu-latest
    permissions:
      contents: write
    steps:
      - uses: actions/checkout@v3
      - uses: quarto-dev/quarto-actions/setup@v2
      - name: Render and Publish
        uses: quarto-dev/quarto-actions/publish@v2
        with:
          GITHUB_USERNAME: ${{ github.actor }}
          GITHUB_EMAIL: ${{ github.actor }}@users.noreply.github.com
          target: gh-pages
          path: example.qmd
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

It appears, there was a CI workflow:

added: 3dccba01e0b604aed0295962b5ddd57f4452ea97
removed: bbc087f4a642b55ec2517aa8d30d4f150e58da1b

We have it this way by design. This repository is agressively simple because it's meant to also be a tutorial on how quarto extensions work, and we don't want the workflow yaml cruft to get in the way.

So if/when #10 is merge, how should the examples in gh-pages will be updated?

We'll do it ourselves :)

authors: cscheid mcanouil

repo: quarto-ext/fontawesome


text:
Citations in image captions not rendered

Thx for contributing this extension — very helpful for my teaching material!
I often use citations within the image captions. Within the lightbox, these are shown as markdown (@Author2022ShortTitle). Is it possible to render these? Maybe related to that issue: The lightbox filter appends "fig:" to the img title.
Thank you for looking at it and possibly fixing it.

Thanks for reporting this. I've fixed the issue with the img title. Fixing the citation in the description will be more complex since it is being embedded in an attribute of the link around the image. I'll leave this open and try to figure something out.
You can use quarto update extension quarto-ext/lightbox to get the latest version in any folders/projects where you're using this extension.

Wow, you are blazing fast. Thanks a lot, Charles!

authors: awe-hnu dragonstyle

repo: quarto-ext/lightbox


text:
Quasar Client Builder Error

Hello, I have setup the builder normally but when i build it to the default directory it gives me this error:

OS: Windows 10
Quasar Version: 1.4.0
Build configuration: Release

Please add an exception to the quasar directory in your AV. The file is being deleted by your AV.

authors: BackdoorsForPc MaxXor

repo: quasar/Quasar


text:
Implement support for transpileOnly in CLI and Webpack

This adds support for transpileOnly in websmiths CLI and Webpack

 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.You have signed the CLA already but the status is still pending? Let us recheck it.

To simplify the review process, the PR will be split into multiple pull requests

authors: CLAassistant dreamora

repo: quatico-solutions/websmith


text:
Make the RPMs more rpmlint compliant.

We have started running our RPM packages through rpmlint, and it flagged up a few issues with the RPMs produced by maven for NCM components.
I guess some discussion will be needed about which ones we actually care about, and how/if to fix them, but I've made a few changes to the build-profile pom.xml which addresses some of them.
Do we even need the libuser dependency? Maybe some RPM needs it, but I doubt it should be a dependency of every RPM built. In any case, RPM packaging guidelines say autodetecting libraries is preferred to explicitly putting them in.
Before:
ncm-ccm.noarch: E: explicit-lib-dependency libuser
ncm-ccm.noarch: W: summary-not-capitalized C ncm-ccm
ncm-ccm.noarch: W: name-repeated-in-summary C ncm-ccm
ncm-ccm.noarch: W: non-standard-group Quattor
ncm-ccm.noarch: E: no-changelogname-tag
ncm-ccm.noarch: W: invalid-license c
ncm-ccm.noarch: W: invalid-license Quattor
ncm-ccm.noarch: W: invalid-url URL: http://quattor.org/cfg-modules/ccm/ HTTP Error 404: Not Found
ncm-ccm.noarch: E: useless-provides ncm-ccm
ncm-ccm.noarch: E: script-without-shebang /usr/lib/perl/NCM/Component/ccm.pm
1 packages and 0 specfiles checked; 4 errors, 6 warnings.
After:
ncm-ccm.noarch: W: non-standard-group Quattor
ncm-ccm.noarch: E: no-changelogname-tag
ncm-ccm.noarch: E: script-without-shebang /usr/lib/perl/NCM/Component/ccm.pm
1 packages and 0 specfiles checked; 2 errors, 1 warnings.
The script-without-shebang one seems bogus, obviously we don't put that in .pm files, so we'll probably just ignore it.

The script-without-shebang warning does not necessarily mean the shebang is missing - it can also mean a file was marked as executable by mistake. That is true for ccm.pm in the source code, so it is likely valid in the RPM too (I did not check).

I'm in favour of getting rid of all explicit dependencies, incl ncm-ncd (which should be picked up by a perl(NCM::Component) requirement.
however, the el5 rpms need to be checked carefully (although the el5 ones are built on el6, so it might be ok).

@ajf8 also can you share the rpmlint script (or commandline to use).
we currently test the rpms using https://github.com/quattor/release/blob/master/src/scripts/build_all_repos.sh
if the rpmlint step can be integrated, we will be certain that rpms comply.

You can find rpmlint here: https://github.com/rpm-software-management/rpmlint
It seems to be packaged by Red Hat. It is run against all packages distributed by Red Hat and Fedora. While these checks are great for enforcing consistency across a big distribution, maybe some are not so useful for us and we can disable them.
For example, the RPM group. I don't really see any value in changing this from Quattor.
On the shebang one, should I create a PR which does a sweep of executable permissions on *.pm in configuration-modules-core?
Finally, the changelog error. Not sure this is worth the effort. The changelogs we install into /usr/share/doc seem quite out of date, so I guess we would need to come up with some way of autogenerating useful changelogs first and then feeding them into the maven RPM plugin. Or maybe we just remove the ChangeLog files completely, if they aren't going to be maintained.

@ajf8 any details how you run this? i opened https://github.com/quattor/release/issues/243 to track this.
wrt exectable bits, sure why not. should be easy to merge in.
wrt the changelog, @jrha creates the releasenotes, maybe we can integrate that as ChangeLog somehow?

re: ChangeLog. ISTR this file is required to exist by pom.xml but given they are never updated, we should just delete them all, or auto-generate them from the commit log.

@ajf8 wrt the executable bits, it is probably because of the settings in the pom.xml file. All perl modules are added with 755 permission bits, and th eonly reason is that any subdirectories would have the correct bits set.

You're right, it was because of the pom.xml settings, should be fixed now.
I found we can just set default{Filemode,Dirmode,Groupname,Username} in the top level rpm-build-plugin config and then delete all those settings from the mappings.
http://www.mojohaus.org/rpm-maven-plugin/rpm-mojo.html#defaultFilemode

nice!

Regarding running rpmlint, you just run rpmlint  and check the status code

I'm not sure we can do anything useful with the Changelog other than replacing it with a link to the release notes...

"Discuss at workshop" label added to resolve the future of ChangeLog.

Discussed at 21st workshop: no-one wants the Changelog so we will try to ship nothing or an empty one.

LGTM. @ajf8 can you nuke the Changelogs as well?

@ajf8 ping

@jrha @ned21 i opened https://github.com/ajf8/maven-tools/pull/1 to fix the changelog error. it includes a changelog template.
the only remaining warning is the following (but gives exitcode 0)
[stdweird@gastn039a1 CAF (fix_rpmlint *+%)]$ rpmlint /home/stdweird/.git/quattor/CAF/target/rpm/perl-CAF/RPMS/noarch/perl-CAF-*rpm
perl-CAF.noarch: W: non-standard-group Quattor
1 packages and 0 specfiles checked; 0 errors, 1 warnings.
[stdweird@gastn039a1 CAF (fix_rpmlint *+%)]$ echo $?
0

(if @ajf8 is too busy, i can open a PR to master and that will auto-merge this one upon merge)

@stdweird either is fine by me!

Merged in #81.

Thanks, sorry for radio silence.

repo: quattor/maven-tools