IPrima broken

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

[X] I'm reporting that yt-dlp is broken on a supported site
[X] I've verified that I'm running yt-dlp version 2023.03.04 (update instructions) or later (specify commit)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched known issues and the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue
[X] I've read about sharing account credentials and I'm willing to share it if required

Region
world
Provide a description that is worded well enough to be understood
IPrima website has probably recently changed and yt-dlp does not parse it correctly anymore. Downloading video using directly mpd works.
The video used in this report should be accessible from the whole world (quite surely at least EU).
User account needed, I can provide credentials. (However, only working email is required for a creation of the account, so anybody can create own.)
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[ ] If using API, add 'verbose': True to YoutubeDL params instead
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
[debug] Command-line config: ['-u', 'PRIVATE', '-p', 'PRIVATE', '-vU', 'https://www.iprima.cz/serialy/satna/satna/5-epizoda-5']
[debug] User config "C:\Users\jiri\yt-dlp.conf": ['--user-agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36', '--no-check-certificate', '--sponsorblock-remove', 'all', '-o', 'D:\\Downloads\\yt-dlp\\%(autonumber)03d_%(title)s.%(ext)s', '--no-mtime', '--format', 'bestvideo[ext=mp4][height<=1080][fps<=30]+bestaudio[ext=m4a]/best[ext=mp4][height<=1080][fps<=30]/best[height<=1080][fps<=30]/best', '--merge-output-format', 'mkv', '--ffmpeg-location', 'C:\\Apps\\ffmpeg\\bin\\ffmpeg.exe', '--all-subs', '-i', '--compat-options', 'multistreams', '--remux-video', 'mkv', '--add-header', 'accept-language: cs,fi;q=0.9,en-US;q=0.8,en;q=0.7,en-GB;q=0.6', '--add-header', 'sec-ch-ua: "Chromium";v="94", "Google Chrome";v="94", ";Not A Brand";v="99"', '--add-header', 'sec-ch-ua-arch: "x86"', '--add-header', 'sec-ch-ua-bitness: "64"', '--add-header', 'sec-ch-ua-full-version: "94.0.4606.71"', '--add-header', 'sec-ch-ua-mobile: ?0', '--add-header', 'sec-ch-ua-model: ""', '--add-header', 'sec-ch-ua-platform: "Windows"', '--add-header', 'sec-ch-ua-platform-version: "10.0.0"', '--add-header', 'sec-fetch-dest: document', '--add-header', 'sec-fetch-mode: navigate', '--add-header', 'sec-fetch-site: none', '--add-header', 'sec-fetch-user: ?1', '--add-header', 'service-worker-navigation-preload: true', '--add-header', 'upgrade-insecure-requests: 1', '--add-header', 'alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"', '--add-header', 'cache-control: no-cache, no-store, max-age=0, must-revalidate']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version<EMAIL_ADDRESS>[392389b7d] (win_exe)
[debug] Compatibility options: multistreams
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.19045-SP0 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: ffmpeg 4.4-full_build-www.gyan.dev (setts), ffprobe 4.4-full_build-www.gyan.dev, phantomjs 2.1.1
[debug] Optional libraries: Cryptodome-3.17, brotli-1.0.9, certifi-2022.12.07, mutagen-1.46.0, sqlite3-2.6.0, websockets-10.4
[debug] Proxy map: {}
[debug] Loaded 1786 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Available version<EMAIL_ADDRESS>Current version<EMAIL_ADDRESS>Current Build Hash: 5590c57bd0433ed239a2deaaf92e2ad6f37fe50f53664c821575cafe106a9421
yt-dlp is up to date<EMAIL_ADDRESS>[IPrima] Downloading login page
[IPrima] Logging in
[IPrima] Downloading token
[IPrima] Extracting URL: https://www.iprima.cz/serialy/satna/satna/5-epizoda-5
[IPrima] 5-epizoda-5: Downloading webpage
ERROR: [IPrima] 5-epizoda-5: None: Failed to parse JSON (caused by JSONDecodeError('Expecting \',\' delimiter in \'5","Array"(0),"satna\': line 1 column 498 (char 497)')); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
  File "yt_dlp\extractor\common.py", line 694, in extract
  File "yt_dlp\extractor\iprima.py", line 137, in _real_extract
  File "yt_dlp\extractor\common.py", line 1674, in _search_nuxt_data
  File "yt_dlp\extractor\common.py", line 995, in _parse_json
  File "yt_dlp\extractor\common.py", line 978, in __print_error

  File "yt_dlp\utils.py", line 623, in decode
  File "json\decoder.py", line 337, in decode
  File "json\decoder.py", line 353, in raw_decode
json.decoder.JSONDecodeError: Expecting ',' delimiter: line 1 column 498 (char 497)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "yt_dlp\extractor\common.py", line 992, in _parse_json
  File "json\__init__.py", line 370, in loads
  File "yt_dlp\utils.py", line 631, in decode
json.decoder.JSONDecodeError: Expecting ',' delimiter in '5","Array"(0),"satna': line 1 column 498 (char 497)

Should be fixed by changes in https://github.com/yt-dlp/yt-dlp/pull/7216 that are yet to be merged however

Should be fixed by changes in #7216 that are yet to be merged however

Nice to read!

Should be fixed by changes in #7216 that are yet to be merged however

Nice to read! I have tried the change and it helped.

Hmmm, apparently it is broken in a new way again. The provided fix https://github.com/yt-dlp/yt-dlp/pull/7216 does not work anymore.
Following output is from the current master with the fix in question.
pi@raspberrypi:~ $ Scripts/yt-dlp/iprima -vU https://www.iprima.cz/serialy/particka-xxl/prima-particka-2022-xxl/32-epi
zoda-32
[debug] Command-line config: ['-u', 'PRIVATE', '-p', 'PRIVATE', '-vU', 'https://www.iprima.cz/serialy/particka-xxl/prima-particka-2022-xxl/32-epizoda-32']
[debug] User config "/home/pi/.config/yt-dlp/config": ['--user-agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36', '--no-check-certificate', '-o', '~/Downloads/yt-dlp/%(autonumber)03d_%(title)s.%(ext)s', '--no-mtime', '--format', 'bestvideo[ext=mp4][height<=1080][fps<=30]+bestaudio[ext=m4a]/best[ext=mp4][height<=1080][fps<=30]/best[height<=1080][fps<=30]/best', '--merge-output-format', 'mkv', '--remux-video', 'mkv', '--ffmpeg-location', '/usr/bin/ffmpeg', '--all-subs', '--compat-options', 'no-live-chat', '--live-from-start', '-i']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out UTF-8, error UTF-8, screen UTF-8
[debug] yt-dlp version<EMAIL_ADDRESS>[812cdfa06] (source)
[debug] Lazy loading extractors is disabled
[debug] Compatibility options: no-live-chat
[debug] Git HEAD: af1fd12f6
[debug] Python 3.7.3 (CPython armv7l 32bit) - Linux-5.15.87-v7l+-armv7l-with-debian-10.13 (OpenSSL 1.1.1n  15 Mar 2022, glibc 2.28)
[debug] exe versions: ffmpeg 4.1.11-0, ffprobe 4.1.11-0, phantomjs broken, rtmpdump 2.4
[debug] Optional libraries: Cryptodome-3.11.0, brotli-1.0.9, certifi-2021.10.08, mutagen-1.46.0, secretstorage-3.3.1, sqlite3-2.6.0, websockets-10.0, xattr-0.10.1
[debug] Proxy map: {}
[debug] Loaded 1854 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Available version<EMAIL_ADDRESS>Current version<EMAIL_ADDRESS>yt-dlp is up to date<EMAIL_ADDRESS>[IPrima] Downloading login page
[IPrima] Logging in
[IPrima] Downloading token
[IPrima] Extracting URL: https://www.iprima.cz/serialy/particka-xxl/prima-particka-2022-xxl/32-epizoda-32
[IPrima] 32-epizoda-32: Downloading webpage
ERROR: [IPrima] 32-epizoda-32: Unable to extract __NUXT__; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
  File "/home/pi/git/yt-dlp-iprima-fix/yt_dlp/extractor/common.py", line 708, in extract
    ie_result = self._real_extract(url)
  File "/home/pi/git/yt-dlp-iprima-fix/yt_dlp/extractor/iprima.py", line 137, in _real_extract
    nuxt_data = self._search_nuxt_data(webpage, video_id, traverse='data')
  File "/home/pi/git/yt-dlp-iprima-fix/yt_dlp/extractor/common.py", line 1688, in _search_nuxt_data
    default=NO_DEFAULT if fatal else (None, None, None))
  File "/home/pi/git/yt-dlp-iprima-fix/yt_dlp/extractor/common.py", line 1256, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)

Should be fixed now, please pull the latest updates from the PR branch and verify that downloading from iPrima works again

Should be fixed now, please pull the latest updates from the PR branch and verify that downloading from iPrima works again

Work ok again. Thanks.


Support sqlserver and synapse

Remove the Constant(False) that caused sqlserver to fail

@HenriChabert just to be sure, the Constant(False) that breaks SQLServer was only needed to initialise the or_condition ? nothing more ?

@StanislasGuinel Yep, it was


Add Event Handling guide for Vue.js

Added event handling guide for vue.js guide.

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

Congrats @talkor on your first pull request (PR)! 🎉
Thank you for your contribution to the page! 👍
We're happy to accept these changes, and look forward to future contributions. 📝

Thank you @RandellDawson!
I will definitely contribute again :)


Bug: queries using cached argument values

Description
I've tried the following with both the get_one and get_one_or_none methods, in the context of a Litestar dev (local) environment.
The first query from my user table with an arbitrary kwarg results in fetching the correct result. Querying for a different user thereafter results in SQLAlchemy using a cached argument value. The log below might explain this better:
# initial query
# await user_repository.get_one(id_number="1234567890")

2024-01-16 09:38:45,451 INFO sqlalchemy.engine.Engine SELECT "user".name
FROM "user"
WHERE "user".id_number = $1::VARCHAR
2024-01-16 09:38:45,453 INFO sqlalchemy.engine.Engine [generated in 0.00203s] ('1234567890',)
------
# second query
# await user_repository.get_one(id_number="789")

2024-01-16 09:41:39,580 INFO sqlalchemy.engine.Engine SELECT "user".name
FROM "user"
WHERE "user".id_number = $1::VARCHAR
2024-01-16 09:41:39,581 INFO sqlalchemy.engine.Engine [cached since 174.1s ago] ('1234567890',)

