Error: insertEpochStake.queryPoolKeyWithCache PoolKeyHash

OS
Debian GNU/Linux 11 (bullseye)
Versions
The db-sync version (cardano-db-sync --version): cardano-db-sync <IP_ADDRESS> - linux-x86_64 - ghc-8.10
git revision ec5b22b4364cca9a866b20de3564c27f2c751969
PostgreSQL version: psql (PostgreSQL) 14.8 (Debian 14.8-1.pgdg110+1)
Cardano-Node: 1.35.5
Build/Install Method
With Nix using the documentation method
Run method
Run with the executable:  /usr/local/bin/cardano-db-sync
    --config /var/cardano/db-sync/config/mainnet-config.yaml
    --socket-path /var/cardano/state-node-mainnet/node.socket
    --state-dir /var/cardano/db-sync/ledger-state/mainnet
    --schema-dir /var/cardano/db-sync/schema/
Problem Report
When running cardano-db-sync, it is stucked at the epoch 305 with the error:  insertEpochStake.queryPoolKeyWithCache PoolKeyHash
Full log:
[2023-07-31 15:53:42.27 UTC] Version number: <IP_ADDRESS>
[2023-07-31 15:53:42.27 UTC] Git hash: ec5b22b4364cca9a866b20de3564c27f2c751969
[2023-07-31 15:53:42.27 UTC] Option disable-ledger: False
[2023-07-31 15:53:42.27 UTC] Option disable-cache: True
[2023-07-31 15:53:42.27 UTC] Option disable-epoch: False
[2023-07-31 15:53:42.27 UTC] Option skip-fix: False
[2023-07-31 15:53:42.27 UTC] Option fix-only: False
[2023-07-31 15:53:42.27 UTC] Option force-indexes: False
[2023-07-31 15:53:42.27 UTC] Option disable-multiassets: False
[2023-07-31 15:53:42.27 UTC] Option disable-metadata: False
[2023-07-31 15:53:42.27 UTC] Option disable-plutus-extra: False
[2023-07-31 15:53:42.27 UTC] Option disable-offline-data: False
[2023-07-31 15:53:42.27 UTC] Option turbo: False
[2023-07-31 15:53:42.27 UTC] Option full: False
[2023-07-31 15:53:42.27 UTC] Enviroment variable DbSyncAbortOnPanic: False
[2023-07-31 15:53:42.28 UTC] Schema migration files validated
[2023-07-31 15:53:42.29 UTC] Running database migrations in mode Initial
[2023-07-31 15:53:42.29 UTC] Found maintenance_work_mem=512MB, max_parallel_maintenance_workers=2
[2023-07-31 15:53:44.39 UTC] All migrations were executed
[2023-07-31 15:53:44.39 UTC] New user indexes were not created. They may be created later if necessary.
[2023-07-31 15:53:44.40 UTC] Using byron genesis file from: "/nix/store/iwq90igv72ihdr9z9nl3m0dsiv0bfh7y-byron-genesis.json"
[2023-07-31 15:53:44.40 UTC] Using shelley genesis file from: "/nix/store/sr1r1fsqij2bcr3jc1xz7hdgih2w6gp7-shelley-genesis.json"
[2023-07-31 15:53:44.40 UTC] Using alonzo genesis file from: "/nix/store/8qnphq6yvcjspiy3z0aijfd6cv64l3hl-alonzo-genesis.json"
[2023-07-31 15:53:45.47 UTC] NetworkMagic: 764824073
[2023-07-31 15:53:46.29 UTC] Initial genesis distribution present and correct
[2023-07-31 15:53:46.29 UTC] Total genesis supply of Ada:<PHONE_NUMBER>5.000000
[2023-07-31 15:53:46.29 UTC] Inserting Shelley Genesis distribution
[2023-07-31 15:53:46.29 UTC] epochStartup: Checking
[2023-07-31 15:53:46.29 UTC] localInitiatorNetworkApplication: connecting to node via "/var/cardano/state-node-mainnet/node.socket"
[2023-07-31 15:53:46.29 UTC] Identity Starting Subscription Worker, valency 1
[2023-07-31 15:53:46.29 UTC] Identity Connection Attempt Start, destination LocalAddress "/var/cardano/state-node-mainnet/node.socket"
[2023-07-31 15:53:46.29 UTC] Identity Connection Attempt End, destination LocalAddress "/var/cardano/state-node-mainnet/node.socket" outcome: ConnectSuccessLast
[2023-07-31 15:53:46.29 UTC] WithMuxBearer (ConnectionId {localAddress = LocalAddress "", remoteAddress = LocalAddress "state-node-mainnet/node.socket"}) Send (ClientAgency TokPropose,MsgProposeVersions (fromList [(NodeToClientV_9,TInt 764824073),(NodeToClientV_10,TInt 764824073),(NodeToClientV_11,TInt 764824073),(NodeToClientV_12,TInt 764824073),(NodeToClientV_13,TInt 764824073),(NodeToClientV_14,TInt 764824073),(NodeToClientV_15,TInt 764824073)]))
[2023-07-31 15:53:46.29 UTC] WithMuxBearer (ConnectionId {localAddress = LocalAddress "", remoteAddress = LocalAddress "state-node-mainnet/node.socket"}) Recv (ServerAgency TokConfirm,MsgAcceptVersion NodeToClientV_13 (TInt 764824073))
[2023-07-31 15:53:46.29 UTC] Bearer on ConnectionId {localAddress = LocalAddress "", remoteAddress = LocalAddress "state-node-mainnet/node.socket"} event: Handshake Client end, duration 0.000606635s
[2023-07-31 15:53:46.29 UTC] Bearer on ConnectionId {localAddress = LocalAddress "", remoteAddress = LocalAddress "state-node-mainnet/node.socket"} event: State: Mature
[2023-07-31 15:53:46.29 UTC] Bearer on ConnectionId {localAddress = LocalAddress "", remoteAddress = LocalAddress "state-node-mainnet/node.socket"} event: Eagerly started (MiniProtocolNum 5) in InitiatorDir
[2023-07-31 15:53:46.30 UTC] Bearer on ConnectionId {localAddress = LocalAddress "", remoteAddress = LocalAddress "state-node-mainnet/node.socket"} event: Eagerly started (MiniProtocolNum 6) in InitiatorDir
[2023-07-31 15:53:46.30 UTC] Bearer on ConnectionId {localAddress = LocalAddress "", remoteAddress = LocalAddress "state-node-mainnet/node.socket"} event: Eagerly started (MiniProtocolNum 7) in InitiatorDir
[2023-07-31 15:53:46.30 UTC] Bearer on ConnectionId {localAddress = LocalAddress "", remoteAddress = LocalAddress "state-node-mainnet/node.socket"} event: Eagerly started (MiniProtocolNum 9) in InitiatorDir
[2023-07-31 15:53:46.30 UTC] Setting ConsistencyLevel to Unchecked
[2023-07-31 15:53:46.30 UTC] Starting the fixing Plutus Script procedure. This may take a couple minutes on mainnet if there are wrong values. You can skip it using --skip-plutus-script-fix. It will fix Script with wrong bytes. See more in Issue #1214 and #1348. This procedure makes resyncing unnecessary.
[2023-07-31 15:53:46.30 UTC] Trying to find Script with wrong bytes
[2023-07-31 15:53:46.32 UTC] Identity Required subscriptions started
[2023-07-31 15:53:46.34 UTC] There are 767 Script. Need to scan them all.
[2023-07-31 15:53:46.46 UTC] Found 0 Script with mismatch between bytes and hash.
[2023-07-31 15:53:46.46 UTC] Bearer on ConnectionId {localAddress = LocalAddress "", remoteAddress = LocalAddress "state-node-mainnet/node.socket"} event: Miniprotocol (MiniProtocolNum 5) InitiatorDir terminated cleanly
[2023-07-31 15:53:47.46 UTC] Identity Restarting Subscription after 1.164806301s desired valency 1 current valency 0
[2023-07-31 15:53:56.30 UTC] Identity Starting Subscription Worker, valency 1
[2023-07-31 15:53:56.30 UTC] Identity Connection Attempt Start, destination LocalAddress "/var/cardano/state-node-mainnet/node.socket"
[2023-07-31 15:53:56.30 UTC] Identity Connection Attempt End, destination LocalAddress "/var/cardano/state-node-mainnet/node.socket" outcome: ConnectSuccessLast
[2023-07-31 15:53:56.30 UTC] WithMuxBearer (ConnectionId {localAddress = LocalAddress "", remoteAddress = LocalAddress "state-node-mainnet/node.socket"}) Send (ClientAgency TokPropose,MsgProposeVersions (fromList [(NodeToClientV_9,TInt 764824073),(NodeToClientV_10,TInt 764824073),(NodeToClientV_11,TInt 764824073),(NodeToClientV_12,TInt 764824073),(NodeToClientV_13,TInt 764824073),(NodeToClientV_14,TInt 764824073),(NodeToClientV_15,TInt 764824073)]))
[2023-07-31 15:53:56.30 UTC] WithMuxBearer (ConnectionId {localAddress = LocalAddress "", remoteAddress = LocalAddress "state-node-mainnet/node.socket"}) Recv (ServerAgency TokConfirm,MsgAcceptVersion NodeToClientV_13 (TInt 764824073))
[2023-07-31 15:53:56.30 UTC] Bearer on ConnectionId {localAddress = LocalAddress "", remoteAddress = LocalAddress "state-node-mainnet/node.socket"} event: Handshake Client end, duration 0.000410865s
[2023-07-31 15:53:56.30 UTC] Bearer on ConnectionId {localAddress = LocalAddress "", remoteAddress = LocalAddress "state-node-mainnet/node.socket"} event: State: Mature
[2023-07-31 15:53:56.30 UTC] Bearer on ConnectionId {localAddress = LocalAddress "", remoteAddress = LocalAddress "state-node-mainnet/node.socket"} event: Eagerly started (MiniProtocolNum 5) in InitiatorDir
[2023-07-31 15:53:56.30 UTC] Bearer on ConnectionId {localAddress = LocalAddress "", remoteAddress = LocalAddress "state-node-mainnet/node.socket"} event: Eagerly started (MiniProtocolNum 6) in InitiatorDir
[2023-07-31 15:53:56.30 UTC] Bearer on ConnectionId {localAddress = LocalAddress "", remoteAddress = LocalAddress "state-node-mainnet/node.socket"} event: Eagerly started (MiniProtocolNum 7) in InitiatorDir
[2023-07-31 15:53:56.30 UTC] Bearer on ConnectionId {localAddress = LocalAddress "", remoteAddress = LocalAddress "state-node-mainnet/node.socket"} event: Eagerly started (MiniProtocolNum 9) in InitiatorDir
[2023-07-31 15:53:56.30 UTC] Setting ConsistencyLevel to Unchecked
[2023-07-31 15:53:56.30 UTC] Starting chainSyncClient
[2023-07-31 15:53:56.31 UTC] Suggesting intersection points from memory: [] and from disk: [At (Block {blockPointSlot = SlotNo 46396728, blockPointHash = 0b4e19943029e10894330f9988d25d1104b4503cd41a9f623992cd410fbeb4bc}),At (Block {blockPointSlot = SlotNo 45964772, blockPointHash = 389d0bd273b9bf5d95e3c95dbb2f629a6aff58e662955bc8bc0a520c806cc2a6}),At (Block {blockPointSlot = SlotNo 45532763, blockPointHash = b57ffa0c9d62fcc94e50305c62a911717bdce48f1ecc5aa84a828c27fff393a8}),At (Block {blockPointSlot = SlotNo 45100764, blockPointHash = 84931294cb98249a5a9fd2b65efa28cd22db2977891a20fe9f3718559dbb13df}),At (Block {blockPointSlot = SlotNo 44668784, blockPointHash = 9992d96ae5507f4ed2386ce2e89d32e7fc8e2c1b098df73cf660a3cd743029fe}),At (Block {blockPointSlot = SlotNo 44236794, blockPointHash = 3c851fb0ed7f80acf3690463fb19573709b012fe611203fdd7d0202b69979648})]
[2023-07-31 15:53:56.32 UTC] Cardano.Db tip is at slot 46397088, block 6552489
[2023-07-31 15:53:56.32 UTC] Running Offline fetch thread
[2023-07-31 15:53:56.32 UTC] Running DB thread
[2023-07-31 15:53:56.33 UTC] Identity Required subscriptions started
[2023-07-31 15:53:56.35 UTC] Delaying delete of 2 blocks after Just 6552487 while rolling back to (slot 46396728, hash 0b4e19943029e10894330f9988d25d1104b4503cd41a9f623992cd410fbeb4bc). Applying blocks until a new block is found. The node is currently at Tip (SlotNo 99252536) 3792f0a7be1697b647b0b8f6f7e2c7ec3114e44119ebfd9bb08d27abc9d98283 (BlockNo 9100439)
[2023-07-31 15:55:20.97 UTC] Found snapshot file for slot 46396728, hash 0b4e19943029e10894330f9988d25d1104b4503cd41a9f623992cd410fbeb4bc. It took 1.199067776s to read from disk and 83.412136001s to parse.
[2023-07-31 15:55:22.63 UTC] Found snapshot file for slot 46396728, hash 0b4e19943029e10894330f9988d25d1104b4503cd41a9f623992cd410fbeb4bc
[2023-07-31 15:55:22.63 UTC] Setting ConsistencyLevel to DBAheadOfLedger
[2023-07-31 15:55:33.41 UTC] File /var/cardano/db-sync/ledger-state/mainnet/46396728-0b4e199430-304.lstate exists
[2023-07-31 15:55:34.59 UTC] Reached EpochNo 305
[2023-07-31 15:55:34.63 UTC] Received block which is not in the db with HeaderFields {headerFieldSlot = SlotNo 46397136, headerFieldBlockNo = BlockNo 6552490, headerFieldHash = 82d4288eff3aff9071726ddaa5db4d64c6da14a87eeeae0fbdc985b4f9e88b68}. Time to restore consistency.
[2023-07-31 15:55:34.63 UTC] Starting at epoch 305
[2023-07-31 15:55:36.16 UTC] Insert Alonzo Block: epoch 305, slot 46397136, block 6552490, hash 82d4288eff3aff9071726ddaa5db4d64c6da14a87eeeae0fbdc985b4f9e88b68
[2023-07-31 15:55:37.76 UTC] Error: insertEpochStake.queryPoolKeyWithCache PoolKeyHash
[2023-07-31 15:55:37.76 UTC] Shutting down DB thread

