Added the hyphen_attributes HTML beautifier option to enforce all HTML attributes are hyphenated and lowercased.

Description

[x] Source branch in your fork has meaningful name (not main)

Fixes Issue:
Not necessarily an issue, but an improvement. Our codebase uses frameworks that rely on attributes being hyppenated and not camelCased, and having js-beautify automatically convert them would be great.
This added a new HTML only option hyphen_attributes which when enabled, will convert all attributes to hyphenated lowercase. By default, this is disabled and should be a noop for all current users.
Before Merge Checklist
These items can be completed after PR is created.
(Check any items that are not applicable (NA) for this PR)

[ ] JavaScript implementation
[x] Python implementation (NA if HTML beautifier)
[ ] Added Tests to data file(s)
[ ] Added command-line option(s) (NA if
[ ] README.md documents new feature/option(s)

@mf-pherlihy Please merge main into this branch to run the current CI pipeline.

At this time, the beautifier is a whitespace-only formatter.  It doesn't change text.  Please file an issue with a link to this code if you'd like to preserve it for some future date where this might be supported.


Weighted Average

https://www.investopedia.com/terms/v/vwap.asp

any field could be used to weight the other


release v0.1.0

Codecov Report

Merging #33 (7befc41) into main (709422d) will not change coverage.
Report is 2 commits behind head on main.
The diff coverage is 100.00%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@           Coverage Diff           @@
##             main      #33   +/-   ##
=======================================
  Coverage   98.87%   98.87%
=======================================
  Files          13       13
  Lines         266      266
=======================================
  Hits          263      263
  Misses          3        3

Files Changed
Coverage Δ

src/tensorshare/__init__.py
100.00% <100.00%> (ø)


Setting headers before request.

How can i set Accept: 'application/json Header before sending request. I am using the following method
this.get('sessions').authenticate('authenticator:oauth2') and i did not override authenticate method.

The OAuth 2.0 authenticator implements RFC 6749 and is not supposed to be customized in that way.

@marcoow So in the request it is putting Accept: /, is it correct ?

@marcoow  also the response should be like this
{
"access_token":"2YotnFZFEjr1zCsicMWpAA",
"token_type":"example",
"expires_in":3600,
"refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA",
"example_parameter":"example_value"
}


PriorityFee instructions (prepend ix-es) are not added when building v0 messages

Also, bump to 0.5.4

v1 uses the manual function so it should get added either way. Don't think this is currently being used yet anywhere


Test for calling non-existing Cloud Function

Added a test for calling non-existing Cloud Function

Current coverage is 84.13%

Merging #3 into master will increase coverage by +0.17% as of 9a02ffd

@@            master      #3   diff @@
======================================
  Files           33      33
  Stmts         2383    2383
  Branches       476     476
  Methods          0       0
======================================
+ Hit           2001    2005     +4
  Partial         19      19
+ Missed         363     359     -4

Review entire Coverage Diff as of 9a02ffd

Powered by Codecov. Updated on successful CI builds.


To find the number which occurs odd number of times in a given array (in C++)

💥 Proposal
(A clear and concise description of what the proposal is.)
Have you read the Contributing Guidelines on Pull Requests?
(Write your answer here.)
Yes, I have read the contributing guidelines.
This algorithm will print the number which occurs odd number of times in a given array.
Sample Input : 1 2 1 3 4 6 3 2 4
Sample Output: 6
It is because rest of the numbers occur twice while 6 occurs once.

/assign


Possible to load source code from source map for coverage report?

Hi,
is it possible to load the source code of a file for the html reporter from the source map instead of looking for it on the file system? I have a case of a generated code without a proper mapping, the coverage summary is fine, but when I click on the file, it says "Unable to lookup souce... ENOENT".
I saw that there is a sourceFinder option in Context, but it does not seem to be used for loading sources from source maps yet.
Environment Information

  System:
    OS: Linux 4.19 Debian GNU/Linux bullseye/sid
    CPU: (8) x64 Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
    Memory: 1.57 GB / 15.57 GB
  Binaries:
    Node: 12.16.2 - /usr/local/bin/node
    Yarn: 1.22.4 - /usr/local/bin/yarn
    npm: 6.14.4 - /usr/local/bin/npm
  npmPackages:
    @babel/core: 7.x => 7.9.6
    nyc: 15.x => 15.0.1
    rollup-plugin-babel: 4.x => 4.4.0

Yeah, I think this is still relevant, nothing has changed since then and no new release with changes regarding this issue has happened.


[BLOCK] Unknown error while checking blockers: command failed. Fix it and run command. at /scripts/elevate-cpanel line 7617.

Hello,
past night i tried to update 3 of our cPanel servers from CL 7 to 8. And well i encountered some problems. Long story short, on one it went without a hiccup. On other 2 however for one reason or another i had to restore from snapshot (one i forgot to take backup of postgres DB and web UI acted funky, on other after first boot in to CL8 i got stuck in emergency console and couldnt proceed). Anyway i said to my self, lets try again so i restored from snapshot. This is where problems begin... While i did snapshot JUST before elevation process now i cant get past:

2024-07-19 02:29:20 [INFO] --> Finished Dependency Resolution
2024-07-19 02:29:20 [INFO] Error: Package: leapp-deps-0.14.0-1.el7.noarch (elevate)
2024-07-19 02:29:20 [INFO]            Requires: python-requests
2024-07-19 02:29:20 [INFO] Error: Package: leapp-upgrade-el7toel8-deps-0.16.0-10.el7.cloudlinux.noarch (elevate)
2024-07-19 02:29:20 [INFO]            Requires: python-requests
2024-07-19 02:29:20 [INFO]  You could try using --skip-broken to work around the problem
2024-07-19 02:29:20 [INFO] Error: Package: leapp-upgrade-el7toel8-deps-0.16.0-10.el7.cloudlinux.noarch (elevate)
2024-07-19 02:29:20 [INFO]            Requires: dnf >= 4
2024-07-19 02:29:20 [INFO] Error: Package: leapp-deps-0.14.0-1.el7.noarch (elevate)
2024-07-19 02:29:20 [INFO]            Requires: python-six
2024-07-19 02:29:23 [INFO]  You could try running: rpm -Va --nofiles --nodigest
2024-07-19 02:29:23 [INFO]
2024-07-19 02:29:23 [WARN] Unknown error while checking blockers: command failed. Fix it and run command. at /scripts/elevate-cpanel line 7617.
2024-07-19 02:29:23 [WARN] Please fix the detected issues before performing the elevation process.
Read More: https://cpanel.github.io/elevate/blockers/

On both is the same, have no idea why and how since it was literally snapshot just before i started update procedure. I understand this errors might be repos related, however no idea how this is possible,

This might be issue from this: https://cloudlinux.zendesk.com/hc/en-us/articles/8763029890716-CloudLinux-8-repository-is-being-used-in-spite-CloudLinux-7
it makes sense... there was CL8 repo on CL7... probably will solve the issue, will report if it does, however i do think it should be a check for this case

Im just doing another update and i can confirm this indeed was an issue.

glad this is now working for you!


fix: chat, TypeError: multiaddr is not a function

Thanks for flagging this @mobeiqingkong
We should use the Multiaddr constructor exported to be consistent across the entire js-libp2p codebase. So I created #946 to get this fixed


xkcd

I added an xkcd command.  I also added a new-xkcd command to get the newest comic.  Their API is pretty neat: https://xkcd.com/json.html
I also just chose a random high number that returned a valid comic, but the actual total number of comics is somewhere around 2100.

this one looks good, sorry for taking so long to review it.


Fix code scanning alert - NoSQL operations should not be vulnerable to injection attacks

The malicious query makes it possible for the attacker to delete data in the affected databases.
This threat is particularly insidious if the attacked organization does not maintain a disaster recovery plan (DRP) as missing data can disrupt the regular operations of an organization.
via : https://rules.sonarsource.com/typescript/RSPEC-5147/
Tracking issue for:

[ ] https://github.com/delacortezz/juice-shop/security/code-scanning/137

code fixed


docs: small tweaks to flux documentation

After seeing it live - here are some small tweaks to make it better!

We do not have more than one step, so it does not make sense to include Step 1.
The spacing on the first bulleted list is off because I think I used * instead of -.
I added an actual link to the Dockerfile in examples.
The flag in the list was missing the correct quotes
The first sentence will read/ look better just as "Flux Framework" as part of the sentence instead of in parentheses.

Signed-off-by: vsoch<EMAIL_ADDRESS>QC

[ ] The PR contains a test case for the changes or the changes are already covered by an existing test case.
[ ] The documentation (docs/) is updated to reflect the changes or this is not necessary (e.g. if the change does neither modify the language nor the behavior or functionalities of Snakemake).

That was so speedy! Thank you!

Looks great! The one thing I'm not sure how to fix is adding more space below docker here:

I thought using - would fix it (the list below looks ok) but it did not. It's a tiny thing, not a big issue.


CJS

This module is incompatible with CJS, I think that support should be added.

I just realised that 3.x has esm support but both cjs and esm can be easily achieved at the same time

Please read the release notes. I don't plan to support CJS.


libspatialite: enable *nix platform builds for libspatialite

Motivation for this change
Fix #18537
Things done

[ ] Tested using sandboxing
(nix.useSandbox on NixOS,
or option build-use-sandbox in nix.conf
on non-NixOS)
Built on platform(s)

[ ] NixOS
[ ] OS X
[x] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

Thanks. Merged in d2151a50be4ba58662a796c8d38f7f80dac61c2b.

This won't land in the 16.09 release?


[Auto-generated] Check & update dependencies (pyproject.toml)

Update dependencies (pyproject.toml)
Automatically created PR based on the 'CI - Check pyproject.toml dependencies' workflow in SINTEF/ci-cd.

Codecov Report

:exclamation: No coverage uploaded for pull request base (ci/dependency-updates@dc83ebf). Click here to learn what that means.
Patch has no changes to coverable lines.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@                   Coverage Diff                    @@
##             ci/dependency-updates     #120   +/-   ##
========================================================
  Coverage                         ?   74.31%
========================================================
  Files                            ?       14
  Lines                            ?     1269
  Branches                         ?        0
========================================================
  Hits                             ?      943
  Misses                           ?      326
  Partials                         ?        0

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Making it easier to filter out completed shows

I have an app that functions much like https://trakt.tv/users/me/progress, but it's always filtered to only display shows with episodes left to watch.
There are two basic ways to get the list of such shows:

The extended=full approach. The upside is it's just one network call. The downside is that call can take upwards of 15 seconds.

https://api.trakt.tv/users/me/watched/shows?extended=full
Remove shows where show.plays == show.show.aired_episodes (slightly different for reset shows, but all the info is returned from this call)

The extended=noseasons approach. The upside is call i is much much faster. The downside is call ii happens 160 times for my user, even though I only have 17 shows with episodes left to watch.

https://api.trakt.tv/users/me/watched/shows?extended=noseasons
For each show, call https://api.trakt.tv/shows/:slug/progress/watched
Remove shows where show.completed == show.aired (slightly different for reset shows, but all the info is returned from the calls in ii)

I can't make much use of last_updated_at, because in the first alternative I won't see it until I've already requested all the data, and in the second alternative there might still have aired more episodes, and /shows/:slug/progress/watched doesn't even tell me if the show is active or has ended.
I could theoretically do 1 first for every user, and on subsequent loads do 2, but first of all that's quite messy, and second I would still have to call /shows/:slug/progress/watched for every show that hasn't ended, or has updated.
Would it be possible to add an aired field to the show object for extended=noseasons? Not sure what kind of database join that entails, so maybe it's not possible, or it would simply make all the calls just as slow as extended=full. If that's so, a status field would at least let me cache the aired number for all the shows that have ended, without combining approaches 1 and 2 or making even more network calls.

Another alternative / complement to that could be a last_aired_at field, that would be very helpful with caching.

Hey again, any chance this could happen? Would cut the number of calls I need to do on pageload by 90%. I thought for a second I might cache locally if a show has ended, but trouble is some shows un-end, like Will & Grace or Gilmore Girls.

What about getting extended info like https://api.trakt.tv/users/me/watched/shows?extended=noseasons,full -- that has show.aired_episodes in the response.

oh no kidding, I can combine multiple levels?! that's amazing, and I'm pretty sure it will do the trick!

it works, but is it actually faster than just ?extended=full? It's hard to test since I pretty obviously hit caches, but it seems like they both take on average 7-10 seconds for my user.

Uncached, they would both take a little while to calculate. It's mostly doing the same things behind the scenes, but the JSON output is reduced without seasons.

I see. My main issue is request failures / slow loading when using my page on a phone or other weak connection. I was looking at this in an attempt to cache more, but I think waiting 7-10 seconds to know if I can skip a bunch of fast requests is probably not worth the tradeoff. Thanks for trying to help!

I still think it would be interesting to filter out completed shows. My app also provide an "Up next to watch" feature and for some users https://api.trakt.tv/users/me/watched/shows?extended=noseasons,full will return a lot of unnecessary data.
Simkl handles this very well. Basically you ask for shows in the status you want (completed, watching, watchlist...) with the date_from parameter. If this parameter is omitted it will return the complete list of the wanted status, otherwise it will only return new items since this date. It's super fast and lightweight. In addition the list will contains the next episode to watch, if any, for each item.


Chocolatey? SYSPREP?

So-called best practices for a VMware VM template or an advertisement for Chocolatey?
Missing very essential information about deployment problems with VMware templates that sometimes assert themselves when SYSPREP fails and the resulting VM has a duplicate SID.

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

ID: fa3a80ef-f27f-b12c-ed7c-6c04288f758f
Version Independent ID: 7f9fb40f-ca54-439e-76c4-b3de5d36a91c
Content: Create a VMware vSphere template for Windows Server 2019 - Cloud Adoption Framework
Content Source: docs/manage/hybrid/server/best-practices/vmware-windows-template.md
Service: cloud-adoption-framework
Sub-service: manage
GitHub Login: @likamrat
Microsoft Alias: martinek

#please-close


Add utilities to inject & collect monitoring log info

Cromwell-on-GCP exposes a runtime option to inject a monitoring script into every task in a workflow, but (as far as I can tell) doesn't expose a way to collect the generated log paths via its API. For users who want to make use of monitoring, I think adding a new collect-monitoring-logs command to cromwell-tools would be useful. The command would:

Take a workflow ID,
Scrape the corresponding Cromwell execution directory for files named monitoring.log,
Output a dict of task ID -> raw monitoring log output.

Users could then bolt their own interpreters onto this command to parse their specific log outputs.
@benjamincarlin has been working on code to do this, and we thought it'd be good to contribute back here instead of setting up yet-another-repo. Would a PR be welcome?

Sounds useful! @rexwangcc @samanehsan any thoughts here? A PR is an appropriate way to contribute and we're happy to review. We 👍 anything that doesn't produce another repository!!! Thanks

Yes, that sounds great!

That sounds great! By the way, I opened a WIP PR: https://github.com/broadinstitute/cromwell-tools/pull/39 which shows @ambrosejcarr previous efforts and parts of our agreements in our other services (e.g. Google docstring, pytest for unittests...) But feel free to make the PR against the current master, I can rebase on that later!


Improvements

Hello,
First of all, I would like to thank this great (and well-written) project. I learnt a lot from reading those codes.
I know this repository is kind of abandoned but if someone is still interested in development, those commits might be useful.
@karelp did a great work mavenizing, cleaning and improving some parts of the project.
I did some refactoring extracting classes from the original parser adding a way to render procedural scenes (or maybe add new parsers).
@fpsunflower
Please take a look. It would be nice to have it in the main repository.

I would love these improvements but this project appears to be long dead. Has anyone created a fork of it that they're maintaining?

@timmattison I created a fork and glued all the available bug fixes, also did some refactoring. But I am not currently maintaining it. If you want to contribute I could definitely review and merge PRs to my fork.


Do call all data access APIs asynchronously.

Even the call is really fast? Say 99.99 percentile is 20 ms.

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

ID: 9599d917-4e43-f1ae-452a-1f11aaa985ed
Version Independent ID: 5cc05b6c-c671-3607-3217-7db73ebc1f28
Content: ASP.NET Core Performance Best Practices
Content Source: aspnetcore/performance/performance-best-practices.md
Product: aspnet-core
Technology: aspnetcore-performance
GitHub Login: @mjrousos
Microsoft Alias: riande

yes

Hi @yue-shi. That's a good question since synchronous execution can be best if operations are very fast. In my experience, though, even fast data access operations are usually best done asynchronously - especially in a very multi-threaded scenario like an ASP.NET Core app.
I did a little experimenting and found that, as you guessed, very fast local SQL Server access (with the database on the same machine as the ASP.NET Core app) can be faster if performed synchronously. But for any sort of remote data access (even within the same Azure region), async access is better. The details will depend on the scenario (specifically, how fast data access is and how many requests will be querying data concurrently) but in my ad hoc experimenting, hot code paths performed better when they were async even with data access times as low as 1ms (in the hundreds of microseconds range, sync began to be better). The latency times at which synchronous access will beat async may increase if the data access is less frequent (I haven't tested this thoroughly), but those probably aren't the code paths that need to be super-optimized.
As with all performance questions, it's probably best to test your specific scenario both ways if you have very fast access times (<10ms) and think async overhead may be causing trouble. I think in the vast majority of cases, though, async will be the right approach.


documentFetcher PhantomJSDocumentFetcher regexp pattern for reference

Part of my site pages using angularjs to render content. And PhantomJSDocumentFetcher works as expected. Great. But i don't need it to use for all pages. It's additional renderWaitTime takes time, and indexing becomes to slow.  So i need ability to pass regex pattarn to check currently processed url. If it matchs then use PhantomJSDocumentFetcher , if not then use default GenericDocumentFetcher. it will be great feature.

You can already do so based on URL extension, if there is any.  I am marking this as a feature request to be able to use regular expression on the entire URL instead (more flexible).

There are no url extensions for these links,  so this can't help. Will wait for more flexibility. Thx.

The latest snapshot now replaces the extensions and content type comma-separated lists with reference (URL) and content type patterns.   The two new replacement configuration tags for PhantomJSDocumentFetcher are:
     <referencePattern>
          (Regular expression matching URLs for which to use the
           PhantomJS browser. Non-matching URLs will fallback
           to using GenericDocumentFetcher.)
      </referencePattern>
      <contentTypePattern>
          (Regular expression matching content types for which to use
           the PhantomJS browser. Non-matching content types will use
           the GenericDocumentFetcher.)
      </contentTypePattern>

The javadoc has been updated as well.

documentFetcher stops worked as before. It is just returning first state of the page with angularjs placeholders.
documentFetcher without referencePattern, to match all.
<documentFetcher class="com.norconex.collector.http.fetch.impl.PhantomJSDocumentFetcher">
			<exePath>C:\norconex\phantomjs\bin\phantomjs.exe</exePath>
			<renderWaitTime>
				10000
			</renderWaitTime>
		</documentFetcher>

in task managers i can see phantomjs.exe running. But that is all. Sadly, deleted yesterday's version and cant check for differences.

So your problem is that you are not getting your content, that phantomjs.exe never returns, or both?  Do you have a URL that can be used to reproduce?

Sended links to your email. I thing that the problem is that the result from phantomjs is not returned.

There was a minor issue when the content type returned by PhantomJS also contained a charset.  I fixed this in a new snapshot.  I tested your page with it and it was processed properly.  Can you try again?

Can do it monday only.

PhantomJS works fine. Confirming fix.
referencePattern - also woks as expected.

Great, thanks for confirming.


Lean on Desktop addreference

Hi,
I'm new to python with the .NET framework. I tried to run BasicTemplateAlgorith,.py but am unable to add the Quant.Connect.Algorithm assembly.
Could be a noob question, please patiently tell me how to AddReference successfully. Thanks.
>>> AddReference("QuantConnect.Algorithm")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
System.IO.FileNotFoundException: Unable to find assembly 'QuantConnect.Algorithm'.
   at Python.Runtime.CLRModule.AddReference(String name)

Below are my paths. Should I be including some directory inside?
>>> sys.path
['.', 'C:\\Users\\User\\Desktop\\LEAN\\QuantConnect',
 'C:\\Users\\User\\Anaconda3\\python36.zip',
 'C:\\Users\\User\\Anaconda3\\DLLs',
 'C:\\Users\\User\\Anaconda3\\lib',
 'C:\\Users\\User\\Anaconda3',
 'C:\\Users\\User\\AppData\\Roaming\\Python\\Python36\\site-packages',
 'C:\\Users\\User\\Anaconda3\\lib\\site-packages',
 'C:\\Users\\User\\Anaconda3\\lib\\site-packages\\win32',
 'C:\\Users\\User\\Anaconda3\\lib\\site-packages\\win32\\lib',
 'C:\\Users\\User\\Anaconda3\\lib\\site-packages\\Pythonwin',
 'C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\']

Hi @vinitrinh ! Have you followed the instructions at https://github.com/QuantConnect/Lean/blob/master/Algorithm.Python/readme.md ? Maybe you are missing to build the Lean solution?

Closing as no reply


Affected apps of an deployment in the UI is empty

Yes, I noticed that the API has changed, when working with it. I will create a fix for review.

What exactly changed? We may have to fix the API instead.

Here are the changes committed:
https://github.com/mesosphere/marathon/commit/dc77d96855a314ca44eff4e4212d1a3f3ef11b46
https://github.com/mesosphere/marathon/commit/31246a58baa88330703f232ea5081bada2f3ea4d
It should probably also have been changed here, with that commit, but yeah I'm not sure why this change to API was added:
https://github.com/mesosphere/marathon/blob/master/src/main/resources/assets/js/components/DeploymentComponent.jsx#L50
https://github.com/mesosphere/marathon/blob/master/src/main/resources/assets/js/components/DeploymentComponent.jsx#L57

Okay, seems like a valid change with some forgotten ones ;-).

I built master from a9bccfa6f619984eed4145f22f1960e8cb78ec3f and affected apps are still missing. See #1018.

@mlunoe could you please look into this one?  It's been reproduced since the PR that was supposed to fix it.

Did you make sure to rebuild the frontend? I can only reproduce this if the frontend is not rebuild.
Here's a guide to build the frontend: https://github.com/mesosphere/marathon/tree/master/src/main/resources/assets

@mlunoe I used Dockerfile to build an image if that helps.

@mlunoe You're right. We really should integrate that step into the sbt build.


english l10n

move currency formatter in a config file
https://github.com/alakarteio/k-mille/pull/51/files#diff-41c810fb4374eb2e9fa0612f6f03e1feR5

i18n/l10n -> use k-intl -> wait for #53 two first step to begin this issue

Two first steps are ok


RR-1013 - Exemption (and removing exemption) journey

PR to implement the Review Exemption (and removing the Exemption) journeys
Exempting a Review and removing the Exemption
https://github.com/user-attachments/assets/e737a7f8-69bd-4654-9356-d24224244387
Recording a "System issue" Exemption
https://github.com/user-attachments/assets/d2d02851-2de9-4dbc-a4df-c4de3a72a7c4

Excellent stuff!


Use REST interface for calling get_raw_transaction

Closes https://github.com/casey/ord/issues/1558.
Use the REST endpoint for fetching raw transactions instead of RPC endpoint. Only really useful when implementing https://github.com/casey/ord/issues/1364 by reverting https://github.com/casey/ord/pull/1357.
When combined with https://github.com/casey/ord/pull/1516, I synced to 775812 (without --index-sats) in 1 hour 6 minutes. And no more pesky JSON-RPC errors.
The progress bar is kind of silly now though. It should really show progress from first inscription block to current height if no --index-sats.
This needs to have bitcoind run with -rest though, otherwise painful slowness and rpc errors.

The library oxhttp creates a new TcpStream connection for every request, which unfortunately breaks on Macs (https://github.com/apoelstra/rust-jsonrpc/issues/67). I tested a rewritten version copying SimpleHttpTransport from rust-jsonrpc, but it unfortunately has degraded performance. From https://github.com/apoelstra/rust-jsonrpc/pull/76#issuecomment-1320956515, it looks like it's much faster to create a new socket connection to bitcoind for every request. Benchmarking a sync with the same setup that I got 1:06 with using a single socket connection, I get ~5hrs :(.
Benchmarking RPC vs REST, it is about ~10-20% faster using REST. However, being able to use a new connection per request for either method is definitely what we want to do. I think the performance is so much better we might want to support reusing connections if not using Mac? I know a lot of users are running this in cloud instances running on linux, so might be worth it?

Ok update on this, I switched out oxhttp with hyper. This does two things - hyper pools connections and reuses them for requests if they are going to the same host. So in theory this should work on Mac. I still need someone on Mac to confirm for me.
Second, it is async, so while we don't batch requests like JSON-RPC can, we can execute requests concurrently. This patch now executes up to 15 requests concurrently, since the default -rpcworkqueue is set to 16 and if we exceed that it breaks. With this configuration I managed to sync to block 77260 in 80 minutes.
But there's more. If you configure bitcoind to have a higher rpcworkqueue, you can sync even faster! I set it to 120 and managed to sync in just 39 minutes.

@tzarebczan awesome! Did you also have #1357 reverted? Otherwise it doesn't use this feature.
What about #1516, did you try with that? If not, that would make sense why you have the JSON-RPC error, because it would still be fetching blocks via JSON-RPC.

I used speedup improvements branch from your repo

Closing in favor of https://github.com/casey/ord/pull/1759


Add editors for Trino database connector

Summary
Add UI support for Trino database type, Trino datasource spec, and Trino Delegated Kerberos Authentication Strategy
Corresponding legend-engine changes : https://github.com/finos/legend-engine/pull/1464

How did you test this change?

[ ] Test(s) added
[x] Manual testing (please provide screenshots/recordings)
[ ] No testing (please provide an explanation)

Could you please improve the summary and screenshot if possible?

could you please add one test for this?

@jinanisha  looking at the screenshot, the editor doesnt show an input for kerberos remote service name.
Why is this ?


TypeError on the demo page

Got a "Uncaught TypeError: Cannot read property 'left' of undefined" on line 86 of jquery.caret.js.
The page URL is : http://ichord.github.io/Caret.js/
The error occurs when i switch from the Textarea input to the contentEditable input.

Still persists


How do I add additional fields?

How do I add additional fields?
Example with the identifier of the client used on the site?
$paymentRequest-> ???
Best regards
Aurelien

Good question, i am in need of getting the buyers customers_id in the payment response.


Testing the countComments function

Please don't forget to test the countComments function, as right now it's not covered by tests.

tested


[BUG] The "minimize, maximize, close" buttons cover the tooltip

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
For "Activate" the tooltip is displayed at the top and is covered by these window buttons, but for "Deactivate" it is already displayed below and is easily visible.

Expected Behavior
No response
Steps To Reproduce
No response
Environment
- Mod Assistant Version: 2.0.9
- OS: Win10 22H2
- Virtualized: No

Anything else?
No response

Got it.  I hadn't been forcing the placement on those anywhere, I am now.

closing as complete.


Time overhead when adding many elements under a same HTML element

Describe the bug
When adding, for example, 1000
 elements under a same bootstrap .row element, in a child iframe page, the overhead before the page gets rendered can grow exponentially.
Adding 1000 items inside 1 row, autoResize=true : addImageLoadListners measured 1min30 in my context.
Adding 6 items inside ~166 rows each: addImageLoadListners measured ~2,5 seconds in my context.
Adding 1000 items inside 1 row, autoResize=false : addImageLoadListners no overhead obviously
To Reproduce
Steps to reproduce the behavior:

With vuejs (here v0.11) and bootstrap for example
Create structure with iframeresizer (parent + iframe pages) with autoResize=true
Create a basic list structure in child page:

[...stuff...]

Change nb of items in vue (to 1000 for example)

In my case [...stuff...] can get complex, I suppose the overall time spent really depends on this.
Replace vuejs directives by any javascript that would insert the 1000 items 1 by 1 inside the bootstrap .row.
Expected behavior
It probably should not take so long.
For now I will add the overhead to split rows where needed, as it mostly workarounds the problem, this issue is to let you know about this finding.
Desktop

OS: Manjaro
Browser Brave v1.59.124
iframeResizer v3.5.0

Additional context
Instrumenting shows that time is spent in iframeResizer.contentWindow.js, inside setupBodyMutationObserver(), here (line 554):
        Array.prototype.forEach.call(
          mutation.target.querySelectorAll('img'),
          addImageLoadListener
        );

This is repeatedly called on the same  element, while it is growing 1 by 1 due to how VueJS adds children with the v-repeat. Almost all the time seems to be spent on the querySelectorAll.
Only solution I can think of (except splitting rows appropriately of course) would be to allow deactivating mutationObserver before changing the list, then reactivating it after, dynamically, which currently is not possible if I'm not wrong. Also in this case we would want it to run after re-activation, so iframe height gets properly computed once the whole list is displayed (and not: after each element is added).
Alternatively it could be enough to have an option to deactivate image load listeners altogether, or to have a way to exclude their creation based on some tag inside html markup ? It's a bit convoluted.
Note: not tested on iframeResizer v4, I use v3 for compatibility.

I think the issue is adding elements one at a time to the page, you really need to add them together as a single block.

Thinking a little more, it might help if that loop where denounced to next animation frame by using window.requestAnimationFrame().
 if (!rafId) {
   rafId = window.requestAnimationFrame(
      () => {
           rafId = null
           setupBodyMutationObserver()
       }
   )
}

My health isn’t great at the moment and don’t have much energy to play with this, but it would be great if you give this a go and make a PR if it works.

Finally have time to look at this, but I will need a simple case added to the examples to be able to test it.

I'm working on v5 #1212 which changes how mutationObserver is used. Would be interested to know if it helps with your issue.


[O21U] Pipeline reproduction (FSL - deriv)

Softwares
FSL 5.0.9
Input data
derivatives (fMRIprep)
Additional context

brain_extraction : The preprocessed BOLD data from fmriprep output was multiplied by the brain mask (also provided with the fmriprep data).

spatial_smoothing : FSL 5.0.9 spatial smoothing default: 5mm FWHM

List of tasks
Please tick the boxes below once the corresponding task is finished. :+1:

[ ] :ok_hand: A maintainer of the project approved the issue, by assigning a :checkered_flag:status: ready for dev label to it.
[ ] :deciduous_tree: Create a branch on your fork to start the reproduction.
[ ] :sunrise: Create a file team_{team_id}.py inside the narps_open/pipelines/ directory. You can use a file inside narps_open/pipelines/templates as a template if needed.
[ ] :inbox_tray: Create a pull request as soon as you completed the previous task.
[ ] :brain: Write the code for the pipeline, using Nipype and the file architecture described in docs/pipelines.md.
[ ] :blue_book: Make sure your code is documented enough.
[ ] :snake: Make sure your code is explicit and conforms with PEP8.
[ ] :microscope: Create tests for your pipeline. You can use files in tests/pipelines/test_team_* as examples.
[ ] :microscope: Make sure your code passes all the tests you created (see docs/testing.md).

PR #202 gives the following correlation results : [0.48, 0.32, 0.48, 0.32, 0.23, 0.27, 0.23, 0.27, -0.08]

Correlation results : [0.78, 0.91, 0.78, 0.91, 0.92, 0.84, 0.92, 0.84, 0.01] with 108 subjects.

Closed with merged PR #202


Support resume for file downloads

Is your feature request related to a problem? Please describe.
Currently, if download of a file fails, there's no way to resume the transfer.
Describe the solution you'd like
Support for resuming a download.
Describe alternatives you've considered
I'm not sure what alternative to this there might be.

Looks like it was happening only when I had simple auth turned on using Nginx Proxy Manager.


Client properties may be read in system properties

Client properties are read from -D options command or with client.properties. Priority is given to system properties.
local client.properties (under src/main/resources or src/test/resources) are ignored by war task.

Please add client configuration variables in manifest.tmpl.yml

Added to template yaml file


[Snyk] Security upgrade org.apache.kafka:kafka-clients from 2.8.0 to 3.6.0

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in the `maven` dependencies of this project.
Changes included in this PR

Changes to the following files to upgrade the vulnerable dependencies to a fixed version:

kafka-2-8/pom.xml

Vulnerabilities that will be fixed
With an upgrade:

Severity
Priority Score (*)
Issue
Upgrade
Breaking Change
Exploit Maturity

768/1000  Why? Proof of Concept exploit, Recently disclosed, Has a fix available, CVSS 7.5
Allocation of Resources Without Limits or Throttling SNYK-JAVA-ORGXERIALSNAPPY-5918282
org.apache.kafka:kafka-clients:  2.8.0 -> 3.6.0
Yes
Proof of Concept

(*) Note that the real score may have changed since the PR was raised.
Check the changes in this PR to ensure they won't cause issues with your project.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings
📚 Read more about Snyk's upgrade and patch logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Allocation of Resources Without Limits or Throttling

 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.


running the  example of read_delta_table reports an error

Environment
Delta-rs version:
master
Binding:
Environment:

Cloud provider:
OS: macos
Other:

Bug
What happened:
Error: Not a Delta table: No snapshot or version 0 found, perhaps ./tests/data/delta-0.8.0 is an empty dir?
What you expected to happen:
No error
How to reproduce it:
run the example
extern crate anyhow;
extern crate deltalake;

#[tokio::main(flavor = "current_thread")]
async fn main() -> anyhow::Result<()> {
    let table_path = "./tests/data/delta-0.8.0";
    let table = deltalake::open_table(table_path).await?;
    println!("{}", table);
    Ok(())
}

More details:

Hello @xudong963!
Could you please share with us the command line (and the path where you launched it) used for running the example?

Oh, I just run use the button of Clion.

I believe it's because clion's execution position isn't at delta-rs/rust.
When I run  cargo run --color=always --example read_delta_table --manifest-path Cargo.toml at delta-rs/rust, it's ok.

Thanks @xudong963
Yes, you're right - I think it's because we use a relative path ./tests/data/delta-0.8.0. We are launching the example command line from the delta-rs/rust folder.

Thanks @fvaleye ,  closed


Add formatting support

Currently, formatting (ctrl +  I) of twig regions does not work. This should be implemented.

:+1:


Add coded race and ethnicity

added coded race and ethnicity composition
VRDR references VRCL input and coded race and ethnicity profiles
Deleted VRDR coded race and ethnicity profiles.  Renamed VRCL versions  (no longer 'new').
pre-coordinated input/coded race and ethnicity with mother and father linkage

This is a first cut...Probably needs more work.

Content transitions still refer to InputRaceAndEthnicityNew, which will lead to broken links

Not sure if this is intentional or an oversight - RequireMetaProfile is just a placeholder at the moment and still includes -New profiles

Content transitions still refer to InputRaceAndEthnicityNew, CompositionCodedRaceAndEthnicityNew (any -New that was removed), which will lead to broken links

We'll clean up all of the new stuff in one pass at some point...


delete unused line

Signed-off-by: Ignas Ausiejus<EMAIL_ADDRESS>What this PR does / why we need it: Simply found some code that was not used
Which issue this PR fixes: fixes #2193

please fix dco sign and update your PR

@princerachit I think something is wrong with DCO sign off for the whole project.

Hi @IgnasA, you have 3 commits and you signed only one of them. You have to sign all the commits.

e2e has been moved to litmus.


Create pb7-notes.md

Documentation of https://github.com/prebid/Prebid.js/issues/7796 and the not yet open PR to merge those into master

Where should we link this doc?

https://docs.prebid.org/dev-docs/release-notes.html
left nav?

FWIW - we should talk about what we do with this page -- https://docs.prebid.org/prebid/prebidjsReleases.html . I used to maintain this. No one complained when I stopped maintaining it. :-)

Release notes seems good, it won't be of general interest for long


new rule: LIKE typing refering to ddic

https://help.sap.com/doc/abapdocu_751_index_htm/7.51/en-us/abenlike_obsolete.htm

this will soon be possible


Fix trivial typos in Kconfig

Codecov Report

Merging #7948 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #7948   +/-   ##
=======================================
  Coverage   55.02%   55.02%
=======================================
  Files         481      481
  Lines       53965    53965
  Branches    10480    10480
=======================================
  Hits        29694    29694
  Misses      19995    19995
  Partials     4276     4276

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 0825d0c...2281c00. Read the comment docs.


Update or fix CLI command

https://codelabs.developers.google.com/codelabs/firebase-web-ru/index.html#4 page is not updated or fixed.
For example,firebase version command is not correct now. It should be firebase --version

Unfortunately that codelab is not published any more.


getAvailablePurchases returns different array every time

Version of react-native-iap
3.3.9 (but also experiences this in 3.0.0 and before)
Version of react-native
0.59.9
Platforms you faced the error (IOS or Android or both?)
iOS (not tested on Android)
Expected behavior
Same array every time I call getAvailablePurchases
Same array length every time
Actual behavior
Different array every time i call getAvailablePurchases
Different array length every time i call getAvailablePurchases
Tested environment (Emulator? Real Device?)
Real Device
Steps to reproduce the behavior
I think this is only visible with a lot of transactions, but can't confirm this. My Sandbox account has 50+ transactions.
handleOnPressRestore = async () => {
  return this.setState({ isLoadingRestorePurchases: true }, async () => {
    try {

      // Get the previous purchases of the current user
      const purchases = await RNIap.getAvailablePurchases();

      // Get the latest receipt from the purchases to validate
      const { transactionReceipt, productId, transactionDate } = this.getLatestPurchase(purchases);

      console.log(purchases.length, productId, transactionDate);

      // Validate the receipt on our server
      await this.props.validateSubscriptionReceipt(productId, transactionReceipt);

      // The validation result is handled in componentDidUpdate
    } catch (err) {
      throw err;
    } finally {
      this.setState({ isLoadingRestorePurchases: false });
    }
  });
}

getLatestPurchase = (purchases: RNIap.ProductPurchase[]): RNIap.ProductPurchase => {
  // First, sort the array, so the latest purchase is on top
  // https://github.com/dooboolab/react-native-iap/issues/532#issuecomment-503174711
  const sortedPurchases = purchases.sort((a, b) => b.transactionDate - a.transactionDate);

  const purchase = sortedPurchases[0];

  return purchase;
}

With the above code, when I press "Restore purchase", i get different logs every time:
Pressing "Restore purchase" 6 times, with a wait in between to let the results come in:
// purchases.length, productId, transactionDate
9 "com.app.sub"<PHONE_NUMBER>000
21 "com.app.sub"<PHONE_NUMBER>000
22 "com.app.sub"<PHONE_NUMBER>000
42 "com.app.sub"<PHONE_NUMBER>000
53 "com.app.sub"<PHONE_NUMBER>000
55 "com.app.sub"<PHONE_NUMBER>000
15 "com.app.sub"<PHONE_NUMBER>000

I would expect the array to always be the same, right? What's happening here?
The result of getAvailablePurchases() is different every time i run it

I am also seeing this. The really dangerous thing about it is there is a chance that the most recent valid receipt might not be in the results.

From looking at this modules code it honestly looks like an issue on Apple's side since this module is effectively just passing through whatever restoreCompletedTransactions() gives back

I wonder if getPurchaseHistory() is a good alternative to be used for subscriptions. I'm currently using that as the alternative, as that gives me reliable results.
As stated in the iap docs on this package, getAvailablePurchases() is used for consumable's. A subscription is not a "consumable product".
So getPurchaseHistory() should do?

I found getPurchaseHistory() gave varying array lengths as well. Seemed like frequency of requests effected it. In the end it turned out this didn't really matter for us, once any of the transaction receipts was sent up for validation all receipts were returned by Apple in the latest_receipt_info array anyway which is all that mattered for us.

I'm having the same issue (don't know if it is sandbox mode error). Also, when I switch apple id within a real device the purchase made with another account gets returned.
Ex:
1 - I made a purchase with account<EMAIL_ADDRESS>2 - Switched apple id to<EMAIL_ADDRESS>3 - getAvailablePurchases returns the transactionId of the purchase made with<EMAIL_ADDRESS>account
Another issue that I found is that if I restore the device (factory reset) both methods getPurchaseHistory() and getAvailablePurchases gives random results
Apple's response for restoring a purchase is:
"Users restore transactions to maintain access to content they've already purchased. For example, when they upgrade to a new phone, they don't lose all of the items they purchased on the old phone. Include some mechanism in your app to let the user restore their purchases, such as a Restore Purchases button."

Found a Apple Developer Forums topic about the varying results of restoreCompletedTransactions as said by @ssg-luke earlier.
https://forums.developer.apple.com/thread/115242
Maybe, this is related:

It seems like you are referring to one user having many transactions for which the app has not yet called finishTransaction.

I've had other sandbox accounts on the same device. So could it be the transactions of different accounts, on the same device, are just messed up and not "finished" at all?
However, I did run a loop on all the transactions, and called finishTransactionIOS on all of them. But that did not make them go away...
Could also explain what @fcandiani experiences.

I found getPurchaseHistory() gave varying array lengths as well. Seemed like frequency of requests effected it. In the end it turned out this didn't really matter for us, once any of the transaction receipts was sent up for validation all receipts were returned by Apple in the latest_receipt_info array anyway which is all that mattered for us.

Thanks for the info @ssg-luke , i'm gonna do the same.

I also ran a loop on all the transactions, and was not able to remove them with finishTransactionIOS. Feels like a Sandbox issue.

Maybe related to my comment on #791 > receiving many purchases, each one with different transactionId, having subscribed once.

Facing almost the same. I was creating a issue, but, decided to put here all the information to help others to find the problem and solution.
Version of react-native-iap
3.5.9
Version of react-native
0.60.5
Platforms you faced the error (IOS or Android or both?)
iOS

The same code is working perfectly on Android, already in production

Expected behavior
User subscribed once, getAvailablePurchases should return just one purchase
Actual behavior
getAvailablePurchases is returning more than one purchase,
Tested environment (Emulator? Real Device?)
Real device with fresh sandbox account.
Steps to reproduce the behavior

Create a sandbox test user on https://appstoreconnect.apple.com/access/testers
Build and run project on xcode
Call getAvailablePurchases, returns no purchaces (like expected)
Subscribe to some product
my purchaseUpdatedListener is called, and I call RNIap.finishTransactionIOS(subscription.transactionId); that returns just undefined (like expected I guess)
Call getAvailablePurchases, returns one purchase (like expected)
Reload de app
Call getAvailablePurchases, returns two purchases, each one with different transactionId:

{
   originalTransactionDateIOS:<PHONE_NUMBER>000
   originalTransactionIdentifierIOS: "1000000579413333"
   productId: "io.appmasters.lowcarb.development"
   transactionDate:<PHONE_NUMBER>000
   transactionId: "1000000579415509"
   transactionReceipt: "MIIVnQYJKoZIhvcN..."
},
{
   originalTransactionDateIOS:<PHONE_NUMBER>000
   originalTransactionIdentifierIOS: "1000000579413333"
   productId: "io.appmasters.lowcarb.development"
   transactionDate:<PHONE_NUMBER>000
   transactionId: "1000000579416705"
   transactionReceipt: "MIIVnQYJKoZIhvcN...."
}

Reload de app again
Call getAvailablePurchases, returns three purchases, each one with different transactionId (not the same from previous result):

{
   originalTransactionDateIOS:<PHONE_NUMBER>000
   originalTransactionIdentifierIOS: "1000000579413333"
   productId: "io.appmasters.lowcarb.development"
   transactionDate:<PHONE_NUMBER>000
   transactionId: "1000000579423546"
   transactionReceipt: "MIIb1AYJKoZIhvcN..."
},{
   originalTransactionDateIOS:<PHONE_NUMBER>000
   originalTransactionIdentifierIOS: "1000000579413333"
   productId: "io.appmasters.lowcarb.development"
   transactionDate:<PHONE_NUMBER>000
   transactionId: "1000000579426352"
   transactionReceipt: "MIIb1AYJKoZI..."
},{
   originalTransactionDateIOS:<PHONE_NUMBER>000
   originalTransactionIdentifierIOS: "1000000579413333"
   productId: "io.appmasters.lowcarb.development"
   transactionDate:<PHONE_NUMBER>000
   transactionId: "1000000579426353"
   transactionReceipt: "MIIb1AYJKoZIhvcN..."
}

Reload de app again
Call getAvailablePurchases, returns fours purchases, each one with different transactionId (not the same from previous result)...

This doesn't seem to be the right behavior, from what I read on docs and from what happens on Android.
I appreciate any help.

getAvaialblePurchases() is returning 150+ results on my sandbox test account.  I have decided not to use getAvailablePurchases() at all and just store last purchase on the device and also on the server. If app is deleted or user moved to new phone, we will still have last purchase tied to our company user id & platform (iOS or Android). Calling getAvailablePurchases() taking close to a minute and sometimes calling this triggering purchase updated listener trying to restore multiple purchases.  We have modified our flow like this:

When user logs into the device:
a) see if there is a valid last purchase on our server for the user and platform.
b) If there is no record on server, see if there a local saved purchase in DB
c) If there is none or there is expired one, show subscriptions view.
Initially we were calling getAvailablePurchases() and trying to see if last purchase was still valid. Not sure if this helps others but we are not running into issues with this anymore. We are on react 59  and that is another pain we have to deal with.