This is across two separate requests with their own AsyncSession instances.
Overriding the method with my own select() resolves the issue.
I don't have a MCVE as this is all part of a greater project, I'll work on something
URL to code causing the issue
No response
MCVE
No response
Steps to reproduce
No response
Screenshots
No response
Logs
No response
Jolt Project Version
0.6.2
Platform

[X] Linux
[ ] Mac
[ ] Windows
[ ] Other (Please specify in the description above)

Funding

If you would like to see an issue prioritized, make a pledge towards it!
We receive the pledge once the issue is completed & verified

I have a feeling this is going to be related to the lambda_stmt

I've finally found the trigger. I've got a listens_for event handler that's modifying query statements - MCVE below
from uuid import UUID

from advanced_alchemy import SQLAlchemySyncRepository
from advanced_alchemy.base import UUIDBase
from sqlalchemy.orm import Mapped, Session, sessionmaker, declarative_mixin, with_loader_criteria, mapped_column
from sqlalchemy import create_engine, Boolean
from sqlalchemy.event import listens_for

@declarative_mixin
class SoftDeleteMixin:
    is_deleted: Mapped[bool] = mapped_column(Boolean())

class User(UUIDBase, SoftDeleteMixin):
    name: Mapped[str]

class UserRepository(SQLAlchemySyncRepository[User]):
    model_type = User

FOO_ID = UUID('ff111ee7-bbf1-4826-93d6-88153765e8b3')
BAR_ID = UUID('ba14ebd3-ac67-4781-ad14-3db91fece8fd')

engine = create_engine("sqlite:///:memory:")
session_factory: sessionmaker[Session] = sessionmaker(engine, expire_on_commit=False)

@listens_for(Session, "do_orm_execute")
def _do_orm_execute(orm_execute_state):
    """Modifies queries globally based on rulesets."""

    # this rule ensures that records won't load if they're soft-deleted
    # unless execution options are set otherwise
    if (
        orm_execute_state.is_select
        and not orm_execute_state.is_column_load
        and not orm_execute_state.is_relationship_load
        and not orm_execute_state.execution_options.get("include_deleted", False)
    ):
        orm_execute_state.statement = orm_execute_state.statement.options(
            with_loader_criteria(SoftDeleteMixin, lambda cls: cls.is_deleted.is_(False), include_aliases=True)
        )

with engine.begin() as conn:
    User.metadata.create_all(conn)

with session_factory() as session:
    repository = UserRepository(session=session)
    repository.add_many(
        [
            User(id=FOO_ID, name="foo", is_deleted=False),
            User(id=BAR_ID, name="bar", is_deleted=False)
        ]
    )
    session.commit()

    foo_user = repository.get_one(name="foo")
    assert foo_user.name == "foo"

    foo_user = repository.get(FOO_ID)
    assert foo_user.name == "foo"

    bar_user = repository.get_one(name="bar")
    assert bar_user.name == "bar"

    bar_user = repository.get(BAR_ID)
    assert bar_user.name == "bar"


Release 3.2.0 (with feature: kube-slack/ignore-pod: "true") not working

Release 3.2.0 (with feature: kube-slack/ignore-pod: "true") not working properly.
Slack notifications are not being sent for pods when trying to apply:

Deployment in any namespace (that creates replicationSet that creates pod eventually)
Pod in any namespace besides default

It only sends slack notifications when applying a pod directly (like in the example) and in the default namespace.
NOTE: i tried to deploy kube-slack on kube-system, default and custom namespace.
node-slack log:
(node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): TypeError: Cannot read property 'kube-slack/ignore-pod' of undefined ...

Release 3.1.1 is working fine

@chribsen

I'm not sure I understand the question right. Are you having problem with ignore-pod or the whole system never worked?
Could you post your kube-slack env options?

i'm having problems with the whole system.
i don't use the "ignore-pod" feature...
but node-slack log is showing the above error anyway.
Have you been able to deploy release 3.2.0 ?, is it working for you ?

Can you please post your deployment manifest?

Its a copy of the example in your README file (nothing spacial):
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: kube-slack
namespace: kube-system
spec:
replicas: 1
revisionHistoryLimit: 3
template:
metadata:
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ""
name: kube-slack
labels:
app: kube-slack
spec:
serviceAccountName: kube-slack
containers:
- name: kube-slack
image: willwill/kube-slack:v3.2.0
env:
- name: SLACK_URL
value: [SOME_SLACK_URL_OF_MY_COMPANY]
resources:
requests:
memory: 30M
cpu: 5m
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
- key: CriticalAddonsOnly
operator: Exists

@omerozery thanks for reporting this issue. It turned out to be that the Kubernetes API omits the annotations object if the Pod doesn't have any annotations (which makes sense). This raised a TypeError because the code was trying to access a undefined value as an object.

Great :) glad i cloud help


Support METADATA extension

There is currently no support for METADATA extension.
Encoding SETMETADATA command and decoding METADATA responses returned for GETMETADATA commands does not seem to be possible currently.

SORT/THREAD is next. Then CONDSTORE/QRESYNC.
METADATA doesn't look too complicated. But the devil may be in the detail. Are you in a position to draft something up? :-)
If not, I can take a look in a few weeks.

Capabilities
capability        =/ "METADATA" / "METADATA-SERVER"

Command
command-auth      =/ setmetadata / getmetadata

SETMETADATA
; empty string for mailbox implies server annotation.
setmetadata       = "SETMETADATA" SP mailbox SP entry-values

entry-values      = "(" entry-value *(SP entry-value) ")"

entry-value       = entry SP value

; Slash-separated path to entry. MUST NOT contain "*" or "%".
; TODO(damian): astring allows them? Use `Wrapper(AString)`?
entry             = astring

value             = nstring / literal8

GETMETADATA
; empty string for mailbox implies server annotation.
getmetadata       = "GETMETADATA" [SP getmetadata-options] SP mailbox SP entries

getmetadata-options = "(" getmetadata-option *(SP getmetadata-option) ")"

; tagged-ext-label and tagged-ext-val are defined in [RFC4466].
; TODO(damian): See discussion in https://github.com/duesee/imap-codec/pull/417
getmetadata-option = tagged-ext-label [SP tagged-ext-val]

entries           = entry / "(" entry *(SP entry) ")"

; Used as a getmetadata-option
maxsize-opt       = "MAXSIZE" SP number

; Used as a getmetadata-option
scope-opt         =  "DEPTH" SP ("0" / "1" / "infinity")

Response
; empty string for mailbox implies server annotation.
metadata-resp     = "METADATA" SP mailbox SP (entry-values / entry-list)

entry-list        = entry *(SP entry)

response-payload  =/ metadata-resp

resp-text-code    =/ "METADATA" SP "LONGENTRIES" SP number /
                     "METADATA" SP ("MAXSIZE" SP number / "TOOMANY" / "NOPRIVATE")

imap-codec doesn't do anything with connections. It only cares about parsing an input (and may return an error.) Connections will be handled by imap-flow. Later, we'll have a higher-level library based on imap-flow that will be similar to async-imap (but based on a different operational model, libraries, etc.) Spoiler: IDLE will work better, it's cancellation-safe, you can use select!, etc.
Still, short answer: no.
I'm not even sure how tolerating garbage in IMAP should work. IMAP doesn't really have "tokens" we could detect. The go-imap maintainer tried to tokenize the IMAP stream in v1 and gave up. (I hope I paraphrase him correctly.)
Thus, the best one could do is to detect lines and literals. But even then, this is asking for security issues.
Do you have examples of servers sending garbage? I don't mean like "unknown codes" or something that can be detected. But things similar to your GARBAGE response.

Thoughts:

Most recent example is mail.163.com sends * STATUS "INBOX" () response which is explicitly prohibited by grammar which says status-att-list is non-empty.

That's unfortunate. The workaround is non-trivial because it would either require allowing an empty list (which would spread the incompatibility) or dropping the message (which would require additional logic).
Was this already reported to mail.163.com? Can't they just stop sending this?

Another example was outlook server adding whitespace at the end of the line.

We should publicly report it to Microsoft. Workaround is easy and can be done w/o the risk to reproduce the fault (or changing semantics).

Hey @link2xt! Do you have an example how you use the metadata extension? I'm having a bit of a hard time figuring out how to present the entries to usere.
Currently, it's just an astring. But it could be a PathBuf, Vec<Thing>, enum Entry { Private(...), ...  etc.
The RFC is not totally clear to me. Any suggestions or experience?

Small update @link2xt: I talked with Arnt Gulbrandsen and asked him about ignoring/dropping bad messages. In practice, it may be safe to consume a line, see if it ends with {...}, if so, consume a literal, consume a line, see if it ends with {...}, if so, ... w/o doing IMAP parsing at all.
Funnily, I used this (seemingly hacky) approach already when implementing a server¹. But I changed it due to the danger of ambiguities. There are cases where {...} at the end of a line doesn't necessarily mean "literal", e.g., when { and } is used in a Text. But the insight is that these cases are rare, and, more importantly, can be reliably detected. It seems this is one of the many "undocumented truths" about IMAP and extensions stick to it.
TLDR;
Assuming that we can realiably detect literals means that we can split an IMAP stream into fragments w/o doing IMAP parsing at all.


remove covar dissipation

covar dissipation is used only for diagnostics, as the equation is solved implicitly

Bors r+


Defining importer function gives Abort trap: 6 error

By simply defining an importer function an Abort trap: 6 gets thrown whenever I attempt to run anything with an import.
@import "testimport";
.test {
  color: #000;
}

var sass = require('node-sass'),
    path = require('path');

sass.render({
    file: path.resolve(__dirname, './test.scss'),
    outputStyle: 'compressed',
    success: function (css) {
        // the result string
        console.log(css.css);
    },
    error: function(err) {
        console.log(err);
    },
    importer: function(url) {
        return {file: url};
    }
});