It looks, to me, like you're missing entries in your pool_hash table

I believe this bug has been fixed by https://github.com/input-output-hk/cardano-db-sync/pull/1447 (not release) and is caused if there is a node restart. In this case db-sync doesn't handle properly an exception and this can result in inconsistencies between the database and the database cache.


Getting a conflict on Hashie::Mash

I am using Jiralicious for the first time, using basic auth and that.
 This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
Any clues what might be causing that?

Caused by https://github.com/intridea/hashie/pull/381
TL;DR change the log level in your code for now
Hashie.logger.level = Logger.const_get 'ERROR'


UTF-8 BOM causes encode errors with pygmentize command

(Original issue 851 created by EricFromCanada on 2013-02-21T00:21:43.655888+00:00)
The pygmentize command should remove the UTF-8 BOM when sending to terminal or a file. For example, pygmentize tests/examplefiles/BOM.js prints the file's contents without issue, but pygmentize tests/examplefiles/BOM.js | less returns
#!python
UnicodeEncodeError: 'ascii' codec can't encode character u'\ufeff' in position 13: ordinal not in range(128)

Also, cat tests/examplefiles/BOM.js | pygmentize -l js returns
#!python
UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 0: ordinal not in range(128)

Specifying UTF-8 as the encoding still causes the BOM to appear as a character:
pygmentize -O encoding='utf-8' tests/examplefiles/BOM.js | less returns
#!js
<U+FEFF>/* There is a BOM at the beginning of this file. */

Occurs with Python 2.7.3.

(Original issue 851 last updated on 2014-01-09T19:29:16.832832+00:00)
(Issue automaticaly closed due to status in Bitbucket: resolved)

(Original comment by amarquesbra on 2013-12-27T12:25:26.759760+00:00)
To contribute:
#!python

# less foo.xml

*** Error while highlighting:
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe2' in position 44: ordinal not in range(128)
   (file "/usr/lib64/python2.7/codecs.py", line 351, in write)

By curiosity only, using OpenSUSE.
Renderize a XML file with n lines but show only these:
#!xml

<?xml version="1.0" encoding="UTF-8"?>
<ListingDataFeed xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <Listings>
    <Listing>
      <ListingID>278132897162110</ListingID>
      <Title>
foo.xml (END)

And the last line of this excerpt was the bug:
#!xml

# more foo.xml
<?xml version="1.0" encoding="UTF-8"?>
<ListingDataFeed xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <Listings>
    <Listing>
      <ListingID>278132897162110</ListingID>
      <Title>Comercial loja - Bairro Setor Marista em Goiânia</Title>

(Original comment by birkenfeld on 2014-01-09T19:29:16.828456+00:00)
Closes #851: remove BOM also with explicit encoding
→ <<cset 64a7c878a9bb>>


Support for indents?

Hello!
I'm wondering if there's any plans to add an indents.scm file?
nvm-treesitter/.../swift/indents.scm is the closest reference I can find

Good find -- I hadn't noticed that those folks had added indents. It certainly seems reasonable to upstream those (I believe they can be more officially found at https://github.com/nvim-treesitter/nvim-treesitter/blob/2ee71c1a2fa74c10692be10ae420ff0c3a02eb3c/queries/swift/indents.scm).
If you felt like putting up a pull request for that I would absolutely merge it.


[Feat]: Auto Commenting feature for PR Merged

This feature aims to solve the problem of inconsistent and delayed communication following the merging of PRs. By automating the commenting process, it ensures that contributors receive timely feedback and acknowledgments. It also reduces the administrative burden on maintainers, allowing them to focus more on code reviews and other critical tasks.

@BamaCharanChhandogi please assign me this issue under gssoc


A hotfix for the issue with calling onChange for multiline input on blur

Summary
Fix #34891
Added additional checks In Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.m file in order to avoid setting _textDidChangeIsComing flag as YES when input text value is empty string. It makes sense since this flag is used to maintain calling onChange during autocorrection, but no autocorrection is possible for the empty string, is n't it?
Changelog
[IOS] [Fixed] - fixed setting _textDidChangeIsComing flag in Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.m file when input is empty and backspace was pressed
Test Plan
I just checked steps to reproduce from #34891 issue.
This scenario is implemented in expo snack by the way

@TheSavior, @lunaleaps, any comments are very welcome !


documentation

there's no documentation right now, which is a bad situation to be in.

completed with 30dbf32


Review & update Tutorial: Create Your First Substrate Chain to v3 compatible

https://substrate.dev/docs/en/tutorials/create-your-first-substrate-chain/

@jimmychu0807 what is the status of this? It is important to prioritize it because all the other tutorials depend on it.

Happy to help if needed - tag me in anytime 😁

@NukeManDan please feel free to take this. There are events coming on different fronts and we need to push this forward.


Use dataclasses instead of extra_classes

This changes our version switcher to use dataclass entries for all dropdown links and the button itself, rather than having users manually add classes to the JSON entries.
closes #596

OK - addressed each of @damianavila's suggestions, and also rebased on master so that we can compare the behavior.

Master is currently broken given https://github.com/pydata/pydata-sphinx-theme/pull/574#issuecomment-1051141840
I have a fix in place in an upcoming PR.
Let's merge that one first and rebase this one so we can effectively compare.

I've merged https://github.com/pydata/pydata-sphinx-theme/pull/599 and updated this branch as well, so that we can compare the changes in code + functionality more directly. Would love feedback on whether this PR is the right direction to go, and anything we'd need to change here.

Update the example @damianavila

And I merged it 😉


Ignore lock file in KiCad

Reasons for making this change:

Ignore all lock files. These are only used when one of the editors are opened and are deleted when closed.
Links to documentation supporting these rule changes:
Doxygen link - https://docs.kicad.org/doxygen/lockfile_8h.html

I believe this PR is already covered by #4462 , which has several other changes for modern KiCad versions as well.


Specify zip file location for ExtractFiles@1

Hi,
I want to extract a zip file which is under a folder structure like so under Build.SourceDirectory
folder1\folder2\folder3\abcd.zip
I am using this format which works fine. Is there a way to be more specific about abcd.zip in the archiveFilePatterns instead of a wildcard *.zip
    - task: ExtractFiles@1
      inputs:
        archiveFilePatterns: '*.zip'
        destinationFolder: '$(PublishLocation)'
        cleanDestinationFolder: false
      displayName: 'extracting files from published app "PublishApp"'
      condition: succeeded()

Thanks

Yes, you can specify the full path of the zip file:
- task: ExtractFiles@1
  inputs:
    archiveFilePatterns: 'folder1/folder2/folder3/abcd.zip'
    destinationFolder: '$(PublishLocation)'
    cleanDestinationFolder: false


Linguee French-to-English translation not working

Linguee French-to-English translation not working

