System and Stream Descriptor API cleanup.

Major changes:

Made withPhysicalName(String) a protected method in StreamDescriptor.
The primary reason to set the physical name is to use stream names with special characters in them, which streamId doesn't support. This change is to make it so that the physical name setter should only be exposed by systems where it means something useful - like HDFS.
Renamed some methods in StreamDescriptor for clarity.

@cameronlee314 @nickpan47 Please take a look.


Very slow scroll with cursorline enabled in newer versions of Vim

With cursorline enabled, the scroll performance on recent versions of Vim is really bad. The cursorline keeps jumping across lines (on let's say a continuous press of j or <C-y>). I have checked this with folding disabled, all plugins disabled, and with both the settings for lazyredraw. The version I am using is 8.0.1400 on macOS.
I checked with the default version provided by macOS (8.0.642) and via SSH on a Linux machine with version 7.2.411, and the issue does not exist, even with my full vimrc (excluding the content for the features that don't exist on the older versions).

Hi @chrisbra!
So I have bisected the offending commit. It seems https://github.com/vim/vim/commit/c9e9c7140994154bb4a29764491d42c001b24596 (patch 8.0.1275) is the culprit.
Scroll works fine till 8.0.1274.

Hu, I wonder why that commit slows it down...
On a related note, Bram says in the todo list:
https://github.com/vim/vim/blob/218101442e8775bd1f05d1dda18d3946ee032dd1/runtime/doc/todo.txt#L288-L289
I think Bram is right there. Syntax.c contains this bit:
https://github.com/vim/vim/blob/218101442e8775bd1f05d1dda18d3946ee032dd1/src/syntax.c#L9008-L9017
(note hl_combine_attr does not cache the result), however in screen.c we use hl_combine_attr() quite a lot for 'cursorline', 'cursorcolumn' and the 'colorcolumn' highlighting in win_line()
So the original comment in syntax.c that "we expect only a few hits for hl_combine_attr" is no longer true when cursorline is set.
Unfortunately, I understand syntax.c not really well to be able to fix this.

Can confirm that vim performance is really bad with cursorline set.  I'm using 8.0.1420.

Regarding hl_combine_attr, it should be safe to memoize it with a hashtable or something, as long as this cache gets cleared in clear_hl_tables. I have a branch in neovim which implements this (not yet published, does a lot of other speculative changes also, but shouldn't be hard to isolate this cache) , however it relies on  khash in klib for a (int,int) -> int hashtable, which neovim includes as a library, and I'm not sure if including khash would be acceptable with vim c standards. But there are of course other int hashes out there.
Tough I suspect hl_combine_attr is not the main culprit just for cursorline, it seems vim internally redraws the entire window when cursor is moved, and not just the old and the new cursor line. (checked with vim -u NONE -N, writedelay, and bypassing char_needs_redraw with magic writedelay value). But not sure if this is related to the bisected patch above.

Can confirm that the issue is still present at least up until 8.1.0022-1 in Manjaro distro.

I can also confirm this. On Debian testing I currently have the following version installed:
VIM - Vi IMproved 8.1 (2018 May 17, compiled Jun 20 2018 02:44:05)
Included patches: 1-89
I Have to disable relativenumbers and cursorline. Either one will result in slower scrolling. Though this only happens in areas, where there is a lot to parse for syntax highlight. But without those two options enabled, everything scrolls in the same speed if I move the cursor around.

I have the same issue on vim 8.1 on macOS and on Ubuntu. Temporarily disabled relative numbers to make vim useable.

I have the same issues -- whenever I open a C file with Doxygen as c.doxygen (so that I get highlighting) and have relativenumber est, one of the CPU cores goes up to 100% and vim starts freezing while others stay at ~10%. Doing the same in neovim doesn't produce the lag, and 3 out of 4 cores go up to 40-50%. So, maybe it is a design issue, and it would be possible to rebalance the load from a single core to others?

+1

Patch  8.0.1275 is very simple and has nothing to do with redrawing.  Did someone double-check that this would be the patch that causes the problem?
When I try myself, with 'cursorline' and 'relativenumber' set in src/main.c, everything updates quickly.
Does the problem only happen in some file types perhaps?

Hm...interesting. It really seems to be only slow in some file types. src/main.c works like a charm with my current setup. CPU almost not used. Using Perl is another thing. The file I am currently working in the most and where I simply have to do the workaround mentioned above is here: https://github.com/Jeansen/cdmn/blob/develop/cdmn
Though I must say I also had this problem without any plugins activated. That's actually why I thought it is related to vim in the first place and not any plugin.
@brammool: Would you mind having a look for yourself?

Please try to come up with a reproducible example using vim --clean. It might be simply because the syntax rules are too expensive, so please also test with syntax highlighting turned off. You might want to show the syntime report (see :h :syntime) just to make sure and be able to tell, which syntax rules affects this. You might also want to check or adjust your 'redrawtime' setting.

@chrisbra OK, I will do some tests and report back here.

Please check with https://github.com/vim/vim/commit/90a997987dbbe43af3c15118a35f658f0f037d1d

Works like a charm ................. :-) without changing my setup.

there were a couple of following commits fixing relativenumber and cursorline performance problems. So let me close this now.


Optimization

I am not sure how to proceed further to closing this PR i would like some guidance. @rabadin @jsquyres

The error is in red in the CI run output: Error: cmd/dowload_test.go:12:2: "runtime" imported and not used.
If you remove this the CI passes.

this is what i see on my end for the lines 74 to 78, maybe you are referencing an older resource.go,
i made sure to remove any instances of os.Remove(fileName).

Right, and what you see is what @rabadin is asking about: you deleted this line:
return getUrl(u, fileName, ctx)

and replaced it with a bunch of new code.  There's no reason to do that on this PR.  You can go ahead and remove all that new code from GetUrlToDir() and just put that one line back.

@jsquyres not a problem at all, thank you for pointing that out, i was confused so thanks! i managed to delete the code i added and returned the line back to where it was before.

Minor problem -- it doesn't compile.  Can you fix?
Error: internal/resource.go:71:2: declared and not used: fileName
Error: internal/resource.go:72:20: undefined: filename

Still got some compile errors:
Error: cmd/dowload_test.go:150:41: not enough arguments in call to lock.Download
	have (string, nil, nil, string)
	want (string, []string, []string, string, bool)
Error: cmd/dowload_test.go:1[7](https://github.com/cisco-open/grabit/actions/runs/12160436133/job/33912772022?pr=28#step:4:8)6:41: not enough arguments in call to lock.Download
	have (string, nil, nil, string)
	want (string, []string, []string, string, bool)

I think the confusing point here is:

This PR compiles and runs the tests ok.
BUT CI is failing.

Why?
The reason why is because github is effectively making a pretend merge commit from this branch and main, and then doing the compile and running the tests there.  That's where the compile fail / test fails are occurring.
My suggestion would be to rebase this PR on top of main.  Then build and run the tests, and you should see the same failures that CI is showing.

i am not sure but i hope i fixed the problem that was with the PR, even though the CI test passes i know there will be conflicts which is why i am not sure.

Conflicts happen when something lands on the target branch that modifies the exact same lines that your change touches. Unless something lands before your PR does, there won't be conflicts.

@777Denoiser Can you please squash your commits into just one commit?


no matching manifest for linux/arm64/v8 in the manifest list entries

Got this error when trying to pull a postgres image, it looks like an issue with the manifest or something
services:
  postgres:
    image: postgres:15-alpine
    # platform: linux/arm64/v8 <= It does't change anything
    restart: unless-stopped
    environment:
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: postgres
      POSTGRES_DB: main_db
    ports:
      - 5432:5432
    volumes:
      - postgresdb_data:/var/lib/postgresql/data
    networks:
      - database

volumes:
  influxdb_data:
  postgresdb_data:

networks:
  database:

I have tried to use latest, with no success. What's happening ?


On iOS 11.1b Pin validation fails

Hello,
I've noticed that from iOS 11.1 beta pinning always fails.
I'm not sure what Apple changed and I know it's a beta but I thought it's an important information to consider. I hope things would be fixed in the next beta.
Does anyone have the same issue?

Hello,
Thanks for letting us know! Do you see anything in the logs?

=== TrustKit: Proxy-ing NSURLConnectionDelegate: AFHTTPRequestOperation
=== TrustKit: Checking certificate with CN: Amazon Root CA 1
=== TrustKit: Subject Public Key Info hash was found in the cache
=== TrustKit: Testing SSL Pin <fbe30180 31f9586b cbf41727 e417b7d1 c45c2f47 f93be372 a17b96b5 0757d5a2>
=== TrustKit: Checking certificate with CN: Amazon
=== TrustKit: Subject Public Key Info hash was found in the cache
=== TrustKit: Testing SSL Pin <252333a8 e3abb723 93d6499a bbacca86 04faefa8 4681ccc3 e5531d44 cc896450>
=== TrustKit: Checking certificate with CN: *.
=== TrustKit: Subject Public Key Info hash was found in the cache
=== TrustKit: Testing SSL Pin <70f8beba 49a87d05 f5768df9 5e8a4665 caf331ec 41a1394c 4ab60d25 3be7255f>
=== TrustKit: Error: SSL Pin not found for
=== TrustKit: Pin validation failed for
=== TrustKit: Pin failure report for  was not sent due to rate-limiting

Is there a way to have more logs?

Are you sure that you set the right pins in your app? We haven't received any other reports about this problem so I will close it. Feel free to re-open if this is still an issue.


Feature request - Add support for ScummVM

Add support for ScummVM games.

I don't think I can add this until Retroarch adds support.
Lauching the standalone version of ScummVM is too messy given the complexity of knowing which of the many game related files should be used in the launch command.
Closing the request for the time being, sorry.

Scummvm has been added to the nightly build
https://github.com/jimbob4000/RetroFlow-Launcher/releases/tag/Nightly


Jellyfin and other app webhook integration request

Please can you add webhook integration for the following;

Jellyfin - https://github.com/jellyfin/jellyfin-plugin-webhook
Overseerr - https://docs.overseerr.dev/using-overseerr/notifications/webhooks
Sonarr - https://github.com/Sonarr/Sonarr/wiki
Radarr - https://github.com/Radarr/Radarr/wiki
Uptime Kuma - https://uptime.kuma.pet/docs/Notification-Methods
Diun - https://crazymax.dev/diun/notif/webhook/

Thank you

I made a few shellscripts here, works with Sonarr and Radarr if you use "Custom scripts". They aren't perfect, but works. https://github.com/nickexyz/ntfy-shellscripts
Bash is needed though.

Damn I didn't see those! So are they designed to be run in the container?

Sure, if you are using Docker, then just place them in a volume where the service can access them. The /config folder probably works.

Sure, if you are using Docker, then just place them in a volume where the service can access them. The /config folder probably works.

Do you call them with cron what's the method you use

Sonarr -> Connections -> Add -> Custom Script ->Choose the script path :)

Sonarr -> Connections -> Add -> Custom Script ->Choose the script path :)

Thank you had no idea that was an option

Glad to help!

@nickexyz This is great. Could I trouble you to create a pull request against the examples page in the docs and describe and link to this? I could try to describe it, but I don't know what half of these tools do :-D

I'll push my scripts and JSON examples too!

@binwiederhier Sure thing!

This got closed but AFAICT both Jellyfin and Diun still have no examples, either in the docs or in the repo. It's a shame, as Jellyfin is a pretty popular project and could really benefit from neat ntfy integration.

@axelsimon I would be thrilled if you could provide an example, preferably with screenshots and such. I do not use either myself, so feel free to provide a PR or instructions here so I can add it.

@Fallenbagel can you grab your screenshots and dump them here for the jf webhooks for ntfy please, I moved back to plex so cant post mine.

<sidebar>
@sudo-kraken Joe!! I used your app review as the focus quote on the ntfy.sh website! I wanted to ask your permission first, but at the time I couldn't for the life of me find your GitHub username. Anyway, is this okay with you? If not, I can take it down obviously!

</sidebar>

@binwiederhier yeah man its no problem at all its because I swapped my username lmao should still have me on discord. I saw it the other day was like hell yeah! I remember writing the powershell examples many moons ago!

Discord search is garbage, I tried looking without success.

No worries im still using ntfy, moved to ios now so lost my testing status though.

@Fallenbagel can you grab your screenshots and dump them here for the jf webhooks for ntfy please, I moved back to plex so cant post mine.

Will share, hopefully tonight


Add submodule foreach

A lot of this is to work around the fact that git_submodule_foreach’s callback isn’t typedef’d. That’s fixed in https://github.com/libgit2/libgit2/pull/3539, but there hasn’t been a release including it yet. So in the mean time, we need to do a little extra futzing.

LGTM


Updated sharedID: include module configuration

🏷 Type of documentation

[x] update bid adapter

I stumbled upon an issue integrating the SharedID module. For some reason the first party endpoint was not extending cookies that had been set previously. I dug through the source to discover that, while extend defaults to true in the CDN script, it defaults to false in the module.
This PR adds a configuration table with possible options and defaults for the module.

Hi @Egge7
Thanks as lot for this addition. I think a link to this page should be sufficient though:
https://docs.prebid.org/dev-docs/modules/userid-submodules/sharedid.html
what do you think :smile:

Hi @Egge7
Thanks as lot for this addition. I think a link to this page should be sufficient though: https://docs.prebid.org/dev-docs/modules/userid-submodules/sharedid.html
what do you think 😄

Oh haha... Yes that should be enough. Thanks for the heads up, I have removed the table and added the link instead.

Thanks for the cleanup @Egge21M :heart:


Allow option to enable CORS headers sent in response

No Access-Control-Allow-Origin CORS prevents usage from JS applications on other domains.

Fixed in 5729ca4.


Only one video format has audio

I have tried to download it fetches many video formats but only one mp4 format has the audio, other formats does not have audio with them. How can i resolve this issue???

That's expected behavior, because youtube itself splits its streams into separate containers for audio and video, and then plays them both at the same time. Eventually I plan on adding an option that lets you download both streams separately and then merge them together just like python's youtube-dl does.
This is a duplicate of:
https://github.com/Athlon1600/youtube-downloader/issues/44#issuecomment-606948010

Thanks sir for your kind response.!


AOS and Owl Carousel

I'm using AOS and owl carousel to animate elements as you go from slide to slide. The first page works fine, but when I go to the next slide, the elements have already animated. I tested this out with a slide that has a long page. I went straight to that slide and scrolled all the way to the bottom, and then when I go to another page, all the elements (even when you scroll down) have already reached the position (I am mainly using fade ins). Anyone experience this or can provide some guidance? I've tried AOS init before and after carousel initialization.
Here is the code used:
var owl = $('.owl-carousel');
owl.owlCarousel({
    items: 1,
    dots: false,
    loop: false,
    autoplay: false,
    nav: false,
    singleItem: true,
    mouseDrag: false,
    touchDrag: false,
    pullDrag: false,
    freeDrag: false,
    autoWidth: false,
    smartSpeed: 10,
    URLhashListener: true,
    startPosition: 'URLHash',
    margin: 0,
    stagePadding: 0,
    autoHeight: true
});

AOS.init({
    duration: 1000,
    offset: 120,
});

I have that problem too

The same here. I'm waiting for some solution


Invalid validation error message

Unable to initialize module because of Invalid validation error message.
Initializing modules...
There are some problems with the configuration, described below.

The Terraform configuration must be valid before initialization so that
Terraform can determine which modules and providers need to be installed.
╷
│ Error: Invalid validation error message
│
│   on .terraform/modules/crowdstrike_kpa/modules/k8s-protection-agent/variables.tf line 35, in variable "cloud":
│   35:     error_message = "Cloud must be one of us-1, us-2 or eu-1"
│
│ The validation error message must be at least one full sentence starting
│ with an uppercase letter and ending with a period or question mark.
│
│ Your given message will be included as part of a larger Terraform error
│ message, written as English prose. For broadly-shared modules we suggest
│ using a similar writing style so that the overall result will be
│ consistent.
╵

ERRO[0007] 1 error occurred:
        * exit status 1

Hi,
Based on the error it looks like the value passed in for cloud is not passing validation.
Can you confirm you are passing in us-1, us-2, or eu-1

Thank you, we are using Terraform v1.1.0

Thanks for your help, a PR has been created with the fix. This looks like a validation that is no longer done on newer versions of terraform. Using 1.1.0 I ran into the same issue you reported.

v0.1.0 release should have the updated fix.


*.site.com + abc.site.com rules don't work together: Please add an annotation to set routing rule priority

Looks like App Gateway just uses the first rule that matches so whenever it hits *.site.com/* all other rules are ignored.
There is a "priority" property on the routing rules but I can't see any annotations that look like they'd set that.
Originally posted by @robs in https://github.com/Azure/application-gateway-kubernetes-ingress/discussions/1157#discussioncomment-530543

I don't think this would be needed if #1177 was resolved so closing off.
#1177 would be a much nicer resolution as it will automatically order them so won't involve manually setting priority.


Crashes everytime I open on Nexus 5 Android 5.1.1

Hey love the app however, ever since the most recent update, the app crashes as soon as I open it up. I'm not sure what's causing it, but it used to work perfecly.
Nexus 5
Android 5.1.1

Are you be able to extract a logcat for me?

Issue closed, should be fixed by commit 358e06846427b3b43f627bf8e9bc795bbaae475a.


please update livereload dependency

The outdated version has many bugs that are fixed by now :)

Nah I'm sorry I was confused by livereload-js which is another dependency ...


Adds remove_approval feature to treasury pallet

This PR adds a feature to remove previously approved proposals from the approval queue.
Resolves Force Remove Approved Extrinsic in Treasury #10952
polkadot companion: paritytech/polkadot#5352
supercedes: paritytech/substrate#10989

/tip small

/benchmark runtime pallet pallet_treasury

get out!
dont steal my email anymore!

发件人: joe petrowski @.>
发送时间: 2022年4月23日 9:36
收件人: paritytech/substrate @.>
抄送: Subscribed @.***>
主题: Re: [paritytech/substrate] Adds remove_approval feature to treasury pallet (PR #11243)
@joepetrowski commented on this pull request.

In frame/treasury/src/lib.rshttps://github.com/paritytech/substrate/pull/11243#discussion_r856872932:

@@ -289,6 +289,8 @@ pub mod pallet {

            InvalidIndex,

            /// Too many approvals in the queue.

            TooManyApprovals,

          /// Proposal not in approval queue.

"Approval queue" suggests that it's waiting to be approved, but in this case it's looking for proposals that have already been approved.
⬇ Suggested change

          /// Proposal not in approval queue.

          /// Proposal has not been approved.

—
Reply to this email directly, view it on GitHubhttps://github.com/paritytech/substrate/pull/11243#pullrequestreview-950948785, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQH4D33GFGY6DJSN56H6WHTVGPAADANCNFSM5T2FPAGA.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

@guzzit will you please include your polkadot or kusama address to your PR description for a Treasury Tip.

bot merge

bot merge

bot merge


[feature request] custom tickFormat

useful for percentage strings or custom raings like 'A-'.

I'm not sure how to contribute, but it seems this can be achieved by changing all backgroundScale.tickFormat to this.props.tickFormat if a tickFormat prop being passed by user.

Thanks for checking out the library! I'll have a look.
String formatting is part of d3-scale (https://github.com/d3/d3-scale#continuous_tickFormat) -- the change is probably something in the radiusScales function and then ensuring the necessary props get passed down through <Radar ... />

Hm - the more I look, the more I think the answer is providing a better API for <RadarWrapper .../> so that these sorts of customisations can be provided explicitly. Did you try using it? It's flow-typed so should be a little friendly but am aware its a pretty verbose component and so any feedback is welcome.

Thanks for looking into it.
If I gonna use RadarWrapper directly, I guess I should change backgroundScale prop. However I actually don't want to change scale, but just tickFormat function. And I have to copy and paste codes from Radar to generate other props.
I'm not familiar enough with the codebase, and I don't even understand why there's RadarWrapper in the first place. Looks like an unnecessary abstraction but I'm likely wrong.

Anyway, this lib is good for what it is. A single domain radar chart can be up-and-running quickly. Asking for customization may be too much. 😄
react-vis added support for radar chart few days ago. I gonna give it a try, tickFormat can be passed via prop domains.tickFormat.
http://uber.github.io/react-vis/#/documentation/other-charts/radar-chart


Updated Telegram with Flutter Italia Developers

Added the Flutter Italia Developers Telegram Channel where we discuss all things Flutter

Thank you!!!


Flag to disable MouseKeyboardPositionSensorVRDevice

This is similar to my previous https://github.com/borismus/webvr-polyfill/pull/18
I have my own mouse and keyboard controls and MouseKeyboardPositionSensorVRDevice is conflicting with them. I would like to have the option to disable them. If you want to handle this differently let me know and I will update the PR.

I'm curious what you're doing differently in your project? Are you just using OrbitControls? What customization are you seeking that MouseKeyboardPositionSensorVRDevice doesn't work for you.

Your controls prescribe a specific type of locomotion that is not suitable for all experiences. For instance, controlling a walking avatar is not the same as controlling a car or a flying vehicle. It's very nice that you provide a default that get you going but you should allow people disable them and implement their control schemes.

Fair enough!


reverse combine order of filters

What type of PR is this?

Improvement
What does this PR do / why is it needed ?

earlier the order of and/or filter condition combination was reversed. Now keep the order as natural order described by user in pure query.
earlier:     condition2 and condition1
new :     condition1 and condition2
As some databases process sql filters in order and only process certain conditions if previous condition is processed  ( i.e condition2 is only checked when condition1 passes) . if this is reversed , if will cause runtime failures.
Which issue(s) this PR fixes:

Fixes #
Other notes for reviewers:
Does this PR introduce a user-facing change?

This PR is stale because it has been open for 30 days with no activity. Please remove stale label or add any comment to keep this open. Otherwise this will be closed in 5 days.

This PR was closed because it has been inactive for 35 days. Please re-open if this PR is still relevant.


[BUG] Makefile:103: recipe for target 'p2pd' failed

Quickstart steps fail during build process.
Description

Attempted to use Quickstart guide in Linux Mint 20, but build process fails.
Expected Behavior

Build process completes and fuzzer runs.
Actual Behavior

Build process fails.
Possible Fix

I noticed that a number of packages are downloaded from the Ubuntu 18.04 repo even though I'm using a distribution based on Ubuntu 20.04
Steps to Reproduce

git clone --depth 1 --recurse-submodules https://github.com/sigp/beacon-fuzz.git
git clone --depth 1 https://github.com/sigp/beacon-fuzz-corpora.git
cd beacon-fuzz
sudo ./runfuzzer.sh block_header ../beacon-fuzz-corpora/0-9-1/mainnet/block_header/ ../beacon-fuzz-corpora/0-9-1/mainnet/beaconstate
Your Environment

Version/Commit used: c8373eabcb9cc7439f9711f0f795b6cbdb665344
Operating System and version: Linux Mint 20

Thanks @SeaMonkey82. This part of the project is not currently maintained and is actually being completely revamped - see the branch beaconfuzz_v2.
Once that branch is merged, this issue will be resolved.

The PRs #55 and #56 have been merged. Feel free to reopen this issue if you're still having problems running any of our fuzzing tools @SeaMonkey82


chore(main): release 0.0.5

:robot: I have created a release beep boop
0.0.5 (2024-03-05)
Miscellaneous Chores

Release 0.0.5 (#42) (ada2bf1)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/bodgit/memcardpro/releases/tag/v0.0.5 :sunflower:

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
130

Relevant Lines:
214

💛  - Coveralls


Mozilla Public License 2.0

The GPL family of licenses are not perfect. Notably they are incompatible with
the SIL OFL 1.1 used by the fonts in scratch-render-fonts. In the packager we
'statically link' all of this those fonts into one HTML file. Is that legal?
Seems like you can make an argument that it's not. Who knows. I'm not a lawyer.
MPL 2.0 is a good alternative: It's still copyleft, used by real projects,
backed by a real organization, and GPL compatible.
My own extensions/contributions are now MPL-2.0, as is recommended.
LGPL-3.0 should continue to be allowed here. Use it if you want.

Another license change, let's go

i love software licenses

copyright law is awesome


Excluded CI User-Agent from the downloaded modules logging  (production)

opened this one with only one commit https://github.com/cfengine/build-website/pull/118


Client Version Check

Add a configuration option to configure a minimum/recommended client version for connecting players, with a customizable login/boot message.

db4142bcf73e32cdd7a0a42ba44119620db4de05


[Feature] Support load model from modelscope

Motivation
It is fast for CN users. because GFW blocked huggingface.co
Related resources
No response
Additional context
No response

PR #1069 addresses this issue


BAEL-2887: add resfresh token feature

please retest this

retest this please
note: this is a comment to re-trigger the CI build


Searching similar vectors in SQLModel

I want to build a function for fetching similar vectors with the distance metrics. I have used the exact command written in the README.md but looks like it's not working for me.
Here's the code:
async def get_similar_vectors(session: AsyncSession, query_vector, k=10, distance = "cosine_distance"):
    if distance == "cosine_distance":
        query = select(db_models.Vector).order_by(
            db_models.Vector.embedding.cosine_distance(query_vector)).limit(k)
    elif distance == "l2_distance":
        query = select(db_models.Vector).order_by(
            db_models.Vector.embedding.l2_distance(query_vector)).limit(k)
    else:
        query = select(db_models.Vector).order_by(
            db_models.Vector.embedding.max_inner_product(query_vector)).limit(k)

    execute_query = await session.execute(query)
    similar_vectors = execute_query.all()
    results = [
            {"id": vector.id, "embedding": vector.embedding}
            for vector in similar_vectors
        ]
    return results

Here's the issue:
select(db_models.Vector).order_by(
            db_models.Vector.embedding.cosine_distance(query_vector)).limit(k)

Cannot access member "cosine_distance" for type "List[float]"
Member "cosine_distance" is unknown
This goes same for all the other distance metrics.
To give more clarity on the Vector model:
class Vector(SQLModel, table=True):
    id: Optional[UUID] = Field(default=None, primary_key=True)
    embedding: List[float] = Field(sa_column=Column(Vector(embedding_dim)))

query_vector type is List[float]
How to fix this issue? Or more specifically how to search for similar embeddings using SQLModel?

Hi @AniLeo-01, I'm not sure how to reproduce. If you can create a minimal reproducible example, happy to look into it more.

So I have this Vectors table model:
embedding_dim = int(get_settings().EMBEDDING_DIM)
class Vectors(SQLModel, table=True):
    id: Optional[UUID] = Field(default=None, primary_key=True)
    embedding: List[float] = Field(sa_column=Column(Vector(embedding_dim)))

When I'm using the query on this table, it is showing the following issues:

Can you reproduce the issue?

I'm not sure of it, let me try it once.

Thanks @pamelafox, it looks like it's a typing error from Pyright (can reproduce with pyright tests/test_sqlmodel.py).
error: Cannot access member "l2_distance" for type "List[float]"
  Member "l2_distance" is unknown (reportAttributeAccessIssue)

I'm not sure I'd like to commit to supporting types right now, but if someone decides to fork and add, please share.


i am not able to get my feed

i have tried many times but still no success and have no idea it's not showing   here is the link for code https://jsfiddle.net/u5waey15/

Hello @adnanakram23
Seems to be an issue with the empty wrapEachWith parameter value:
https://jsfiddle.net/u5waey15/1/
A cleaner version:
https://jsfiddle.net/u5waey15/2/


[FEATURE] Support HDR input

The tool mentions it supports equirectangular inputs, but doesn't seem to accept a common format like HDR? The file I tried to load is Machine Shop 02 - HDRI Haven.
Any chance of that being supported? (The smaller JPG tone mapped version is fine, this is just about HDR file support in general)

Only plain JPEG or TIFF images are supported. We're not planning to add any new features to the Marzipano Tool, sorry.


"videosharing-embed" not load

The module ""videosharing-embed"" that you are trying to load does not exist. [$injector:nomod] Module 'videosharing-embed' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.(…)

Iam having  same problem. Did u find solution?

Iam having same problem. Did u find solution?
No I use window.open

Iam having same problem. Did u find solution?

$window.open('http://aaa.com/123.jpg');


Supporting Swift 3

Any plan in supporting Swift 3? Thanks

Yes sure, I'll start working on it very soon

Thanks, happy to help testing

Swift_3 branch is now active (https://github.com/malcommac/SwiftDate/tree/feature/swift_3); a first preliminary porting was accomplished.
Tests should be updated and validated.
After that I'll start working on API updating to better match the new Swift3 API guideline

Any plans for intermediary / Swift 2.3 branch?  Otherwise am going to branch my own from v 1.2

I have not enought time to work on both; However I'll be happy to check a PR for Swift 2.3 if you can work on it.

Can't get this lib to work under Xcode Beta 5.  Which version is currently being supported? (Beta 6 was released today).

Any news about a Swift 2.3 / 3 compatible release?

The carthage build fails with Xcode8 GM
github "malcommac/SwiftDate" "feature/swift_3"

*** Building scheme "SwiftDate-iOS" in SwiftDate.xcodeproj
** CLEAN FAILED **

The following build commands failed:
	Check dependencies
(1 failure)
** BUILD FAILED **

The following build commands failed:
	Check dependencies
(1 failure)
warning: no umbrella header found for target 'SwiftDate-iOS', module map will not be generated
warning: no umbrella header found for target 'SwiftDate-iOS', module map will not be generated
A shell task (/usr/bin/xcrun xcodebuild -project /path/to/project/Carthage/Checkouts/SwiftDate/XCode/SwiftDate.xcodeproj -scheme SwiftDate-iOS -configuration Release -sdk iphoneos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES clean build) failed with exit code 65:
** CLEAN FAILED **

The following build commands failed:
	Check dependencies
(1 failure)
** BUILD FAILED **

The following build commands failed:
	Check dependencies
(1 failure)

Trying the other branch
github "malcommac/SwiftDate" "feature/swift-3.0"

gives
$ carthage update --platform iOS
*** Fetching SwiftDate
*** Checking out SwiftDate at "bbda53afa820dbf26af07a9794fd02a3730fd777"
*** xcodebuild output can be found in /var/folders/pf/7vhqx5bn41qddypw08w9jc4w0000gn/T/carthage-xcodebuild.NGeCSH.log
*** Building scheme "SwiftDate-iOS" in SwiftDate.xcodeproj
** BUILD FAILED **

The following build commands failed:
  CompileSwift normal arm64
  CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
(2 failures)
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion+Formatter.swift:148:44: error: 'Style' is not a member type of 'DateFormatter'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion+Formatter.swift:148:83: error: 'Style' is not a member type of 'DateFormatter'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion+Formatter.swift:149:34: error: 'Style' is not a member type of 'DateFormatter'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion+Formatter.swift:121:4: error: value of type 'DateFormatter' has no member 'dateFormat'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion+Formatter.swift:122:4: error: value of type 'DateFormatter' has no member 'timeZone'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion+Formatter.swift:123:4: error: value of type 'DateFormatter' has no member 'calendar'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion+Formatter.swift:126:5: error: value of type 'DateFormatter' has no member 'locale'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion+Formatter.swift:128:5: error: value of type 'DateFormatter' has no member 'locale'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion+Formatter.swift:130:16: error: value of type 'DateFormatter' has no member 'stringFromDate'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion+Formatter.swift:185:32: error: type 'DateFormatter' has no member 'Style'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion+Formatter.swift:186:32: error: type 'DateFormatter' has no member 'Style'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion+Formatter.swift:204:32: error: 'Style' is not a member type of 'DateFormatter'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion+Formatter.swift:205:32: error: type 'DateFormatter' has no member 'Style'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion+Formatter.swift:222:32: error: type 'DateFormatter' has no member 'Style'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion+Formatter.swift:223:32: error: type 'DateFormatter' has no member 'Style'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion+Components.swift:58:21: error: value of type 'DateComponents' has no member 'valueForComponent'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion+Components.swift:174:4: error: value of type 'DateFormatter' has no member 'dateFormat'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion+Components.swift:175:4: error: value of type 'DateFormatter' has no member 'locale'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion+Components.swift:176:16: error: value of type 'DateFormatter' has no member 'stringFromDate'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion+Components.swift:211:4: error: value of type 'DateFormatter' has no member 'locale'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion+Components.swift:212:16: error: value of type 'DateFormatter' has no member 'monthSymbols'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion+Components.swift:221:4: error: value of type 'DateFormatter' has no member 'locale'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion+Components.swift:222:16: error: value of type 'DateFormatter' has no member 'shortMonthSymbols'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/NSCalendar+SwiftDate.swift:81:64: error: 'cfValue' is inaccessible due to 'private' protection level
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/NSCalendar+SwiftDate.swift:73:25: error: 'withUnsafeMutablePointers' is unavailable: use nested withUnsafeMutablePointer(to:_:) instead
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion.swift:312:17: error: value of type 'DateFormatter' has no member 'timeZone'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion.swift:313:17: error: value of type 'DateFormatter' has no member 'calendar'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion.swift:314:17: error: value of type 'DateFormatter' has no member 'locale'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion.swift:319:45: error: value of type 'String' has no member 'rangeOfString'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion.swift:320:27: error: value of type 'String' has no member 'substringToIndex'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion.swift:325:6: error: value of type 'DateFormatter' has no member 'dateFormat'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion.swift:326:19: error: value of type 'DateFormatter' has no member 'dateFromString'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion.swift:328:6: error: value of type 'DateFormatter' has no member 'locale'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion.swift:329:6: error: value of type 'DateFormatter' has no member 'dateFormat'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion.swift:330:19: error: value of type 'DateFormatter' has no member 'dateFromString'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion.swift:332:6: error: value of type 'DateFormatter' has no member 'locale'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion.swift:333:6: error: value of type 'DateFormatter' has no member 'dateFormat'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion.swift:334:19: error: value of type 'DateFormatter' has no member 'dateFromString'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion.swift:336:6: error: value of type 'DateFormatter' has no member 'dateFormat'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion.swift:337:19: error: value of type 'DateFormatter' has no member 'dateFromString'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion.swift:339:6: error: value of type 'DateFormatter' has no member 'dateFormat'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion.swift:340:19: error: value of type 'DateFormatter' has no member 'dateFromString'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion.swift:342:6: error: value of type 'DateFormatter' has no member 'dateFormat'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion.swift:343:19: error: value of type 'DateFormatter' has no member 'dateFromString'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion.swift:345:6: error: value of type 'DateFormatter' has no member 'dateFormat'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion.swift:346:19: error: value of type 'DateFormatter' has no member 'dateFromString'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion.swift:383:27: error: type 'DateFormatterComponentsStyle' has no member 'MediumStyle'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion.swift:384:27: error: type 'DateFormatterComponentsStyle' has no member 'LongStyle'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion.swift:385:3: error: value of type 'DateFormatter' has no member 'locale'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion.swift:386:3: error: value of type 'DateFormatter' has no member 'calendar'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion.swift:387:3: error: value of type 'DateFormatter' has no member 'timeZone'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion.swift:388:10: error: value of type 'DateFormatter' has no member 'stringFromDate'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion.swift:396:27: error: type 'DateFormatterComponentsStyle' has no member 'LongStyle'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion.swift:397:27: error: type 'DateFormatterComponentsStyle' has no member 'LongStyle'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion.swift:398:3: error: value of type 'DateFormatter' has no member 'locale'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion.swift:399:3: error: value of type 'DateFormatter' has no member 'calendar'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion.swift:400:3: error: value of type 'DateFormatter' has no member 'timeZone'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion.swift:401:21: error: value of type 'DateFormatter' has no member 'stringFromDate'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion+Operations.swift:44:19: error: 'components' produces 'DateComponents', not the expected contextual result type 'NSDateComponents'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion+Operations.swift:63:28: error: argument labels '(_:)' do not match any available overloads
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion+Operations.swift:83:21: error: argument labels '(_:)' do not match any available overloads
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion+Operations.swift:116:16: error: argument labels '(_:)' do not match any available overloads
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/Additions.swift:231:17: error: value of type 'DateFormatter' has no member 'dateFormat'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/Additions.swift:232:13: error: value of type 'DateFormatter' has no member 'locale'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/Additions.swift:233:15: error: value of type 'DateFormatter' has no member 'timeZone'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/Additions.swift:234:15: error: value of type 'DateFormatter' has no member 'doesRelativeDateFormatting'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/Additions.swift:238:4: error: value of type 'DateFormatter' has no member 'dateFormat'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/Additions.swift:239:4: error: value of type 'DateFormatter' has no member 'locale'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/Additions.swift:240:4: error: value of type 'DateFormatter' has no member 'timeZone'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/Additions.swift:241:4: error: value of type 'DateFormatter' has no member 'doesRelativeDateFormatting'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/DateInRegion+Comparisons.swift:50:25: error: 'compareDate(_:toDate:toUnitGranularity:)' has been renamed to 'compare(_:to:toUnitGranularity:)'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/NSDate+SwiftDate.swift:311:30: error: 'Style' is not a member type of 'DateFormatter'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/NSDate+SwiftDate.swift:311:69: error: 'Style' is not a member type of 'DateFormatter'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/NSDate+SwiftDate.swift:312:34: error: 'Style' is not a member type of 'DateFormatter'
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/NSDate+SwiftDate.swift:211:36: error: argument labels '(_:)' do not match any available overloads
/path/to/project/Carthage/Checkouts/SwiftDate/Sources/SwiftDate/NSDate+SwiftDate.swift:383:16: error: argument labels '(_:)' do not match any available overloads
A shell task (/usr/bin/xcrun xcodebuild -project /path/to/project/Carthage/Checkouts/SwiftDate/XCode/SwiftDate.xcodeproj -scheme SwiftDate-iOS -configuration Release -sdk iphoneos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES clean build) failed with exit code 65:
** BUILD FAILED **

The following build commands failed:
  CompileSwift normal arm64
  CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
(2 failures)

On swift-3.0 branch you will found a 3.0 version.
I'm also working on a major update of the library which will be better suits in Swift 3.0. Hope to post some news in two weeks.

Today updated my "SwiftDate" framework through CocoaPod. The latest version "5.0.4 updated from 4.0.13". After the framework update, I got three errors and resolved two. But, I couldn't find the equivalent method for the existing method "isInSameDayOf". Am getting following error message,
Value of type 'Date' has no member 'isInSameDayOf'  SwiftDate 5.0.4 (was 4.0.13)
Could you please help me to resolve this? Thanks.


type hints for carla pythonapi client

CARLA version: 0.9.14
Platform/OS: Ubuntu 22.04
Problem you have experienced: Lack of type hints when developing with the carla client PythonAPI.
What you expected to happen: Type hints are present in the carla client PythonAPI library and usable by IDEs (e.g. pylance in vscode) or via command-line tooling (e.g. pyright)
Steps to reproduce: Install the Python 3.5 wheel file, import the carla module into any sample code, add a few random functions from this module, and note that type hints are missing / unknown.
Other information (documentation you consulted, workarounds you tried):  This is a de facto re-opening of Issue 1333 with a request for a more cross-platform (i.e. not exclusive to pycharm IDE) and standardized means to achieve type hints (i.e. using the now built-in functionality of newer Python releases).  I feel given the productivity benefits of type hints warrant it, along with community interest.  Type hints are described in PEP-484 and were introduced with Python 3.5.  Standardization of packaging of type hints shipped with python 3.7 and is described in PEP-561.  Given the carla client pythonapi relies on boost::python and underlying C++ based libraries / dependencies, it might not be possible to implement implicitly without upstream feature additions.  Given CARLA 0.9.14 targets Python 3.5, an upgrade to Python 3.7+ might be needed in future releases to achieve the packaging of said hints.

Hi, did you solve the problem?  I installed CARLA client library in a virtual environment with command pip3 install carla, how do I make it possible to give method hints when using pythonapi?

As of carla 0.9.15, as installed from pypi with pip and python 3.9, no type hints.

I'm facing the same problem, no type hints and pyright is complaining everywhere inside carla-related project :(


feat: let LSP suggest macro calls too

Description
Problem
There was no way to get completions for macro calls, so the user had to complete, go back and add the !.
Summary
Now if something can be a macro call it's suggested too.
A special case is done for unquote!: it's only suggested as a macro call, never as a function call.

Additional Context
Documentation
Check one:

[x] No documentation needed.
[ ] Documentation included in this PR.
[ ] [For Experimental Features] Documentation to be submitted in a separate PR.

PR Checklist

[x] I have tested the changes locally.
[x] I have formatted the changes with Prettier and/or cargo fmt on default settings.

I wonder if the return type shown for macro calls should be -> Quoted... when I was typing it it was a bit confusing, because the actual type ends up being something different.
What do you think if it's shown as -> _?

In any case that can be changed later on. I'll merge this for now :-)


Added a canvas.after_cancel feature

to prevent speeding up the game due to multiple move_block_down calls when pausing the game

Was fixed on main in ee0da88


Replace CrateDocCollector with a LuceneBatchIterator

Codecov Report

Merging #4938 into batch-iterator will decrease coverage by -0.27%.
The diff coverage is 91.8%.

@@                 Coverage Diff                  @@
##             batch-iterator    #4938      +/-   ##
====================================================
- Coverage             82.15%   81.88%   -0.27%
+ Complexity            10723    10680      -43
====================================================
  Files                  1303     1304       +1
  Lines                 44697    44676      -21
  Branches               5655     5653       -2
====================================================
- Hits                  36721    36585     -136
- Misses                 5348     5437      +89
- Partials               2628     2654      +26

Impacted Files
Coverage Δ
Complexity Δ

...n/collect/collectors/CrateDocCollectorBuilder.java
100% <100%> (ø)
2 <2> (?)

...peration/collect/LuceneShardCollectorProvider.java
86.56% <100%> (-0.58%)
5 <ø> (ø)

...eration/projectors/BatchConsumerToRowReceiver.java
85% <62.5%> (-6.18%)
12 <1> (+1)

...ration/collect/collectors/LuceneBatchIterator.java
93.06% <93.06%> (ø)
41 <41> (?)

...n/sql/query/FieldsVisitorInputFieldComparator.java
0% <ø> (-70%)
0% <ø> (-6%)

...n/java/io/crate/exceptions/JobKilledException.java
0% <ø> (-66.67%)
0% <ø> (-1%)

.../main/java/io/crate/planner/PositionalOrderBy.java
41.02% <ø> (-41.03%)
9% <ø> (-4%)

...arch/indices/recovery/BlobStartPrefixResponse.java
66.66% <ø> (-33.34%)
3% <ø> (-2%)

...ration/collect/collectors/OrderedDocCollector.java
75% <ø> (-25%)
5% <ø> (-2%)

.../main/java/io/crate/metadata/doc/DocTableInfo.java
64.67% <ø> (-17.97%)
49% <ø> (-3%)

... and 37 more

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 5f54a29...a57bf75. Read the comment docs.


tab completion test doesn't handle multiple matches

PR Summary
Some environments have multiple matches, so some TabCompletion tests may fail because of an assumption that there is only 1 possible match. I'm seeing this specifically on the Linux container validation runs, but it seems like it would be general problem.
PR Context

PR Checklist

[x] PR has a meaningful title

Use the present tense and imperative mood when describing your changes

[x] Summarized changes
[x] Change is not breaking
[x] Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright header
[x] This PR is ready to merge and is not Work in Progress.

If the PR is work in progress, please add the prefix WIP: or [ WIP ] to the beginning of the title (the WIP bot will keep its status check at Pending while the prefix is present) and remove the prefix when the PR is ready.

User-facing changes

[x] Not Applicable
OR
[ ] Documentation needed

[ ] Issue filed:

Testing - New and feature

[x] N/A or can only be tested interactively
OR
[ ] Make sure you've added a new test if existing tests do not effectively test the code changed

[x] Add [feature] to your commit messages if the change is significant or affects feature tests

Is the PR ready to merge?

@daxian-dbw Please clarify about setting a milestone to merged PR. Is there new guidelines?

After RC release, we created the v6.2.0 branch, which will be the branch to use for 6.2.0 GA release.
Not all commits after RC can make to the GA, so we will triage what PRs can be take to the 6.2.0 branch (very low risk, no product code change in principle). For those PRs that will be take to 6.2.0 branch, we mark it with the 6.2.0 milestone.


Blocked by antivirus checking, can't install

Any solution for this? Is this intentional by Windows built-in antivirus software?

I haven't had it blocked myself, but antivirus software often flags on anything that modifies how system files work. Easy to fix - just disable the antivirus protection while you install, then mark the files as exceptions.
Go to Start > Settings > Update & Security > Windows Security > Virus & threat protection.
Under Virus & threat protection settings, select Manage settings, and then under Exclusions, select Add or remove exclusions.
Select Add an exclusion, and then select from files, folders, file types, or process.

Unfortunately it now is in a state that shows installed, but can't be uninstalled, due to some file can't run.
Well anyhow I don't need it now.

Unfortunately it now is in a state that shows installed, but can't be uninstalled, due to some file can't run.

Any solutions for this?


regex parameter routing based on type

this will detect certain parameter types in path, and use a relevant routing regex based on the parameter type.
more types can be added later (eg. date, dateTime)
example:
// on spec
{
    parameters: [
      swagger.pathParam('id', 'ID of Pet that needs to be fetched', 'integer')
    ]
}

express route added, before /pet/:id, after: /pet/:id(\d+)
this allows someone to use a route like /pet/most-popular

Closing as #207 will completely replace the implementation in this project.


revert ODF version to 4.13 (CI)

/lgtm

 echo 'ERROR: odf-console container is not running.'
ERROR: odf-console container is not running.

Last run issue
/test odf-console-e2e-aws

seems like flake this time...
/test odf-console-e2e-aws

/lgtm


fix: [flutter-messaging] nullable fcmToken

Description
After Flutter 2 migration my project didn't build. IOS throwed
"error: nullability specifier 'nullable' conflicts with existing specifier 'nonnull'"
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]).
This will ensure a smooth and quick review process. Updating the pubspec.yaml and changelogs is not required.

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
[x] All existing and new tests are passing.
[x] I updated/added relevant documentation (doc comments with ///).
[x] The analyzer (melos run analyze) does not report any problems on my PR.
[x] I read and followed the Flutter Style Guide.
[x] I signed the CLA.
[x] I am willing to follow-up on review comments in a timely manner.

Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?

[ ] Yes, this is a breaking change.
[x] No, this is not a breaking change.

@googlebot I signed it!

I've just built the latest messaging package on iOS using Flutter version 2.2.2 without any problems. Also - check out this line. We check if it is explicitly null. I'd suggest cleaning out your build cache layers as it looks like a problem there rather than something to do with the Flutter upgrade. Will reopen if you can clarify issue and provide something reproducible.


minor changes in notebook for PPE Detection

Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Thanks @jayrao


change title on README

I changed a title so opened a new pull request

this was great!

this was great!


[WIP] Update for workshops landing page

Remove visible comment markings
Use variable for background image to improve readability
Add carousel slide and inner
Refactor workshops page, move button from single tempalte to workshop card, remove unused logic for parent and page variables
Increase size of containers to better match Nav Reorg
Remove flex from workshop cards
Prettier format on custom css file
Set max width on container to 1600
Remove padding on button to improve spacing
Convert card rows to carousels
Update CSS file to support carousel slide
Add carousel.js to handle mouse hover event
Set overlay to be more transparent but minimize to 0 px
Shrink indentation for more content indicator on carousels
Set hard code width of 400px
Allow list items to wrap text for workshop descriptions
Update workshops

Closing PR as switching to different branch.


Epoch cannot be cleared in form

Once anything is entered in Epoch dropdowns, it cannot be cleared any more.

Fixed in #312


An empty string casts to a duration value of 0s

It seems like the following should produce an error value.
$ zq -version
Version: v1.12.0-8-g987634f6

$ echo '""' | zq -z 'duration(this)' -
0s

Verified in Zed commit f60389d.
Now the attempted cast returns an error.
$ zq -version
Version: v1.12.0-13-gf60389d3

$ echo '""' | zq -z 'duration(this)' -
error({message:"cannot cast to duration",on:""})

Thanks @mattnibs!


Topology view

See #25

With this PR, the container-jfr Pod is placed into a Deployment, which allows it to be visible on the Topology view for developer accounts. Labels/annotations are also added to this Pod, which provide the arrow linking the container-jfr instance back up to its Operator parent. I spent some time trying to get the application grouping working, but this requires a corresponding label to be present on the Operator Deployment, which it does not seem is currently possible (https://godoc.org/github.com/operator-framework/operator-lifecycle-manager/pkg/controller/install contains no information about attaching labels or other metadata to the Deployment itself, only to its owned Pods). I did some manual testing and everything seems to still deploy and run correctly, both with the Makefile and via OperatorHub (with custom source). Scorecard testing is also unimpacted.

Also, the little "open link" icon off of the container-jfr deployment opens the container-jfr web UI. This seems to be automatically picked up by the first defined route, or some other automatic mechanism.


added a secondary method get_dsp(...) and a struct to handle the data

Hi!
Here's an (currently untested) addition to the repository. I'll use more effort on it if it looks promising. The idea is to split get_dsp function to be able to save, load and handle the model internally without the original json files. I find it convenient to be able to do this and opens up possibilities.

Sorry, had to revert this. Feel free to re-PR if you can fix the issue & please lmk when you do so that you checked that the PR builds.


Impl ReadNorFlash for Flash

The read operation for nrf flash never awaits, so this implements the blocking ReadNorFlash trait.

oh... :joy:


fixing #27

Hi there, sorry for the late reply and thanks for making this PR, but right now I do not really want to have scikit-image as a dependency. It's rather big, and I want to rely only on PIL if at all possible. Thanks again.


Missing enable_whitelist column on v111 migration

Gitea version (or commit ref): v1.11.0
Git version: 2.11.0
Operating system: Debian GNU/Linux 9 (stretch)
Database (use [x]):

[ ] PostgreSQL
[ ] MySQL
[ ] MSSQL
[x] SQLite

Can you reproduce the bug at https://try.gitea.io:

[ ] Yes (provide example URL)
[ ] No
[x] Not relevant

Log gist: https://gist.github.com/blemasle/c992db8fcef26f889e5c7114bb29b3d0

Description
During an update from 1.1.2 to 1.11.0, the v111 migration failed because no enable_whitelist was present in my protected_branch table.
I looked through migration files but couldn't find the addition of that column to the table, and the migration ProtectedBranch struct has no related field either. I had to add that column manually on my SQLite database : alter table protected_branch add column enable_whitelist boolean NOT NULL DEFAULT false;
Not sure if this is related to my gitea installation somehow (which came from the beginning of gogs years go, then gitea etc).

enable_whitelist has existed for 2 years, since version 1.3.0. It seem to be correct that a migration step for it was missing. It has been some discussion on not supporting direct upgrade from very old installations (maybe that is for 1.12).

Yes, it will be in 1.12. The PR is #10026.
Until then, our recommendation is to update incrementally to each latest point release until 1.6 and then you can jump to the newest version.

Wow, I didn't realize my installation was that old. I was on the verge to suggest adding this to the documentation, but realized it is already there under the misleading "From gogs" section.
It might be a good idea to create another section on that documentation. I didn't check that page because I was coming from an old version of gitea, not gogs :)


task 31, Task 33, Task 32

@Padminivaddi
Task -28
Code verified.
Task -31
Code verified.
Task -32
Code verified.
Task -33
Code verified.


Release/4.0.0

:white_check_mark: Build TheIdServer 4.3.1.build.1860 completed (commit https://github.com/Aguafrommars/TheIdServer/commit/a9a5f8f529 by @semantic-release-bot)


Refactor tsconfig for Stricter Type-Safe Settings

I have made the following changes:

Fixed type errors in the test files.
Updated plugin.config. Reference: eslint-plugin-jest.

There may be some misunderstandings on my part, but I would appreciate your review.

let's keep changes under test/ and revert everything else.


[Help] FirebasePlugin.verifyPhoneNumber with manual user input code

Hello
Please help, how to use this FirebasePlugin.verifyPhoneNumber if number and phone in difference device so user will input code with manually
How to verifi code is valid ?
Thanks

Using a different device for the app and the phone containing the SIM card is not currently a supported scenario - verifyPhoneNumber requires the app to be running on the device containing the SIM card for the relevant phone number.


Largest Bst Subtree

Is your feature request related to a problem? Please describe.
Function to find the root of largest sub-tree which is a BST. Also, find the number of nodes in that sub-tree.
Describe the solution you'd like
A simple and concise approach which is implemented using class which will help in solving the problem.
Do you want to work on it
Yes, I am a GSSOC'21 participant I would like to solve it in Java.

Please assign it to me . @nakul-19 @raksha009 @plazzy99 @tarun26091999 @rish-singhal @yasharth291 @Rohan27s @rudrakshi99

Please assign this to me in C++.


Error building site: failed to render pages: render of "home" failed

After adding theme, I am getting following error.
I have tried with brand new site, without any content, facing the same issue.
➜  quickstart git:(master) ✗ hugo server -D
Building sites … WARN 2019/09/19 17:58:56 Page's .RSSLink is deprecated and will be removed in a future release. Use the Output Format's link, e.g. something like:
    {{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}.
Total in 7 ms
Error: Error building site: failed to render pages: render of "home" failed: "/root/quickstart/themes/hugo-goa/layouts/index.html:2:11": execute of template failed: template: index.html:9:3: executing "index.html" at <partial "main_menu.html" .>: error calling partial: "/root/quickstart/themes/hugo-goa/layouts/partials/main_menu.html:2:11": execute of template failed: template: partials/main_menu.html:2:11: executing "partials/main_menu.html" at <sort .Site.Menus.main>: error calling sort: sequence must be provided

➜  quickstart git:(master) ✗ hugo version
Hugo Static Site Generator v0.58.2-253E5FDC linux/amd64 BuildDate: 2019-09-13T08:05:59Z

➜  quickstart git:(master) ✗ cat config.toml
baseURL = "http://example.org/"
languageCode = "en-us"
title = "My New Hugo Site"
theme = "hugo-goa"

➜  quickstart git:(master) ✗ ll themes/hugo-goa
total 20K
drwxr-xr-x. 2 root root   24 Sep 19 17:57 archetypes
drwxr-xr-x. 6 root root  131 Sep 19 17:57 exampleSite
drwxr-xr-x. 2 root root   42 Sep 19 17:57 images
drwxr-xr-x. 4 root root   72 Sep 19 17:57 layouts
-rw-r--r--. 1 root root 1.1K Sep 19 17:57 LICENSE
-rw-r--r--. 1 root root  12K Sep 19 17:57 README.md
drwxr-xr-x. 5 root root  217 Sep 19 17:57 static
-rw-r--r--. 1 root root  480 Sep 19 17:57 theme.toml

I am getting the same error. @sbuvaneshkumar did you find a solution or workaround for this?

@connor11528 Unfortunately no, still I don't find any workaround or solution.

Hi @sbuvaneshkumar @connor11528
I think that you must specify at least a main menu entry in config.toml. For example:
[[menu.main]]
name = "about"
identifier = "about"
weight = 200
url = "/about/"

Okay thank you @pferretti
I added this and am getting an error on the command line. For all my files in content/posts/ directory I have the date saved like: date: "2017-11-26" any ideas what more I need to improve?
$ hugo server -D
Building sites … WARN 2020/01/12 18:11:09 Page.RSSLink is deprecated and will be removed in a future release. Use the Output Format's link, e.g. something like:
    {{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}
ERROR 2020/01/12 18:11:09 render of "section" failed: "/Users/connorleech/Projects/connorleech.info/themes/hugo-goa/layouts/_default/list.html:7:55": execute of template failed: template: _default/list.html:3:3: executing "_default/list.html" at <partial "li.html" .>: error calling partial: "/Users/connorleech/Projects/connorleech.info/themes/hugo-goa/layouts/partials/li.html:7:55": execute of template failed: template: partials/li.html:7:55: executing "partials/li.html" at <.Site.Params.dateformat>: invalid value; expected string
ERROR 2020/01/12 18:11:09 render of "page" failed: "/Users/connorleech/Projects/connorleech.info/themes/hugo-goa/layouts/_default/single.html:8:67": execute of template failed: template: _default/single.html:3:3: executing "_default/single.html" at <partial "content.html" .>: error calling partial: "/Users/connorleech/Projects/connorleech.info/themes/hugo-goa/layouts/partials/content.html:8:67": execute of template failed: template: partials/content.html:8:67: executing "partials/content.html" at <.Site.Params.dateformat>: invalid value; expected string
ERROR 2020/01/12 18:11:09 render of "page" failed: "/Users/connorleech/Projects/connorleech.info/themes/hugo-goa/layouts/_default/single.html:8:67": execute of template failed: template: _default/single.html:3:3: executing "_default/single.html" at <partial "content.html" .>: error calling partial: "/Users/connorleech/Projects/connorleech.info/themes/hugo-goa/layouts/partials/content.html:8:67": execute of template failed: template: partials/content.html:8:67: executing "partials/content.html" at <.Site.Params.dateformat>: invalid value; expected string
ERROR 2020/01/12 18:11:09 render of "page" failed: "/Users/connorleech/Projects/connorleech.info/themes/hugo-goa/layouts/_default/single.html:8:67": execute of template failed: template: _default/single.html:3:3: executing "_default/single.html" at <partial "content.html" .>: error calling partial: "/Users/connorleech/Projects/connorleech.info/themes/hugo-goa/layouts/partials/content.html:8:67": execute of template failed: template: partials/content.html:8:67: executing "partials/content.html" at <.Site.Params.dateformat>: invalid value; expected string
Built in 74 ms
Error: Error building site: failed to render pages: render of "page" failed: "/Users/connorleech/Projects/connorleech.info/themes/hugo-goa/layouts/_default/single.html:8:67": execute of template failed: template: _default/single.html:3:3: executing "_default/single.html" at <partial "content.html" .>: error calling partial: "/Users/connorleech/Projects/connorleech.info/themes/hugo-goa/layouts/partials/content.html:8:67": execute of template failed: template: partials/content.html:8:67: executing "partials/content.html" at <.Site.Params.dateformat>: invalid value; expected string

Okay nvm, I think I was just missing some configuration options. I added the config and everything is working now. I believe this issue can be closed out
Based config from the exampleSite (doh)
## Basic Configuration

baseurl = "https://shenoybr.github.io/hugo-goa-demo/"
builddrafts = false
canonifyurls = false
languageCode = "en-US"

contentdir = "content"
layoutdir = "layouts"
publishdir = "public"

author = "Erlich Bachman"
title = "Erlich Bachman"

theme = "hugo-goa"

## Hugo Built-in Features
disqusShortname = "https-shenoybr-github-io-hugo-goa-demo" # Comment out to disable Disqus.
googleAnalytics = "XYZ"
enableRobotsTXT = true

## Site Settings
[params]
author = "Erlich Bachman"
intro = "Startup Guru Extraordinaire"
description = "Now @Pied Piper. Previously @Hacker Hostel, @Bachmanity and @Aviato. <br/> \"What is F times 5? It's Fleventy-five.\""
authorimage = "headshot.jpg"
dateformat = "Jan 2, 2006"

## Site Meta Settings
[params.meta]
description = "Simple minimalist theme"
keywords = "minimalist,blog,goa,hugo,developer"

## Social Accounts
[params.social]
github = "<username>"
instagram = "<username>"
xing = "<username>"
linkedin = "<username>"
twitter = "<username>"
facebook = "<username>"
google = "<username>"
googlescholar = "<account_id>"
stackoverflow = "<username>"
lastfm = "<username>"
goodreads = "<username>"
gitlab = "<username>"
bitbucket = "<username>"
fivehundredpx = "<username>"
flickr = "<username>"
foursquare = "<username>"
hackernews = "<username>"
kickstarter = "<username>"
patreon = "<username>"
pintrest = "<username>"
steam = "<username>"
reddit = "<username>"
snapchat = "<username>"
youtube = "<channelid>"
keybase = "<username>"
twitch = "<username>"
soundcloud = "<username>"
tumblr = "<username>"
strava = "<username>"
skype = "<username>"
telegram = "<username>"
whatsapp = "<username>"
email =<EMAIL_ADDRESS>pgp = "<key_fingerprint>"

## Extras
[params.extra]
copyright = "© 2016. Erlich Bachman. [Some Rights Reserved](http://creativecommons.org/licenses/by/3.0/)."
poweredby = true
highlightjs = true
socialmarkup = true
toc = true
displayrssicon = true

## Main Menu
[[menu.main]]
    name = "blog"
    weight = 100
    identifier = "blog"
    url = "/blog/"
[[menu.main]]
    name = "about"
    identifier = "about"
    weight = 200
    url = "/about/"
[[menu.main]]
    name = "coderag"
    identifier = "coderag"
    weight = 300
    url = "/coderag/"

[SOLVED] Hugo –minify: failed to render pages

Hi, I am still unable to get solution of this. Can anyone please help me out??

yeah me too above solutions didnt work.

@Ayush23Dash @mubashirjamali101 I had this exact issue and it was in the config.toml.
In the theme 'Blonde', there's an exampleSite. I started copying and pasting the exampleSite files into mine, and finally when I got to config.toml the hugo server started running.
Try and find an exampleSite folder in your theme, or download one that does.

I had the same issue, here is how I solved it:
Step 1:
Open config.yaml in your website project in RStudio
Step 2:
Go to the last line in that script in RStudio and type in this (see below) and save it:
security:
funcs:
getenv:
- ^HUGO_
- ^WC_

I had the same issue, here is how I solved it:
Step 1: Open config.yaml in your website project in RStudio
Step 2:
Go to the last line in that script in RStudio and type in this (see below) and save it:
security: funcs: getenv: - ^HUGO_ - ^WC_

don't know why but it really works!

I have the same problem with an existing site which worked before. Very frustrating. Will there ever be a proper fix?

@krischik Can you create a new issue detailing the problem you're facing with steps to reproduce or code / repo that I can use to investigate your problem?


Cancellation of last upload attempt fails.

Summary:
We can cancel and remove items properly every attempt except latest one. When it comes to latest upload attempt, clicking cancel does nothing.
Steps to reproduce:
Click latest failed upload and try to cancel

Now cancels work:)


Solved? PR https://github.com/modelscope/facechain/pull/427 still same bruh

          This has been solved by this PR https://github.com/modelscope/facechain/pull/427

Originally posted by @ly19965 in https://github.com/modelscope/facechain/issues/438#issuecomment-1829181441

2023-11-30 02:37:03,539 - modelscope - INFO - PyTorch version 2.0.1+cu118 Found.
2023-11-30 02:37:03,542 - modelscope - INFO - TensorFlow version 2.14.0 Found.
2023-11-30 02:37:03,542 - modelscope - INFO - Loading ast index from C:\Users\Al Farizy.cache\modelscope\ast_indexer
2023-11-30 02:37:03,646 - modelscope - INFO - Loading done! Current index file version is 1.9.3, with md5 4bba8c18e70a19b2844f6993ffdce729 and a total number of 943 components indexed
2023-11-30 02:37:06,665 - modelscope - INFO - Use user-specified model revision: v4.0
2023-11-30 02:37:11,458 - modelscope - INFO - Use user-specified model revision: v1.0.1
2023-11-30 02:37:12,285 - modelscope - WARNING - ('PIPELINES', 'skin-retouching-torch', 'skin-retouching-torch') not found in ast index file
2023-11-30 02:37:12,285 - modelscope - INFO - initiate model from C:\Users\Al Farizy.cache\modelscope\hub\damo\cv_unet_skin_retouching_torch
2023-11-30 02:37:12,286 - modelscope - INFO - initiate model from location C:\Users\Al Farizy.cache\modelscope\hub\damo\cv_unet_skin_retouching_torch.
2023-11-30 02:37:12,293 - modelscope - WARNING - No preprocessor field found in cfg.
2023-11-30 02:37:12,293 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file.
2023-11-30 02:37:12,294 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\Al Farizy\.cache\modelscope\hub\damo\cv_unet_skin_retouching_torch'}. trying to build by task and model information.
2023-11-30 02:37:12,294 - modelscope - WARNING - Find task: skin-retouching-torch, model type: None. Insufficient information to build preprocessor, skip building preprocessor
2023-11-30 02:37:15,697 - modelscope - INFO - Model revision not specified, use revision: v2.0.2
2023-11-30 02:37:17,700 - modelscope - INFO - initiate model from C:\Users\Al Farizy.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface
2023-11-30 02:37:17,700 - modelscope - INFO - initiate model from location C:\Users\Al Farizy.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface.
2023-11-30 02:37:17,707 - modelscope - WARNING - No preprocessor field found in cfg.
2023-11-30 02:37:17,707 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file.
2023-11-30 02:37:17,708 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\Al Farizy\.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface'}. trying to build by task and model information.
2023-11-30 02:37:17,708 - modelscope - WARNING - Find task: face-detection, model type: None. Insufficient information to build preprocessor, skip building preprocessor
2023-11-30 02:37:17,710 - modelscope - INFO - loading model from C:\Users\Al Farizy.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface\pytorch_model.pt
2023-11-30 02:37:18,062 - modelscope - INFO - load model done
Process Process-8:
Traceback (most recent call last):
File "E:\Ai\TensorRT\system\python\lib\site-packages\modelscope\utils\registry.py", line 212, in build_from_cfg
return obj_cls(**args)
File "C:\Users\Al Farizy.cache\modelscope\modelscope_modules\cv_unet_skin_retouching_torch\ms_wrapper.py", line 76, in init
self.sess, self.input_node_name, self.out_node_name = self.load_onnx_model(
File "C:\Users\Al Farizy.cache\modelscope\modelscope_modules\cv_unet_skin_retouching_torch\ms_wrapper.py", line 93, in load_onnx_model
sess = onnxruntime.InferenceSession(onnx_path)
File "E:\Ai\TensorRT\system\python\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 396, in init
raise e
File "E:\Ai\TensorRT\system\python\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 383, in init
self._create_inference_session(providers, provider_options, disabled_optimizers)
File "E:\Ai\TensorRT\system\python\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 415, in _create_inference_session
raise ValueError(
ValueError: This ORT build has ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] enabled. Since ORT 1.9, you are required to explicitly set the providers parameter when instantiating InferenceSession. For example, onnxruntime.InferenceSession(..., providers=['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'], ...)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "multiprocessing\process.py", line 314, in _bootstrap
File "multiprocessing\process.py", line 108, in run
File "E:\Ai\TensorRT\webui\extensions\facechain\facechain\inference.py", line 25, in _data_process_fn_process
Blipv2()(input_img_dir)
File "E:\Ai\TensorRT\webui\extensions\facechain\facechain\data_process\preprocessing.py", line 205, in init
self.skin_retouching = pipeline('skin-retouching-torch', model='damo/cv_unet_skin_retouching_torch', model_revision='v1.0.1')
File "E:\Ai\TensorRT\system\python\lib\site-packages\modelscope\pipelines\builder.py", line 163, in pipeline
return build_pipeline(cfg, task_name=task)
File "E:\Ai\TensorRT\system\python\lib\site-packages\modelscope\pipelines\builder.py", line 67, in build_pipeline
return build_from_cfg(
File "E:\Ai\TensorRT\system\python\lib\site-packages\modelscope\utils\registry.py", line 215, in build_from_cfg
raise type(e)(f'{obj_cls.name}: {e}')
ValueError: SkinRetouchingTorchPipeline: This ORT build has ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] enabled. Since ORT 1.9, you are required to explicitly set the providers parameter when instantiating InferenceSession. For example, onnxruntime.InferenceSession(..., providers=['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'], ...)
instance_data_dir E:\Ai\TensorRT\webui\extensions\facechain\worker_data\qw\training_data\ly261666/cv_portrait_model\viona
Traceback (most recent call last):
File "E:\Ai\TensorRT\webui\extensions\facechain\app.py", line 148, in train_lora_fn
subprocess.run(command, check=True)
UnboundLocalError: local variable 'subprocess' referenced before assignment
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "E:\Ai\TensorRT\system\python\lib\site-packages\gradio\routes.py", line 488, in run_predict
output = await app.get_blocks().process_api(
File "E:\Ai\TensorRT\system\python\lib\site-packages\gradio\blocks.py", line 1431, in process_api
result = await self.call_function(
File "E:\Ai\TensorRT\system\python\lib\site-packages\gradio\blocks.py", line 1103, in call_function
prediction = await anyio.to_thread.run_sync(
File "E:\Ai\TensorRT\system\python\lib\site-packages\anyio\to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "E:\Ai\TensorRT\system\python\lib\site-packages\anyio_backends_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "E:\Ai\TensorRT\system\python\lib\site-packages\anyio_backends_asyncio.py", line 807, in run
result = context.run(func, *args)
File "E:\Ai\TensorRT\system\python\lib\site-packages\gradio\utils.py", line 707, in wrapper
response = f(*args, **kwargs)
File "E:\Ai\TensorRT\webui\extensions\facechain\app.py", line 799, in run
train_lora_fn(base_model_path=base_model_path,
File "E:\Ai\TensorRT\webui\extensions\facechain\app.py", line 149, in train_lora_fn
except subprocess.CalledProcessError as e:
UnboundLocalError: local variable 'subprocess' referenced before assignment

Assuming you're on windows, remove the import that's a bit later and it should work.

Error is gone, don't know why that import is there but we don't care about it because we're on windows

Traceback (most recent call last):
File "E:\Ai\TensorRT\system\python\lib\site-packages\gradio\routes.py", line 488, in run_predict
output = await app.get_blocks().process_api(
File "E:\Ai\TensorRT\system\python\lib\site-packages\gradio\blocks.py", line 1431, in process_api
result = await self.call_function(
File "E:\Ai\TensorRT\system\python\lib\site-packages\gradio\blocks.py", line 1103, in call_function
prediction = await anyio.to_thread.run_sync(
File "E:\Ai\TensorRT\system\python\lib\site-packages\anyio\to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "E:\Ai\TensorRT\system\python\lib\site-packages\anyio_backends_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "E:\Ai\TensorRT\system\python\lib\site-packages\anyio_backends_asyncio.py", line 807, in run
result = context.run(func, *args)
File "E:\Ai\TensorRT\system\python\lib\site-packages\gradio\utils.py", line 707, in wrapper
response = f(*args, **kwargs)
File "E:\Ai\TensorRT\webui\extensions\facechain\app.py", line 799, in run
train_lora_fn(base_model_path=base_model_path,
File "E:\Ai\TensorRT\webui\extensions\facechain\app.py", line 149, in train_lora_fn
except subprocess.CalledProcessError as e:
UnboundLocalError: local variable 'subprocess' referenced before assignment


[C++] Don't build Thrift examples and tutorials in the ExternalProject

Reporter: Uwe Korn / @xhochy
Assignee: Uwe Korn / @xhochy
PRs and other links:

GitHub Pull Request #440

Note: This issue was originally created as PARQUET-1220. Please see the migration documentation for further details.

Wes McKinney / @wesm:
Issue resolved by pull request 440
https://github.com/apache/parquet-cpp/pull/440


Using alias 'url' limits the length to 60 characters.

I'm using version 3.1.62 with Yii2 and it seems that input length is limited to 60 characters if the format alias 'url' is used. Any idea?

@nagyt234 ,
The url alias was written by someone else, and indeed there is a limitation in length.
I guess I should update the alias.

Hi the problem steel appeare! is there any way to avoid this limitation?


Not loading custom maintenance.html

I've been trying to load a custom html file, but haven't had any luck :/
I've tried many different configurations, changing the config.maintenance_pages_path, config.default_maintenance_page but nothing has worked, I'm assuming I'm doing something wrong.
The file seems to be loaded, but I made a few modifications that doesn't show

This is not what the header looks like

2.4.1 :001 > File.expand_path(Turnout::MaintenancePage::HTML.new.send(:custom_path))
"/Users/imartinez/my-fertility-ror-backend/public/maintenance.html"

This is how my initializer looks like
Turnout.configure do |config|
  config.app_root = config.app_root
  config.named_maintenance_file_paths = {default: config.app_root.join('tmp', 'maintenance.yml').to_s}
  config.maintenance_pages_path = config.app_root.join('public').to_s
  config.default_maintenance_page = Turnout::MaintenancePage::HTML
  config.default_reason = "The site is temporarily down for maintenance.\nPlease check back soon."
  config.default_allowed_paths = ['^/admin/','^/admin','^/assets', '^/rails/info/routes', '^/api/v1/maintenance_messages']
  config.default_response_code = 503
  config.default_retry_after = 7200
end

Hi @imartinezingsw. Sorry for the long wait in responding to this.
This seems especially strange to me:

The file seems to be loaded, but I made a few modifications that doesn't show

Are you still having this issue? Turnout should be reading from the file with every request. So I don't really see how this could be a problem with the gem. You could try restarting Rails and also running rm -rf ./tmp/* ./tmp/.* to see if that helps though.


Can queries be exported to CSV?

Hi! I am creating a notebook for teaching SQL and need learners to be able to export the results of their queries to CSV files. I was wondering if that can be easily done from within the notebook with the Xeus-SQLite kernel. Thanks!

It might be... Specially if there's a SQLite command for that.
Or you could try xeus-sql and check if SOCI has a command for that.
If not it's not suuper hard to implement a functionality like this... Someone with some understanding of C++ could do it :)
I'm around to help!

@marimeireles Thanks! Do you mean something like this? Is it possible to use these commands from within the notebook?

Ah no, it seems like I wrote all of these functions by hand as jupyter magic.
I guess it's not too hard to do the same...
We need a library to parse data and convert it to csv, then we just write a file to the user.
This is how load is currently implemented in xeus-sql
    static std::unique_ptr<soci::session> load_db(
            const std::vector<std::string> tokenized_input)
    {
        std::string aux;
        for (std::size_t i = 2; i < tokenized_input.size(); i++)
        {
            aux += tokenized_input[i] + ' ';
        }
        return std::make_unique<soci::session>(
                xv_bindings::to_lower(tokenized_input[1]), aux);
    }

So to implement an output mode I guess we'd do smth similar...
We need a function to grab the data and generate a csv file with it, not sure how to do it, but seems like a task that these robots that generate code could do and then you can just adapt it.
I guess it's in this line:                         nl::json data = process_SQL_input(code, xv_sql_df); (the data we'd like to convert).
The most complicated thing is how to make the context of which table you're generating clear... I'd have to get deeper into the code and right now I don't have the time, sorry.
But if you or anyone are interested in giving it a try I'm around to answer questions.
Cheers!


Tests for bulk selector in affected clusters table

Set of tests for bulk selector.
Probably these test go beyond the scope of the definition of the bulk selector that we do in the code, thus limiting the scope of these tests is open for discussion.

Would it make sense to define the function to mount the component (what we do in beforeEach) as a function and divide our tests further into more "describe" sections grouped by what we are testing, e.g. filtering, bulk selector... ?


Supply XML types, manual Hashable instances

I've left the wrappers intact name-wise, because I believe them to be clearer. This also avoids orphans by deriving everything via the Generic instances in xml-types, but this is very slow-compiling. We could either hand-roll all the hashing without Generic (tedious, error-prone and slow) or we can send a PR to xml-types.

I don't think that the compilation speed is an important issue now. Let's just get it to work ASAP, leaving all the refining for the next phase of work.
Regarding the code changes, I have two comments:

Please notice that in the Prelude module the autoformatting has messed up the positioning of import-sectioning comments, which were intended for easier discovery by package. Let's either restore the order or make a decision to just drop those comments altogether.

The XmlValue name is weird. Element is the standard way to call it, it's used in DOM and in many places of XML documentation. E.g., here it is on Wikipedia: https://en.wikipedia.org/wiki/XML#Element

I would advocate for dropping the comments. For naming, I'm happy to change to XmlElement, as we'll need a wrapper anyway for providing missing instances.

Great. Approved then!


Zap Set-Up vs Public Key

I use Linux and follow the step-by-step guide to set up the Zap Desktop Wallet.
I suspect that because I set up my Pi to allow logging in only with SSH keys (as described here), I receive the following message when trying to copy 'tls.cert' or the 'admin.macaroon' to my home directory.
Permission denied (publickey).
How can I resolve this issue?
Thanks in advance

The two Linux commands work also with the SSH keys, as long as you authorized your pubkey also for the root user (see last part of the "Login with SSH keys
$ sudo mkdir /root/.ssh
$ sudo cp /home/admin/.ssh/authorized_keys /root/.ssh/
$ sudo chown -R root:root /root/.ssh/
$ sudo chmod -R 700 /root/.ssh/
$ sudo systemctl restart ssh

Thanks Stadicus,
Althoug I think I did that, meanwhile I actually seem to have crashed the old macbook pro with which I set up the SSH keys.
Lucky enough, I was about to send over the mainnet blockchain files to the HDD, which is why I just had the need for SSH keys turned off.
Is there a way to replace the old keys (also for root) with new ones from a new computer, this time running Windows? I am very hesitant to go trial&error as I did with all my other issues before...
Again many thanks in advance!

You can put as many SSH keys in that authorized_keys file as you like, one per line. Also, if you are using a Raspberry Pi (not an Odroid HCx), you can always connect keyboard and screen and log in locally without SSH, then username / password work as well.

Thanks, that was encouraging enough. Tried and successfully fixed it.


Add Mail::YAML#load compatible with Psych 3.x and Psych 4.x.

This is 1:1 transition. It would be great to be able to use "safe" load, but since custom classes could be serialised, it is not easily possible for now.
Btw. the best would be to be able to migrate to Psych 4, but it seems impossible since EOL Rubies are supported.
@voxik @deivid-rodriguez

Very nice. Thx. This fixes the compatibility. Since there is check for the delivery_handler, I don't feel very bad about usa of the unsafe_load.

Since there is check for the delivery_handler, I don't feel very bad about usa of the unsafe_load.

Hm, this is probably not very relevant :roll_eyes: Nevertheless, how about:
$ git diff
diff --git a/lib/mail/yaml.rb b/lib/mail/yaml.rb
index c0910855..b70da033 100644
--- a/lib/mail/yaml.rb
+++ b/lib/mail/yaml.rb
@@ -2,15 +2,23 @@ require 'yaml'

 module Mail
   module YAML
-    # unsafe loading compatible with Psych 3.x and Psych 4.x
-    if ::YAML.respond_to?(:unsafe_load)
-      def self.load(yaml)
-        ::YAML.unsafe_load(yaml)
-      end
-    else
-      def self.load(yaml)
-        ::YAML.load(yaml)
-      end
+    def self.load(yaml)
+      ::YAML.load(yaml, :permitted_classes => [
+        Symbol,
+
+        Mail::Body,
+
+        # Delivery methods as listed in mail/configuration.rb
+        Mail::SMTP,
+        Mail::Sendmail,
+        Mail::Exim,
+        Mail::FileDelivery,
+        Mail::SMTPConnection,
+        Mail::TestMailer,
+        Mail::LoggerDelivery,
+
+        Mail.delivery_method.class,
+      ])
     end
   end
 end

Hey there @voxik thanks for the help on creating this. I just kicked off the workflows and looks like we have some failures on 1.9, 2.0, 2.2, 2.7 and latest.  Can you take a quick look at those and see if we can fix those up?  cc @deivid-rodriguez

Sorry I'm late to the party :)  Happy to help get these 3.x PRs resolved and merged and a new gem released asap.

My recall about current failures from working on #1472:

The one on Ruby 2.7 is an existing flaky failure that happens randomly on different rubies. Restarting should "fix it".
The failures on older rubies I think are already happening on master, and #1472 is dropping support anyways.

So I think this PR should be fine!

@mikel I unified changes from #1472 and this PR to get a base green CI at https://github.com/mikel/mail/pull/1478. It would make this PR unnecessary (I kept proper attribution to @simi and @voxik at #1478).
Then I can rebase #1472 to take care of adding Ruby 3.1 support.
What do you think?


It doesn't seem to be working

Type: Bug
Install the extention and try to refactor a piece of code. The lightbulb does not show up.
Extension version: 5.2.2
VS Code version: Cursor 0.31.3 (fcd6e551d6f014d13071eac9bd4904e7e0346720, 2024-04-02T20:20:11.019Z)
OS version: Darwin arm64 23.0.0
Modes:

System Info

Item
Value

CPUs
Apple M1 Max (10 x 24)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: enabledwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
3, 4, 5

Memory (System)
64.00GB (3.01GB free)

Process Argv

Screen Reader
no

VM
0%

Is this just an issue with the cursor IDE?

Same here!

yeah , its not showing for me either

Is this resolved already? or workaround/step to fix this?

This looks like a known issue with Cursor: https://github.com/getcursor/cursor/issues/745
In the meantime, you can use the action.quickFix keyboard shortcut. By default, it's ctrl + .