@ramakula and what if the user cancels his subscription?
The way you told, you will keep the subscription on your database until the end date, and will "see" that's not available purchase anymore.

getAvaialblePurchases() is returning 150+ results on my sandbox test account. I have decided not to use getAvailablePurchases() at all and just store last purchase on the device and also on the server. If app is deleted or user moved to new phone, we will still have last purchase on our server tied to our company user id & platform (iOS or Android). Calling getAvailablePurchases() taking close to a minute and sometimes calling this triggering purchase updated listener trying to restore multiple purchases. We have modified our flow like this:

When user logs into the device:
a) see if there is a valid last purchase on our server for the user and platform.
b) If there is no record on server, see if there a local saved purchase in DB
c) If there is none or there is expired one, show subscriptions view.
Initially we were calling getAvailablePurchases() and trying to see if last purchase was still valid. Not sure if this helps others but we are not running into issues with this anymore. We are on react 59  and that is another pain we have to deal with.

I believe we can get the latest purchases from the receipt. By verifying the receipt of a user, with exclude-old-transactions: true we can get the latest subscription info (only for auto-renewable type). I believe we can use this method to restore auto-renewable subscription purchases. I'm not sure if this is an ideal method though.

getAvaialblePurchases() is returning 150+ results on my sandbox test account. I have decided not to use getAvailablePurchases() at all and just store last purchase on the device and also on the server. If app is deleted or user moved to new phone, we will still have last purchase on our server tied to our company user id & platform (iOS or Android). Calling getAvailablePurchases() taking close to a minute and sometimes calling this triggering purchase updated listener trying to restore multiple purchases. We have modified our flow like this:

When user logs into the device:
a) see if there is a valid last purchase on our server for the user and platform.
b) If there is no record on server, see if there a local saved purchase in DB
c) If there is none or there is expired one, show subscriptions view.
Initially we were calling getAvailablePurchases() and trying to see if last purchase was still valid. Not sure if this helps others but we are not running into issues with this anymore. We are on react 59  and that is another pain we have to deal with.

I believe we can get the latest purchases from the receipt. By verifying the receipt of a user, with exclude-old-transactions: true we can get the latest subscription info (only for auto-renewable type). I believe we can use this method to restore auto-renewable subscription purchases. I'm not sure if this is an ideal method though.


"Expecting one more argument to ‘Boolean’" using Boolean in client code

I get the same error as #277 but that's closed fixed so reporting again.
Morpheus version: 0.17.0
Error:
• Expecting one more argument to ‘Boolean’
  Expected a type, but ‘Boolean’ has kind ‘Bool -> ScalarValue’
• In the first argument of ‘Maybe’, namely ‘Boolean’
  In the type ‘(Maybe Boolean)’
  In the definition of data constructor ‘StarWarsFilmsArgs’

Schema, a modified Starwars.graphql (altered name to be able to attach here):
starwars.txt
I changes line 3322 to skip: Boolean
Client code StarWars.hs:
StarWars.txt
To even get it to that point I had to add the following lines to the file:
{-# LANGUAGE DataKinds #-} at line 8
and
import Data.Morpheus.Types (ScalarValue (..)) at line 23
Thanks in advance for any help!

Hi @th3coop . thanks. i will check it out.

@nalchevanidze thanks for the follow up.  Will give that a try.

is fixed in #589. I also added a test to avoid this in the next versions.


RexExp rules: please, explain how

Hello everyone! Please, can anybody explain how to use regExp validation in semantic ui validation? I have this regExp: ([a-zA-Z0-9\s_\.-:])+(.doc|.docx|.pdf)$ I've tried this way:
resume: {
						identifier : 'js-file-type',
						optional   : true,
						rules: [
							{
								type : 'regExp[([a-zA-Z0-9\s_\\.\-:])+(.doc|.docx|.pdf)$]',
								prompt : 'The file must be a file of type: jpg, jpeg, bmp, png, pdf, doc, docx.'
							},
						]
					},

but this don't work : ( If I choose *.docx file I'll have errors anyway. How to do this correct?

This was solved in gitter chat.
For those wondering, Regexp currently should be specified as /regExp/ not regExp

Updating docs with clarification


Exception when Launching Chrome, after it crashed.

I'm not really sure how to reproduce this, but I suspect that what is happening is something like this:
Process launches.
Pages are loaded.
Chrome Crashes.
Another page is trying to load:
This happens:
java.lang.IllegalArgumentException: Hook previously registered
    at java.base/java.lang.ApplicationShutdownHooks.add(ApplicationShutdownHooks.java:72) ~[na:na]
    at java.base/java.lang.Runtime.addShutdownHook(Runtime.java:215) ~[na:na]
    at com.github.kklisura.cdt.launch.ChromeLauncher$ShutdownHookRegistry.register(ChromeLauncher.java:445) ~[cdt-java-client-1.3.3.jar:na]
    at com.github.kklisura.cdt.launch.ChromeLauncher.launchChromeProcess(ChromeLauncher.java:283) ~[cdt-java-client-1.3.3.jar:na]
    at com.github.kklisura.cdt.launch.ChromeLauncher.launch(ChromeLauncher.java:143) ~[cdt-java-client-1.3.3.jar:na]
    at com.github.kklisura.cdt.launch.ChromeLauncher.launch(ChromeLauncher.java:157) ~[cdt-java-client-1.3.3.jar:na]

Previous to that, the following happened:
java.lang.IllegalStateException: The connection has been closed.
    at org.glassfish.tyrus.core.TyrusSession.checkConnectionState(TyrusSession.java:530) ~[tyrus-core-1.13.1.jar:na]
    at org.glassfish.tyrus.core.TyrusSession.getBasicRemote(TyrusSession.java:212) ~[tyrus-core-1.13.1.jar:na]
    at com.github.kklisura.cdt.services.impl.WebSocketServiceImpl.send(WebSocketServiceImpl.java:114) ~[cdt-java-client-1.3.3.jar:na]
    at com.github.kklisura.cdt.services.impl.ChromeDevToolsServiceImpl.invoke(ChromeDevToolsServiceImpl.java:135) ~[cdt-java-client-1.3.3.jar:na]
    at com.github.kklisura.cdt.services.invocation.CommandInvocationHandler.invoke(CommandInvocationHandler.java:80) ~[cdt-java-client-1.3.3.jar:na]
    at com.sun.proxy.$Proxy122.getResourceTree(Unknown Source) ~[na:na]

After these two exceptions have been thrown the application must be restarted to recover.

Hey there,
java.lang.IllegalArgumentException: Hook previously registered - The issue here is that when ChromeLauncher is initialised its  hard coded member shutdownHook is initialised too and later, when launch() method is called, is registered with shutdownHookRegistry. When chrome crash and you try to launch chrome with the same instance of  chromeLauncher that you used to launch chrome that crashed, it tries to register the exact same shutdownHook and throws an exception.
The workaround here is to create a new ChromeLauncher instance every time chrome crash. A new shutdown hook will be initialised and registered and you will get no error when launching chrome.
However this workaround raises a concern that JVM will eventually run out of memory if you will continue to register shutdown hooks infinitely.


fix: updated black version to 24.1.1 and stated version in pull-reque…

…st.yml

Which issue(s) this PR fixes

Fixes #None
Additional comments

Updated black version to 24.1.1 in poetry.toml and poetry.lock.
Set version in pull-request.yml.
Format files which need to be reformatted with new version.

Agreements

[x] I hereby declare this contribution to be licensed under the Apache License Version 2.0, January 2004.
[x] I hereby agree to grant TOSIT a copyright license to use my contributions.

I have put the newest version of black 24.1.1, however VSCode extension still uses black 23.10.1 so Ctrl + Shift + I still reformats to the old format.


undo redo

Hi!
I extended ember-changeset to support history & undo/redo for a project - it's currently released as a separate addon - https://github.com/scazz010/ember-changeset-history
If you wanted to pull this into part of the core addon, I'd be happy to make a PR - but I'm not 100% sure it makes sense - extra code/memory usage for something that people don't seem to be asking for. Mostly, just pushing this out there to see what you think!
Cheers,


change in default dimension order for USE (SET DATA/FORM=CDF) in 6-dimensional Ferret

Reported by andrew wittenberg on 7 Apr 2015 22:33 UTC
I hesitate to even report this, since it's probably more of a feature than a bug -- but it might be good to perhaps document this change in behavior in the user's guide and/or release notes.  (One of my old scripts was failing due to this change, and it took me a while to figure out why.)
First, create a file "b.nc" which has two dimensions: TIME, plus another "unlabeled" dimension (COADSX) which has neither an "axis" attribute nor a "units" attribute.  Also swap the dimension order.
 	NOAA/PMEL TMAP
 	FERRET v6.933 (beta)
 	Linux 2.6.32-504.3.3.el6.x86_64 64-bit - 01/27/15
 	 7-Apr-15 18:03

yes? use coads_climatology
yes? save/clob/file=a.nc sst[y=@max]
 LISTing to file a.nc
yes? sp ncatted -O -h -a axis,COADSX,d,, -a units,COADSX,d,, a.nc
yes? sp ncpdq -O -h -a COADSX,TIME a.nc b.nc

Now if we USE b.nc, there's no way for Ferret to know the direction of COADSX, so it somehow has to assign a default direction.  This default appears to have changed with the introduction of the E & F axes in 6-dimensional Ferret.
In the old single-precision 4-d Ferret (v6.725), COADSX came in as an X-axis:
 	NOAA/PMEL TMAP
 	FERRET v6.725
 	Linux 2.6.18-274.12.1.el5 64-bit - 04/10/12
 	 7-Apr-15 18:08

yes? use b.nc; sho dat
     currently SET data sets:
    1> ./b.nc  (default)
 name     title                             I         J         K         L
 SST      SEA SURFACE TEMPERATURE          1:180     ...       ...       1:12
       (Y=90S:90N@MAX)

But then in the earliest version of 6-d Ferret, it started coming in as an E-axis:
 	NOAA/PMEL TMAP
 	FERRET v6.8 (beta1, 6D)
 	Linux 2.6.18-308.1.1.el5 64-bit - 05/08/12
 	 7-Apr-15 18:15

yes? use b.nc; sho dat
     currently SET data sets:
    1> ./b.nc  (default)
 name     title                             I         J         K         L         M         N
 SST      SEA SURFACE TEMPERATURE          ...       ...       ...       1:12      1:180     ...
       (Y=90S:90N@MAX)

Presumably Ferret is first assigning axes with known directions (either from the "axis" or "units" attribute, or perhaps from the dimension name in some cases) to their specified directions.  Then it somehow fills in the remaining spots with the "unlabeled" dimensions, based on the ordering in the NetCDF file.
Are the rules for assigning unlabeled axes documented somewhere?
As a workaround, note that the old behavior can be reproduced in 6-d Ferret, by explicitly specifiying the axis order:
 	NOAA/PMEL TMAP
 	FERRET v6.933 (beta)
 	Linux 2.6.32-504.3.3.el6.x86_64 64-bit - 01/27/15
 	 7-Apr-15 18:24

yes? use/ord=tx b.nc; sho dat
     currently SET data sets:
    1> ./b.nc  (default)
 name     title                             I         J         K         L         M         N
 SST      SEA SURFACE TEMPERATURE          1:180     ...       ...       1:12      ...       ...
       (Y=90S:90N@MAX)

This is the workaround that I'm using in my script.
So there may be nothing to do here, other than verifying that the behavior change was intended, and adding a line or two to the documentation.
Migrated-From: http://dunkel.pmel.noaa.gov/trac/ferret/ticket/2259

Comment by ansley.b.manke on 7 Apr 2015 23:14 UTC
In addition to the change to 6 dimensions, we've been working to pull out some heuristics that used to be used to determine axis direction.
Just previous to 6-D ferret, this was the change:
http://ferret.pmel.noaa.gov/Ferret/documentation/release-notes/version-6-7-release-notes#CF_compliance
This was in response to cases where there was a dimension like TSTATION which was being put in the T direction because its name stars with T, but which really belonged in the X direction; and because ambiguous axes like these were being given different directions in different grids in the same dataset.
Attributes in the dataset are probably our best and most consistent solution to this issue. For this particular example, here's the ncdump header:
> ncdump -h b.nc
netcdf b {
dimensions:
        COADSX = UNLIMITED ; // (180 currently)
        TIME = 12 ;
variables:
        double COADSX(COADSX) ;
                COADSX:modulo = " " ;
                COADSX:point_spacing = "even" ;
                COADSX:standard_name = "longitude" ;
        double TIME(TIME) ;
                TIME:units = "hour since 0000-01-01 00:00:00" ;
                TIME:time_origin = "01-JAN-0000 00:00:00" ;
                TIME:modulo = " " ;
                TIME:axis = "T" ;
                TIME:standard_name = "time" ;
        float SST(COADSX, TIME) ;
                SST:missing_value = -1.e+34f ;
                SST:_FillValue = -1.e+34f ;
                SST:long_name = "SEA SURFACE TEMPERATURE" ;
                SST:history = "From /home/users/tmap/ferret/linux/fer_dsets/data/coads_climatology.cdf" ;
                SST:units = "Deg C" ;
                SST:long_name_mod = "Y=90S:90N@MAX" ;

// global attributes:
                :history = "FERRET V6.94    7-Apr-15" ;
                :Conventions = "CF-1.6" ;
}

The attribute COADSX:standard_name = "longitude" should determine the direction of COADSX. There is a bug in Ferret that means this doesn't happen(try the same example using COADSY and you will see it working correctly).  Does your actual example have a standard_name attribute?
If there are grids which have coordinate variables with NO CLUES AT ALL, then the ordering seen in the file is used, according to the COARDS conventions:
ferret.pmel.noaa.gov/Ferret/documentation/coards-netcdf-conventions/
in there is a section, "Order of dimensions", which says, "...those dimensions should appear in the relative order T, then Z, then Y, then X in the CDL definition corresponding to the file."  I believe that because the ncdump of this file has this order:
 float SST(COADSX, TIME) ;

that what 4-D Ferret used to do was determine that TIME is in the T direction, and then put COADSX in the next available dimension, wrapping around to X.  What 6-D Ferret does is to use the next available dimension, namely E.
All of this is not a perfect solution. Even USE/ORDER= is not adequate because it acts in a blanket way on all the grids in the dataset. We have been thinking there is a need for more control by the user on axis directions when initializing a dataset.


Cannot derive arbitrary for struct with more than 10 members (?)

The short version: The following code fails to compile with
[dependencies]
proptest = "0.9"
proptest-derive = "0.1"

pub type Keycode = u8;
pub type Window = u32;
pub type Timestamp = u32;

#[derive(proptest_derive::Arbitrary, Debug, Clone, Copy, PartialEq, Eq)]
pub struct KeyPressEvent {
    pub response_type: u8,
    pub detail: Keycode,
    pub sequence: u16,
    pub time: Timestamp,
    pub root: Window,
    pub event: Window,
    pub child: Window,
    pub root_x: i16,
    pub root_y: i16,
    pub event_x: i16,
    pub event_y: i16,
    pub state: u16,
    pub same_screen: bool,
}

fn main() {
    println!("Hello, world!");
}

Error is:
error[E0277]: the trait bound `(_IMPL_ARBITRARY_FOR_KeyPressEvent::_proptest::num::u8::Any, _IMPL_ARBITRARY_FOR_KeyPressEvent::_proptest::num::u8::Any, _IMPL_ARBITRARY_FOR_KeyPressEvent::_proptest::num::u16::Any, _IMPL_ARBITRARY_FOR_KeyPressEvent::_proptest::num::u32::Any, _IMPL_ARBITRARY_FOR_KeyPressEvent::_proptest::num::u32::Any, _IMPL_ARBITRARY_FOR_KeyPressEvent::_proptest::num::u32::Any, _IMPL_ARBITRARY_FOR_KeyPressEvent::_proptest::num::u32::Any, _IMPL_ARBITRARY_FOR_KeyPressEvent::_proptest::num::i16::Any, _IMPL_ARBITRARY_FOR_KeyPressEvent::_proptest::num::i16::Any, _IMPL_ARBITRARY_FOR_KeyPressEvent::_proptest::num::i16::Any, _IMPL_ARBITRARY_FOR_KeyPressEvent::_proptest::num::i16::Any): _IMPL_ARBITRARY_FOR_KeyPressEvent::_proptest::strategy::Strategy` is not satisfied
 --> src/main.rs:7:10
  |
7 | #[derive(proptest_derive::Arbitrary, Debug, Clone, Copy, PartialEq, Eq)]
  |          ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `_IMPL_ARBITRARY_FOR_KeyPressEvent::_proptest::strategy::Strategy` is not implemented for `(_IMPL_ARBITRARY_FOR_KeyPressEvent::_proptest::num::u8::Any, _IMPL_ARBITRARY_FOR_KeyPressEvent::_proptest::num::u8::Any, _IMPL_ARBITRARY_FOR_KeyPressEvent::_proptest::num::u16::Any, _IMPL_ARBITRARY_FOR_KeyPressEvent::_proptest::num::u32::Any, _IMPL_ARBITRARY_FOR_KeyPressEvent::_proptest::num::u32::Any, _IMPL_ARBITRARY_FOR_KeyPressEvent::_proptest::num::u32::Any, _IMPL_ARBITRARY_FOR_KeyPressEvent::_proptest::num::u32::Any, _IMPL_ARBITRARY_FOR_KeyPressEvent::_proptest::num::i16::Any, _IMPL_ARBITRARY_FOR_KeyPressEvent::_proptest::num::i16::Any, _IMPL_ARBITRARY_FOR_KeyPressEvent::_proptest::num::i16::Any, _IMPL_ARBITRARY_FOR_KeyPressEvent::_proptest::num::i16::Any)`
  |
  = note: required because of the requirements on the impl of `_IMPL_ARBITRARY_FOR_KeyPressEvent::_proptest::strategy::Strategy` for `_IMPL_ARBITRARY_FOR_KeyPressEvent::_proptest::strategy::Map<(_IMPL_ARBITRARY_FOR_KeyPressEvent::_proptest::num::u8::Any, _IMPL_ARBITRARY_FOR_KeyPressEvent::_proptest::num::u8::Any, _IMPL_ARBITRARY_FOR_KeyPressEvent::_proptest::num::u16::Any, _IMPL_ARBITRARY_FOR_KeyPressEvent::_proptest::num::u32::Any, _IMPL_ARBITRARY_FOR_KeyPressEvent::_proptest::num::u32::Any, _IMPL_ARBITRARY_FOR_KeyPressEvent::_proptest::num::u32::Any, _IMPL_ARBITRARY_FOR_KeyPressEvent::_proptest::num::u32::Any, _IMPL_ARBITRARY_FOR_KeyPressEvent::_proptest::num::i16::Any, _IMPL_ARBITRARY_FOR_KeyPressEvent::_proptest::num::i16::Any, _IMPL_ARBITRARY_FOR_KeyPressEvent::_proptest::num::i16::Any, _IMPL_ARBITRARY_FOR_KeyPressEvent::_proptest::num::i16::Any), fn((u8, u8, u16, u32, u32, u32, u32, i16, i16, i16, i16)) -> KeyPressEvent>`

error: aborting due to previous error

When removing two members from the struct, this compiles.
The long version:
I am working on a library that generates tons of Rust code based on an XML description of the X11 protocol. The idea in https://github.com/psychon/x11rb/issues/453 is to test this code by generating a random instance of some structure, serialising it and then deserialising it again. Because there are tons of structs and enums involved, I do not want to generate code for generating arbitrary instances of something, but instead this really should be derived. This is how I found the above problem.

Is this issue confirmed? Right now this problem is the only issue keeping me from migrating from quickcheck.

Is this issue confirmed? Right now this problem is the only issue keeping me from migrating from quickcheck.

I have this exact same problem but with large enums instead of structs, and hence a slightly different error.
Source: https://fossil.wesleyac.com/soulserv/info/2060fe9af02be4f6
Error:
error[E0277]: the trait bound `((StringParam, StringParam, (), StringParam, ()), ((), (), ()), StringParam, StringParam, StringParam, StringParam, (StringParam, StringParam), (StringParam, ()), StringParam, (StringParam, StringParam, (), (), (), (), (), (), StringParam), (StringParam, StringParam), ((), StringParam, ()), ((), StringParam, ()), (), ((), StringParam), (), (), ((), ()), StringParam, (), (StringParam, (), StringParam), (), StringParam, (SizeRange, StringParam), (), (), (), (), (), (), (SizeRange, (StringParam, (), ())), ((), StringParam), (), (StringParam, (SizeRange, (StringParam, StringParam))), (StringParam, StringParam, StringParam), (StringParam, StringParam), (StringParam, StringParam), (StringParam, (), StringParam), (), (StringParam, ()), (), StringParam, (), (StringParam, (SizeRange, StringParam)), (StringParam, StringParam), (StringParam, StringParam), StringParam, StringParam, StringParam, StringParam, (), StringParam, (StringParam, StringParam), (StringParam, StringParam), StringParam, StringParam, (StringParam, (SizeRange, StringParam)), ((SizeRange, StringParam), StringParam), ((), StringParam), StringParam): Default` is not satisfied
   --> src/types/mod.rs:819:25
    |
819 | #[cfg_attr(test, derive(Arbitrary))]
    |                         ^^^^^^^^^ the trait `Default` is not implemented for `((StringParam, StringParam, (), StringParam, ()), ((), (), ()), StringParam, StringParam, StringParam, StringParam, (StringParam, StringParam), (StringParam, ()), StringParam, (StringParam, StringParam, (), (), (), (), (), (), StringParam), (StringParam, StringParam), ((), StringParam, ()), ((), StringParam, ()), (), ((), StringParam), (), (), ((), ()), StringParam, (), (StringParam, (), StringParam), (), StringParam, (SizeRange, StringParam), (), (), (), (), (), (), (SizeRange, (StringParam, (), ())), ((), StringParam), (), (StringParam, (SizeRange, (StringParam, StringParam))), (StringParam, StringParam, StringParam), (StringParam, StringParam), (StringParam, StringParam), (StringParam, (), StringParam), (), (StringParam, ()), (), StringParam, (), (StringParam, (SizeRange, StringParam)), (StringParam, StringParam), (StringParam, StringParam), StringParam, StringParam, StringParam, StringParam, (), StringParam, (StringParam, StringParam), (StringParam, StringParam), StringParam, StringParam, (StringParam, (SizeRange, StringParam)), ((SizeRange, StringParam), StringParam), ((), StringParam), StringParam)`
    |
    = help: the following other types implement trait `Default`:
              ()
              (C, B, A, Z, Y, X, W, V, U, T)
              (T,)
              (D, C, B, A, Z, Y, X, W, V, U, T)
              (A, Z, Y, X, W, V, U, T)
              (E, D, C, B, A, Z, Y, X, W, V, U, T)
              (W, V, U, T)
              (X, W, V, U, T)
            and 5 others
note: required by a bound in `_IMPL_ARBITRARY_FOR_LoginRequest::_proptest::arbitrary::Arbitrary::Parameters`
   --> /home/wesleyac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proptest-1.4.0/src/arbitrary/traits.rs:54:22
    |
54  |     type Parameters: Default;
    |                      ^^^^^^^ required by this bound in `Arbitrary::Parameters`
    = note: this error originates in the derive macro `Arbitrary` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `(((StringParam, (), StringParam, ()), StringParam), ((), (), ()), (StringParam, (), (), (), ()), (), StringParam, (StringParam, (), ()), (StringParam, StringParam, StringParam), (StringParam, (SizeRange, StringParam), (SizeRange, ()), (SizeRange, ((), (), (), ())), (SizeRange, ()), (SizeRange, StringParam), (Probability, (StringParam, (SizeRange, StringParam)))), StringParam, (StringParam, StringParam, (), (), (), (), (), (), StringParam), (StringParam, StringParam), (StringParam, (), (), (), (), (), (), ()), (StringParam, (), (), (), (), (), (), ()), (), (StringParam, (), StringParam), (), (), ((), ()), (StringParam, (), (), (), ()), (), (StringParam, (), StringParam), ((SizeRange, StringParam), (SizeRange, ()), (SizeRange, StringParam), (SizeRange, StringParam), (SizeRange, StringParam), (SizeRange, StringParam), (SizeRange, StringParam)), StringParam, (SizeRange, StringParam), (), (), (), (), (), (), (SizeRange, (StringParam, (), ())), ((), StringParam), (), (StringParam, (SizeRange, (StringParam, StringParam))), (StringParam, StringParam, StringParam), (StringParam, StringParam), (StringParam, StringParam), (StringParam, (), StringParam), (), (StringParam, ()), (), StringParam, (), (StringParam, (SizeRange, StringParam)), (StringParam, StringParam), (StringParam, StringParam), StringParam, StringParam, StringParam, StringParam, (), StringParam, (StringParam, StringParam), (StringParam, StringParam), StringParam, StringParam, (StringParam, (SizeRange, StringParam)), ((SizeRange, StringParam), StringParam), ((), StringParam), StringParam): Default` is not satisfied
   --> src/types/mod.rs:945:25
    |
945 | #[cfg_attr(test, derive(Arbitrary))]
    |                         ^^^^^^^^^ the trait `Default` is not implemented for `(((StringParam, (), StringParam, ()), StringParam), ((), (), ()), (StringParam, (), (), (), ()), (), StringParam, (StringParam, (), ()), (StringParam, StringParam, StringParam), (StringParam, (SizeRange, StringParam), (SizeRange, ()), (SizeRange, ((), (), (), ())), (SizeRange, ()), (SizeRange, StringParam), (Probability, (StringParam, (SizeRange, StringParam)))), StringParam, (StringParam, StringParam, (), (), (), (), (), (), StringParam), (StringParam, StringParam), (StringParam, (), (), (), (), (), (), ()), (StringParam, (), (), (), (), (), (), ()), (), (StringParam, (), StringParam), (), (), ((), ()), (StringParam, (), (), (), ()), (), (StringParam, (), StringParam), ((SizeRange, StringParam), (SizeRange, ()), (SizeRange, StringParam), (SizeRange, StringParam), (SizeRange, StringParam), (SizeRange, StringParam), (SizeRange, StringParam)), StringParam, (SizeRange, StringParam), (), (), (), (), (), (), (SizeRange, (StringParam, (), ())), ((), StringParam), (), (StringParam, (SizeRange, (StringParam, StringParam))), (StringParam, StringParam, StringParam), (StringParam, StringParam), (StringParam, StringParam), (StringParam, (), StringParam), (), (StringParam, ()), (), StringParam, (), (StringParam, (SizeRange, StringParam)), (StringParam, StringParam), (StringParam, StringParam), StringParam, StringParam, StringParam, StringParam, (), StringParam, (StringParam, StringParam), (StringParam, StringParam), StringParam, StringParam, (StringParam, (SizeRange, StringParam)), ((SizeRange, StringParam), StringParam), ((), StringParam), StringParam)`
    |
    = help: the following other types implement trait `Default`:
              ()
              (C, B, A, Z, Y, X, W, V, U, T)
              (T,)
              (D, C, B, A, Z, Y, X, W, V, U, T)
              (A, Z, Y, X, W, V, U, T)
              (E, D, C, B, A, Z, Y, X, W, V, U, T)
              (W, V, U, T)
              (X, W, V, U, T)
            and 5 others
note: required by a bound in `_IMPL_ARBITRARY_FOR_LoginRequest::_proptest::arbitrary::Arbitrary::Parameters`
   --> /home/wesleyac/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proptest-1.4.0/src/arbitrary/traits.rs:54:22
    |
54  |     type Parameters: Default;
    |                      ^^^^^^^ required by this bound in `Arbitrary::Parameters`
    = note: this error originates in the derive macro `Arbitrary` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0277`.

Any idea why this is, or what a fix could be? I guess in my case I only have two large enums so I could write the generation code myself, but that feels pretty silly.


Bug with data directory move + 10.1 + Ubuntu 16

I haven't tracked down this error yet so I'll try to include as much info as possible. To replicate it, set the version to 10.1 and set an alternate data directory like so:
diff --git a/.kitchen.yml b/.kitchen.yml
index 49e3fba..be2a8ac 100644
--- a/.kitchen.yml
+++ b/.kitchen.yml
@@ -26,6 +26,10 @@ suites:
     attributes:
       mariadb:
         use_default_repository: true
+        install:
+          version: '10.1'
+        mysqld:
+          datadir: /mysql

This will result in the following error:
       * execute[install-grants] action run

           ================================================================================
           Error executing action `run` on resource 'execute[install-grants]'
           ================================================================================

           Mixlib::ShellOut::ShellCommandFailed
           ------------------------------------
           Command execution failed. STDOUT/STDERR suppressed for sensitive resource

           Resource Declaration:
           ---------------------
           suppressed sensitive resource output

           Compiled Resource:
           ------------------
           suppressed sensitive resource output

           System Info:
           ------------
           chef_version=13.0.118
           platform=ubuntu
           platform_version=16.04
           ruby=ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
           program_name=chef-client worker: ppid=1601;start=05:36:21;
           executable=/opt/chef/bin/chef-client

         * service[mysql] action enable (up to date)

This is failing b/c the mysql database somehow doesn't exist:
root@default-ubuntu-1604:~# mysql -e 'show databases'
+--------------------+
| Database           |
+--------------------+
| information_schema |
+--------------------+

This seems to be a "recent" issue b/c the same issue does not occur with the 0.3.x branch which is why I opened https://github.com/sinfomicien/mariadb/pull/161.

@JCotton1123, to confirm the issue:
With the master branch/current release:

Using data dir move with Ubuntu 16 and MariaDB 10.0 does work
Using data dir move with Ubuntu 16 and MariaDB 10.1 does not work

With the 0.3.x branch:

Using data dir move with Ubuntu 16 and MariaDB 10.0 does work
Using data dir move with Ubuntu 16 and MariaDB 10.1 does work

Is the above correct?
Are you trying to move the data dir during initial bootstrap or moving the data dir of a running server?

Yes, I believe the above is correct however I was testing various permutations of Chef client, MariaDB version, and Ubuntu version when I was trying to track this down so it probably wouldn't hurt to re-verify the above. I'll try to do that when I have some time.
The data dir move is only during the initial bootstrap.

Confirming this issue appears to be specific to Ubuntu 16 and MariaDB 10.1. The issue appears to be that Chef fails to shutdown the mysql service before performing the datadir move. Chef reports * service[mysql] action stop (up to date) however the service is running. If I run service mysql stop or systemctl stop mysql the service does successfully stop. Guessing the issue might be related to systemd given that it only impacts Ubuntu 16. I did try manually setting the service provider to systemd but that had no impact.

Thanks for the investigations thus far! Interesting that it works in an older cookbook version...
Hopefully I should have some time next week to dive into this one as some colleagues are also looking for 10.1 support. We predominantly use CentOS but would be good to make it work across all platforms and do a major version bump of this cookbook.


adopting linux repo from existing local mirror repo causes 500

Description
I'm using git version 2.43.0.windows.1  and gitea 1.21.5
I do have a local bare mirror linux kernel repo from https://github.com/torvalds/linux and I get the following error

even when I try to clone it directly from GitHub using GitHub migration I still get the same error.
Gitea Version
1.21.5
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
2.43.0
Operating System
Windows 10 22H2
How are you running Gitea?
As a windows service using SQLite as my backend.
Database
SQLite

2.6.11 doesn't exist on github https://github.com/torvalds/linux/tags?after=v2.6.12-rc3

Also see this:  unable to PushUpdateAddTag to Repo: unable to get tag Commit: object does not exist #28843
And maybe this: slice bounds out of range in function: /modules/git.newSignatureFromCommitline #28840

duplicate of #28843

@lunny I understand that tag 2.6.11 doesn't exist, Shouldn't gitea ignore such error and continue on migration?

@lunny I understand that tag 2.6.11 doesn't exist, Shouldn't gitea ignore such error and continue on migration?

I think we can do that in a PR. Let's follow #28843


feat(utils): allow reuse of existing computed style in isContainingBlock

This helps avoid recomputing styles when integrating isContainingBlock into logic that already has them (example).

@atomiks Thanks for the merge!
Considering your earlier feedback, I think avoiding the function overload is a better approach. This would also follow TS's recommendation to prefer union type params vs overloads. Is it OK if I update the signature to:
export function isContainingBlock(elementOrCss: Element | CSSStyleDeclaration): boolean { /* ... * /}

?


Delete posts

As a frequent forums user, I'd like to delete my own posts if I make a typo or accidentally share false information

When posts are deleted, on my branch I have made it so that the corresponding images are deleted as well (instead of just the link to them)


mini view and which-key

Describe the bug
I created this issue on which-key repo thinking its partially a which-key problem
Which key sends a message on every key press like this

When using noice with mini view, it prints these msgs as virt-text, which lies on top of the which-key window itself

I have exaggerated the example in the picture
Which version of Neovim are you using?
NVIM v0.9.0-dev-136-gfad558b6af
latest nightly
To Reproduce
Steps to reproduce the behavior:

Install noice & which-key
setup keymaps
Use mini view (default now if nvim-notify is not installed)
Press any key/s

Expected Behavior
Only which-key shows up/ or, I can filter out which-key messages
Noice config
            use {
            'folke/noice.nvim',
            config = function()
                require('noice').setup {
                    cmdline = { view = 'cmdline', view_search = 'cmdline' },
                }
            end,
            requires = 'MunifTanjim/nui.nvim',
        }

While digging into which-key codebase for nvim_echo calls, I just realized I can put show_help = false in the config that does reduce some of these messages.
Others like keypress messages are still displayed by noice & overlap with which-key window

Yep, this is not really a bug tbh :)
Which-key, like other plugins uses nvim_echo. In Noice, you can decide what to do with it.
I still need to see how this can be improved.

I still need to see how this can be improved.

Perhaps make key_press messages within which-key configurable the same as show_help?

I still need to see how this can be improved.

Perhaps make key_press messages within which-key configurable the same as show_help?

Just submitted a small PR to add that option in which-key.
I guess then the main issue is the window-overlap. Not sure if it is even an issue or a matter of preference

You can fix the overlap with properly configuring the zindex of the mini view.
Closing this, since it's a config issue and you actually added a config option to whichkey as well to make this better. Thanks again for that :)

You can fix the overlap with properly configuring the zindex of the mini view.

Thanks. I guess you mean zindex as passed to nvim_open_win config opts?
I will dig deeper into how mini is handled, maybe I can add it to the wiki once I do!

Closing this, since it's a config issue and you actually added a config option to whichkey as well to make this better. Thanks again for that :)

No problem. Love this plugin. Thanks for your amazing work and unbelievable efficiency! Will try to contribute PRs here once I have a bit more time to dive into the codebase


Points are not matched properly

Hello.
First of all, thanks for this great package. We've had a great time using it.
While looking at our results we found some point that weren't matched properly.
Here's a our case. The points are located on a highway in Bulgaria.
Original points.
https://www.darrinward.com/lat-long/?id=2998629
42.593219,27.387029
42.593238,27.389142
42.593103,27.391241
42.592706,27.3931
42.59213,27.394631
42.59153,27.395677
42.591096,27.396121
42.590597,27.395716
42.590736,27.394959
42.591234,27.39421
42.592027,27.393701
42.592946,27.39331
42.593981,27.392902
Matched points.
https://www.darrinward.com/lat-long/?id=2998627
42.593238611937764,27.38702862831659
42.59325732877199,27.38914244441927
42.593094358151596,27.391238352185045
42.59267606365939,27.393082229335054
42.59207070749009,27.3945796320841
42.5921101,27.3936154
42.5921101,27.3936154
42.5921101,27.3936154
42.5921101,27.3936154
42.5921101,27.3936154
42.5921101,27.3936154
42.592946896933576,27.39331462726809
42.593984827814886,27.392920323594343

It looks like the motorway link is not part of the street map. However, I couldn't see any wrong data on quick scan.

Did the output say something about an HMM break?
Could you please provide a working example, i.e., the original points in a JSON format that can be fed in the matcher like this: https://github.com/bmwcarit/barefoot/blob/master/src/test/resources/com/bmwcarit/barefoot/matcher/x0001-015.json

Thanks.

[
{"point ":"POINT (27.369431 42.594829)"," time":"2017-04-25 16:54:45","id":"\x0001"},
{"point ":"POINT (27.371582 42.594401)"," time":"2017-04-25 16:54:50","id":"\x0001"},
{"point ":"POINT (27.373774 42.594035)"," time":"2017-04-25 16:54:55","id":"\x0001"},
{"point ":"POINT (27.375982 42.593736)"," time":"2017-04-25 16:55","id":"\x0001"},
{"point ":"POINT (27.378193 42.593495)"," time":"2017-04-25 16:55:05","id":"\x0001"},
{"point ":"POINT (27.380419 42.593336)"," time":"2017-04-25 16:55:10","id":"\x0001"},
{"point ":"POINT (27.382636 42.593245)"," time":"2017-04-25 16:55:15","id":"\x0001"},
{"point ":"POINT (27.384848 42.593206)"," time":"2017-04-25 16:55:20","id":"\x0001"},
{"point ":"POINT (27.387029 42.593219)"," time":"2017-04-25 16:55:25","id":"\x0001"},
{"point ":"POINT (27.389142 42.593238)"," time":"2017-04-25 16:55:30","id":"\x0001"},
{"point ":"POINT (27.391241 42.593103)"," time":"2017-04-25 16:55:35","id":"\x0001"},
{"point ":"POINT (27.3931 42.592706)"," time":"2017-04-25 16:55:40","id":"\x0001"},
{"point ":"POINT (27.394631 42.59213)"," time":"2017-04-25 16:55:45","id":"\x0001"},
{"point ":"POINT (27.395677 42.59153)"," time":"2017-04-25 16:55:50","id":"\x0001"},
{"point ":"POINT (27.396121 42.591096)"," time":"2017-04-25 16:55:55","id":"\x0001"},
{"point ":"POINT (27.395716 42.590597)"," time":"2017-04-25 16:56","id":"\x0001"},
{"point ":"POINT (27.394959 42.590736)"," time":"2017-04-25 16:56:05","id":"\x0001"},
{"point ":"POINT (27.39421 42.591234)"," time":"2017-04-25 16:56:10","id":"\x0001"},
{"point ":"POINT (27.393701 42.592027)"," time":"2017-04-25 16:56:15","id":"\x0001"},
{"point ":"POINT (27.39331 42.592946)"," time":"2017-04-25 16:56:20","id":"\x0001"},
{"point ":"POINT (27.392902 42.593981)"," time":"2017-04-25 16:56:25","id":"\x0001"},
{"point ":"POINT (27.392491 42.595099)"," time":"2017-04-25 16:56:30","id":"\x0001"},
{"point ":"POINT (27.391984 42.596097)"," time":"2017-04-25 16:56:35","id":"\x0001"},
{"point ":"POINT (27.391317 42.596913)"," time":"2017-04-25 16:56:40","id":"\x0001"},
{"point ":"POINT (27.390583 42.597756)"," time":"2017-04-25 16:56:45","id":"\x0001"},
{"point ":"POINT (27.389845 42.598546)"," time":"2017-04-25 16:56:50","id":"\x0001"},
{"point ":"POINT (27.389162 42.599267)"," time":"2017-04-25 16:56:55","id":"\x0001"},
{"point ":"POINT (27.388516 42.599956)"," time":"2017-04-25 16:57","id":"\x0001"},
{"point ":"POINT (27.387899 42.600616)"," time":"2017-04-25 16:57:05","id":"\x0001"},
{"point ":"POINT (27.38733 42.601237)"," time":"2017-04-25 16:57:10","id":"\x0001"},
{"point ":"POINT (27.38673 42.601863)"," time":"2017-04-25 16:57:15","id":"\x0001"}
]

I need to work it out a bit more, but I won't be able to check that before the weekend. So, maybe I can provide a soluton by sunday or monday.

Alright, I identified the bug which was introduced with https://github.com/bmwcarit/barefoot/commit/8111991657cd6a053c8e531eda2f15847d63f073 and is given with https://github.com/bmwcarit/barefoot/blob/master/src/main/java/com/bmwcarit/barefoot/matcher/Matcher.java#L177-L188 . I need to think about a solid solution and will provide a bug-fix probably tomorrow.
Side note: I will check if it is related to this bug: https://github.com/bmwcarit/barefoot/issues/27

Thank you. Your effort is appreciated.

Fixed in commit https://github.com/bmwcarit/barefoot/commit/952e63f620fa1dba82eb33865be4b130c86e3334 and released in https://github.com/bmwcarit/barefoot/releases/tag/0.1.1 and tested with trace and map of Bulgaria provided with comment https://github.com/bmwcarit/barefoot/issues/56#issuecomment-304843457 The bug seems to be fixed for that case and was indeed related to issue https://github.com/bmwcarit/barefoot/issues/27 .

I just checked the latest version. I can confirm it's working as expected.


update optimizer

Codecov Report
Base: 85.53% // Head: 85.53% // No change to project coverage :thumbsup:

Coverage data is based on head (d1c4fa3) compared to base (7f728bd).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #419   +/-   ##
=======================================
  Coverage   85.53%   85.53%
=======================================
  Files          33       33
  Lines        2966     2966
=======================================
  Hits         2537     2537
  Misses        429      429

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Fix swapped names in Matrix3f and Matrix4f

It has been incorrect since the first commit that introduced these names. I have confirmed that it's human error.
... I'm the one who introduced these names. Sorry!

Can we maybe rename these to readColumn/RowMajor and note the misnaming in the javadoc? It looks like something to introduce sneaky bugs otherwise and Major is more descriptive than First IMO.

It should be fine since these methods are relatively unused and have only been named incorrectly in snapshots since 21w14a. I do agree that they should be use the term 'major' rather than 'first' though.

So row major fills up a row before it moves on to the second row, I assume?

Yes, see https://en.wikipedia.org/wiki/Row-_and_column-major_order - OpenGL is column major btw


change map zoom 10 to 9

Coverage remained the same at 96.721% when pulling 3db8996ef111c748124d774a6dc8ad860ee8fb9c on prod into 1d45de3949d6e1fd07cd2431f85866cb30930b7c on master.


feat: add hardware information of server as an attribute

Signed-off-by: Lloyd-Pottiger<EMAIL_ADDRESS>What problem does this PR solve?
Issue Number: close #4879
Problem Summary:
What is changed and how it works?
add server_info as a attribute of Server
Check List
Tests

[ ] Unit test
[ ] Integration test
[ ] Manual test (add detailed scripts or steps below)
[ ] No code

Side effects

[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Breaking backward compatibility

Documentation

[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Changes MySQL compatibility

Release note

None

/cc @JinheLin @CalvinNeo @flowbehappy @fuzhe1989

/merge


update Appendix in developer guide

I saw the document. Some of the precondition did not break line

What does the fourth line in your comment mean?

Appendix D: Under the title. It will stated For all (...). Remove the part "Actor is user". As we have more than just one user.


sample code update

#8

Coverage remained the same at 89.552% when pulling f2d1da8ea3f9e1286422950a1731c527485a8e01 on sample into 6fbd1df6cc9562620baa65967e70f7930e03ddaa on master.


[Bug] Reloading page clears conversation with AI chat

Describe the bug
Reloading the page (accidentally or otherwise) clears the conversation with DDG AI chat.
How to Reproduce

Open Duckduckgo AI chat
Choose any model and interact with it
Reload page, responses are gone

Expected behavior
Chat history should not be cleared if user reloads the tab. If the user wants to clear the conversation they can simply press the clear conversation button on bottom left. Maybe the chat history could be stored in the device's local storage, so that clumsy people like yours truly won't end up losing responses upon unintentionally reloading the page.
Environment
- DDG App Version: 5.208.1
- Device: Nokia 5.1
- OS: Android 10

Thanks for reaching out! To clarify, this is a known limitation of AI Chat and not a bug specific to the Android app. Unfortunately, this means chat history won’t be saved if the page is refreshed, regardless of the browser you’re using. We really appreciate your feedback and have passed it along to the relevant team.