--input-file or similar

Any program reading files as input should support deciding where that input comes from. Currently, tv seems to function by always opening and reading from stdin. This is inefficient and unconventional, and promoted UUOC.
Compare the current method:
$ cat file | tv

                v write 1         v write 2
file --> (cat) --> pipe --> (tv) --> stdout
      ^ read 1           ^ read 2

Reads:  2
Writes: 2

to a better method:
$ tv -i file

               v write 1
file --> (tv) --> stdout
      ^ read 1

Reads:  1
Writes: 1

It's less memory intensive, it's quicker on older machines, and it follows convention.
Alternatively, you can still do this on the shell without abusing a concatenation program as a file-reading one. The shell itself is capable of redirecting stdin to be the file itself. It would be at least better for the examples to show the "proper", or at least, better way of reading a file into a program:
$ tv < file

              v write 1
file --> (tv) --> stdout
     ^ read 1

Reads:  1
Writes: 1

Instead of giving you a pipe or the console input buffer, the shell now gives you the file's file descriptor when you ask for stdin. Readability and the clean "flow" of information through a pipeline isn't an issue here as tv is definitely not meant to be piped into other programs, though you could if you wanted to.
TL;DR: Reading from stdin promotes UUOC which makes using the program more intensive, especially noticeably for large files on older machines. Allowing the user to choose the input file, or at least promoting the usage of redirects over cat can speed up reading by however long it takes cat to read and write your file, and it's less memory intensive.
Stop cat abuse, and stop promoting cat abuse!

I have never heard of "UUOC" what is that?

Useless use of cat, it's when you use cat when you really don't need to.
There are definitely situations where you'd want to use cat to spool a file in though, it's a lot neater to write cat file | p1 | p2 | p3 > out than p1 < file | p2 | p3 > out since in one you have a very clear left-to-right flow of data. It's just not necessary here.

I wonder if there should be flag like JuhaJGamer suggested. I think passing filename like in cat would be more intuitive.
$ tv file
Insted of
$ tv -i file


Java-20326: Changes made for replacing strSubstitutor with stringSubs…

…titutor

test this again

retest this please


Provide a default for match.

Docker complains that match is undefined. This causes an error that breaks the function.
Setting the default value to be an empty array will solve this issue, and then version is able to be undefined and fall into the switch's default case.

Which Dockerfile are you basing this off of?  This Linux hack uses lsb_release -a which will only work on Ubuntu.  (Just curious.)

We're using Debian. I'm not sure the reason. That explains why the lsb_release isn't working.
Sent quickly from my iPhone. I apologize for any misspellings or auto-corrects.

On Sep 24, 2015, at 8:14 PM, Dave King<EMAIL_ADDRESS>wrote:
Which Dockerfile are you basing this off of? This Linux hack uses lsb_release -a which will only work on Ubuntu. (Just curious.)
—
Reply to this email directly or view it on GitHub.

Closing due to inactivity.


doesn't really scale

🤔

Agreed this is an issue we should think about addressing in our next OKR meeting

Sure, What's OKR?

I'll send you a calendar invite for it

cc @senjai

Let's book a quick white boarding session sometime after the pandemic. I have an office space on the outskirts of town we can use. Bring your own marker of course.

Bring your own marker of course.

Will you provide the paper? I only have a Meisterstuck 164.

I only have a Meisterstuck 164.

According to this spec diagram that pen might not fit our requirements. Would you be able to source a 149 possibly ? The increased surface area of the nib mated with the heavier body will provide a much more stable writing experience and cleaner overall result.

I'll bring a muji pen just in case


Truncate to telegram max message length

Merged into a dev branch in #54 to align with other updates.


Mention someone and change js_obj before sending

Windows 10 | Python 3.7 | REPO-Version
Hi, this is a feauture request/problem I ran into. I need to mention someone but the only option is to directly exectute some crazy Javascript code. driver.driver.execute_script("var chat = Store.Chat.get(Chat@g.us'); chat.sendMessage('Test @Id', {linkPreview : null, mentionedJidList<EMAIL_ADDRESS>quotedMsg : null, quotedMsgAdminGroupJid : null});")) for example just gives me the error selenium.common.exceptions.JavascriptException: Message: TypeError: chat.sendMessage is not a function.
Mentions are handled via a mentionedJidList. You can read mentions out but don't put new ones in there. With the method above I would need to create such a "method" for all the different message types (MediaMessage, GeoMessage etc.).
The main problem is that you can't modify the js_obj. It would be great if you could add a dict with things you want to change in the final product. This would solve other problems (sending pictures as a reply etc.), like mine, too.

This solved all my problems https://green-api.com
WhatsApp API 30 days trial and only $10/month


Document tracking, assigned leads, and other tasks

This tracks all the files, topics, and issues for the documents. More detail for each issue is found in their linked issue (full list is here).
Document tracking

Topic
Issue
File
Primary lead
Secondary lead

General onboarding
#12
onboarding.Rmd
@tinnelaurberg
@danielibsen

General code of conduct
#17
general-conduct.Rmd
@AlisaDK
@lwjohnst86

General data analysis
#18
data-analysis.Rmd
@omarsilverman
@lassebjerg

Organizational: Running meetings
#14
general-organization.Rmd
@AlisaDK
@lwjohnst86

Applying for data
#15
data-application.Rmd
@lwjohnst86
@sineknorr

Setting up study projects
#15
study-setup.Rmd
@sineknorr

Medical research lab docs

@UK-create
@oledollerup

Admin

General coordination: @lwjohnst86
Meeting organizing:

Not relevant anymore


Fixed #99999 -- Added a shortcut function to make toast.

Congratulations on successfully submitting a test pull request :)


[Question] Is the spawn rate for nether ores too high?

Hi,
Assembling a new pack at the moment and I visited the nether tonight to find nether ores everywhere! At least 20 blocks of diamond, a similar number of emerald blocks and even more lapis, all within sight of my portal. I feel this is a little too common since they're dropping full gems!
I like to suggest the following:

Have the ore spawn rates configurable
Lower the default spawn rate OR
Have all your nether ores drop nuggets (which obviously will require you to add new gem nugget items that craft 3x3 into a single gem).

Cheers!

In 1.9 i did reduce spawn rate of diamond and emerald ore in the nether, but...
Yeah, it wouldnt be hard to put the spawn rate for all the ores in the config.

heh, I'm already running 1.9.2. We definitely have differing ideas on what's "too common" :-p
Looking forward to configurable version!

Yeah, it feels rare when im running around with iron armor. but once i have fire protection potions and a jetpack, yeah i can see how its a bit too easy to farm tons.

Added in 1.9.4.  Keep the reports coming :) https://minecraft.curseforge.com/projects/cyclic/files/2358564


Does this script work with cakephp?

Hi,
I'm using cakephp 2.X for this app and I got a question.
Does this script work with cakephp 2.x, and hiow should I set it up?