deep_translator version:v1.9.1(https://github.com/nidhaloff/deep-translator/commit/a694c92b6741fc9c3200835b64be2fd910cd761b)
Python version: 3.10.6
Operating System: GNU/Linux x86_64(Ubuntu 22.04)

Description
Hi, thank you for publishing such a useful plugin!
I noticed that Linguee’s French-to-English translation didn’t work. And it seems that English-to-French, French-to-German, German-to-French also doesn’t work.
I suspect it’s because the URL format of Linguee(such as path and query) has been changed as following.
the URL deep-translator using
https://www.linguee.com/fr-en/translation/courir.html

the correct(and valid) URL
https://www.linguee.com/english-french/search?source=french&query=courir

If you guys are OK, I would be interested in contributing this.
What I Did
(expected returning 'run')
>>> from deep_translator import LingueeTranslator
>>> res = LingueeTranslator(source="fr", target="en").translate("courir", return_all=False)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/root/share-ws/common/deep-translator/deep_translator/linguee.py", line 77, in translate
    raise ElementNotFoundInGetRequest(elements)
deep_translator.exceptions.ElementNotFoundInGetRequest: [] --> Required element was not found in the API response

Tried to fix this, send PR. See https://github.com/nidhaloff/deep-translator/pull/179.


String::operator= should return a reference to "this"

Avoids copying and I am pretty sure a user would expect a and b of const String& a = b to have the same address.

Look also at:
https://github.com/godotengine/godot/blob/3b697ce8d56ea7e73c202058f6c4d0e202142eae/scene/3d/soft_body.h#L78
https://github.com/godotengine/godot/blob/e33764744cb2bf72ee77c823c3beeb6dc870d2dc/core/math/audio_frame.h#L126
https://github.com/godotengine/godot/blob/e581eb135932c31556fe796079d297246f9adaf1/servers/physics_2d_server.h#L657
https://github.com/godotengine/godot/blob/e581eb135932c31556fe796079d297246f9adaf1/servers/physics_server.h#L798
https://github.com/godotengine/godot/blob/4cb0887660861402fe6857662e622488adb86514/editor/editor_audio_buses.h#L236
https://github.com/godotengine/godot/blob/550f436f8fbea86984a845c821270fba78189143/core/ustring.h#L100
https://github.com/godotengine/godot/blob/3b697ce8d56ea7e73c202058f6c4d0e202142eae/core/math/quat.h#L134

Look also at:
https://github.com/godotengine/godot/blob/3b697ce8d56ea7e73c202058f6c4d0e202142eae/scene/3d/soft_body.h#L78
https://github.com/godotengine/godot/blob/e33764744cb2bf72ee77c823c3beeb6dc870d2dc/core/math/audio_frame.h#L126
https://github.com/godotengine/godot/blob/e581eb135932c31556fe796079d297246f9adaf1/servers/physics_2d_server.h#L657
https://github.com/godotengine/godot/blob/e581eb135932c31556fe796079d297246f9adaf1/servers/physics_server.h#L798
https://github.com/godotengine/godot/blob/4cb0887660861402fe6857662e622488adb86514/editor/editor_audio_buses.h#L236
https://github.com/godotengine/godot/blob/550f436f8fbea86984a845c821270fba78189143/core/ustring.h#L100
https://github.com/godotengine/godot/blob/3b697ce8d56ea7e73c202058f6c4d0e202142eae/core/math/quat.h#L134

Thinking about this again, and given how prevalent this is, I am beginning to think this is intended? because if all of these are COWs, then return a & will hardly make any difference...but my point stands that address of references should be the same to its original.

#37938 is a more comprehensive PR which includes this PR's changes, so I'm closing this one.


Add additional parameters to Schema for validation and annotation

Change Summary
Add additional parameters to Schema for validation and annotation, in a single declaration.
Integrates and uses constr, conint, confloat and condecimal. Doesn't change any of the current functionality.
As a result, a current model created as:
from pydantic import BaseModel, constr, Schema

class Foo(BaseModel):
    a: constr(min_length=2, max_length=10) = Schema('bar')

can also be created as:
from pydantic import BaseModel, Schema

class Foo(BaseModel):
    a: str = Schema('bar', min_length=2, max_length=10)

by being able to declare a as a pure str makes it simpler for some editors to get the hint that the property a is a str and provide support for it (autocomplete, type error checking, etc).
Note
The generated JSON Schema will output validation keywords of minLength and maxLength in this case.
For numbers validations like gt it outputs exclusiveMinimum.
Other option for the parameters would be to use the literal name used in JSON Schema, as exclusiveMinimum, but it wouldn't be very "Pythonic".
And other option would be using JSON Schema names and change them to snake-case, as exclusive_minimum.
But I imagine the preferred option is to keep the same parameter names used in the rest of the code, as in conint, etc. Otherwise, let me know and I'll change it.
Specific parameters added to Schema

description
gt
ge
lt
le
min_length
max_length
regex

Related issue number
I didn't create a specific issue for this. But the changes where discussed here: https://github.com/samuelcolvin/pydantic/issues/291#issuecomment-439056451

Performance Changes
pydantic cares about performance, if there's any risk performance changed on this PR,
please run make benchmark-pydantic before and after the change:

before:

                                pydantic time=0.775s, success=49.95%
                                pydantic time=0.794s, success=49.95%
                                pydantic time=0.792s, success=49.95%
                                pydantic time=0.773s, success=49.95%
                                pydantic time=0.790s, success=49.95%
                                pydantic best=0.773s, avg=0.785s, stdev=0.010s

                                pydantic best=25.770μs/iter avg=26.155μs/iter stdev=0.332μs/iter

after:

                                pydantic time=0.794s, success=49.95%
                                pydantic time=0.801s, success=49.95%
                                pydantic time=0.809s, success=49.95%
                                pydantic time=0.765s, success=49.95%
                                pydantic time=0.797s, success=49.95%
                                pydantic best=0.765s, avg=0.793s, stdev=0.017s

                                pydantic best=25.507μs/iter avg=26.441μs/iter stdev=0.554μs/iter

Checklist

[x] Unit tests for the changes exist
[x] Tests pass on CI and coverage remains at 100%
[x] Documentation reflects the changes
[x] No performance deterioration (if applicable)
[x] HISTORY.rst has been updated

if this is the first change since a release, please add a new section
include the issue number or this pull request number #<number>
if you're not a regular contributer please include your github username @whatever

Thanks for the review! I'll come, check and fix in a couple days.

I've changed the base for this PR so we can merge it without it going into master.
Fix the stuff that makes sense above, then I'll work on anything I want to change. Easier than going back and fourth for ever.

I've changed the base for this PR so we can merge it without it going into master.
Fix the stuff that makes sense above, then I'll work on anything I want to change. Easier than going back and fourth for ever.

Great.

Do you want me to mark as "resolved" the comments in the review that are already done?
I'm leaving them there so you can come back, check and confirm, before marking them as resolved. But let me know if you want me to mark the ones that are done and don't have a pending discussion.


Uncaught Error: Bootstrap's JavaScript requires jQuery

Bug Report or Feature Request (mark with an x)
- [ x] bug report -> please search issues before submitting
- [ ] feature request

Command (mark with an x)
- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ x ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

the same structure tha i use in angular 4, 5 and 6 it doesn't work for angular 7, i got this error after compile the system cannot access the Jquery broking my code, i got this isssue and i give up to use angular 7 and came back to angular 6.1.0.
this error appears just in my console, i can compile but my code broke if i have to load some bootstrap that needs jquery's structure.

This seems like a bug but we'll need to look at a reproduction to find and fix the problem. Can you setup a minimal repro please?
You can read here why this is needed. A good way to make a minimal repro is to create a new app via ng new repro-app and adding the minimum possible code to show the problem. Then you can push this repository to github and link it here.
This might be related to your directory structure so its really important to get an accurate repro to diagnose this.

Thanks for reporting this issue. However, you didn't provide sufficient information for us to understand and reproduce the problem. Please check out our submission guidelines to understand why we can't act on issues that are lacking important information.
If the problem persists, please file a new issue and ensure you provide all of the required information when filling out the issue template.


Record audio channels seperately

Hi, I have recently bought an Re-speaker Mic array v2.0 and installed 6-channel firmware. I would  like to  know how to record each channel separately. A python implementation would be great!!

Here is it:
import sys
import pyaudio
import wave
import numpy as np

CHUNK = 1024
FORMAT = pyaudio.paInt16
CHANNELS = 6
RATE = 16000
RECORD_SECONDS = 5

pyaudio_instance = pyaudio.PyAudio()

# find the index of respeaker usb device
def find_device_index():
    found = -1

    for i in range(pyaudio_instance.get_device_count()):
        dev = pyaudio_instance.get_device_info_by_index(i)
        name = dev['name'].encode('utf-8')
        print(i, name, dev['maxInputChannels'], dev['maxOutputChannels'])
        if name.lower().find(b'respeaker') >= 0 and dev['maxInputChannels'] > 0:
            found = i
            break

    return found

device_index = find_device_index()
if device_index < 0:
    print('No ReSpeaker USB device found')
    sys.exit(1)

stream = pyaudio_instance.open(format=FORMAT,
                channels=CHANNELS,
                rate=RATE,
                input=True,
                input_device_index=device_index,
                frames_per_buffer=CHUNK)

print("* recording")

frames = []

for i in range(0, int(RATE / CHUNK * RECORD_SECONDS)):
    data = stream.read(CHUNK)

    # convert string to numpy array
    data_array = np.fromstring(data, dtype='int16')

    # deinterleave, select 1 channel
    channel0 = data_array[0::CHANNELS]
    #channel1 = data_array[1::CHANNELS]

    # convert numpy array to string
    data = channel0.tostring()
    frames.append(data)

print("* done recording")

stream.stop_stream()
stream.close()
pyaudio_instance.terminate()

wf = wave.open('out.wav', 'wb')
wf.setnchannels(1)
wf.setsampwidth(pyaudio_instance.get_sample_size(FORMAT))
wf.setframerate(RATE)
wf.writeframes(b''.join(frames))
wf.close()

Thanks a lot. I was looking in the net for days on how to implement it. :-)


daily_router_tvl not retaining historic data

Not sure if a bug but this should be a updating with historic data but looks like it's overwriting each day (only has latest day's TVL values)

@liu-zhipeng I'm still not seeing router tvl history, i only see 2023-02-10 in cartographer right now
Sorry to add scope, but can we also add the chain/domain as a column? This will allow us to slice both passive and active liquidity by chain

@liu-zhipeng I'm still not seeing router tvl history, i only see 2023-02-10 in cartographer right now
Sorry to add scope, but can we also add the chain/domain as a column? This will allow us to slice both passive and active liquidity by chain

I can see. daily_router_tvl table on prod

curl https://postgrest.mainnet.connext.ninja/daily_router_tvl


#184752236 Deploy base application to render or cyclic

What does this PR do?
It changes package.json scripts to comply with cyclic standards while deploying.

checked

May you attach the deployed link (below this comment) for us to test how it is working?

https://e-comm-team-techtitans-bn.cyclic.app/api/v1

Looks like it is up and running. Great.


React to dotnet store cli arguments update

This will fix the coherence-packagecache builds @ryanbrandenburg

:shipit: if it fixes the build, but why did that option disappear? Did we know it was going to happen and just miss a spot or is this a surprise? It's fine to fix the build but I want to understand the cause, both technical and organizational.

Yea it was known, they removed it a while ago since it didn't make sense for the tool to take in a configuration. We probably just ingested the build that has the updates.


[hi] Localize content/hi/docs/reference/glossary/csi.md

Signed-off-by: amolmote<EMAIL_ADDRESS>Fixes #35600 Localize content/hi/docs/reference/glossary/csi.md

/assign @divya-mohan0209

yes @bishal7679

The changes LGTM (I am not an official hi localization reviewer/approver). Thanks

/cc @verma-kunal @divya-mohan0209

Slight nit. Otherwise LGTM.
Please squash your commits once the suggested change is PRed in.

@amolmote Ping!

I will do it Nitish. Thanks

Hello @amolmote, we realize you're busy & that's okay. However, this PR has been inactive without any action on the feedback provided since ~5 months. As a result, I shall be closing it off. Whenever you have the bandwidth to work on this, please feel free to reopen & we can resume right where we left off.
/close


refactor: rename handler's function Buffer.pop to Buffer.pop_front

the same should be done for Indexer handler as well


Error resolving module '/var/task/@smithy/querystring-builder'