@am11: First let me be clear: I really think the problem is not in libsass but with (the usage of) libuv.  So here my uneducated guesses:
The error can also be avoided if this line in sass_free_context_wrapper gets commented out: free(ctx_w);. But I also don't see why this should error out (it seems valid to deallocate the memory here). Next observation was that commenting out uv_async_init ... in binding.cpp also "avoids" the crash. I don't know any details about libuv, but I think I know what it should be doing to get this working in an async manner. So I started to wonder where you actually "terminate" the "intermediate" thread. The google search on this lead me to the conclusion that you may miss some uv_closecalls ...
I guess that's as much as I want to dive into the whole libuv stuff. But I'm pretty convinced that the cluprit is somewhere in there. But I also could be totally wrong here!
As a side note: You should be aware that uv_work_t, uv_mutex_t, uv_cond_t and uv_async_t are all direct members to (sass_context_wrapper) ctx_w. You seem to pass a lot of pointers to these structs (which is valid) to the internal functions of libuv; ie. &ctx_w->async. Once you free ctx_w, these pointers will become wild pointers!

@mgreter, thanks for looking into it.
You are right about uv_close, and this was the first thing which @txdv pointed out. I had that fixed with this commit: https://github.com/am11/node-sass/commit/35a82abc79dfd69b265da1751ed8d99e0359c4c9#diff-672b939c4bdf28c42fc7ba5da56105dbR240.
Now with the tip of my master branch, I generated two different sets of logs on Ubuntu:
Valgrind: https://gist.github.com/am11/6cfcebdef05e3751f16d#file-valgrind-log-L151
strace:    https://gist.github.com/am11/ee8e8e1fa2bf39516c15#file-strace-mocha-log-L7680
Both captured the SIGSEGV thrown after running a specific stat-related test and free()'ing the memory.
At libuv IRC channel, someone suggested me to change calloc call with C++ style memory allocation (sass_context_wrapper* ctx_w = new sass_context_wrapper;) and then in dtor, use C++ style delete to deallocate ctx_w, since C++ takes ref tracking into account (save the masses from double-free()'ing and considered luxury over C in this regard). But it did not work in this scenario, as libsass require us to pass C-style pointer(s) and uses free() to deallocate them, which C++ pointers on free() throw 'invalid pointer' (at least with glibc).
There is another odd behavior i'm facing when dealing with CLI. I think they might be related (implicitly?). Besides having uv_async_send, uv_cond_wait, uv_mutex, it seems like libuv require some kind of a "push" or another signal to run. According to the docs, uv_async_send runs at least once! But in this case either the thread is sleeping or there is some kind of a deadlock.

You should only free the memory from the uv_close callback.
void uv_close(uv_handle_t* handle, uv_close_cb close_cb)

Can for example be done with uv_close((uv_handle_t*)&ctx_w->async, free);

@kkoopa, thanks for your advice. I have applied this patch locally: https://gist.github.com/am11/6b227670e5a827ed2c15.
However, the status of npm tests on Ubuntu is same (segmentation fault after running first stats test and just before starting the next one).

Hello @browniefed, the TravisCI build is now passing and we will release v2.0.0 :soon:'ish.
I can confirm that the build is pretty ok on both Linux and Windows.
Could you please give it another try (with my master branch) on OSX and confirm if the issue is fixed there?  :)

Our requirement is bit different and unfortunately that cannot be accomplished by the pure-nan solution. Here is the proof-of-concept how it would look like in pure nan terms: b2da1c7. But it throws exception at NanAsyncWorker ctor, when nan tries to NanScope() on the libsass' parser thread (importer_callback). We were facing this exact issue with double lock (our first approach), and hence we had to use uv_async_send.
Perhaps it is possible with something other than NanAsyncWorker, which I couldn't figure out from examples and elaborated docs.

@browniefed, I do not have Mac and unfortunately I cannot test darwin binary at this point. So v2.0.0 would probably not be stable for Mac. We will keep this issue open, so in future, anyone with OSX can debug and spot what is wrong there.
Nonetheless, we are at a much better place where we were 10 days ago. So thanks again for reporting this issue! :)

This is fixed by 0720fa8 and ff53926 via #615.
All tests are passing on Mac now.
@browniefed confirmed it!
Once again, thanks for everyone who helped us pulling this one off.  :+1:  :tada:

I just updated to the latest node-sass master, but I still get Abort trap: 6 when I define an importer function. On OS X 10.9.5.

@callumlocke could you say anything about the process? Did you build custom, or did you let it install the binaries off of node-sass-binaries?

I just did git pull to get the latest code, then npm install. I didn't do
anything custom.
It works fine until I define an importer function.
On Mon, 19 Jan 2015 at 17:29, Jason Brown<EMAIL_ADDRESS>wrote:

@callumlocke https://github.com/callumlocke could you say anything
about the process? Did you build custom, or did you let it install the
binaries off of node-sass-binaries?
—
Reply to this email directly or view it on GitHub
https://github.com/sass/node-sass/issues/586#issuecomment-70530778.

@callumlocke please follow this
Rebuilding binaries

Node-sass includes pre-compiled binaries for popular platforms, to add a binary for your platform follow these steps:

Check out the project:

git clone --recursive https://github.com/sass/node-sass.git
cd node-sass
git submodule update --init --recursive
npm install
npm install -g node-gyp
node-gyp rebuild  # to make debug release, use -d switch

awesome, thanks


Code Quality: Convert Multiple Localized Strings to ICU Message Format | Stage Three

Resolved / Related Issues
To prevent extra work, all changes to the Files codebase must link to an approved issue marked as Ready to build. Please insert the issue number following the hashtag with the issue number that this Pull Request resolves.

From #15503

TODO list: https://github.com/files-community/Files/issues/15503#issuecomment-2138404595
Stage three
☑ PropertiesFilesAndFoldersCountString ----> PropertiesFilesAndFoldersCountString

https://github.com/files-community/Files/blob/af0ab75334fc38273042201bc73119dd4e470b26/src/Files.App/Strings/en-US/Resources.resw#L471-L473

☑ PropertiesFilesFoldersAndLocationsCountString ----> PropertiesLocationsCountString

https://github.com/files-community/Files/blob/af0ab75334fc38273042201bc73119dd4e470b26/src/Files.App/Strings/en-US/Resources.resw#L474-L476

Test results

Code wise good.
We have three extension methods:

GetLocalizedResource
GetLocalized
GetLocalizedFormatResource

This is redundant, could they be merged?

Please!

After rename to global one GetLocalized

It looks like the item count is no longer showing on my end.


[CITY-0.0.26] Using Link with a route that includes a parameter cashes Qwik or Vite

Qwik Version
0.0.39
Operating System (or Browser)
Fedora 36, Firefox 103
Node Version (if applicable)
16.14.0
Which component is affected?
Qwik City
Expected Behaviour
To be able to navigate to following route:
services/[service_id]/edit/index.tsx
with the following Link:
<Link href="/services/ID_GOES_HERE/edit">Edit</Link>

And not only with:
Edit

Actual Behaviour
The introduction of Link component is great addition to Qwik City as it means apps that depend on live-connections don't have to rebuild the logic.
In using it with the scenario explained in "Expected Behaviour", Vite or Qwik ending up crashes with following exact details:

Running an app that contains following directory path: services/[service_id]/edit/index.tsx.
Browsing to localhost:5173/services/SERVICE_ID/edit works fine.
Browsing to localhost:5173/services which enlists all services and uses Link components to link to edit page, then clicking on any of those Link components would not result in any change.
Browsing to localhost:5173/services/SERVICE_ID/edit now shows white page with no error logs in Qwik console or browser console.
To get app to work back fine, Vite build has to be re-triggered by updating a file, or restarted completely, otherwise accessing localhost:5173/services/SERVICE_ID/edit would continue to show blank white page.

Additional Information
No response

Thanks for opening the issue. Would you be able to create a minimal repo case to help me understand? You can use this stackblitz to fork from https://stackblitz.com/edit/vitejs-vite-mfpvdp?file=src%2Froutes%2F[...skuId]%2Findex.tsx Thanks

I think this may have been fixed in the latest releases. Please reopen if you're still experiencing issues, thanks.


Custom WebAppContext

I'm trying to integrate Sitemesh 3 with incoming Apache Struts version 7.0.0, yet there is no way to provide either a custom WebAppContext (to be able to override getPath()) or some other mechanism to select current path.

Hello @lukaszlenart,
Are you able to provide a very basic runnable sample application?

Here is an example app and PR trying to play with different decorators for different paths - Struts 7 isn't released yet and I temporary resolved issue by setting
request.setAttribute(RequestDispatcher.FORWARD_SERVLET_PATH, finalLocation);

see WW-5463 and the PR


Feature: Redis streams max length

Any chance for getting capped redis streams or am I missing them and they are already implemented somewhere. In the src it seems like the parameter is not passed.
https://github.com/airtai/faststream/blob/b71505b7f538ffa7add5d3bef11c4692b95c13cf/faststream/redis/producer.py#L119
Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
I would like to write to my stream with a set max length.
Feature code example
Maybe have a max_len variable in the publisher decorater?
@broker.subscriber(stream="Input")
@broker.publisher(stream="Output", max_len=200)
async def on_input_data(msg: RedisMessage, logger: Logger) -> SomeType:
    ....

Describe alternatives you've considered
None
Additional context
Redis doc

@4ydan I implemented this in another way. You should use StreamSub object to specify any stream-specific options
@broker.publisher(stream=StreamSub("Output", max_len=200))
async def on_input_data(msg: RedisMessage, logger: Logger) -> SomeType:
    ....


Facebook resources dont load

Facebook style resources dont load when running application.
App instantly crashes with the follow error
Java.Lang.NoClassDefFoundError: Failed resolution of: Lcom/facebook/R$style;

So seems this was just a bad install from nuget, re-install and problem solved :|


bug: HTML5 Audio controls disappear when using ion-slides on iOS 13

Bug Report
Ionic version:

[x] 4.x
Current behavior:

User has an app with a series of ion-slides, each one containing an audio player.  The first slide shows a normal audio player with controls and a time bar.  Subsequent slides do not have the time bar.  This is seen on multiple devices running iOS 13 (works in iOS 12 and Android).
Expected behavior:

The audio players on each slide should have the same controls as the first slide.
Steps to reproduce:

Make a simple app with multiple ion-slides.  Put an HTML5 audio player with the controls attribute set on each slide.  The first slide will show an audio player with pause/play button, and the time control slide.  Subsequent slides will briefly show the time control slide, but it will disappear leaving only a play/pause button.
Related code:

