Error: EACCES: permission denied, open '/app/node_modules/vite-envs/client.d.ts'

When I try to run the container I get a permissions error for this file but I can' see it in node modules?
here is my docker file
FROM node:20-alpine

WORKDIR /app
COPY --chown=node:node . ./
RUN npm ci
WORKDIR /app/client
RUN npm run build

EXPOSE ${FRONTEND_CLIENT_PORT}
USER node
CMD ["npm", "run", "preview"]

Hello @lpoulter1,
There are a few things here.
First, let's see why this doesn't work.
When you run npm run preview, the vite-envs Vite plugin is executed. It attempts to update your type definitions so that import.meta.env lists the environment variables you've declared.
To do this, it needs to extend the base type definition of your version of Vite. Specifically, it needs to update node_modules/vite-envs/client.d.ts. However, you installed the dependencies as the default user, but you run npm run preview as the node user, leading to the EACCES error.
To resolve this, you can move the USER node directive:
FROM node:20-alpine

USER node
WORKDIR /app
COPY . ./
RUN npm ci
WORKDIR /app/client
RUN npm run build

EXPOSE ${FRONTEND_CLIENT_PORT}
CMD ["npm", "run", "preview"]

This will make the error disappear, but I strongly suggest you reconsider your approach.
First, vite preview is not intended for use as a production web server—it's only for local testing.
For performance, security, and reliability, you should consider using Nginx to serve your SPA instead.
This will also make your Docker image much smaller, as you won't need to include the entire node_modules directory.
# build environment
FROM node:20-alpine as build
WORKDIR /app
COPY . .
RUN npm ci
RUN npm run build

# production environment
FROM nginx:stable-alpine
COPY --from=build /app/client/nginx.conf /etc/nginx/conf.d/default.conf
RUN sed -i 's/8080/${FRONTEND_CLIENT_PORT}/g' /etc/nginx/conf.d/default.conf # Not fully sure about the syntax here

WORKDIR /usr/share/nginx/html
COPY --from=build /app/client/dist .
ENTRYPOINT sh -c "nginx -g 'daemon off;'"

client/nginx.conf
server {
    listen 8080;

    gzip on;
    gzip_vary on;
    gzip_min_length 1024;
    gzip_proxied expired no-cache no-store private auth;
    gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/javascript application/xml;
    gzip_disable "MSIE [1-6]\.";

    root /usr/share/nginx/html;
    index index.html;

    try_files $uri $uri/ /index.html;

    # Vite generates filenames with hashes so we can
    # tell the browser to keep in cache the resources.
    location ^~ /static/ {
        try_files $uri =404;
        expires 1y;
        access_log off;
        add_header Cache-Control "public";
    }

    location ~* \.(html|json|txt)$ {
        try_files $uri =404;
        expires -1;  # No cache for these file types
    }

}

This is the canonical setup for a containerized statically served single-page application (we're not talking about vite-envs here, it's the industry-standard approach).
Since you're using vite-envs, I assume you want to inject environment variables when running the Docker image, like so:
docker run --env FOO="xyz" my-org/my-vite-app
To make that work, you need to execute the shell script generated by vite-envs before you start serving your static files:
-ENTRYPOINT sh -c "nginx -g 'daemon off;'"
+ENTRYPOINT sh -c "./vite-envs.sh && nginx -g 'daemon off;'"

With all that, you should be set!

What a great answer thanks. I was aware of the limitations of preview and was writing that off as tebt debt until worked out the best way to serve the static bundle, so thanks for that config. I'll make thoose updates.


Adding defines to build

My haxe (lime/openfl) project has some conditional compiling depending on defines I provide by hand (-DFAST_TESTS).
Can I somehow tell the build system to run lime with these defines enabled?

If you use hxml maybe you should add space like this: -D FAST_TESTS

I'm not quite enough into lime, but I bet you can define these flags somewhere in the lime build file (xml ?)

sorry for confusing about this, now I remember that with lime/openfl someone should use xml or hxp project files and hxml is just regenerated every build

I believe I can define that in the project.xml file, but actually I want different builds. One with "-D FAST_TESTS" enabled and one with it disabled.
Is that possible or do I have to edit my project.xml every time?

You can use several project.xml

Well, that it is simple enough.


KAFKA-14133: Move StreamTaskTest to Mockito

This pull requests migrates mocks from StreamTaskTest to Mockito.

I will circle back a bit later to provide reasoning about why some seemingly needed things were removed.

Hello @cadonna! This ought to be one of the last PRs for the migration. I will circle back tomorrow morning to rebase it since it has been out for a long time

@clolov That is great! Looking forward to reviewing it! I am on vacation at the moment. Maybe I can look at it next week or the week after.

Okay, enjoy your time off!

Heya @cadonna! I have rebased and hopefully addressed all of the first batch of comments. The verifications which are missing are reported as unnecessary/uncalled by Mockito, but if you think they are necessary I will circle back to check


Editable half stars fails in example

The editable half stars does not work correctly in (the example)[http://voronianski.github.io/react-star-rating-component/example/]
Initial render looks ok, but after changing the rating there's no way to get it back to a half star.

Indeed since you when you click, you will always click a full star.

update to latest version 1.4.1 and check the example once again - https://github.com/voronianski/react-star-rating-component/blob/master/example/index.js#L92-L116


debian packages: fetch sbomutil from gcs

In preparation for generating SBOMs for guest environment first party packages this patch brings the required changes to fetching sbomutil from gcs for debian builds.

/lgtm


FancyZones

Is this expected to work with FancyZones ?
when I try to drag the capture area with Shift pressed, I don't see FancyZones highlighting the zone area.

Does FancyZones require the whole window to be non-transparent ? Or if there is a label or a button that is not transparent that will work? I've been also looking at this tool https://github.com/michiproep/ScreenshareHelper and they mention FancyZones works

Interesting, thanks for the reference. Let me have a look the other day.

This working in concert with FancyZones would solve all my problems!

FWIW, I am using this with FancyZones. This is what I do:
I first decided that when I'm using ScreenAreaShare I will do so at 720p. This is a reasonable resolution that should allow people viewing my screen to see it pretty well, even on mobile devices.
I then decided that I wanted to share the top-right corner of my 49" display, with the rendering window directly below it.
Since my screen resolution is 5120x1440, I calculated that the capture window should be at (3840,0) and the rendering window at (3840,720).
Next, with the ScreenAreaShare application pinned to the taskbar, I right-click and open Properties. I modify the Target property to add my custom positioning:
[DIRECTORY]\screen-area-share.exe --cw=1280 --ch=720 --cx=3840 --cy=0 --rx=3840 --ry=720

After saving, I try it out and verify that it is indeed starting in the desired screen coordinates.
Next, I launch FancyZones and configure my zones. Specifically, I create two zones on the right side of my display that match the areas that I set up ScreenAreaShare to appear in. That way I can drop windows in the "sharing zone" when I'm on meetings.
I know this doesn't do exactly what the OP wanted, but I don't care that much about dynamically changing the sharing zone at runtime, so I just have a nice static place for sharing set up.
Thanks to everyone who has contributed to this project, it's a life saver!

Glad you like it:) Thanks for sharing your setup! Great to hear it works with fancy zones at least with some workaround


Kisskh: need decryption for subtitles (i think)

Extension information
Kisskh
Steps to reproduce

open 'Hidden Love' tv series
select 'English' subtitle
you can see the subtitle looks like encrypted format

Miru version
1.7.2
Other details
@OshekharO

Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.

Well I don't have experience with key based decryption.
https://github.com/aniyomiorg/aniyomi-extensions/blob/master/src/en/kisskh/src/eu/kanade/tachiyomi/animeextension/en/kisskh/SubDecryptor.kt
https://kisskh.co/api/Sub/129692
@appdevelpo

I don't think currently we have any method to let it works in miru even though we have their key and decrypting method. It need to pass through an url to reach the app.