Hello,
I am developing an application using @aws_sdk/s3-request-presigner with Lambda integrated into API Gateway.
I tried to run the application using @aws_sdk/s3-request-presigner with llrt, but it doesn't work properly.
In the "Using AWS SDK (v3) with LLRT" section of the README, it is written that @smithy is bundled, but an error occurs that @smithy/querystring-builder cannot be resolved.
Do I need to exclude @smithy with the --external option of ESBUILD?
index.js:
const { S3Client, GetObjectCommand } = require('@aws-sdk/client-s3');
const { getSignedUrl } = require('@aws-sdk/s3-request-presigner');

exports.handler = async (event) => {

  const getParams = {
    Bucket: 's3-sample-bucket',
    Key: 'sample.jpg',
  };

  const client  = new S3Client(getParams);
  const command = new GetObjectCommand(getParams);
  const downloadUrl = await getSignedUrl(client , command, { expiresIn: 60 });

  return {
    statusCode: 307,
    headers: {
      location: downloadUrl,
    }
  };
};

ESBUILD:
esbuild index.js --platform=node --target=es2020 --format=esm --bundle --external:@aws-sdk/client-s3 --external:@smithy --external:uuid --outfile=./dist/index.mjs

error message:
2024-03-07T08:40:38.174Z	n/a	ERROR	ReferenceError: Error resolving module '/var/task/@smithy/querystring-builder' from '/var/task/index.mjs'
  at<EMAIL_ADDRESS>(/var/task/index.mjs:39:38)      at __require2 (/var/task/index.mjs:10:17)      at<EMAIL_ADDRESS>(/var/task/index.mjs:736:34)      at __require2 (/var/task/index.mjs:10:17)      at index.js (/var/task/index.mjs:866:28)      at __require2 (/var/task/index.mjs:10:17)      at <anonymous> (/var/task/index.mjs:884:16)

P.S.
My native language is Japanese. This sentence was translated by AI.

Thanks for the report! It looks like we need to include @smithy/querystring-builder to the included bundle. Adding custom clients that are not embedded may produce duplicate code as your bundler does not know what's included in LLRT. I'll update the documentation and provide a fix so the included @smithy modules can work with non embedded clients

Hi @nabetti1720 I have now submitted a PR that should fix your issues. You should now be able to import @aws-sdk/s3-request-presigner since it is now included with the runtime.


Haskell - Fixed version checking

The haskell installation broke the flow.
It was due to versioning wasn't sorted correct thus different machines had different version outcome.
One VM showed version 9 as the newest version, another VM only got version 8 and another VM only showed version 7 even though version 9 and version 8 was retrieved from Chocolatey.
When it tested on version against version 9, it tested against a variable which wasn't defined.
Related issue:
Check list

[ ] Related issue / work item is attached
[ ] Tests are written (if applicable)
[ ] Documentation is updated (if applicable)
[X] Changes are tested and related VM images are successfully generated

/azp run windows2016, windows2019


HMS-2694 feat: Host conf token MVP

Implement minimal host conf token and signing JWK.
A private ECDSA key is genenerated from a hard-coded seed and the JWK is
stored in memory. In the future, the ECDSA key will be generated from a
random source and the JWK stored in the database.
The GET /signing_keys endpoint returns the public JWK.
The POST /host-conf endpoint now returns a signed token.
Signed-off-by: Christian Heimes<EMAIL_ADDRESS>

Diff looks good.  I'm going to do some testing before I merge it.

It works.  There are some things that need addressing but not in this diff.  Better to follow-up with subsequent PRs and keep this already-big PR from growing more.
So, I am merging it.  Thanks!


Add test to determine that the public room list is correctly updated after lazy load finishes syncing state

As the title states.

Merged, thank you.


Prevent AddToRolesAsync from throwing NullRefEx

Custom implemented role storage providers may return null instead of an empty IList for GetRolesAsync when the user has no roles assigned. AddToRolesAsync should handle this case rather than throwing a NullReferenceException when invoking userRoles.Contains(role).

Hi @ninlar, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. Real humans will now evaluate your PR.

TTYL, DNFBOT;

Can you make a few small tweaks and resubmit this?

Don't use ReferenceEquality and just check == null
Can you also look for all other places that are doing this pattern (should be at least the claims/logins apis) and fix them as well?

Sure, I'll make the adjustments tonight.

@ninlar @HaoK any progress on this PR?

@HaoK I looked at the current code around this PR today (needs to be rebased!) and it doesn't seem to apply to Claims (we don't check for existent claims) and Logins (we use a Find find method and already check for null results). I would like to take this PR (or the equivalent fix) ASPA since it has been sitting there for too long.

Ok I will add a check in a separate PR, this code isn't PR in its current state

Sorry guys, I've been swamped over the last couple of months. Glad I could at least point out the issue.

Thanks @ninlar, for bringing the issue to our attention. And please don't worry, I am sure there are many other areas in which you can contribute!


Adding documentation for generic git provider

Issue #, if available:
Description of changes:
Testing (if applicable):
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/lgtm

/approve

/cherrypick release-0.9


on config change, just restart once

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.
@baldersheim please review and merge

What will the effect of this be ?


Is it possible to provide a cross platform seamless social authentication?

I'm creating a mobile game using Godot for IOS and Android, firebase and facebook plugins are available for the android version only. Therefore it's not an option because I want to a cross platform solution.
I can do  authentication either using the websocket server or http module directly to google or facebook or firebase.
But would it be seamless? My only question is that would the user experience / process be the same? I think not, The user would have to sign in from the browser correct? He won't be able to just use the gmail installed on his phone or facebook, is that true?

I'm not sure Godot, as a charity, is able to provide such authentication to proprietary services.
Maybe an OAuth plugin could be created though.

Why? And does that mean that godot isn't production ready? Because most of production projects require that feature

Why?

The Godot organization is a charity, so we cannot use the provided funds to work for private companies (Facebook and Google included), directly or indirectly. This means we do not want to include as built-in features that are specific to any service provider. But I guess it can be provided as a plugin by the community. See https://github.com/FrogSquare/GodotFireBase for example

And does that mean that godot isn't production ready? Because most of production projects require that feature. How are developers able to create production ready multiplayer games in the present day?

Your definition of "production ready" is pretty limited... Godot is already used in production by several companies.

Perhaps I shouldn't say production ready, a more accurate term is mainstream or something. I don't know what's the best word to describe it, but what i really want to say is that most apps require facebook login, if not firebase, at least facebook. By not providing that so many developers might walk away.
You know what that means to me? I'm developing a gambling game for a client, I can't use unity or other engine because of their absurdly high fees on gambling. I'm really 70% done of the game on Godot. I overcome all other issues, websockets and everything.
I'm going to spend 2 days trying to implement auth, if it doesn't work, I'll have to start from scratch on Lbgdx, because if the game is done and there's no facebook login, the client will see it's missing, what am i going to say to him? Really what can I tell him? Sorry godot doesn't offer that? He's gonna blame me. All my work is gone in vain, all my learning hours, every single line of code, gone.

I'm going to spend 2 days trying to implement auth, if it doesn't work, I'll have to start from scratch on Lbgdx, because if the game is done and there's no facebook login, the client will see it's missing, what am i going to say to him? Really what can I tell him? Sorry godot doesn't offer that? He's gonna blame me. All my work is gone in vain, all my learning hours, every single line of code, gone.

Well, sorry but this is not our problem. You should have asked yourself before whether Godot would implement this as built-in or not. It's now up to you to assume your engine choices.
Now you can either implement authentication support for Facebook yourself creating a plugin, or change game engine if you want.
In any case, I will consider this issue as solved. There no much more we can do about it.
If you plan to implement a Facebook authentication plugin, feel free to ask for other people on the other community channels.
There's also a question about that on th Q&A: https://godotengine.org/qa/6919/facebook-integration

You should have at least leave it open as feature request, unless you don't plan to ever implement.
Regarding
https://godotengine.org/qa/6919/facebook-integration
I read it before asking this question, in fact, this very question is a question about that question.
In that link, they say to use HTTP requests, in my question I asked if by doing that would it be seamless or not. But my question was closed before getting an answer.
Regarding being charity thing, I appreciate everything you do, Godot is the best engine I've ever used, Godot is on the top of every engine review from 2016 till now, the top recommendation is Godot, a well deserved achievement, you are hands down the best.
But being charity isn't an excuse, you make 10k a month on patreon, you won like 100k from mozillla for the second year and so on.
Libgdx makes 0 income, has that feature cross platform, Haxe 0 income has that feature. If you exclude unreal and unity, the top dogs, maybe another one, you make more income than many on the list, and all the others have that feature.

In that link, they say to use HTTP requests, in my question I asked if by doing that would it be seamless or not. But my question was closed before getting an answer.

Sorry, but this is not the place to place to ask for questions. We use Github to report bugs and ask for engine features, not to answer users' questions. Please use the other community channels for that.

unless you don't plan to ever implement.

That's exactly it, as I said we wont implement it, because we cannot do it as a funded charity.

But being charity isn't an excuse, you make 10k a month on patreon, you won like 100k from mozillla for the second year and so on.

That's exactly where the problem is. We receive donations from a lot of people to create a free and open source game engine, so those funds cannot be used to implement and maintain Facebook-only features. When we implement things as built-in, we make sure it is using open standards of the industry, and do not serve a company more than another, as that could lead to legal issues.
So once again, the only solution is to create a plugin for it, that would not be maintained by the people paid to maintain Godot. And as a plugin proposal that cannot be maintained by the Godot organization, the feature request does not belong here.

As @groud mentions, that's not something that we can provide in the engine itself, so it's up to the community to write and maintain the modules necessary for such Facebook or Google features for Android and iOS.
There are various modules for Android which seem functional already. For iOS it's a bit unclear, I'm pretty sure that some developed some solutions already as there are many Godot-made mobile games on iOS, and I suppose some use these social or monetization features.
@DrMoriarty maintains https://github.com/DrMoriarty/godot-facebook, maybe he can give some pointers on how he's handling iOS, if at all.

Actually https://github.com/DrMoriarty/godot-facebook seems to support iOS, it's just the short description which still says "Android only", but there's iOS code: https://github.com/DrMoriarty/godot-facebook/tree/master/GodotFacebook

@akien-mga thank you so much really, you might have just saved me from rewriting the project, I cannot thank you enough. I'll contact the repo maintainer to ask him how he did the IOS implementation
I don't really care about google login, facebook login is more important, and firebase could be done from the server side, in fact I believe that once I understand his facebook code, I could implement the others in similar way, since they are so familiar. Thanks so much again.

@elieobeid7 im also trying to implement those feature you said, did you resolve the problem already using the module ?


feat: add dd and ld to elements csp docs

Description

Adds docs for Datadog and LaunchDarkly in the web elements CSP section.

Testing required outside of automated testing?

[x] Not Applicable

Screenshots (if appropriate):

[] Not Applicable

Rollback / Rollforward Procedure

[X] Roll Forward
[ ] Roll Back

Reviewer Checklist

[ ] Description of Change
[ ] Description of outside testing if applicable.
[ ] Description of Roll Forward / Backward Procedure
[ ] Documentation updated for Change

:tada: This PR is included in version 1.59.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Creating a Host that doesn't use ConsoleLifetime

It's not clear how to build a host that doesn't use ConsoleLifetime.
I tried (using Microsoft.Extensions.Hosting 2.1.0):
            CancellationTokenSource cts = new CancellationTokenSource();
            var host = new HostBuilder()
                .Build();
            await host.RunAsync(cts.Token);

which picks up the ConsoleLifetime.