Ionic:
Ionic CLI                     : 5.2.3 (/usr/local/lib/node_modules/ionic)
Ionic Framework               : @ionic/angular 4.11.1
@angular-devkit/build-angular : 0.801.3
@angular-devkit/schematics    : 8.1.3
@angular/cli                  : 8.1.3
@ionic/angular-toolkit        : 2.0.0
Capacitor:
Capacitor CLI   : 1.1.1
@capacitor/core : 1.1.1
Utility:
cordova-res : 0.6.0 (update available: 0.8.0)
native-run  : not installed
System:
NodeJS : v12.12.0 (/usr/local/Cellar/node/12.12.0/bin/node)
npm    : 6.9.0
OS     : macOS Catalina

Thanks for the issue. I am going to close this as this is not a bug in Ionic Framework. I was able to reproduce this outside of Ionic (and Swiper): https://codepen.io/liamdebeasi/pen/zYYNrGN. I believe this may be a bug in Safari 13/WebKit.

Yes, I see that as well.  Thanks, Liam, for looking into this from an Ionic perspective and putting together the codepen.  Hopefully I can find an answer elsewhere to the actual root cause.

On Oct 22, 2019, at 4:16 PM, Liam DeBeasi<EMAIL_ADDRESS>wrote:
Thanks for the issue. I am going to close this as this is not a bug in Ionic Framework. I was able to reproduce this outside of Ionic (and Swiper): https://codepen.io/liamdebeasi/pen/zYYNrGN https://codepen.io/liamdebeasi/pen/zYYNrGN. I believe this may be a bug in Safari 13/WebKit.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/ionic-team/ionic/issues/19714?email_source=notifications&email_token=ANEXIQIDSRDJ2PRAOK62MZ3QP4DMFA5CNFSM4JC5DBHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEB54XFY#issuecomment-544983959, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANEXIQKMAQ3VUNOQTIHYJSTQP4DMFANCNFSM4JC5DBHA.

I will likely be submitting an issue on the WebKit bug tracker 👍

Ok, sounds good.  Thanks!

On Oct 22, 2019, at 5:29 PM, Liam DeBeasi<EMAIL_ADDRESS>wrote:
I will likely be submitting an issue on the WebKit bug tracker 👍
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/ionic-team/ionic/issues/19714?email_source=notifications&email_token=ANEXIQPPV3T7SE2LSDBA2ZDQP4L5VA5CNFSM4JC5DBHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEB6FFXA#issuecomment-545018588, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANEXIQK6VP35VYVZWMCWKBTQP4L5VANCNFSM4JC5DBHA.


unit testing

For unit tests:

[x] Try to get 100% coverage

[x] Double check all cases are covered, including normal, edge, and error cases

Coverage went to 100%


support  the ternoa(CAPS) network custom type json file

could you provide a  custom type json file for ternoa network?

@raojianli Hey, this needs to be done by yourself


Schedules with Parameters

Summary
ParameterExpressions are supported in Circuits. This PR adds support in Schedules, too. Closes #3384.
Details and comments
Immediate follow up:
https://github.com/Qiskit/qiskit-terra/compare/master...lcapelluto:add-parameters-attribute?expand=1

efficient assignment
parameters and is_parameterized attributes
error if assigning parameter which doesn't appear in schedule

Follow up work:

drawing
ParameterExpressions with complex
Support ParameterVector assignment
parameterized durations

Context:

This is the first step towards deprecating ParameterizedSchedules, which will just become part of Schedule.
This work is in support of Pulse Gates: circuit parameters can be assigned, and when that happens, parameterized calibrations also need to be assigned. In the future, we should be able to assemble unbound calibrations where the parameters will be bound according to the Gate instruction parameter values.

@ewinston @taalexander Very helpful first review! Responded


Bug: user apparently is undefined

Describe the bug
Hi, I can login to the app with my github user just fine, but can't really do anything.
When I go to workspaces, it requests https://app.opensauced.pizza/workspaces/undefined

If I go to edit profile, all fields contain undefined. Trying to edit the profile also fails.

I tried to delete my account, but I can't

Steps to reproduce
I don't really know. I created my account long ago, but it has been like this from the begining.

Thanks @tutkli. We have an issue looking into account deletion. Try logging in again

Thanks @brandonroberts ! I'm able to use the app now :)


Clearer output on index strategy, determined source index and indexes being queried for uv pip install

Platform
➜ uname -a
Darwin FA-3620-MBPRO14 23.5.0 Darwin Kernel Version 23.5.0: Wed May  1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000 arm64
➜ uv --version
uv 0.2.11 (44041bccd 2024-06-11)

Issue
When running uv pip install for a given package (or multiple via -r requirements.txt in my case) it would be useful as an end-user for the determined source index for the given package to also be output as well as the indexes being queried.
➜ cat ~/.config/uv/uv.toml
[pip]
extra-index-url = ["https://private.index1/simple", "https://private.index2/simple", "https://pypi.python.org/simple"]

Initally my index list looked like this ^.
➜ uv pip install python-geohash
  × No solution found when resolving dependencies:
  ╰─▶ Because only python-geohash==0.8.5 is available and python-geohash==0.8.5 has no wheels are available with a
      matching Python ABI, we can conclude that all versions of python-geohash cannot be used.
      And because you require python-geohash, we can conclude that the requirements are unsatisfiable.

No compatible package found since this would just be querying https://private.index1/simple but this wasn't obvious to me based on the output. Having this determined source index for this package output inline would have been helpful here, since I was uninformed of changes to index priority/behaviour in uv vs. pip.
➜ uv pip install python-geohash --index-strategy unsafe-best-match
Resolved 1 package in 794ms
Installed 1 package in 4ms
 + python-geohash==0.8.5

To replicate something close to pip's behaviour I used --index-strategy unsafe-best-match. Having the determined source index as well as the indexes that are being queried (for both unsafe index-strategies) would be useful here also. Similar to how pip install <package> will output:
Looking in indexes: https://private.index1/simple, https://private.index2/simple, https://pypi.python.org/simple
Collecting <package>
  Downloading <index>/<package>

There was increased confusion around this issue due to being uninformed of the changes within uv vs. pip regarding priority of indexes and default index strategy. I had expected all indexes to be queried similar to pip's default behaviour but the output above lead me to believe I was experiencing an access/auth/compatibility resolution problem. IMO this would be a sensible addition to make these uv-specific changes clearer to end-users as well as reduce troubleshooting required for instances where package sources could be modified (e.g. overlapping config files, env vars added in pipeline processes etc.).

Thanks for the writeup! I think roughly the idea here would be to add hints to the unsatisfiable resolution when "all" versions of a package cannot be used and there are multiple package indexes.


Create navigation for resources in header

Create navigation to reach particular resources quickly.

Hey, I would like to do this.

it already has a navbar . What more do we have to add?

under resources, a further dropdown menu can be added to access particular resources quickly. Like -

Icons
Ui illustration
CSS generators
and so on

@harsitagarwalla187 Okay, I'm assigning it to you.

@yashikabhargava  Okay

@yashikabhargava  you assigned it to Heismanish

Yes, I'm sorry I mentioned you by mistake. Assigned it to him because he asked first.

Okay

@yashikabhargava, check this out please.

@yashikabhargava  here it is, check it out.

Looking great but please make the dropdown appear under resources and remove the menu as there is no need for that.
Thanks

@yashikabhargava have a look, is it better now.

Yes, looking great. You can go ahead and open a PR.

@Heismanish you closed the PR, are you not working on this issue anymore?

Okay, So you are going to open a new PR?

Sorry I won't be able to do so, because there are some new code has been inserted in the css that's making the navigation button that I added beahve absurdly and I don't have an idea about how to fix so please assign it to someone else.

Sure, No problem.

@yashikabhargava  can you please assign this to me? I want to work on this.

@Laxmankohar Yes, assigning it to you.

Yes, looks great! You can go ahead and open a PR.


Link multiple auth providers

This is the hacky solution- Open alternate signin popup on error catch.

[x] Google
[x] GitHub
[ ] Combine login flow in login.vue and settings.vue page.

Hey @liyasthomas,
Your changes look good to me!
View build log
TravisBuddy Request Identifier: 46036810-59c1-11ea-822e-0bf67ba4204b

Hey @liyasthomas,
Your changes look good to me!
View build log
TravisBuddy Request Identifier: cd435c20-59c3-11ea-822e-0bf67ba4204b

How do I test this commit using the Netlify preview build link? @liyasthomas I press login with Google/Github and a box pops up, and then closes. Should I do it on localhost? Is Firebase Auth setup to allow logins from Localhost?

only production and localhost work with Firebase Auth

only production and localhost work with Firebase Auth

Gotcha! Will take a look :)

@liyasthomas not sure how it was working on your local computer 😄 But I fixed a few scoping issues, and issues with toast notifications. If you notice.. on the live site, if you login; there's no toast that say's "Logged out" (When there should be). However; I fixed that.
This PR should fix any issues I saw.
Note: I didn't look too far into how i18n works in this project, and if a key is missing in one of the lang JS files.. will it fallback to a key in the EN file? That's the only thing I'm wondering, but didn't look into. If there are isssues with users from other countries not seeing toast boxes.. that could be a root cause.
@liyasthomas

Hey @liyasthomas,
Your changes look good to me!
View build log
TravisBuddy Request Identifier: a300c9c0-59d7-11ea-af10-7fd2d08fe4df


Improve settings editor dropdown layout

Fork of https://github.com/Microsoft/vscode/issues/57447
The dropdown with details in the settings editor needs to account for the size of the details view when sizing and positioning itself, and when it needs to layout in an upwards direction, should (probably) have the details on top.

@roblourens
finally back online, FYI my normal schedule ranges from around two to usually around eleven or later.  bit of an odd schedule, just  so you know.  pretty much working on VSC each day.
Is this the first thing you'd like me to work on for September?  I assume no commits during endgame other than the critical bugs?

We've created the release branch for 1.27 now, so commits to master are ok and will go into the September release.

I think this is the best thing to work on right now

If this looks good to you, I will clean and merge.

I think that looks great! 😁

yeah, until it doesn't...  ran into a very odd list focus issue, seems there several ways where the list gets focus as opposed to a list item.  Result is a focus ring on the whole list. I got subscriptions done but still working this. Just so you didn't think I disappeared...


Do not use ftplugin folder

I suggest setting everything that is set in ftplugin/rust somewhere else instead.
My personal use-case is that I sometimes set a custom ft for certain files. Then, LSP lazy-loads. Then, rust-tools lazy-loads. When ftplugin folder is detected, I assume that nvim decides to re-evaluate ft for my file, and it resets.
I'm not sure why it happens, but nevertheless, if I remove ftplugin folder from rust-tools repo, the issue perishes.
I suggest that, since the plugin is designed to work with rust only, suggest users to load it lazily with LSP, or load only for rust filetype, and do not use filetype folder.