macOS + Python (

Installed selenium, selenium-stealth, beautifulsoup4 and also ran chromedriver
Traceback (most recent call last):
File "scrape.py", line 7, in
import requests
ModuleNotFoundError: No module named 'requests'

The most recent version of the repo contains a requirements.txt now.
If you clone the repo you can run pip install -r requirements.txt to install all the dependencies which should fix this issue.

@ryangavin
It's further now, and I did run the pip3 install -r requirements.txt and it installed more
`scrape.py:22: DeprecationWarning: executable_path has been deprecated, please pass in a Service object
driver = webdriver.Chrome(options=options, executable_path=r"chromedriver.exe")
Traceback (most recent call last):
File "/Users/bond/Library/Python/3.8/lib/python/site-packages/selenium/webdriver/common/service.py", line 71, in start
self.process = subprocess.Popen(cmd, env=self.env,
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/subprocess.py", line 858, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/subprocess.py", line 1704, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'chromedriver.exe'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "scrape.py", line 22, in
driver = webdriver.Chrome(options=options, executable_path=r"chromedriver.exe")
File "/Users/bond/Library/Python/3.8/lib/python/site-packages/selenium/webdriver/chrome/webdriver.py", line 70, in init
super(WebDriver, self).init(DesiredCapabilities.CHROME['browserName'], "goog",
File "/Users/bond/Library/Python/3.8/lib/python/site-packages/selenium/webdriver/chromium/webdriver.py", line 89, in init
self.service.start()
File "/Users/bond/Library/Python/3.8/lib/python/site-packages/selenium/webdriver/common/service.py", line 81, in start
raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: 'chromedriver.exe' executable needs to be in PATH. Please see https://chromedriver.chromium.org/home
`

Sadly I don't have a mac to test this out on.  But I have hardcoded chromedriver.exe without thinking about the mac side of things.  You can probably remove that line and install Chromedriver as follows:
https://jonathansoma.com/lede/foundations-2017/classes/more-scraping/selenium/
I can't test this though.  :(

I was able to hack it to start the chromedriver but it doesn't seem to work. I might just create a windows VM to do this, thanks!
bond@Bonds-MacBook-Pro TeslaServiceManualScraper % python3 scrape.py
scrape.py:24: DeprecationWarning: executable_path has been deprecated, please pass in a Service object
  driver = webdriver.Chrome(options=options, executable_path=r'/usr/local/bin')
Traceback (most recent call last):
  File "scrape.py", line 24, in <module>
    driver = webdriver.Chrome(options=options, executable_path=r'/usr/local/bin')
  File "/Users/bond/Library/Python/3.8/lib/python/site-packages/selenium/webdriver/chrome/webdriver.py", line 70, in __init__
    super(WebDriver, self).__init__(DesiredCapabilities.CHROME['browserName'], "goog",
  File "/Users/bond/Library/Python/3.8/lib/python/site-packages/selenium/webdriver/chromium/webdriver.py", line 92, in __init__
    RemoteWebDriver.__init__(
  File "/Users/bond/Library/Python/3.8/lib/python/site-packages/selenium/webdriver/remote/webdriver.py", line 275, in __init__
    self.start_session(capabilities, browser_profile)
  File "/Users/bond/Library/Python/3.8/lib/python/site-packages/selenium/webdriver/remote/webdriver.py", line 365, in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
  File "/Users/bond/Library/Python/3.8/lib/python/site-packages/selenium/webdriver/remote/webdriver.py", line 430, in execute
    self.error_handler.check_response(response)
  File "/Users/bond/Library/Python/3.8/lib/python/site-packages/selenium/webdriver/remote/errorhandler.py", line 247, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: session not created exception: Missing or invalid capabilities
  (Driver info: chromedriver=2.32.498537 (cb2f855cbc7b82e20387eaf9a43f6b99b6105061),platform=Mac OS X 10.16.0 x86_64)


fix: pseudo-element is not work

fix https://github.com/Tahul/pinceau/issues/70

Hey, this has been resolved in latest versions of Pinceau.
Thank you a lot for your help @SGAMERyu.
I answered better on the source issue #70
🙏


Problem with DefaultValueSql when you use postgresql

Have problem with include sequence to postgresql database. Problem with default value.
"Obtaining the next value is done using the nextval() function instead of the standard's NEXT VALUE FOR expression." from official postgresql documentation (https://postgrespro.com/docs/postgrespro/10/sql-createsequence).

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

ID: cada79d3-c141-0a42-2fc1-522d7aa408a5
Version Independent ID: d1afcfe2-99d4-d7bf-f632-17be38cef2e3
Content: Sequences - EF Core
Content Source: entity-framework/core/modeling/relational/sequences.md
Service: unspecified
Product: entity-framework
GitHub Login: @rowanmiller
Microsoft Alias: divega

@Golars Please file this issue against to the PostgreSQL provider: https://github.com/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL


Introduce default values

Note that currently default values are not used anywhere in the spec. The intention is to have an additional pull request that will specify when or how default values can be used. But I think that this part will be less controversial so I factored it out separately.

I guess the situations in which these default values will actually be used/assigned are yet to be specified?  As written, someone might get the wrong impression that these default values are assigned to struct member fields, for example, whenever the user program does not explicitly do so, like Java does.

Yes, the comment on the PR says that.

I have added a second commit to this PR which proposes a syntax for default intializers. The two commits should be reviewed separately, but the second one depends on the first one.

The second commit looks good to me.  The set of examples looks like it includes corner/error cases that I had wondered about, including one with a nested struct/header inside of another, so nice!

Is it stated elsewhere, or should it be stated somewhere in the text of the second commit, whether it is allowed, or an error, to mix positional and named fields in a list expression?

I love the first part, i.e the clear definition of the default values,  but i still do not see the solution to my main problem in the second part,  where it looks like I can either initialize the whole structure with the default value or I have to initialize each field explicitly,  whereas there is a strong desire to initialize only some fields explicitly and leave the rest initialized with the default values.  Am I missing something or this is not doable?

@vgurevich. There are examples in the proposed changes that show how to initialize several fields of a header or struct via "positional" specification of the fields values, in order, followed by ... to indicate "the rest all have default values after the last one I specified".
You can also specify fields to initialize by "name1 = value1, name2=value2, ...", and if you put ... at the end, then the rest of the fields you did not specify are given default values.
Is there some capability you see missing there that you wanted?

This issue about mixing named and positional fields in a struct initializer is not new, it was introduced when we added initializers with named fields. So I didn't write anything about it in this PR. We actually have two types of expressions: list expressions and struct initializers, there is no hybrid which allows a mix. This issue is similar to function calls with named parameters. I think we should disallow mixes, since explaining what is legal is complicated, and it's a virtue to keep things as simple as possible.

I think that my main quip is about the fact that in order to have "future-proof" initializers in the code, people will always have to put "..." in it.
In other words, the following code is "future-proof" in C
typedef struct foo {
    int bar;
    int baz;
} foo_t;

foo_t ggg = { 1, 5 }; /* Adding more fields to the end won't change the result */
foo_t hhh = { .bar=1, .baz=5 ;};      /* Adding fields anywhere in foo_t won't change the result */

In P4 the equivalent "future-proof"  code is:
foo_t = { .bar=1, .baz=5,  ... };

meaning that people will get into a habit of putting the ellipsis in all structure initializers. Mixing named/unnamed fields adds a little pain, but I think that's survivable, although I do like the Python rule more (named an unnamed items can be mixed as long as the unnamed ones are only in the beginning and do not follow the named ones).

There is a tradeoff of concerns here.
You seem to prefer that unmentioned fields get default values, with the perceived advantage of not having to update initializers when new fields are added to a struct/header.
Others might see that as a disadvantage, and would prefer to get a compiler error message if they did not write the ..., so the compiler reminds them that they forgot to add an value for a field in some assignment somewhere.
Which of those is considered better behavior, or having one be the default with a compiler option for the other, is part of language design, and it isn't clear to me what most users of the language might prefer.  My own personal preference would be for the second choice, but it doesn't sounds like a life and death difference to me.

@jafingerhut  -- this is certainly not a life-and-death situation. I am simply pointing out that a common usage pattern required for modular design requires mandatory typing of some extra characters. The choice can go either way.
Also, do we allow "_" in the initializers, meaning that we can ask some fields to not be initialized while supplying the whole structure?

We do not allow _ in initializers. You can do this by explicitly assigning to the fields you want. If you can show us some programs that do this we can consider this feature.

I propose we merge this PR in the spec even without having a full implementation yet.

I am perfectly happy merging in the spec change without having a complete implementation.
I do think it would be good to add the examples mentioned in some of my earlier comments, but I can add them with a separate PR after this one is merged, if that is easier.

I have amended this PR.
One thing I've done is to replace all appearances of ... in code examples with a comment, since now ... is concrete correct syntax...

@jafingerhut : if you approve this please merge it as well; we can then claim one more entry from the wiki...

Merging this, but creating another (small) PR after it is merged to address some of the comments.

I noticed the '...' syntax was not added to the grammer in the appendix and it was never implemented in the reference compiler.

There is a p4lang/p4c PR that at least partially implements this feature, but even in the part that it currently implements, it contradicts the spec in one small way (you can see recent comments on that PR for how): https://github.com/p4lang/p4c/pull/2368
https://github.com/p4lang/p4-spec/issues/1021 attempts to answer one detail issue related to this feature.  I do not know of any agreed-upon resolution for it, although there has been some discussion on it.
One possible way forward is to allow ... anywhere inside of { ... }, and if it does not appear last, it represents exactly one value in that position of the list expression, with its default value (the value being determined by the type of that element of the list, or whatever struct or header it is being "cast" to).  That is at least partially proposed in this issue https://github.com/p4lang/p4-spec/issues/1032 but there has been no verbal discussion in a LDWG meeting about it, only in comments on the issue itself, which would probably best be able to move forward with some verbal discussion to flush out any misunderstandings.


chore: release script

Description

Motivation and Context

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Enhancement (changes that improvement of current feature or performance)
[ ] Refactoring (changes that neither fixes a bug nor adds a feature)
[ ] Test Case (changes that add missing tests or correct existing tests)
[ ] Code style optimization (changes that do not affect the meaning of the code)
[ ] Docs (changes that only update documentation)
[ ] Chore (changes that don't modify src or test files)

Self Check before Merge

[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

Pull Request Test Coverage Report for Build 305648331

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 0.0%

Totals

Change from base Build 304244522:
0.0%

Covered Lines:
0

Relevant Lines:
0

💛  - Coveralls

1800+ 文件改动。。。

1800+ 文件改动。。。

重命名文件夹


Crash when building Android through Docker

Bug description
Building an Android player crashes when trying to set up the Android SDK.
I think this was caused by this commit: https://github.com/game-ci/unity-builder/commit/8ca1282c9eabf4b053576f63611d21ee855b80db
This is the line it crashes on:
https://github.com/game-ci/unity-builder/blob/bbd713b05afb7069db7168195cb74a904966487f/dist/platforms/ubuntu/entrypoint.sh#L19-L20
I confirmed that the file /opt/unity/Editor/Data/PlaybackEngines/AndroidPlayer/SDK/cmdline-tools does not exist in the container.

How to reproduce

Run on version v4.1.0 or newer.
(may be relevant) Run on self-hosted Linux runner.
(may be relevant) set new flag runAsHostUser to true.
Build with Android as the target.

Observed behavior
/usr/bin/docker run --workdir /github/workspace --rm
[redacted]
--cpus=4 --memory=15183m unityci/editor:ubuntu-2020.3.44f1-android-3 /bin/bash -c /entrypoint.sh
Unable to find image 'unityci/editor:ubuntu-2020.3.44f1-android-3' locally
ubuntu-2020.3.44f1-android-3: Pulling from unityci/editor
...
51d9c7c758c0: Pull complete
Digest: sha256:98455f373bc9d575db6735f280af7de9610d94b80817c18cf3d6417fc4f02611
Status: Downloaded newer image for unityci/editor:ubuntu-2020.3.f1-android-3
find: ‘/opt/unity/Editor/Data/PlaybackEngines/AndroidPlayer/SDK/cmdline-tools’: No such file or directory
No sdkmanager found
Error: Build failed with exit code 1

Expected behavior
Build does not crash before even starting.

Additional details
I do not think running on a self-hosted runner is relevant, but in case it is, I can provide any details about the host.

Can confirm, I ran into the same issue.

I think the issue is probably from this commit: https://github.com/game-ci/unity-builder/commit/6419c8742b5fa6df0f12a11e1a1554cb34168538
Looks like it was changed for new versions but I guess the old versions don't have the same path

I m also facing the same issue

I am also facing the same issue on self-hosted ubuntu machine when building using docker image unityci/editor:ubuntu-2020.3.17f1-android-3.0.0. Any alternate solutionfor this?

My current workaround was to revert to version v3 of this action.

I just pushed a potential fix to game-ci/unity-builder@fix-sdkmgr. Can someone test this out and let me know if it is fixed?

Confirmed: unrelated issue. Patch looks good.


Log incoming requests

As a local server, it is expected to log any incoming requests while keeping information such as address and port statically on the screen simultaneously. Implementing with a scrollable list is better.

Done at 895500f553210d40caf4f927116f5aadee713b5c without scrollable terminal user interface.


Gluster Storage Total Size is wrong

Hello,
The value usable_capacity returned by gstatus(1) is not the total space available but the free space remaining. Example on my cluster with my patched version of gstatus_discovery.py[1]:
# gstatus_discovery.py -k used_capacity
81097048064
# gstatus_discovery.py -k usable_capacity
37565235200

The sum of these numbers roughly equals raw_capacity.
The current item “Gluster Storage Total Size” should be renamed “Gluster Storage Free Size” and a new item of the Calculated type named “Gluster Storage Total Size” should be created with the following formula:
gluster_storage_info["used_capacity"] + gluster_storage_info["usable_capacity"]

Of course “Gluster Storage % Free Space” should adapted too.
[1]: A pull-request should come in the following days or weeks.

Hello!
Thank you for issue report! I am waiting your PR!
Best regards!


Boat update

Adding pictures of the solar panel and batteries. Fixed a small typo

Thanks for getting more pictures, I'm excited to see them on the post.
However, this appears to be adding a new blog post URL, when we already have one in the repo and it adds all the images a second time.
Was this from an old branch?
I would suggest deleting your fork, forking it again and creating a new branch, then edit the existing blog post.

Probably, I'll take a quick look later and update the PR
Mark
On Wed, Sep 15, 2021, at 10:01 AM, Alex Ellis wrote:

Thanks for getting more pictures, I'm excited to see them on the post.
However, this appears to be adding a new blog post URL, when we already have one in the repo and it adds all the images a second time.
Was this from an old branch?
I would suggest deleting your fork, forking it again and creating a new branch, then edit the existing blog post.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/inlets/inlets.dev/pull/32#issuecomment-919834013, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFKUCNQLGXEZ6S2JG4OY3LUCBOE3ANCNFSM5D7PF5GA.
Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

@markopolo123 can you take a look this week please? :)

I'm going to add the two new pictures myself, but feel free to send a PR to the existing markdown file if there are additions that we need. I couldn't see any in the diff.


Add python 3.11 and 3.12 to build

Expected Behavior
The pipeline should also run python 3.11 and python 3.12

+1 would be highly appreciated


[Bug] Firestore Android using too many global refs

[REQUIRED] Please fill in the following fields:

Unity editor version: 2021.3.13f1
Firebase Unity SDK version: 10.2.0
Source you installed the SDK: unitypackage
Problematic Firebase Component: Firestore
Other Firebase Components in use: Crashlytics
Additional SDKs you are using: N/A
Platform you are using the Unity editor on: All
Platform you are targeting: Android
Scripting Runtime: N/A

[REQUIRED] Please describe the issue here:
(Please list the full steps to reproduce the issue. Include device logs, Unity logs, and stack traces if available.)
Steps to reproduce:
Have you been able to reproduce this issue with just the Firebase Unity quickstarts (this GitHub project)? No
What's the issue repro rate? (eg 100%, 1/5 etc) 100%
What happened? How can we make the problem occur?
As identified in https://github.com/firebase/quickstart-unity/issues/1193, there is a problem with large sets of data with Firestore on Android, where it can use too many global refs, hitting the cap and throwing a JNI error.  An initial fix was added with the 10.1.0 release which reduces the number of global refs used, but it can still potentially be hit.
Googlers see b/251869890 for more details.

FYI: If you see an error like this in the Android logcat
JNI ERROR (app bug): global reference table overflow (max=51200)

then you have hit this issue.

Also, if your stack trace includes methods like art::JavaVMExt::AddGlobalRef(...) or art::JNI::NewGlobalRef(...) then that is another strong indicator that it is this issue that you are experiencing (e.g. https://github.com/firebase/firebase-unity-sdk/issues/586).

Update: The fix, unfortunately, is not yet ready and did not make it into last week's v10.4.0 release. We ran into some technical issues with our solution and need to do some refactoring. We hope to have the fix ready for the next release, which is scheduled for mid February 2023. If interested, you can follow the details of the fix in https://github.com/firebase/firebase-cpp-sdk/pull/1176.

Update: The fix is still being finalized. We keep running into unexpected technical issues with our solution and also some competing priorities. We will update this issue when there is a build to test out.

Hi, did the fix make it into 10.5.0 ?

Update:
Hi, unfortunately the solution for this Global Reference exhaustion issue has been shelved for the foreseeable future.
After a 3-month investigation, the team believes that the project is a lot larger and more complex than we had originally scoped. The solution involves changes to the fundamental structure inside the SDK and without comprehensive testing we cannot prove its stability in production.
We aim to revisit this after other time-sensitive projects are complete. We apologize for the long waiting time and thank you again for your patience.

I have to say this is very disappointing to hear. We have a fairly normal-sized casual game and too-many users are running out of global refs just from saving their game state. It makes Firestore a non-viable solution for us.
It would be great if you can at least find a way to clear the gobal ref pool manually.

Hi @cherylEnkidu , thank you for your efforts to fix this issue. It's showing lots of crashes and ANR in play console and this affects our app listing. I can see that we using firebase remote config to dynamically update the values in many scripts and using analytics to get the info for the every button clicks. I just want to know If we reduce the remote config access to a single script and caching it will reduce the crash? Or what way I need to follow to reduce the crash? And is there's any way to inform play console to supress these errors?

Update: I have implemented a prototype for a fix for this "global refs exhaustion" issue. I still need to get it reviewed by the team and complete my testing, but so far it looks promising. I cannot provide any ETA on the fix actually being released, not in small part due to the historically-unpredictable scope creep and complexity of the fix. But I will post updates to this issue as significant milestones are achieved.
If you'd be willing to test out the fix, please try the Unity SDK build published at https://github.com/firebase/firebase-unity-sdk/actions/runs/4999199986 (download firebase_unity_sdk.zip). This build incorporates my fix from https://github.com/firebase/firebase-cpp-sdk/pull/1325. Note that this is an unofficial build made from HEAD of the https://github.com/firebase/firebase-unity-sdk and https://github.com/firebase/firebase-cpp-sdk. That being said, I expect it to be quite stable when compared to the latest official release, 11.0.0 at the time of writing.
In particular, I'm interested in two things:

Does this fix the crash for you?
Do you notice any performance degradation with the fix?

In theory, my fix should incur a performance cost; however, in my testing the performance cost was negligible, and only even noticeable when creating hundreds of thousands of objects in a tight loop. But I'm very interested to hear if there are performance issues in "real world" applications.
Thank you all for your patience as we implement a stable, reliable, and robust fix for this problematic issue.

@nitzanwilnai Did you have a chance to test out the build in the previous comment? I've only been able to test it in my contrived examples and would like to know if it does or does not fix the Firestore crash for real customer use cases.
@AnnMic Since you commented here https://github.com/firebase/quickstart-unity/issues/1193#issuecomment-1242203289, I thought I'd tag you to see if you are still experiencing the crash in Firestore. If so, would you be able to try out the test build as well and see if it improves your crash rate?
Thank you both for reporting the issue and bearing with us as we try to solve it correctly and robustly.

This bug has been fixed in the Unity SDK v11.3.0 release yesterday, July 19, 2023.
https://firebase.google.com/support/release-notes/unity#version_1130_-_july_19_2023
Please comment or open a new issue if you still see this crash or notice performance degradation from this fix.


Disable AWX support, enhancements to pf9-builder

@joshkelly possibly, I believe the discussion we had was disable the option for now but keep the work as we may want it later.


Suggestion

I didn't have node.js installed on my machine, so obviously the command to install the package didn't work and I spent a good amount of time to finally understand that I needed node.js. I suggest adding a note to the installation notes about having node.js installed.
Thanks.

I (seem) to have installed it but I am not able to run it. This is what I've tried:
bash-3.2$ sudo npm install -f warriorjs
npm WARN using --force I sure hope you know what you are doing.
<EMAIL_ADDRESS>node_modules/warriorjs
├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>└──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>bash-3.2$ cd bin
bash-3.2$ bash warriorjs
warriorjs: line 3: syntax error near unexpected token (' warriorjs: line 3: const Runner = require('../lib/Runner').default;'
bash-3.2$

I will add that to the installation notes, thanks.
Regarding the issue you're having, try to install the module globally with the -g option, not -f:
$ npm install -g warriorjs

Then, you should be able to play the game just by executing warriorjs from any directory.

Fantastic! Thank you very much, it has worked like a charm :-)


CCE with Java interop

Description:
CCE with Java interop when java.util.ArrayList is provided as map entry to create a record value.
Steps to reproduce:
Java code:
public class App {

    private static Module module = new Module("org", "interop_project.records", "1");

    public static BMap<BString, Object> getRecord(BString recordName) {
        ArrayList<Integer> arrayList = new ArrayList<>(Arrays.asList(1, 2, 3, 4, 5));
        Map<String, Object> map = Map.ofEntries(
                Map.entry("arrList", arrayList)
        );
        return ValueCreator.createRecordValue(module, recordName.getValue(), map);
    }
}

Ballerina code:
module/records.bal
import ballerina/jballerina.java;

public type Foo record {
    int[] x;
};

public function getRecord(string recordName) returns record{} = @java:Method {
    'class: "javalibs.app.App"
} external;

main.bal
import interop_project.records;

public function main() {
    records:Foo foo =  <records:Foo> records:getRecord("Foo");
}

error:
error: java.lang.ClassCastException {"message":"class java.util.ArrayList cannot be cast to class io.ballerina.runtime.api.values.BValue (java.util.ArrayList is in module java.base of loader 'bootstrap'; io.ballerina.runtime.api.values.BValue is in unnamed module of loader 'app')"}
        at org.interop_project.records.1:getRecord(records.bal:7)
           org.interop_project.1:main(main.bal:4)

Affected Versions:
slbeta3, slbeta4, slbeta6
OS, DB, other environment details and versions:
Related Issues (optional):

Suggested Labels (optional):

Suggested Assignees (optional):

Since there are several cases which are providing CCE when wrongly using Java objects directly instead of getting them as BValues in runtime APIs, we need to provide a proper validation where the runtime API requests a Java Object.

Similar issue https://github.com/ballerina-platform/ballerina-lang/issues/34195


optionally save master/instance ufos to temporary directory

In https://github.com/googlei18n/fontmake/pull/410#issuecomment-377329203, I added --master-dir and --instance-dir options to control where the glyphsLib-generated UFOs are created, and override the hardcoded "master_ufo"/"instance_ufo" directories.
Sometimes one may only be interested in running fontmake end-to-end from .glyphs sources to binary TTF or OTFs (or variable TTF), and thus the master_ufo and instance_ufo folders that are created in the current working directory are just unwanted leftovers.
This PR allows to pass to --master-dir or --instance-dir a special string {tmp}, which means create a temporary directory and use that, then clean it up automatically after finished.
I chose {tmp} because is short and it's unlikely that one wants to use it as the real name for an existing filesystem folder (giving the full path should work for those edge cases).

I know.. I wanted to reduce the amount of surprise for users who may be used to the current way.
If others say this is ok, we change this to be the default behaviour.

--no-master-dir and --no-instance-dir may be clearer.


Repository over LFS data quota error.

Hi, thank you for the blog posts and repo. I want to follow along and learn more about C++ performance.
Cloning the repo gave me this error:
Error downloading object: reference/sample-10.txt.gz (ec2ce70): Smudge error: Error downloading reference/sample-10.txt.gz (ec2ce70be94555d0ff707a5a8d75a2e2785942437cff5cfc9abe6420e7aa2f21): batch response: This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.

Hello,
The quotas should be reset in a few days, allowing for cloning again. Until then I would suggest to download the zip from master via GitHub's UI. It would not contain the sample inputs (the .gz files) but you can generate new ones with the included generator application.

Got it. Thanks for the clarification :+1:


Create difference.txt

How to run your game sir? I downloaded your game and when I try to run it just show me a black screen with no error

Do you have love2d on your computer?

yes sir. and when I run the code it only black screen.
On Sun, 25 Aug 2019, 21:25 lukefly2<EMAIL_ADDRESS>wrote:

Do you have love2d on your computer?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/lukefly2/TypeFighter/pull/1?email_source=notifications&email_token=AMSM5NYWEMBNZNUJTYW3BALQGKB4ZA5CNFSM4FYSJ422YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5CTSAQ#issuecomment-524630274,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMSM5N57D3NMLKITOCGYFQ3QGKB4ZANCNFSM4FYSJ42Q
.


Raise maximum disk space an app can request to 8gb

What
One of our users requires extra disk space to be able to temporarily store and scan file uploads. This increases it to 8gb
How to review
Deploy to dev environment, check that you can scale an app to use more than 6gb of disk space, e.g. cf scale paas-admin -k 8GB
🚨⚠ Please do not merge this pull request via the GitHub UI ⚠🚨

Not gonna turn this into a variable?

Not gonna turn this into a variable?

We seem to define the variables per environment, so we'd end up changing it in 4 files instead of one


[azservicebus,azeventhubs] "failed to close WebSocket: failed to read frame header: EOF"

When using nhooyr.io/websocket you get an error, when closing the connection, that makes it appear that something went wrong.
"failed to close WebSocket: failed to read frame header: EOF"
However, after looking at wireshark traces it appears that what should happen is happening (we send a websocket close, and the services send back their end of the handshake). It could be that this is a spurrious error but I'd like to dig into it more.

Closing this.
The main concern for me was that the user would get this cryptic error and have no idea what they should do. Instead, we just eat it - errors when closing the connection are pretty much useless to callers. As @jhendrixMSFT says - it's not like they can close it again.


SHACL shapes for current RML

@DylanVanAssche and @pmaria should already have some shapes, let's start with these, what they cover and what they don't and how they need to be adjusted to fit to the new spec of RML.

@dachafra @andimou Is there a specific location where we can put the shapes?

Separate repo in kg-construct?
Inside the spec repo?
<your suggestion>


Migrate non-adbnx-adapter material to other repositories

In order for us to properly take advantage of https://github.com/arangoml/networkx-adapter/issues/29, we should consider migrating material that does not directly relate to the adbnx-adapter package.
More specifically:

examples/**/*
bipartite_clustering.pdf

This would allow us to "flesh-out" the networkx-adapter/adbnx_adapter directory to the root of the repo, allowing us to avoid things like this
We would need to figure out an ideal destination for this material. Perhaps arangodb/interactive_tutorials ?

@aMahanna , I am ok with even deleting bipartite_clustering.pdf

Discussed this with Anthony and agreed to keep the notebook and relevant documents in the repo if we can ignore certain files using GitHub Actions.


Migrate project to AndroidX and version 29

Migrate the project to use AndroidX.
I gladly could make a PR if you like with the necessary updates.

I'll take you up on that offer of a PR.
Let's see, the library is currently targeting API 26 with a min of 9 - those'll need to be increased too.

Yep, those two was updated

Ok, with #25 in, this can be closed. I'll spin off a new point release.


docker node inspect plugins section is not consistent with other commands

Output of docker version:
Client:
 Version:      1.12.0-rc4
 API version:  1.24
 Go version:   go1.6.2
 Git commit:   e4a0dbc
 Built:        Wed Jul 13 03:28:51 2016
 OS/Arch:      darwin/amd64
 Experimental: true

Server:
 Version:      1.12.0-rc4
 API version:  1.24
 Go version:   go1.6.2
 Git commit:   e4a0dbc
 Built:        Wed Jul 13 03:28:51 2016
 OS/Arch:      linux/amd64
 Experimental: true

Output of docker info:
Containers: 449
 Running: 0
 Paused: 0
 Stopped: 449
Images: 227
Server Version: 1.12.0-rc4
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 1120
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: null overlay host bridge
Swarm: active
 NodeID: 58rx1deuh6s3w3g0xukzowhjg
 IsManager: Yes
 Managers: 1
 Nodes: 1
 CACertHash: sha256:02e17c8e2f8453e682f54c1e6c89f66dbd7bc905997ba281bfb1f7c680638491
Runtimes: runc
Default Runtime: runc
Security Options: seccomp
Kernel Version: 4.4.15-moby
Operating System: Alpine Linux v3.4
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 5.82 GiB
Name: moby
ID: LU3X:7JDU:3WSS:UEYM:HVGT:OY2M:BDUN:XAU6:YJ5A:JCKF:7XDI:EILX
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: 38
 Goroutines: 126
 System Time: 2016-07-18T21:24:41.627567975Z
 EventsListeners: 1
No Proxy: *.local, 169.254/16
Registry: https://index.docker.io/v1/
Experimental: true
Insecure Registries:
 <IP_ADDRESS>/8

Additional environment details (AWS, VirtualBox, physical, etc.):
Steps to reproduce the issue:

docker swarm init
docker network create --driver overlay mynet
docker create --replicas 2 --network mynet nginx
docker node inspect (docker node ls --quiet)

Describe the results you received:
Engine.Plugins doesn't provide much value IMO in the current form. You aren't able to tell which plugins they are (which network, which volume, which auth plugin). They also have duplicates which makes it more confusing (2 overlays below). The naming convention is also not consistent with the rest of docker. docker network ls and docker volume ls show the Name here as Driver.
 "Engine": {
                "EngineVersion": "1.12.0-rc4",
                "Plugins": [
                    {
                        "Type": "Volume",
                        "Name": "local"
                    },
                    {
                        "Type": "Network",
                        "Name": "overlay"
                    },
                    {
                        "Type": "Network",
                        "Name": "bridge"
                    },
                    {
                        "Type": "Network",
                        "Name": "null"
                    },
                    {
                        "Type": "Network",
                        "Name": "overlay"
                    },
                    {
                        "Type": "Network",
                        "Name": "host"
                    }
                ]
            }

Describe the results you expected:
Ideally I think the current value for Name should be renamed Driver & Name should be the actual name from the plugin (volume name, network name, etc). This has a lot more value. They also share the same core concept Driver.
 "Engine": {
                "EngineVersion": "1.12.0-rc4",
                "Plugins": [
                    {
                        "Type": "Volume",
                        "Driver": "local"
                        "Name": "something"
                    },
                    {
                        "Type": "Network",
                        "Driver:": "overlay",
                        "Name": "ingress"
                    },
                    {
                        "Type": "Network",
                        "Driver:": "bridge",
                        "Name": "bridge"
                    },
                    {
                        "Type": "Network",
                        "Driver:": "null",
                        "Name": "none"
                    },
                    {
                        "Type": "Network",
                        "Driver:": "overlay",
                        "Name": "mynet"
                    },
                    {
                        "Type": "Network",
                        "Driver:": "host",
                        "Name": "host"
                    }
                ]
            }

Also seems kinda strange there would be duplicates when doing contains checks like this.
If you agree with the change I should be able to do this PR 👍. Not much touches this struct from what I can tell currently.

@jhorwit2 thanks for reporting
I don't think we should change the output format; what you're describing in your "expected" results mixes instances of a volume, with the actual plugin that is used. For example;
{
    "Type": "Volume",
    "Driver": "local"
    "Name": "something"
},

This seems to indicate there's a "something" volume, that uses the "local" driver, whereas I think we're only looking for "plugins" (and not interested in which networks/volumes use them)

Also seems kinda strange there would be duplicates when doing contains checks like

That's a known issue; there's an open issue https://github.com/docker/docker/issues/23619 for the way plugins are detected. Basically, the current docker info only shows plugins that are actually in use (the list of "plugins" is based on that). This is a problem for Swarm mode, so needs to be addressed.

@thaJeztah when I put something there it would actually be on of the values under volume name
$ docker volume ls
DRIVER              VOLUME NAME
local               0c2267d563500f5435595676f940b7140c8a198e357e9e23e88af2184a96990c
local               22457d79850a265c6143cbbd26286d211140847e5e4718166bde25f74b30060e
local               4547f46cc63e937958cfdfa61e6a66287e3c66d9b8d31925abebd9b4d9356631
local               4aaaa812995f7c597e748a3693ba0c0a1df0b9eb544d2e277ec97425596a3920
local               4ff395056025cc3673e1aa00bf85eb123a78a5d322981956d7757b6b71cb2122
local               5c98623664138b26c1822d8a9c9f405ddd546b01af1258583e63bfc10ea8b703

Then you are able to look at these plugins and actually connect them to a volume/network/etc.
So what you are saying is this list of plugins should a high level overview? Why not make the output similar to docker info
Plugins:
 Volume: local
 Network: bridge null overlay host```

@jhorwit2 correct, this is a list of available plugins, not available networks, or *volumes; basically this information provides the options you can choose when specifying --driver on docker volume create or docker network create (well, for services then, so --log-driver, --mount driver=foo, etc.)

👍 So it sounds like a PR to remove dupes would do the trick then. yes?

No, it's not the dupes that is the biggest problem directly, it's plugins not showing up if they're not currently in use. e.g. if I have a "fancyvolumedriver" plugin installed, then docker info will not show it, unless I actually create  a volume that uses it (docker volume create --driver fancyvolumedriver)

ahhhh i see what you are saying. Seems like that other ticket encompasses this issue so i'll close this one out 👍

Thanks @jhorwit2! Yes, it's a bit confusing :smile:


Fixes DateValidatorTest for ICU 55.1

I have installed ICU of version 55.1 and tests fail on it. That's because 'short' datetime format has been changed earlier - starting with version 55.1
See for example Symfony changes for ICU 55: https://github.com/symfony/symfony/commit/4f224ef4aba981ee88d5c7e637a6297f6a75aa37#diff-564fc4b01393077657880495f2be7b17R54

Merged. Thanks!


Chatbot for asking questions

Is your feature request related to a problem? Please describe.
There is no guidance feature
Describe the solution you'd like
I would like to add a chatbot where one can ask questions or put their queries there.
Describe alternatives you've considered
Additional context
Maybe someone will contact that person later.
Please assign me this issue under GSSoC'24.

Please describe how you gonna implement this ?

Please describe how you gonna implement this ?

Maybe by using firebase, storing the questions and then answering those through email.

Actually we are using Azure Portal for AI work such as Chatbot , Data Analysis , Mining etc
If you are well know about azure I can assign you for this work !

Actually we are using Azure Portal for AI work such as Chatbot , Data Analysis , Mining etc If you are well know about azure I can assign you for this work !

yes i have work on azure before i can try that first

Then good to go , If you require any resource help in azure please let us know
Thanks !


No authentication handler is configured to handle the scheme: Automatic

I have some issue like this, but i can't understand how to solve it for Debian.
At first, i configure my application as described below
app.UseCookieAuthentication(new CookieAuthenticationOptions
				{
					AuthenticationScheme =MyAuthSchemeName,
					CookieName = MyCookiName,
					AutomaticAuthenticate = true,
					AutomaticChallenge = false,
					SlidingExpiration = true,
					ExpireTimeSpan = TimeSpan.FromDays(1),
					DataProtectionProvider = DataProtectionProvider.Create(MyApplicationName)
				});

	app.UseJwtBearerAuthentication(new JwtBearerOptions
				{
					AutomaticChallenge = false,
					AutomaticAuthenticate = true,
					Authority = IdentityServerConnectionString,
					RequireHttpsMetadata = false,
					BackchannelHttpHandler = new HttpClientHandler().ServerCertificateCustomValidationCallback = (request, cert, chain, errors) => true,
					TokenValidationParameters = new TokenValidationParameters
					{
						ValidateAudience = false,
						ValidateIssuer = false,
					}
				});

	app.UseMvc();

For windows it works perfectly (I use  Host for launching this code, not IIS !), but for Debian  it fails.
Could you provide any solution?
UPD: I see next message in logs:  Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationMiddleware MyAuthSchemeName was not authenticated. Failure message: Unprotect ticket failed

What action caused that error message, Challenge? You have AutomaticChallenge disabled on both middleware.
It's not clear why you're mixing cookies and Jwt

Note this works in IIS/Express because IISMiddleware is present and it always assumes windows auth is enabled and sets 401s. If you were to run this on windows without IIS/Express you'd see the same error.

Hi, Tratcher!
Thank you for your answer.
Yes, that error  message caused by Challenge
I run it as host both for Windows and Linux, but i don't see this problem for windows. And it's not a problem.
I catch it on Linux virtual machine. Call stack is provided below
Microsoft.AspNetCore.Server.Kestrel Connection id "0HL5DN1G84KD7": An unhandled exception was thrown by the application. System.InvalidOperationException: No authentication handler is configured to handle the scheme: Automatic
at Microsoft.AspNetCore.Http.Authentication.Internal.DefaultAuthenticationManager.d__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Mvc.ChallengeResult.d__14.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.d__30.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

See https://github.com/aspnet/Security/issues/1062

It was very intresting, but it doesn't work for me.
Or i don't understand something.
I tried to set AutomaticChallenge to true for Coockie.
But nothing to happen

I found solution for this issue. Key cause is a settings of DataProtectionProvider. For Debian it's needed to use code below
Startup.cs :
public void ConfigureServices(IServiceCollection services)
{
services.AddDataProtection().SetApplicationName(ApplicationName).
PersistKeysToFileSystem(
new DirectoryInfo(Configuration["/some_path_to_folder_for_keys"]))
}
And dataprovider initialization should be removed for cookie (from UseCookieAuthentication());

Closing because it looks like you got this working.


Dynamically build follow url

In the example, it shows how we can follow urls to scrape other pages:
x('http://google.com', {
  main: 'title',
  image: x('#gbar a@href', 'title'), // follow link to google images
})

But I've come upon a usecase where I need to dynamically build a url from the scraped text. Something like
x('http://google.com', {
  main: 'title',
  // interpolating the selector into the url
  image: x('http://somewhere.com/?query={#some-selector}', 'title')
})

I can't tell if there's a way to accomplish this already. I thought about making a custom driver but i don't think xray makes a request unless the scraped text is a url.

I just happened to run into needing this as well, and modified x-ray slightly to allow for this.
Result is in branch https://github.com/Kwhen/x-ray/tree/gebrits-patch-1
This branch contains a number of other fixes/changes that I use myself: I do not give support, use at own risk.
However, the changes to incorporate the 'dynamic url'-functionality is contained in the following commits:

https://github.com/lapwinglabs/x-ray/commit/a3d1d544097c3c5986e50844615bcf131330795f
https://github.com/lapwinglabs/x-ray/commit/d692e04fff4fcea5ad2dada1ef8a9db9d188e09d

So feel free to incorp/apply those in your own version.
The result is the ability to do something like:

x('http://google.com', {
  main: 'title',
  // interpolating the selector into the url
  image: x(function(el){ //`el` is a cheerio instance which x-ray uses under the hood
    return el.next().find("#some-selector}").attr("href");  //or something like that
  }, 'title')
})

Merging this into https://github.com/matthewmueller/x-ray/issues/54


Show player resources (credits, gold, knowledge, range, qic, power)

Done partially with https://github.com/donkeytech/gaia-viewer/commit/a6f9e1be76118184ed6c8462af66a5f4cb5b45c0


Unable to access code snippets

Describe the change
For the past couple of days, I'm unable to access code snippets on the carbon site.
Error: Application error: a client-side exception has occurred (see the browser console for more information).
Screenshots

Info (please complete the following information):

OS [e.g. macOS, Linux, Windows, iOS]: MacOs
Browser [e.g. Chrome, Safari, Firefox]: Brave, Chrome

Logs:
carbon.now.sh-1643782748347.log

@KrishnB please post steps for reproducing this error. Which page did you see this on? If you could link to a reproduction, that would be great.

We have reached Firebase platform limits (with zero warning or notice) and are trying to get our access restored. We appreciate your patience and understanding.

I believe this issue has been resolved. Please bear with us if other complications come up.
If you notice similar issues, please open a new issue.
Thanks for your understanding!


Idea: create a iOS Shortcut automation

Hello,
this is a great app! Thank you 🙏
An idea, I created a iOS Shortcut automation that when my iPhone detect a nfc tag on the battery it opens Superduper app for 5 seconds (to unlock mode 4) then lock the iPhone. However to execute the iPhone needs to be unlocked in order to open the app.
It would be great to have an integration of iOS shortcut so iPhone could stay locked and the action is set in background.
This way we could trigger the shortcut while having the phone in the pocket and have almost a background mode like android.
Best
Nico.

That reminds me how a widget for Android (to achieve a similar result) would be amazing to have :)

Thanks for the suggestion! I've never made an iOS shortcut before, but with the new physical iPhone shortcut button, that could be interesting. Although, I'm not clear on how an Android widget will make the experience better than just tapping the icon.

Apparently, you can have iOS open an app whenever it connects to a particular Bluetooth device... https://www.reddit.com/r/shortcuts/comments/104nek2/using_a_bluetooth_trigger_in_an_automation/ I haven't been able to get it actually working though.

Yeah, I have tried to use the bluetooth connection as a trigger but the Super73 bluetooth is not eligible as it is not properly paired to the iPhone.
This is why I have put a NFC tag (10cts on amazon) that I sticked to the bike. When I approach my phone it automatically open Superduper, unfortunately I need to look at the phone so it unlocks, then locks it again.
It would be awesome if you could create shortcuts for ACTIVATE:

Light ON
Assist 4
Mode 4

So this way we could to the following trigger if XXX is detected (Tag or wifi or location whatever) then Activate Light ON + Activate Assist 4 & so on. This would all be executed in background so the phone would stay in the pocket and it would be done seamlessly :)

If you are able to generate iOS shortcut activation actions, then I can make a iOS shortcut automation that you can propose in the app later if you want.

Here is some examples of app actions (sorry it is in French) :
Here is my automation with Duperduper :

Hello ! Little question, What are the different mode exactly ? What the kmh limit for each one ?
Thank you team!!

It's just the normal modes. They are coped in the app here: https://github.com/blopker/superduper/blob/main/lib/help.dart
You should join the super73 discord for more general help though!

Hey ! Thank you for your help !
It s my first s73 and first day ahah
I do not find the discord link on internet.
And thank you for your work 🏍


Migrate all the necessary Indy Client Modules

ps. Have deleted all deprecated methods in client modules.

@yma88 I'd recommend rename this project to "indy-client" instead of "indy-client-modules".

@yma88 I'd recommend rename this project to "indy-client" instead of "indy-client-modules".

Done.

I think we can still follow the core+addon pattern project structure, because it can let user to decide which module should be imported to remove unnecessary dependencies.

@ligangty I update to keep using indy-clients-parent, module: indy-client-core-java, version 3.2.0-SNAPSHOT.
And for the addons module, since we still use the previous packing way for the Content service, addons will also be included, so here it will just focus on packing the indy-*-client-java for the client addons, have updated.
For non-addon client modules, keep them in indy-client-core-java which are the same as before.

I think we can still follow the core+addon pattern project structure, because it can let user to decide which module should be imported to remove unnecessary dependencies.

@ligangty I update to keep using indy-clients-parent, module: indy-client-core-java, version 3.2.0-SNAPSHOT. And for the addons module, since we still use the previous packing way for the Content service, addons will also be included, so here it will just focus on packing the indy-*-client-java for the client addons, have updated. For non-addon client modules, keep them in indy-client-core-java which are the same as before.

Just one question for this client project is: If PNC want to use this, do they need to change anything of current usage except only a version change?

I think we can still follow the core+addon pattern project structure, because it can let user to decide which module should be imported to remove unnecessary dependencies.

@ligangty I update to keep using indy-clients-parent, module: indy-client-core-java, version 3.2.0-SNAPSHOT. And for the addons module, since we still use the previous packing way for the Content service, addons will also be included, so here it will just focus on packing the indy-*-client-java for the client addons, have updated. For non-addon client modules, keep them in indy-client-core-java which are the same as before.

Just one question for this client project is: If PNC want to use this, do they need to change anything of current usage except only a version change?

@ligangty No need to change the pom dep and package, they are kept the same as before.

@yma88

@ligangty Sure, I will, thanks.


Bug: if I modified the configuration of Prompts.WorkingMemoryName and LongTermMemoryName, you should use them as Key for access MemoryMap in ChatMemoryController

Describe the bug
if I modified the configuration of Prompts.WorkingMemoryName and LongTermMemoryName, you should use them for access in ChatMemoryController
To Reproduce
Steps to reproduce the behavior:

modified the configuration of Prompts.WorkingMemoryName and LongTermMemoryName

"Prompts": {
  "WorkingMemoryName": "W",
  "LongTermMemoryName": "L"
}

access persona tab on frontend, will occurs 400 error, that is access the url as below:

https://localhost:40443/chatMemory/wxuse_2306_b17893d883b34657a462841a8208c938/WorkingMemory
https://localhost:40443/chatMemory/wxuse_2306_b17893d883b34657a462841a8208c938/LongTermMemory
because you didn't use the configuration as above
Expected behavior
no error!
Screenshots
If applicable, add screenshots to help explain your problem.
Fix suggestions

Platform

OS: [e.g. Windows, Mac]
IDE: [e.g. Visual Studio, VS Code]
Language: [e.g. C#, Python]
Source: [e.g. NuGet package version 0.1.0, pip package version 0.1.0, main branch of repository]

Additional context
Add any other context about the problem here.

found another impact and Fix suggestions:

Thank you for reporting this.  I'm familiar with the code/config to which you are referring and and will review.

@AwesomeYuer - Curious, do you find it useful that these keys can be configured?  If so, why?

Sure!
Since I modified your code, changed chatId to a string from Guid,
and added UserName and HourHourMinuteMinute as a prefix, it is convenient to find the corresponding Session data by UserName in the backend.
UserName may be very long, and I found that Postgres has a limit on the length of table names!
So I modified these config from LongTermMemory to L  for Trim ChatId string length! and Remove - in Guid string,
Qdrant found no problem for collection name length limited.
Postgres:

Qdrant:

@AwesomeYuer - Curious, do you find it useful that these keys can be configured? If so, why?


[Ludown] Failed to parse .lu file back to .json when using the latest luis

Tool
Name: [Msbot|Ludown|LUIS|QnAMaker|Chatdown|Dispatch|LuisGen]
Version: tool version
OS: os version
Describe the bug
Fail to parse .lu file back .json, after generate the .lu file from .json from the latest luis app.

A.json => A.lu
A.lu => A.json (failed!)

To Reproduce
Steps to reproduce the behavior:

ludown refresh -i "Email_enus_official.json"
ludown parse toluis --in Email_enus_official.lu

Here is the json file I used. It can be parsed correctly in luis website.
Email_enus_official.txt
Result: error without any information.

ludown refresh -i "ToDo_IPA_enus_official.json"
ludown parse toluis --in ToDo_IPA_enus_official.lu
ToDo_IPA_enus_official.txt

Result like below:

Expected behavior
the .lu file should able to parse back to .json file.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
[bug]

@DingmaomaoBJTU Does this reproduce in cmd (as apposed to in PowerShell) as well?

I verified that this is fixed via #1130

@DingmaomaoBJTU , How you generated .lu file from json file?

ludown refresh -i "Email_enus_official.json"


When inputting a coordinate out of the map view ArcMap Crashes

If you are in a projected coordinate system and you input a location that is outside of that projection ArcMap crashes.

On my system this crashed. On @Dbarnes1 system the tool did not convert or flash the outputs.

@topowright and I were unable to reproduce this issue today, closing out.


Pyside2 5.14 not finding correct version of PyQt

🐛 Bug

To Reproduce
Steps to reproduce the behavior:

conda create --name test-napari python=3.7
conda activate test-napari
pip install napari
napari

Traceback (most recent call last):
File "/home/guido/anaconda3/envs/test-napari/lib/python3.7/site-packages/qtpy/init.py", line 204, in
from PySide import version as PYSIDE_VERSION  # analysis:ignore
ModuleNotFoundError: No module named 'PySide'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/guido/anaconda3/envs/test-napari/bin/napari", line 5, in
from napari.main import main
File "/home/guido/anaconda3/envs/test-napari/lib/python3.7/site-packages/napari/init.py", line 4, in
from qtpy import API_NAME
File "/home/guido/anaconda3/envs/test-napari/lib/python3.7/site-packages/qtpy/init.py", line 210, in
raise PythonQtError('No Qt bindings could be found')
qtpy.PythonQtError: No Qt bindings could be found
Initial import error found to be,
ImportError: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.14' not found (required by /home/guido/anaconda3/envs/test-napari/lib/python3.7/site-packages/PySide2/QtCore.abi3.so)

/home/guido/anaconda3/envs/test-napari/lib/python3.7/site-packages/qtpy/init.py(159)()
-> from PySide2.QtCore import version as QT_VERSION  # analysis:ignore

Hmm there seems to be something going wrong with the conda virtual environment not finding your Qt. I wonder if @kne42 or @jni has any suggestions here. I'm curious if you explicitly try and install pip install pyside2 if that gets any better?
We should fix this regardless, but I'm also curious if you try pip install pyqt5 if napari then works - napari can be run with either pyside2 or pyqt5.

can we get the output of conda list after running pip install napari?  and also the OS version?

@jni is sitting right here and he has no idea. =P

ok so I issued the following command,
pip install pyqt5
napari
WARNING: Could not load the Qt platform plugin "xcb" in "" even though it was found.
WARNING: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.
Aborted (core dumped)

Output of pip list:
 $ pip list
Package                       Version
----------------------------- -------------------
alabaster                     0.7.12
asciitree                     0.3.3
Babel                         2.7.0
backcall                      0.1.0
certifi                       2019.11.28
chardet                       3.0.4
cycler                        0.10.0
dask                          2.9.0
decorator                     4.4.1
docutils                      0.15.2
fasteners                     0.15
freetype-py                   2.1.0.post1
fsspec                        0.6.2
idna                          2.8
imageio                       2.6.1
imagesize                     1.1.0
ipykernel                     5.1.3
ipython                       7.10.2
ipython-genutils              0.2.0
jedi                          0.15.1
Jinja2                        2.10.3
jupyter-client                5.3.4
jupyter-core                  4.6.1
kiwisolver                    1.1.0
MarkupSafe                    1.1.1
matplotlib                    3.1.2
monotonic                     1.5
napari                        0.2.7
networkx                      2.4
numcodecs                     0.6.3
numpy                         1.17.4
numpydoc                      0.9.1
packaging                     19.2
parso                         0.5.2
pexpect                       4.7.0
pickleshare                   0.7.5
Pillow                        6.2.1
pip                           19.3.1
prompt-toolkit                3.0.2
ptyprocess                    0.6.0
Pygments                      2.5.2
PyOpenGL                      3.1.4
pyparsing                     2.4.5
PySide2                       5.14.0
python-dateutil               2.8.1
pytz                          2019.3
PyWavelets                    1.1.1
pyzmq                         18.1.1
qtconsole                     4.6.0
QtPy                          1.9.0
requests                      2.22.0
scikit-image                  0.16.2
scipy                         1.4.1
setuptools                    42.0.2.post20191203
shiboken2                     5.14.0
six                           1.13.0
snowballstemmer               2.0.0
Sphinx                        2.3.0
sphinxcontrib-applehelp       1.0.1
sphinxcontrib-devhelp         1.0.1
sphinxcontrib-htmlhelp        1.0.2
sphinxcontrib-jsmath          1.0.1
sphinxcontrib-qthelp          1.0.2
sphinxcontrib-serializinghtml 1.1.3
toolz                         0.10.0
tornado                       6.0.3
traitlets                     4.3.3
urllib3                       1.25.7
vispy                         0.6.4
wcwidth                       0.1.7
wheel                         0.33.6
wrapt                         1.11.2
zarr                          2.3.2

The issue is not with PySide or PyQt but with finding libQt it seems. But I have not changed my Linux installation for a long time so I don't think I would have installed Qt 5.14 outside of conda/pip...

OS version is Ubuntu 18.04.3

Downgrading to lower PyQt works btw.

We've since switched to shipping with pyqt5 instead of pyside2 by default, and a lot of other things have changed about the install.  I imagine this issue is either solved, or is machine specific at this point... but feel free to open again if you're still having installation issues.


feat(logger): add customError function

I had copied the tests from a similar method I found a couple of exciting things:

Multiple expects per it block
Seven expects from eight are the same in three tests
Very hard to figure it out which tests belong to a specific method

Implementation:

Extra methods with prototype extension and Class usage a little bit strange for me

:tada: This PR is included in version 3.1.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Support rpm packages for arm32

Support rpm packages for arm32

Trying to enable target arm32on x86-64 and got the error for jdk8.
+ sha256sum -c /home/builder/rpmbuild/SOURCES/OpenJDK8U-jdk_arm_linux_hotspot_8u312b07.tar.gz.sha256.txt
OpenJDK8U-jdk_arm_linux_hotspot_8u312b07-aarch32-20211101.tar.gz: FAILED open or read
sha256sum: OpenJDK8U-jdk_arm_linux_hotspot_8u312b07-aarch32-20211101.tar.gz: No such file or directory
sha256sum: WARNING: 1 listed file could not be read

The arm32 jdk file is  OpenJDK8U-jdk_arm_linux_hotspot_8u312b07-20211101.tar.gz while the sha file refer the name as OpenJDK8U-jdk_arm_linux_hotspot_8u312b07-aarch32-20211101.tar.gz. Looks like the sha file wasn't generated correctly and I can see this only happened to jdk8u302-b08 .

OK this sounds like it is another undocumented part of the release process that we need to address. I've raised https://github.com/adoptium/temurin-build/issues/2792 and will get the sha256 file adjusted shortly.

Now fixed in the release. Please try again.

@sxa Looks like only updating the sha file won't work. The tar.gz unzipped to folder jdk8u312-b07-aarch32-20211101, which is supposed to be jdk8u312-b07. Maybe the way the jdk was tarred should be fixed?

The tar.gz unzipped to folder jdk8u312-b07-aarch32-20211101, which is supposed to be jdk8u312-b07

This is consistent with how it was for previous releases and is related to the alternate repository that we build from so I'd be reluctant to change it just for the installer processes. The java -version output does not have beta in it so it is definitely not a nightly build. Here is the contents of the 8u292 arm32 tarball from adoptopenjdk:
root@odroid:/ssd/sxa# tar tvfz OpenJDK8U-jdk_arm_linux_hotspot_8u292b10.tar.gz | head -5
drwxr-xr-x root/root         0 2021-04-23 12:31 jdk8u292-b10-aarch32-20210423/
-r--r--r-- root/root     19274 2021-04-23 12:31 jdk8u292-b10-aarch32-20210423/LICENSE
-rw-r--r-- root/root  52755666 2021-04-23 12:31 jdk8u292-b10-aarch32-20210423/src.zip
drwxr-xr-x root/root         0 2021-04-23 12:31 jdk8u292-b10-aarch32-20210423/jre/
-r--r--r-- root/root     19274 2021-04-23 12:31 jdk8u292-b10-aarch32-20210423/jre/LICENSE

I would hope we'd be able to copy with an alternate top level directory in the scripts. For the previous packages (at least for debian) it installed into a path /usr/lib/jvm/adoptopenjdk-8-hotspot-armhf despite that not being the name of the top level directory in the .tar.gz file, so we had been doing some translation on the name anyway. Can we do the same now?

@sxa I'm not asking to do the change just for the installer processes. Just want to confirm that the issue I hit is expected or not. Did you mean arm jdk8 is using different repository from jdk11 and up? I didn't hit the similar issue with jdk11 and up.

Using target arm32 looks fine with Suse. However with Redhat got the error xargs: invalid number "%{_smp_build_ncpus}" for -P option . Similar to issue https://bugzilla.redhat.com/show_bug.cgi?id=1096480. Tried with Fedora 34 got same issue. Fedora 35 got updateexecutor failed running [/bin/sh -c dnf update -y && dnf install -y rpmdevtools rpm-sign rpmlint gnupg2 wget tar dpkg findutils]: exit code: 1  didn't bother to figure out which update have the issue.
RPM build errors:
xargs: invalid number "%{_smp_build_ncpus}" for -P option
Try 'xargs --help' for more information.
+ /usr/lib/rpm/redhat/brp-ldconfig
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
+ /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip
xargs: invalid number "%{_smp_build_ncpus}" for -P option
Try 'xargs --help' for more information.
error: Bad exit status from /var/tmp/rpm-tmp.lPSnk9 (%install)

According to https://bugzilla.redhat.com/show_bug.cgi?id=1839372 tried with armv7l works fine.

Going forward it would be great to update the jdk8 arm32 tar file's directory name to be as other versions and platforms.  https://github.com/adoptium/temurin-build/issues/2795

Did you mean arm jdk8 is using different repository from jdk11 and up? I didn't hit the similar issue with jdk11 and up.

Correct. it comes from https://github.com/adoptium/aarch32-jdk8u instead of https://github.com/adoptium/jdk8u and there are no plans to merge the aarch32 JIT support into the main codebase unfortunately.

Using target arm looks fine with Suse. However with Redhat got the error xargs: invalid number "%{_smp_build_ncpus}" for -P option . Similar to issue https://bugzilla.redhat.com/show_bug.cgi?id=1096480.

Can we try overriding the --target to be armv7l-linux instead of arm and see if that fixes it, which sounds from the comments in that bug that it might resolve the problem.

(Just as an FYI due to some memory constraints I can't currently build the .deb for arm32 at the moment either)


Add ProgressBar widget

should be very simple.. not sure what best style etc to use and whether there is a useful default here -- do some research..  most likely just same rendering as slider.

Already implemented (see https://pkg.go.dev/github.com/goki/gi/gi#ProgressBar)


Fix error to get assembly location in .NET 5

Fixes #12
I made tests using the example in this repo, and also using my application. Both worked fine, using -p:PublishSingleFile=true or -p:PublishSingleFile=false

@pug-pelle-p can you please review this PR?

Sorry for the late response, it's merged now and a new version is being pushed to nuget


Suggest similar table/column/indexes names on missing errors

Fixes #684
Signed-off-by: Juanjo Alvarez<EMAIL_ADDRESS>

First of all I thought we won't pull any new dependencies. Distance function is just a one simple function. For instance here is sift4 (less general, but should be faster than Levenstein):
// Sift4 - common version
// online algorithm to compute the distance between two strings in O(n)
// maxOffset is the number of characters to search for matching letters
// maxDistance is the distance at which the algorithm should stop computing the value and just exit (the strings are too different anyway)
function sift4(s1, s2, maxOffset, maxDistance) {
    if (!s1||!s1.length) {
        if (!s2) {
            return 0;
        }
        return s2.length;
    }

    if (!s2||!s2.length) {
        return s1.length;
    }

    var l1=s1.length;
    var l2=s2.length;

    var c1 = 0;  //cursor for string 1
    var c2 = 0;  //cursor for string 2
    var lcss = 0;  //largest common subsequence
    var local_cs = 0; //local common substring
    var trans = 0;  //number of transpositions ('ab' vs 'ba')
    var offset_arr=[];  //offset pair array, for computing the transpositions

    while ((c1 < l1) && (c2 < l2)) {
        if (s1.charAt(c1) == s2.charAt(c2)) {
            local_cs++;
            var isTrans=false;
            //see if current match is a transposition
            var i=0;
            while (i<offset_arr.length) {
                var ofs=offset_arr[i];
                if (c1<=ofs.c1 || c2 <= ofs.c2) {
                    // when two matches cross, the one considered a transposition is the one with the largest difference in offsets
                    isTrans=Math.abs(c2-c1)>=Math.abs(ofs.c2-ofs.c1);
                    if (isTrans)
                    {
                        trans++;
                    } else
                    {
                        if (!ofs.trans) {
                            ofs.trans=true;
                            trans++;
                        }
                    }
                    break;
                } else {
                    if (c1>ofs.c2 && c2>ofs.c1) {
                        offset_arr.splice(i,1);
                    } else {
                        i++;
                    }
                }
            }
            offset_arr.push({
                c1:c1,
                c2:c2,
                trans:isTrans
            });
        } else {
            lcss+=local_cs;
            local_cs=0;
            if (c1!=c2) {
                c1=c2=Math.min(c1,c2);  //using min allows the computation of transpositions
            }
            //if matching characters are found, remove 1 from both cursors (they get incremented at the end of the loop)
            //so that we can have only one code block handling matches
            for (var i = 0; i < maxOffset && (c1+i<l1 || c2+i<l2); i++) {
                if ((c1 + i < l1) && (s1.charAt(c1 + i) == s2.charAt(c2))) {
                    c1+= i-1;
                    c2--;
                    break;
                }
                if ((c2 + i < l2) && (s1.charAt(c1) == s2.charAt(c2 + i))) {
                    c1--;
                    c2+= i-1;
                    break;
                }
            }
        }
        c1++;
        c2++;
        if (maxDistance)
        {
            var temporaryDistance=Math.max(c1,c2)-lcss+trans;
            if (temporaryDistance>=maxDistance) return Math.round(temporaryDistance);
        }
        // this covers the case where the last match is on the last token in list, so that it can compute transpositions correctly
        if ((c1 >= l1) || (c2 >= l2)) {
            lcss+=local_cs;
            local_cs=0;
            c1=c2=Math.min(c1,c2);
        }
    }
    lcss+=local_cs;
    return Math.round(Math.max(l1,l2)- lcss +trans); //add the cost of transpositions to the final result
}

The second thought I had is maxDistance parameter. In other words if the distance is > 3 it doesn't make sense to suggest anything because most likely it's a garbage.
I would suggest just a minimum < 3 and if you have more values with the same distance suggest all of them. For instance someone thought about commits or ref_commits

@kuba-- you're right, as we spoke on Slack, this could be a pretty shallow dependency, used a simplified and working on strings version of the Levenshtein function instead.

@kuba-- also implemented your suggestion of returning 0 to many results depending on the distance.

Looks like the Mono test in the CI matrix is failing for some missing package in some repository.

Ah, yes, the C# thing. Ignore it and don't worry.


New version: ByteDance.Douyin version 3.9.0

Created by 🥟 Dumplings in workflow run #5499.
Logs
下载源
Updated: 3.6.4 → 3.9.0
Submitting WinGet manifests

Microsoft Reviewers: Open in CodeFlow

@wingetbot run


[Feature] removing the version restrictions for torch and triton

Hi all. Some PyPI torch versions, like 2.4, conflict with FlagGems. Removing the version restriction on FlagGems would solve this issue. May we consider removing the version restrictions for torch and triton? Thanks.
ref
https://github.com/FlagOpen/FlagGems/blob/4f6ea4cc2fc004d806d48a7d8f21dcb6a79a6dc5/pyproject.toml#L20-L21

Since FlagGems only supports triton after 2.2.0, removing restriction of triton might not be possible. We will try on torch2.4 and figure out why they conflict.

Torch 2.4 use triton 3.0.0


Conflict with jquery validation Plug in

Inputs running typeahead fails on validate with jquery validation plugin used widely in ASP .NET MVC word
when  submitting forms with jquery validations everything goes well
But, if you add the typeahead behavior to the input, it becomes invalid and start failing because it ads an aditional input control.
I've used the following workaround for making it work
$("input.tt-hint").removeAttr("data-val data-val-required data-val-maxlength data-val-maxlength-max");

A more flexible approach would have been
$.validator.setDefaults({     ignore: ":hidden,.tt-input" });


add gcp deploy example

This PR contains:

Update to Dockerfile, 1.1.1 --> 1.1.2 (needs to be verified on Azure)
Update to Readme on how to deploy to GCP
Update to app and test to allow for different port based on env variable
Configuration file that is used to deploy to GCP

Awesome

If you try it out be a little bit pasient. The deploy time to gcloud with a custom flex image, which this is, takes some time at the moment. Not sure why, but I really hope they can decrease it some time in the future.


[Feature Request] Automatically load workspace file

PROBLEM
When opening a multiroot workspace that has a foo.code-workspace file, vscode asks if I want to open the workspace. This happens many times a day when switching between many workspaces.
SOLUTION
If a workspace file exists and I type code . then open the workspace automatically. Or prompt the first time with a "remember this option".
This was already asked in #64565 but the author closed his issue and it's locked.
Please consider it... thanks!
(Tagging upvoters from original issue - if you still want this feature please upvote? @justinshuck @Yzrsah @efender @pliski @alexaandru @EthanNYT @jared-dykstra @cdaringe @melMass @mugi-luffy @entozoon @KPECTuK @ironcladlou)

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

:slightly_frowning_face: In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.
Happy Coding!


example files

Hello, is it possible to have all the example files used in the notebooks ("Dropbox", "Dropbox/Agile/", ...) to learn and understand all the aspects of the module ?
Many thanks

@mlaloux, Fair request. I'll work at composing an example with shareable data. Indeed, this project was and still very much is a fit for purpose tool for visualizing a multi-tude of surface and subsurface data along arbitrarily polylines (shapefile transects). The concept of the visualizations is to produce Atlas-like sheets aggregating a variety of information
In case we haven't mentioned it specifically in the documentation, Geotransect intends to consume:

Shapefiles (bed rock geology)
Raster data (digital elevation models, potential field data)
Petrophysical and well data (Petrophysical names require a very strict configuration and naming in the current implementation)
seismic data (2d or 3d)
seismic interpretation elements (horizons, faults, etc).
well tops, markers, labels, etc.

The current view, shown here, features a title and header block, a basemap, a transect, and a single "feature plot" showing a full-petrophysical composite for a single well (defined in the config.yaml file). We don't support support additional views at the moment; 2 or more petrophysical plots side-by-side side.

Please be advised Geotransect isn't suitable for Python 3 at the moment. Check out the develop branch for a list of python requirements, and conda_requirements. There is a hefty amount of dependencies, and   this tool is likely some distance away from public consumption, so please bear with us.
Interested to hear of your use case(s), and the data formats that you'd like Geotransect to consume.


Chore/playwright

Fixes #712

first of all also run tests in the PRs for setup-redesign
for some reason i18n doesn't work in unit-tests (anymore?) or just not in the app-test?
adding playwright with a basic test and some setup and adjustments

Thank you! Just found some small things :)


Errors while syncing

Made another attempt to sync this submission, got errors:
QueryFailedError: null value in column "subdomain_count" of relation "domain" violates not-null constraint

and
8658491: Cannot mix BigInt and other types, use explicit conversions

Please fix.

Also, please test the squid before re-submitting. I understand it is challenging given its sync time, but it'll be faster than if I have to find every issue.
You may also find the new API comparison tool useful for debugging.

Sorry but my laptop can not fully sync, It took more than 35 hrs and the estimated time increasing. I will close my submission.


Only working as admin

First - compliment for the great package.
I had a couple of problems during installation - but everything is working well now - if the user has the admin-flag. Seems to be something with the settings - but I don't know why...
If a non admin tries to acces /tickets this error is thrown:
ErrorException in Setting.php line 56:
Trying to get property of non-object (View: /home/www/p279869/html/portal/resources/views/vendor/ticketit/shared/nav.blade.php) (View: /home/www/p279869/html/portal/resources/views/vendor/ticketit/shared/nav.blade.php) (View: /home/www/p279869/html/portal/resources/views/vendor/ticketit/shared/nav.blade.php)
in Setting.php line 56
at CompilerEngine->handleViewException(object(ErrorException), '1') in PhpEngine.php line 44

I am so sorry for this issue, please go to vendor/kordy/ticketit and make git pull to get the last update. I hope this update fixes your issue

Thanks! That's it.


new DESCRIPTION title and description

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 96.84%. Comparing base (276edca) to head (be8cf56).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #15   +/-   ##
=======================================
  Coverage   96.84%   96.84%
=======================================
  Files           2        2
  Lines          95       95
=======================================
  Hits           92       92
  Misses          3        3

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

🚨 Try these New Features:

Flaky Tests Detection - Detect and resolve failed and flaky tests


Make stale labeling faster

About 1 page of issues were labeled stale per week. At this rate we need 30 weeks to label all of old issues, which is too slow.

alluxio-bot, merge this please


MathJax on Github pages wont display after I installed the link in the head

hi, I am using MathJax on my github blogs csrgxtu, and I included the cdn  of mathjax, and write down some math symbols, upload the page to github, and it wont display, please check Writing Mathematic Fomulars in Markdown. I am using Google Chrome browser in Ubuntu 14.04, and it just display the latex source code of the math symbols.

The inline configuration block has to come before MathJax is loaded; otherwise MathJax starts up without being configured to use $ as delimiters. Removing the first script tag pointing to MathJax should do the trick.
(You can also remove the MathJax.Hub.Queue (...) part in the inline block; it doesn't do anything for your page.)


Support FastAPI Routes Without Explicit Index Specification

Currently, FastAPI routes require explicitly specifying an index. This can be cumbersome and error-prone, especially for larger applications with many routes. It would be beneficial to have a mechanism that allows FastAPI routes to be defined without the need to specify an explicit index, making route definitions cleaner and more intuitive.
Possible Solution:
Implement an internal mechanism in FastAPI that automatically manages route indexing, ensuring routes are registered in the order they are added.

@Aran-Fey I remember you working on something like this. Is this issue a thing of the past?