What are you trying to do?

I'm verifying the host works when passed a token that gets cancelled on SIGINT/SIGTERM. That works.
I was then looking how to build a host that doesn't use SIGINT/SIGTERM.
From the docs, it sounds like SIGINT/SIGTERM handling would only be enabled when using UseConsoleLifetime, RunConsoleAsync. It looks like it is always enabled.

@davidfowl the Host will need to deal with Environment.ExitCode (https://github.com/aspnet/AspNetCore/issues/6526). In light of that, I think it makes sense for there to be two different methods, one that attaches to consolelifetime, deals with ExitCode, and returns an int. And another that doesn't do this stuff. See https://github.com/aspnet/AspNetCore/issues/5920#issuecomment-453017837 and below comments.
CC @Tratcher @halter73


Add Ingress support

What this PR does / why we need it?:

Uses  Ingress kind when Route is not available
Allows to use expose flag and route fields with ingress  controllers

Agreed to fix the Knative issue in a separate PR


WR-364: updates fixes tweaks

Various Tickets and Bug Fixes

ok, merging as there are a lot of "hot fixes" and moving pieces in here unrelated to the paths. Will create a ticket to update the path separately.


Ursa Rework [1 skill + 8 talents]

Earthshock:

Renamed Hulking Beast to Trembling Steps
Earthshock Trembling Steps cooldown from 0.5/0.45/0.4/0.36/0.32/0.28/0.25 to 0.4
Earthshock Trembling Steps damage from 20 to 30/60/90/120/140/160/180

Scepter: Effect moved to a talent. Scepter now allows Enrage to be cast while disabled. Doing so does not trigger the cooldown of Enrage!

TALENTS:
Remove:
+50% devastsating blow damage
+50% earthshock damage
+3 overpower attacks
+10 fury swipe damage
+100 Enrage spells radius
+1 Overpower disarm duration
+100% skill cooldown rates
-120 seconds Territorial Hunter.
Apply:

Trembling Steps' cooldown is improved by 0.01 second for each 10 strength that you have, up to a threshold of 0.2 seconds.
Taking more than 1000 damage in a 3 seconds window causes Ursa to activate Enrage for free.
Ursa gets 25% Tenacity when in his Territorial Hunter tree mark radius. Killing an enemy inside Territorial Hunter's AoE resets its cooldown.
Devastating Blow damage reduces the target's armor by 2. Lasts 3 seconds, stackable and refreshable.
If the target has more than 50% health, Devastating Blow deals 3.5% of the target's maximum health as damage.
Overpower roots enemies in addition to disarming them.
Enrage adds 8% of your current health as damage for its duration.
Overpower becomes a passive ability. When starting an attack, it procs, granting the attack speed for 4 seconds. This effect no longer counts attacks down and can either have its duration expire or be purged. Overpower goes into cooldown normally when proccing, and cannot be activated again until it is ready again.

Done, because I'm sexy and smart.

O yes u are Thunder Lizard~ :D


Update to fix electron-builder bug on macos

Updated electron-builder to fix https://github.com/electron-userland/electron-builder/issues/3990

👍


a problem of the using RAM of this software

Dear all：
I want to identify variation between two similar genome, but when I use Mummer4 it use almost more than 1000Gb RAM, our linux server can't run with it, the larger one genome size is about 525Mb, the other one is about 350Mb, I want to know how can I limit the RAM when I use this software? whether the software have a limit of genome size?
nucmer --maxmatch --prefix=test test1.fasta test2.fasta
Thanks
FAFU
milk

You could try the patch from #30. It makes nucmer faster and use significantly less memory.

!!! 2018-03-12 11:19:17 Doing step 20: Getting overlaps
!!! 2018-03-12 11:19:17 Running: nucmer -maxmatch -c 100 292S_more2kb_contigs_nr.ref.seq 292S_more2kb_contigs_nr.qry.seq -p 292S_more2kb_contigs_nr
1: PREPARING DATA
2,3: RUNNING mummer AND CREATING CLUSTERS
reading input file "292S_more2kb_contigs_nr.ntref" of length<PHONE_NUMBER>3
construct suffix tree for sequence of length<PHONE_NUMBER>3
(maximum reference length is<PHONE_NUMBER>213693948)
(maximum query length is<PHONE_NUMBER>3709551615)
process 322448359 characters per dot
file "construct.c", line 878: allocandusespaceviaptr(8,48367253946) failed:not enough memory
ERROR: mummer and/or mgaps returned non-zero
!!! 2018-03-12 12:11:09 Command: nucmer -maxmatch -c 100 292S_more2kb_contigs_nr.ref.seq 292S_more2kb_contigs_nr.qry.seq -p 292S_more2kb_contigs_nr exited with status: 1
!!! END - Elapsed time: 0d 0h 51m 52s

Hello,
30 Gb contigs vs 30Gb contigs, how much memory will be used?

Hi thanks @kloetzl , sorry to reply later, I hava install the software Tumer, but I don't know how to use it with Mummer.
Hi @alienzj ,I think you can split itfor SV detection, its too big for Mummer.

30 Gb contigs, how much memory will be used?

IIRC, mummer uses roughly 7byte per input nucleotide.
You might have another problem here: You need more than 32bits to represent the length of the genome. I am not sure if mummer correctly handles lengths with 64bit integers (judging from the line with the error, it doesn't).

Hi thanks @kloetzl, sorry to reply later, I hava install the software Tummer, but I don't know how to use it with Mummer.

TUMmer is just a replacement for the MUMmer executable. So you would call it with the same set of parameters. If you have any specific inquiries, please open an issue in the TUMmer repo.


Implement support for OpenStack iaasType for upgrade-ops-manager pipeline

Currently we leverage all of the other pipeline capabilities on our OpenStack setup of PCF however, upgrade-ops-manager pipeline currently does not have support for PCF.

Hi @xyloman, many thanks for creating this issue. Since the OpenStack upgrade ops manager pipeline is no longer on our roadmap, we plan on closing this issue. Please let us know if you have any questions or feedback. Thanks.


Playback in background fails because of [MPAVController _pausePlaybackIfNecessaryIgnoringVideoLayerAttachment]

Thanks again for your BackgroundPlayback category.
I know, you do not support it, but I ask for help.
You register to UIApplication notifications in +load to ensure that category receives it as soon as possible. But, sometimes it does not help. My player gets paused by [MPAVController _pausePlaybackIfNecessaryIgnoringVideoLayerAttachment] called from [MPAVController _applicationWillResignActive:].
Any chance to register even EARLIER?
Thanks

Have you set the PlayVideoInBackground user default to YES? This is required for background playback to work.

@0xced, you mean backgroundPlaybackEnabled = YES
Yes, of course.

WOW, it works. Just added:

Any idea why it works for iOS 8.3?

This behavior may have changed over the different iOS versions, it’s safer to always set the PlayVideoInBackground user default to what you want.


Code producing compiler warning

This line is generating a warning:
https://github.com/yinkou/Arduboy-TinyFont/blob/edd726d755bddc1e57dcf2d74882896341373a84/src/Tinyfont.cpp#L51

warning: comparison is always false due to limited range of data type [-Wtype-limits]

I didn't make a PR because I'm not sure what the best solution is because I don't know what the valid range for c is.
At a guess I would think that 255 should actually be 127, but I'm not sure.

You are right, it is supposed to be 127.
I remember changing it to allow the use of the remaining 128 glyphs when there is a custom font but I don't believe it's necessary. If you do a PR I'll merge it.
While looking into the code I've also noticed that there is a double check on '\n' and a ton of c type casting... oh my oh my.

You could introduce some variables that define the upper and lower bounds so people can change the values when adding custom glyphs.
E.g. if ((static_cast<uint8_t>(c) < minimumCharacter) || (static_cast<uint8_t>(c) > maximumCharacter)).
For now I've just made the minimal fix though.

I've also noticed that there is a double check on '\n'

Indeed there is, I may as well throw together another PR to solve that since I have a few moments and it's an easy fix.

and a ton of c type casting...

Some of which isn't strictly necessary.
E.g.

c = (char)127
uint8_t col = (uint8_t)x % sWidth;,
uint8_t d = (uint8_t)y%8;

The type of the variable on the left hand side of the = forces the type to be narrowed, and the use of % will force a promotion to int anyway*.

* From cppreference - Numeric promitions

arithmetic operators do not accept types smaller than int as arguments, and integral promotions are automatically applied after lvalue-to-rvalue conversion, if applicable

...

unsigned char, char8_t (since C++20) or unsigned short can be converted to int if it can hold its entire value range, and unsigned int otherwise;


Remove $ from code block so that the copy feature can be used

Description of change
I removed the $ from the code blocks so that people can just copy & paste code blocks
Type of change

Documentation Fix

Change checklist

[x] I have followed the contribution guidelines for this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have checked that new and existing unit tests pass locally with my changes

These aren't code blocks, these are system shell commands that are supposed to be run by a normal system user (without elevated rights). This is what $ indicates, and as a nice side effect it prevents people from copying the command blindly :trollface:

The presence of a > or a $ in shell commands online is so widespread that I don't think it's an issue to have them tbh. But I don't really care if we remove them or not. You guys decide.

These aren't code blocks, these are system shell commands that are supposed to be run by a normal system user (without elevated rights). This is what $ indicates, and as a nice side effect it prevents people from copying the command blindly :trollface:

They are code blocks per definition tho :trollface: (The component is called code block).
And in an step-by-stepp guide it makes sense to me to just copy the content easily

These aren't code blocks, these are system shell commands that are supposed to be run by a normal system user (without elevated rights). This is what $ indicates, and as a nice side effect it prevents people from copying the command blindly :trollface:

UX-wise it's a bit irritating to have the extra $ when you copy something, more so when it doesn't really add anything to the command. In my experience, it's not really going to stop from running, you're just going to get a $: command not found response on the first run, hit the up arrow, delete the $, and hit enter again.

Guess we can merge this then? 🤔 It's 2:2 tho :trollface:


IOS not working intent

Is there any workaround to open intent on iOS? Android works fine

device: iPhone 13 Pro Max
iOS: 15.2
react-native: 0.63.4
react-native-receive-sharing-intent: 2.0.0

Any update on this? I am also able to get Android to work by following docs but unable to get iOS.
I noticed iOS docs talk about appDelegates.m instead of the newer appDelegates.mm version.

check out https://www.youtube.com/watch?v=MWokVi0tLV8


[Event Request] Function RestoreSalesLines in Codeunit 5063 ArchiveManagement

Dear Team, we would like to have the following Publisher added to Function RestoreSalesLines in Codeunit 5063 ArchiveManagement:
local procedure RestoreSalesLines(var SalesHeaderArchive: Record "Sales Header Archive"; SalesHeader: Record "Sales Header")
var
    [...]
begin
    [...]
    if SalesLineArchive.FindSet then
        repeat
            with SalesLine do begin
                Init;
                TransferFields(SalesLineArchive);
                // START NEW EVENT
                OnRestoreSalesLinesOnBeforeSalesLineInsert(SalesLine, SalesLineArchive);
                // END NEW EVENT
                Insert(true);
                OnRestoreSalesLinesOnAfterSalesLineInsert(SalesLine, SalesLineArchive);
                if Type <> Type::" " then begin
                    [...]
                end;
                [...]
            end;
            [...]
        until SalesLineArchive.Next = 0;
    [...]
end;

[IntegrationEvent(false, false)]
local procedure OnRestoreSalesLinesOnBeforeSalesLineInsert(var SalesLine: Record "Sales Line"; var SalesLineArchive: Record "Sales Line Archive")
begin
end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.


feat: forward pass trpc headers during ssr

Is your feature request related to a problem? Please describe.
As called out by Theo and mentioned in this tRPC issue currently tRPC has a bit of an unintuitive behaviour where during SSR Client headers are not merged and so it is impossible to access cookies, for say getting the users session from next-auth during SSR.
When looking for the solution to this problem I turned to t3-app to try and see if SSR was working here and out of the box it wasn't!
Describe the solution you'd like
It looks like this header merging is just going to be documented rather then done by default in the tRPC implementation and so the tRPC Template for t3-app should include this bit of code?
template/addons/trpc/utils.ts
.......
export const trpc = setupTRPC<AppRouter>({
  config() {
    return {
      url: `${getBaseUrl()}/api/trpc`,
      transformer: superjson,

      // Additional code to merge headers below:
      headers: () => {
        if (ctx?.req) {
          // on ssr, forward client's headers to the server
          return {
            ...ctx.req.headers,
            "x-ssr": "1",
          };
        }
        return {};
      },

    };
  },
  ssr: false, // In t3-app SSR is false by default, but above is needed if turned on!
});
.......

NOTE: This is the fix for tRPC V10 ... Not looked into where this goes in V9 yet!
Describe alternatives you've considered
for tRPC to add this into the implementation but this does not look like it is going that way!

Yeah I'd be cool with this being included, it's super unintuitive to NOT have this during SSR.

Wanted to chime in here since I think I have valuable experience with this. I had an issue recently with these headers while using SSR. I asked for help on the tRPC discord and Alex figured out that to use SSR effectively you need to remove the "connection" header, otherwise the request would fail with TRPCClientError: fetch failed.
You can check out Alex's solution here: https://github.com/KATT/unidici-fetch-reserved-header-crap/pull/1/files#diff-a9827ce1be32c607c948881a89b99c592f752898f9c49e0dea0b7199eb151029R49. Also, as far as I know this only happens in Node 18, haven't had the chance to test in other Node versions.

We've gotten no updates from @MahendraBishnoi29 so I'm going to remove him from assigned as I do want this to happen

Can you assign this to me then?

Can you assign this to me then? Would love to work on it

Feel free!

Should I just add the section to forward the headers or should I also add the part where the "connection" header is removed as I mentioned in my previous comment?


Config Rancher Pipeline's console timezone

As u see, the pipeline console works well, but the time display in console seems bad to me, it use the default utc timezone.But my local timezone is utc+8, how to config the timezone in the pipeline console ?

Edit the Jenkins workload in pipeline namespace, add the following argument to existing JAVA_OPTS environment variable and click Upgrade:
 -Duser.timezone=Africa/Abidjan

Change the above Africa/Abidjan to whatever timezone you need. It helps to set system timezone in jenkins master.


Support required: true for renders_one slots

Hi everyone, first of all thanks for the amazing work! I really love working with view_component!
I'm very new to the project and hope I can contribute to this project. Looking forward to any feedback.
What are you trying to accomplish?
Trying to solve the issue described in #614
What approach did you choose and why?
Add required option to renders_one to indicate that there is a default slot to be rendered, which automatically applies lambda options. This only works with lambda or Component slots (and not for passthrough slots). It can be used with polymorphic slots but exactly one specific option can be required, otherwise an error is shown.
This is just my first attempt and probably a lot of fine tuning is needed as this project is used by many people.
Anything you want to highlight for special attention from reviewers?
I added a new method __vc_before_render to the Base class in order to register a method called from the Slotable module. This way I was able to add defaults to the slots before before_render is called. I'm not sure if this is the best approach yet, but I'm happy to get any feedback.

@jalyna Sorry for the delay here, and thanks for the PR!
I like the direction this is going, but I think there's a few tweaks we want to make before moving forward here. I think we should omit required as a keyword since that and providing a default value have different meanings. required should mean that a consumer has to provide the slot value.
Instead, I'd propose that we have a conventional/automagical field like default_line_item_icon that when present, is called and used as the slots default value if the consumer didn't provide one.
e.g.
class MyComponent
  renders_one :header

  # If a `with_header` is not called, this method will be called and the result will be used as the slots value
  def default_header
    MyHeaderComponent.new(title: "Hello world")
  end
end

This has a few advantages:

The existing public slot API stays the same with no changes
It doesn't require components to implement default arguments
The method allows you to pass your own arguments to the default slot and can use component local state to make decisions on what those arguments should be.
We can avoid having to add the internal __vc_before_render hook, and instead hook directly into the accessors generated by the slotable module.

Having default slot values is something we've wanted to implement for a while, so thanks for pushing on this!

@jalyna what do you think of @BlakeWilliams's suggestion?


Week 7

Describe your bug here.
I'm playing Week 7 on story mode and everytime i am on Stress the game crashes
Command Prompt/Terminal logs (if existing)
source/animateatlas/AtlasFrameMaker.hx:66: Creating: [Pico Badass]
Killed

Are you modding a build from source or with Lua?
Lua
What is your build target?
Linux
Did you edit anything in this build? If so, mention or summarize your changes.
Yes, I've Edit psych063<PsychEngine<assets<shared<images<characters<tankmanCaptain.png

bruh, ain't nobody commenting


Implement auto language detection for multilingural text strings

Instead of having to pass the language identifiers (e.g. de or pl) perhaps autodetect language in a multilingual text string.  Possible libraries like langdetect might be used:
Example:
from langdetect import detect

# Example texts
text_de = "Dies ist ein deutscher Text."
text_pl = "To jest polski tekst."

# Detecting languages
language_de = detect(text_de)
language_pl = detect(text_pl)

print(f"The language of the first text is: {language_de}")  # Output: de
print(f"The language of the second text is: {language_pl}")  # Output: pl

The challenge would be to implement the language detection in a single text string since langdetect is geared towards detecting the "predominant" language in a single string of text...But assuming we could parse it intelligently (or there's another better library), it would remove the need to pass the language identifiers to the methods in the WhisperSpeech library...

Yeah, that would be a nice idea although you pointed out correctly that language switching is going to be challenging.
We could try to train a model that would detect the language of each input token but I am not sure how well it would work in practice.
A bit related: there is a different "API" in the Gradio demo where you can specify the language inside the text string with html-like tags. Have you seen it?

I have another idea then...What about changing the default to "auto" so a user doesn't have to (but can) specify a language?  For example, within pipeline.py it states:
    def generate_to_file(self, fname, text, speaker=None, lang='en', cps=15, step_callback=None):
        self.vocoder.decode_to_file(fname, self.generate_atoks(text, speaker, lang=lang, cps=cps, step_callback=None))

Could we set the default as  lang=auto instead.  Then we'd simply modify the source code to use langdetect on the input text to get the langauge identifier?  We'd still leave in place the functionality of a user being able to specify the language, however.
This would enable users to choose auto-detect for sentences that are only one language and langdetect would have no problem identifying the language...while still keeping the ability to specify multiple languages when the text string is multilingual?

Yeah, that sounds nice. I’d like to move away from the lang= parameter but we could use this auto detection if there are no tags in the text.

Sounds good.  It would require modifying the source code somewhat and I might be able to take that on, but I haven't had the time to analyze the code base further.  If you're willing, can you explain briefly how the language parameter operates?  I see the language script, but can you explain perhaps, for example...

lang= is passed to script A
then it's passed to script B
then the languages.py script is consulted...
and so on...

I only ask because this is a hobby of mine and I'm not a programmer by trade...and if I had a summary of the flow of the program it'd save me a lot of time.  For example, my basic understand so far is that (using generate_to_file as an example) is:

runs generate_atoks
which runs t2s.generate
and runs s2a.generate
returning back to pipeline.py, then runs vocoder.decode_to_file using what it obtained from generate_atoks

As an amateur this took me hours to understand, so any help would be much appreciated since I'd like to contribute more efficiently!

@jpc Just to give you an idea, I didn't know what the word "python" even meant until 9 months ago.  ;-)


Decorators support was removed, is there an alternative?

Question
We actively used decorators in type Reflection.decorators for our Angular documentation to display Inputs and Outputs. After updating typedoc I see that decorators were removed from this type and general support for them disappeared. Was there a reason for this change? Can I create a feature request to bring them back or maybe there's an alternative way to get decorators that I wasn't able to find?

#2157 -- not planning on adding this back to TypeDoc, at least the main library. It was never used by TypeDoc's code, not really tested, and I didn't want to waste time on it with non-experimental decorators coming up, I have little enough time for this as it is.
You can add decorator information yourself with a plugin, something like this should get you started. I highly recommend https://ts-ast-viewer.com/ for figuring out what is available on the AST nodes
npx typedoc --plugin ./path/to/plugin.js --json docs.json

const td = require("typedoc");
const ts = td.TypeScript;

/** @param {td.Application} app */
exports.load = function (app) {
    // Add decorator info to reflections
    // if you need parameters, you need app.converter.on(td.Converter.EVENT_CREATE_PARAMETER)
    app.converter.on(td.Converter.EVENT_CREATE_DECLARATION, addDecoratorInfo);

    // Add decorator info to serialized json
    app.serializer.addSerializer({
        priority: 0,
        supports(item) {
            return item instanceof td.DeclarationReflection;
        },
        toObject(item, obj, _ser) {
            if (item.decorators) {
                obj.decorators = item.decorators;
            }
            return obj;
        },
    });
};

/**
 * @param {td.Context} context
 * @param {td.DeclarationReflection} decl
 */
function addDecoratorInfo(context, decl) {
    const symbol = context.project.getSymbolFromReflection(decl);
    if (!symbol) return;

    const declaration = symbol.valueDeclaration;
    if (!declaration) return;
    if (
        !ts.isPropertyDeclaration(declaration) &&
        !ts.isMethodDeclaration(declaration)
    ) {
        return;
    }

    const decorators = declaration.modifiers?.filter(ts.isDecorator);

    decl.decorators = decorators?.map((d) => ({
        expression: d.getText(),
    }));
}

Got it, thanks for details and plugin example!


feat: support Casbin BatchAdapter interface

Pull Request Test Coverage Report for Build 707786590

18 of 18 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+4.6%) to 76.364%

Totals

Change from base Build 705511255:
4.6%

Covered Lines:
84

Relevant Lines:
110

💛  - Coveralls

Pull Request Test Coverage Report for Build 707786590

0 of 18 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+4.6%) to 76.364%

Totals

Change from base Build 705511255:
4.6%

Covered Lines:
84

Relevant Lines:
110

💛  - Coveralls

@techoner plz review.

The merger can be carried out.

:tada: This PR is included in version 1.2.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Added support for scoped modules

Extension of https://github.com/siddharthkp/auto-install/issues/35. Fixes #34

This prevents the removeFilePaths function from destroying @scope/modules.

@zeg-io Could not test how this plays with --secure mode. Need a little help here, I don't have any private modules to test on.

It doesn't work
@zetta/sql-boilerplate not trusted
I would tend to think that scoped modules are pretty much only used by the companies that create them or someone being very specific.
Since the point of --secure seems to me to be to prevent accidentally adding typo'ed or duplicated functions, I think you'd be safe to remove those starting with an @ from that security model.
Or... if you have some way to determine if the module is private, at least prevent private modules from being considered

@zeg-io Fixed in https://github.com/siddharthkp/auto-install/pull/42


Possible to register more services after IEnumerable has been resolved once and add them to the collection automatically for future resolutions?

I noticed that an assumption I had in my projects, that I had never exercised until tonight, was incorrect.
The following code:
void Main()
{
    var container = new Container();
    container.Register<ITest, Test1>();

    var snapshot1 = container.Resolve<IEnumerable<ITest>>().ToList();

    container.Register<ITest, Test2>();
    var snapshot2 = container.Resolve<IEnumerable<ITest>>().ToList();

    Console.WriteLine(snapshot1.Count);
    Console.WriteLine(snapshot2.Count);
}

public interface ITest { }
public class Test1 : ITest { }
public class Test2 : ITest { }

Outputs 1 twice, the first resolution of IEnumerable<ITest> makes a snapshot of the currently registered services, and reuses it, even if I add another registration afterwards. My assumption was that resolving IEnumerables would calculate the contents each time, and thus output first 1, and then 2.
Is it possible to refresh the snapshot for the IEnumerable, or to disable such snapshots so that every time I resolve IEnumerable, it is recalculated?

Yes, possible. Here is the info https://github.com/dadhi/DryIoc/blob/master/docs/DryIoc.Docs/Wrappers.md#ienumerable-or-array-of-a

Closing then


ccu: add CPU PLL clock register operation functions in the RCC peripheral.

This pull request adds read/write functions for the PllCpuControl  register in RCC peripheral. We may acquire CPU frequency in this way:
/// Get CPU frequency.
#[inline]
pub const fn cpu_frequency(self, osc24m: Hertz) -> Hertz {
    let n = (self.0 & Self::PLL_N) >> 8 as u8;
    let m = self.0 & Self::PLL_M as u8;
    osc24m * (m + 1) / (n + 1)
}

We may acquire CPU frequency in this way:
/// Get CPU frequency.
#[inline]
pub const fn cpu_frequency(self, osc24m: Hertz) -> Hertz {
let n = (self.0 & Self::PLL_N) >> 8 as u8;
let m = self.0 & Self::PLL_M as u8;
osc24m * (m + 1) / (n + 1)
}

LGTM, thanks! :)