Try using the nvim/after/ftplugin to work around this. Will execute after all the plugins are set up.


Test failure on ARMv7

Hello,
I'm getting a "bus error" from testLargeDataWindowOffsets when running the OpenEXR 2.4.0 test suite on ARMv7 GNU/Linux.
Full log available here:
https://ci.guix.gnu.org/log/2znpz2fzjp84kaxzkjv98clpn9pnpb62-openexr-2.4.0

I've reproduced this now. It is a similar problem to issue #452, with non-aligned floats being accessed. It's in the test itself, not in the core library. I will address this by making the test use four bytes of space for every sample value.

Pull Request #598 fixes this and has now been merged


chore: update dependencies for Deno 1.7.1

This PR updates the dependencies for Deno 1.7.1.
Deno 1.7.1 doesn't work well with the latest denopack because the dependency to<EMAIL_ADDRESS>causes the type error while type checking.
I removed that dependency<EMAIL_ADDRESS>by switching the dependency of @rollup/pluginutils from "https://cdn.dreg.dev/package/<EMAIL_ADDRESS>to "https://esm.sh/<EMAIL_ADDRESS>in https://github.com/kt3k/denopack/commit/7ee6ad76c240696b8567a9b16491a5ec14eac78f
While this just works depending on my fork, I'm going to update this PR when https://github.com/denofn/denopack/pull/48 and the above commit are merged in denopack.

I'll reopen when https://github.com/denofn/denopack/pull/48 is ready.


Update Timer.measure() to use DispatchTime instead of Date

As per @weissi on the Vapor discord:
You’re using wall time which isn’t right to measure how long a function ran. Imagine your CPU went to sleep or the user changed the date.
This came up in a discussion around a similar implementation in SwiftPrometheus
Motivation:
This PR aims to avoid scenarios where function durations are messed up due to use of wall time.
Modifications:
Updated Timer.measure() to use a delta of DispatchTime.now().uptimeNanoseconds instead of wall time.
Result:
Nothing for end users, although timing will no longer depend on wall time.

thanks so much @MrLotU

Hm weird that CI didn't trigger 🤔
@swift-server-bot test this please

nice. thanks @MrLotU and @weissi

@ktoso latest release is 1.2.0, this would go into 1.2.1 and marked as patch

I see, thanks for fixing! We should close the 1.0 and other already released milestones -- hope you don't mind if I do that @MrLotU @tomerd ?
Closed the milestones that were released: https://github.com/apple/swift-metrics/milestones?state=closed : 1.0.0, 1.1.0, 1.1.1, 1.2.0


feat: add prometheus metrics evaluation example

Signed-off-by: Shardul Srivastava<EMAIL_ADDRESS>Adds a simple function for fetching metrics from Prometheus and evaluates them against a specified expected value.
Closes https://github.com/keptn/lifecycle-toolkit/issues/65

@thisthat thanks for the review, I have addressed them and also added some error handling which i encountered during testing.

@shardulsrivastava thanks for the PR 👍 I have only a small final Nit to fix

@thisthat addressed the comment.


style: mass list input border color

Thank you for your contribution to the KodaDot - One Stop Shop for Polkadot NFTs.
👇 __ Let's make a quick check before the contribution.
PR Type

[x] Bugfix
[ ] Feature
[ ] Refactoring

Context

[x] Closes #7415
[ ] Requires deployment <snek/rubick/worker>

Before submitting pull request, please make sure:

[x] My contribution builds clean without any errors or warnings
[x] I've merged recent default branch -- main and I've no conflicts
[x] I've tried to respect high code quality standards
[x] I've didn't break any original functionality

Optional

[ ] I've tested it at </ksm/collection>
[ ] I've tested PR on mobile
[ ] I've written unit tests 🧪
[ ] I've found edge cases

Did your issue had any of the "$" label on it?

[x] Fill up your DOT address: Payout

Community participation

[x] Are you at KodaDot Ecosystem Telegram?

Screenshot 📸

[x] My fix has changed something on UI; a screenshot is best to understand changes for others.

Copilot Summary

🤖 Generated by Copilot at 5ab14dd
Fixed a UI bug with the listing cart price input border color and updated the Subsquid API URL for the speck endpoint. These changes improve the user experience and the data accuracy of the ListingCartPriceInput.vue component.

🤖 Generated by Copilot at 5ab14dd

!important fix
border color harmonized
autumn theme restored

pay 20 usd

😍 Perfect, I’ve sent the payout
💵 $20 @ 4.25 USD/DOT ~ 4.706 $DOT
🧗 13rv1SWoLg9Gb3tmvHPZxb7JbVy51BtMziX7k9WQGSJ7Kp3A
🔗 0x19b24218987578782b0f6c2370caebd1baa5f753e9b95dd46e2709ead5821300
🪅 Let’s grab another issue and get rewarded!
🪄 github.com/kodadot/nft-gallery/issues


Error: Unsupported ZIP Compression method NaN

Using NextJS and trying to upload XLXS files and I get the error: Error: Unsupported ZIP Compression method NaN. I can use the XLSX library direct without issue. Also CSV files work just fine. I tried using the component normally and through dynamic load.
const DynamicImporter = dynamic(   () => import("csv-import-react").then((mod) => mod.CSVImporter),   {     loading: () =>
Loading...
,     ssr: false,   } );
              <>                 <DynamicImporter                   modalIsOpen={isUploaderOpen}                   modalOnCloseTriggered={() => setIsUploaderOpen(false)}                   onComplete={(data) => console.log(data)}                   template={{                     columns: [                       {                         name: "First Name",                         key: "first_name",                         required: true,                         description: "The first name of the user",                         suggested_mappings: ["First", "Name", "firstname"],                       },                       {                         name: "Phone",                         data_type: "phone",                         suggested_mappings: ["Phone", "telephone", "tel"],                       },                     ],                   }}                   waitOnComplete={true}                   skipHeaderRowSelection={true}                 />                 <Button type="primary" onClick={() => setIsUploaderOpen(true)}>                   <Icon icon="upload" className={clsx("mr-2")} />                   Upload Contacs                 </Button>               </>
I am not sure how the XLSX library is in use here but seems to be thinking its a zip file.

Hey @iwdwebman, thanks for the issue; we're looking into this now.

@iwdwebman this is fixed in version 1.0.10, thanks again for the report!


Deploy compute of Openstack error

Deploy compute service with template file OpenstackTestLab-Compute-terraform-dev.yml error.

Please check all templates files of the openstack in samples.

I will fix it.

Will be fixed with other userstories.


 Reporting one last time first.
W0924 21:59:40.665513   23332 manuallysampledmetrics.cc:278] ManuallySampledMetrics couldn't flush samples within the 10s deadline: monitoring_streamz::ERROR_STREAMZ_UNAVAILABLE: Streamz wasn't configured to discover the manual sampling servers because you didn't link the streamz library in your BUILD rule. See go/streamz-force-collection#code-samples.
W0924 21:59:40.665563   23332 manuallysampledmetrics.cc:278] ManuallySampledMetrics couldn't flush samples within the 10s deadline: monitoring_streamz::ERROR_STREAMZ_UNAVAILABLE: Streamz wasn't configured to discover the manual sampling servers because you didn't link the streamz library in your BUILD rule. See go/streamz-force-collection#code-samples.
W0924 21:59:40.665574   23332 manuallysampledmetrics.cc:278] ManuallySampledMetrics couldn't flush samples within the 10s deadline: monitoring_streamz::ERROR_STREAMZ_UNAVAILABLE: Streamz wasn't configured to discover the manual sampling servers because you didn't link the streamz library in your BUILD rule. See go/streamz-force-collection#code-samples.
W0924 21:59:40.665580   23332 manuallysampledmetrics.cc:278] ManuallySampledMetrics couldn't flush samples within the 10s deadline: monitoring_streamz::ERROR_STREAMZ_UNAVAILABLE: Streamz wasn't configured to discover the manual sampling servers because you didn't link the streamz library in your BUILD rule. See go/streamz-force-collection#code-samples.
W0924 21:59:40.665587   23332 manuallysampledmetrics.cc:278] ManuallySampledMetrics couldn't flush samples within the 10s deadline: monitoring_streamz::ERROR_STREAMZ_UNAVAILABLE: Streamz wasn't configured to discover the manual sampling servers because you didn't link the streamz library in your BUILD rule. See go/streamz-force-collection#code-samples.
W0924 21:59:47.322119   22811 firmware_indirect_registers.cc:80] Released last reference with existing Open. Performing implicit close-on-destruction.
I0924 21:59:47.453375   22049 uptime_telemetry.cc:139] Successfully updated uptime metric
W0924 21:59:47.476233   22809 firmware_indirect_registers.cc:80] Released last reference with existing Open. Performing implicit close-on-destruction.
I0924 21:59:49.310701   22809 async_driver.cc:847] [/dev/vfio/2 tpu540:pe0:2] Driver closed.
W0924 21:59:49.453362   22809 firmware_indirect_registers.cc:80] Released last reference with existing Open. Performing implicit close-on-destruction.
W0924 21:59:49.463711   22755 firmware_indirect_registers.cc:80] Released last reference with existing Open. Performing implicit close-on-destruction.
I0924 21:59:50.395870   22811 async_driver.cc:847] [/dev/vfio/3 tpu540:pe0:3] Driver closed.
I0924 21:59:50.638586   22809 async_driver.cc:847] [/dev/vfio/1 tpu540:pe0:1] Driver closed.
I0924 21:59:50.697901   22755 async_driver.cc:847] [/dev/vfio/0 tpu540:pe0:0] Driver closed.

Simple repro:
import os
import timeit
import jax
import jax.sharding
from jax.experimental.compute_on import compute_on
import jax.numpy as jnp

sharding = jax.sharding.SingleDeviceSharding(jax.devices()[0])
p_sharding = jax.sharding.SingleDeviceSharding(jax.devices()[0], memory_kind="pinned_host")

@compute_on("device_host")
@jax.jit
def host_fn(gradient, opt_state):
    def true_fn(gradient, opt_state):
        opt_state = opt_state + jnp.sin(gradient)
        delta = opt_state * gradient
        return delta, opt_state

    def false_fn(gradient, opt_state):
        return gradient, opt_state

    return jax.lax.cond(jnp.sum(gradient) > 0, true_fn, false_fn, gradient, opt_state)