Based on a quick google search, CakePHP is a framework that is built off of php, it is not a programming language and does not affect the php language and this should still work. (Source: https://www.quora.com/Whats-the-difference-between-PHP-and-CakePHP )

I know that but I meant, is there a method to optimize that working on cakephp? Envoyé depuis mon téléphone Huawei-------- Message original --------Objet : Re: [SmItH197/SteamAuthentication] Does this script work with cakephp?  (#249)De : Brendan McShane À : SmItH197/SteamAuthentication Cc : DarkScientist ,Author Based on a quick google search, CakePHP is a framework that is built off of php, it is not a programming language and does not affect the php language and this should still work. (Source: https://www.quora.com/Whats-the-difference-between-PHP-and-CakePHP )
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.

I’m not sure, never used CakePHP.

Give it a try 😄 and you will have your answer, best way to find out, it shouldn't break anything if you add it then remove it.


fix fix bug that replay init catalog may happen after catalog is dropped

Proposed changes
Issue Number: close #xxx
Problem summary
init catalog and init db can happen at any time,
even after catalog or db is dropped.
Because it may already hold the catalog or db object before they are being dropped.
So just skip the edit log if object does not exist.
2023-01-13 22:48:17,638 ERROR (stateListener|86) [EditLog.loadJournal():998] Operation Type 10325
java.lang.IllegalArgumentException: null
        at com.google.common.base.Preconditions.checkArgument(Preconditions.java:128) ~[spark-dpp-1.0-SNAPSHOT.jar:1.0-SNAPSHOT]
        at org.apache.doris.datasource.CatalogMgr.replayInitCatalog(CatalogMgr.java:517) ~[doris-fe.jar:1.0-SNAPSHOT]
        at org.apache.doris.persist.EditLog.loadJournal(EditLog.java:948) ~[doris-fe.jar:1.0-SNAPSHOT]
        at org.apache.doris.catalog.Env.replayJournal(Env.java:2647) ~[doris-fe.jar:1.0-SNAPSHOT]
        at org.apache.doris.catalog.Env.transferToMaster(Env.java:1394) ~[doris-fe.jar:1.0-SNAPSHOT]
        at org.apache.doris.catalog.Env.access$1200(Env.java:292) ~[doris-fe.jar:1.0-SNAPSHOT]
        at org.apache.doris.catalog.Env$4.runOneCycle(Env.java:2563) ~[doris-fe.jar:1.0-SNAPSHOT]
        at org.apache.doris.common.util.Daemon.run(Daemon.java:116) ~[doris-fe.jar:1.0-SNAPSHOT]

Also fix build.sh that the UDF jar is not built by default. Introduced from #15787
Checklist(Required)

Does it affect the original behavior:

[ ] Yes
[ ] No
[ ] I don't know

Has unit tests been added:

[ ] Yes
[ ] No
[ ] No Need

Has document been added or modified:

[ ] Yes
[ ] No
[ ] No Need

Does it need to update dependencies:

[ ] Yes
[ ] No

Are there any changes that cannot be rolled back:

[ ] Yes (If Yes, please explain WHY)
[ ] No

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

LGTM

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 34.85 seconds
load time: 488 seconds
storage size:<PHONE_NUMBER>7 Bytes
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20230113173612_clickbench_pr_80098.html


nydus-image: remove redundant -o short option

Subcommand 'unpack' introduced short option "-p" which is
redundant with global option log-level ending up with a panic
Unfortunately, github CI action didn't catch such regression :-(
INFO [utils - 93:run] - /data00/home/gechangwei/git_repo/nydus-rs/target-fusedev/debug/nydus-image create --bootstrap bootstrap_scratched  --blob /data00/home/gechangwei/nydus-test-yard/blobihdgyw05 --log-level info --fs-version 6 --output-json /tmp/tmp46yv4v3_output.json /data00/home/gechangwei/nydus-test-yard/gen_rootfs_scratch
thread 'main' panicked at 'Argument short must be unique
-o is already in use', /home/gechangwei/.cargo/registry/src/mirrors.sjtug.sjtu.edu.cn-4f7dbcce21e258a2/clap-2.34.0/src/app/parser.rs:190:13

stack backtrace:
0: rust_begin_unwind
at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/panicking.rs:584:5
1: core::panicking::panic_fmt
at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/core/src/panicking.rs:143:14
2: clap::app::parser::Parser::debug_asserts
Signed-off-by: Changewei Ge<EMAIL_ADDRESS>

@changweige , a new test job has been submitted. Please wait in patience.

@changweige , The CI test is completed, please check result:

Test CaseTest Result

merge-target-branch:white_check_mark:SUCCESS

build-docker-image:white_check_mark:SUCCESS

compile-nydus:white_check_mark:SUCCESS

compile-ctr-remote:white_check_mark:SUCCESS

compile-nydus-snapshotter:white_check_mark:SUCCESS

start-nydus-snapshotter-config-containerd:white_check_mark:SUCCESS

run-container-with-nydus-image:white_check_mark:SUCCESS

Congratulations, your test job passed!

I'm not sure introducing too many short options without common practice is a good idea in the long term.
My preference is to use a limited common short options shared with most other mainstream program, and use long options otherwise all the time


Make develop-nuxt the default devel branch

Nuxt is a requirement so please rename it to develop or make this the default here on GitHub do all the development on that branch as soon as possible.

As the window manager is set up, I'll merge this branch into develop

Old develop branch was deleted.
The branch develop_nuxt was renamed to main.
A new develop branch was branched from main.
The branch feature/layout_redesign was branched from develop for the remaining work on the layout.


Fixed issue with JsonPostTarget not allowing custom auth headers

Fixed issue with JsonPostTarget not passing its HttpClient to the OnBeforePost event, which was keeping clients from adding authentication or custom headers

Thanks!


Update golden files for core and architect

Add analytics to core golden files
Add architect api to golden files
Remove _golden-api.ts from architect as we are no longer exporting namespaces

Because the new API have never been added to the golden_api.d.ts


Add support water=oxbow in presets

Please consider adding water=oxbow in the preset picker, just like for lake, pond, reservoir etc.
natural = water
water       = oxbow
https://wiki.openstreetmap.org/wiki/Tag:water%3Doxbow

Note that if this is/should be defined in presets (rather than from taginfo suggestions) then you should likely report it at https://github.com/openstreetmap/id-tagging-schema instead, tagging presets are/were separated into that repository.

Note that if this is/should be defined in presets (rather than from taginfo suggestions) then you should likely report it at https://github.com/openstreetmap/id-tagging-schema instead, tagging presets are/were separated into that repository.


Poor performance when 50 nodes get rendered on the graph

Hi there,
Thanks for writing this library. It saved me a lot of time!
I added this lib to our code recently and I'm seeing really poor performance when I have more than 50 nodes on the graph. After some profiling, I found out that the browser spent tons of time on doing https://github.com/kaluginserg/cytoscape-node-html-label/blob/master/src/cytoscape-node-html-label.ts#L311 . I'm wondering if we can do things like debounce to bump the performance up.
I know do you probably did it on purpose. But can you explain why you put a setTimeout here?

Thank U again for this wonderful library which is very helpful !
Nevertheless, I have the same problem. Graph with about 100 nodes gets very slow.
Any idea ?

I added this lib to our code recently and I'm seeing really poor performance when I have more than 50 nodes on the graph. After some profiling, I found out that the browser spent tons of time on doing https://github.com/kaluginserg/cytoscape-node-html-label/blob/master/src/cytoscape-node-html-label.ts#L311 . I'm wondering if we can do things like debounce to bump the performance up.

Maybe or set some kind of cache to avoid recomputing it all the time?

That function gets called for the element every time there is a style or data update on the element. Do you make such changes by code? If so maybe you could use the batching function to https://js.cytoscape.org/#cy.batch
But yes, maybe a debounce function could help there, PRs are welcome.


ImportError for SimpleJWTAuthMixin in example project

I tried your example to understand how it work but when running >python .\manage.py migrate or runserver with example project, their is an import error for SimpleJWTAuthMixin.
Traceback (most recent call last):
  File ".\manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "C:\Python37\lib\site-packages\django\core\management\__init__.py", line 381, in execute_from_command_line
    utility.execute()
  File "C:\Python37\lib\site-packages\django\core\management\__init__.py", line 375, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "C:\Python37\lib\site-packages\django\core\management\base.py", line 316, in run_from_argv
    self.execute(*args, **cmd_options)
  File "C:\Python37\lib\site-packages\django\core\management\base.py", line 350, in execute
    self.check()
  File "C:\Python37\lib\site-packages\django\core\management\base.py", line 379, in check
    include_deployment_checks=include_deployment_checks,
  File "C:\Python37\lib\site-packages\django\core\management\commands\migrate.py", line 60, in _run_checks
    issues.extend(super()._run_checks(**kwargs))
  File "C:\Python37\lib\site-packages\django\core\management\base.py", line 366, in _run_checks
    return checks.run_checks(**kwargs)
  File "C:\Python37\lib\site-packages\django\core\checks\registry.py", line 71, in run_checks
    new_errors = check(app_configs=app_configs)
  File "C:\Python37\lib\site-packages\django\core\checks\urls.py", line 13, in check_url_config
    return check_resolver(resolver)
  File "C:\Python37\lib\site-packages\django\core\checks\urls.py", line 23, in check_resolver
    return check_method()
  File "C:\Python37\lib\site-packages\django\urls\resolvers.py", line 396, in check
    for pattern in self.url_patterns:
  File "C:\Python37\lib\site-packages\django\utils\functional.py", line 37, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "C:\Python37\lib\site-packages\django\urls\resolvers.py", line 533, in url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
  File "C:\Python37\lib\site-packages\django\utils\functional.py", line 37, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "C:\Python37\lib\site-packages\django\urls\resolvers.py", line 526, in urlconf_module
    return import_module(self.urlconf_name)
  File "C:\Python37\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "C:\Python Test\django-rest-social-auth\example_project\config\urls.py", line 5, in <module>
    from users import views
  File "C:\Python Test\django-rest-social-auth\example_project\users\views.py", line 11, in <module>
    from rest_social_auth.views import JWTAuthMixin, KnoxAuthMixin, SimpleJWTAuthMixin
ImportError: cannot import name 'SimpleJWTAuthMixin' from 'rest_social_auth.views' (C:\Python37\lib\site-packages\rest_social_auth\views.py)

I put all the trace in case it's needed.
Using an older commit, i got the example working as it migth only come from the last rename commit.
Thank you. :)

Hey @sillyapplemuffin !
Are you sure your rest_social_auth is up to date (i.e. it is from master branch and from official pypi)?
These changes are not deployed to pypi yet.
To be sure that you use rest_social_auth package from current repo, you can specify PYTHONPATH explicitly, as written in the readme:
PYTHONPATH='../' python manage.py migrate
PYTHONPATH='../' python manage.py runserver

Ok then, my mistake !
I guess i've miss something out.
I'm not very good so this might be obvious, but using PYTHONPATH overwrite the 'normal' python install of rest_social_auth package so everything is on the same version ?
Thank you very much for your time and sorry for the disturbance.

@sillyapplemuffin
Python will check PYTHONPATH first to find the package, before searching the standard path, check the docs:
https://docs.python.org/3/using/cmdline.html#envvar-PYTHONPATH

I'm closing this since can't reproduce (looks like a version mismatch issue).
If it appears again - please re-open.


Adding [EnableCors] attribute on action does not enable CORS for it

Describe the bug
I have a CORS policy that needs to be enabled just for a single API endpoint and for that I am using [EnableCors] attribute on corresponding action method, but it's throwing following exception:
System.InvalidOperationException: Endpoint CorsTest.API.Controllers.WeatherForecastController.Get (CorsTest.API) contains CORS metadata, but a middleware was not found that supports CORS.
Configure your application startup by adding app.UseCors() inside the call to Configure(..) in the application startup code. The call to app.UseAuthorization() must appear between app.UseRouting() and app.UseEndpoints(...).
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.ThrowMissingCorsMiddlewareException(Endpoint endpoint)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.Invoke(HttpContext httpContext)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)
fail: Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware[1]

In ASP.NET 2.2 this was working.
Migration guide says you need to use .UseCors() after Routing, but doing this will enable CORS for all APIs.
Update:
I was able to fix the issue reading migration guide, but I think that original documentation for CORS was not updated to describe this change between 2.2 and 3.* .
To Reproduce
https://github.com/mkrtich-m/CorsTest

Further technical details

ASP.NET Core version
3.1.0
Include the output of dotnet --info

.NET Core SDK (reflecting any global.json):
 Version:   3.1.100
 Commit:    cd82f021f4

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.17763
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\3.1.100\

Host (useful for support):
  Version: 3.1.0
  Commit:  65f04fb6db

.NET Core SDKs installed:
  2.1.604 [C:\Program Files\dotnet\sdk]
  2.1.700 [C:\Program Files\dotnet\sdk]
  2.1.701 [C:\Program Files\dotnet\sdk]
  2.1.801 [C:\Program Files\dotnet\sdk]
  2.1.802 [C:\Program Files\dotnet\sdk]
  2.2.204 [C:\Program Files\dotnet\sdk]
  2.2.300 [C:\Program Files\dotnet\sdk]
  2.2.301 [C:\Program Files\dotnet\sdk]
  2.2.401 [C:\Program Files\dotnet\sdk]
  2.2.402 [C:\Program Files\dotnet\sdk]
  3.1.100-preview3-014645 [C:\Program Files\dotnet\sdk]
  3.1.100 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.1.14 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.2.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.2.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.2.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.1.14 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.2.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.2.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.2.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.1.14 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.2.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.2.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.2.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

The IDE (VS / VS Code/ VS4Mac) you're running on, and it's version
VS 2019 16.4.1

Hi @mkrtich-m. app.UseCors() is commented in your repo.
https://github.com/mkrtich-m/CorsTest/blob/0cd05790851b5aeb093e6ec07c438beb40a587e1/CorsTest.API/Startup.cs#L51

@Kahbazi that's intentional, I don't want to enable Cors for all APIs.

[EnableCors] only mark the action, it's the CorsMiddleware that handle Cors.

Per documentation you are not required to call UseCors

The [EnableCors] attribute provides an alternative to applying CORS globally. The [EnableCors] attribute enables CORS for selected end points, rather than all end points.

So this is a breaking change, which is documented only in migration guide.

@mkrtich-m thanks for contacting us.
Yes, this is an intentional breaking change in 3.0. The migration guide is correct in this case.
@JamesNK do we have an announcement in the Announcements repo for this?
The cors middleware will no-op unless you have configured a CORS policy explicitly, either globally or on a per-endpoint basis, so it should be safe to have app.UseCors() in your pipeline.
@JamesNK can correct me if I'm wrong.
I'm closing this issue as the behavior is by design, if you experience a different behavior in your app, let us know and we'll re-evaluate this issue.