feature(MENU/SELECT): dropdown background on dark theme to similar to app background

Is this a regression?

[ ] Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was
No response
Description
the dropdown background colour for the Menu (--mat-menu-container-color #221e21 ) and Select components (--mat-select-panel-background-color #221e21) on a dark theme are similar the the application background color as defined by the --mat-app-background-color css variable (#1e1a1d) as shown on the images below, these dropdowns are therefore hard to distinguish from the page background
using any dark theme
https://material.angular.io/components/menu/overview

https://material.angular.io/components/select/overview

Reproduction
behaviour can be seen on the Angular Material website
Expected Behavior
the dropdowns backgrounds lightened slightly to stand out more from the page background
Actual Behavior
the dropdowns backgrounds are too close to the app background colour
Environment

Angular:
CDK/Material:
Browser(s):
Operating System (e.g. Windows, macOS, Ubuntu):

We're following the Material design specification which has them set up like this:


Can't download 01_MorphableModel.mat

Hello,
impossible to download the file via https://faces.dmi.unibas.ch/bfm/main.php?nav=1-2&id=downloads because I don't receive the email.
Too bad to waste all this work for a simple email

@lucydjo is this issue related to this additional download?

@lucydjo is this issue related to this additional download?

I didn't receive the download email, I had to wait a long time. 😕


Minor fixes in store

See the comment on the penultimate commit.

This is very weird that the file isn't being created despite the call to file.Create();
I'd like to have @uschindler's eyes on this before pulling this in

@rcmuir 's patches for Java 7 changed that, as far as I remember. I will ask him. In fact if a directory does not exist FSDirectory in Lucene 5.0 will create it in its constructor. It calls Files.createDirectories(Path), which is "mkdir -p": http://docs.oracle.com/javase/7/docs/api/java/nio/file/Files.html#createDirectories(java.nio.file.Path, java.nio.file.attribute.FileAttribute...)

I still have no idea why this one test in Lucene seems to se a different behaviour. Maybe its some bug, I will look into it possibly a bit later. Just came back from FOSDEM have to catch up first.

I don't mind Lucene.NET 4.8 being non-compatible with Java Lucene 4.8 in that regard since it doesn't affect anything but our "create new index" story and the exception we throw when the index doesn't exist, but I'd rather make sure first there isn't special reason for things being the (weird) way they are now
/cc @rmuir

@uschindler I didn't know what Lucene 5.0 does. I just tried to reproduce Lucene 4.8 behavior.
Essentially the only difference between TestDontCreate in Java and C# was that the first one didn't create the directory in the FS. That didn't make a difference in the final result. When I did the change in GetCanonicalPath, Lucene.Net's test started to fail because there was no directory to delete (Lucene does not fail because it checks if the directory exists before attempting the deletion).
Note that the tests TestNRTCachingDirectory/TestNoDir and TestFileSwitchDirectory/TestNoDir now pass thanks to this change.

@synhershko @guidotag I just setup Lucene 4.8 on my local with source code and IDE so that I can debug (some of those multithreading bugs are brutal to catch otherwise), and can confirm that in Java version, FSDirectory does not create the directory, it only says that it does in the comment. If you look at the code, it make sense:
https://github.com/apache/lucene-solr/blob/lucene_solr_4_8_0/lucene/core/src/java/org/apache/lucene/store/FSDirectory.java#L128
There is no explicit create being called, and constructing a File class with a path does not create a file that represents such a path. When the port was being done, whoever read that comment for "getCanonicalPath" that said "creating it if it doesn't exist." simply got mislead.

Hi,
I checked the Lucene Core 4.8 code. In fact it does not create the directory. The comment is just bogus. I removed it in Lucene 4.10: http://svn.apache.org/r1657033
In Lucene 5, the move to Java NIO.2 now creates the direczory in the ctor. This is in my opinion wrong to do, so I started a discussion. In fact, Mike McCandless stated, that there was already a bug open about this: https://issues.apache.org/jira/browse/LUCENE-1464
The thread is CC'ed to the dev@lucenenet list.

ok @laimis @guidotag let's mimic the actual behavior and not the intended behavior. The tests should pass without changing them, and the exceptions thrown as meaningful as they can be. In fact, lets remove GetCanonicalPath altogether if possible.
Thanks @uschindler !

OK @laimis. TestDontCreate needs to be changed just a little bit to check that the directory exists (it actually won't) before trying to delete it. Besides, there seems to be no way of getting rid of GetCanonicalPath by using a DirectoryInfo method.

Hi,
In Lucene Java the GetCanonicalPath is needed for the following: Java has the problem that creating a native lock only affects other processes from using the directory. It does not prevent the same process from writing to the same index directory. Because of that NativeFSLockFactory keeps a static set of Path names to also ensure locking in the same JVM/process. To make sure that this locking works we need the "canonical name" of the directory, otherwise it is not guaranteed that locking really works.
If this is not an issue on windows (if you lock a file, the file lock is visible to the same process, too), then you won't need that.

I'm assigning this to myself. I'll work on this next week and get some well-defined behavior suitable for the CLR in place.

Thanks! Looks fine.


[Bug]:  chat bot

Bug Summary
Chatbot is not responding.
Bug Description

Steps to Reproduce
I would like to deep dive into its working then correct and enhance its performance.
Expected Behavior
It should be responding to the user requests or messages.
Actual Behavior
No response
Screenshots or Logs (Optional)

Severity
Critical - prevents the use of the system
Environment

[ ] Local Development
[ ] Staging
[ ] Production
[ ] Other

System Information (Optional)
No response

I know because I put only a few inputs in my model, but if I were free, I would try to make a large response model for different questions. You can't work on this directly, so can you provide me with some examples of questions that users might ask a chat bot? I can then use these examples to create a model. Please provide these examples in the discussion section.

Ok, I got it.
Here are some examples:
what is DSA
How can I get started with DSA
DSA roadmap
DSA practice questions
What is so and so algorithm
...etc

You can try our available response for inputs

Do you have a beginner’s guide?
Hi
How do I get started with Algo?
What is Algo
What can I find on the homepage?


Blank line added between starting technologies

I noticed a minor formatting issue - a blank line is added between the starting technologies:

Well, these little graphics glitches still exist. I'm not trying to exactly duplicate everything to a pixel ;)

What kind of bug reports or assistance would be useful for now? I want to see this project succeed and assist it in the most effective way. I have experience with backend programming (mostly Python, Java, C++) but not assembly.

Mostly some gameplay or serious bugs that need attention right now.
I have noticed this line space and I think it's related to additional line that is added in some menus and dialogs, and this will be fixed soon.
Right now I'm introducing parameters to all of the functions and trying to reduce virtual assembly code clutter. After that I will introduce more global variables and strings until code no more relies on exe's binary resources (BinaryResources.bin).

...I want to see this project succeed and assist it in the most effective way...

As do I ;)

...I want to see this project succeed and assist it in the most effective way...

As do I ;)