def test_fn(gradient, opt_state):
    gradient = jnp.log(gradient)
    return host_fn(gradient, opt_state)

x = jnp.arange(0, 1024*1024, dtype=jnp.float32)
y = jnp.arange(0, 1024*1024, dtype=jnp.float32)
y = jax.device_put(y, p_sharding)

jit_fn = jax.jit(test_fn, in_shardings=(sharding, p_sharding), out_shardings=(sharding, p_sharding), donate_argnums=(0,1))
jit_fn = jit_fn.lower(x, y).compile()

def fn():
    global x, y
    x, y = jit_fn(x, y)
    jax.block_until_ready((x, y))

t = timeit.Timer(fn)
print(t.timeit(10), t.repeat(5, 10))

System info (python version, jaxlib version, accelerator, etc.)
Python3.11, tested on v5p
jax                            0.4.34.dev20240924
jaxlib                         0.4.34.dev20240924
libtpu-nightly                 0.1.dev20240924+nightly

Fixed as of libtpu_nightly==0.1.dev20241010+nightly


browser crashing when opening https://www.codewars.com/trainer/setup

so i have this weird problem everytime i try to logon to the webpage https://www.codewars.com/trainer/setup. my browser seems to be crashing no matter what i do. ive tried changing browser, but the result is still the same. ive tried using mozilla, opera, and chrome. but its no use.

i have save problem.
try Firefox and chrome.

it's fixed already, i upgraded my PC to Win10 and it worked


Expose ability to override dependencies of rules_proto

Problem
We generally need to override url locations of dependencies used by rules_proto.
Solution
Provide overriding of dependencies and maven_dependencies in rules_proto_dependencies.

Not planning to use this approach, we will use the http_archive for downloading the remote artifacts with the correct symbol names to override instead of being explicit on passing parameters to rules_proto


$injector hook for prototypical inheritance

It is currently nigh impossible/impossible to construct a classic prototypical chain with AngularJS constrained components (services, controllers, etc) due to complex restrictions on getting the access to the injection arguments for a given component.
By classic prototypical chain, I mean something akin the following:
function Parent(){
  ...
}

function Child(){
 Parent.apply(this);
 ...
}

Child.prototype = Object.create(Parent.prototype);

Child.prototype.constructor = Parent

With the current setup, in order to provide classic prototypical inheritance, one must create an injector, inject all necessary modules, get all individual injection dependencies for the constructor function of interest, and then proceed to create the prototype chain. This looks like the following (simplified, stripped of IIFEs for readability):
Parent Controller
angular.module('app.parent', [/*dependencies*/]);
angular.module('app.parent').controller('Parent', Parent);

Parent.$inject = [/*some injectable dependencies*/];

function Parent(/*some injectable dependencies*/){
  ...
}

Child Controller
angular.module('app.child', [/*dependencies*/]);
angular.module('app.child').controller('Child', Child);

$injector = angular.injector([ /* necessary modules to have all dependencies */]);
$super = $injector.get('Parent');
$dependencies = [];
$super.$inject.forEach(function(d) { $dependencies.push($injector.get(d)); });

function Child(/*some injectable dependencies*/){
 $super.apply(this, $dependencies);
 ...
}

Child.prototype = Object.create($super.prototype);

Child.prototype.constructor = $super