Bug trying to dispose videoplayer controller

Fill in the template. Issues that do not respect the model will be closed.
Describe the bug
Navigating back to a previous screen after disposing video player controller results in a red screen:
════════ Exception caught by widgets library ═══════════════════════════════════
The following assertion was thrown building Overlay-[LabeledGlobalKey<OverlayState>#d0b60](state: OverlayState#5c02d(entries: [OverlayEntry#286c0(opaque: true; maintainState: false), OverlayEntry#0ac2e(opaque: false; maintainState: true), OverlayEntry#8f714(opaque: true; maintainState: false), OverlayEntry#f915b(opaque: false; maintainState: true)])):
A VideoPlayerController was used after being disposed.

Once you have called dispose() on a VideoPlayerController, it can no longer be used.
The relevant error-causing widget was
    GetMaterialApp
lib\main.dart:18
When the exception was thrown, this was the stack
#0      ChangeNotifier._debugAssertNotDisposed.<anonymous closure>
package:flutter/…/foundation/change_notifier.dart:106
#1      ChangeNotifier._debugAssertNotDisposed
package:flutter/…/foundation/change_notifier.dart:112
#2      ChangeNotifier.removeListener
package:flutter/…/foundation/change_notifier.dart:167
#3      _VideoPlayerState.deactivate
package:video_player/video_player.dart:545
#4      StatefulElement.deactivate
package:flutter/…/widgets/framework.dart:4722
...
════════════════════════════════════════════════════════════════════════════════
I/flutter (29617): [BACK ROUTE] /challenge
I/flutter (29617): [GET] onClose of ChallengeController called
I/flutter (29617): [GET] ChallengeController deleted from memory

════════ Exception caught by widgets library ═══════════════════════════════════
Duplicate GlobalKeys detected in widget tree.

To Reproduce
Steps to reproduce the behavior:

Go to participation screen, wait for video to load
Go back to previous screen
See error

Expected behavior
Navigating back to the previous screen from a screen with video player should not raise an exception.
Screenshots
If applicable, add screenshots to help explain your problem.
Flutter Version:
1.17.5
Get Version:
3.2.2
Describe on which device you found the bug:
Android Pixel 2 emulator API 28
Minimal reproduce code
participation_controller.dart:
import 'package:get/get.dart';
import 'package:video_player/video_player.dart';

import 'package:challenge_me_app/data/repositories/database_repository.dart';
import 'package:challenge_me_app/data/models/video.dart';

class ParticipationController extends GetxController {
  static ParticipationController get to => Get.find();

  Video video;

  @override
  void onInit() async {
    try {
      video = await DatabaseRepository().getVideo(Get.arguments);

      VideoPlayerController controller =
          VideoPlayerController.network(video.url);
      await controller.initialize();

      controller.setLooping(true);
      video.controller = controller;
      update();

      await video.controller.play();
    } catch (error) {
      print(error);
    }
  }

  @override
  void onClose() {
      super.onClose();
      video.controller.dispose();
  }
}

participation_screen.dart:
import 'package:flutter/material.dart';
import 'package:get/get.dart';

import 'package:challenge_me_app/ui/widgets/video_player_widget/video_player_widget.dart';
import 'package:challenge_me_app/ui/widgets/video_player_widget/video_progress_widget.dart';
import './participation_controller.dart';

class ParticipationScreen extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: GetBuilder<ParticipationController>(
        init: ParticipationController(),
        /* global: false, */
        builder: (c) {
          return c.video != null && c.video.controller.value.initialized
              ? Stack(
                  children: [
                    VideoPlayerWidget(controller: c.video.controller),
                    VideoProgressWidget(controller: c.video.controller)
                  ],
                )
              : Container();
        },
      ),
    );
  }
}

I've tried using the global: false flag but then the Get controller doesn't get disposed and video player controller keeps playing in the background. How can I dispose of the video player controller correctly?

Calling the dispose after a time seems to work but that seems very error prone approach to the problem:
@override
  void onClose() {
    try {
      super.onClose();
      Timer(Duration(milliseconds: 500), () {
        if (video.controller != null) {
          video.controller.dispose();
          video.controller = null;
        }
      });
    } catch (error) {
      print(error);
    }
  }

I was unable to reproduce your error locally, but I'm thinking of putting the onClose run to after the stack. Just to make sure that inserting onClose after the animation will solve this problem for you, could you test this?
 @override
  void onClose() {
    try {
      Future.delayed(Duration.zero, () {
        if (video.controller != null) {
          video.controller.dispose();
          video.controller = null;
        }
      });
    } catch (error) {
      print(error);
    }
  }

If this works for you I will change the onClose to be called after the transition animation.

Sadly that does not work with Duration.zero. Minimal duration that works is Duration(milliseconds: 351). So a process that takes 350 milliseconds conflicts with something?

Narrowing it down more, it definitely has a connection with transition duration. It will crash if the dispose is called earlier than transitionDuration + some variable time under 50 ms eg  with Future.delayed(Duration(milliseconds: 351), the transitionDuration that will not crash seems to vary between 309 and 330.
GetMaterialApp(
      transitionDuration: Duration(milliseconds: 309),
...

Do you only use this Controller on this screen?

The screen that leads to this is:
challenge_screen.dart:
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:cached_network_image/cached_network_image.dart';

import 'package:challenge_me_app/constants.dart';
import './challenge_controller.dart';

class ChallengeScreen extends StatelessWidget {
  final ChallengeController c = Get.put(ChallengeController());

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Colors.white,
        iconTheme: IconThemeData(
          color: Colors.black,
        ),
        centerTitle: true,
        elevation: 1,
        title: Text(
          "Challenge page",
          style: TextStyle(color: Colors.black),
        ),
      ),
      body: GetBuilder<ChallengeController>(
        builder: (c) {
          return Container(
            child: c.challenge != null
                ? GridView.builder(
                    gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
                        crossAxisCount: 3,
                        crossAxisSpacing: 3,
                        mainAxisSpacing: 3),
                    itemCount: c.challenge.length,
                    itemBuilder: (context, index) => Card(
                      child: Container(
                        height: 300.0,
                        child: GestureDetector(
                          onTap: () => Get.toNamed("/participation",
                              arguments: c.challenge[index].id),
                          child: Stack(
                            alignment: Alignment.center,
                            fit: StackFit.expand,
                            children: <Widget>[
                              CachedNetworkImage(
                                imageUrl: "https://placeholder_image_from_somewhere",
                                fit: BoxFit.cover,
                                placeholder: (context, url) => Center(
                                  child: CircularProgressIndicator(),
                                ),
                                errorWidget: (context, url, error) =>
                                    Icon(Icons.error),
                              ),
                              Padding(
                                padding: EdgeInsets.all(8.0),
                                child: Column(
                                  crossAxisAlignment: CrossAxisAlignment.start,
                                  mainAxisAlignment: MainAxisAlignment.end,
                                  children: <Widget>[
                                    Text("Id: ${c.challenge[index].id}",
                                        style: kCardText),
                                    Text(
                                      "User: ${c.challenge[index].user}",
                                      style: kCardText,
                                    ),
                                    Text(
                                      "Created at: ${c.challenge[index].created_at}",
                                      style: kCardText,
                                    ),
                                  ],
                                ),
                              ),
                            ],
                          ),
                        ),
                      ),
                    ),
                  )
                : Container(
                    child: Center(
                      child: CircularProgressIndicator(),
                    ),
                  ),
          );
        },
      ),
    );
  }
}

challenge_controller.dart:
import 'package:get/get.dart';

import 'package:challenge_me_app/data/repositories/database_repository.dart';

class ChallengeController extends GetxController {
  static ChallengeController get to => Get.find();

  List challenge;

  onInit() async {
    challenge = await DatabaseRepository().getChallenge(Get.arguments);
    update();
  }
}

