[Frontend] Hint the compiler to hoist loop invariant load

In certain cases, like flash attention, the query in the main loop remains constant; yet, the localload instruction is still utilized to consistently move data from shared memory to registers. On one side, moving the localload instruction out of the loop can decrease the number of instructions. On the other side, moving the localload instruction increases register pressure. Hence, the benefits of moving the localload instruction depend on the architecture, workload, input length, and other variables. Consequently, adding a manual control option to determine whether to move the localload instruction is justified.
The core Triton is a small number of people, and we receive many PRs (thank
you!).  To help us review your code more quickly, if you are a new
contributor (less than 3 PRs merged) we ask that you complete the following
tasks and include the filled-out checklist in your PR description.
Complete the following tasks before sending your PR, and replace [ ] with
[x] to indicate you have done them.

[x] I am not making a trivial change, such as fixing a typo in a comment.

[x] I have written a PR description following these
rules.

[x] I have used an LLM to copyedit my PR description and and code comments.

[x] I have run pre-commit run --from-ref origin/main --to-ref HEAD.

Select one of the following.

[x] I have added tests.

/test for lit tests
/unittest for C++ tests
/python/test for end-to-end tests

[ ] This PR does not need a test because FILL THIS IN.

Select one of the following.

[ ] I have not added any lit tests.
[x] The lit tests I have added are "minimal" -- they contain only the
instructions necessary to exercise the bug.  (Usually running Python code
and using the instructions it generates is not minimal.)

It doesn't seem to be a straightforward hint; and I'm worried about introducing new stuff like this that may not be useful but need to be maintained in both the frontend and the backend.
I'm not sure if other compilers have such an option? If yes, could it be a more general compiler pass instead of something associated with load?

+1 to what Keren said, this looks very ad hoc and doesn't make a lot of sense to me. If user has to set the hoist hint on the load want can't the user directly hoist the load? I think we could consider extending the existing licm pass with some basic alias analysis but having front end hint for it doesn't make sense.

FYI, some updates on extending the MLIR LICM pass: https://discourse.llvm.org/t/speculative-licm/80977/2 . In short, a simple memory analyzer and speculative hosting can be achievable.


Shift + right-click menu not appearing on Firefox/macOS

Firefox 64.0.2 (64-bit)
Holding shift + right-clicking on a selected feature should bring up the contextual menu. In Firefox, the event must not be properly overriden since the default browser right-click menu it shown instead.

In the months since posting this I've figured out what's going on here. I thought that shift+right-clicking itself mattered, but instead only what's selected matters. In Safari and Chrome, shift+right-click just adds the feature to the selection and then opens the context menu for both items. The user can do this in two steps in Firefox with the same result.
Closing this since there's an easy workaround and the v3 toolbar will diminish the need to open this menu with right-click anyway.

After #7992 showed difficulties with splitting specific lines, and since cross-browser parity is an ongoing goal, I'm reopening this. I'm not sure if there's an easy fix or not but we should at least look into it.


Postgres Foreign Tables

After upgrading to 3.6.0 or 3.6.1 dbeaver does not list the tables in the schema defined as FOREIGN TABLE.
Downgrading to version 3.5.9 is ok.

Foreign tables support will be added in the next version.
Thanks for report.

Thanks
What is the release date of version 3.6.2?

You can see approximate release dates in milestone details.
https://github.com/serge-rider/dbeaver/milestones

Hello,
I'm in 6.1.1 (Ubuntu) and I cannot see my foreign tables.
Can you tell me how to display them ? Cannot find it in the doc.
Thanks


Add script to run compatibility tests

A helper script to run server/schema compatibility tests from
a CI platform. It allows the caller to choose a system under
test (sql or nomulus) and to specify the deployed version
by environment (sandbox or production).

This change is

integration/runCompabitilityTests.sh, line 1 at r1 (raw file):

#!/bin/bash

"runCompatibilityTests.sh"


Predicting Remaining Useful Life for a censored observation - Possible Function ?

Hi,
I am currently working on predictive maintenance of a manufacturing component and the metric that is very much useful is the RUL (Remaining useful life) . I am guessing this is useful across domains as well. I have created a function ,a first draft to elucidate the purpose of it. If you feel it is worthwhile to add it in the package, i can raise a PR.
def predict_censored_rul(model, X, duration_survived, df, n_sample=10000):
    ''' Input:
        model - Any model that requires covariates
        X - covariates
        duration_survived - An observation censored time
        df - The dataset
        n_sample - Used for taking a uniform distribution

       Returns:
       A tuple containing the RUL median, RUL standard deviation and the RUL array
   '''
    unconditioned_sf = model.predict_survival_function(X)
    conditioned_sf = unconditioned_sf.apply(lambda c: (c / c.loc[df.loc[c.name, 'T']]).clip_upper(1))
    udf = np.random.uniform(0,1,n_sample)
    prob = list(conditioned_sf.values.flatten())
    index = list(conditioned_sf.index)
    prob.reverse()
    index.reverse()
    rul_hist = np.interp(udf, prob, index)
    return np.median(rul_hist), np.std(rul_hist), rul_hist

Explanation:

First, get the unconditioned survival by passing the covariates for a censored observation.
Get the conditioned survival probabilities .
Now, draw samples from a uniform distribution from 0 to 1 and get the duration for those probabilites
Get the median and the standard deviation.

Usage:
from lifelines import CoxPHFitter
from lifelines.datasets import load_regression_dataset

df = load_regression_dataset()
cph = CoxPHFitter().fit(df, 'T', 'E')
censored_subjects = df.loc[df['E'] == 0]
rul_mean, rul_std, rul= predict_censored_rul(cph, censored_subjects.iloc[[0]], censored_subjects.iloc[[0]]["T"], df)

I know that a lot needs to be modified , if this function is useful for the package. Any pointers regarding that would be useful too.
Thanks

I think this is a good idea. It comes up quite often, and a) isn't obvious what to do, b) requires some advanced pandas/python to solve.


Requested additional characters for Quick Accent.

Description of the new feature / enhancement
Behavior just as now, but with additional selectable characters available.
For the A key, the logical "for all" symbol, the inverted A:   (∀)
For the E key, the logical "there exists" symbol, the inverted E: (∃)
For the P key, the paragraph symbol:  (¶)
Scenario when this would be used?
Useful when discussing mathematical set theory, and citations to reference works.
Supporting information
No response

Hello @Jeepien, this has been fixed a long time ago, so please close this issue.

@jaimecbernardo Hi there, this issue indeed has been fixed.

Thanks for letting us know. Closing the issue 😄


Typo - Repeated Word

Under Reference Architecture -> AKS baseline cluster -> Cluster Access -> Local Accounts
The second sentence has the word "access" twice in a row.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 46723a24-75ac-f6e2-c172-d3827ca0b7d6
Version Independent ID: c975744e-e594-5667-14b3-c38824bbe24c
Content: Baseline architecture for an AKS cluster - Azure Architecture Center
Content Source: docs/reference-architectures/containers/aks/secure-baseline-aks.yml
Service: architecture-center
Sub-service: reference-architecture
GitHub Login: @PageWriter-MSFT
Microsoft Alias: pnp

Thanks for reporting - this issue is under review. This is a Microsoft Internal DevOps Bug ID # 515867

@gregharen Thank you for catching that error in the docs. The PR to fix this issue is merged internally and will go-live in the public docs shortly.


Does needle support dns failovers?

Node http does not and neither does request. Does needle have a way to handle dns round-robin failover and try all ips?

No it doesn't. We'd need to hack some low-level Node.js internals for that, wouldn't we?

@tomas Not really. They've now introduced an option in their dns.lookup function called all: <boolean>. It's false by default but if set to true, it'll return all ips for a hostname. So if the dns lookup is decoupled from the http request, you could fetch all ips and try them sequentially for one that works and fail the entire request if none of them works.

@ScionOfBytes Interesting Idea. Any idea what the API for this might be?
My opinion is usually "if it's possible to do it elsewhere, keep it out of needle", but in this case it's something that has to be integrated into the API.
Lately I've been debating whether it's worth the headache to migrate node-osmosis to something other than needle. This feature might give me reason to stay on needle. It'd probably be a good feature to have on production web scrapers.

My opinion is pretty much the same as @rchipka's (to keep needle nimble), but if this might help make needle more robust and less prone to dns lookup errors, I'm all for it.
I'll dive into this later or tomorrow and see if it can be implemented in a clean way.

@rchipka Ideally this wouldn't need a change in the API as failovers would be handled behind the scenes. Since node introduced the all flag for their dns.lookup function in an opt-in manner, so should needle do the same.  Maybe introduce an opt-in flag in the options in the style of dns_lookup_resolve_all:  <boolean>.
When this flag is passed, needle passes the all flag to the dns.lookup function and sequentially tries all ips before returning.
There's a discussion (now closed) on https://github.com/nodejs/node/issues/708 about this issue and how to handle errors returned from multiple ip tries is something of a concern (https://github.com/nodejs/node/issues/708#issuecomment-255515652) and this (https://github.com/nodejs/node/issues/708#issuecomment-255602369) seems like a way to go. From the point of view of the client, there should only be one server and not multiple ones to worry about. And only if all of them fail should the client even be concerned about handling errors.

Ok, I just wrote an initial implementation here. You can pass a host_ip option to needle which can either be a specific IP address, an array of IP addresses, or 'any', in which case needle will use dns.lookup() with any: true in order to get a list of IP addresses to try sequentially (as with the IP array option).
So far it seems to work pretty well. Check it out and let me know what you think.

@tomas Will test ASAP and report results.

Great, thanks!
On Wed, Jan 25, 2017 at 8:05 AM, Shaun<EMAIL_ADDRESS>wrote:

@tomas https://github.com/tomas Will test ASAP and report results.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tomas/needle/issues/198#issuecomment-275080385, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAApTl-DwcqnbkuqTHRfhtxZZqazcIwlks5rVyx5gaJpZM4Lmzvq
.

--
Fork Ltd.
forkhq.com

ping @ScionOfBytes !


Mac not supported?

Description
If you're suggesting a new feature then just a description will suffice.
Neofetch version
Screenshot
Config file
Verbose log

Run neofetch -vv 2> neofetchlog
Upload the contents of neofetchlog to pastebin, gist or equivalent.

As far as I know it should be, see:
https://github.com/dylanaraps/neofetch/wiki/Installation#macos-homebrew
Also, it would be useful for the developers if you could leave a more descriptive message consisting of more than just the title.

neofetch does support MacOS, but it is a bit bugged right now.
If you have a bug report, please open a new issue.


Deprecate Record.ttl in favour of Record.extra['ttl']

Deprecate Record.ttl in favour of Record.extra['ttl']
Please read #1536 carefully. The current implementation stores a TTL for a DNS Record at two places, depending where you look in the code. This pull requests picks one of them.
I added @property methods to maintain backwards compatibility, so the API remains consistent. However, it DOES change the internal data structure of a libcloud.dns.base.Record.
Description
See #1536.
Status