I am fully aware that it is possible to provide some level of inheritance by using angular.extend(this, $controller('Parent')) in the Child constructor, but as it turns out this creates two objects and does not apply the logic of the Parent constructor on the Child. This can easily lead to some unexpected behaviour.
Unfortunately the solution proposed above does have drawbacks, and I have found myself unable to make it work consistently, due to dependencies declaration order problems (this can be resolved using something like RequireJS, but I'd rather avoid needing to integrate another framework for something as simple as prototype inheritance).
Hence I would like to propose an enhancement to the core of the AngularJS framework: the injector.
I am currently working with Angular 1.5.5, and the injector provides the following API:
      invoke: invoke,
      instantiate: instantiate,
      get: getService,
      annotate: createInjector.$$annotate,
      has: function(name) {
        return providerCache.hasOwnProperty(name + providerSuffix) || cache.hasOwnProperty(name);
      }

My proposition is to modify the injector's instantiate function signature in order to add a thisArg parameter. so that one can specify an argument on which to call the instantiation of the constructor passed to the injector:
function instantiate(Type, locals, serviceName) {
      // Check if Type is annotated and use just the given function at n-1 as parameter
      // e.g. someModule.factory('greeter', ['$window', function(renamed$window) {}]);
      var ctor = (isArray(Type) ? Type[Type.length - 1] : Type);
      var args = injectionArgs(Type, locals, serviceName);
      // Empty object at position 0 is ignored for invocation with `new`, but required.
      args.unshift(null);
      return new (Function.prototype.bind.apply(ctor, args))();
}

would become
function instantiate(Type, locals, serviceName, thisArg) {
      // Check if Type is annotated and use just the given function at n-1 as parameter
      // e.g. someModule.factory('greeter', ['$window', function(renamed$window) {}]);
      var ctor = (isArray(Type) ? Type[Type.length - 1] : Type);
      var args = injectionArgs(Type, locals, serviceName);
      // Empty object at position 0 is ignored for invocation with `new`, but required.
      args.unshift(typeof thisArg === "object" ? thisArg : null);
      return new (Function.prototype.bind.apply(ctor, args))();
}

and by extension, the $controllerProvider.$get $controller function could also receive a thisArg parameter, which could then be passed to the $injector.instantiate call to produce the same effect, all while retaining all core functionalities of AngularJS and not introducing any potential regression.
The reason I have not submitted this as a pull request is because I am curious if anyone actually already found an alternative solution to the problem. I am also curious if the ommission of such a functionality is a design choice from the AngularJS designers.
Let me know what you think!
Cheers

TBH, I don't think that inversion-of-control containers work well with this way of implementing inheritance.
If you don't want/can't use "standard" prototypal inheritance, I think you should manually pass the necessary arguments to Parent.

Hi, I do not want to state the obvious, but did you notice the comment. // Empty object at position 0 is ignored for invocation with new, but required. ?

So, if I understand correctly, you basically don't need $injector.instantiate anyway. You need $injector.invoke (which already supports a self argument): Demo
(Thanks, @lgalfaso, for stating the obvious :smile:)
Does that solve your problem, @p-hebert?

@lgalfaso: I wasn't sure of the meaning of the comment you pointed out - I inferred that null was pushed as the this argument of the Function.bind.apply function.
@gkalpak: I attempted something similar. I must concede that I didn't consider injecting the injector per say, but one of the major problems regarding this method is that it either requires the Parent constructor to be within the same IIFE/scope or to create an external $injector via angular.injector to load the Parent component, which then requires to load manually the module dependencies. The latter can become quickly problematic because it means that as soon as the IIFE is executed, the statement $injector = angular.injector([ /* necessary modules to have all dependencies */]); can produce a race condition with regards to module loading order. (In all honesty I have very little understanding of how to avoid such a race condition).
Let me know if I wasn't clear with my explanation!
Cheers

@p-hebert, I am still unsure how you would use the proposed feature (without having both constructors in the same IIFE. Maybe it would be simpler if you posted the code as you would ideally use it (assuming that the requested feature was already implemented).

@lgalfaso: I wasn't sure of the meaning of the comment you pointed out - I inferred that null was pushed as the this argument of the Function.bind.apply function.

TL; DR
The null value is ignored, as calling new only takes into consideration the type and the arguments, and not this.
Long version:
Calling new is equivalent to calling EvaluateNew with the type and the arguments
http://www.ecma-international.org/ecma-262/7.0/index.html#sec-evaluatenew
This calls Construct with the type and the arguments
http://www.ecma-international.org/ecma-262/7.0/index.html#sec-construct
This calls [[Construct]] with the arguments and newTarget and the type
http://www.ecma-international.org/ecma-262/7.0/index.html#sec-ecmascript-function-objects-construct-argumentslist-newtarget
[[Construct]] creates thisArgument based on newTarget and calls the function body with the arguments.

Alright,
so after reviewing @gkalpak suggestion and doing an MVCE, it turns out that the current features implemented in Angular does support prototypical inheritance like what I am looking for - I will have to look more in depth regarding what makes my application crash with an error Unknown provider: $compileProvider as soon as I have an inheritance tree of height 2 and more.


Support TiDB

Add TiDB test container support.

PTAL @eddumelendez @kiview

One month passed, PTAL.

Hey @Icemap, thank you for the contribution, we did not yet have time to review it, sorry.

Please run ./gradlew :tidb:spotlessApply to fix the spotless errors.

@kiview Thanks for the review. And I got this error https://github.com/diffplug/spotless/issues/834 at Java 17 when I run ./gradlew :tidb:spotlessApply. According to this issue.  I added this line at gradle.properties:
org.gradle.jvmargs=--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \
  --add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED \
  --add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED \
  --add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED \
  --add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED

@eddumelendez Yes, we are not interested to provide R2DBC now.
Thanks for the review. You're soooooo nice and have a lot of patience!

@eddumelendez does this PR need to change .github/labeler.yml / .github/ISSUE_TEMPLATE/enhancement.yaml / .github/ISSUE_TEMPLATE/feature.yaml / .github/ISSUE_TEMPLATE/bug_report.yaml / .github/dependabot.yml ?
[maintainers note] can we automate the check for new modules somehow?

@bsideup Yes, we need to touch those with new modules. I'd suggest we do this ourselves as a follow-up, but I agree, that some automation around this would be very helpful.

Thanks a lot for all your work @Icemap. I saw you recently started to do some more commits. Are we good to go from your side or is there something you want to work on a bit more?

./gradlew :tidb:spotlessApply to fix Spotless, sorry.

Recently commits were to fix CI errors. @kiview

Merged, thanks for the great contribution and collaboration @Icemap 🙌


Replay only carParams state at maximum speed for "1" minute to prime UI for displaying chevron bug and so on.

void ModelRenderer::draw(QPainter &painter, const QRect &surface_rect) {

Didn't work, but a fix upstream might have gone in though:
https://github.com/commaai/openpilot/pull/33788


(DO NOT MERGE) fix: proc_macro_srv: temporary abi fix (rust-lang/rust#84717)

bors r+

bors r+

I think we need to wait for the rustc PR to hit stable before merging this.

We might need this too: https://github.com/rust-lang/rust/commit/92b2894d313b5d514d077bf65560df29cda35d13

Does this PR solve the issue yet? I tried manually merging this PR to use it, but it still resulted in the proc macro server crashing. Is there anything to make this work, at least on my own machine?

We also need at least https://github.com/rust-analyzer/rust-analyzer/pull/9047#issuecomment-852134592.

But that seems to already be a part of latest nightly? I'm trying to use the latest nightly as of right now, and thought merging this PR into master on my PC would work but apparently it doesn't.

It's in the latest nightly compiler, but needs to be ported to that rust-analyzer PR.

https://github.com/yotamofek/rust-analyzer/commit/aeb7b183a2302af968f1110fb3cbd00c76a34974
I made this commit on top of @lnicola 's adaptations to be able to use rust-analyzer with the latest nightly, so putting this here in case it may save anyone a bit of time.

Superseded by #9550


Include directory to better allow namespaced includes

Hi Jakob,
This is the first of two pull requests I'm sending your way. Hope that's ok!
I've noticed that several people are adding an include directory to your forks, so I wanted to propose you use soft links to allow a similar include path style. In this change you'd be able to optionally include using #include "tinyutf8/tinyutf8.h".
Here are a couple forks that have moved your include to a directory:
https://github.com/jwellbelove/tinyutf8/tree/master/include
https://github.com/SignalGarden/tiny-utf8/tree/master/include
As to adding the additional folder, I think it is more common to add a folder named after your library in the include directory to better namespace it when you add the path to the build. Here are similar examples in gtest or boost for creating that namespacing directory:
https://github.com/google/googletest/tree/master/googletest/include
https://github.com/boostorg/assert/tree/develop/include
Curious what you think of this!

I'm working through cross platform issues and just realized soft links don't work in windows. I'll close this for now.

Hi Evan,
Just to follow up on your mesage (Thank you first of all for it).
The reason they have 'include' directories is that thy're outdated, so it was in fact myself who put those files in their directories in the first place 🙈
That is not to neglect your valid point! @iainchesworth took the time to properly major the build system and the overall structure of the repo, where he did exactly what you suggested 😃
Jakob


Enable module execution flow test

Purpose
Re-enable the module execution flow unit test that is disbled after the Project API changes
part of #27446
Approach
Modify proper module structure for test project
Samples
Remarks
Check List

[x] Read the Contributing Guide
[ ] Updated Change Log
[ ] Checked Tooling Support (#)
[x] Added necessary tests

[x] Unit Tests
[ ] Spec Conformance Tests
[ ] Integration Tests
[ ] Ballerina By Example Tests

[ ] Increased Test Coverage
[ ] Added necessary documentation

[ ] API documentation
[ ] Module documentation in Module.md files
[ ] Ballerina By Examples

I have merge the PR since its a blocker for https://github.com/ballerina-platform/ballerina-lang/issues/27529. Will fix above with my fix

I have merge the PR since its a blocker for https://github.com/ballerina-platform/ballerina-lang/issues/27529. Will fix above with my fix


How to store weights as 2-bit values and scaling factors

Hi,
After testing I have my saved model size in MB unchanged. How do you store your trained model as 2-bit values and scaling factors?
Thanks

Simple example how to save quantized values as int8:
import numpy as np

# full precision weights
x = np.random.randn(5000, 5000).astype('float32')
np.save('x.npy', x)  # 96 MB

# quantization
threshold = 0.7
x[x > threshold] = 1.0
x[np.logical_and(x <= threshold, x >= -threshold)] = 0.0
x[x < -threshold] = -1.0
x = x.astype('int8')
np.save('quantized_x.npy', x)  # 24 MB

In case of CNN weights, you have to find an appropriate
data structure to store 2-bit values.
Maybe try numpy.packbits.

Got it.Thanks for the snippet.


Move tensorflow integration

Motivation
Progress optuna/optuna#4484
Description of the changes

Move integration/tensorflow.py and its test from optuna/optuna.

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@de8933f). Click here to learn what that means.
The diff coverage is n/a.

:exclamation: Current head fb8393b differs from pull request most recent head 2b3dd58. Consider uploading reports for the commit 2b3dd58 to get more accurate results

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@          Coverage Diff           @@
##             main     #23   +/-   ##
======================================
  Coverage        ?   0.00%
======================================
  Files           ?      10
  Lines           ?     545
  Branches        ?       0
======================================
  Hits            ?       0
  Misses          ?     545
  Partials        ?       0

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

@gen740 Please resolve the conflict.

@gen740 Please resolve the conflict.


Team Review Ticket For AP Exams Week 2

3/3
The page seems easy to use and their plan for the future was very clear.


/admin/users/password-token not working

The specified route is not working and returns 401 by default. I cannot get any breakpoint to intercept this response after some hours of debugging. So this is all information I can give you.

See https://github.com/medusajs/medusa/issues/7804

solution -> https://github.com/mercurjs/mercur-api-starter/pull/19


Inference

Helllo, how to do inference with MAPF-gpt if I have the map array, positions of agents and obstacles of the map?

Hello! You can set up your scenario using POGEMA, which allows you to specify the positions of agents, targets, and obstacles on the map. If you encounter any issues, feel free to ask for help!

Hello Tviskaron,
I only see this, but no other instruction to assign the values of agents' positions and the targets' positions? Can u pls give me some details for this.
from pogema import pogema_v0, GridConfig
grid = """
.....#.....
.....#.....
...........
.....#.....
.....#.....
#.####.....
.....###.##
.....#.....
.....#.....
...........
.....#.....
"""
Define new configuration with 8 randomly placed agents
grid_config = GridConfig(map=grid, num_agents=8)
Create custom Pogema environment
env = pogema_v0(grid_config=grid_config)

I'm working with pogema_vo, and I've noticed that it doesn't have a save_animation function. What would be the best alternative to achieve similar functionality?
Additionally, I'm encountering an "out of bounds" error with the following setup:
env = pogema_vo(grid_config=GridConfig(agents_xy=agents_xy, targets_xy=targets_xy, map=grid_map))
The map size is (32, 32), and I've ensured that no agent or target has a position index greater than or equal to 32. What could be causing this issue, and how can I fix it?

also this error:   File "pydantic/main.py", line 341, in pydantic.main.BaseModel.init
pydantic.error_wrappers.ValidationError: 1 validation error for GridConfig
map
Mismatch in number of agents and targets. (type=assertion_error)

I believe this notebook from readme.md should help your. It provide both example of using animation monitor and example of creating custom scenarios in POGEMA

@linhlt-it-ee


UI: simplify layout calculation

1.add Rect struct
2.remove many layout variables
3.detect screen width&height dynamically
3.use a single viz_rect  for responsive layout drawing
after refactor:
ui_viz_rx -> viz_rect.x
box_y -> viz_rect.y
ui_viz_rw -> viz_rect.w
box_h -> viz_rect.h
vwp_w -> s->fb_w
vwp_h -> s->fb_h

Nice cleanup, thanks @deanlee!


requires ruby 2.7

cloudconvert-1.0.2 requires ruby version >= 2.7, which is incompatible with the current version, ruby 2.6.6p146

Hi guys, is it possible to make this compatible with older versions of Ruby? I'm currently on 2.6.

Yeah, this prevents usage on JRuby as even the latest JRuby is only 2.6 compatible


WildFlyCamelConfigPlugin silently ignores invalid security namespaces

If a matching security subsystem namespace cannot be found within standalone.xml. this IMO is an error condition and we should be throwing an exception.

Think I misunderstood how this works. If you have multiple profiles, then there may not be a security subsystem present so the current implementation seems ok.


Analysis.run should return final state of data, for output printing that always happens

This actually isn't straightforward because each descendant caches its data, so the return value would only include modifications made in the initial analysis.

Yep, nevermind. This doesn't fit the architecture at all.


exp/services/ledgerexporter: Research Spike - Alternative storage methods

This research spike entails exploring alternative ways to store and distribute unpacked ledger metadata (txmeta).
Currently, we've uploaded unpacked txmeta for pubnet through July 2022 to S3. Here are some stats:

~7TB of storage space
~42M separate objects
one directory

With that in mind, there are two avenues to this spike:

Is there a better way to structure these files? For example, we could have a folder for each checkpoint; we could combine all ledgers in a checkpoint into a single file; etc. The task is to come up with some strategies and analyse the pros/cons of each (things like storage/bandwidth costs, etc.)

Is there a better way to distribute these files? A back-of-the-envelope calculation tells us that the majority of the cost of distributing these files comes from egress bandwidth. We also want to let people build & store these files themselves, yet minimize the risk of people using rogue/corrupt/malformed txmeta. The task is to come up with a alternative transport layers and analyse their tradeoffs (for example, BitTorrent gives us bandwidth decentralization and integrity, but it's harder to do incremental updates. We can batch torrents by some ledger range, but is that too hard? What happens when we upgrade the meta format? What about IPFS? Others?? etc.)

Some initial notes I made regarding using BitTorrent:
There are a few benefits:

lower cost, since we wouldn't need to pay S3 storage and egress costs
though we still have to host/seed the torrent data somewhere
decentralization in that everyone shares the bandwidth to keep it up
trust, in that everyone is using one single source of unpacked meta, so you don't run the risk of some 3rd party organization uploading sketchy unpacked ledgers since everyone uses the same torrent (this problem already exists - for ex. one day some other public Horizon goes rogue and starts giving people bad info)

There are some downsides:

a "one time reliance" on SDF as a source, in the sense that people have to trust us about the unpacked meta, but they can also verify it themselves since all of the tools are public (the only barrier is cost).

this downside is bigger: you can't update it in real-time, but we could have a model where every X amount of time, we publish a new torrent that contains some new range of unpacked metas

Thinking about it more, there is one more downside. S3 (or any other cloud file store with an optional CDN) can give everyone very quick (thinking about 100 milliseconds or less) access to any ledger meta. It probably won't be possible with BitTorrent. It will, however, allow easier replication for orgs/people who would like to host fast access archives.

That's very true @bartekn: there's an initial startup time to connecting to the swarm before you can download. If you want more than a handful of ledgers, though, that startup time should be amortized and hardly impact the overall time.


npm run generate / plop / strict mode

Description
Did a fresh install, trying to run a generator, getting:
$ npm run generate route

><EMAIL_ADDRESS>generate /Users/pierre/Code/foo
> plop --plopfile internals/generators/index.js "route"

/Users/pierre/Code/foo/internals/generators/component/index.js:35
    let componentTemplate;
    ^^^

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:374:25)
    at Object.Module._extensions..js (module.js:405:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/Users/pierre/Code/foo/internals/generators/index.js:8:28)
    at Module._compile (module.js:398:26)
    at Object.Module._extensions..js (module.js:405:10)

Steps to reproduce
git clone --depth=1 https://github.com/mxstbr/react-boilerplate.git
npm run clean
npm run generate route
Versions

Node/NPM: v5.4.0 / 3.8.5
Browser: none

@pierrenel Sorry you're running into this.

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode.

From your Steps to Reproduce, it looks like you neglected to install dependencies npm run setup' or just yarn/npm install`. I will assume that is just an omission in the post and that you did actually run this.
Sounds like webpack/babel is failing to transpile ES6 code. I don't have any real insight into why this would happen, but try this and see if that fixes it.

Install Yarn (if you have not already)
Delete node_modules folder.
yarn install

Then try again.

I'm also seeing this issue. Here are the steps that I took before seeing this error.
brew update
brew install yarn
git clone --depth=1 https://github.com/mxstbr/react-boilerplate.git
cd react-boilerplate
npm run setup
npm run clean
npm run generate

I don't see this on Mac OS 10.11 and current dev branch.
What OS and  version of react-boilerplate are you guys running?

Using master branch

I don't know what the real fix should be, but I edited the block in question to include "use strict";. After that, the command npm run generate appears to be working for me.
That was just inside of this block

This is a totally wild guess, but it's weird enough that, hey, why not...
There have been some odd issues that came up relating libs on Mac OS see this discussion.
We have worked through those issues, and are ready to release the next update, 3.4. I'm curious to know how that works for you. But be advised, it's a big change, be sure to read the change log if you have any previous react-boilerplate code. If you're just getting started, 3.4 is the place to start.

Closing due to inactivity


Publish open source libraries to maven with our group id

The following libraries have licenses which will allow us to publish our own binaries

[ ] reporting-common 6.3
[ ] reporting-oda 6.3
[ ] reporting-oda-connectors 6.3
[ ] uk.ac.ed.ph.qtiworks - qtiworks-jqtiplus
[ ] org.jafer - z3950
[ ] org.jafer.zebulun:1.0 ( LGPL v3)
[ ] org.oclc.oai.oaicat:1.5.57 ( Apache )
[ ] org.onemind.jxp.jxp:1.2.0 ( LGPL )
[ ] org.hurl - hurl
[ ] jpf - jpf  ( LGPL , modified source )
[ ] jpf - jpf tools 1.0.5 ( LGPL , modified source )
[ ] org.eclipse.birt - (birt-api, birt-osgi, org.eclipse.birt.api)
[ ] edu.asu.itunesu - itunesu-api-java
[ ] edu.harvard.hul - mets

As per #78, METS should also be publish with this group.  I've updated the initial comment / description of this issue.

Updated the descriptive comment with:

[ ] org.jafer.zebulun:1.0 ( LGPL v3)
[ ] org.oclc.oai.oaicat:1.5.57 ( Apache )
[ ] org.onemind.jxp.jxp:1.2.0 ( LGPL )
[ ] jpf - jpf tool 1.0.5 ( LGPL , modified source )

Added the rest of what needs to go into the local maven repo from #95.

All deps are now on maven central


Abort HTTP connection

I was looking at this example - http://www.baeldung.com/httpclient-cancel-request.
I do not seem to understand how the abort will work when the execute method has NOT yet returned. Please check once again. The abort will only help ignore the response after response is received. That would be more an ignore than an abort

Well, it depends how you define the concept and semantics of abort. My thinking on this is - regardless of how we define it ourselves, the library has the reference definition and since the API is named "abort" - I think calling it the same is appropriate. Hope that helps. Cheers,
Eugen.


Update sbt-github-actions to 0.22.0

About this PR
📦 Updates com.github.sbt:sbt-github-actions from 0.15.0 to 0.22.0
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.github.sbt", artifactId = "sbt-github-actions" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "com.github.sbt", artifactId = "sbt-github-actions" }
}]

labels: sbt-plugin-update, early-semver-major, semver-spec-minor, commit-count:n:2

Superseded by #240.


Rails Admin 1.4.1 crashes app on boot (can't modify frozen Array)

Diff:
diff --git a/Gemfile.lock b/Gemfile.lock
index e6f70205..bb6953d6 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -206,7 +206,7 @@ GEM
       nokogiri (>= 1.5.9)
     mail (2.7.0)
       mini_mime (>= 0.1.1)
-    marcel (0.3.2)
+    marcel (0.3.3)
       mimemagic (~> 0.3.2)
     memoist (0.16.0)
     memory_profiler (0.9.11)
@@ -283,7 +283,7 @@ GEM
     rails_12factor (0.0.3)
       rails_serve_static_assets
       rails_stdout_logging
-    rails_admin (1.4.0)
+    rails_admin (1.4.1)
       builder (~> 3.1)
       coffee-rails (~> 4.0)
       font-awesome-rails (>= 3.0, < 5)
@@ -345,7 +345,7 @@ GEM
     rouge (3.2.0)
     ruby-saml (1.8.0)
       nokogiri (>= 1.5.10)
-    sass (3.5.7)
+    sass (3.6.0)
       sass-listen (~> 4.0.0)
     sass-listen (4.0.0)
       rb-fsevent (~> 0.9, >= 0.9.4)

App boot:
Traceback (most recent call last):
	32: from bin/rails:4:in `<main>'
	31: from bin/rails:4:in `require'
	30: from /Users/vwoo/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands.rb:18:in `<top (required)>'
	29: from /Users/vwoo/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/command.rb:46:in `invoke'
	28: from /Users/vwoo/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/command/base.rb:65:in `perform'
	27: from /Users/vwoo/.gem/ruby/2.5.0/gems/thor-0.19.4/lib/thor.rb:369:in `dispatch'
	26: from /Users/vwoo/.gem/ruby/2.5.0/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke_command'
	25: from /Users/vwoo/.gem/ruby/2.5.0/gems/thor-0.19.4/lib/thor/command.rb:27:in `run'
	24: from /Users/vwoo/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/console/console_command.rb:95:in `perform'
	23: from /Users/vwoo/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/command/actions.rb:18:in `require_application_and_environment!'
	22: from /Users/vwoo/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/application.rb:337:in `require_environment!'
	21: from /Users/vwoo/.gem/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `require'
	20: from /Users/vwoo/.gem/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:249:in `load_dependency'
	19: from /Users/vwoo/.gem/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `block in require'
	18: from /Users/vwoo/.gem/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `require'
	17: from /Users/vwoo/coderpad.io/config/environment.rb:5:in `<top (required)>'
	16: from /Users/vwoo/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/application.rb:361:in `initialize!'
	15: from /Users/vwoo/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/initializable.rb:60:in `run_initializers'
	14: from /Users/vwoo/.rubies/ruby-2.5.0/lib/ruby/2.5.0/tsort.rb:205:in `tsort_each'
	13: from /Users/vwoo/.rubies/ruby-2.5.0/lib/ruby/2.5.0/tsort.rb:226:in `tsort_each'
	12: from /Users/vwoo/.rubies/ruby-2.5.0/lib/ruby/2.5.0/tsort.rb:347:in `each_strongly_connected_component'
	11: from /Users/vwoo/.rubies/ruby-2.5.0/lib/ruby/2.5.0/tsort.rb:347:in `call'
	10: from /Users/vwoo/.rubies/ruby-2.5.0/lib/ruby/2.5.0/tsort.rb:347:in `each'
	 9: from /Users/vwoo/.rubies/ruby-2.5.0/lib/ruby/2.5.0/tsort.rb:349:in `block in each_strongly_connected_component'
	 8: from /Users/vwoo/.rubies/ruby-2.5.0/lib/ruby/2.5.0/tsort.rb:431:in `each_strongly_connected_component_from'
	 7: from /Users/vwoo/.rubies/ruby-2.5.0/lib/ruby/2.5.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
	 6: from /Users/vwoo/.rubies/ruby-2.5.0/lib/ruby/2.5.0/tsort.rb:228:in `block in tsort_each'
	 5: from /Users/vwoo/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/initializable.rb:61:in `block in run_initializers'
	 4: from /Users/vwoo/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/initializable.rb:32:in `run'
	 3: from /Users/vwoo/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/initializable.rb:32:in `instance_exec'
	 2: from /Users/vwoo/.gem/ruby/2.5.0/gems/webpacker-3.5.5/lib/webpacker/railtie.rb:51:in `block in <class:Engine>'
	 1: from /Users/vwoo/.gem/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_dispatch/middleware/stack.rb:76:in `insert'
/Users/vwoo/.gem/ruby/2.5.0/gems/actionpack-5.2.0/lib/action_dispatch/middleware/stack.rb:76:in `insert': can't modify frozen Array (FrozenError)

This seems related to the middleware problems recently.

This is perhaps related to webpacker? https://github.com/rails/webpacker/issues/1700

Dup of #3060.


[Feature Request] Change config directory location

I have a samba share auto connecting on my music folder and basically have 2 versions for my music
-> high quality opus for my laptop as it has a small ssd that are encoded from
-> flacs
I would like to be able to have the config / db folder on the same folder for when I am in my home vs when I am outside so I don't have to rescan my library every time.

Yeah I've been considering a similar feature for a different purpose actually, I have lots of language files that I'd like to have organised but I don't want them in my music library and I don't want Banshee starting Unit 1 of Italian for Beginners when its in Party Mode 😆
So, the idea I've been toying with is to have an "Add Library" feature in the source list instead of just having Banshee defined things like Music, Video, Podcasts and Devices.


how to inspect image request in flutter app

we could use proxy to inspect https request , but how to inspect image request in flutter app such as FadeImage.assetsNetwork???

Hi @wangxingxing123654
It seems you are asking for assistance on personal code. Please see https://flutter.dev/community for resources and asking questions like this,
you may also get some help if you post it on Stack Overflow and if you need help with your code, please see https://www.reddit.com/r/flutterhelp/
Closing, as this isn't an issue with Flutter itself. If you disagree, please write in the comments and I will reopen it.
Thank you