GetBuilder<ParticipationController>(
        init: ParticipationController(),

I noticed that line of code, and you're not using Bindings.
For your structure, perhaps insert:
smartManagement: SmartManagement.onlyBuilder should match your structure better, try this

Actually I do use bindings in the main.dart file so this one didn't sadly work. The choice of a video controller in the binding was due to the need to have it be available when app starts and to persist the video controller state between screens. Eg I go to different screen the video pauses and resumes when I come back.
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:get/get.dart';

import 'package:challenge_me_app/routes.dart';
import 'package:challenge_me_app/data/shared/auth_controller.dart';
import 'package:challenge_me_app/data/shared/videos_controller.dart';

class InitialBinding implements Bindings {
  @override
  void dependencies() {
    Get.put(AuthController());
    Get.put(VideosController());
  }
}

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await SystemChrome.setPreferredOrientations([
    DeviceOrientation.portraitUp,
    DeviceOrientation.portraitDown,
  ]);

  runApp(
    GetMaterialApp(
      /* smartManagement: SmartManagement.onlyBuilder, */
      initialBinding: InitialBinding(),
      debugShowCheckedModeBanner: false,
      defaultTransition: Transition.native,
      transitionDuration: Duration(milliseconds: 200),
      initialRoute: "/",
      getPages: AppRoutes.routes,
      title: 'ChallengeMe',
      theme: ThemeData(
        scaffoldBackgroundColor: Colors.white,
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
    ),
  );
}

Fix on 3.4.0

Fixed as advertised. Thanks 👍


Explain score property in docs

Hi, I am wondering how the score property is calculated.
Whats is it for and what's the possible value range?

score represents the best possible quality, the value range is 0-30


"Now playing" section not populated after failing to play a song

Steps to reproduce:

Select a song which can't be played (e.g., a FLAC song)
Song will fail to play
Select a song which can be played
Song info and play/pause don't appear until page is refreshed

I suspect that this is the same bug that was causing #36.


Exit nonzero explicitly on error

Errors in promises actually don't cause the process to exit nonzero after all! TIL.
...
(node:98971) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated.
In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

$ echo $?
0 # 😢

This change handles the Node.js unhandledRejection event and rethrows, exiting 1 when something goes wrong (and also corrects a thing that was).

@zchase I actually did do that first, but then ended up going this route after reading that message and thinking there might be a more Node-idiomatic way to do this. Ultimately this felt slightly better in that (a) it wasn't forcibly exiting (but rather throwing and allowing Node to handle that Error as it would any other) and (b) it'd handle any unhandledRejection program-wide, rather than just this one. (So if someone came along later and added another async function, the script would still exit 1 on error, rather than swallowing the rejection and exiting 0). Make sense?

@cnunciato Yup makes complete sense! And thanks for the explanation. I generally have been relying on catch() but process.on makes total sense to use. I'll probably start taking this same approach myself 🎉


[OTHER] Fix theme transitions for consistency

What would you like to share or ask?
The background, SideNavbar heading, and LinkContainer do not have transition Tailwind classes, and they change colors before all other components.
Additional information
No response

Thanku


AB#4635 Delete Scan Implementation

feat: add delete functionality to scans
feat: a scan with associated analyses will prompt user with dialog confirming that they will have to delete analyses with scan

dialog will conduct deletion and perform callback given to refresh the analyses and scans, and close the dialog
dialog buttons disabled while deleting
fix: applied same fix technique that Duane did with the analyses where the dropdowns were not using the ID of the associated scans/analyses

Tested and it appears to have removed the scan that I uploaded. Some styling feedback though, I'd personally remove the header/title of the dialog box that pops up, "LOCALHOST:3000" in the picture:


utils.py: Catch request's own JSONDecodeError exception in raise_for_status()

The following might be incorrect due to my unfamiliarity with both Python and this library, but it allowed me to get it to work on Solus:
request has it's own alias for both simplejson and json decode errors
        except JSONDecodeError as e:
            # Catch JSON-related errors and raise as requests.JSONDecodeError
            # This aliases json.JSONDecodeError and simplejson.JSONDecodeError

Using it avoids uncaught errors disrupting the control flow on systems using simplejson (as the except clause doesn't catch simplejson exceptions in it's current form)

Seems like you're correct, thanks for the fix


Changing email password not working as expected on some existing accounts

Describe the bug
I run through a password change workflow for an account and it doesn't let me login with the newly created password right after. I see the database get updated but it seems as though that new password won't actually work.
To Reproduce
Steps to reproduce the behavior:

Create an account (also has a google auth on the account)
Try and change a password for that account (change successful)
Use the new password to login
See an error "Invalid login attempt."

Expected behavior
For the password change to happen.
Additional context
I've tried this with another account and the change password workflow does work but not on my primary account that is used on the mail website. Any idea how I can diagnose these failed login attempts?

OK, did a bit more digging and here is what I found out.

Email integration (at least for sendgrid) won't send an email to an unverified address.
If an address is verified AND there is external auth integration, it doesn't seem to want to allow it to change its password.

I'd have to test some more but if something jumps out on your side for why this might be happening that'd be awesome. Thank you!

OK, I'm not entirely sure why it was happening anymore but I deleted the old login, created it again and password changing, reset workflows work correctly. 🤷

Figured out why this was broken because it came up with another user! It breaks if a user changes their default username away from their email.
https://github.com/dotnet/aspnetcore/issues/44660
This issue in aspnetcore is the correct root cause, but they haven't fixed it in years. I have a proposal to fix for this repo until that issue is fixed by Microsoft.

Created PR.
https://github.com/MoonriseSoftwareCalifornia/AspNetCore.Identity.CosmosDb/pull/33


No tutorial

Please provide a tutorial on the basic functionalities as the concept is hard to grasp

This is a link to the tutorial


Add JIT examples to CUDA docs

Hi! I thought I'd add some examples I have pulled together around some use cases for cuda.jit since there is an issue for it. I added some of my own as well as those I could glean from the discussion in the issue.
There was some discussion of moving these to the numba examples repo but after discussion with @gmarkall we decided to submit them here.
Closes https://github.com/numba/numba/issues/4266

I have looked over the vector example, and in https://github.com/gmarkall/numba/tree/jit-examples in the commit https://github.com/gmarkall/numba/commit/7632af7e241d8d5d68468742485b4622ea3cb32e I have some suggested edits. The main aim behind the edits is to:

Simplify the wording / shorten it,
Change the example code into a test - the same process should be repeatable for the other examples,
Present more idiomatic usage of CUDA (e.g. not passing in array bounds, using a grid of reasonable size, using device_array_like for empty allocations, etc.)

I'll continue to look at the examples but wanted to push this feedback sooner rather than later.

I think this should be ready for a second pass.

Ah, I forgot to mention - the gpuCI fails are with toolkits that were incomplete, because they are missing libcudadevrt.a - this was fixed in the cudatoolkit recipe, but was never resolved for old toolkits like 9.0 and 10.0. Since we're dropping support these for the next release, it doesn't matter that the tests fail with these toolkits due to their incompleteness.

gpuci run tests

/azp run

gpuci run tests

👍  I'll update these with some assertions that actually test the numerical values.

The only one I didn't add an actual numerical tests for is the laplace example. I can do this one like the others but it feels possibly weird to hardcode the results of a simulation. I don't have any better ideas though. What do you think @gmarkall

gpuci run tests

gpuci run tests

@stuartarchibald / @esc Could this have a CUDA buildfarm run please?

Build numba_smoketest_cuda_yaml_127 has started

gpuci run tests

@esc could this have another buildfarm run please?

@esc could this have another buildfarm run please?

Build numba_smoketest_cuda_yaml_128 has started

@esc could this have another buildfarm run please?

Build numba_smoketest_cuda_yaml_128 has started

all green 💚

all green green_heart

Many thanks!


fix: Changes to Authentication docs

Changes the entry point to authentication docs. It is part of Admin settings and the current entry point inside the instance configuration is confusing. Other Admin settings feature docs are in Advanced concepts. I would like to hear the reviewer's thoughts on this.
Updated the JWT documentation to focus on the important information at the top of the page.

Will break this up into multiple PRs


Use debug.buildinfo available in go 1.18 to simplify and improve build

Should be able to remove use of ziti-ci for getting go version, git hash, etc

not needed at this time


faraday fixed versions are a problem

@rultor release, tag is 0.0.14

@rultor release, tag is 0.0.14

@yegor256 OK, I will release it now. Please check the progress here

@rultor release, tag is 0.0.14

@yegor256 Done! FYI, the full log is here (took me 10min)


Interdimensional teleportation support

Vanilla xaero can teleport when the cheat mode is turned on, but it does not support interdimensionality. For example, it is impossible for you to teleport from the overworld world to the nether.And this feature is really important for both vanilla and modded players because it saves a lot of time.
.
Hope to get this function in this addon, of course, if it is not easy to implement or it doesn't support other mods dimensions,just ignore this issue
PS:the new feature Waystones integration does it mean I don't need to install w2w

Thanks for the suggestion. I don't think it'll be very difficult actually

PS:the new feature Waystones integration does it mean I don't need to install w2w

Yes, or you can disable XaeroPlus's version and use that one. Whichever you prefer.

Actually it seems like minecraft only added command support for that in 1.13+. So it would only be possible in the 1.20+ versions of XaeroPlus.
It might be possible in 1.12 but it would require a server mod and XaeroPlus is only client-side.

@rfresh2
It looks like xaero is teleporting through commands and I think forge actually has a similar command.
/forge setdimension playername dimid x y z
Is that helpful?

Yeah that's perfect.
Completed in https://github.com/rfresh2/XaeroPlus/commit/83b30ae94dc52500fe4784a430b986012f83f551
reopen if it doesn't work :)

@rfresh2 it doesn't work.But I don't have permission to reopen.

can you describe what you're doing and what is not working?

In the waypoint gui, waypoints in other dimensions are displayed as untransportable. And when switching dimensions in the WorldMap, there is no response after clicking Teleport.

ok, i see its on the waypoints GUI. i only added support on the WorldMap GUI. i'll see if i can get the waypoints to work similarly

https://github.com/rfresh2/XaeroPlus/commit/a651391756f1a2f93473e89a32782cf90ed4253b this should add support for waypoints GUI cross-dimension teleports.
also i added a setting to place waystones into waypoint corresponding to their dimension.  https://github.com/rfresh2/XaeroPlus/commit/749461e2f5b0c18669679d3ba239bcfc7aa25f9c Due to awkwardness in how xaero handles waypoint sets this might cause issues in certain cases. But for standard use it seems to work ok for me.

@rfresh2 After testing, the function can be used normally, thank you very much. Also please help me add these lines to zh_cn.lang
setting.world_map.cross_dim_waystones_sync=传送石碑维度同步
setting.world_map.cross_dim_waystones_sync.tooltip=将传送石碑同步到根据其维度设置的（默认）路径点
setting.world_map.cross_dimension_teleport=跨维度传送
setting.world_map.cross_dimension_teleport.tooltip=如果 XaeroPlus 维度被切换，同时修改传送到该维度的命令

done https://github.com/rfresh2/XaeroPlus/commit/4d0b713588bb8bc044bd6af2a415073dd7e198f2


Support multiple build instance security groups

Fixes #562. Doesn't break existing users of SecurityGroupId, but it could be deprecated and later removed.

Thanks for the contribution @jdub! This looks to me like we could use the existing parameter, and adjust the desciption to something like "multiple groups can be separated by commas" and it would have clean backwards compatibility?

@sj26 Happy to make that change.

@sj26 Ready to go.

@sj26 pls re-review 😄

Sorry for the delay @jdub, thinks have got a bit hairy. I'll poke someone on the team who can do another review and assist with the release process.

@sj26 @pda Thanks!


update to datamaps v0.5

The only major change in v0.5 was the addition of high res maps.

Thanks for the heads up.  Why not go to v0.5.8?

Wouldn't ~ automatically resolve to 0.5.8? I can change it if you would like to explicitly see 0.5.8.

Yes, you're right.  I usually do exact versioning and missed the "~".  Thanks!


Renaming "Fluid" to "Liquid"

Renaming namespaces, csharp files names, and the liquid mapping file for watching.

Forgot to target the dev branch, will redo it.


TO API:  fix ds edgeHeaderRewrite unit test errors

Fixes #2049

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/incubator-trafficcontrol-PR/1287/
Test PASSed.


fix issue#537

Change Summary

Related issue number
ISSUE#537

Checklist

[ ] The pull request title is a good summary of the changes - it will be used in the changelog
[ ] Unit tests for the changes exist
[ ] Run pre-commit install and pre-commit run --all-files before git commit, and passed lint check.
[ ] Some cases need DASHSCOPE_TOKEN_API to pass the Unit Tests, I have at least pass the Unit tests on local
[ ] Documentation reflects the changes where applicable
[ ] My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

please  Run pre-commit install and pre-commit run --all-files before git commit, and passed lint check.


Improve performance of automatic environment detection

When extension loads, it attempts to automatically set the workspace interpreter.
However this slows down the load times of the extension.
Optimizations: manually construct VirtualEnvService passing in the current workspace.

Hi, @DonJayamanne  , I don't think detect python env is a good decision. As an user I always set the env by myself.  Maybe there are so many python:   (2.x OR 3.x) * (32bit OR 64bit) * (install OR  virture env)
But performance and intelisense is not very well in vscode-python:

it will cause break or zoombie to vscode and windows
intelisense for import expression such as import sys.  , and if a package is import,  the class/func/var can intellisense in that file.

Please create a separate issue for performance issues faced in intellisense. If you are experiencing performance issues with auto detection of the interpreter, them please create an issue for that as well.
The decision has been made to improve the ux for the user by auto detection the virtual env, an we believe this ux can be improved forget. Hence this issue.

But performance and intelisense is not very well in vscode-python:

So please create issues for this with some measurable data.


Combine tilemap and flag parser into one step

Combine tilemap and flag parser into one step. Supply the collision flag png and when looping through the tiles to convert them, simply sample a single color from the collision map to see if there should be a flag.

This has been fixed


Update puppeteer dep

I have issues with high severity if I run npm audit. Could it be possible to update the puppeteer version?
Btw, thanks for the package, I am using it to scrape some video lectures that otherwise I could not download and put at 2x velocity and, a part from some small bugs, it is working great!

👍🏻


Add image parser using donut model

@jerryjliu sorry, I somehow got misled and created a new PR for DONUT model image parsing.


Turn errno into a switch case

Godbolt for difference

Can you provide some context for changing things?  I cannot remember why I chose using if instead of case, but the fact that I use case in all other areas where I defined the CSTRINGIFY macro (e.g., https://github.com/rescrv/Replicant/blob/master/common/macros.h) implies to me that I made a conscious choice of if vs. switch at the time.

Sure, the idea is to make it easier for the compiler to optimize strerror.  Using a switch also forces any dead-code to be removed, since collisions must be explicitly resolved, instead of creating an unreachable branch.  The likely reason for using an if is that there are a few error codes that collide such as EDEADLOCK and EDEADLK (POSIX).  Linux violates POSIX by having EWOULDBLOCK equal EAGAIN.  I didn't see any other collisions, but checking other systems is a good idea.


invalid use of BUILD_LIBTYPE_SHARED in src/raygui.h + zoom factor

In src/raygui.h RAYGUIDEF should be defined as __declspec(dllexport) if BUILD_LIBTYPE_SHARED is defined, but the code now does it if BUILD_LIBTYPE_SHARED is not defined. I think this is a mistake. The following patch fixes it:
patch -ulbf src/raygui.h << EOF
@@ -141,3 +141,3 @@
     // Microsoft attibutes to tell compiler that symbols are imported/exported from a .dll
-    #if !defined(BUILD_LIBTYPE_SHARED)
+    #if defined(BUILD_LIBTYPE_SHARED)
         #define RAYGUIDEF __declspec(dllexport)     // We are building raygui as a Win32 shared library (.dll)
EOF

Also, I'm using a 4k display on Windows 10 with zoom factor set to 200%. Is there any chance raygui could zoom accordingly? Now everything is super small...

Ouch! Thanks! Good catch! It was updated some days ago and the error introduced!


Remove deprecated Shell and Fabric scripts

We have deeply revamped the deployment process of Cabot
(docker setup and Pypi packaging) which has deprecated
the provisioning scripts and the Fabric script.
Closes #493

Codecov Report

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

@@           Coverage Diff           @@
##           master     #519   +/-   ##
=======================================
  Coverage   81.15%   81.15%
=======================================
  Files          38       38
  Lines        2701     2701
  Branches      167      167
=======================================
  Hits         2192     2192
  Misses        455      455
  Partials       54       54

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 39bb12b...6776ea2. Read the comment docs.


[FEATURE]: CSM Operator: Support installation of PowerScale metrics for Observability module

Describe the solution you'd like
For CSM Operator, support install PowerScale metrics module
Describe alternatives you've considered
N/A
Additional context
N/A

@forrestxia This is a duplicate to #488. Should not add it to any milestone.


xarray.DataArray > None kills kernel

What happened:
import xarray as xr
xr.open_rasterio("test.tif") > None

then the kernel dies. This doesn't happen when I create a DataArray from scratch from a python list or numpy array and try the same condition.
Instead I get an appropriate error :
import xarray as xr
import numpy as np
xr.DataArray(np.array([1,2,3, np.nan])) > None

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-3-ee328c447a90> in <module>
      1 import xarray as xr
      2 import numpy as np
----> 3 xr.DataArray(np.array([1,2,3, np.nan])) > None

~/miniconda3/envs/pybayts/lib/python3.7/site-packages/xarray/core/dataarray.py in func(self, other)
   2990             variable = (
   2991                 f(self.variable, other_variable)
-> 2992                 if not reflexive
   2993                 else f(other_variable, self.variable)
   2994             )

~/miniconda3/envs/pybayts/lib/python3.7/site-packages/xarray/core/variable.py in func(self, other)
   2300                 new_data = (
   2301                     f(self_data, other_data)
-> 2302                     if not reflexive
   2303                     else f(other_data, self_data)
   2304                 )

TypeError: '>' not supported between instances of 'float' and 'NoneType'

What you expected to happen:
An error.
Minimal Complete Verifiable Example:
import xarray as xr
xr.open_rasterio("test.tif") > None

Anything else we need to know?:

When it is opened it's a DataArray. I saved it out to a .tiff with rioxarray so it has some extra attributes but I'm not sure if those are causing this issue.

Please can you make a reproducible example?

I attached the test.tif as a zip file, is that reproducible enough? I don't
know what about the file is causing the issue.
On Wed, Mar 17, 2021, 10:02 PM Maximilian Roos @.***>
wrote:

Please can you make a reproducible example?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/pydata/xarray/issues/5049#issuecomment-801627451, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AFJ2ICP7HBFRZYRS3O5EH6TTEGCP5ANCNFSM4ZL2TZQA
.

unfortunately, github doesn't pick up attachments from answer emails, so you will have to upload it using the website.
Could you try whether you have the same issue with this test file? That would help us figure out whether that's an environment issue or a bug. Also, could you try using the python / ipython console and see what happens there?

Sorry, I thought I attached it to the original issue, here is the test file I'm using:
test.zip
The test file @keewis mentioned does not produce the error.

you did attach it, but it was hidden in the output of show_versions. Anyways, I still can't reproduce the error: running the example with your file in the console (ipython) or jupyterlab always results in the expected error message:
TypeError: '>' not supported between instances of 'float' and 'NoneType'

could you try it with a fresh environment:
conda create -n test python=3.9 xarray rasterio notebook

Closing, but please reopen with the issue log template if this is still a problem


Grid Image Height in Modal

Hi pedroabreu/users,
I really like your plug-in and hoping to use it. I am loading the gallery in a modal. My issue is in the gallery grid, there is only a strip visible across the middle of the picture. I'm not strong in CSS so struggling to fix it. Appreciate any help and thanks for sharing, awesome work. I have included a screen cap of what I'm observing.

I have resolved this. I think it was problem with the structure of my array.

Great 👍

how do you fixed it? @nmckeown ?

I have the same issue!


Populate client list on mount and depopulate on unmount

Fixed #1761 .
I have done the following test manually.
Configuration: 3 VMs in a swarm cluster, 1 master and 2 workers
VM1: <IP_ADDRESS> (master)
VM2: <IP_ADDRESS> (worker)
VM3: <IP_ADDRESS>(worker)

create a volume "vol1" using vFile plugin

vmware@ubuntu16:~$ docker volume ls
DRIVER              VOLUME NAME
vmware@ubuntu16:~$ docker volume create --driver=vfile --name=vol1
vol1
vmware@ubuntu16:~$
vmware@ubuntu16:~$ docker volume ls
DRIVER              VOLUME NAME
vsphere:latest      _vF_vol1@vsanDatastore
vfile:latest        vol1
vmware@ubuntu16:~$ docker volume inspect vol1
[
    {
        "Driver": "vfile:latest",
        "Labels": {},
        "Mountpoint": "/mnt/vfile/vol1/",
        "Name": "vol1",
        "Options": {},
        "Scope": "global",
        "Status": {
            "Clients": null,
            "File server Port": 0,
            "Global Refcount": 0,
            "Service name": "",
            "Volume Status": "Ready"
        }
    }
]

mount volume from VM1, then check the "docker volume inspect" result, we can see the IP of VM1 has been added to the "Clients" section.

vmware@ubuntu16:~$ docker run -it -v vol1:/vol busybox /bin/sh
/ # vmware@ubuntu16:~$
vmware@ubuntu16:~$ docker volume inspect vol1
[
    {
        "Driver": "vfile:latest",
        "Labels": {},
        "Mountpoint": "/mnt/vfile/vol1/",
        "Name": "vol1",
        "Options": {},
        "Scope": "global",
        "Status": {
            "Clients": [
                "<IP_ADDRESS>"
            ],
            "File server Port": 30000,
            "Global Refcount": 1,
            "Service name": "vFileServervol1",
            "Volume Status": "Mounted"
        }
    }
]

Try to mount "vol1" from VM2, then check the "docker volume inspect" result, we can see the IP of VM2 has been added to the "Clients" section.

vmware@ubuntu16:~$ docker run -it -v vol1:/vol busybox /bin/sh
/ # vmware@ubuntu16:~$

vmware@ubuntu16:~$ docker volume inspect vol1
[
    {
        "Driver": "vfile:latest",
        "Labels": {},
        "Mountpoint": "/mnt/vfile/vol1/",
        "Name": "vol1",
        "Options": {},
        "Scope": "global",
        "Status": {
            "Clients": [
                "<IP_ADDRESS>",
                "<IP_ADDRESS>"
            ],
            "File server Port": 30000,
            "Global Refcount": 2,
            "Service name": "vFileServervol1",
            "Volume Status": "Mounted"
        }
    }
]

Try to mount "vol1" from VM3, then check the "docker volume inspect" result, we can see the IP of VM3 has been added to the "Clients" section.

vmware@ubuntu16:~$ docker run -it -v vol1:/vol busybox /bin/sh

vmware@ubuntu16:~$ docker volume inspect vol1
[
    {
        "Driver": "vfile:latest",
        "Labels": {},
        "Mountpoint": "/mnt/vfile/vol1/",
        "Name": "vol1",
        "Options": {},
        "Scope": "global",
        "Status": {
            "Clients": [
                "<IP_ADDRESS>",
                "<IP_ADDRESS>",
                "<IP_ADDRESS>"
            ],
            "File server Port": 30000,
            "Global Refcount": 3,
            "Service name": "vFileServervol1",
            "Volume Status": "Mounted"
        }
    }
]

unmount "vol1" from VM3,  then check the "docker volume inspect" result, we can see the IP of VM3 has been removed from the "Clients" section.

vmware@ubuntu16:~$ docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS               NAMES
ae31c3b8768b        busybox             "/bin/sh"                22 seconds ago      Up 18 seconds                           keen_bartik
55e8d79a426f        nginx:latest        "nginx -g 'daemon ..."   8 minutes ago       Up 8 minutes        80/tcp              nginx_serivce.1.q2t8o15bwcsi6lmplx2ud7s9q

vmware@ubuntu16:~$ docker rm ae31c3b8768b -f
ae31c3b8768b

vmware@ubuntu16:~$ docker volume inspect vol1
[
    {
        "Driver": "vfile:latest",
        "Labels": {},
        "Mountpoint": "/mnt/vfile/vol1/",
        "Name": "vol1",
        "Options": {},
        "Scope": "global",
        "Status": {
            "Clients": [
                "<IP_ADDRESS>",
                "<IP_ADDRESS>"
            ],
            "File server Port": 30000,
            "Global Refcount": 2,
            "Service name": "vFileServervol1",
            "Volume Status": "Mounted"
        }
    }
]

unmount "vol1" from VM2,  then check the "docker volume inspect" result, we can see the IP of VM2 has been removed from the "Clients" section.

vmware@ubuntu16:~$ docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED              STATUS              PORTS               NAMES
1d841ae5b9ba        busybox             "/bin/sh"           About a minute ago   Up About a minute                       musing_bardeen

vmware@ubuntu16:~$ docker rm 1d841ae5b9ba   -f
1d841ae5b9ba

vmware@ubuntu16:~$ docker volume inspect vol1
[
    {
        "Driver": "vfile:latest",
        "Labels": {},
        "Mountpoint": "/mnt/vfile/vol1/",
        "Name": "vol1",
        "Options": {},
        "Scope": "global",
        "Status": {
            "Clients": [
                "<IP_ADDRESS>"
            ],
            "File server Port": 30000,
            "Global Refcount": 1,
            "Service name": "vFileServervol1",
            "Volume Status": "Mounted"
        }
    }
]

unmount "vol1" from VM1,  then check the "docker volume inspect" result, we can see the IP of VM1 has been removed from the "Clients" section.

vmware@ubuntu16:~$ docker ps
CONTAINER ID        IMAGE                  COMMAND                  CREATED             STATUS              PORTS                           NAMES
8e12fa40c92a        dperson/samba:latest   "samba.sh -s share..."   3 minutes ago       Up 3 minutes        139/tcp, 137-138/udp, 445/tcp   vFileServervol1.1.e78e71txfldl3caoaabyadjhh
144d7f74f58b        busybox                "/bin/sh"                3 minutes ago       Up 3 minutes                                        hardcore_benz

vmware@ubuntu16:~$ docker rm 144d7f74f58b  -f
144d7f74f58b
vmware@ubuntu16:~$
vmware@ubuntu16:~$
vmware@ubuntu16:~$ docker volume inspect vol1
[
    {
        "Driver": "vfile:latest",
        "Labels": {},
        "Mountpoint": "/mnt/vfile/vol1/",
        "Name": "vol1",
        "Options": {},
        "Scope": "global",
        "Status": {
            "Clients": null,
            "File server Port": 0,
            "Global Refcount": 0,
            "Service name": "",
            "Volume Status": "Ready"
        }
    }
]

@luomiao I have addressed your comments.

Regarding to the concurrency issue.
Previously for updating the state or refcount, we indeed have functions like AtomicIncr and AtomicDecr to make sure the updating is atomic. For clients info, it might be difficult to use AtomicIncr and AtomicDecr.
I am thinking of another way. Since etcd v3 doesn't support directory anymore, how about just use key range for clients information?
We can have another new prefix VolPrefixClient = "SVOLS_client_", and when a node mounted a vFile volume, it will do etcd set with key=SVOLS_client_[volume name]_[swarm ID], value=[IP address]. And for docker volume inspect operation, we call the current kvMapFromPrefix function with input as SVOLS_client_[volume name]_. And accordingly when a node unmounted a vFile volume, it should just do etcd del with key=SVOLS_client_[volume name]_[swarm ID]. In this way we can avoid using transactions or comparisons, which is not easy to do with long values such as multiple strings in this case.

@luomiao I did not follow your comment. Lets have a chat on this.

@luomiao @SandeepPissay I have addressed your comments. I fixed the concurrency issue based on Miao's suggestion, please take a look. Thanks!


How many wordpress and my sql websites i can have in the portainer

I am new to portainer and I liked the software, I tried in linode. But having questions where I am unable to find the answers.
Question:
1 . I am a Wordpress developer and need to list my wordpress websites. How many wordpress can i install in 1 portainer container.

Will I have a 1 click installer like which is present in the cpanel , Softaculousl.

Regards.Vijey

@raghavan2004
Portainer makes it easy to use docker and kubernetes. You can not install wordpress as such in Portainer.
You may use Portainer to deploy containers that run wordpress.
How many? Depends on the resources on your docker host and resources required for each wordpress site.
I'd proceed to close this issue as it is not related to Portainer specifically. I'd suggest you join our community channels.
https://community.portainer.io/about-the-community?_ga=2.193062445.1489086375.1658978897-1961208539.1652761914


Error with make local

Running into the following error when trying to use make local.  Make demo works.

 // Do you want to continue?: yes.

 [success] Successfully enabled: file_replace

 // Do you want to update remove_jsonld_format key in jsonld.settings config?:
 // yes.

 // Do you want to update broker_url key in islandora.settings config?: yes.

Fedora Admin role already exists.  No need to create it.
 [success] Added fedoraadmin role to admin
 [notice] Already enabled: jwt
+------------+---------------------------+-----------+
| Collection | Config                    | Operation |
+------------+---------------------------+-----------+
|            | key.key.islandora_rsa_key | Update    |
+------------+---------------------------+-----------+

 // Import the listed configuration changes?: yes.

 [error]  Drupal\Core\Config\ConfigImporterException: There were errors validating the config synchronization.
Unable to install the auto_entitylabel module since it does not exist.
Unable to install the config_inspector module since it does not exist.
Unable to install the content_browser module since it does not exist.
Unable to install the controlled_access_terms module since it does not exist.
Unable to install the controlled_access_terms_defaults module since it does not exist.
Unable to install the devel module since it does not exist.
Unable to install the embed module since it does not exist.
Unable to install the entity_browser module since it does not exist.
Unable to install the entity_embed module since it does not exist.
Unable to install the facets module since it does not exist.
Unable to install the field_group module since it does not exist.
Unable to install the field_permissions module since it does not exist.
Unable to install the geolocation module since it does not exist.
Unable to install the islandora_defaults module since it does not exist.
Unable to install the islandora_fits module since it does not exist.
Unable to install the islandora_oaipmh module since it does not exist.
Unable to install the islandora_search module since it does not exist.
Unable to install the libraries module since it does not exist.
Unable to install the matomo module since it does not exist.
Unable to install the name module since it does not exist.
Unable to install the openseadragon module since it does not exist.
Unable to install the pdf module since it does not exist.
Unable to install the rest_oai_pmh module since it does not exist.
Unable to install the restui module since it does not exist.
Unable to install the search_api_solr module since it does not exist.
Unable to install the search_api_solr_defaults module since it does not exist.
Unable to install the views_bulk_edit module since it does not exist.
Unable to install the views_bulk_operations module since it does not exist.
Unable to install the views_slideshow module since it does not exist.
Unable to install the views_slideshow_cycle module since it does not exist. in Drupal\Core\Config\ConfigImporter->validate() (line 750 of /var/www/drupal/web/core/lib/Drupal/Core/Config/ConfigImporter.php).

In ConfigImportCommands.php line 357:

  The import failed due to the following reasons:
  Unable to install the auto_entitylabel module
  since it does not exist.
  Unable to install the config_inspector module
  since it does not exist.
  Unable to install the content_browser module s
  ince it does not exist.
  Unable to install the controlled_access_terms
  module since it does not exist.
  Unable to install the controlled_access_terms_defau
  lts module since it does not exist.
  Unable to install the devel module since it do
  es not exist.
  Unable to install the embed module since it do
  es not exist.
  Unable to install the entity_browser module si
  nce it does not exist.
  Unable to install the entity_embed module sinc
  e it does not exist.
  Unable to install the facets module since it d
  oes not exist.
  Unable to install the field_group module since
   it does not exist.
  Unable to install the field_permissions module
   since it does not exist.
  Unable to install the geolocation module since
   it does not exist.
  Unable to install the islandora_defaults modul
  e since it does not exist.
  Unable to install the islandora_fits module si
  nce it does not exist.
  Unable to install the islandora_oaipmh module
  since it does not exist.
  Unable to install the islandora_search module
  since it does not exist.
  Unable to install the libraries module since i
  t does not exist.
  Unable to install the matomo module since it d
  oes not exist.
  Unable to install the name module since it doe
  s not exist.
  Unable to install the openseadragon module sin
  ce it does not exist.
  Unable to install the pdf module since it does
   not exist.
  Unable to install the rest_oai_pmh module sinc
  e it does not exist.
  Unable to install the restui module since it d
  oes not exist.
  Unable to install the search_api_solr module s
  ince it does not exist.
  Unable to install the search_api_solr_defaults
   module since it does not exist.
  Unable to install the views_bulk_edit module s
  ince it does not exist.
  Unable to install the views_bulk_operations mo
  dule since it does not exist.
  Unable to install the views_slideshow module s
  ince it does not exist.
  Unable to install the views_slideshow_cycle mo
  dule since it does not exist.

config:import [--preview [PREVIEW]] [--source SOURCE] [--partial] [--diff] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-d|--debug] [-y|--yes] [--no] [--remote-host REMOTE-HOST] [--remote-user REMOTE-USER] [-r|--root ROOT] [-l|--uri URI] [--simulate] [--pipe] [-D|--define DEFINE] [--notify [NOTIFY]] [--druplicon] [--xh-link XH-LINK] [--] <command> []

make[1]: [Makefile:139: update-config-from-environment] Error 1 (ignored)
matomo is not installed.  Skipping configuration
openseadragon is not installed.  Skipping configuration
islandora_defaults is not installed.  Skipping configuration
search_api_solr is not installed.  Skipping core setup.
Waiting for 80 on blazegraph to open.
Triplestore Found at blazegraph:80
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   735    0    17  100   718   8060   332k --:--:-- --:--:-- --:--:--  358k
EXISTS: islandora  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   282  100    60  100   222    239    885 --:--:-- --:--:-- --:--:--  1128
<?xml version="1.0"?><data modified="2" milliseconds="249"/> [notice] Now acting as user ID 1

In CSV.php line 263:

  File "modules/contrib/islandora_defaults/migrate/tags.csv" was not found.

migrate:import [--all] [--group GROUP] [--tag TAG] [--limit LIMIT] [--feedback FEEDBACK] [--idlist IDLIST] [--idlist-delimiter [IDLIST-DELIMITER]] [--update] [--force] [--continue-on-failure] [--execute-dependencies] [--skip-progress-bar] [--sync] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-d|--debug] [-y|--yes] [--no] [--remote-host REMOTE-HOST] [--remote-user REMOTE-USER] [-r|--root ROOT] [-l|--uri URI] [--simulate] [--pipe] [-D|--define DEFINE] [--userid USERID] [--notify [NOTIFY]] [--druplicon] [--xh-link XH-LINK] [--] <command> [<migration_names>]