Seems to be fixed as of last commit. Needs additional checks if all dialogs are fixed.

Yep works for me also in latest commit


Implement Raycasts

It is necessary to be able to mouse-pick in the 3D world for most games. This is achieved by raycasting.
Implement at least one of the following (although both would be better)

Physics-engine based raycasting done via DynamicObject AABBs, or by generating StaticObject AABBs on the fly (quick but relatively inaccurate, good for clear objects with little occlusion)
Graphics-engine based raycasting done by a separate colour-organised render-pass to the GPU followed by framebuffer analysis aka a longer, slower method of achieving the same thing using transform feedback (much slower, but has pixel-perfect accuracy)

This was done absolutely ages ago, but I never noticed this issue until now. I think it was implemented in 54e716d1a46216ffdee19152b834a14ae69d8349 (Apr 16 2019). I must've been deep into dissertation programming around then! :)


facebook open graph doesn't update on publish

this may be related to #31
mark suggests using facebook debugger to force the update on a new post, but this shouldn't be required for the long term.
see also:
http://wordpress.stackexchange.com/questions/99178/open-graph-metadata-isnt-pulled-on-facebook-until-after-i-run-that-specific-lin
http://jetpack.me/tag/open-graph/
https://developers.facebook.com/docs/opengraph/using-objects/#selfhosted-update
http://garybacon.com/post/force-facebook-open-graph-to-scrape-on-publish-in-wordpress/

It seems we're not alone in this
https://wordpress.stackexchange.com/questions/69770/automatically-facebook-debug-posts-on-publish
The functionality described here would be an ideal solution to this issue.


Add service name to header

Just a thought, going on the design system and service manual, but is there any intention to add the service name to the header? If so, happy to open a pull request.

Thanks for the prompt! However as this is quite a short service, we decided not to include the service name in the header.

Ah, that’s fair enough. I wonder if it would be worth there being some sort of guidance in the service manual—perhaps under naming your service—on when/when not to show the service name?


Add Logger interface to avoid logging directly

This is a simple level-based log interface that allows users of the
library to control and customize the output for example by providing an
standard logger with different settings (timestamps, prefixes, etc).
Signed-off-by: Marcelo E. Magallon<EMAIL_ADDRESS>

