UndefinedObject: collation "NOCASE" for encoding "UTF8" does not exist

This error appears when GETing /api/templates/ while using Postgres.
2023-06-13 11:34:24 2023-06-13 09:34:24,109 [ ERROR ] [app                           ] Exception on /api/templates/ [GET]    <log_exception, 1741; /usr/local/lib/python3.10/site-packages/flask/app.py>
2023-06-13 11:34:24 Traceback (most recent call last):
2023-06-13 11:34:24   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1900, in _execute_context
2023-06-13 11:34:24     self.dialect.do_execute(
2023-06-13 11:34:24   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/default.py", line 736, in do_execute
2023-06-13 11:34:24     cursor.execute(statement, parameters)
2023-06-13 11:34:24 psycopg2.errors.UndefinedObject: collation "NOCASE" for encoding "UTF8" does not exist
2023-06-13 11:34:24 LINE 2: FROM "UiTemplate" ORDER BY "UiTemplate".name COLLATE "NOCASE...
2023-06-13 11:34:24                                                      ^
2023-06-13 11:34:24
2023-06-13 11:34:24
2023-06-13 11:34:24 The above exception was the direct cause of the following exception:
2023-06-13 11:34:24
2023-06-13 11:34:24 Traceback (most recent call last):
2023-06-13 11:34:24   File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 2525, in wsgi_app
2023-06-13 11:34:24     response = self.full_dispatch_request()
2023-06-13 11:34:24   File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1822, in full_dispatch_request
2023-06-13 11:34:24     rv = self.handle_user_exception(e)
2023-06-13 11:34:24   File "/usr/local/lib/python3.10/site-packages/flask_cors/extension.py", line 165, in wrapped_function
2023-06-13 11:34:24     return cors_after_request(app.make_response(f(*args, **kwargs)))
2023-06-13 11:34:24   File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1820, in full_dispatch_request
2023-06-13 11:34:24     rv = self.dispatch_request()
2023-06-13 11:34:24   File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1796, in dispatch_request
2023-06-13 11:34:24     return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
2023-06-13 11:34:24   File "/usr/local/lib/python3.10/site-packages/flask/views.py", line 107, in view
2023-06-13 11:34:24     return current_app.ensure_sync(self.dispatch_request)(**kwargs)
2023-06-13 11:34:24   File "/usr/local/lib/python3.10/site-packages/flask/views.py", line 188, in dispatch_request
2023-06-13 11:34:24     return current_app.ensure_sync(meth)(**kwargs)
2023-06-13 11:34:24   File "/usr/local/lib/python3.10/site-packages/webargs/core.py", line 594, in wrapper
2023-06-13 11:34:24     return func(*args, **kwargs)
2023-06-13 11:34:24   File "/usr/local/lib/python3.10/site-packages/flask_smorest/arguments.py", line 82, in wrapper
2023-06-13 11:34:24     return func(*f_args, **f_kwargs)
2023-06-13 11:34:24   File "/usr/local/lib/python3.10/site-packages/flask_smorest/response.py", line 90, in wrapper
2023-06-13 11:34:24     func(*args, **kwargs)
2023-06-13 11:34:24   File "/app/qhana_plugin_registry/api/templates/root.py", line 84, in get
2023-06-13 11:34:24     templates: List[UiTemplate] = DB.session.execute(
2023-06-13 11:34:24   File "<string>", line 2, in execute
2023-06-13 11:34:24   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/orm/session.py", line 1712, in execute
2023-06-13 11:34:24     result = conn._execute_20(statement, params or {}, execution_options)
2023-06-13 11:34:24   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1705, in _execute_20
2023-06-13 11:34:24     return meth(self, args_10style, kwargs_10style, execution_options)
2023-06-13 11:34:24   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/sql/elements.py", line 333, in _execute_on_connection
2023-06-13 11:34:24     return connection._execute_clauseelement(
2023-06-13 11:34:24   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1572, in _execute_clauseelement
2023-06-13 11:34:24     ret = self._execute_context(
2023-06-13 11:34:24   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1943, in _execute_context
2023-06-13 11:34:24     self._handle_dbapi_exception(
2023-06-13 11:34:24   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 2124, in _handle_dbapi_exception
2023-06-13 11:34:24     util.raise_(
2023-06-13 11:34:24   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/util/compat.py", line 208, in raise_
2023-06-13 11:34:24     raise exception
2023-06-13 11:34:24   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1900, in _execute_context
2023-06-13 11:34:24     self.dialect.do_execute(
2023-06-13 11:34:24   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/default.py", line 736, in do_execute
2023-06-13 11:34:24     cursor.execute(statement, parameters)
2023-06-13 11:34:24 sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedObject) collation "NOCASE" for encoding "UTF8" does not exist
2023-06-13 11:34:24 LINE 2: FROM "UiTemplate" ORDER BY "UiTemplate".name COLLATE "NOCASE...
2023-06-13 11:34:24                                                      ^
2023-06-13 11:34:24
2023-06-13 11:34:24 [SQL: SELECT "UiTemplate".id, "UiTemplate".name, "UiTemplate".description
2023-06-13 11:34:24 FROM "UiTemplate" ORDER BY "UiTemplate".name COLLATE "NOCASE" ASC
2023-06-13 11:34:24  LIMIT %(param_1)s]
2023-06-13 11:34:24 [parameters: {'param_1': 25}]
2023-06-13 11:34:24 (Background on this error at: https://sqlalche.me/e/14/f405)

If you know of a way to specify this collation info only for certain dialects of SQLAlchemy (maybe with a dynamic callback), then we could solve it that way.
Other potential other solutions are:

Remove the collation information -> Sorting will be case sensitive again (not a huge deal)
Remove the collation in the model but add it on a per query basis (this can be done based on the current engine and may not be too much work)
Require postgres to have defined a NOCASE collation (postgres has support for defining custom collations [just alias POSIX], this would need a custom postgres container image/init script; may be possible to do in a migration script...)
Create an SQLAchemy extension that does the dialect specific collation for us (we probably should not go this route)

We also need to account for the existing migration...


[Add] Rip Tutorial a website for full path map for languages.

Site URL
https://riptutorial.com/
Description of the above provided site
Archived Stack Overflow Documentation
RIP Tutorial is a practical free learning tool.
Find plenty of information available.
Website contains plenty of eBook resources and examples for learning help to developers.
Category
Resources
Sub Category
Tutorials
Checklist

[X] I have checked the existing issues
[X] I have read the Contributing Guidelines
[X] I am willing to work on this issue (optional)
[X] I am a GSSoC'23 contributor

Hi @dhrumilpatel30! :) Once you're finished with #682, you can then work on this issue if it's still available! :)

Hi @CBID2, I am finished with previous issue please assign this.

Hi @CBID2, I am finished with previous issue please assign this.

sure


The excludeInboundPorts option is broken: it never takes any effect.

The excludeInboundPorts option cannot have any effect. The reason:
According to https://github.com/istio/istio/blob/release-1.1/tools/deb/istio-iptables.sh#L39:

-d: Comma separated list of inbound ports to be excluded from redirection to Envoy (optional). Only applies when all inbound traffic (i.e. "*") is being redirected

The script: https://github.com/istio/istio/blob/release-1.1/tools/deb/istio-iptables.sh#L252 :
if [ "${INBOUND_PORTS_INCLUDE}" == "*" ]; then
...
  if [ -n "${INBOUND_PORTS_EXCLUDE}" ]; then

However, since INBOUND_PORTS_INCLUDE is set according to (includeInboundPorts .Spec.Containers) in https://github.com/istio/istio/blob/release-1.1/install/kubernetes/helm/istio/templates/sidecar-injector-configmap.yaml#L40, once you have a container port defined, INBOUND_PORTS_INCLUDE will never be *.

I assume the use case is that you want to exclude some of the ports that are being automatically included?
FYI, you can override the default port inclusion behavior with the annotation traffic.sidecar.istio.io/includeInboundPorts (e.g. "*"). So you can still include everything and then exclude as you'd like.

Following https://github.com/istio/istio/issues/11660#issuecomment-462512103.

I assume the use case is that you want to exclude some of the ports that are being automatically included?

Right.

you can override the default port inclusion behavior with the annotation traffic.sidecar.istio.io/includeInboundPorts (e.g. "*")

@nmittler Could you please let me know how can I add this annotation? I tried to use helm:
helm template install/kubernetes/helm/istio --name istio --namespace istio-system --set global.mtls.enabled=true --set global.controlPlaneSecurityEnabled=true --set global.proxy.includeInboundPorts="*" --set global.proxy.excludeInboundPorts="8000" >> $HOME/istio.yaml

Got this yaml generated:
        - "-b"
        - "[[ annotation .ObjectMeta `traffic.sidecar.istio.io/includeInboundPorts` (includeInboundPorts .Spec.Containers) ]]"
        - "-d"
        - "[[ excludeInboundPort (annotation .ObjectMeta `status.sidecar.istio.io/port`  15020 ) (annotation .ObjectMeta `traffic.sidecar.istio.io/excludeInboundPorts`  "8000" ) ]]"

The includeInboundPorts .Spec.Containers.

@mandarjog @costinm are you aware of a way to pass in annotations for a deployment via helm?
I suppose you can manually modify the subcharts.

Hi, this is still an issue. As per the original post, INBOUND_PORTS_INCLUDE is never * which means the excludeInboundPorts annotation is always ignored. Could we remove the stale annotation please?

I believe this is working as intended. INBOUND_PORTS_INCLUDE is not always *, you can configure it with traffic.sidecar.istio.io/includeInboundPorts.
@silentdai is working on related topics if any more questions

I suggest you can either

set traffic.sidecar.istio.io/includeInboundPorts and istio would set INBOUND_PORTS_INCLUDE to "*" and activate excludeInboundPorts, or
leave traffic.sidecar.istio.io/includeInboundPorts empty and istio would set  INBOUND_PORTS_INCLUDE to containerPort and don't use excludeInboundPorts in this case.

I can confirm that istiod helm chart (1.12.1 version) have by default  includeInboundPorts: "*" in values.yaml.
But overriding the parameters doesn't take place since files/injection-template.yaml has this args:

"{{ annotation .ObjectMeta traffic.sidecar.istio.io/includeInboundPorts * }}"

That's why the sidecar is added with default and doesn't takes the override value
INBOUND_PORTS_INCLUDE=*


BroadcastChannel cannot be used with > 2 connections

When more than 2 clients are connected with broadcastchannel, messages bounce around forever and the clients freeze.

I haven'y had a chance to look into this properly yet, but is this with Ephemeral messages, or with all sync messages?

Ephemeral only because each node forwards them on without checking whether
they have done so before.
On Fri, Apr 21, 2023 at 08:13 Alex Currie-Clark @.***>
wrote:

I haven't had a chance to look into this properly yet, but is this with
Ephemeral messages, or with all sync messages?
—
Reply to this email directly, view it on GitHub
https://github.com/automerge/automerge-repo/issues/50#issuecomment-1517983848,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAAWQHT2DWMCMDK3EY7ERLXCKPY3ANCNFSM6AAAAAAXB3PMFM
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

--
Peter van Hardenberg
"Everything was beautiful, and nothing hurt."—Kurt Vonnegut

#92

Yea! We are on track to fix this before the Official Release thanks to your bug report :)


Integrate django-yamlconf so we can specify Django settings via helm config

We want to specify django settings via YAML, so they can be custom set via the helm chart.
We should use https://github.com/vmware/django-yamlconf to do so.
- [ ] Add` django-yamlconf` to the requirements file
- [ ] Add `django_yamlconf` to the INSTALLED_APPS in the settings file.
- [ ] Modify the `settings.py` file to load the settings from a `settings.yaml`
- [ ] Create a YAML file `settings.yaml` in the same directory with settings.py
- [ ] Create a `ConfigMap` that will hold the contents of this YAML configuration
- [ ] Mount this file
- [ ] Make sure the app can load the configuration here

Definition of Done

[ ] Arbitrary YAML is read by the webapp for settings
[ ] We can specify arbitrary settings from the helm config

This is now refined


Hugo extended version

Hugo local page was built successfully that the correct page can be seen locally.
But the command hugo to deploy the page for pushing to remote failed:
error: failed to transform resource: TOCSS: failed to transform "scss/main.scss" (text/x-scss): this feature is not available in your current Hugo version

Hugo FAQ says:

(Q: )I get “… this feature is not available in your current Hugo version”
(A: )If you process SCSS or Sass to CSS in your Hugo project with libsass as the transpiler or if you convert images to the webp format, you need the Hugo extended version, or else you may see an error message similar to the below:
error: failed to transform resource: TOCSS: failed to transform "scss/main.scss" (text/x-scss): this feature is not available in your current Hugo version
We release two set of binaries for technical reasons. The extended version is not what you get by default for some installation methods. On the release page, look for archives with extended in the name. To build hugo-extended, use go install --tags extended
To confirm, run hugo version and look for the word extended.

After installing go, the go install --tags extended couldn't work because go can't find module.
At the end, by installing npm and followed the instructions on this page, extended version seems to be installed because go install works.
Though npm run start is not working, the command hugo is working.
At current stage, we have:
░▒▓ ~/Doc/G/shouchaoben  main ?6  hugo                    1 ✘  02:50:47 ▓▒░
Start building sites …
hugo v0.110.0+extended darwin/arm64 BuildDate=unknown

                   | EN | DE
-------------------+----+-----
  Pages            |  9 |  7
  Paginator pages  |  0 |  0
  Non-page files   |  0 |  0
  Static files     | 35 | 35
  Processed images |  0 |  0
  Aliases          |  1 |  0
  Sitemaps         |  2 |  1
  Cleaned          |  0 |  0

Total in 1252 ms

Will push to see if the GitHub Action can deploy the page correctly or not.
To record above is aiming to leave a reminder to probably upgrade Hugo's version or rethink of the theme.

@duncdrum The last commit I am pushing was under pushing for more than 30 minutes that I need to go to sleep now. Therefore I can't check right now if the website is deployed successful or not. But it should not be far away from that.

Uh the push finished.
CI failed and the error is:
Error: Error building site: POSTCSS: failed to transform "css/main.css" (text/css). Check your PostCSS installation; install with "npm install postcss-cli". See https://gohugo.io/hugo-pipes/postcss/: this feature is not available in your current Hugo version, see https://goo.gl/YMrWcn for more information

From the GitHub page of our theme, I found this discussion , I went to check our package.json, it looks fine...

Also tried the solution of adding a postcss.config.js file but it doesn't work.

Can you open a draft PR please


Extra "|" pipe character

Removed the extra "|" pipe character for the company "CircleUp". Seems erroneous.

Great catch, thanks! :)


Made aliases clickable after assigning

This adds https:// to make these things clickable:

Codecov Report

Merging #2035 into canary will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           canary   #2035   +/-   ##
======================================
  Coverage    6.18%   6.18%
======================================
  Files          86      86
  Lines        4072    4072
======================================
  Hits          252     252
  Misses       3820    3820

Continue to review full report at Codecov.

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

Does this also affect the URL that gets copied to the clipboard? I noticed that it's missing the https:// prefix as well.

@TooTallNate This is for now alias. But I fixed your issue too!


Fix openByExtension to properly open gzip files with 'rt' mode

Use gzip.open function

Fixed. The change is tested and in prod.


[all] Bumped Tehuti to 0.10.0 (lock performance improvement)

Also removed an unnecessary optional from ServerHandlerUtils.

LGTM. Thanks Felix. Looks like Optionals need a bunker for its protection :)

Yep, no optionals are safe xD ! Thanks for the review :D


Add Computed Tomography Analysis Using DL project

Pull Request for DL-Simplified 💡
Issue Title: Computed Tomography Analysis using DL #468

Info about the related issue (Aim of the project): The goal of the project is to analyze CT scan images using DL techniques.
Name: Jaya Prakash Sangem
GitHub ID: #122619482
Email ID<EMAIL_ADDRESS>Identify yourself: GsSOC 2024 Contributor

Closes: #468
Describe the add-ons or changes you've made 📃
I have implemented the VGG16, ResNet50, and EfficientNetB7 models for CT image classification.
Type of change ☑
What sort of change have you made:

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[x] Code style update (formatting, local variables)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] This change requires a documentation update

How Has This Been Tested? ⚙
I have tested the implementation using a separate test dataset and verified the classification accuracy of each model. Additionally, I have compared the results with the expected outcomes to ensure accuracy.
Checklist: ☑

[x] My code follows the guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly wherever it was hard to understand.
[x] I have made corresponding changes to the documentation.
[x] My changes generate no new warnings.
[x] I have added things that prove my fix is effective or that my feature works.
[x] Any dependent changes have been merged and published in downstream modules.

Hi @Jaya-Prakash-17 the models you have implemented are overfitted. 100% accuracy for all the three models is really phishy. Try to split the dataset into 60:40 parameter.

The dataset is too small i guess that is also the reason. Anyways I'll try using data augmentation. Thanks @abhisheks008 and is there anything else that i can try?

The dataset is too small i guess that is also one of the reasons. Anyways I'll try using data augmentation. Thanks @abhisheks008 and is there anything else that i can try?

Accuracy scores are bit catching the eyes! I mean you understand what I mean to say.

yeah sure! I'll definitly look into it!
ill take some more time and come back with better content.
Thank you @abhisheks008

Pull Request for DL-Simplified 💡
Issue Title: Computed Tomography Analysis using DL

Info about the related issue (Aim of the project): The aim of this project is to accurately classify medical diseases including tumors, cancer, and aneurysms from CT scan images by applying deep learning algorithms. The goal is to make it easier for medical practitioners to diagnose and treat patients.
Name: Jaya Prakash Sangem
GitHub ID: Jaya-Prakash-17
Email ID<EMAIL_ADDRESS>Identify yourself: GsSOC 2024 Contributor

Closes: #557
Describe the add-ons or changes you've made 📃
I have developed deep learning models to analyze CT scan images of the brain and classify them into specific categories based on medical conditions detected. The project includes:

Data collection and preprocessing.
Exploratory data analysis to gain insights into the dataset.
Implementation of deep learning models, including VGG16, ResNet50, and EfficientNetB7.
Evaluation of model performance on training, validation, and test datasets.
Comparison of model accuracies and selection of the best-performing model.

Type of change ☑
What sort of change have you made:

[x] New feature (non-breaking change which adds functionality)

How Has This Been Tested? ⚙
The models have been tested using training, validation, and test datasets. Performance metrics including accuracy, precision, recall, and F1-score were used to evaluate the models. Additionally, confusion matrices were generated to assess the classification performance.
Checklist: ☑

[x] My code follows the guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly wherever it was hard to understand.
[x] I have made corresponding changes to the documentation.
[x] My changes generate no new warnings.
[x] I have added things that prove my fix is effective or that my feature works.
[x] Any dependent changes have been merged and published in downstream modules.


CODE CHANGE: The nav bar is clearly invisible when  it comes to white background

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the code change
Nav bar is not showing

Proposed solution
I want to add a shadow on navBar so that it is easily visible for any section
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

I will surely work on it and fix it


Throw exception if weatherfile goes backwards in time

Throw an exception for any weatherfile subject to issue https://github.com/NREL/ssc/issues/447
The exception occurs when running a simulation with an old interpolated weather file for all relevant cases, and if https://github.com/NREL/SAM/pull/364 is checked out, it will appear when selecting interpolated weather file on the battery modules.
To test:

Check out and build SAM on this branch
Select an interpolated weather file from 2020.2.29 r3 (or develop prior to today) and try to run it
An exception should be raised about hour 0 occurring after hour 23 (or similar)

Weather files interpolated with the code on https://github.com/NREL/SAM/pull/364 should not trigger the exception.

Ah, my change to invoke.cpp in the SAM PR wasn't correct for that callback. I've reverted that change and updated the behavior in https://github.com/NREL/SAM/pull/368, let me know if that meets your expectations.

Looks good now. I tweaked the lib_weatherfile error message a bit in 32f4bcb6.


Error on youtube shorts videos, and solution

I'm a complete newbie here, so, sorry if I'm repeating or not following the guidelines properly...
On trying to download the new-ish SHORTs category with youtube-dl (latest - 2021.12.17), I get this error "ERROR: Unable to recognize tab page;..." (complete output below).
BUT a simple change to the URL has fixed the problem for at least 4 SHORTs URLs:
ERROR on https://youtube.com/shorts/KreMNfKqalg?feature=share
is fixed by changing to
https://www.youtube.com/watch?v=KreMNfKqalg
i.e.

replacing "shorts/" with  "watch?v="  (NO quotes)
deleting the ending "?feature=share" (again NO quotes)

BELOW is the complete youtube-dl --verbose output:
20220613-143125:.../XXX> youtube-dl  --verbose "https://youtube.com/shorts/KreMNfKqalg?feature=share"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--verbose', u'https://youtube.com/shorts/KreMNfKqalg?feature=share']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Python version 2.7.5 (CPython) - Darwin-13.4.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg N-103507-g70f06dd63c-tessus
[debug] Proxy map: {}
[youtube:tab] shorts: Downloading webpage
ERROR: Unable to recognize tab page; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 815, in wrapper
return func(self, *args, **kwargs)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 836, in __extract_info
ie_result = ie.extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 534, in extract
ie_result = self._real_extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 2862, in _real_extract
raise ExtractorError('Unable to recognize tab page')
ExtractorError: Unable to recognize tab page; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Exactly, you discovered the work-around to be used until you install either the git master, or a future release based on it.
Duplicate of #30269.

Ah, thanks Dirk!  Sorry to bother you.
Now I have to find the git master, "youtube-dl -U" hasn't worked for a while
On Mon, Jun 13, 2022 at 4:16 PM dirkf @.***> wrote:

Exactly, you discovered the work-around to be used until you install
either the git master, or a future release based on it.
Duplicate of #30269 https://github.com/ytdl-org/youtube-dl/issues/30269.
—
Reply to this email directly, view it on GitHub
https://github.com/ytdl-org/youtube-dl/issues/31026#issuecomment-1154540096,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AZTWXD4VWXJAL5SOQORB7FDVO66MNANCNFSM5YVWIPVA
.
You are receiving this because you authored the thread.Message ID:
@.***>


Test template format.

At the moment we aren't testing that the template actually works. I believe that #244 addresses this. Am I correct @lucasfernog ?

Actually it doesn't. we need a test with tauri init + tauri build


Question: Ref.seekTo is not a function

I am using react-player with my next.js site and am having trouble using seekTo function. It results in error saying: "playerRef.seekTo is not a function"
I tried "playerRef.current.seekTo(parseFloat(e.target.value))" as well but same error occurs
This was my code:
import { useRef } from "react";
 const ReactPlayer = dynamic(() => import("react-player"), { ssr: false });

 const Player = ({url}) => {

 const playerRef = useRef();

 const [player, setPlayer] = useState({
     playing: true,
     muted: true,
     played: 0,
     loaded: 0,
     duration: 0,
     seeking:false
   });

 const handlePlayPause = function () {
 setPlayer({ ...player, playing: !player.playing });
};

const handleMuted = () => {
   setPlayer({ ...player, muted: !player.muted });
};

const handleSeekMouseDown = (e) => {
 setPlayer({ ...player, seeking: true });
};

const handleSeekChange = (e) => {
 setPlayer({ ...player, played: parseFloat(e.target.value) });
};

const handleSeekMouseUp = (e) => {
 setPlayer({ ...player, seeking: false });
 playerRef.seekTo(parseFloat(e.target.value));
};

const handleProgress = (state) => {
 if (!player.seeking) {
   setPlayer(state);
 }
};

return (
 <div
   className={`relative justify-center content-center w-full`}

 >
   <ReactPlayer
     ref={playerRef}
     className="absolute rounded"
     width="100%"
     height="100%"
     url={url}
     volume={1}
     playIcon={<></>}
     playing={player.playing}
     loop={true}
     muted={player.muted}
     onProgress={handleProgress}
   ></ReactPlayer>

     <input
       type="range"
       min={0}
       max={0.999999}
       step="any"
       value={player.played}
       onMouseDown={handleSeekMouseDown}
       onChange={handleSeekChange}
       onMouseUp={handleSeekMouseUp}
     />

);
};

export default Player;

Even when I copy paste exact code from demo(https://github.com/cookpete/react-player/blob/master/src/demo/App.js), same error shows, I'm not sure why it happens :(

I had to specify the type info to get the ref to work properly.
const playerRef = React.useRef<ReactPlayer>(null);

You need to call it like this: playerRef.current.seekTo().

I had to specify the type info to get the ref to work properly.
const playerRef = React.useRef<ReactPlayer>(null);

I'm not using typescript :(

You need to call it like this: playerRef.current.seekTo().

Yes I've tried but same error occurs

Same issue but with showPreview() method. The only thing that is under playerRef.current is a mysterious function retry().
I'm using<EMAIL_ADDRESS>

I had to specify the type info to get the ref to work properly.
const playerRef = React.useRef<ReactPlayer>(null);

I tried, but still have the issue

Try this solution
https://github.com/cookpete/react-player/issues/1455#issuecomment-1207154843

Try this solution
#1455 (comment)

I tried the solution describe in the comment. I needed to adapt the code a bit because I got compilation error using<EMAIL_ADDRESS>and<EMAIL_ADDRESS>Here's the code for anyone interested:
// main file
import dynamic from "next/dynamic";

const ReactPlayerComponent = dynamic<ReactPlayerProps>(
    () => import("./ReactPlayer").then(r => r.ReactPlayerComponent),
    {
        ssr: false
    }
);

// ReactPlayer.tsx
const ReactPlayerComponent: React.FC<ReactPlayerProps> = ({
  playerRef,
}) => {
  return (
    <ReactPlayer
      ref={playerRef}
    />
  );
};


We need a name.

distro is a placeholder.
Names are hard.
Give me your suggestions

Bushmaster Linux

bonsai has been suggested and I'm quite liking it --  @zoefiri even made this adorable ascii logo for us
  ####
#######,  ######
  ###',#  #######
   ###'';,,,'###
       ,;  ''''
      ;;;   ,#####,
     ;;;'  ,,;;;###
     ';;;;'''####'
      ;;;
   ,.;;';'',,,
  '     '
 #
 #
 ##, ,##,',##, ,##  ,#,   o
 # # #  # #''# #,,  # #   #
 '#' '##' #  #  ,,# '##;, #

What does everyone think?

I like it, it's pretty cute

Bonsai sounds like it's for weak motherfuckers. This distro is for hard motherfuckers.

Bonsai sounds like it's for weak motherfuckers. This distro is for hard motherfuckers.


"For users not in your directory" behaviour is opposite to what is expected

I have configured the 'Initial policy' with > Users who can request access = For users not in your directory (example.com + 6 more). But if one of the guest users from any of the connected domain attempt to sign-in to the 'My Access portal link', it says "This username may be incorrect. Make sure that you typed it correctly. Otherwise, contact your admin.".
However, if I use an UPN with a domain which is not one of the connected organisation domain, e.g<EMAIL_ADDRESS>it says "We just sent a code to<EMAIL_ADDRESS>so that works!.
Looks like connected organisations domains are forbidden to sign-in to the My Access Portal. How is that possible?

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

ID: 066dbfa5-08ba-8b7a-845b-854c873362b6
Version Independent ID: 97d7f2b3-904a-574f-3732-9f6851291890
Content: Create a new access package in entitlement management - Azure AD
Content Source: articles/active-directory/governance/entitlement-management-access-package-create.md
Service: active-directory
Sub-service: compliance
GitHub Login: @msaburnley
Microsoft Alias: ajburnle

@rajeshkhanikar Thanks for your feedback! We will investigate and update as appropriate.

Make sure all directories are configured to allow invitations in Collaboration restrictions.  https://docs.microsoft.com/azure/active-directory/b2b/delegate-invitations
As long as they are guest users then it should work and should behave like that. Would you mind sending me an email to<EMAIL_ADDRESS>and include your subscription ID so that we can look into this further together?
@msaburnley is this article being updated? I went to edit it and all of the text for that section was gone in the editor version.

Please try changing the collaboration restriction settings. If you still run into this issue feel free to reach out to me on Q&A or over email. https://docs.microsoft.com/answers/topics/azure-active-directory.html?filter=unanswered


Documentation: Gem-based method with local repository

Added documentation explaining how to use a local repository of minimal-mistakes with the gem-based method.

I've seen your comments, but besides the typos, I'm not convinced that I will be of much help with this:

These paragraphs sound off to me. I get what you're going for but it's not the most clear thing and the last thing I want to do is confuse people.

As a non-native speaker, it's extremely hard to rewrite something to make it sound less "off". Maybe you take my PR as a suggestion to include it in your own words at some point. I completely understand your point about clear language since I would be exactly the same when it's about a German text.


Update dependency sinon to v19

This PR contains the following updates:

Package
Type
Update
Change

sinon (source)
devDependencies
major
17.0.0 -> 19.0.2

Release Notes

sinonjs/sinon (sinon)
v19.0.2
Compare Source

4eb4c4bc
Use fix 13.0.2 version of fake-timers to get Date to pass instanceof checks (Carl-Erik Kopseng)
a5b03db3
Add links to code that is affected by the breaking changes (Carl-Erik Kopseng)

Released by Carl-Erik Kopseng on 2024-09-13.
v19.0.1
Compare Source

037ec2d2
Update migration docs (Carl-Erik Kopseng)

Released by Carl-Erik Kopseng on 2024-09-13.
v19.0.0
Compare Source

3534ab4f
Bump samsam and nise to latest versions (#2617) (Carl-Erik Kopseng)

Ensures consistency and less breakage when there are "circular" dependencies.

912c568d
upgrade fake timers and others (#2612) (Carl-Erik Kopseng)

Upgrade dependencies (includes breaking API in Fake Timers)
fake-timers: no longer creating dates using the original Date class, but a subclass (proxy)

9715798e
Use newer @mochify/* packages (#2609) (Carl-Erik Kopseng)

Co-authored-by: Maximilian Antoni<EMAIL_ADDRESS>

Released by Carl-Erik Kopseng on 2024-09-13.
v18.0.1
Compare Source
Basically a patch release to update a transitive dependency in Nise.

03e33ec6
Pin<EMAIL_ADDRESS>to avoid breaking change (Carl-Erik Kopseng)
5a7924ad
Add createStubInstance header in stubs.md (Daniel Kaplan)
ad6804cd
Bump elliptic from 6.5.5 to 6.5.7 (#2608) (dependabot[bot])
033287bd
Bump path-to-regexp and nise (#2611) (dependabot[bot])

Bumps path-to-regexp to 8.1.0 and updates ancestor dependency nise. These dependencies need to be updated together.
Updates path-to-regexp from 6.2.2 to 8.1.0

Release notes
Changelog
Commits

Updates nise from 6.0.0 to 6.0.1

Changelog
Commits

updated-dependencies:

dependency-name: path-to-regexp
dependency-type: indirect

dependency-name: nise
dependency-type: direct:production

...
Signed-off-by: dependabot[bot]<EMAIL_ADDRESS>Co-authored-by: dependabot[bot]<EMAIL_ADDRESS>

0c609f95
re-add testing of esm browser builds (Carl-Erik Kopseng)

It seems unclear why it was removed in the first place: I have tested extensively that it
does work and it does fail the build if changing any assertion in the script

da4230a0
Bump braces from 3.0.2 to 3.0.3 (#2605) (dependabot[bot])

Bumps braces from 3.0.2 to 3.0.3.

Changelog
Commits

updated-dependencies:

dependency-name: braces
dependency-type: indirect

...
Signed-off-by: dependabot[bot]<EMAIL_ADDRESS>Co-authored-by: dependabot[bot]<EMAIL_ADDRESS>

02542370
feat(ci): add node v22 (#2600) (Rotzbua)
794cb81a
fix(tests): typo (#2603) (Rotzbua)
1eb2a254
Use NodeJS 22.2.0 as base development version (Carl-Erik Kopseng)
1aa713fd
Bump rexml from 3.2.5 to 3.2.8 (#2599) (dependabot[bot])

Bumps rexml from 3.2.5 to 3.2.8. >

Release notes >
Changelog >
Commits > >
--- >
updated-dependencies: >
dependency-name: rexml >
dependency-type: indirect >
... > >
Signed-off-by: dependabot[bot]<EMAIL_ADDRESS>>
Co-authored-by: dependabot[bot]<EMAIL_ADDRESS>

Released by Carl-Erik Kopseng on 2024-09-10.
v18.0.0
Compare Source
This is what 17.0.2 should have been, as that contained two breaking changes. After updating
Nise we are down to one breaking change, which only affects sinon-test (which has been updated),
so most people are not affected. The legacyRoutes flag that is currently enabled in Nise by default
will at some later version be disabled. We will then issue a little migration note.

01d45312
Use Nise 6 with legacyRoutes flag enabled (Carl-Erik Kopseng)

This should be disabled in a future Sinon version by default.

c618edc5
fix #2594: remove needless sandbox creation (Carl-Erik Kopseng)

Released by Carl-Erik Kopseng on 2024-05-15.
v17.0.2
Compare Source

f6dca0ba
upgrade packages (#2595) (Carl-Erik Kopseng)
5025d001
Avoid return and callArg* clearing each other's state (#2593) (Carl-Erik Kopseng)

Partially revert "fix returns does not override call through (#2567)"

revert to the old manual clearing of props

ed068a88
Bump ip from 1.1.8 to 1.1.9 (#2587) (dependabot[bot])
ec4d592e
fix #2589: avoid invoking getter as side-effect (#2592) (Carl-Erik Kopseng)
9972e1e3
Fix typo in mocks documentation (#2591) (Eduardo de la Cruz Palacios)
52e6e4c5
chore: prefer cache option of setup-node (Morgan Roderick)
08da1235
Bump actions/cache from 3 to 4 (dependabot[bot])
404ef47e
Bump nokogiri from 1.14.3 to 1.16.2 (dependabot[bot])
fd79612c
Update Bug_report.md (Carl-Erik Kopseng)
1fbc812a
Re-add about (Carl-Erik Kopseng)
fc8f6c3e
Fix formatting :clown: (Carl-Erik Kopseng)
c57e38ae
Remove old template (Carl-Erik Kopseng)
754bf7a9
Update Bug_report.md (Carl-Erik Kopseng)
87eed9d2
Fix some typos at code comments (#2581) (EliyahuMachluf)
cbae6997
Link to createStubInstance util.md docs in stubs.md (#2577) (Daniel Kaplan)
adcf936d
Fix Mocha watch task by delegating to Node (#2573) (Carl-Erik Kopseng)
30ad2372
prettier:write (Carl-Erik Kopseng)
45c4d6b9
Remove outdated info from README (#2571) (Carl-Erik Kopseng)
6c9f5c2a
Add a notice that the Fake Timers API doc is incomplete (#2570) (Carl-Erik Kopseng)
93db3ef3
breaking: Remove sinon.defaultConfig and related modules (#2565) (Carl-Erik Kopseng)

breaking: Remove sinon.defaultConfig and related modules

default-config and get-config are leftovers from when Sinon
shipped with sinon.test (now the independent NPM module
'sinon-test').

Released by Carl-Erik Kopseng on 2024-05-07.
v17.0.1
Compare Source

5fde5aeb
fix returns does not override call through (#2567) (Raz Luvaton)
b5fc3671
Documentation for assertion options for the sandbox (#2564) (Carl-Erik Kopseng)
f7d180cc
fix: assertion log limit (#2485) (Spencer Goossens)
4f538e3e
Fix mochify breaking on node:assert (#2559) (Carl-Erik Kopseng)

Released by Carl-Erik Kopseng on 2023-11-01.

Configuration
📅 Schedule: Branch creation - "before 4am on the first day of the month" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Self-Hosted Renovate Bot. Find all logs here.

 You will not get PRs for any future 19.x releases. But if you manually upgrade to 19.x then Renovate will re-enable minor and patch updates automatically.
If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.


Fix for issue 42 ( Add maps.me mwm export )

I have used the binaries provided by Zverik and added mwm. format to export tool as my first contribution task to OPW intern .Please review it and revert back if anything goes wrong. "

You've included binaries for MWM. This is different from mkgmap and splitter, where the readme instructs to download them separately. It's probably best to handle mwm binaries like garmin binaries.

The readme states that "The HOT Exports service uses a local instance of Overpass v07.52 for data extraction" but some of your config changes would have it using the public instance, not the local one. If this was intentional, it should go in its own PR for independent review as it's not related to MWM.


[Travis] Use build-for-testing and test-without-building build actions on Xcode 8

This should stabilize running iOS tests on Travis with Xcode 8. See https://github.com/AliSoftware/OHHTTPStubs/pull/184#issuecomment-232067292 for the original concern.

Is the same issue happening on Xcode 7.3 now?

https://travis-ci.org/AliSoftware/OHHTTPStubs/jobs/144734002
https://travis-ci.org/AliSoftware/OHHTTPStubs/jobs/144734014

Thanks for the PR! Would indeed love to stabilize those Travis builds!
Yeah I had that random problem with Travis even before Xcode 8, so not sure that's related to Xcode 8 :-/

Btw I just added you as collaborator to OHHTTPStubs, first to thank you for your latest contributions on it, and also to give you ability to create branches directly on my repo instead of having to have your own fork. Feel free to ask if you need anything like some additional Travis access or whatnot!

Thanks for the invitation, it's really great! 😄

Looks like build test might be better than just test for Xcode 7.3.

Cool! Wonder why though… but hey if that works ¯_(ツ)_/¯


simfphys vehicles crash entire Linux machine when deleted

I spawned a simfphys vehicle to test out #75 and after confirming the error was present I pressed z and my entire computer promptly crashed and I had to hard reset it, here's the game's crash dump if it helps
crashdump.zip

This is just #17 the linux version is just rather buggy interms of crashing atm.


feat: --append custom dictionary

Closes #27
Allows a user to provide their own .json file to be appended onto the default dictionary via the --append option
e.g. npx case-police --append my-dictionary.json --fix

All good haha, was typing up a close message right as you closed this anyways, we submitted PRs at about the same time so I wasn't sure if I should keep this up or not


Comparator doesn't work first try

Repro steps:

From recipe recommender select two recipes and click compare recipes
error occurs

click "go back to recipe recommender"
Click two recipes to compare
Functions as expected

@smuktevi @azhou5211

We deployed the application with a patch. That should have fixed this bug.


Pip modules (beautiful soup)

beautiful soup 3 won't work we'll need to use soup4. If you could, update the whole proxy-scraper :D so we could use tha latest modules. Thank you!

Hello,
In the code, I used bs4 and I had beautifulsoup4 4.8.1 installed on my OS, I just now change the requirement file to install beautifulsoup4 instead of BeautifulSoup and it works fine, try again, and if you still had a problem tell me.

Hello,
In the code, I used bs4 and I had beautifulsoup4 4.8.1 installed on my OS, I just now change the requirement file to install beautifulsoup4 instead of BeautifulSoup and it works fine, try again, and if you still had a problem tell me.


Doesn't work when click a related image.

When I click a related image the view-image button doesn't update the new image url,
I've read the source code, I know how it works, I tried to fix it but, I didn't find the new related image JSON data.

Closing as this is duplicate of #4. Anyway, for your infromation, it was fixed just ago!


addressgen util

input is a public key encoded in hexary (without 0x prefix). the only option is -hrp, which is set to smtest by default.
go run ./genvm/cmd/addressgen/ 16a4c4050362db7ed31203364900c86bdc181e7ee25c1ed4aa64e3e32a1e0699

wallet: smtest1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqgu79e6d
public key: 0x16a4c4050362db7ed31203364900c86bdc181e7ee25c1ed4aa64e3e32a1e0699
coinbase: smtest1qqqqqqrg6p3vfj9fq7dv8lhej37fgpqxz676hagtlzwz2

@dshulyak are you sure this belongs in go-sm, rather than in smcli? smcli already has a wallet feature that generates keypairs in hex format. It seems like a logical extension to add this there.

yes it is better to have it elsewhere. i think somebody needed it for something


if/then statement runs tcodeunit snippet

Hi,

The if/then statement runs tcodeunit snippet (I wrote if, then wrote some characters from the function name, selected the one I wanted, wrote then, space - and then I want to go to the new line, but the snippet inserts codeunit.

And maybe the same problem with :

hm, will see what I can do about that ... .


settings: Settings modal overflow fix.

This overflow: hidden constraint would make it so that modals
embedded in the sections would have their edges cut off. This fixes
that and doesn’t seem to cause any other regressions.

Automated message from Dropbox CLA bot
@brockwhittaker, it looks like you've already signed the Dropbox CLA. Thanks!

Merged, thanks @brockwhittaker!


feat: meta information

If I use a web wallet, all the pop-ups are opened in the dex tab, not in the wallet tab.
Also, there is a difference in the design in different browsers:
Brave/Chrome:

FF:

Is this related to the testnet connection?

The title of each tab, LGTM.


[Bug report] commentService  do not display

Description
"vuepress": "2.0.0-rc.14"
"@vuepress/plugin-comment": "^2.0.0-rc.37",
content：

  <CommentService />
</template>

problem:
only   footer display
 do not work
Reproduction
https://gitee.com/zyh0525/yh-blog/tree/master
Used Package Manager
yarn
System Info
"vuepress": "2.0.0-rc.14"

I am busy real life now so I do not have  time to fully test this repro on my laptop  In the next coming days,  So my suggestion is you should confirm that you can visit the giscus service in your local network as you are providing a gitee repo and I'm assuming you are in mainland China
If you can't then it's not about the plugin,  I don't think there are actually any bugs  Because at least theme hope is working fine


WIP: basic mTLS support for proxyless gRPC

Match the implementation of proxyless gRPC.
This currently support the 'STRICT' mode and only for regular workloads. DestinationRules and other features
not yet supported.
Most likely gRPC will match the K8S Gateway APIs and a very small subset of Istio-specific alpha/beta APIs.
[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
Pull Request Attributes
Please check any characteristics that apply to this pull request.
[ ] Does not have any user-facing changes. This may include CLI changes, API changes, behavior changes, performance improvements, etc.

@costinm: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

release-notes_istio
6de920c0f15555de85dd155221c1e17afc725c56
link
/test release-notes_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@costinm: The following tests failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

release-notes_istio
6de920c0f15555de85dd155221c1e17afc725c56
link
/test release-notes_istio

gencheck_istio
6de920c0f15555de85dd155221c1e17afc725c56
link
/test gencheck_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@costinm: The following tests failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

release-notes_istio
6de920c0f15555de85dd155221c1e17afc725c56
link
/test release-notes_istio

gencheck_istio
6de920c0f15555de85dd155221c1e17afc725c56
link
/test gencheck_istio

lint_istio
6de920c0f15555de85dd155221c1e17afc725c56
link
/test lint_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

FYI #32697 lays some groundwork for test infra and I think https://github.com/istio/istio/pull/33269 will be necessary as well for integration tests here?

@costinm: The following tests failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

release-notes_istio
6de920c0f15555de85dd155221c1e17afc725c56
link
/test release-notes_istio

gencheck_istio
6de920c0f15555de85dd155221c1e17afc725c56
link
/test gencheck_istio

lint_istio
6de920c0f15555de85dd155221c1e17afc725c56
link
/test lint_istio

integ-telemetry-k8s-tests_istio
6de920c0f15555de85dd155221c1e17afc725c56
link
/test integ-telemetry-k8s-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@stevenctl - please close this after you pick it up into your own PR, it was meant as an example.


test: behaviors-message_on_lock_failure (2024-02-08 01:40:41.110508+00:00)

automatic test cleanup


Support joint scroll manipulation

APIs are provided for external scroll manipulation, but the library doesn't currently handle that use case correctly.

Done


Slow launch speed

I often launch Numara with hotkey, and it takes 1.0 second to launch (on Windows). It feels very slow. For comparison, OpalCalc launches immediately, without delay.
I've tried to disable auto update on launch, but seems no difference. Is is possible to improve startup speed?

Hi @Vanav!
Since Numara is packaged with Electron, it requires a copy of chromium to be loaded at each startup.  This does have performance implications (This is also why the packaged app .exe is 80+ MB).  OpalCalc, I believe is a native Windows app and therefore explains the faster startup on Windows.  The start time also depends on the system.  For example, as shown in below video, Numara starts pretty instantaneously on my Mac.  Also has a content load time of ~280ms.  Things could always be faster of course and I will continue to work towards improving the launch speed.
Thanks for your feedback!
https://github.com/user-attachments/assets/3b16d7bf-4860-49ad-82b3-98402a3dfbbf

Hi @Vanav,
Just released v5.7.2.  I was able to shave off about ~100ms from the launch time based on my system.  May not be very noticeable but please let me know if it feels a bit better.

Thank you for your effort! Still around 1.0 s on Windows for me. I hope it will be possible to improve.


Downgrade Flyway version because of incompatibility with Percona 5.7 in strict mode

We found out that Flyway versions greater than 4.1.x are not compatible with Percona XtraDB Cluster (see open issue on Flyway project: https://github.com/flyway/flyway/issues/1556)
So as a temporary workaround, I'm downgrading to the latest Flyway version that doesn't use the locking mode incompatible with Percona which is 4.0.3

@v1r3n @vikramsingh2104 can you review/merge this one-liner PR?
we found out the latest Flyway version is not compatible with Percona XtraDB Cluster (a MySQL HA solution) in strict mode.
so the only fix currently is to downgrade the Flyway version. I've tested with the downgrade version and didn't have any issues.


Uncertainty Measures in ICF-CycleGAN

Hi Rushil,
Thank you for sharing this interesting work in GitHub. I also have a requirement of using CycleGANs to synthesise simulated data (for a regression problem) matching the distribution of some lab test results and will be citing your work 👍  .
In the presentation of your ICF CycleGAN project by Brian K.Spears, I saw some Bayesian Inference techniques being used to plot some confidence intervals around the predictions (Refer: Slide 25). I like to know what Bayesian Optimization technique is being used here. Could you please add the jupyter notebook or python file demo of these plots with uncertainty measures?

Hi @diliprk thanks for your interest in our work. The confidence intervals shown here do not explicitly use B.I. We were trying to study the confidence in predictions while introducing small perturbations in the latent space of the surrogate. We have developed more sophisticated measures of UQ since, but they are not part of this particular work.


Process gets killed when I run queue prompt using sdxl checkpoints

Hi, I tried to run this model, but always end up with the process killed.
I tried several way for base_model and refiner_model, but the result still the same "Reconnecting..."
And this is the log
model_type EPS
adm 0
making attention of type 'vanilla-xformers' with 512 in_channels
building MemoryEfficientAttnBlock with 512 in_channels...
Working with z of shape (1, 4, 32, 32) = 4096 dimensions.
making attention of type 'vanilla-xformers' with 512 in_channels
building MemoryEfficientAttnBlock with 512 in_channels...
left over keys: dict_keys(['betas', 'alphas_cumprod', 'alphas_cumprod_prev', 'sqrt_alphas_cumprod', 'sqrt_one_minus_alphas_cumprod', 'log_one_minus_alphas_cumprod', 'sqrt_recip_alphas_cumprod', 'sqrt_recipm1_alphas_cumprod', 'posterior_variance', 'posterior_log_variance_clipped', 'posterior_mean_coef1', 'posterior_mean_coef2', 'model_ema.decay', 'model_ema.num_updates', 'cond_stage_model.transformer.text_model.embeddings.position_ids'])
Global Step: 840000
Setting up MemoryEfficientCrossAttention. Query dim is 320, context_dim is None and using 8 heads.
Setting up MemoryEfficientCrossAttention. Query dim is 320, context_dim is 768 and using 8 heads.
Setting up MemoryEfficientCrossAttention. Query dim is 320, context_dim is None and using 8 heads.
Setting up MemoryEfficientCrossAttention. Query dim is 320, context_dim is 768 and using 8 heads.
Setting up MemoryEfficientCrossAttention. Query dim is 640, context_dim is None and using 8 heads.
Setting up MemoryEfficientCrossAttention. Query dim is 640, context_dim is 768 and using 8 heads.
Setting up MemoryEfficientCrossAttention. Query dim is 640, context_dim is None and using 8 heads.
Setting up MemoryEfficientCrossAttention. Query dim is 640, context_dim is 768 and using 8 heads.
Setting up MemoryEfficientCrossAttention. Query dim is 1280, context_dim is None and using 8 heads.
Setting up MemoryEfficientCrossAttention. Query dim is 1280, context_dim is 768 and using 8 heads.
Setting up MemoryEfficientCrossAttention. Query dim is 1280, context_dim is None and using 8 heads.
Setting up MemoryEfficientCrossAttention. Query dim is 1280, context_dim is 768 and using 8 heads.
Setting up MemoryEfficientCrossAttention. Query dim is 1280, context_dim is None and using 8 heads.
Setting up MemoryEfficientCrossAttention. Query dim is 1280, context_dim is 768 and using 8 heads.
Setting up MemoryEfficientCrossAttention. Query dim is 1280, context_dim is None and using 8 heads.
Setting up MemoryEfficientCrossAttention. Query dim is 1280, context_dim is 768 and using 8 heads.
Setting up MemoryEfficientCrossAttention. Query dim is 1280, context_dim is None and using 8 heads.
Setting up MemoryEfficientCrossAttention. Query dim is 1280, context_dim is 768 and using 8 heads.
Setting up MemoryEfficientCrossAttention. Query dim is 1280, context_dim is None and using 8 heads.
Setting up MemoryEfficientCrossAttention. Query dim is 1280, context_dim is 768 and using 8 heads.
Setting up MemoryEfficientCrossAttention. Query dim is 640, context_dim is None and using 8 heads.
Setting up MemoryEfficientCrossAttention. Query dim is 640, context_dim is 768 and using 8 heads.
Setting up MemoryEfficientCrossAttention. Query dim is 640, context_dim is None and using 8 heads.
Setting up MemoryEfficientCrossAttention. Query dim is 640, context_dim is 768 and using 8 heads.
Setting up MemoryEfficientCrossAttention. Query dim is 640, context_dim is None and using 8 heads.
Setting up MemoryEfficientCrossAttention. Query dim is 640, context_dim is 768 and using 8 heads.
Setting up MemoryEfficientCrossAttention. Query dim is 320, context_dim is None and using 8 heads.
Setting up MemoryEfficientCrossAttention. Query dim is 320, context_dim is 768 and using 8 heads.
Setting up MemoryEfficientCrossAttention. Query dim is 320, context_dim is None and using 8 heads.
Setting up MemoryEfficientCrossAttention. Query dim is 320, context_dim is 768 and using 8 heads.
Setting up MemoryEfficientCrossAttention. Query dim is 320, context_dim is None and using 8 heads.
Setting up MemoryEfficientCrossAttention. Query dim is 320, context_dim is 768 and using 8 heads.
model_type EPS
adm 0
[1]    424909 killed     python3 main.py

What could possibly go wrong with this?

This seems to be an issue with the system you are running Comfy on. It's not caused by the workflow or node extension, so I can't really do anything to fix it.

is there a way to debug the issue? It works fine with default model and checkpoint other than sdxl base and sdxl refined..


FirebaseCore/FIRApp.h not found

I am unable to build my app I'm getting FirebaseCore/FIREApp.h not found
I have tried this on a new project as well
my pod file is as follows
  use_frameworks!
  pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
  pod 'React', :path => '../node_modules/react-native', :subspecs => [
    'Core',
    'RCTText',
    'RCTNetwork',
    'RCTWebSocket', # needed for debugging
    # Add any other subspecs you want to use in your project
  ]

  pod 'Firebase/Core'
  pod 'Firebase/Messaging'

the output is
Using Firebase (3.3.0)
Using FirebaseAnalytics (3.2.1)
Using FirebaseInstanceID (1.0.7)
Using FirebaseMessaging (1.1.0)
Using GoogleIPhoneUtilities (1.2.1)
Using GoogleInterchangeUtilities (1.2.1)
Using GoogleSymbolUtilities (1.1.1)
Using GoogleUtilities (1.3.1)
Using React (0.42.3)
Using Yoga (0.42.3.React)

I am running "react-native": "0.42", "react-native-fcm": "^6.2.0"
my AppDelegate.h is
#import <UIKit/UIKit.h>
@import UserNotifications;

@interface AppDelegate : UIResponder <UIApplicationDelegate,UNUserNotificationCenterDelegate>

@end

my AppDelegate.m is
#import "AppDelegate.h"

#import <React/RCTBundleURLProvider.h>
#import <React/RCTRootView.h>

#import "RNFIRMessaging.h"

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{

  NSURL *jsCodeLocation;

  jsCodeLocation = [[RCTBundleURLProvider sharedSettings]<EMAIL_ADDRESS>fallbackResource:nil];

  RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
                                                      moduleName:@"EFGConnect"
                                               initialProperties:nil
                                                   launchOptions:launchOptions];
  rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];

  self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
  UIViewController *rootViewController = [UIViewController new];
  rootViewController.view = rootView;
  self.window.rootViewController = rootViewController;
  [self.window makeKeyAndVisible];

  // ================ FCM =============================

  [FIRApp configure];
  [[UNUserNotificationCenter currentNotificationCenter] setDelegate:self];

  // ================================================

  return YES;
}

- (void)userNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions))completionHandler
{
  [RNFIRMessaging willPresentNotification:notification withCompletionHandler:completionHandler];
}

- (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void (^)())completionHandler
{
  [RNFIRMessaging didReceiveNotificationResponse:response withCompletionHandler:completionHandler];
}

//You can skip this method if you don't want to use local notification
-(void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification {
  [RNFIRMessaging didReceiveLocalNotification:notification];
}

- (void)application:(UIApplication *)application didReceiveRemoteNotification:(nonnull NSDictionary *)userInfo fetchCompletionHandler:(nonnull void (^)(UIBackgroundFetchResult))completionHandler{
  [RNFIRMessaging didReceiveRemoteNotification:userInfo fetchCompletionHandler:completionHandler];
}

@end

Similar to #230
pod updateand pod update repoand everything should be fine

I managed to get the project working by not using pods and including the framework manually as it is done in the Example SimpleProject

i am facing same issue using Cocoapods approach

Due to this me constraints I had to move on so I didn't validate if the
repo update was a solution for my issue
On Mon, Apr 10, 2017 at 11:23 AM Vijay Suryawanshi<EMAIL_ADDRESS>wrote:

i am facing same issue using Cocoapods approach
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/evollu/react-native-fcm/issues/377#issuecomment-292895977,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABoSD8Ckm7h5wHqRWGpzOrBF6HmTp9bqks5rufUsgaJpZM4M4AHO
.

--
Amr Draz
Chief Technical Officer at DREIDEV
Mobile: (+2)<PHONE_NUMBER>2)   |   *LinkedIn: *[Profile
http://eg.linkedin.com/in/amrdraz]

@amrdraz  manual approach also didn't worked for me :(

@geekvijay did you try setting up and running the example app to see if it works for you?

And when you say works for you you are referring to the build error at the top of the issue right?
just checking
to integrate the manual solution what I did was
clone this repo
copy the frameworks folder into my project
go to my project target -> general -> linked frameworks and Libraries
and added all the .framework files and libz.tbd

I hit a few similar issues configuring the module. Here is the approach I took that worked great for me: https://github.com/evollu/react-native-fcm/issues/380

#380 doesn't help me, i've already this problem, is it possible to fix it to make it works with classic setup ?

Also getting this issue

Okay I removed inherit! :search_paths and it works.  ¯_(ツ)_/¯

seems it is fixed. updated readme with solution

@amrdraz, there is no framework folder in Examples/simple-fcm-client and inside de Xcode project the files in framework folder can't be found. How did you do that?

@ifalldev example project has been changed to rely on cocoapod because Firebase didn't project framework packages for v4.0

@bulby97
This worked for me ...
Newer versions may require a different set of commands thought
pod install --repo-update```

@bulby97 thanks a lot
pod update
pod install --repo-update

did the trick for me

Getting this error " 'FirebaseCore/FIRApp.h' file not found " even after running pod update and pod repo update. Any solutions??

btw my react native version is 0.44

@uditchandhoke1912 got same problem, running old version react 0.44
you got it fixed?

@jraack  yes, initially I ran "react-native link react-native-fcm" for linking npm package and it showed me that the package is linked but it was not linking properly due to some reason and not adding "pod Firebase/Messaging" in podFile. So, I configured fcm manually by following this: https://github.com/evollu/react-native-fcm.

@bulby97 Thanks...!
This worked for me...!
pod update
pod install --repo-update


Added code sample for invoking sub-journey

#ATCP

@bolt-io : Thanks for your contribution! The author(s) have been notified to review your proposed change.


possible cure for sublime input woes!

don't intercept text input while in insert/replace mode
track cursor state
track commands
track modifications
after any modification that's not a command, diff based on selection changes:

delete will move selection left
number of selections can decrease, this means text for a selection in the middle was deleted

could solve this by putting a hidden sublime.Region on each cursor and tracking where it ends up, so we can ID unique cursors before/after

then, inside the on_modified, issue input to vim based on diff
what about people who map jj, kk, jk, kj to esc? need a way for vim to reject inputs. deleting could cause undo issues, so I should just issue an undo command.
what about multiple cursors?
this means popups like autocomplete will just show up, and sublime can even steal tab behavior
should be drop-in replacement for existing input, and could be toggled for people who would rather let vim deal with everything

maybe could even do the sublime input async as long as we knew it wasn't vim keys, because I think sublime and vim in insert mode generally behave the same

I map kj to esc and it's driving me crazy not having that. This is the only thread that mentions it. Anything that would let me do that again would be amazing!

That can be fixed another way - by removing the insert heuristics and merging the async branch.

On Jun 14, 2017, at 9:26 AM, ldebruyn<EMAIL_ADDRESS>wrote:
I map kj to esc and it's driving me crazy not having that. This is the only thread that mentions it. Anything that would let me do that again would be amazing!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Insert mode remappings are fixed in 0.9.11


Application updates only once

The promise was that once installed, the app will always keep itself current and keep on updating whenever there is a newer version detected at the source location. This does not happen but once. When installed, the app updates itself to the next version that is available at the source location and stops doing any updates after that. This issue has been long standing since the release in April but so far nobody has informed as to when, if at all, this will be fixed. With this functionality broken, the whole use case of side loading an app is pretty much invalid.

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

ID: 3eebf940-9282-41a2-f236-55984ff76aeb
Version Independent ID: a1b3c572-c6ba-eff7-637d-cbcb20801c57
Content: Create an App Installer file with Visual Studio - UWP app developer
Content Source: windows-apps-src/packaging/create-appinstallerfile-vs.md
Product: windows
GitHub Login: @ridomin
Microsoft Alias: rmpablos

Hi, I've not been able to reproduce, can you provide additional details?
Which OS? Which SDK are you targeting? Which Update Policy are you using? Any specifics about your app?

Thanks for the kind and prompt reply my friend. Here are the particulars you requested.
Windows Specification
Edition: windows 10Pro.
Version: 1803
OS build: 17134.345
.Net framework version: 4.7
VS version: 15.7.1, Professional 2017
Windows 10 SDK (10.0.16299.0) for UWP

Rido my friend,
Tried sending you the files as a zip package at rmaplos dot Microsoft dot com but the email got rejected by the host 🙁

From: Ricardo Minguez (Rido<EMAIL_ADDRESS>Sent: Thursday, October 11, 2018 9:27 PM
To: MicrosoftDocs/windows-uwp
Cc: taaoo75; Mention
Subject: Re: [MicrosoftDocs/windows-uwp] Application updates only once (#1066)
@taaoo75https://github.com/taaoo75 Visual Studio generates the app installer file when Target Platform Min Version is 10.0.17134.0 or greater, I hope you have a most recent SDK version.
Also, will be good to know which kind of app (C#, C++, JS UWP or Desktop Bridge), and where are you hosting your files (HTTP, Shared Folder).
If you could share the original appinstaller file as well the updated one will help to understand the issue. If you want do not want to share it here you can contact me at rmaplos at microsoft dot com.
Thanks,
Rido
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/windows-uwp/issues/1066#issuecomment-429173630, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Ap5mQcEngVwj8RtyAueOcQ0rzcuxmwdaks5uj-_ogaJpZM4XL8nR.

@taaoo75  sorry, there is a typo in the email (corrected). It should be rmpablos

This is a known bug in 1803, it has been fixed in the October 2018 update aka 1809

@rido-min From my experience, the bug is still present.

If you have an app & appinstaller file that repro it - can you point me to them?

@nonasi I tried it out again, and it seems that it works now. The first time the only the client computer was updated to 1809, but now that I have also updated my dev machine, it seems to work.

I'm not sure if I'm seeing the same "only once" bug as others, but here's my experience:
-I copied the files over to the target machine (running 1809 LTSC) and installed, with the update setting on "check on boot"
-I put a new version on the web server, and it updated properly
-I put another new version on the web server (with nothing changed but the version), and it failed to update
-I tried to update manually by navigating to the web server page and clicking install, and got "App installation failed with error message: SQLITE_CONSTRAINT_UNIQUE (0x87af0813)"
-I then removed the app and tried reinstalling, both locally and from the web server location, and continue to get that message
-If I run Add-AppxPackage manually it works, but I continue to get the same error now any time I use the app installer.
I did have to download the App Installer appx from the store and add it to the machine, since it's LTSC and doesn't have the store available. Is there any plan for supporting this whole framework on LTSC in a cleaner way? It would be a great fit for kiosk apps like ours, where stability is important but we still want to be able to push updates occasionally.

I have created a nuget package to have more control over the update process: https://github.com/dwrandaz/AutoUpdateComponent


Added topic type metadata

Added ms.topic metadata so this topic properly shows up in reporting as a get-started-article.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

entity-framework/core/get-started/uwp/getting-started.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Thanks @wadepickett!


AWS orgs

I would like to know if there is a way to obtain the IPs of several aws organizations, i.e. several accounts at the same time.

That's not supported in this tool and isn't likely to be - I've mostly stopped development on it. I would recommend running it against one account at a time, or using a more advanced tool like cloudmapper which does have organization support: https://github.com/duo-labs/cloudmapper


Not able to copy from text exercises

Describe the bug
Since the primary usage of the mouse is clicking on a text segment in order to place a feedback it's no longer possible to mark text.
This results in not beeing able to copy from the submission to check the length of the submission or check wether something's copied. This results in having to retype all the text you would usually copy.
To Reproduce

Assess one text submission
Try to mark text

Expected behavior
Differ between trying to select (Mouse hold) and clicking for a feedback box.
Screenshots
Best to try it yourself.
Environment

 - OS: Windows 10 Pro
 - Browser: Chrome v81.0.4044.129

It is not possible to copy the text when defining manual text blocks, also the length is now displayed.
Therefore closing this issue.


How to add a desktop shortcut (or direct access) on windows installer

I need to add a desktop shortcut when installing my application, is there any option or workaround to do this?

I need something like that, thank you.

Can somebody answer if this is already possible or in plans to be implemented?

it seems that you can set this in a property as true:
compose.desktop {     application {         nativeDistributions {                        windows {                 shortcut = true             }         }     } }

There is something weird about the shortcut property, it creates the shortcut automatically without giving the option to the user to select if he wants a shortcut or not.

Any news about this?

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.


Upgrading from 2.3.0 to 2.4.4 failed with HTTP502

My actions before raising this issue

[Yes ] Read/searched the docs
[ Yes] Searched past issues

I would like to upgrade CVAT from 2.3 to 2.4.3 for Segment Anything Model
I am currently using

Server 2.3
Core 7.0.0
Canvas 2.15.3
UI 1.42.0

Hosted on

Ubuntu 20.04 Server
Docker, non-clustered

The server was deployed with
#!/bin/bash
sudo -E docker-compose \
  -f docker-compose.yml \
  -f docker-compose.https.yml \
  -f components/analytics/docker-compose.analytics.yml \
  -f components/serverless/docker-compose.serverless.yml \
  up -d

and torn down with ... for upgrade
#!/bin/bash
sudo -E docker-compose \
  -f docker-compose.yml \
  -f docker-compose.https.yml \
  -f components/analytics/docker-compose.analytics.yml \
  -f components/serverless/docker-compose.serverless.yml \
  down

Docker volumes were preserved
I cloned a new repo from CVAT
git clone https://github.com/opencv/cvat.git
cd cvat
git checkout v2.4.4

Then started the containers
export CVAT_VERSION=v2.4.4

sudo -E docker-compose \
  -f docker-compose.yml \
  -f docker-compose.https.yml \
  -f components/serverless/docker-compose.serverless.yml \
  up -d --build

CVAT either

Throws 502 in browser console
Says "please follow upgrade guide"

Also followed this step https://opencv.github.io/cvat/docs/administration/advanced/upgrade_guide/ for PGSQL DB dump & import, did not work
Steps to Reproduce (for bugs)
Refer to above
Expected Behaviour

CVAT would be able to re-use the volumes
All existing data will be preserved

Current Behaviour
CVAT either

Throws 502 in browser console
Says "please follow upgrade guide"

Possible Solution

Context

Your Environment

Git hash commit (git log -1):
Docker version docker version (e.g. Docker 17.0.05):
Are you using Docker Swarm or Kubernetes?
Operating System and version (e.g. Linux, Windows, MacOS):
Code example or link to GitHub repo or gist to reproduce problem:
Other diagnostic information / logs:
Logs from `cvat` container

Please provide logs from cvat_server and cvat_db containers


Fix issue #579

I applied the patch from https://github.com/trask/glowroot/commits/servlet-request-body-capture to current code and I made it compile (not sure I did it well :innocent:).
See https://github.com/glowroot/glowroot/issues/579#issuecomment-510267204.

Quickly tested, not sure it does what I expected :thinking: :

http://localhost:4000/config/json contains:
    {
      "id": "servlet",
      "properties": {
        "sessionUserAttribute": "",
        "captureSessionAttributes": [ ],
        "captureRequestParameters": [
          "*"
        ],
        "maskRequestParameters": [
          "*password*"
        ],
        "captureRequestHeaders": [
          "*"
        ],
        "captureResponseHeaders": [
          "*"
        ],
        "captureRequestBodyNumChars": 10000.0,
        "captureRequestBodyNumBytes": 10000.0,
        "traceErrorOn4xxResponseCode": false,
        "captureRequestRemoteAddr": false,
        "captureRequestRemoteHostname": false,
        "captureRequestRemotePort": false,
        "captureRequestLocalAddr": false,
        "captureRequestLocalHostname": false,
        "captureRequestLocalPort": false,
        "captureRequestServerHostname": false,
        "captureRequestServerPort": false
      }
    },

For information, it looks like:


add support for IOT2000

The Siemens device "SIMATIC IOT2000" is identical to the Intel Galileo
Gen 2 regarding the gpios. So if the board name is "SIMATIC IOT2000"
treat the board as if it is Galileo Gen 2.
Signed-off-by: Sascha Weisenberger<EMAIL_ADDRESS>

Merged, thanks alot


Garner's Algorithm in Java

@SKAUL05 @hushee69 @iamrajiv
Garner's Algorithm in Java
Let p be the product of the first 1000 primes. From calculations we can see that p has around 3000 digits.
Any number a less than p can be represented as an array a1,…,ak, where ai  = a (mod pi). But to do this we obviously need to know how to get back the number a from its representation.
Garner's Algorithm can be used for this purpose. We seek a representation on the form
a=x1 + x2p1 + x3p1p2 +…+ xkp1…pk−1
I want to implement this algorithm in Java.

@iamrajiv @SKAUL05 @hushee69 @mechiragjain
I would like to work on this.
please assign this task to me..
thank you..
And please also add DWoC label to this...

@Khimit  assigned


[Bug]: Anthropic System Prompts are not correctly configured

Bug Description
llm.system_prompt is not correctly configured for the Anthropic models
Version
0.10.31
Steps to Reproduce
from llama_index.llms.anthropic import Anthropic

llm = Anthropic(model="claude-3-opus-20240229")

llm.system_prompt = "you always respond with one word: banana. no matter what i say, respond with `banana`. <example>User Query: 'Paul Graham is the ceo of what company?' Your Correct Response: banana</example>"

resp = llm.complete("Paul Graham is ")

print(resp)

this should respond with "banana", instead opus is telling me about paul graham.
Relevant Logs/Tracbacks
Paul Graham is a well-known entrepreneur, programmer, venture capitalist, and essayist. He is best known for co-founding Viaweb, one of the first web application companies, which was later sold to Yahoo! in 1998 and became Yahoo! Store.

After the sale of Viaweb, Graham and his wife Jessica Livingston co-founded Y Combinator in 2005, a highly successful startup accelerator that has helped launch over 2,000 companies, including notable ones like Airbnb, Dropbox, and Reddit.

As an essayist, Graham has written extensively on various topics related to startups, programming, and technology. His essays have been influential in the startup community and are widely read by entrepreneurs and technologists.

Some key points about Paul Graham:

1. He studied philosophy at Cornell University and received a Ph.D. in computer science from Harvard University.

2. Graham is a strong advocate for using Lisp programming language and has written several books on the subject, including "On Lisp" and "ANSI Common Lisp."

3. He is known for his clear writing style and insightful essays on entrepreneurship, often drawing from his own experiences as a founder and investor.

4. In addition to his work with Y Combinator, Graham is a partner at venture capital firm Y Combinator Continuity Fund, which focuses on later-stage investments.

5. He has been a vocal critic of the traditional education system and has argued that it does not adequately prepare students for the real world, particularly in the realm of entrepreneurship.

Ah, I think this is the case for any llm -- its technically only applied to llm.predict/apredict/stream/astream 👀

The other way is to use .chat(), and properly add the system prompt as a message
llm.chat([ChatMessage(role="system", content="..."), ChatMessage(role="user", content="...")])

Ah, I think this is the case for any llm -- its technically only applied to llm.predict/apredict/stream/astream 👀

yeah now i'm seeing that gpt-4 is also not doing the "banana" trick. what happened to llm.system_prompt?

The other way is to use .chat(), and properly add the system prompt as a message
llm.chat([ChatMessage(role="system", content="..."), ChatMessage(role="user", content="...")])

how do i apply that to a query_engine then?
i swear the system prompt worked like this a few months ago:
llm = OpenAI(model=llmChoice, temperature=0.25)

llm.system_prompt = system_prompt
index = VectorStoreIndex.from_vector_store(
    vector_store=self.astra_db_store, storage_context=self.storage_context, llm=llm
)

# Create the query engine
query_engine = index.as_query_engine(llm=llm, similarity_top_k=3)

but now it seems that it isn't getting passed into the query engine...

for example, i can try to insert the banana test into the query engine, but even though it is a valid parameter, it doesn't work there either:
query_engine = index.as_query_engine(llm=llm, similarity_top_k=3, system_prompt=debug_system_prompt)

ok, i do think there is something broken about anthropic. i searched some more, and found this example: https://github.com/run-llama/llama_index/blob/fcf19139b10c5ee3f678c0663f4753cc4693f186/docs/docs/community/faq/llms.md?plain=1#L52
if you directly set llm = OpenAI(system_prompt="Always respond with banana."), then a query_engine using the llm passes the "banana test"....but the same is not true for llm = Anthropic(system_prompt="Always respond with banana.")
bigger picture - llamaindex users should be able to set the system prompt for any llm, and expect it to get passed into any downstream workflow using that llm. this is way too confusing for such a fundamental part of any workflow...

in anthropic messages, there is no role: system, the system prompt is now set like this:
https://docs.anthropic.com/claude/reference/migrating-from-text-completions-to-messages#system-prompt
anthropic.Anthropic().beta.messages.create(
    model="claude-3-opus-20240229",
    max_tokens=1024,
    system="Today is January 1, 2024.", # <-- system prompt
    messages=[
        {"role": "user", "content": "Hello, Claude"}
    ]
)

.chat() appears to be configured correctly: https://github.com/run-llama/llama_index/blob/7c48797a04eb3b5f1bc2863632aff653a0aae821/llama-index-integrations/llms/llama-index-llms-anthropic/llama_index/llms/anthropic/base.py#L211C1-L216C10
so i'm at a loss for why it's not working in query_engine, probably because query_engine doesn't use .chat()?

@rawwerks It works fine for me with openai, but not anthropic
>>> from llama_index.core import Document, VectorStoreIndex
>>> from llama_index.llms.openai import OpenAI
>>> from llama_index.llms.anthropic import Anthropic
>>> index = VectorStoreIndex.from_documents([Document.example()])
>>> openai_engine = index.as_query_engine(llm=OpenAI(model="gpt-4-turbo", system_prompt="Talk like a pirate in every response."))
>>> anthropic_engine = index.as_query_engine(llm=Anthropic(model='claude-3-sonnet-20240229', system_prompt="Talk like a pirate in every response."))
>>> str(openai_engine.query("Tell me a fact about LLMs"))
"Ahoy! LLMs, or Large Language Models, be pre-trained on vast oceans of publicly available data, makin' 'em mighty tools for knowledge generation and reasoning."
>>> str(anthropic_engine.query("Tell me a fact about LLMs"))
'LLMs (Large Language Models) are pre-trained on large amounts of publicly available data. This allows them to have a broad knowledge base and capabilities for knowledge generation and reasoning tasks.'
>>>

I think the issue is anthropic has a method to pull the system role out of the input messages, but the default RAG templates already have a system message. So I have a feeling its getting overridden by the system prompt in the RAG template
https://github.com/run-llama/llama_index/blob/71ed6f1f2c65c65b57742923700193cc5435db6e/llama-index-integrations/llms/llama-index-llms-anthropic/llama_index/llms/anthropic/utils.py#L70

Yup, thats exactly the issue, just fixed it


"Authorization required, but no authorization protocol specified" error printed multiple times if running from chroot

General description of bug:
If running fastfetch from chroot, I'm getting the following error printed multiple times: Authorization required, but no authorization protocol specified.

What happened:

What should happen: The error isn't printed.
Did it work in an older version: 1.12.2 is the first one I'm using.
Where did you get the binary: Gentoo official overlay - app-misc/fastfetch
Does this issue still occurs in the latest dev build? yes

Often helpful information:
Output of fastfetch --version:
fastfetch 1.12.2 (x86_64)

The content of the configuration file you use (if any)
--structure Title:Separator:OS:Kernel:Uptime:Packages:Shell:Display:DE:WM:Terminal:CPU:GPU:Memory:Battery:PowerAdapter:Break:Colors
--color blue
--logo-color-1 blue
--logo-color-2 blue
--separator-string "━"
--percent-type 3

Output of fastfetch --list-features:
threads
vulkan
xcb-randr
xcb
x11
dbus
egl
glx
libpulse

I don't know how to reproduce this issue. Quick google reads

those programs require X windows features but there's no configuration available in the root account for that to happen.

https://www.reddit.com/r/linux4noobs/comments/lu1plx/hi_i_get_this_authorization_required_but_no/
So you were running x11, and the environment you chrooted had no necessory configuration for xsessions.
I don't think I want to support this situation. What's the point of running fastfetch from chroot?

How many *fetch programs did you install :laughing:
I assume that they didn't get the same error because they didn't try to connect x11 server. Do they support refresh rate detection?
I can add a flag to force display detection to use /sys/class/drm/

$ ./fastfetch --ds-force-drm -s display --pipe --thread false
Display (eDP-1): 2560x1440

$ ./fastfetch -s display --pipe --thread false
Display (eDP-1): 2560x1440 @ 240Hz (as 1280x720)

Try
NO_DEBUG=1 ./fastfetch --ds-force-drm -s display --pipe --thread false --show-errors

What does ls -l /sys/class/drm print?

It seems that the DRM kernel module does not work properly.

Okey. The error messages should be removed in the latest dev branch ( without --ds-force-drm ). Please have a try

Please make sure you are building fastfetch in Release mode

Not sure what "release mode" is, I compiled fastfetch following the README instructions:
mkdir -p build
cd build
cmake ..
cmake --build . --target fastfetch --target flashfetch

I guess it's fine? I can see aa49877 from the dev branch in git log.
Without any config file

From main system:

NO_DEBUG=1 ./fastfetch -s display --pipe --thread false --show-errors
Display (DP-0): 2560x1440 @ 165Hz

From chroot:

NO_DEBUG=1 ./fastfetch -s display --pipe --thread false --show-errors
Display: Couldn't detect display

Also from chroot and with my config file:
# ~/.config/fastfetch/config.conf
--structure Title:Separator:OS:Kernel:Uptime:Packages:Shell:Display:DE:WM:Terminal:CPU:GPU:Memory:Battery:PowerAdapter:Break:Colors
--separator-string "━"
--percent-type 3

Only the following elements are printed:

Shell
Terminal
CPU
GPU
Memory
Colors

The following elements aren't printed:

Logo
Title
Separator
OS
Kernel
Uptime
Packages
Display
DE/WM (normal I guess, isn't printed with 1.12.2 either)

On host (with the same config), Packages is missing too.
With 1.12.2 binary, these elements are printed correctly (albeit the error initially reported of course)

Oh, I think that's because DisplayServer is run in a separated thread, and swallowed the output from normal module.
Please try fastfetch --thread false

I have to revert the resent change. And since the error message is printed directly in X11 libs, I don't think I have any better ideas to fix it.

You could just use --ds-force-drm in chroot, and this flag will skip the X11 connection.
I'm closing this
CC @LinusDierheimer

Albafetch

This is like 300% unrelated but @xfzv how did you even find out about albafetch's existence 😂
It was never meant to be used, but I'm glad it's usable ahah

@alba4k I just found this. Great project! I compared the performance of albafetch with fastfetch in Fedora Linux, and found that albafetch costs about 400 ms while fastfetch costs about 34ms
$ hyperfine -w3 ./albafetch ~/fastfetch/build/fastfetch
Benchmark 1: ./albafetch
  Time (mean ± σ):     405.4 ms ±   2.9 ms    [User: 373.9 ms, System: 32.2 ms]
  Range (min … max):   399.6 ms … 409.8 ms    10 runs

Benchmark 2: /home/carter/fastfetch/build/fastfetch
  Time (mean ± σ):      34.3 ms ±   1.7 ms    [User: 21.1 ms, System: 12.6 ms]
  Range (min … max):    31.2 ms …  39.2 ms    85 runs

Summary
  /home/carter/fastfetch/build/fastfetch ran
   11.82 ± 0.60 times faster than ./albafetch

debug shows that the bottleneck comes from packages. albafetch uses raw rpm command which is very slow. I suggest that you should query the sqlite database used by rpm directly. The following patch does the trick:
diff --git a/src/info.c b/src/info.c
index 8d11ec9..28def2e 100644
--- a/src/info.c
+++ b/src/info.c
@@ -424,7 +424,7 @@ int packages(char *dest) {
         path[0] = 0;
         if(getenv("PREFIX"))
             strncpy(path, getenv("PREFIX"), 255);
-        strncat(path, "/bin/rpm", 256-strlen(path));
+        strncat(path, "/var/lib/rpm/rpmdb.sqlite", 256-strlen(path));
         if(pkg_rpm && !access(path, F_OK)) {
             if(pipe(pipes))
                 return 1;
@@ -433,7 +433,7 @@ int packages(char *dest) {
                 close(pipes[0]);
                 dup2(pipes[1], STDOUT_FILENO);

-                execlp("sh", "sh", "-c", "rpm -qa 2>/dev/null | wc -l", NULL);
+                execlp("sh", "sh", "-c", "sqlite3 /var/lib/rpm/rpmdb.sqlite 'SELECT count(*) FROM Packages' 2>/dev/null", NULL);
             }
             wait(0);
             close(pipes[1]);

albafetch costs about 27ms with the patch applied, which is even faster than fastfetch, really impressive!

I also compared the performance of albafetch with fastfetch in macOS, and found that albafetch costs about 285 ms while fastfetch costs about 60ms
$ hyperfine -w3 ./albafetch '~/fastfetch/build/fastfetch -c none'
Benchmark 1: ./albafetch
  Time (mean ± σ):     285.7 ms ±  23.1 ms    [User: 54.0 ms, System: 84.4 ms]
  Range (min … max):   261.3 ms … 345.7 ms    10 runs

Benchmark 2: ~/fastfetch/build/fastfetch -c none
  Time (mean ± σ):      59.3 ms ±   2.6 ms    [User: 11.1 ms, System: 10.2 ms]
  Range (min … max):    54.7 ms …  64.0 ms    45 runs

Summary
  ~/fastfetch/build/fastfetch -c none ran
    4.81 ± 0.44 times faster than ./albafetch

debug shows that the bottleneck comes from gpu. albafetch uses system_profiler for Apple Silicon which is very slow. However resolving this issue requires a lot more code changes. You may refer to how fastfetch did it if you want to fix it.

Oh, thanks so much @CarterLi ! well, maybe open a pr if you want to get some credit for that!
As for it being faster, well, it just has less features so it's pretty much expected
On macOS, system-profiler was never meant to be a long-term solution, it instead mainly started as a way to have it working on apple silicon too, so I should look into it, eventually


[BUG] Enchanting Bolts without required runes

Progress bar starts when attempting to enchant bolts without the required runes
Screenshots

Change has been made to correct this. It is now merged in Runelite


Refactor: Using informal protocol instead of category override

We can avoid overriding category methods by using an informal protocol with our NSManagedObject subclasses.
Why do we care about overriding category methods?

[According to Apple] (https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/CustomizingExistingClasses/CustomizingExistingClasses.html#//apple_ref/doc/uid/TP40011210-CH6-SW4), "If the name of a method declared in a category is the same as a method in the original class, or a method in another category on the same class (or even a superclass), the behavior is undefined as to which method implementation is used at runtime."
While this seems to work for now, we never want the super class' implementation to be called instead of the implementation in the subclass.
[In the past Apple has directly discouraged this.] (http://stackoverflow.com/questions/5272451/overriding-methods-using-categories-in-objective-c)
This is [explicitly] (https://developer.apple.com/library/ios/documentation/Swift/Conceptual/BuildingCocoaApps/InteractingWithObjective-CAPIs.html#//apple_ref/doc/uid/TP40014216-CH4-XID_32) not supported in Swift: "You cannot use extensions to override existing methods or properties on Objective-C types."

More importantly, how will this affect my existing projects?
Short answer: it won't. You do not need to change anything in your existing projects that make use of overriding methods like rzv_primaryKey. You do not need to #import "RZVinylRecord.h" or declare an interface like:
#import "RZVinylRecord.h"
#import "RZVinylRip.h"

@interface RZPerson () <RZVinylRecord, RZVinylRip>

@end

But you can if you want.
What if a subclass does not implement one of the protocol methods?
All safety checks are encapsulated in the private methods like + (NSString *)rzv_safe_primaryKey;
These safety methods check if self responds to selector, and if so calls it, otherwise returning a default value (just like before). Every protocol method has a corresponding safety method to be exclusively used internally.
The mapping is as follows:
+ (RZCoreDataStack *)rzv_safe_coreDataStack; -> + (RZCoreDataStack *)rzv_coreDataStack;
+ (NSString *)rzv_safe_primaryKey; -> + (NSString *)rzv_primaryKey;
+ (NSPredicate *)rzv_safe_stalenessPredicate; ->  (NSPredicate *)rzv_stalenessPredicate;

And for RZImport:
+ (NSString *)rzv_safe_externalPrimaryKey; -> + (NSString *)rzv_externalPrimaryKey;
+ (BOOL)rzv_safe_shouldAlwaysCreateNewObjectOnImport; -> + (BOOL)rzv_shouldAlwaysCreateNewObjectOnImport;

Why Vinyl Rip?
[Vinyl ripping] (http://www.digitaltrends.com/home-theater/digitizing-your-record-collection/) is the process of digitizing your vinyl records into audio files. Feel free to rename it :)
By the way, please let me know if having Swift support is not of interest in general.

Thanks Connor, that's an excellent catch - I had never considered that this would be an issue. I guess I didn't realize that subclasses implementing overrides via categories were at risk for the method implementation race. I'll leave it to the RZ team to review, but this is a nice workaround.

I am strongly in favor of this change. Regardless of the risk and implications for Swift, adopting an informal protocol feels closer to canonical Cocoa. Thank you, @cmds4410.

Hi @cmds4410, thanks for this PR. Question for you: have you actually seen this happen in actual practice? It seems to me that we're not trying to override a category method in a category. We're not overriding a category method in the same class either. We're overriding a category method in a subclass. I'm not sure whether to read that as a problem based on the text below.
You solution actually seems quite nice and clean if we do have to do this. But is this absolutely necessary?

Hey thanks for reviewing @mgorbach (+ @ndonald2, and @jkaufman), and sorry for the delay in my response. What we are doing here, as the text above states, is declaring a method on a category of a subclass which is overrides a method declared in a category on the superclass. Unless I'm misreading the quote, this is explicitly undefined behavior. I have seen this in Swift, and it is definitely not guaranteed to work in the future. However I think it is equally important to consider that a protocol is more semantically accurate for this use case, and therefore makes it much easier for the consumer of this library to digest (IMO). Specifically, a protocol indicates precisely which methods should be implemented, whereas currently we rely on a pragma mark in the documentation to separate those which are intended to be overridden from those that are not. In this vein, it is perfectly fine to keep the more private implementations as categories, since they are not intended to be overridden by a subclass. As @jkaufman said, a protocol is closer to canonical cocoa.

@mgorbach Any objections to merging? While this may function in Objective-C, it is discouraged and even documented to not work in Swift.

Yes, I think we should merge this. Unless anyone objects, I'll merge and release tomorrow.

:clap:

In case it wasn't obvious, I definitely approve. But to @jkaufman's point above - very little of the RZImport stuff will actually work in Swift since (last I checked) its runtime reflection was nowhere near as complete/documented as Objective-C's. So I guess it could work if you wrote your models in ObjC and bridged to swift... maybe.

Thanks @ndonald2! You're right about swift, and I can make another PR to the README that explains how to do it. Essentially you need to tag your NSManagedObject subclasses with @objc(ClassName) and use Objective-C types for all of your properties (NSString instead of String, etc). You don't need to actually write it in objc, just make it compile that way. Obviously that means you lose the value types advantages you get with Swift structs, but honestly they're not that useful in core data yet...hoping they make some Swift-targeted improvements this year.

And thanks again for reviewing @mgorbach

Hey @cmds4410 -- any chance you can still aggravate this issue, and see if it's still an issue without this fix? The implementation is not very self evident, and having all these optional rzv_ methods is a bit confusing.
I'm hoping that this was an issue with an early version of swift. This exact behavior is done in many places in UIKit, where over-riding UIViewController categories in subclasses (or in extensions in the swift world) is common place.
The first source you specify does seem a bit concerning, but is a bit hard to decipher given it's run-on nature. I could see the behavior of calling super being undefined with subclass categories, but we've been doing this exact thing all over in objective-c world and not seeing an issue. The second source You cannot use extensions to override existing methods or properties on Objective-C types just seems like a documentation bug at this point since it's considered best practice to override things in extensions.
Not a huge deal, just hoping to clarify what was going on.

Hey @KingOfBrian, I totally see what you're saying about the ambiguity added by introducing rzv_ versions of all these methods. I can't say this with any authority, but you and @ndonald2 do seem to be correct that in Objective-C overriding methods in subclass categories doesn't run much or any risk in the method implementation race. That being said, the second source I cited was from the Swift documentation, and it remains there. I can do some more testing to see if this is still a problem in Swift 2, but even then the conclusion would be anecdotal and still in defiance of the docs.
FWIW I have RZVinyl working in my 100% Swift project, and I'd be happy to share how that works or even make a PR to add an addendum to the README.