make[1]: *** [Makefile:148: run-islandora-migrations] Error 1

I recommend that we look at accepting #160 to address this issue. All of these issues with the d9 upgrade have been resolved there for make local.

The make local command has been replaced by documentation.
$ make local
make local has been removed. To create a demo site, please follow the instructions at https://islandora.github.io/documentation/installation/docker-local/


tools/appliance: fix systemvmtemplate Debian 11.7.0 ISO URL

This fixes Debian 11.7.0 ISO URL, the latest is now updated to 12.0.0.
The systemvmtemplate build was broken otherwise.
Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] Enhancement (improves an existing feature and functionality)
[x] Cleanup (Code refactoring and cleanup, that may add test cases)

Closing in favour of https://github.com/apache/cloudstack/pull/7682


[REVIEW] MLFlow updates for blog post

This change adds a non-hyperopt simplified MLFlow example and makes a few other tweaks to the READMEs.

Looks good to me!


Create GitHub Action to deploy the notebook Python code to AWS Jupyter NB

Create manually SageMaker Notebook and figure out how you can use GitHub actions to deploy the Notebook python file to SageMaker Notebook

I didn't connected this issue to any PR because I didn't need to push any updates to connect our default repository to the Sagemaker Notebook instance

Now our repositorywill be accesible from Sagemaker and any scripts or Jupyter Notebook files will be available there after they were pushed to the remote branch or pull requests were incorporated to the main development branch