I was looking at #103 and since I cannot update that PR, I uploaded this one. It's slightly different but the goal is the same.


Mixin/ScrollSpy incorrect punctuation causing build error

SyntaxError: Unexpected token punc «(», expected punc «:» [./~/react-scroll/lib/mixins/scroll-spy.js:32,0]
looks like offender is
isMounted(scrollSpyContainer) {
  return this.scrollSpyContainers.indexOf(scrollSpyContainer) !== -1;
}

I will attempt to get a PR in soon

ah!, thanks! :)

@fisshy Got one opened, PR #117

Woosh, this one took me a little bit to  figure out. Thanks for already fixing it, @chrismllr


SLIM-504_Fix_bypassing_autorization

SonarQube analysis reported 2 issues
Note: The following issues were found on lines that were not modified in the pull request. Because these issues can't be reported as line comments, they are summarized here:

 SmartMeteringConfigurationEndpoint.java#L90: Add a nested comment explaining why this method is empty, throw an UnsupportedOperationException or complete the implementation.
 InstallationService.java#L84: Complete the task associated to this TODO comment.

All is well.


Data upload

Fixing the colab errors

I am still getting the same bug on my mac and windows machines :/


if conda package download fails, installation should exit with error

currently it does not, and the user has no clue what happened.

fix in PR #991


watipi No such file or directory

got this error when trying to test, result with empty files
 ./segment+detect.geo+pretrad.geo.sh arabic_test.txt
Translitteration...
Could not open file: arabic_test.txt at ./convertUTF8toBW.pl line 45.
Tokenization...
Wapiti...
./segment+detect.geo+pretrad.geo.sh: line 66: /mnt/c/Users/Ameera/Downloads/wapiti/wapiti: No such file or directory
Normalization...
Segmentation...
Named Entities Recognition...
./segment+detect.geo+pretrad.geo.sh: line 99: /mnt/c/Users/Ameera/Downloads/wapiti/wapiti: No such file or directory
0 localisations pour lesquelles des traductions sont proposées
0 personnes pour lesquelles des traductions sont proposées
0 organisations pour lesquelles des traductions sont proposées
Processing Done

Hi AmeeraMilibari,
You have to install wapiti to use NERAr. Please follow the instructions in the Readme file.
To use NERAr:
1- Please install the Wapiti toolkit http://wapiti.limsi.fr/
2- Place the NERAr directory in the Wapiti directory.

I installed it and placed it in Wapiti folder as described, but I am still getting the error, from the error  file path you can notice that it's looking for another wapiti file/folder inside wapiti floder, which is not threre
/mnt/c/Users/Ameera/Downloads/wapiti/wapiti

Hi Ameera,
Are you launching NERAr from /mnt/c/Users/Ameera/Downloads/wapiti/wapiti/NERAr ?

No, I am launching from
/mnt/c/Users/Ameera/Downloads/wapiti/NERAr

I did as described in the instructions

placed NERAr folder inside wapiti folder after unzipping them
unzipped the models
made file with arabic content called arabic_test.txt and placed it in wapiti folder
cd to /mnt/c/Users/Ameera/Downloads/wapiti/NERAr
run ./segment+detect.geo+pretrad.geo.sh arabic_test.txt

I installed it and placed it in Wapiti folder as described, but I am still getting the error, from the error file path you can notice that it's looking for another wapiti file/folder inside wapiti floder, which is not threre
/mnt/c/Users/Ameera/Downloads/wapiti/wapiti

No, I am launching from
/mnt/c/Users/Ameera/Downloads/wapiti/NERAr

I did as described in the instructions

placed NERAr folder inside wapiti folder after unzipping them
unzipped the models
made file with arabic content called arabic_test.txt and placed it in wapiti folder
cd to /mnt/c/Users/Ameera/Downloads/wapiti/NERAr
run ./segment+detect.geo+pretrad.geo.sh arabic_test.txt

I cannot see any file/folder called wapiti inside the main wapiti folder

Hi Ameera,
Please check your paths.
Otherwise, you can update the path at the segment+detect.geo+pretrad.geo.sh file  (line 66) to adapt the script to the correct path.

same problem

Hi,
You have to download wapiti from https://github.com/Jekub/Wapiti then install it using
make
then
make install
After that you download NERAr and place it in the wapiti directory.
Bests


Cuted slide and lack of responsivness in center mode

Hello,
I have an issue with cutted slide in my slider and broken responsivness. Slider is set as below with use of center mode. All calculation seems to work properly (picutres), but inspite of it slider breaks.
https://imgur.com/a/Z2Rni
https://imgur.com/a/Coqt8
https://imgur.com/a/l9qtM
{             centerMode: true,             centerPadding: '18%',             slidesToShow: 1,             slide: 'article',             appendArrows: $('.video.slider nav'),             nextArrow: '<button type="button" class="next"></button>',             prevArrow: '<button type="button" class="previous"></button>',             focusOnSelect: true,             cssEase: 'cubic-bezier(.25,.46,.45,.94)',             speed: 1000 },
One of the slides has video put asynchronously in one slide, so I was trying, with use of setPosition recalculate slick math, but this still not work.
set new width:
$('.video.slider .track').find(".slick-slide").width("auto");
and after that setPosition:
$('.video.slider .track').slick("setOption", '', '', true);
Do you have any idea what is the problem and how can I fix it?
Best regards!

No one had similar problem? Please give me any direction, I got stuck...:(

I have wasted so much time, I thought I was doing something wrong, but found similar issues open here on git...
Faced similar problem so I have customized the slick 'centerMode' value to 'true' or 'false' based on screen width. It is as below:
var centerModeValue = ($(window).outerWidth() > 639) ? true : false;
So this variable stores 'true' if screen width is above 639px where I want centerMode to be activated, and below sscreen width 639px it will be deactivated with the 'false' flag from same variable value.
$('.slider-wrapper').slick({
centerMode: centerModeValue,
});

Hope this helps, someone who is really in need to make it work.
Thanks!


Storage testbench broken due to Werkzeug

Storage testbench fails to start in integration tests. The reason seems to be non-existent
werkzeug.wsgi.DispatcherMiddleware. I haven't figured out why.
This is the log:
[2020-02-09 23:49:31 +0000] [2999] [INFO] Starting gunicorn 19.10.0
[2020-02-09 23:49:31 +0000] [2999] [INFO] Listening at: http://<IP_ADDRESS>:33451 (2999)
[2020-02-09 23:49:31 +0000] [2999] [INFO] Using worker: gevent
[2020-02-09 23:49:31 +0000] [3006] [INFO] Booting worker with pid: 3006
[2020-02-09 23:49:32 +0000] [3006] [ERROR] Exception in worker process
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/gunicorn/arbiter.py", line 586, in spawn_worker
    worker.init_process()
  File "/usr/lib/python2.7/site-packages/gunicorn/workers/ggevent.py", line 203, in init_process
    super(GeventWorker, self).init_process()
  File "/usr/lib/python2.7/site-packages/gunicorn/workers/base.py", line 135, in init_process
    self.load_wsgi()
  File "/usr/lib/python2.7/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi
    self.wsgi = self.app.wsgi()
  File "/usr/lib/python2.7/site-packages/gunicorn/app/base.py", line 67, in wsgi
    self.callable = self.load()
  File "/usr/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 52, in load
    return self.load_wsgiapp()
  File "/usr/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp
    return util.import_app(self.app_uri)
  File "/usr/lib/python2.7/site-packages/gunicorn/util.py", line 350, in import_app
    __import__(module)
  File "/usr/lib64/python2.7/site-packages/gevent/builtins.py", line 96, in __import__
    result = _import(*args, **kwargs)
  File "/v/google/cloud/storage/testbench/testbench.py", line 833, in <module>
    application = wsgi.DispatcherMiddleware(
AttributeError: 'module' object has no attribute 'DispatcherMiddleware'
[2020-02-09 23:49:32 +0000] [3006] [INFO] Worker exiting (pid: 3006)
[2020-02-09 23:49:32 +0000] [2999] [INFO] Shutting down: Master
[2020-02-09 23:49:32 +0000] [2999] [INFO] Reason: Worker failed to boot.

Fixed in #3377


dbus-broker: 34 -> 35

Diff: https://github.com/bus1/dbus-broker/compare/v34...v35
Description of changes
Fixes startup crash.
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Going to merge this because the failure mode is very bad.


Question on Integrator parameters (for documentation)

Hi bsavery, I had some in depth questions on some of the integrator parameters.  The Renderman reference docs are good, but they do not sufficiently explain the behavior of several settings.  I was hoping either you or someone you know at Pixar could help me out so I can get it right for this exporter's documentation..........
numIndirectSamples: I'm under the impression that if this is increased past 1, every camera ray will spawn multiple rays at a surface point.  What are the benefits of doing this?  Also, would the bxdf split the rays into different types?  Say for instance the numIndirectSamples is set to 3, then a Disney bxdf with a specular and diffuse component is hit, would there end up being two diffuse rays and one specular ray sent out?  Or vice versa depending on the level of specularity?  The documentation seems to say this is the case, but I wasn't certain.
numDiffuseSamples (and specular, subsurface, etc......): My understanding is that when the sampleMode is set to 'manual' these controls come into effect.  My question is on how the rays spawn.  For every surface that is hit, are all the ray types created, or only the ray types that correspond to the surface?  For instance, you had this scenario:
numDiffuseSamples: 3
numSpecularSamples: 2
numRefractionSamples:3
A camera ray then hits a diffuse surface.  Would only a diffuse ray be spawned, or would all three types spawn?  The documentation makes it seem like the latter case, which if true seems incredibly inefficient and wasteful.
Sorry for the long post.  I feel that any attempt to document these settings should be as thorough as possible, given how complex they are.

Great questions.  And they're actually very related.  The answer to both questions is in the sampleMode setting:
"sampleMode
Controls the strategy for how indirect ray counts are apportioned between diffuse vs. glossy vs. specular Bxdf lobes. Valid values for this parameter are: "bxdf" or "manual". If "sampleMode" is set to "bxdf", then the Bxdf is responsible for balancing the number of indirect rays that will be spawned at each camera hit point between the diffuse vs. glossy vs. specular lobes, and the total number of indirect rays spawned at each camera hit point will be controlled by the numIndirectSamples parameter. If "sampleMode" is set to "manual" the user is responsible for explicitly specifying the number of indirect rays to spawn per Bxdf lobe at each camera hit point via the numDiffuseSamples, numSpecularSamples, numSubsurfaceSamples, and numRefractionSamples parameters. The default is "bxdf"."
When sampleMode is set to bxdf if balances each indirect sample to what it needs (not one of each).  Of course a bxdf like PxrDiffuse will not use the refractive samples though.
In short the answers to your questions are:
Yes the bxdf balances samples based on certain factors.  So it might be that 3 indirect samples = 2 spec 1 diffuse
If a bxdf doesn't have certain lobes and those samples are set, they are not used.

Perfect.  I assume the line of thinking is that individual diffuse/specular/etc.. rays are cheaper than camera rays to compute?  Cycles has a mode that operates on a similar principle and I believe it's the way Arnold works.

Diffuse/specular rays can be cheaper.  Probably cheaper is the wrong word.  But in a nutshell yes.

Thanks for clearing that up.  It sounds like the options might be more trouble than they're worth.....