needs careful review

Also see comment below about the failing unit test. (In my opinion, two of the unit tests are flawed, not the behaviour of this PR).
Checklist (tick everything that applies)

[ ] Code linting (required, can be done after the PR checks)
[X] Documentation (fixed that :) )
[X] Tests.
[ ] ICLA (required for bigger changes)

This seems to open a little can of worms in the unit tests.
There are now 3 failing unit tests, most of which are caused by
The following excerpts are from the current unit tests. Please carefully check if this is really what is intended:
LuaDNS
TTL is set to 13, but is expected to be None when read:
def test_create_record_success(self):
    LuadnsMockHttp.type = 'CREATE_RECORD_SUCCESS'
    record = self.driver.create_record(name='test.com.',
                                       zone=self.test_zone,
                                       type='A',
                                       data='<IP_ADDRESS>',
                                       extra={'ttl': 13})
    # ...
    self.assertIsNone(record.ttl)

DNSPod
The behaviour of DNSPod seems a bit erratic to me. See #1538 for details.
The following unit test now fails:
def test_create_record_success(self):
    DNSPodMockHttp.type = 'CREATE_RECORD_SUCCESS'
    record = self.driver.create_record(name='@', zone=self.test_zone,
                                       type='A', data='<IP_ADDRESS>',
                                       extra={'ttl': 13,
                                              'record_line': 'default'})

Old behaviour
record.ttl == None
record.extra['ttl'] == '600'
New behaviour
record.ttl == '600'
record.extra['ttl'] == '600'
Where '600' is the default TTL for the zone. The extra parameter is completely ignored. This PR exposes this erratic behaviour. Hence, the failed unit test. I'm hesitant to fix this particular bug in this PR (since I'm not familiar how the DNSPod expects the TTL), but I don't want to remove the unit test either.
DurableDNS (now fixed)
DurableDNSTests.test_list_records() fails, which exposes a minor bug in this PR (which is subsequently fixed).
DurableDNSTest set TTL = 3600, then reads the record, which returns '3600'.
The DurableDNSDriver casts this to int for record.extra['ttl'], but not for record.ttl.
Previous behaviour:
record.ttl == '3600'
record.extra['ttl'] == 3600

Original PR:
record.ttl == '3600'
record.extra['ttl'] == '3600'

Final PR:
record.ttl == 3600
record.extra['ttl'] == 3600

Thanks for opening this PR. I added my main comment here - https://github.com/apache/libcloud/issues/1536#issuecomment-752412165.
Overall, I agree with you - there should only be one way of specifying it, but I think that should be record.ttl (as pointed out in that comment, that was actually a plan a while back, but we never realized it).
If you agree about record.ttl being a better API, are you willing to make changes describes here https://github.com/apache/libcloud/issues/1536#issuecomment-752412165?
As describes there, if we want to give our users enough heads up before a breaking change, first release will just need to include a change where all the drivers + code correctly utilize record.ttl, record["extra"] still works, but it emits a deprecation warning and then in the next release fully removing it.

Codecov Report

Merging #1537 (f3da367) into trunk (6b58834) will decrease coverage by 0.00%.
The diff coverage is 88.88%.

@@            Coverage Diff             @@
##            trunk    #1537      +/-   ##
==========================================
- Coverage   83.07%   83.07%   -0.01%
==========================================
  Files         394      394
  Lines       84738    84743       +5
  Branches     9002     9003       +1
==========================================
+ Hits        70399    70401       +2
- Misses      11274    11276       +2
- Partials     3065     3066       +1

Impacted Files
Coverage Δ

libcloud/test/dns/test_dnspod.py
96.91% <ø> (-0.02%)
:arrow_down:

libcloud/dns/base.py
96.52% <83.33%> (-0.76%)
:arrow_down:

libcloud/test/dns/test_base.py
97.05% <100.00%> (-2.95%)
:arrow_down:

libcloud/test/dns/test_luadns.py
96.19% <100.00%> (ø)

Continue to review full report at Codecov.

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

Hi @Kami,
Thanks for your feedback, and patience -- I'm aware that opening both an issue and a PR is a bit more work for you, and you probably have noted that I have a habit to changing the issue or PR while I dive deeper into the issue. I'll try to add a "WIP" (work in progress) tag if I'm not yet happy with the report or PR. You may want to delay your comments till I remove it, to save yourself some time. (And yes, I may sometimes change it even without that tag, once I discover more quirks.)
I'll have a look if I can make a PR with the suggested change. It might require a significant number of changes in the drivers though.
Also, I'll have to think how and when. How to ensure a (mostly) backwards compatible API, and when to make sure this ends up a minor or major release (not a bug fix release).
A second question is if you would want to consider other (perhaps breaking) changes or clarifications.
A few things that come to mind are:

Making the priority an attribute as well. (I'm in doubt. It's fairly common, in use for MX and SRV records, but next thing you know, you'll be adding port, weight, service, and protocol too).
Align the different extra field:

In particular zonomi adds a prio field, while all other drivers use priority as the field name. I prefer consistency here.
Align the use of description (Google), comment (Rackspace) and notes (Zerigo).

Clearly specify the use of trailing dots in both name and data that contain a FQDN. Right now, the name does seems to require a trailing dot (e.g. www.example.com.) A data field that requires a FQDN (e.g. MX, NS, PTR or CNAME) do require a trailing dot in DNS itself, but it seems that most API supported here insist that there MUST NOT be a trailing dot.
Be clear if/how IDN (international domain names) are supported. I kind of suspect that both name and data fields are expected to be punycode-encoded (e.g. xn--bcher-kva.de. instead of bücher.de.).

Thanks for your contribution.
Since this PR hasn't been updated for a long time, I will close it.
If the change still relevant please feel free to re-open this PR (and in that case, please also sync it with the latest trunk).


update os compatibility e2e to vm

Signed-off-by: bell.guo<EMAIL_ADDRESS>What type of PR is this?
/kind feature
What this PR does / why we need it:

update online os compatibility e2e from vagrant to vm
add parameter UserKnownHostsFile to vars config
add kube_version set on offline e2e: rc version, set kube_version: 1.24.7;
no rc version, not set kube_version

self repo CI log: https://github.com/wenting-guo/kubean/actions/runs/3835765482

/lgtm


golint: reduce warnings

#305 Replaced golint with staticchecks.

An assessment of the current code is needed and staticchecks issues should be resolved.

Shall address also this?
go: module github.com/golang/protobuf is deprecated: Use the "google.golang.org/protobuf" module instead.

All PR's included

[ ] ST1005
[ ] ST1019
[ ] S1023
[ ] SA1019
[ ] SA1019
[ ] ST1001
[ ] S1000
[ ] S1034
[ ] S1039
[ ] S1011
[ ] SA4023
[ ] S021, S1038, S1025, SA4009, S1005, SA9003
[ ] SA4004
[ ] SA9005
[ ] SA4006


Allow to set the time waited between two cargo publishs

This adds a command line parameter --publish-grace-sleep that defines how long we wait between two invocations of cargo publish. The default value is 5.

Sorry no one has responded on this.  This could actually help in #218.
There is a part of me that would prefer for this to be an env variable, like RUST_BACKTRACE.   I think part of it stems from this being a bit of a stopgap feature and not wanting to bake it into the CLI and clutter up the help.
@sunng87 or @sebschmi any thoughts on that?

I would be totally fine with an env variable as well.
Has btw anyone made an issue at https://github.com/rust-lang/crates.io/issues about some API feature to poll if a crate is ready?

Has btw anyone made an issue at https://github.com/rust-lang/crates.io/issues about some API feature to poll if a crate is ready?

My understanding is that git is the API; we've just not been able to determine what we are doing differently than cargo when it determines a crate is available.

I made an issue at crates.io now anyways. I think it would be useful to have a simple way to automate crate publishing without complicated hacks.

@epage Do you have any suggestion about the criteria to classify the location of configuration, among cli options, toml files or environment variables?
I think I have a little sense with the difference between cli options and toml files. But for environment variable, I can't tell it from cli options.

@sebschmi you might want to format the code to pass our rustfmt check.

@epage Do you have any suggestion about the criteria to classify the location of configuration, among cli options, toml files or environment variables?
I think I have a little sense with the difference between cli options and toml files. But for environment variable, I can't tell it from cli options.

Im honestly going off of gut feel here and can be completely wrong :)
I think typos is where I;ve started to most formalize my thoughts on CLI inputs:

User / integration relevant settings (e.g. output format): I'm using the CLI at the moment because there are few and defaults are good enough.  I might add user config later.
Repo relevant settings these live in a config file in the repo
Iterative repo relevant settings: I exposed these both on the CLI and in the repo's config file (e.g. excluding files from being analyzed)

So far, I only use env variables to comply with the various CLI colored output standards.
In this case, the wait time doesn't really fit into any of the categories.  This is a workaround for another bug and there isn't anything about this that is repo -specific.  For user-relevant, it sort of is just by how much the user can tolerate failure vs delays.  For integration-relevant, it sort of is to help us with #218 where there is another bug/limitation in our wait logic.
So based on my earlier classifications. this most closely aligns with how I've been using CLI args / user-config.  The reason I'm considering other approaches, like modeling after some crate processes, like RUST_BACKTRACE, is because this is a workaround.  cargo-release does not have a user config file and it already has a sizeable CLI "API" for people to navigate.  I don't see this being something that should have raised visibility and being as formally specified.  This led me to the thought of env variables.

@sunng87  I will keep out of the discussion of this being a CLI argument or env variable. But as soon as you came to an agreement, I will make the necessary changes, also to make it pass the CI checks.

because this is a workaround

@epage sounds good to me. I agree with the idea of putting it into environment variables. cc @sebschmi

I changed the code, and kept the impact of the env variable minimal: I simply directly query it at the // HACK comment.
I did not document this feature, if you want to I can do it.

@sebschmi sorry for late response. I will update document for you.

No worries, thank you very much for merging!


Using Multiple SSH Keys for Multiple GitHub Accounts

We ask that you please be patient as our team works through approving and publishing all articles/tutorials in a timely manner. Allow 1-3 days for a topic to be reviewed and/or approved - allow 3-7 days for an articles to be reviewed and/or published.
Be sure to visit our Resources Page for tools, resources, and example articles to go over.
NOTE: (Please ensure that you have only one open issue + linked pull request at a time. This will ensure that we complete the article in a timely manner from inception to publishing.)
NOTE: We tend to stray away or tend not to publish reviews/comparisons of commercial product offerings.
We're looking for the first 2-3 paragraphs of the article that appropriately summarize what your article will be about.
Using Multiple SSH Keys for Multiple GitHub Accounts
Your title should be descriptive of the article/tutorial. Be Specific. Use keyword research to gain your article higher ranking.
Introduction paragraph (2-3 paragraphs):
GitHub is a code hosting platform for collaboration. It enables people to work on projects from anywhere.
Most GitHub users have a problem with managing multiple GitHub accounts. This article aims to let the user understand how to use SSH Keys with multiple GitHub accounts.
The article will answer several questions, it will address what SSH keys are and how to generate them, how to manage SSH keys, and how to use them for multiple GitHub Accounts.
Key takeaways:

What are SSH Keys
How to manage SSH Keys on GitHub Accounts
What is SSH config and how to set up one
How to use SSH Keys for multiple GitHub Accounts

References:
Please list links to any published content/research that you intend to use to support/guide this article.
Templates to use as guides

How To Guide Template
Software Review Template
Tutorial Template

Seems like a helpful topic - lets please be sure it add value beyond what can be found in the official docs and other blog sites. Lets also make sure that it does not overlap with any existing EngEd articles or incoming topic suggestions (if you haven't already) to avoid any potential article closure. - approved
One important note: Please be attentive to grammar/readability and make sure that you put your article through a thorough editing review prior to submitting for final approval for a quicker publishing process. (There are some great free tools that we reference in EngEd resources.)


refreshAccessToken() needs client secret?

Hello there,
first and foremost, love the package. Extremely useful!
Just one question, according to the docs, refreshAccessToken() needs to have the client secret set. I am wondering why?
According to the Spotify docs themselves, this is not necessary.
I have retrieved the first access token via a lambda function and am not storing the client secret on the frontend, but wanna refresh the token from there.
Is that possible somehow?

Okay, I just noticed that it needs to have the authorization header set...


Pytorch 0.4

Hi roytseng,
Thanks for your Great work! Now I have created a branch for pytorch 0.4. I have solved two issues to make it run on my local machine. This should be the minimum change to be made, though there are still lots of 'deprecated' warnings to remove. Can I pull a request now? Thanks!

Thank you very much ! I have updated the repo to support pytorch0.4 ~


Modern Webpart built using latest spfx version not working on the classic page

[X] Question
[ ] Typo
[X] Bug
[ ] Additional article idea

Expected or Desired Behavior
I have built an angular 1.x webpart application using the spfx 1.4 version. The webpart works in the modern sites pages. It should also work in the classic site pages.
Observed Behavior
The webpart is not working on the classic site pages and I am getting the following error.

[SPWebPartErrorCode.IncorrectBoostrapModule]:
Bootstrap module for web part WebPart.CsTaskBoardWebPart.g_76cddb14_eed9_4284_81a4_b8db3ff64e8c not of the correct type. Make sure to export your web part as 'export default WebPartName'.
***CALLSTACK:
t@https://spoprod-a.akamaihd.net/files/sp-client-prod_2018-05-18.011/sp-classic-page-assembly_en-us_9bd26145452b8a6a140c7ec7a2b736fb.js:201:15770
t@https://spoprod-a.akamaihd.net/files/sp-client-prod_2018-05-18.011/sp-classic-page-assembly_en-us_9bd26145452b8a6a140c7ec7a2b736fb.js:301:9108
......

package.json
  "dependencies": {
    "@microsoft/generator-sharepoint": "^1.4.1",
    "@microsoft/sp-build-web": "^1.4.1",
    "@microsoft/sp-core-library": "^1.4.1",
    "@microsoft/sp-lodash-subset": "^1.4.1",
    "@microsoft/sp-office-ui-fabric-core": "^1.4.1",
    "@microsoft/sp-webpart-base": "^1.4.1",
    "@microsoft/sp-webpart-workbench": "^1.4.1",
    "@types/jquery": "^2.0.48",
    "@types/jqueryui": "^1.12.2",
    "@types/react": "0.14.46",
    "@types/react-addons-shallow-compare": "0.14.17",
    "@types/react-addons-test-utils": "0.14.15",
    "@types/react-addons-update": "0.14.14",
    "@types/react-dom": "0.14.18",
    "@types/webpack-env": ">=1.12.1 <1.14.0",
    "angular": "^1.6.10",
    "react": "15.4.2",
    "react-dom": "15.4.2"
  },
  "devDependencies": {
    "@microsoft/sp-build-web": "~1.4.1",
    "@microsoft/sp-module-interfaces": "~1.4.1",
    "@microsoft/sp-webpart-workbench": "~1.4.1",
    "@types/angular": "^1.6.43",
    "@types/chai": ">=3.4.34 <3.6.0",
    "@types/mocha": ">=2.2.33 <2.6.0",
    "ajv": "~5.2.2",
    "gulp": "~3.9.1"
  }

Can it be because
I was using the 1.4 version for development but the "includeClientSideAssets": true, property was not working in package-solution.json file and was giving error like "not available etc". So I updated all the modules starting with sp including generator sharepoint and the includeClientSideAssets property worked.
I never tested it on classic site pages before so I am not sure updating should cause any problems instead it should solve the issue.
Please tell me how to make the webpart work on the classic site pages.

Masood10, did you figure out a root cause for this issue.  I'm seeing similar issues with a react app on multiple tenants.

there was a custom extension in the classic page and it was loading the jQuery as global and was causing the problem. I also had I duplicate entries in the resources.en.txt file. on removing duplicates it worked.

Closing as OP implies it was fixed.


Can't set TopColor to my choice

In the tutorial you have set the topColor like this
.setTopColor(color(R.color.indigo))
you are sending the color id into some kind of color90 function what is it. And if I try this
setTopColor(R.color.my_custom_color)
it is always showing same dark grey type of color ,

Hi, this is to show that you need to load this color from resources by its
id. Color function is just ContextCompat.getColor(context,
R.color.someColor)
On Apr 25, 2016 5:34 PM, "Sanjeev yadav"<EMAIL_ADDRESS>wrote:

In the tutorial you have set the topColor like this
.setTopColor(color(R.color.indigo))
you are sending the color id into some kind of color90 function what is
it. And if I try this
setTopColor(R.color.my_custom_color)
it is always showing same dark grey type of color ,
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/yarolegovich/LovelyDialog/issues/3

Thank you ,it worked


what are the meaning of 'newlag_v' and 'newlag_h' in DepthFirstStage.py?

I don't understand the lines 210-216 of code in DepthFirstStage.py. Why should we use this formula to calculate newlag_h and newlag_v?

            newlag_h = SX * lag_h \
                       - (input_loops[df_input_loop_X] - n.loop_dim_size[df_output_loop_X] * SX + SX -1)//2 \
                       + input_overlap_X

            newlag_v = SY * lag_v \
                       - (input_loops[df_input_loop_Y] - n.loop_dim_size[df_output_loop_Y] * SY + SY -1)//2 \
                       + input_overlap_Y

For 'input_loops[df_input_loop_X] - n.loop_dim_size[df_output_loop_X] * SX + SX -1', I consider it as FX-1, but why does FX-1 need to be divided by 2?

I think newlag_h/v are used to caculate offset of input tiles for nodes whose out degree > 1, then get effective rows/columns cache number, as mentioned at Fig.8 of the paper https://arxiv.org/abs/2212.05344.


Make module Python 3 compatible

This PR adds Python 3 support to the module. It uses script.module.kodi-six, which is available in the Krypton repository, so this code can be used for script.module.simplecache for Kodi 17 or higher. I have successfully tested this modified version for the Python 3 port of my Kodi plugin plugin.video.srfplaytv.
Why is this necessary? Kodi 19 will be deployed with an Python 3 engine. To make sure that Kodi plugin developers can test if their plugins run on Python 3, it is necessary that their plugin's dependencies also support Python 3. This PR takes care of that.

This would really help me a lot to make my Kodi addons Python 3 compatible without the need to introduce complicated case checks...

Has anybody time to review this? There are many Kodi plugins out there that depend on script.module.simplecache. It would make our lives so much easier to make these plugins work with Python 3.

@goggle
Sorry, haven't seen your PR, but with my latest PR this module is Py2+Py3 ready. It has been sumitted to the Kodi repo.

That's great news, thanks!


Feature request: async serialization to/from the System.IO.Pipelines API

Newtonsoft.Json has thus far not offered async serialization APIs (I believe) because async APIs incur a perf hit, and because it can be important to not read more bytes than necessary for the top-level JSON token it started reading, which with Stream APIs requires reading one byte at a time (also very slow).
The new System.IO.Pipelines API offers a solution to both these problems. By serializing to a PipeWriter or deserializing from a PipeReader, you can asynchronously wait for more buffers when necessary, but when there are buffers you can read directly from them, with no memory copying at all. And you don't need to worry about reading too far because after reading what you want from the buffer, you can indicate how many bytes you "consumed" and "examined" so that it saves the bytes you didn't use for another read operation later.
Have you looked into this? Would you be open to a PR if I submitted one?
The huge boon IMO for this feature would be that users no longer have to make a choice of being async but buffering the entire message at once before (de)serialization, or being able to stream serialization for lower memory impact but at the cost of blocking a thread during the entire process which may include long I/O waits.

Writing a JsonReader and JsonWriter that use IBufferWriter<byte> (and whatever the read equivalent is) would certainly be possible. Making the entire serializer async would be a huge amount of work and require a lot of duplication of code to have sync and async paths. I wouldn't really want to maintain that.
I'm not planning to work with pipelines myself right now, I have other things I want to add to the next version first, but a JsonReader and JsonWriter that used them directly would be useful and could live in an independent package.

As you might know this is currently a big issue when using asp.net core 3+.
I want my controllers to stream the data to the client instead of buffering it all, but asp.net core disallows synchronist streaming.
(read here https://github.com/dotnet/aspnetcore/issues/8302)
I bet the pullrequest AArnott mentioned didn't arive, but i find this a good direction, since the whole .net world is moving more and more towards async.  Is there some reason you can't just use that one in the new scenarios?
Another option, that I actually use in StreamJsonRpc with Newtonsoft.Json, is buffer up the incoming data with my Sequence<T> class, then turn that into a ReadOnlySequence<byte> and my AsStream extension method from the same library and have newtonsoft.json (synchronously) deserialize from that.
For serialization, I do roughly the same thing: have newtonsoft.json write to a Stream from another AsStream method that wraps Sequence<byte> (via its IBufferWriter<byte> interface), then I asynchronously write out the underlying buffer.
While this doesn't allow truly streaming read/write, it's efficient. And it does not require allocating arbitrarily large contiguous blocks of memory the way MemoryStream would.


not working with HA 1.0

Hi,
after updating to HA version 1.0 (2020.12.7) pyfujitsu devices aren't available...anyone fixed it?

Same here. I haven't had a chance to look at it yet.

Update: It appears that after rebooting HA, it is working again.

I rebooted many times, but items are always unavailable!

@pilot1981 I am running latest version 2020.12.1 the pyfujitsu custom component is working perfectly - no issues at all with upgrade to either 2020.12.0 or 2020.12.1.  I upgraded from 0.118.5 to 2020.12.0 - what version did you upgrade from?

I'm at 2020.12.7, this is vastest stable version for HASSIO, I done all upgrade steps... 0.118.5->2020.12.0->2020.12.1->2020.12.7
You are able to update to 2020.12.7, this update could have breaking changes for this component?!

I also have problem with HACS...it could be related to this problem?

I rebooted many times, but items are always unavailable!
@meichthys which version are you using?

I'm using the latest version:

HACS was also affected for me. Initially the icon was gone from the left hand menu, and after a reboot, all the custom integrations showed up as new. I had to click the three dot menu at the top right and dismiss all new repositories.

so, you suppose could be a problem related to HACS?
HACS support say me it's a problem related to SSL, HASSIO isn't able to reach GitHub.com...

The Pyfujitseu problem should not related to HACS since it is not installed using HACS.
The HACS issue was just something we both noticed after updating to the latest version of HA.

I confirm: problem with HACS created a problem also with this module.
problem HACS solved -> now all works fine.
thanks


Add Cache.HasGet method

This PR fixes https://github.com/VictoriaMetrics/fastcache/issues/24 , to

add a second Get method that returns not only the cached value, but also the flag whether it was found or not.

This PR adds HasGet

@holiman , thanks for the contribution!


Error when importing collection

I tried to import a collection from postman, and got a successful result but the collection doesn't exist
I use Restler Beta v0.18.2 & Android v10

Hi @tiagohm,
I am facing the same issue, I am using the app version 0.17.6 latest and android v11.
Regards.

Hi @tiagohm, I'm facing a similar issue, when importing a collection from postman the app says:
"An error occurred while importing data"


Minor: Dead code - remove references to MAC_ADDRESS_INTERFACE as uuid is used instead

Codecov Report

Merging #103 (64ac71d) into develop (b338ac9) will increase coverage by 0.10%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop     #103      +/-   ##
===========================================
+ Coverage    62.45%   62.55%   +0.10%
===========================================
  Files           57       57
  Lines        17686    17651      -35
===========================================
- Hits         11045    11042       -3
+ Misses        6641     6609      -32

Impacted Files
Coverage Δ

core/src/misc/utils.cc
75.87% <ø> (+2.96%)
:arrow_up:

core/src/array/array.cc
54.75% <0.00%> (-0.38%)
:arrow_down:

Continue to review full report at Codecov.

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


scm: fix new command only use hg to clone code

add check is hg file exist or not to avoid never try to use git.
But this patch maybe only for python 3.x

@kevinong0108 How is this any different from attempting to run hg and failing with almost the same error?


Era VM integration with zksync-era

This PR modifies the era vm to be compatible with zksync-era, for that a new Storage implementation was developed

Doesn't this address issue #132?

Btw, doesn't this address issue #132?

Yes


Many Errors in these docs

ADFS is running and working successfully on Windows Server 2012 R2
Is there an issue in installing the ATP Sensor on the ADFS Primary node - error of "OS Not Supported" - but secondary node with exactly the same setup worked?!
GMSA Account needs to be in the Domain Users Group (which allows Access across the Network to other computers)

Still finding more issues as we go - will update.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: bb4e18c2-8abe-fd65-57e0-506e106866e6
Version Independent ID: 42816160-c911-abd8-2a0d-a96c6311eea3
Content: Microsoft Defender for Identity prerequisites
Content Source: ATPDocs/prerequisites.md
Service: microsoft-defender-for-identity
GitHub Login: @dcurwin
Microsoft Alias: dacurwin

Further - the GMSA requires logon as a service and Logon as batch to run.

Thanks for your comments. We'll investigate and get back to you.

@danielmarker - I researched your points, and this is what I heard from the product team.

ADFS is running and working successfully on Windows Server 2012 R2

Even if it is running, does not mean it is supported.

Is there an issue in installing the ATP Sensor on the ADFS Primary node - error of "OS Not Supported" - but secondary node with exactly the same setup worked?!

There should be no difference regarding OS version support between the primary and secondary node of the AD FS.

GMSA Account needs to be in the Domain Users Group (which allows Access across the Network to other computers)

This is not a requirement.

the GMSA requires logon as a service and Logon as batch to run.

This is not needed by default, unless a policy was modified requiring it.
In light of the above, I won't be modifying the documentation. However, if the product is not performing for you as documented, we recommend you open a support case.
Thanks for reaching out!


Fix the width and height of EMF images

Now actually makes sense!

@hughbe,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by .NET Foundation. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot


Save new messages to file as they come in

Is there a way to append new messages to the end of a file for a live video as they come in? Right now it only saves when you exit. Also, trying to send the output to a file using > results in an empty file.

Sure, I could definitely add something to allow for this. Do you have anything particular in mind? Perhaps like a callback function you pass into the function - something which fires each time a new message is received?

Also, trying to send the output to a file using > results in an empty file.

What error occurs when this happens? Is it a UnicodeDecodeError? Or does nothing appear?

The file is created, but it is empty until exiting

The file is created, but it is empty until exiting

Are you perhaps doing a command like:
python chat_replay_downloader "url" -output "output_file.txt" > output, which will only complete once all messages are retrieved.

That command creates an empty file, then saves the chat to the file when exiting. It is not saving them as they come through.
This is the command: python3 chat_replay_downloader.py https://www.youtube.com/watch?v=MtGUTs_HgcE > chat.txt

That command creates an empty file, then saves the chat to the file when exiting. It is not saving them as they come through.
This is the command: python3 chat_replay_downloader.py https://www.youtube.com/watch?v=MtGUTs_HgcE > chat.txt

Okay I see 👍 I'll see what I can do and I'll get back to you as soon as possible.

Any updates?

Hi! Yes, I finished implementing it yesterday, but had to finish a few university assignments before I could do proper testing.
I'm currently testing and I will update the master branch when everything is working.

Okay - added.
It should be noted that only text files are capable of "appending" text. For csvs and json files, you sort of need to have all the data before writing to the file. However, this should suite your needs as you are writing to a text file anyway.

It is still not working and doing what it did before. Do you have to run it with a certain command?

It is still not working and doing what it did before. Do you have to run it with a certain command?

You should use the -output argument when writing to a file.
python3 chat_replay_downloader.py https://www.youtube.com/watch?v=MtGUTs_HgcE -output chat.txt instead of using output redirection (>).

That is working now, but there is a bug where no new messages appear, and it needs to be restarted to fix it.

That is working now, but there is a bug where no new messages appear when no one sends a message for a few minutes, and it needs to be restarted to fix it.

Can you give an example? Perhaps a video I can test with? I haven't encountered this issue before.

That video has the problem, you can use that one

That video has the problem, you can use that one

Okay I am testing now, however, it should be noted that very few messages are sent.

Okay I see that there is indeed an issue. Let me see what I can do to fix it.

This update should fix everything! 😃 There was something I didn't account for - when no messages are sent for a very long time. So, thanks for bringing this up! Always good to have lots of people testing!
I also made it so you can use standard output redirection (e.g. > chat.txt) as well. However, I would recommend using -output chat.txt as then you can output both to the console as well as to the file simultaneously.
Let me know if this works 👍

Testing right now

It worked! Is there a way to show the full link instead of the three dots when a link is posted? This is what it looks like right now:

Great! 😃 I actually came across that yesterday when testing.

I think that happens because when displaying the text, it is also truncated. However, I do believe I can retrieve the original link. For your example, this is the data that is returned from YouTube:
"message":{
   "runs":[
      {
         "text":"The birds have gone to roost for the night. Please join us at the cam below for night critters. "
      },
      {
         "text":"https://www.youtube.com/watch?v=OIqUk...",
         "navigationEndpoint":{
            "clickTrackingParams":"CAEQl98BIhMI3ue4vL7n7AIVhKrVCh0IdA2j",
            "commandMetadata":{
               "webCommandMetadata":{
                  "url":"/watch?v=OIqUka8BOS8",
                  "webPageType":"WEB_PAGE_TYPE_WATCH",
                  "rootVe":3832
               }
            },
            "watchEndpoint":{
               "videoId":"OIqUka8BOS8"
            }
         }
      }
   ]
}

Then I would need to "recreate" the text by appending the value in navigationEndpoint->commandMetadata->webCommandMetadata. This might be different for different URLs however, so I would need to do more testing to see how normal URLs are parsed.

That is a good idea

@ccdffddfddfdsfedeee Okay that should be good now. 👍

This also worked! One last question: Can you add a way to see if a message is from a moderator or the owner, like the blue and yellow icons on the site?

That data is actually already retrieved, but is stored when writing to CSV and JSON only. However, this is only written at the end (or when exiting) because, to write to these types of files, you need to know all the data before hand (e.g. field names, which differ). I guess I can write it to the text file. Do you have any idea of what format you'd like?
It's currently like:
[2020-11-05 16:20:48] K M: Yes..the squirrels are very active at the cams..
[2020-11-05 16:21:02] Nightbot: Welcome all new viewers! However you found us, we're glad you're here. Please SUBSCRIBE and click the bell to be notified of new videos and cameras!
[2020-11-05 16:21:17] Nightbot: Watch a "behind the scenes" tour of the feeding area! https://www.youtube.com/watch?v=HNiNmAg3mcA
[2020-11-05 16:21:29] Svetlana Rodriguez: Thank you.
[2020-11-05 16:21:39] K M: Hello Svetlana

The same data is represented in JSON as:
   {
      "author":"K M",
      "author_id":"UCg_JA_HnmXl92vQmBy46ttA",
      "badges":"Moderator",
      "message":"Yes..the squirrels are very active at the cams..",
      "time_in_seconds":null,
      "timestamp":1604586048375916
   },
   {
      "author":"Nightbot",
      "author_id":"UCSvjQBDgYDB5TGVmCZObcwA",
      "badges":"Verified, Moderator",
      "message":"Welcome all new viewers! However you found us, we're glad you're here. Please SUBSCRIBE and click the bell to be notified of new videos and cameras!",
      "time_in_seconds":null,
      "timestamp":1604586062954293
   },
   {
      "author":"Nightbot",
      "author_id":"UCSvjQBDgYDB5TGVmCZObcwA",
      "badges":"Verified, Moderator",
      "message":"Watch a \"behind the scenes\" tour of the feeding area! https://www.youtube.com/watch?v=HNiNmAg3mcA",
      "time_in_seconds":null,
      "timestamp":1604586077970848
   },
   {
      "author":"Svetlana Rodriguez",
      "author_id":"UCub8TNfieRNtua0WiiwP-fQ",
      "message":"Thank you.",
      "time_in_seconds":null,
      "timestamp":1604586089449066
   },
   {
      "author":"K M",
      "author_id":"UCg_JA_HnmXl92vQmBy46ttA",
      "badges":"Moderator",
      "message":"Hello Svetlana",
      "time_in_seconds":null,
      "timestamp":1604586099386211
   }

But I imagine you want something like to be printed:
[2020-11-05 16:20:48] (Moderator) K M: Yes..the squirrels are very active at the cams..
[2020-11-05 16:21:02] (Verified, Moderator) Nightbot: Welcome all new viewers! However you found us, we're glad you're here. Please SUBSCRIBE and click the bell to be notified of new videos and cameras!
[2020-11-05 16:21:17] (Verified, Moderator) Nightbot: Watch a "behind the scenes" tour of the feeding area! https://www.youtube.com/watch?v=HNiNmAg3mcA
[2020-11-05 16:21:29] Svetlana Rodriguez: Thank you.
[2020-11-05 16:21:39] (Moderator) K M: Hello Svetlana

... I think this would be okay. But also, if you would like more advanced/custom features, you can always use the python module to do so 👍.

That is fine

There we go 😃 Let me know if you have any other suggestions/ideas/requests. Otherwise, you can close the issue. 👍

What about showing AM/PM instead of 24 hour time?

What about showing AM/PM instead of 24 hour time?

Although that's how YouTube shows it, I think showing 24 hour time is better since it's more universal and aligns better to how normal times are displayed for replays. In general I would say 24 hour time is better.
If you want these features, you can always customise it by either changing the code (it is open source) or by importing the python module.

You could add it as an option when running the command

You could add it as an option when running the command

Okay I'm adding a system to customize print messages 👍

Also, why does it stop and say exit 1 after running for a long time? It only happens on one video and it needs to be restarted when this happens.

Can you give an example? I've never had that issue. There's no point in the code where I explicitly call exit(1), so I'm not too sure what problem that could be. No one has reported that yet either.

I am using two videos:
https://www.youtube.com/watch?v=MtGUTs_HgcE and
https://www.youtube.com/watch?v=OIqUka8BOS8
This is the command used for both of them: python3 chat_replay_downloader.py https://www.youtube.com/watch?v=MtGUTs_HgcE --hide_output -output chat.txt &
It only happens on the first video

Okay that should easy to answer. The & is used to run the process in the background. This usually returns a code to say which process is being run. Is there a reason you want to do this?
Also, if you want to, can you send a screenshot of the terminal? Just to make sure my hunch is correct.

The chat runs in the background and it saves to the file, but sometimes it stops saving to the file and says exit 1.

Okay, but that information doesn't really help locate the problem (if there is one). I will run the command on my end and see if I experience any issues. Perhaps check that you don't lost internet connection? Or perhaps run the command with output shown so you can see what the problem is and send it here once it happens again.
python3 chat_replay_downloader.py https://www.youtube.com/watch?v=MtGUTs_HgcE -output chat.txt &

But it only happens on one video and I am running two on the same computer.

Or perhaps run the command with output shown so you can see what the problem is and send it here once it happens again.

Okay, but none of the information you have provided me will help find what the issue is. I am currently running the two links you mentioned above and I will see if any issues arise.
If you can, please provide console output for me to help debug.

I will, but it might take a few hours for it to happen

Any updates on the AM/PM time option?

I am currently running the two links you mentioned above and I will see if any issues arise.

After running it for 12 hours, no problems have occurred. This must have been an issue on your side. However, if you can provide evidence of the code being incorrect, I will look into it further.

Any updates on the AM/PM time option?

Yes, this is coming soon.

The bug did not happen for me yet

It looks like the issue was fixed. Is there any more updates?

It looks like the issue was fixed. Is there any more updates?

Okay great. Yes, I am adding the AM/PM option soon, I just have some IRL things I have to finish first. I will finish it this weekend.

The issue happened again, it was because the connection was lost. Is there a way to auto restart it after this happens?

Sure, I can add something to that effect. The AM/PM option is coming along too...

Any more updates?

Any more updates?

Hi there. I'm currently busy with some university work (which is due soon), so that has been my main priority. I will be finalising this all after the project is completed.
However, if you wish to have this completed sooner, I once again recommend you to take a look at using the python module. That was the original purpose of this tool: give people an "easy-to-use" python module to allow them to implement custom features.
The reason the AM/PM option is taking this long is because it requires a reworking of how messages are printed out, giving users the option to specify a format.

Hi, can you add an optional arguments to disable "Printing out badges of users in messages"? I understand why it might be useful to some people but tbh, I don't really care about that and personally I would be better off without them written, like how it was before the update.

Hi, can you add an optional arguments to disable "Printing out badges of users in messages"? I understand why it might be useful to some people but tbh, I don't really care about that and personally I would be better off without them written, like how it was before the update.

Hi 😃 Yes - I am working on a system to allow for users to specify any format they want to be printed. As I mentioned above, I have some university projects due soon, so I will only be able to add it afterwards (in around 5 days). But as always, if you want to do something custom in the meantime, you can use the python module.

It has been more than 5 days

Working on it now :) This requires a lot of project restructuring... But I am working on it.

This issue seems to have expanded far beyond the initial problem. That said:

That data is actually already retrieved, but is stored when writing to CSV and JSON only. However, this is only written at the end (or when exiting) because, to write to these types of files, you need to know all the data before hand (e.g. field names, which differ).

Why? I could see there being a difference between YouTube and Twitch, but once you've figured out which one of those you're reading from you should be able to use a standard template for all of the messages. You might end up with empty CSV columns this way, but in my opinion this is better than just not seeing anything at all until the end.

Why? I could see there being a difference between YouTube and Twitch, but once you've figured out which one of those you're reading from you should be able to use a standard template for all of the messages. You might end up with empty CSV columns this way, but in my opinion this is better than just not seeing anything at all until the end.

For example, when reading YouTube superchats, you don't know which types of messages you will be getting (e.g. sticker duration, sticker colour, etc.). So, unless there is some way to know what types of messages you will get, in advance, then I'm not too sure what the solution would be. Of course, we could just put all columns in, but that would result in a lot of empty columns.
I'm currently busy organising the code for package use (#24), as well as adding a custom format for printing (which has been spoken about a lot), so I'm quite busy with that at the moment. If you know of a way to add this, I'd be more than happy to add it. You can submit a PR if you want.

Done yet?

Done yet?

Your request requires a lot of reworking of the code. I have been working on this for the past week. (https://github.com/xenova/chat-replay-downloader/tree/package)
Like I have said, for the past few weeks, if you want this to be implemented, you are more than welcome to code it in python using the provided module.

Done yet?

I made a pull request that could save all the available data into a db file, by default is chat_data.db in same folder. No matter any error happens, the data is always safe.

The remaining functionality has been added to the latest version of the software.

Messages are saved as they come in (for all formats, including csv, json and text)

What about showing AM/PM instead of 24 hour time?

The simplest way to do this would be to use the python module like this
Alternatively, you could define a custom formatting json file (e.g., example.json)
{
    "12h": {
        "template": "{time_text|timestamp}{money.text}{author.display_name|author.name}{message}",
        "keys": {
            "time_text": "{} | ",
            "timestamp": {
                "template": "{} | ",
                "format": "%I:%M %p"
            },
            "money.text": "*{}* ",
            "message": ": {}"
        }
    }
}

then you can run the program using the --format and --format_file arguments:
chat_downloader https://www.youtube.com/watch?v=5qap5aO4i9A --format 24h --format_file example.json

which will produce output similar to:
11:40 PM | Wesley: you just lost the game 🙂
11:40 PM | Allan Ferreira: @Mia Alan Io ho 19 anni, e te?
11:40 PM | Giorgio Verzeletti: Vamo raga forza giuve siuuuuuummmm
11:41 PM | Fiore Diaz: @Leonor Meneses muy bien pa
11:41 PM | traw: Stinky monkey water
11:41 PM | Salman Amal: Who is doing their A levels?
11:41 PM | Aman Munjal: okh see ya later
11:41 PM | Leonardo: @Isabela Ramires Abri mão das minhas férias kkkk
11:41 PM | Dictionary: hi vhs

The issue happened again, it was because the connection was lost. Is there a way to auto restart it after this happens?

Restart functionality has been added and the decoding error has also been fixed 👍

Hi, can you add an optional arguments to disable ["Printing out badges of users in messages"]

As described above, you can now specify custom formats.


filter type are listed as viz type

open chart list view and check viz type dropdown list:
Select filter, Time column, Time filter etc, are filter type not viz type.
Screenshots

Environment
latest master
Checklist
Make sure to follow these steps before submitting your issue - thank you!

[x] I have checked the superset logs for python stacktraces and included it here as text if there are any.
[x] I have reproduced the issue with at least the latest released version of superset.
[x] I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context
cc @junlincc @villebro

thanks for reporting this @graceguo-supercat !

Should we have a config saying use native filters as Viz type?
This can be useful when there is a need to use one of the the native filter as a chart next/above/below a other chart where visual proximity to the chart might be useful in specific use-cases

this is problematic as well 🤣 @simcha90 @amitmiran137 by default, we should hide all the filter types from all UI except in the filter itself. could we open a PR to add the config?

IMO there's two things here:

The viz type gallery should have a separate tab/section for plugins that are primarily native filters but can be added as regular viz components to a dashboard (for the use case @amitmiran137 described above). I'm ok to add a config to enable/disable native filters as regular viz components, but I think it should be enabled by default. I don't see the harm in having the option to place native filters on the dashboard as opposed to the filter tab.
Regarding the problem stated in the original issue, that dropdown needs to list all viz types that are supported in the viz type gallery.

let's move group-by, drill-down, filter chart components behind a new leading edge feature-flag.
@villebro @simcha90 @amitmiran137 @zhaoyongjie

Sounds good - I propose calling the feature flag DASHBOARD_NATIVE_FILTERS_EXPERIMENTAL and having all unpolished features there.


[Question]: Does ragflow support Azure OpenAI?

Describe your problem
Does ragflow support Azure OpenAI?

No, check #716


⚠ Bofrost.be has degraded performance

In 48e2fc8, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 2919 ms

Resolved: Bofrost.be performance has improved in 4e077d5.


Update Backoffice UI section #348

Also updated Studio section: screenshots and Tool Window description

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Requested changes are pushed to the branch


Is this project dead ?

Just wonder since its over two weeks of public PMS release with changed json for Plex integration.
https://github.com/Hellowlol/HTPC-Manager/issues/511
The Hellowlol's htpc was most complete/functioning fork of HTPC i found so far, but if development is stopped then its plan to move on.

I'm just lazy. Since this is out of beta I'll see if I can't fix it.


Fix formatting

Hmm.. looks like the Codecov is failing for me:
[2024-01-31T17:01:05.977Z] ['verbose'] Passed token was 0 characters long

is the Codecov action known to currently work?
@jdebacker

@talumbau Thanks for your work on this.  I periodically have failures to upload to Codecov, but it's intermittent and I haven't identified a cause.  I just restarted the job that failed upload and hope it will success this time.

OK. Looks like CodeCov is good to go then, correct? I'll merge this if you approve.

Thanks for this TJ, just merged.


Update problem while editing shapes

I use the annotorious with annotorious-shape-labels.min.js like below. When I edit the shape, it is not updated with the last values. I get x, y, width, height values of the shape always as first values, so the shape values (x, y, width, height) cannot be changed for the second time.
        anno = Annotorious.init({
          image: 'hallstatt',
          locale: 'auto',
	  disableEditor: true,
	  formatter: Annotorious.ShapeLabelsFormatter()
        });

The picture below shows that the rectangle x,y, width, height are not correct values after editing the shape.

It looks like you are using headless mode, right? And the annotation is still being edited - which means the values are not yet updated by design.
After you have saved the changes (by clicking outside the shape, so that the resize handles are gone), is the value still not updated?

Yes, you are right it is the headless mode. It works for the sample page. But I cannot click the outside because I use the annotorious-openseadragon, and it doesn't let me click the outside of the shape. As I use the headless mode there is no OK button to stop editing

This is part of a larger issue that requires a redesign of headless mode in Annotorious OpenSeadragon:
https://github.com/recogito/annotorious-openseadragon/issues/74
I'll try to prioritize this.


i18n(es): add stormkit

Description (required)
Adds stormkit

Related issues & labels (optional)

Closes # N/A
Suggested label: i18n

Lunaria Status Overview
🌕 This pull request will trigger status changes.

Learn more
By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.
You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

File
Note
Locale

src/content/docs/es/guides/deploy/stormkit.mdx
Localization added, will be marked as complete.
es

Warnings reference

Icon
Description

🔄
The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

Gracias por la revisión @Waxer59 🫡


Wrong Characters

The textarea that overlays the read-only textarea called "fetchText" has the class name "fetchTextOverlay".
The user would type the text in this box.
Turn all the wrong characters red.
#HINT:  A character is considered to be wrong if the current index 'i' (which is to be implemented and maintained) of the entered character doesn't match with the character at the  ith character of the fetched paragraph.

Hey @rectangle-man can you please assign this issue to me under #hacktoberfest label
I can solve this issue

Hey @rectangle-man
Can you kindly help me in resolving few of my queries.

Do we need to turn the color of wrongly typed word on click on "An


⚠ Bofrost.lu has degraded performance

In 03d275a, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1449 ms

Resolved: Bofrost.lu performance has improved in 9cc49aa after 1 hour, 25 minutes.


In my usage, I prefer assigning the shortcut "Search with Google" to command + enter.
Is it possible to add shortcut key configuration?
If you agree, I will attempt to implement it.
Who will benefit from this feature?
Improved customizability in multiple environments.
Anything else?
No response

Hey @shoppingjaws, that's not possible since ⌘ + ⏎ is already reserved for another action. It's possible to configure it but this would bloat the extension preferences. If it turns out to be a popular feature, we can look at it.


[WIP] Minimal ePBS without Max EB and 7002

Full specification for ePBS
The full design notes are included in https://hackmd.io/@potuz/rJ9GCnT1C
Forkchoice annotated spec can be found in https://hackmd.io/@potuz/SJdXM43x0
Currently fully specified documents:

beacon-chain.md
p2p-interface.md
validator.md
builder.md
fork-choice.md
engine.md

Most of the engine API and the forkchoice handlers in forkchoice.md are ready
Still missing is:

Execution specification

Thanks for all the effort you are putting into solving this nasty problem!
I think I'm missing some context on the payload attestation committee (PTC) after reading both the annotated spec and spec notes. Could you point me to where incentives for the committee are discussed? What incentivises PTC to vote truthfully and timely - and vote in the first place?
Related - what is the probability colluding proposers (say 30% of the stake) control the majority of the PTC votes for a slot? This is important since a majority PTC seems to be able to coerce either the proposer to include a particular payload or the builders to pay them by otherwise voting untruthfully.
It seems like inclusion lists could be used to force mayhem in periods of high MEV. Could you help me see the reason why the proposer for slot N (that possibly also controls slot N+2 or colludes with someone who does which happens) would not force the proposer in slot N+1 to include 1 wei priority gas fee 30 million gas transaction? This would mean the proposer controlling both N and N+2 can extract all the value available in slots N, N+1 and N+2 which would be disastrous.

Could you point me to where incentives for the committee are discussed? What incentivises PTC to vote truthfully and timely - and vote in the first place?

PTC attesters get rewarded a full attestation reward if they attest correctly and get penalized as a missed attestation if they don't.

Related - what is the probability colluding proposers (say 30% of the stake) control the majority of the PTC votes for a slot?

In order to save time let me do a larger case, in which the attacker has 35% of the stake (so that python's default float does not overflow), in this case there's a probability of ~10^-12 per slot:
>>> from scipy.stats import binom
>>> 1 - binom.cdf(k=255, n=512, p=0.35)
2.461586490198897e-12

Which gives an expected time of about 154 582 years to succeed.

... would not force the proposer in slot N+1 to include 1 wei priority gas fee 30 million gas transaction?

The maximum gas of the IL is 3M and this is on top of any gas limit for the next block.

Thanks for all the answers!

PTC attesters get rewarded a full attestation reward if they attest correctly and get penalized as a missed attestation if they don't.

Follow up: since attesters are penalized for missing votes, wouldn't they be incentivized to vote "missing payload" as soon as they can to guarantee they don't miss the vote? Is the reward for voting the same in all cases?

The maximum gas of the IL is 3M and this is on top of any gas limit for the next block.

Ah I see. I wonder if there's anything funny one can do with nonces - say there are two transactions with the same nonce. One can try and time releasing the transactions such that they propagate to some fraction of PTC

Follow up: since attesters are penalized for missing votes, wouldn't they be incentivized to vote "missing payload" as soon as they can to guarantee they don't miss the vote? Is the reward for voting the same in all cases?

If the PTC member attest for "missing payload" but the majority is honest, the payload is present and becomes canonical, the PTC member will be penalized. The reward is only applied when voting for the right outcome.

Ali1994baker

Ali1994baker


cleaner arg processing & flickering patch

flickering was due to updating the screen before the full frame was finished being drawn

seems sane to me


ValueError: probabilities contain NaN in policy.py

Hey community,
I made an environment with openai gym and now I am trying different settings and agents.
I started with the agent from the dqn_cartpole example (https://github.com/wau/keras-rl2/blob/master/examples/dqn_cartpole.py). At some point the calculation of the q-values failed because of a NaN value. I added my Traceback and small changes in the settings below.
My settings in comparison to the dqn_cartpole example:
Dense Layer: instead of 16,16,16 i chose 256, 64, 16
policy = BoltzmannQPolicy()
dqn = DQNAgent(model=model, nb_actions=nb_actions, memory=memory, nb_steps_warmup=50000, target_model_update=1e-2, policy=policy)
dqn.compile(Adam(lr=1e-3), metrics=['mae'])
dqn.fit(env, nb_steps=500000, visualize=False, verbose=2)
•	Last training episode before error: 497280/500000: episode: 2960, duration: 13.926s, episode steps: 168, steps per second:  12, episode reward: 47056.579, mean reward: 280.099 [-10229.000, 8998.000], mean action: 45.298 [0.000, 96.000],  loss:<PHONE_NUMBER>0565248.000000, mae:<PHONE_NUMBER>.000000, mean_q:<PHONE_NUMBER>.000000
Traceback (most recent call last):
File "~environment.py", line 125, in
dqn.fit(env, nb_steps=500000, visualize=False, verbose=2)
File "~\python_env\lib\site-packages\rl\core.py", line 169, in fit
action = self.forward(observation)
File "~\python_env\lib\site-packages\rl\agents\dqn.py", line 227, in forward
action = self.policy.select_action(q_values=q_values)
File "~\python_env\lib\site-packages\rl\policy.py", line 227, in select_action
action = np.random.choice(range(nb_actions), p=probs)
File "mtrand.pyx", line 928, in numpy.random.mtrand.RandomState.choice
ValueError: probabilities contain NaN
I do not get this error, when I am using EpsGreedyQPolicy. Is there any possibility to understand why NaNs are produced and how to avoid them?
Kind regards, Jonas

same here i am also getting this error.
action = np.random.choice(self.action_size, 1, p=prob)[0]
File "mtrand.pyx", line 928, in numpy.random.mtrand.RandomState.choice
ValueError: probabilities contain NaN.
Appreciate some help.. thanks

same here i am also getting this error.
action = np.random.choice(self.action_size, 1, p=prob)[0] File "mtrand.pyx", line 928, in numpy.random.mtrand.RandomState.choice ValueError: probabilities contain NaN.
Appreciate some help.. thanks

I was able to fix this through checking my dataset that contains zeroes value.

This is still an issue with keras-rl2 :(


Handle multiple channels for multiple Subjects

Loop through all specified Subjects and open a channel for all events to stream into stdout

This is accomplished with std::packaged_task -> std::thread and passing an anonymous pipe to the caller clib in order to later update/remove.


Only print task baseline status if basline compared

Before this merge, we were incorrectly printing a message that baselines passed when no baseline comparison was made.  With this fix, a message about baselines is only printed if baseline comparisons were performed.

Checklist

[x] Testing comment in the PR documents testing used to verify the changes

closes #132

Testing
I ran the inertial_gravity_wave test (without a baseline) on Chrysalis and now see:
ocean/planar/inertial_gravity_wave
  * step: init_200km
          execution:        SUCCESS
          runtime:          0:00:02
  * step: forward_200km
          execution:        SUCCESS
          runtime:          0:00:03
  * step: init_100km
          execution:        SUCCESS
          runtime:          0:00:01
  * step: forward_100km
          execution:        SUCCESS
          runtime:          0:00:07
  * step: init_50km
          execution:        SUCCESS
          runtime:          0:00:02
  * step: forward_50km
          execution:        SUCCESS
          runtime:          0:00:16
  * step: init_25km
          execution:        SUCCESS
          runtime:          0:00:07
  * step: forward_25km
          execution:        SUCCESS
          runtime:          0:00:22
  * step: analysis
          execution:        SUCCESS
          runtime:          0:00:00
  task execution:   SUCCESS
  task runtime:     0:01:01
Task Runtimes:
0:01:01 PASS ocean/planar/inertial_gravity_wave
Total runtime: 0:01:01
PASS: All passed successfully!

When I run with a baseline, I see:
ocean/planar/inertial_gravity_wave
  * step: init_200km
          execution:        SUCCESS
          runtime:          0:00:03
  * step: forward_200km
          execution:        SUCCESS
          baseline comp.:   PASS
          runtime:          0:00:03
  * step: init_100km
          execution:        SUCCESS
          runtime:          0:00:01
  * step: forward_100km
          execution:        SUCCESS
          baseline comp.:   PASS
          runtime:          0:00:07
  * step: init_50km
          execution:        SUCCESS
          runtime:          0:00:02
  * step: forward_50km
          execution:        SUCCESS
          baseline comp.:   PASS
          runtime:          0:00:17
  * step: init_25km
          execution:        SUCCESS
          runtime:          0:00:07
  * step: forward_25km
          execution:        SUCCESS
          baseline comp.:   PASS
          runtime:          0:00:22
  * step: analysis
          execution:        SUCCESS
          runtime:          0:00:00
  task execution:   SUCCESS
  baseline comp.:   PASS
  task runtime:     0:01:04
Task Runtimes:
0:01:04 PASS ocean/planar/inertial_gravity_wave
Total runtime: 0:01:05
PASS: All passed successfully

@xylar Thanks for making this fix!


Fix downloads count badge

Fixed the download count badge using https://juliapkgstats.com/. The current badge is broken because the old API and PkgVisBoard is not maintained.
This PR:

Replaces the broken badge with a new badge that uses the new API

Please review and provide any feedback. Thanks for considering this PR!

Amazing thank you so much!!


Alias .partitions to .blocks attribute of dask arrays

It's suggested in issue https://github.com/dask/dask/issues/4814 that it could be a good idea to add a dask array .partitions attribute that aliases the existing .blocks attribute, to better support reusable code between dask dataframes and arrays.
That would reduce the number of awkward constructions like this:
if isinstance(data, DaskArray):
    return data.blocks[begin_partition:end_partition].compute()
elif isinstance(data, DaskDataframe):
    return data.partitions[begin_partition:end_partition].compute()

[x] Tests added / passed <- I believe the docstring examples are sufficient here, since the aliased functionality is already tested. If this is not rigorous enough please let me know.
[x] Passes flake8 dask

Closes https://github.com/dask/dask/issues/4814

Thanks @GenevieveBuckley. This looks good. Could we add a test for this? Maybe we can just copy the existing .blocks test and rename things.

Thanks @GenevieveBuckley. This looks good. Could we add a test for this? Maybe we can just copy the existing .blocks test and rename things.

Sure, done.

Thanks @GenevieveBuckley!


Update strings.xml

Edit and with beauty!

Purpose of This Pull Request
Please check the relevant option by placing an "X" inside the brackets:

[ ] Documentation update
[ ] Bug fix
[ ] New feature
[ ] Other (please explain):

Overview of Changes
Provide a concise overview of the changes made in this pull request
Related Issue
If this pull request addresses a specific issue, please mention it using the
format "Fixes #IssueNumber"
Fixes #
Reviewer Focus
Is there anything specific you would like reviewers to pay attention to while
reviewing this pull request? For example, areas of the code that you'd like to
be thoroughly reviewed or tested?
Additional Notes
Feel free to add any other relevant information or context that would assist in
the review process.

Edit and with beauty!

Hey thanks so much for this pr! Unfortunately weblate, used for translating strings, seems to do as it pleases. Basically it'll overwrite all of these great changes. Sorry for the frustration - and thank you so much for your time but going to have to decline this one because of that


include framer pages in sitemap

Problem solved
Short description of the bug fixed or feature added

PR-Codex overview
This PR introduces a new function to fetch and parse a sitemap from a specified URL, enhancing the sitemap generation process by incorporating external URLs and their attributes into the existing configuration.
Detailed summary

Added fetchSitemap function to fetch and parse a sitemap from https://landing.thirdweb.com/sitemap.xml.
Integrated fetched URLs into the additionalPaths configuration.
Defined a SitemapUrl typedef for better documentation of the sitemap structure.
Implemented error handling for the sitemap fetching process.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

#4836  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @jnsdls and the rest of your teammates on  Graphite


Velodyne frame of reference

In the README velodyne's frame of reference is presented as follows:

with the x axis opposite the cable. In the manual it is the y axis that is opposite the cable.

Where does this difference come from? I have not noticed the velodyne ROS driver mention anything about it.

Hi @WysokiStudent I have notice the same thing trying to create my  extrinsicRPY matrix in params.yaml . Have you find a solution?


Audio not working in iOS 17 for UrlSource

Checklist

[X] I read the troubleshooting guide before raising this issue
[X] I made sure that the issue I am raising doesn't already exist

Current bug behaviour
After update to ios 17, play() function fails with following exception. However the same code was working fine in android as well as ios 16.
[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(DarwinAudioError, Failed to set source. For troubleshooting, see https://github.com/bluefireteam/audioplayers/blob/main/troubleshooting.md, AVPlayerItem.Status.failed on setSourceUrl, null)
Any .mp3 file with following code produces the above exception
AudioPlayer.global.setAudioContext(AudioContextConfig().build());
final player = AudioPlayer();
ByteData res = await rootBundle.load('assets/test.mp3');
await player.play(UrlSource(Uri.dataFromBytes(res.buffer.asUint8List(), mimeType: "audio/mpeg").toString()), volume: 1);

Expected behaviour
Play the .mp3 file
Steps to reproduce

Execute flutter run on the code sample
...
...

Code sample

Code sample
void main() {
}

Affected platforms
iOS
Platform details
iOS 17
AudioPlayers Version
5.0.0
Build mode
debug
Audio Files/URLs/Sources
No response
Screenshots
No response
Logs

my relevant logs

Full Logs

my full logs or a link to a gist

Flutter doctor:
Output of: flutter doctor -v

Related issues / more information
Problem is with UrlSource. When using asset source on iOS 17, it is working fine.
e.g. -
player.play(AssetSource('test.mp3'));
Working on PR
no way

Can you reconfirm a error is thrown by explicitly setting audioplayers version to 5.1.0 and then 5.2.0 ?
Note: since 5.2.0 we changed the error description.
Also post the mp3 file here or try to reproduce with one of our example files:
https://github.com/bluefireteam/audioplayers/tree/main/packages/audioplayers/example/assets

Upgraded to version 5.2.0. Same exception. output given below
MP3 file input -> packages/audioplayers/example/assets/ambient_c_motion.mp3
flutter: ^[[31mAudioPlayers Exception: AudioPlayerException(
UrlSource(url: data:audio/mpeg;base64,SUQzAgAAAAAfdlRTUwAAEABMb2dpYyBQcm8gOS4xLjRDT00AAGgAZW5naVR1bk5PUk0AIDAwMDAwMEMyIDAwMDAwMEUxIDAwMDAwNjJBIDAwMDAwNjBCIDAwMDIxMzM5IDAwMDIxMzM5IDAwMDA4MENGIDAwMDA3RjVFIDAwMDA1Q0MxIDAwMDA0REMxAENPTQAAggBlbmdpVHVuU01QQgAgMDAwMDAwMDAgMDAwMDAyMTAgMDAwMDBCMjggMDAwMDAwMDAwMDhENEZDOCAwMDAwMDAwMCAwMDgwMTdENyAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMABUUDEAAAwAZnJhbmsgTm9yYQBUQUwAAA8AUHVibGljIERvbWFpbgBDT00AACUAZW5nAFNvdXJjZTogTWlkbmlnaHQgQ2FzZXR0ZSBTeXN0ZW0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA<…>
[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(DarwinAudioError, Failed to set source. For troubleshooting, see https://github.com/bluefireteam/audioplayers/blob/main/troubleshooting.md, AVPlayerItem.Status.failed on setSourceUrl, null)

It probably was introduced in 5.2.0 as urls will be URL-encoded now. Maybe you can ensure this hypothesis with 5.1.0. Otherwise, we have to provide a parameter to disable the encoding. But the more long term approach would be to implement #1269 for iOS/macOS.

Checked with 4.1.0 also. Observations given below (Test are done  without a caret ^ in yaml file)
iOS 16.   Version 4.1.0 (working),  Version 5.0.0 (working),  Version 5.2.0 (working) on both simulator and device
iOS 17. No versions working on simulator nor real device
The input parameters given for iOS 16 & 17 are absolutely same. (Including Base64 input)
Logs in version 4.1.0 and the input .mp3 file used during test is attached (The attached .mp3 is very small with just 1 sec audio).
=====LOG START=====
data:audio/mpeg;base64,[encoded data, 10428 characters]
flutter: ^[[31mAudioPlayers Exception: AudioPlayerException(
UrlSource(url: data:audio/mpeg;base64,SUQzAwAAAAAAI1RTU0UAAAAPAAAATGF2ZjU3LjQxLjEwMAAAAAAAAAAAAAAA/+OowAAAAAAAAAAAAEluZm8AAAAPAAAADAAAHmAALy8vLy8vLy9CQkJCQkJCQlVVVVVVVVVVaGhoaGhoaGhoe3t7e3t7e3uOjo6Ojo6OjqGhoaGhoaGhobS0tLS0tLS0x8fHx8fHx8fa2tra2tra2trt7e3t7e3t7f//////////AAAAAExhdmM1Ny40OAAAAAAAAAAAAAAAACQAAAAAAAAAAB5guduaMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA<…>
[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(DarwinAudioError, AVPlayerItem.Status.failed on setSourceUrl, null, null)
=====LOG END=====
test.zip

Thank you for your detailed report. Unfortunately I'm very limited in developing with iOS / macOS. Feel free to contribute

The error is from /audioplayers_darwin-5.0.2/ios/ClassesWrappedMediaPlayer.swift
inside the function setUpPlayerItemStatusObservation =>
self.eventHandler.onLog(message: "player status: (status), change: (change)")
the following message is logged
[log] AudioPlayers Log: player status: AVPlayerItemStatus(rawValue: 2), change: NSKeyValueObservedChange(kind: __C.NSKeyValueChange, newValue: nil, oldValue: nil, indexes: nil, isPrior: false)
AVPlayer status codes for reference => (0: unknown, 1: readyToPlay, 2: failed)
The error property from AVPlayer is
**

Optional(Error Domain=AVFoundationErrorDomain Code=-11828 "Cannot Open" UserInfo={NSLocalizedFailureReason=This media format is not supported., NSLocalizedDescription=Cannot Open, NSUnderlyingError=0x600000c601b0 {Error Domain=NSOSStatusErrorDomain Code=-12847 "(null)"}})

**
I wrote a sample code in swift using XCode 15.0.1 as given below, which can duplicate the error quoted above. Audio play works without any issues on ios 16. But throws error 11828 while running on ios 17.
I don't know reason for this behaviour. May be Apple made some new restrictions in ios 17 regarding DATA URI. Can you check or confirm with the author(s) of audioplayers_darwin regarding this for a potential solution?

import SwiftUI
import AVFoundation

struct ContentView: View {

    //Tiny audio data URI of silence. Paste data uri in previous thread to hear audio

    let data = "data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU2LjM2LjEwMAAAAAAAAAAAAAAA//OEAAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAAEAAABIADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV6urq6urq6urq6urq6urq6urq6urq6urq6v////////////////////////////////8AAAAATGF2YzU2LjQxAAAAAAAAAAAAAAAAJAAAAAAAAAAAASDs90hvAAAAAAAAAAAAAAAAAAAA//MUZAAAAAGkAAAAAAAAA0gAAAAATEFN//MUZAMAAAGkAAAAAAAAA0gAAAAARTMu//MUZAYAAAGkAAAAAAAAA0gAAAAAOTku//MUZAkAAAGkAAAAAAAAA0gAAAAANVVV"

    @State var observer: NSKeyValueObservation?
    @State var playerItem: AVPlayerItem?
    @State var player: AVPlayer?

    var body: some View {
        VStack {
            Image(systemName: "globe")
                .imageScale(.large)
                .foregroundStyle(.tint)

            Button("Play Audio") {
                print("Button pressed by user")

                do {

                    try AVAudioSession.sharedInstance().setMode(.default)
                    try AVAudioSession.sharedInstance().setActive(true, options: .notifyOthersOnDeactivation)

                    playerItem = AVPlayerItem.init(url: URL(string: data)!)
                    print(playerItem?.status.rawValue)

                    self.observer =  playerItem?.observe(\.status) { (playerItem, change) in
                            let status = playerItem.status
                            print("Status changed   -  ")
                            print(status.rawValue)
                            print(playerItem.error)
                        }

                    player = AVPlayer(playerItem: playerItem)
                    player?.volume = 1.0
                    player?.play()
                }
                catch {
                    print("Something went wrong")
                }
            }
        }
        .padding()
    }
}

#Preview {
    ContentView()
}

The best solution would be to implement #1692 and #1269.

Found a solution. In the above code snippet where you're instantiating the AVPlayerItem and giving it the URL, we need to instead give it a AVURLAsset and override the MIME type:
let asset = AVURLAsset(url: URL(string: data)!, options: [AVURLAssetOverrideMIMETypeKey: "audio/mpeg"])   playerItem = AVPlayerItem(asset: asset)
Just tested this on iOS 17 Simulator and it's working.

@andyshephard are you interested in writing a PR with a fix and some add some tests to it? ;D

I have a draft PR, here: https://github.com/bluefireteam/audioplayers/pull/1728
I'm currently reading through the contributor docs and testing before making it ready for review.

For those who still have issue with audio player on iOS, upgrade your audio player plugin to 6.0.0 or above (if available at the time you're reading this) and then add mineType as an additional argument in the player
player.play(UrlSource(url,mimeType: "audio/mp3"))
If in case the format of your audio is different then add "audio/" as prefix following the format of your audio. For example: -
audio/mp3
audio/mpeg
etc etc


[ICONS] new icons are added in

tags, clock, floppy, ellipses-vertical, ellipses-horizontal, bank

Signed-off-by: Shijir Tsogoo<EMAIL_ADDRESS>


Update min PHP requirement to v7.4 or v8.1

Do we not touch .docker files?

we did not for doctrine1 https://github.com/FriendsOfSymfony1/doctrine1/pull/122
Maybe a next step? :)
See also:

https://github.com/FriendsOfSymfony1/symfony1/pull/270
https://github.com/FriendsOfSymfony1/doctrine1/pull/90


In addition to checking for the existence of the engine, ensure that it’s the correct version

@devoncarew I did some mildly wacky things to make travis happy, can you please look over this PR?


Use shrinkage for (cross-)covariance estimation

We're now using the shrinkage technique from this paper in the concept-erasure repo; it makes covariance estimation robust to small sample sizes. Might make CRC-TPC, VINC, etc. work better
def gaussian_shrinkage(S_hat: Tensor, n: int) -> Tensor:
    """Applies Rao-Blackwell LW shrinkage to a sample covariance matrix."""
    p = S_hat.shape[-1]
    assert n > 1 and S_hat.shape == (p, p)

    trace_S = torch.trace(S_hat)
    trace_S_sq = torch.trace(S_hat ** 2)
    trace_sq_S = trace_S ** 2

    numer = (n - 2) / n * trace_S_sq + trace_sq_S
    denom = (n + 2) * (trace_S_sq - trace_sq_S / p)
    rho = torch.clamp(numer / denom, 0, 1)

    eye = torch.eye(p, dtype=S_hat.dtype, device=S_hat.device)
    F_hat = eye * trace_S / p

    return (1 - rho) * S_hat + rho * F_hat

Should the denominator be:
denom = (n + 2) * (trace_S_sq - trace_sq_S / p)
rather than
denom = (n + 2) * (trace_S_sq + trace_sq_S / p)
?

Yes it should be this thing

Actually we should use the distribution-free, random matrix theory-based, asymptotically Frobenius-optimal formula from https://arxiv.org/abs/1308.2608. Just switched the concept-erasure repo to it.
import torch
from torch import Tensor

def optimal_linear_shrinkage(S_n: Tensor, n: int | Tensor) -> Tensor:
    """Optimal linear shrinkage for a sample covariance matrix or batch thereof.

    The formula is distribution-free and asymptotically optimal in the Frobenius norm
    as the dimensionality and sample size tend to infinity.

    See "On the Strong Convergence of the Optimal Linear Shrinkage Estimator for Large
    Dimensional Covariance Matrix" <https://arxiv.org/abs/1308.2608> for details.

    Args:
        S_n: Sample covariance matrices of shape (*, p, p).
        n: Sample size.
    """
    p = S_n.shape[-1]
    assert n > 1 and S_n.shape[-2:] == (p, p)

    # Sigma0 is actually a free parameter; here we're using an isotropic
    # covariance matrix with the same trace as S_n.
    # TODO: Make this configurable, try using diag(S_n) or something
    eye = torch.eye(p, dtype=S_n.dtype, device=S_n.device).expand_as(S_n)
    trace_S = trace(S_n)
    sigma0 = eye * trace_S / p

    sigma0_norm_sq = sigma0.pow(2).sum(dim=(-2, -1), keepdim=True)
    S_norm_sq = S_n.pow(2).sum(dim=(-2, -1), keepdim=True)

    prod_trace = trace(S_n @ sigma0)
    top = trace_S.pow(2) * sigma0_norm_sq / n
    bottom = S_norm_sq * sigma0_norm_sq - prod_trace**2

    alpha = 1 - top / bottom
    beta = (1 - alpha) * prod_trace / sigma0_norm_sq

    return alpha * S_n + beta * sigma0

def trace(matrices: Tensor) -> Tensor:
    """Version of `torch.trace` that works for batches of matrices."""
    diag = torch.linalg.diagonal(matrices)
    return diag.sum(dim=-1, keepdim=True).unsqueeze(-1)


chore(master): release 1.1.179

:robot: I have created a release beep boop
1.1.179 (2023-09-08)
Miscellaneous

deps: update dependency vite-node to v0.34.4 (bb56ec4)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/wayofdev/keywind/releases/tag/v1.1.179 :sunflower:


Selendroid installation error

I thought appium was supposed to work on Windows 7.
Please let me know if there's anything I'm doing wrong, or if Windows 7 x64 is Unsupported.
I ran the following command from an Command Prompt with Admin privileges (see screenshot):
npm install -g appium

npm-debug.log.txt

I realize I accidentally posted this on the wrong project.  Sorry.


why mad?

why be mad for me not making a couple million variables to make your already dog code be even more dog? You actually have no idea how to code ngl.... and buddy fr closed the pull so I could not respond XD

Uhm?  Even I'm not a grammar police yet still annoyed by your typing


Order directives consistently in akka-http routes

Different error messages happen depending on order (e.g. different 4xx messages)
@rajadain do you want to add more detail here?

Because of the way directives are ordered, the evaluation would stop at the first failure. For example, if we have this structure:
def route: Route = {
  pathPrefix("api" / "route") {
    pathEndOrSingleSlash {
      get { ??? }
      authenticate { user =>
        post { ??? }
      }
    }
  }
}

Where the GET is allowed for all users, but POST requires authentication, if I try to do a POST without specifying any credentials I get a 405 Method Not Allowed. This is because first the path  is evaluated, then the first matching method is found. Since no credentials were specified, the authenticate block is disregarded completely. Since there are no post blocks outside of authenticate, AKKA HTTP thinks there are no POST handlers defined and thus returns a 405. If instead we order them like this:
def route: Route = {
  pathPrefix("api" / "route") {
    pathEndOrSingleSlash {
      get { ??? }
      post {
        authenticate { user =>
          ???
        }
      }
    }
  }
}

And do a POST without specifying credentials, we correctly get a 401 Not Authorized.
The ideal order (as far as I can tell) should be path, method, headers, body. Thus, this would be a complete example:
def route: Route = {
  pathPrefix("api" / "route") {
    pathPrefix(JavaUUID) { id =>
      post {
        authenticate { user =>
          entity(as[Body]) { body =>
            ???
          }
        }
      }
    }
  }
}

While improving the client experience, this can make our code a little repetitive when composing multiple routes:
def route: Route = {
  pathPrefix("api" / "route") {
    pathPrefix(JavaUUID) { id =>
      post {
        authenticate { user =>
          entity(as[Body]) { body =>
            ???
          }
        }
      } ~
      put {
        authenticate { user =>
          entity(as[Body]) { body =>
            ???
          }
        }
      } ~
      delete {
        authenticate { user =>
          entity(as[Body]) { body =>
            ???
          }
        }
      }
    }
  }
}

as opposed to the much more compact
def route: Route = {
  pathPrefix("api" / "route") {
    pathPrefix(JavaUUID) { id =>
      authenticate { user =>
        entity(as[Body]) { body =>
          post { ??? } ~
          put { ??? } ~
          delete { ??? }
        }
      }
    }
  }
}

We may be able to use the & operator and combine directives into vals to make things a little better:
val withUserAndBody = authenticate & entity(as[Body])
def route: Route = {
  pathPrefix("api" / "route") {
    pathPrefix(JavaUUID) { id =>
      post & withUserAndBody { (user, body) =>
       ???
      } ~
      put & withUserAndBody { (user, body) =>
       ???
      } ~
      delete & withUserAndBody { (user, body) =>
       ???
      }
    }
  }
}

Reference: http://doc.akka.io/docs/akka/2.4.11/scala/http/routing-dsl/directives/

If we all agree on a convention, we should also probably make an ADR of it.


Enable pylint W1202 - % formatting in log strings

https://github.com/tensorflow/cleverhans/issues/614


Fix to_torchscript() causing false positive deprecation warnings

What does this PR do?
Fixes #10092
Does your PR introduce any breaking changes? If yes, please list them.
None
Before submitting

[x] Was this discussed/approved via a GitHub issue? (not for typos and docs)
[x] Did you read the contributor guideline, Pull Request section?
[x] Did you make sure your PR does only one thing, instead of bundling different changes together?
[n/a] Did you make sure to update the documentation with your changes? (if necessary)
[n/a] Did you write any new necessary tests? (not for typos and docs)
[x] Did you verify new and existing tests pass locally with your changes?
[x] Did you list all the breaking changes introduced by this pull request?
[x] Did you update the CHANGELOG? (not for typos, docs, test updates, or internal minor changes/refactorings)

PR review

[x] Is this pull request ready for review? (if not, please submit in draft mode)
[x] Check that all items from Before submitting are resolved
[x] Make sure the title is self-explanatory and the description concisely explains the PR
[x] Add labels and milestones (and optionally projects) to the PR so it can be classified

We should keep the linked issue open because imo this is just a workaround for an issue in PyTorch.

You still have the issue in the PyTorch repository.
And we will likely remove the deprecation before they fix this.