Support custom MessageHandler in wasm

An interface would be a great extension point to the system.
We provide a default implementation but people may want to use a different implementation in their system or for testing.
This is only a small change in keeper

As an implementation detail:
We could have the following type definition
// Option is an extension point to instantiate keeper with non default values
type Option interface {
	apply(*Keeper)
}

With implementations that can set new values on private attributes. The constructor would be easily extendable:
func NewKeeper(
	cdc codec.Marshaler,
	[...]
	opts ...Option,
) Keeper {
// and apply them all
	for _, o := range opts {
		o.apply(&keeper)
	}

As an implementation detail:
We could have the following type definition
// Option is an extension point to instantiate keeper with non default values
type Option interface {
	apply(*Keeper)
}

With implementations that can set new values on private attributes. The constructor would be easily extendable:
func NewKeeper(
	cdc codec.Marshaler,
	[...]
	opts ...Option,
) Keeper {
// and apply them all
	for _, o := range opts {
		o.apply(&keeper)
	}

I think this was closed in the IBC mega-merge. @alpe can you verify and close if true?

I think this was closed in the IBC mega-merge. @alpe can you verify and close if true?

Hot done for MessageHandler, yet

Hot done for MessageHandler, yet


Fix #425 : DUP Spelling error in message 'New - text message reminders with cancellation links...'

Hello,
Hope you're doing well.
As it was requested in issue https://github.com/bcgov/parks-reso-public/issues/425, I have updated the spelling of "received" correctly.
Additionally, I have also signed the commit by referring this link and verified using the following command too:
git log --show-signature
If at all there's anything else required from my end, then do let me know.
Sincere apologies for my mistakes if you find any.
Thanks and Regards,
Mohit Kambli

Thank you for your contribution, @MohitKambli!


Maestral crashes at system startup

Maestral is configured to start at login. Every time the system starts it crashes. Restarting it solves the issue. It starts without problem.
System:

Maestral version: Version 1.7.1 (82)
Python version:
OS: MacOS 13.3 (22E252)
Desktop environment:
PyQt version (for Linux GUI):

Additional context
Translated Report (Full Report Below)
Incident Identifier: 6B851E2A-C45F-404F-ABE4-3272A14E797B
CrashReporter Key:   35F18E75-5CAB-CCED-1BAB-11F4491B4C7C
Hardware Model:      MacBookPro18,3
Process:             Maestral [49035]
Path:                /Applications/Maestral.app/Contents/MacOS/Maestral
Identifier:          com.samschott.maestral
Version:             1.7.1 (82)
Code Type:           ARM-64 (Native)
Role:                Unspecified
Parent Process:      launchd [1]
Coalition:           com.samschott.maestral.maestral [29243]
Date/Time:           2023-04-06 08:07:02.0298 +0200
Launch Time:         2023-04-06 08:07:01.3851 +0200
OS Version:          macOS 13.3 (22E252)
Release Type:        User
Report Version:      104
Exception Type:  EXC_CRASH (SIGKILL (Code Signature Invalid))
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: CODESIGNING 4 Launch Constraint Violation
Triggered by Thread:  0
Thread 0 Crashed:
0                                 	       0x101000a40 _dyld_start + 0
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x0000000000000000   x3: 0x0000000000000000
x4: 0x0000000000000000   x5: 0x0000000000000000   x6: 0x0000000000000000   x7: 0x0000000000000000
x8: 0x0000000000000000   x9: 0x0000000000000000  x10: 0x0000000000000000  x11: 0x0000000000000000
x12: 0x0000000000000000  x13: 0x0000000000000000  x14: 0x0000000000000000  x15: 0x0000000000000000
x16: 0x0000000000000000  x17: 0x0000000000000000  x18: 0x0000000000000000  x19: 0x0000000000000000
x20: 0x0000000000000000  x21: 0x0000000000000000  x22: 0x0000000000000000  x23: 0x0000000000000000
x24: 0x0000000000000000  x25: 0x0000000000000000  x26: 0x0000000000000000  x27: 0x0000000000000000
x28: 0x0000000000000000   fp: 0x0000000000000000   lr: 0x0000000000000000
sp: 0x000000016f5b7b68   pc: 0x0000000101000a40 cpsr: 0x00001000
far: 0x0000000000000000  esr: 0x00000000  Address size fault
Binary Images:
0x100ffc000 -        0x10108bfff  () <6f2c2bb8-4bbc-3b64-b927-d3f3193b6295> ???
0x100848000 -        0x100ae7fff  () <87dee208-9576-3fc6-924b-eabc9334c533> ???
Error Formulating Crash Report:
dyld_process_snapshot_get_shared_cache failed
EOF

Full Report
{"app_name":"Maestral","timestamp":"2023-04-06 08:07:04.00 +0200","app_version":"1.7.1","slice_uuid":"87dee208-9576-3fc6-924b-eabc9334c533","build_version":"82","platform":0,"bundleID":"com.samschott.maestral","share_with_app_devs":1,"is_first_party":0,"bug_type":"309","os_version":"macOS 13.3 (22E252)","roots_installed":0,"name":"Maestral","incident_id":"6B851E2A-C45F-404F-ABE4-3272A14E797B"}
{
"uptime" : 120000,
"procRole" : "Unspecified",
"version" : 2,
"userID" : 502,
"deployVersion" : 210,
"modelCode" : "MacBookPro18,3",
"coalitionID" : 29243,
"osVersion" : {
"train" : "macOS 13.3",
"build" : "22E252",
"releaseType" : "User"
},
"captureTime" : "2023-04-06 08:07:02.0298 +0200",
"incident" : "6B851E2A-C45F-404F-ABE4-3272A14E797B",
"pid" : 49035,
"translated" : false,
"cpuType" : "ARM-64",
"roots_installed" : 0,
"bug_type" : "309",
"procLaunch" : "2023-04-06 08:07:01.3851 +0200",
"procStartAbsTime" :<PHONE_NUMBER>257,
"procExitAbsTime" :<PHONE_NUMBER>381,
"procName" : "Maestral",
"procPath" : "/Applications/Maestral.app/Contents/MacOS/Maestral",
"bundleInfo" : {"CFBundleShortVersionString":"1.7.1","CFBundleVersion":"82","CFBundleIdentifier":"com.samschott.maestral"},
"storeInfo" : {"deviceIdentifierForVendor":"D232C80E-6052-5BD2-9478-E55AD4172B3A","thirdParty":true},
"parentProc" : "launchd",
"parentPid" : 1,
"coalitionName" : "com.samschott.maestral.maestral",
"crashReporterKey" : "35F18E75-5CAB-CCED-1BAB-11F4491B4C7C",
"throttleTimeout" : 10,
"codeSigningID" : "com.samschott.maestral",
"codeSigningTeamID" : "G34LNR8C4Y",
"codeSigningFlags" : 587277073,
"codeSigningValidationCategory" : 6,
"codeSigningTrustLevel" : 0,
"wakeTime" : 286,
"sleepWakeUUID" : "F8B67669-78B0-4014-AA1E-BA78D81F8D5A",
"sip" : "enabled",
"exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGKILL (Code Signature Invalid)"},
"termination" : {"flags":66,"code":4,"namespace":"CODESIGNING","indicator":"Launch Constraint Violation"},
"extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
"faultingThread" : 0,
"threads" : [{"triggered":true,"id":1902039,"threadState":{"x":[{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":6163233640},"esr":{"value":0,"description":" Address size fault"},"pc":{"value":4311747136,"matchesCrashFrame":1},"far":{"value":0}},"frames":[{"imageOffset":19008,"symbol":"_dyld_start","symbolLocation":0,"imageIndex":0}]}],
"usedImages" : [
{
"source" : "P",
"arch" : "arm64e",
"base" :<PHONE_NUMBER>,
"size" : 589824,
"uuid" : "6f2c2bb8-4bbc-3b64-b927-d3f3193b6295",
"name" : ""
},
{
"source" : "P",
"arch" : "arm64",
"base" :<PHONE_NUMBER>,
"size" : 2752512,
"uuid" : "87dee208-9576-3fc6-924b-eabc9334c533",
"name" : ""
}
],
"vmSummary" : "ReadOnly portion of Libraries: Total=4912K resident=0K(0%) swapped_out_or_unallocated=4912K(100%)\nWritable regions: Total=8448K written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=8448K(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nSTACK GUARD                       56.0M        1 \nStack                             8176K        1 \n__DATA                            1440K        3 \n__DATA_CONST                       224K        2 \n__DATA_DIRTY                        16K        1 \n__LINKEDIT                        1648K        2 \n__TEXT                            3264K        2 \n===========                     =======  ======= \nTOTAL                             70.4M       12 \n",
"legacyInfo" : {
"threadTriggered" : {
}
},
"logWritingSignature" : "53b655fdd8357c7f7120a840d4a58d160b8ee6c8",
"trialInfo" : {
"rollouts" : [
{
"rolloutId" : "62699e1ec1ff2978b47f6c3b",
"factorPackIds" : {
"SIRI_FIND_MY_CONFIGURATION_FILES" : "631f72d1de559130376df1fb"
},
"deploymentId" : 240000023
},
{
"rolloutId" : "61675b89201f677a9a4cbd65",
"factorPackIds" : {
"HEALTH_FEATURE_AVAILABILITY" : "63f8068a238e7b23a1f30123"
},
"deploymentId" : 240000055
}
],
"experiments" : [
{
"treatmentId" : "c28e4ee6-1b08-4f90-8e05-2809e78310a3",
"experimentId" : "6317d2003d24842ff850182a",
"deploymentId" : 400000013
}
]
},
"reportNotes" : [
"dyld_process_snapshot_get_shared_cache failed"
]
}
Model: MacBookPro18,3, BootROM 8422.100.650, proc 10:8:2 processors, 16 GB, SMC
Graphics: Apple M1 Pro, Apple M1 Pro, Built-In
Display: U32J59x, 3840 x 2160 (2160p/4K UHD 1 - Ultra High Definition), Main, MirrorOff, Online
Display: Color LCD, 3024 x 1964 Retina, MirrorOff, Online
Memory Module: LPDDR5, Hynix
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x4387), wl0: Mar  8 2023 18:27:05 version <IP_ADDRESS>.8.7.144 FWID 01-ec2ac09e
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: USB31Bus
USB Device: My Passport 2629
USB Device: USB31Bus
USB Device: EXTERNAL_USB
USB Device: USB31Bus
USB Device: Beats Fit Pro Case
Thunderbolt Bus: MacBook Pro, Apple Inc.
Thunderbolt Bus: MacBook Pro, Apple Inc.
Thunderbolt Bus: MacBook Pro, Apple Inc.

Thanks for the detailed report! I'll try to reproduce on a Virtual Machine.
In the meantime, two questions:

What do you get when manually checking the code signature with spctl -a -v /Applications/Maestral.app and codesign --verify --deep --verbose --check-notarization /Applications/Maestral.app?
Did you update Maestral from the previous version using the in-app update mechanism? If yes, could you try to download and install the latest release directly instead?

Does launching manually with launchctl start com.samschott.maestral.maestral work? This should replicate what macOS does when launching Maestral on login.

I'm not sure if I'm running into the same issue, but Maestral is configured to start at login, but doesn't I'm not sure if it's crashing or if it just doesn't try to start.
Running launchctl start com.samschott.maestral.maestral opens the app with no problem for me at least.


Repo card metadata block was not found. Setting CardData to empty

System Info
optimum-habana          1.8.0
docker vault.habana.ai/gaudi-docker/1.12.0/ubuntu22.04/habanalabs/pytorch-installer-2.0.1:latest
Synapse Version 1.12.0-480

https://github.com/huggingface/optimum-habana/tree/ee5e8fc39e78800eb3763d048192bef036fadc4c/examples/contrastive-image-text

The step in Readme fails with "Repo card metadata block was not found. Setting CardData to empty"
The dataset validation step, pasted below.

import os
import datasets

COCO_DIR = os.path.join(os.getcwd(), "data")
ds = datasets.load_dataset("ydshieh/coco_dataset_script", "2017", data_dir=COCO_DIR)

Information

[X] The official example scripts
[ ] My own modified scripts

Tasks

[X] An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
[ ] My own task or dataset (give details below)

Reproduction
Just launch the docker and follow the Readme steps, you see this issue.
Expected behavior
I assume dataset get loaded , Just see no response

Where have you downloaded the zip files? It's likely that they are not in a folder called data in the current directory.


Destroy is not destroying block storage for VPC instances that are created by DA

Destroy is not destroying block storage for VPC instances that are created by DA. After terraform destroy is run, all resource created by the DA should be deleted, but it seems these are not. Example:
% ic resource service-instances --type all -g core-hygcif-workload-rg
Retrieving instances with all types in resource group core-hygcif-workload-rg in all locations under account GoldenEye GoldenEye Development's Account as<EMAIL_ADDRESS>OK
Name                                       Location     State    Type                Resource Group ID
pvc-1058107b-490d-40ac-8653-1b006f801d48   us-south-1   active   resource_instance   f0b2fa3331144f56b9d4572285299604
pvc-15435e82-6291-4b87-9289-e656bba273b8   us-south-1   active   resource_instance   f0b2fa3331144f56b9d4572285299604
pvc-2dd4c8d4-cbe0-42fc-bb3c-eb7a13ff5854   us-south-2   active   resource_instance   f0b2fa3331144f56b9d4572285299604
pvc-57d3b859-281f-4823-a745-0338cd6255f5   us-south-2   active   resource_instance   f0b2fa3331144f56b9d4572285299604
pvc-5db2d51f-4965-4f0e-92ff-aa5fe76ad537   us-south-1   active   resource_instance   f0b2fa3331144f56b9d4572285299604
pvc-66c4d396-fdcd-4d4a-820e-ee6184fda289   us-south-2   active   resource_instance   f0b2fa3331144f56b9d4572285299604
pvc-800d86c3-72c3-4513-b2a9-e2d2daf474cd   us-south-2   active   resource_instance   f0b2fa3331144f56b9d4572285299604
pvc-91ba0652-9fca-4349-ac7e-40d8f6638f08   us-south-2   active   resource_instance   f0b2fa3331144f56b9d4572285299604
pvc-ce789131-a406-4161-9610-567057850363   us-south-1   active   resource_instance   f0b2fa3331144f56b9d4572285299604
pvc-e14457f2-3a56-468d-a621-950031376ee8   us-south-2   active   resource_instance   f0b2fa3331144f56b9d4572285299604
pvc-e556c9d9-d986-460f-8172-620c8fac5b29   us-south-2   active   resource_instance   f0b2fa3331144f56b9d4572285299604
pvc-e5f3c8aa-9fb5-4f5a-b38a-2e7f524d24ca   us-south-1   active   resource_instance   f0b2fa3331144f56b9d4572285299604
pvc-e7d14d7a-b0f3-4446-9e86-379089a69a05   us-south-2   active   resource_instance   f0b2fa3331144f56b9d4572285299604
pvc-ec80ec23-061a-422c-bbe5-227bb907357b   us-south-1   active   resource_instance   f0b2fa3331144f56b9d4572285299604
pvc-ed12604a-c006-45b4-abcb-b2739ea39e74   us-south-2   active   resource_instance   f0b2fa3331144f56b9d4572285299604
pvc-fb2ec5d5-c5e2-4ff0-8e46-c0432c6e71d1   us-south-1   active   resource_instance   f0b2fa3331144f56b9d4572285299604

FYI, It means that the PR tests will always fail on destroy too

@NatarajBTI Actually I'm not sure that MAS should ever expose the ability to clean them up. I think if the user choice to delete persistent storage when deleting the cluster, these would get cleaned up. Terraform also has the ability to pick this option when provisioning clusters, however I found we have not exposed it in landing zone. I created an issue to expose it in landing zone so we can use it for the tests so they don't fail. For now Ill push a workaround so tests pass until we expose this feature.

@NatarajBTI can you link to the documentation for this to see if we are good to close this?

Link --> https://test.cloud.ibm.com/docs-draft/maximo-application-suite?topic=maximo-application-suite-deploying-da
@ocofaigh - Please see the above screenshot or in above link & that's the note we have added in our documentation. Pasting the note below:
"Tip: After you uninstall the application, some persistent volumes remain. You can choose to either retain or manually remove the data."


Is this project abandoned?

Just curious.
There is no commit in the last 3 years, 1 year old PR with no answer and several issues without answer or action taken.
Is there any up-to-date fork, or alternative project that fully works with PostgreSQL 10+ features? I have started my own 10+ fork, indeed, just asking to avoid useless extra work if anybody has done it already.

Doesn't seem like there is an up-to-date fork according to https://github.com/AlexTatiyants/pev/network

@AbelVM I've been working on a fork/rewrite as well with a bunch on fixes and new stuff. I hope I can publish it soon.
What are the PostgreSQL 10+ features you are thinking of?

Parallelism mainly:

complete and correct workers support (#26 and #29 )
parallel workers' sort activity
parallel hash join

And also, as you are working on it :grin: , some nice to have features, not related to Postgres version:

Color-coding the join methods( nested, merged, hash joins) and sort methods (external, quicksort, heapsort) based on its theoretical performance from fastest to slowest (green to red), to get a quick look of the selected strategy per node
Big warning when a node operation is using disk!!
Adding information of the selectivity of a node: output rows/ input rows ratio and visual clue when the ratio is close to 1
Pack it as a component, to enable devs to integrate it into other projects instead of being standalone
Ability to consume external JSONs, local or remote. This way, it can be connected to a pipeline instead of being an isolated piece where you need to copy&paste the explain results

@AbelVM As mentioned earlier, I worked on a rewrite of PEV given its inactivity with the hope to mainain and enhance it.
Please have a look at https://github.com/dalibo/pev2
Looking forward to getting feedback.

Looks über-coo @pgiraud l!
We should move the conversation to your repo, but:

Is it planned to go through all the pending issues here? Roadmap? I have seen some of them already fixed in your examples! :grin:
This: https://github.com/AlexTatiyants/pev/issues/42#issuecomment-509985745 . There's a parallel branch so... :grimacing:

Will give it an IRL test tomorrow at the office and any further feedback will be posted at your repo

I came here to report the issues already reported in #26 #29 and stumbled on https://explain.dalibo.com/plan separately. It is a great replacement, @pgiraud!


Setting Custom X-Headers when creating new message

Version (e.g. 1.0, dev-master): 1.0
PHP version: 5.4
Microsoft Exchange version: Exchange 2010
Description of problem: Need to set custom X-Headers
Is there any way to set custom x-headers to emails created using the 1.0 library?

Even I am struggling to find any documentation on this.

I know this is old, but I was able to successfully add a custom X-Header to my Message. And I was searching for a solution myself.
You must add a ExtendedPropertyType to the MessageType->ExtendedProperty[]
Example
$Message = new MessageType();
/*
Add all Message Requirements
*/
//Add a Extended Property
$EP = new ExtendedPropertyType();
$EP->ExtendedFieldURI = new PathToExtendedFieldType();
$EP->ExtendedFieldURI->DistinguishedPropertySetId = "InternetHeaders";
$EP->ExtendedFieldURI->PropertyName = "X-Dwc-Test"; //The custom X-Header
$EP->ExtendedFieldURI->PropertyType = MapiPropertyTypeType::STRING;
$EP->Value = 'String';
//Add the X-Header
$Message->ExtendedProperty[] = $EP;
// Send the Message
I'm using it to know what department to send a list of emails to when/if the message bounces back from a un-monitored mailbox. I have to parse through the body of the Bounce message for it, but it is there.

I know this is old, but I was able to successfully add a custom X-Header to my Message. And I was searching for a solution myself.
You must add a ExtendedPropertyType to the MessageType->ExtendedProperty[]
Example
$Message = new MessageType();
/*
Add all Message Requirements
*/
//Add a Extended Property
$EP = new ExtendedPropertyType();
$EP->ExtendedFieldURI = new PathToExtendedFieldType();
$EP->ExtendedFieldURI->DistinguishedPropertySetId = "InternetHeaders";
$EP->ExtendedFieldURI->PropertyName = "X-Dwc-Test"; //The custom X-Header
$EP->ExtendedFieldURI->PropertyType = MapiPropertyTypeType::STRING;
$EP->Value = 'String';
//Add the X-Header
$Message->ExtendedProperty[] = $EP;
// Send the Message
I'm using it to know what department to send a list of emails to when/if the message bounces back from a un-monitored mailbox. I have to parse through the body of the Bounce message for it, but it is there.

Stunning - thank you :-)

it didnt work for me. Did it work for anyone?