The latest 1.14.x builds cause lag

BkCommonLib version:Build #565
TrainCarts version:Build #473
Spigot version:Papermc 1.14.3 build #122

Problem or bug:Problem
Expected behaviour: Seems that these plugins always load chunks and cause tons of lag.The tps drop when these plugins are loaded.
Steps to reproduce:Just load BkCommonLib and TrainCarts. Sometimes when i unload TrainCarts and reload again,the problem disppears.But mostly they always cause lag.

Timings:https://timings.aikar.co/?id=1579d7a3e54941e598678eaf3e5460e0

I've been trying to load both plug-ins for a month now and then（From 1.14.1 to 1.14.3 and the builds from June to Now), but it seems like there's always been a problem, I really like these,and i enjoy it without any problems Last year in 1.13.so I raise the issue.Thank you for your efforts

I think I'm experiencing the same (or at least a comparable) issue.
This is a summary of the report I made on Discord a few days ago:
I'm having some problems with the performance of my server. I've removed all the plugins and re-added them one by one. It looks like TC is causing some troubles somehow. If I do not have it, my average TPS is 19.9-20. When I add it, the TPS drops to an average of 4. I've made a timings report: https://timings.spigotmc.org/?url=woveyalogu.
I do not have much experience with these reports, so I might be wrong, but it looks like BKCommonLib and TC are causing quite some delays?
Spigot: 1.14.2-R0.1-SNAPSHOT
BKCommonLib: 1.14.2-v1-SNAPSHOT
TC:  1.14.2-v1-SNAPSHOT
Answer:
From what i can see, it seems like something is unloading chunks which tc things shouldn't be unloaded, but without much information we can't see what's causing it. If possible, can you install a plugin called Spark (https://www.spigotmc.org/resources/spark.57242/) and use the command /spark sampler --timeout 600 to capture a 10 minute spark profile?
Spark report
https://sparkprofiler.github.io/#Sv2AVargvs
Answer
ok.... according to that profile... 84.67% of the time is being wasted on org.bukkit.craftbukkit.v1_14_R1.block.CraftBlock.getState()
which means the lag is caused by Spigot's extremely inefficient stuff
@bergerkiller is there a way to fix that?
i mean, is there a better algorithm that doesn't make the server cry?
bergerkiller
and this is why this class exists
https://github.com/bergerhealer/BKCommonLib/blob/master/src/main/java/com/bergerkiller/bukkit/common/conversion/blockstate/BlockStateConversion.java
but I dont think it really fully will fix the problems.
the reason it is so slow is because bukkit decided it was a good idea to create a copy of the entire object ('snapshot') at the time getState() is called, despite it 99.99% never being used by anyone
that conversion utility above gets around a related issue, that getState() causes chunk loads, which you dont want during a ChunkLoadEvent
unfortunately that is exactly what the issue is https://puu.sh/DLwef/4817dd5df2.jpg
Would be interesting if I could somehow sabotage the snapshot logic so it doesnt occur

This and related issues are why the 1.14 builds haven't been released on spigot yet. The issue is there, sometimes to the point the server freezes entirely. I have noticed this too while testing. In Light Cleaner you can notice that it takes a very long time to actually load the chunks prior to fixing the light, dragging TPS way down.
Something just isn't right in the server.

This and related issues are why the 1.14 builds haven't been released on spigot yet. The issue is there, sometimes to the point the server freezes entirely. I have noticed this too while testing. In Light Cleaner you can notice that it takes a very long time to actually load the chunks prior to fixing the light, dragging TPS way down.
Something just isn't right in the server.
I've been waiting for quite a long while now for spigot developers to come with a fix, but I'm afraid it will never come. I may have to just write my own 'getChunkat(x, z)' function with a workaround. It's just that this bricks pretty much the entirety of the Bukkit API that I'm still using...

Thanks for reply.Looking forward to

I will attempt a null-construction of CraftBlockState and assigning the relevant fields manually. When I have a build ready I will post it here. It might hurt stability though.

@timvango can you see if there is any improvement to your timings with this fix? If there are any errors let me know. https://github.com/bergerhealer/BKCommonLib/commit/3ca4ba68838782b7b8b0c1264d6eaa23c83ed5d5
https://ci.mg-dev.eu/job/BKCommonLib/566/

@timvango can you see if there is any improvement to your timings with this fix? If there are any errors let me know. bergerhealer/BKCommonLib@3ca4ba6
https://ci.mg-dev.eu/job/BKCommonLib/566/

Everything works fine. TPS is 20. Thanks a lot!
https://timings.aikar.co/?id=dd970c8bb0b64ab98f072a3ff0686bca

It's a lot better now! There are still some lagg spikes (especially when traveling through the map at a high speed, so I guess the majority is coming from Spigot/Minecraft itself), but the server can actually recover from it now.
In case they can help you, I made a new timings report with the new version: https://timings.spigotmc.org/?url=epijupujaf
Thank you very much for fixing this so quickly!

That is great to hear! I notice that onChunkUnload in traincarts is still rather slow, likely because of the getBlockStates call, so there is still some improvement to be had. I'll dig into that a bit more later.

@timvango can you test this test build out, where I've added additional timings for the different block state conversions that occur? I want to pinpoint what is still causing 33% tps usage in your case.
https://www.dropbox.com/s/4flortin8e47kno/BKCommonLib-1.14.3-v1-SNAPSHOT.jar?dl=0

Here you go: https://timings.spigotmc.org/?url=ajuvojawex

@timvango sorry, I think I messed up and the file I linked was incorrect. Try this one instead: https://www.dropbox.com/s/aak8x8gp0wbf97t/BKCommonLib-1.14.3-v1-SNAPSHOT_timings.jar?dl=0
Triple-checked it this time

No problem, here is the timings report of the correct version: https://timings.spigotmc.org/?url=adikulasuz

It's crazy how many chunk loads and unloads happen. Can this actually be correct? In that period it had about 2 million chunk unloads. Perhaps you can check if the same kind of thing happens when bkcommonlib/traincarts isnt installed.
At least I know what to look at now specifically. Command blocks and signs, likely because they create a copy of the data and store it. There might be a way to fix that by making a custom Sign BlockState implementation that doesn't create a copy.

Timings without BKCommonLib and Traincarts: https://timings.spigotmc.org/?url=rufavifaxu

Yeah clear as day BKCommonLib or Traincarts is making it far worse. Without it, from WorldGuard's BukkitRegionContainer$1::onChunkLoad(ChunkLoadEvent) I can see that its at about 0.7 chunk load/unload events per tick. With BKC/TC installed its at 36 per tick.
I think it is rapidly triggering multiple chunk load/unload events for the same chunk.
Do you have any trains with keep chunks loaded on? Do these trains drive around? Are there many of them?

According to the /train list command, there are 20 trains on the server of which 0 are moving.
All trains have keepChunksLoaded set to true.

while I dont expect it, yeah, check to see if just running BKCommonLib has this effect. It could be some background process, like the logic for maps in item frames

You are right, without TC there is basically no impact at all: https://timings.spigotmc.org/?url=ejiyujiguc

In an effort to trace down what it could be: this version of bkcommonlib has the asynchronous chunk loading, and the chunk unload request, disabled for the forced chunk API. Traincarts uses this (relatively new) api to keep chunks loaded. It might hurt in tps when trains are moving as it's loading chunk synchronously. But it may also fix these problems and help tps.
Run it with bkc and tc.
https://www.dropbox.com/s/4flortin8e47kno/BKCommonLib-1.14.3-v1-SNAPSHOT_fc_change.jar?dl=0

https://timings.spigotmc.org/?url=eweledewer

hmn, no real change there. I'll exclude that from the list of possibilities then.
For a test, can you remove all trains and run timings again? Perhaps make a backup if you dont have an automatic spawning system. In config.yml the 'all minecarts are traincarts' option should be false, so minecarts in unloaded chunks dont turn into traincarts minecarts.

I've made some changes to traincarts' redstone tracker so that it requires all neighbouring chunks of a chunk to be loaded (too) before loading the signs held inside. This may prevent loading chunks recursively while computing the redstone state of a sign, and may fix this issue that way.
https://ci.mg-dev.eu/job/BKCommonLib/568/
https://ci.mg-dev.eu/job/TrainCarts/474/

Timings report for your first suggestion (using the fc_change build): https://timings.spigotmc.org/?url=exenumozuy
And the timings report with the new build: https://timings.spigotmc.org/?url=sikitugewe

That looks pretty much entirely fixed now, nice. I recommend to keep using those new builds, but keep an eye on any signs that seem to be misbehaving. For example, removing redstone power from a [!train] sign and the sign not activating.

All the above changes have been pushed to the projects, plus configuration option "initRedstoneWithRadius" if for some reason in the future people want the original, laggier, legacy behavior.


can I deport a module?

I feel like if I'm unhappy with the results of
from Syria import refugees

I should be able to at a later point in the program specify that this module be removed from memory.
from America deport refugees

excellent idea

I think the proper syntax would be
import refugees from Syria

and
deport  refugees from America

just so we are following TS6

I did notice that TrumpScript does not allow import statements.
However, that shouldn't mean you can't be deported if you are already there.
e.g.
deport mexicans from America
# mexicans should no longer be defined in this context
if mexicans?
    complain "They are taking our jobs."
else
   say "America is great again."
America is great

Perhaps all imports should be banned until the program has "figured out what's going on."
America is great.

we should be able to export objects as well, but only with a 25% tariff

:+1:


linuxHeaders: fix darwin -> linux-mips cross-compilation

Description of changes
See individual commit messages for more info

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[x] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

cc @amjoseph-nixpkgs

Could you specify (preferably in the commit message or in the patch) where the upstream submission is done?

Updated the commit message with the mailing list archive url<EMAIL_ADDRESS>

Is there any chance you could adjust your PR to use the byteswap.h from gnulib?

Unfortunately gnulib doesn't seem to produce byteswap.h on darwin. It has a byteswap.in.h; maybe this is a bug. It doesn't have endian.h either.

I think it's a bit easier to grok what's going on with these writeTextFile snippets in the same file, since this is the only place they're used. Will definitely move them to pkgs/os-specific/darwin if they end up being needed elsewhere.


is_published property instead of method

issue #59

Thank you very much!
I caught a few of these with the latest release, but looks like I didn't catch all of them.
Merging


Possible race condition in the Maildown::MarkdownEngine.default_html_block method

I was wondering how https://github.com/yuki24/did_you_mean/issues/102 could occur. One thing I noticed is that in the maildown gem, the kramdown gem is lazily loaded on the fly, which adds a handful of constants dynamically. In an extreme condition, this may cause a race condition. Consider the following scenario where a Sidekiq instance runs two threads (workders) that attempt to run an email delivery job:

Thread 1
Thread 2

calls MarkdownEngine.default_html_block
-

-
calls MarkdownEngine.default_html_block

attempts to require 'kramdown' for the first time
-

evaluates the line that adds a Kramdown constant but doesn't reach the line 74 that adds Kramdown::Document
-

-
evaluates unless defined? Kramdown (now evaluates to unless true)

-
attempts to call html_block.call on the proc that has a reference to the Kramdown::Document that does not exist yet

In this scenario, the thread 2 would raise a NameError because the Kramdown constant is loaded but the Kramdown::Document is not. Also, it would only occur once after a cold reboot since the constant would be available once it's loaded by the thread 1.
I wasn't sure what fixes you'd prefer, so just wanted to bring this up. Thanks!

Thanks for the note. The reason that it's a lazy load is that people can install their own markdown rendering engines if they want (though honestly I have no proof that anyone is doing that.
I think the fix would be requiring the gem at boot time, but rescuing in-case it does not exist. The only other thing I could think of is to use a mutex to block multiple clients from trying to require at the same time, but that increases a tiny bit of runtime overhead that I don't think is needed.

Do you know if Autoload fixes this issue, or if I need to mutex it?

I was late by a hair, but you may have to mutex it. There is a thread-safety issue in Autoload https://bugs.ruby-lang.org/issues/12688 and the example in the issue happens to reproduce the exact same issue you saw a few days ago. Not sure that was fixed.
cc @ko1

Looks like it is threadsafe https://twitter.com/schneems/status/978705647301746688

It's supposed to have been thread safe since 2.0 https://github.com/headius/thread_safe/issues/15#issuecomment-28936120


Add Create Curve button to Path2D editor

When Path2D has no Curve2D assigned, the toolbar buttons have no effect. Trying to do some operation will just unselect the node. This is a niche problem, because curve is auto-created in Path2D, but it's confusing once you run into it.
This PR adds a "Create Curve" button when no curve is assigned. It replaces the standard toolbar.
https://github.com/user-attachments/assets/113ec6e1-59ca-4ab7-b0e4-b5c6a7b95c35
Unfortunately there doesn't seem to be a way to detect when curve is removed while editing, so you need to re-select the node to update the toolbar. Not sure how to best solve that. I thought about adding some PropertyObserver, but not sure if there is use for it elsewhere (not counting in the future).

Should this also be done for Path3D?

Yes.

Thanks!


crossOrigin header makes Chrome bypass it's cache

1926a9cc3bce815daa747d43a06713d75e71a451 adds a crossOrigin header to any request, even if the URL is loaded from the same origin.
This has a negative impact in (at least) Chrome 47:

say you have image X already loaded in the page (via new Image() or classic <img>). Chrome will use a copy from it's cache, if available.
Run Vibrant against image X. Chrome will start a new HTTP request (including Origin: header) to load the same image. Cache is effectively disabled in any case - even if the image had already been processed by Vibrant in an earlier request.
say you load image X again via new Image() or <img> in the same page (no reload). Chrome will start a third(!) request, even if this one is essentially identical to the first

So, it's (fully) loading an image twice, that would already be present in cache.
Removing the crossOrigin header makes Chrome load the image only once - and if possible from cache.
So, please add crossOrigin only for requests that are really cross-origin.

Fixed in 2.0.2


CFFL

CFFL

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_b1v4rsgchz/clone/recipe/meta.yaml:16: pip_install_args: pip install should be run with --no-deps.
ERROR: /tmp/abs_b1v4rsgchz/clone/recipe/meta.yaml:21: missing_wheel: For pypi packages, wheel should be present in the host section
ERROR: /tmp/abs_b1v4rsgchz/clone/recipe/meta.yaml:39: missing_documentation: The recipe is missing a doc_url or doc_source_url
ERROR: /tmp/abs_b1v4rsgchz/clone/recipe/meta.yaml:39: missing_dev_url: The recipe is missing a dev_url
ERROR: /tmp/abs_b1v4rsgchz/clone/recipe/meta.yaml:39: missing_license_family: The recipe is missing the about/license_family key.
WARNING: /tmp/abs_b1v4rsgchz/clone/recipe/meta.yaml:39: missing_description: The recipe is missing a description
Errors were found


Confusion about assigning contracts

Highlights from OMB meeting:

There is a need for contracts to be assigned to one person for life
When someone calls with an issue about a contract, even after adoption, to know who worked on it before

I think we have a couple options here:

Automatic assignment

Riley: assigning only happens with completely new contracts. Everyone has their own pool of contracts for as long as the contract is held or renewed or re-bid, etc.
Example: I have sports contracts because I worked with similar things last year
In this flow, the only time assignment would happen is for completely new contracts

Change the assignment language to something like "Work on this contract"

If we do automatic assignment, we'll need some way to get the historical data. We could do some bulk importing, but honestly I don't really understand why they can't just do it themselves.
Either way, we need to change the "assign" experience off of the list view to capture both the person doing the work and the flow that is needed. Thoughts on how this should work @shellicious ?

I like option 2. The assigned to column shows the first name (or for the time being, email) of the person assigned. Add a "work on this" button in the name cell of the row (where the "Update this contract" button shows up in the in-progress rows).

Move assign into actions as "start work" which takes you to the same page as the "new" page, add controller number to table.

That flow makes sense to me. Let's see if it makes sense to Ed next week.


Detox/E2E: Global threads e2e tests in Gekidou

Summary

Added e2e for global threads and threads smoke test
Fixed/added testIDs
Updated detox deps
PR is focused on CRT mode, hence global threads
Created associated zephyr test cases under Mobile V2 folder

Mobile V2/Threads:
MM-T4805 - Global Threads
MM-T4806 - Follow and Unfollow Thread
MM-T4807 - Mark Thread as Read and Unread
MM-T4808 - Save and Unsave Thread
MM-T4809 - Reply to Thread
MM-T4810 - Open Thread in Channel
Mobile V2/Smoke Test:
MM-T4811 - Threads
Ticket Link
https://mattermost.atlassian.net/browse/MM-42981
Release Note
NONE

@enahum It's not necessary, but was already in my local. I just reverted it back.


refactor: use golang-jwt/jwt instead of dgrijalva/jwt-go

refer to CVE-2020-26160
it's recommended to use github.com/golang-jwt/jwt instead of github.com/dgrijalva/jwt-go. the lib is backward compatible. it is actually the cloned version of dgrijalva's and actively maintained.

Thanks for the PR @novalagung. I think we are missing a change in the jwt_test file?

@abdulajet thanks for responding. I'll update the test, will ping you once it's ready

@abdulajet please retest. I pushed some updates.
The JWT lib is changed to<EMAIL_ADDRESS>That specific version includes an update that patch CVE-2020-26160

@novalagung thanks for the PR.


Sitecore 10 compatibility

Just wondering if anyone has tested this with Sitecore 10?

My fork (with the latest commit) should work if you compile it and use the SC93 Release binaries, but you will also have to remove the fast: query from the relevant template field(s), as fast queries have been deprecated since 10.1 and, as far as I can tell, no longer work in 10.3.


Fetch all accounts limited to 25

I'm unable to retrieve more than 25 accounts. Needs an option to paginate.

I've added query[:limit] ||= 200 to get for now.

Thanks for the heads up. Will fix shortly.

This should do it: cdcc32d4efb843943775dd338468ba6b15e5f912


report keys of metadata columns with zero standard deviation

It would be helpful if standardize_metadata were to also report the keys of the metadata columns with zero standard deviation.

It's interesting that the occurrence of such columns seems to lead to numerical instability.

#132 modifies the source to print any metadata keys which have zero variance.


Fix  bug in user info data model

Breaking change that removes email from the profile.

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

Project coverage is 95.13%. Comparing base (2f864d4) to head (140e24b).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #30      +/-   ##
==========================================
- Coverage   95.16%   95.13%   -0.03%
==========================================
  Files           6        6
  Lines         372      370       -2
==========================================
- Hits          354      352       -2
  Misses         18       18

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


The settings view not open on macOS 14.

The settings view not open on macOS 14.
Because, SettingsLink is missing.

Fixed it -> https://github.com/3colorr/Mizuame/commit/f58e2154694c9462156a521286457c87489d2b8f


Add C interface to kernels

To make building with bazel straightforward and to avoid needing runtime path information about the location of the cubins, this includes them as static binary data in the headers.

Just cloned and ran on my GTX Titan (Maxwell) and it worked fine.

Also, cuda-9 was just released today and finally includes these kernels as part of cublas.

Hallelujah


Sometimes can not change SmartProxy Activation with mouse click but only restart browser

System Details

OS: win10
Thorium Version 117.0.5938.157

Problem
see Sometimes can not change SmartProxy Activation with mouse click but only restart browser
Screenshots
see the link
Additional Notes
can't reproduce it on edge.

@CCCAUCHY I have tried it myself, it appears to be a bug in Chrome/Chromium/Thorium. Sorry, but not much I can do.
You could try the latest M119 version and see if it fixes it for you.

@CCCAUCHY I have tried it myself, it appears to be a bug in Chrome/Chromium/Thorium. Sorry, but not much I can do.
You could try the latest M119 version and see if it fixes it for you.

Still.
Btw Edge has been released version 120, I think M119 is too old for Thorium because when I first found Thorium, the version number of Thorium was always much ahead of the stable Chrome or Edge.

@CCCAUCHY I have tried it myself, it appears to be a bug in Chrome/Chromium/Thorium. Sorry, but not much I can do.
You could try the latest M119 version and see if it fixes it for you.

Still. Btw Edge 120 has been released, I think M119 is too old for Thorium because when I first found Thorium, its version number was always much ahead of the stable Chrome or Edge.

The TOT version will not be followed up at this stage.
@CCCAUCHY

FYI, this problem seems to almost disappear after I use the version downloaded from GitHub release


A sample win32 app using wanakana

Hi, thanks for opening an issue.
Please provide more information in future if you have a problem or a suggestion.


Support WASM target (or clarify in FAQs)

First of all, thanks for publishing this genius library.
Due to various dependencies (described here), this library can currently not used to build WASM targets. This issue is intended to track the WASM support for typetag specifically (because dependencies might change).
If this issue is a WONTFIX, please add a clarification note to the README FAQs stating that WASM is not supported. This might help developers that would build projects with typetag only to realize later that WASM target is not supported.

+1 for clarification.
For me, specifically that alternate type registries will not be considered, like #36 (or even a user provided store).
While WASM support is probably the biggest need, other use cases are affected. E.g. dynamically loaded plugins, no_std, etc.

The first issue I faced in the wasm frontend when using typetag: https://github.com/dtolnay/typetag/issues/8

Although this does not cover all cases, if the trait and implementing structs are all declared within your crate then using enum_dispatch may be a WASM-viable alternative to typetag.

Is this due to inventory not supporting wasm?
I got around this with my test framework by using inventory for native, and a global scope hack in wasm that adds functions to the window object, then collects window._collect_foo.item1, window._collect_foo.item2 etc until the next one is undefined.

It would be great if this runtime issue which only manifests when decoding data could be turned into a compile time error on WASM, and/or be clearly documented in the package readme.
Its pretty uncommon for a Rust library to compile for a target, then cause runtime errors. Add in that it only happens when decoding data, and only on wasm (I suspect many people like me do new development testing on desktop where debuggers are better) its pretty easy to get pretty far using this package before running into and having to debug this wasm limitation.
Since I prepared it while debugging, here is a minimal test showing the issue by failing on wasm and passing on desktop builds:
#[cfg(test)]
pub mod broken {
    use serde;

    #[cfg(target_arch = "wasm32")]
    use wasm_bindgen_test::*;

    #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
    #[test]
    fn broken_typetag() {
        #[typetag::serde(tag = "type")]
        trait TestTrait {}

        #[derive(serde::Serialize, serde::Deserialize)]
        struct X {}

        #[typetag::serde]
        impl TestTrait for X {}

        let b: Box<dyn TestTrait> = Box::new(X {});
        let encoded = serde_json::to_string_pretty(&b).unwrap();

        let _output: Box<dyn TestTrait> = serde_json::from_str(&encoded).unwrap();
    }
}


Configure Azure Pipelines

This pipeline configuration builds the application and produces a build for the Release configuration.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: dowdio sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

from ms learn


Muhtar - the dog for Security department

About the PR

Second try
hope it doesn't close itself again bruh

Added Muhtar and sprites for him
Added Muhtar's spawner to every station except for CentComm and Reach
Resprited tanks and masks to fit on Muhtar

Why / Balance

Imported from ss13.
You'll need 10h of sec. dep. to take a ghostrole.
Speed higher then human one: 6 tiles for sprint, 4.5 for walking.
Has 30 stamina damage - not much to easilly drop a nukie from dark, just enough to stop a criminal running away. Tho stil waiting for your opinion.
Has 5 slash and 5 piercing damage. Was playtested, not much, not op at all. Same as previous.
Can't slip on anything. Never seen a dog that slips on puddles or smthng like this.
He can drag objects or just move things around with his mouth.
75 damage till crit, 140 till death
50 damage before half slowing down. That's a trained dog, it has to deal with damage.
150 stamina damage till stamcrit. Well, it is tougher than any being, cuz it is still trained.

Technical details

none

Media

[x] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Breaking changes

Changelog

:cl:

add: add: Added Muhtar - the security dog! Woof!

dude no way


Template / documentation bug

Issue / Steps to reproduce the problem
The template Config.cs#L14 creates a new solution with
return new IdentityResource[]
        {
            new IdentityResources.OpenId()
        };

While the quick start that uses it 1_client_credentials.rst says
 return new List<ApiResource>

I am in the process of updating the quickstart but in this instance I feel that the quickstart is correct and we should consider changing the template from  IdentityResource[] to new List<ApiResource>
Same goes for Config.cs#L27
As always happy to submit a PR for the template fix.

I don't know why we use List to be honest. It's not ever being modified in any way.

So what's wrong then the tutorial?   I can deal with that

Yea, I'm not sure there an issue here at all. Personally I don't care if one says List and the other returns IEnumerable or array.

So wait, why did you open this issue in the first place? :)

Because I like consistency.
If the temple you say to use in the quick start says to use array and the quick start itself says to use list you are potentially going to confuse people.
I thought the template was wrong but after seeing your comment I suspect that it's the quick start that should follow it means I will need to update the sample as well I suspect.   I will have to check that.

Okies. PR away as you see fit :)

I have two of the quick starts shined up already I am going to wait and do a main pr for them all when I am done.
I will go through the samples after.

Hi,
I'm currently learning and testing IdentityServer4 in the prospect to use it in the refactoring of our applications.  I don't want to criticize or that you take badly my comment but I do believe that it a necessity.
I have a hard time actually because the code generated by the dotnet new template, the code in the tutorials and in the quick start do not concurs.

I have a hard time actually because the code generated by the dotnet new template, the code in the tutorials and in the quick start do not concurs.

The main reason we don't try to sync with the Microsoft templates is because they change so often and it's a lof of work for us to follow their template du jour. I will say that if you understand the ASP.NET Core programming model, then our templates should be understandable. Point being, one should understand their framework. Otherwise, how could one build anything security related?


Create regexHighlight.md

Created a context script to quickly highlight and count every occurence of a regex in a page. Example: 'regex \d+' to find all numbers.

I noticed that when I try to do a second regex search (which is pretty common because I almost never get regexs right on my first try), there is no way to clear the highlights from the first search, and matches cannot be made when they overlap highlights spans or links. For example, "regex hello world" won't match "hello world".

That's a good point, I am not sure what the best way to enable that would be: maybe regex hilights could be given a special id and before it performs the regex it could remove all spans of that id?

One way to do it would be to use a css class to apply the highlight style and remove the class from all the highlight elements when new highlights are applied. However, the spans would still be present in the HTML so you would need to alter the regex matching code to work across multiple HTML elements. I think that would require applying the regex to the raw text extracted then look up the corresponding elements to highlight in nodeMappings based on the character offsets of the text. For example:
// To determine the offsets:
myRe = new RegExp(...);
matches = [];
text.replace(myRe, (match, offset)=>{
  matches.push({
    start: offset,
    end: offset + match.length,
    text: match
  });
  // This doesn't actually replace anything.
  return match;
});
// To find the elements that need highlighting:
_.where(nodeMappings, ({start, end})=>{
  return (match_start >= start && match_start < end);
});


[Bug Fix]: cookie consent is popping up too often and is not persisted

Addresses: https://github.com/restarone/violet_rails/issues/1235
DEMO
https://user-images.githubusercontent.com/25191509/204212777-ab22c487-d0aa-458c-981d-6f951df7cb2a.mov

@alis-khadka can you upload a demo when you get a chance?

@alis-khadka moving forward, please open PR's directly on this repo. You have write access!


bump expensify-common to 2.0.108

cc @dangrous @ntdiary
Details
bump expensify-common to 2.0.108 to include a more performant regex https://github.com/Expensify/expensify-common/pull/822
Related Issues

https://github.com/Expensify/App/issues/52475
Manual Tests

Type ![test](https://camo.githubusercontent.com/4848d0f965f332077b77a1a0488c3e66b4769032104f4de6890bae218b4add8d/68747470733a2f2f70696373756d2e70686f746f732f69642f313036372f3230302f333030 )_test
Verify the app doesn't crash

Linked PRs

I have read the CLA Document and I hereby sign the CLA


components/mdns: wrong Message compression detect

This patch fix wrong Message compression detection.
Old behavior assumes message compressed when any of 2 most significant bits are set,
But in fact Message compressed only when both those bits are set to 1.
Also there fixed maximal label length check (see https://tools.ietf.org/html/rfc6762#appendix-C).

Cherry-picked as 6e24566186c52dc5432b6b25c81abda577c21e85, made the change suggested by @me-no-dev. Thanks @SiarheiVolkau!


Merge duplicate attachment links

After an inexplicable synchronization error, the attachment links under each entry became duplicated. The specific situation is that the number of attachments has not changed, but each entry has an additional attachment link pointing to the same attachment. Although it is currently impossible to determine whether PDFs of different sizes are not duplicate entries, it is unknown whether two attachment links can be determined based on the addresses they are linked to. If possible, I hope to add an attachment link merging function to merge attachment links pointing to the same address.

After implementing this function, I realized it could almost certainly lead to file loss when ZotMoov's auto-delete feature is enabled. Other plugins might have the same effect. Therefore, I'm debating whether to include it as a hidden function or exclude it altogether.

Thank you for trying to solve this problem, and we apologize for any inconvenience caused. Maybe I encountered data damage after a cloud synchronization error. I am wondering if it is possible to identify duplicate attachment links (pointing to the same location), back up a copy first, and then restore the attachment links after deletion, so that the attachment links of literature entries are no longer duplicated.

This is the situation I encountered

A hidden menu item was added to v0.3.0. See Technical notes for information and how to show it.
Be extra careful if you have ZotMoov installed. Remember to turn off its "Automatically Delete External Linked Files" option and empty the trash before turning it back on.


FEATURE: maintain() for objects

This will take an object and an array of keys. The identified keys will be maintained in the object while the rest will be removed

Done!


strange part of code

I have been looking through the code and I noticed some strange code:
function isPrimitive(value: any) {
  return value !== 'object' && !Array.isArray(value);
}

shouldn't it be sth like:
function isPrimitive(value: any) {
  return typeof value !== 'object' && !Array.isArray(value);
}

value can also be typeof function so all cases haven't been checked. (if you don't count NaN as a primitive then also NaN should be checked)

path: stryker\packages\stryker\test\helpers\producers.ts
so final code i suppose should be is like:
function isPrimitive(value: any) {
  if(typeof value === 'number' && isNaN(value)) return false;
  if(typeof value !== 'object' && typeof value !== 'function') return true;
  return false;
}

This is indeed a problem. Good proposal. Looking forward to a PR 👍 😎

@nicojs should i PR it? Or you will do it on hacktoberfest?

Nope, this one isn't claimed yet. You're picking it up?
If you do + want a free T-shirt, make sure you're signing up for hacktoberfest: https://hacktoberfest.digitalocean.com/

I can pick it up :slightly_smiling_face:

@nicojs this can be closed.

Yes it can. Thanks @kmdrGroch
If you add fixes #1133 in the description it will close this issue automatically when the PR is accepted.

thanks :D


How to display Power BI Reports collection using @Html.PowerBIReport

How to display Power BI Reports collection using
@Html.PowerBIReport
I tried this, looping through all report collection in view (MVC) ?, but only one report was displayed multiple times (but report collection has multiple distinct reports? is this not supported yest
Swati

Look at the sample app here:
https://github.com/CriticalPathTraining/PowerBiEmbedded/tree/master/PowerBiEmbeddedReportViewer
Inside PowerBiEmbeddedReportViewer/Controllers, look at HomeController.cs and find this code.
IList reports =
client.Reports.GetReportsAsync(workspaceCollection, workspaceId).Result.Value;
var viewModel = new ReportsViewModel {
Reports = reports.ToList()
};
Then if you look in the MVC view file named Index.cshtml, you will see this code which adds all reports to the menu for selecting which report to load.
@foreach (var report in Model.Reports) {   var reportClass = Request.QueryString["reportId"] == report.Id ? "activeReport" : "";     <li class="@reportClass">       @Html.ActionLink(report.Name, "Index", new { reportId = report.Id })      </li> }
By the time you use the @Html.PowerBIReport tag in an MVC view, you must decide which particualr report you want to view.
If you want to see this app in action and how it offers the user the ability to load any report in an Azure workspace for Power BI, check out the live version at http://powerbireportviewer.azurewebsites.net/


Add a session_available method to check if session file exists

Hi, just set up persistence.nvim and really liking it so far. I thought it'd be nice to add a quick "restore session" button on my dashboard, and conditionally only show that button when a session exists for the current working directory.
Unsure if I should've written a short example on the README/docs so users would find it easier.
EDIT: I'm so sorry, I just read #30 also adds this feature. I hadn't looked beyond the PR titles. Should I just close this one?

You can just do vim.uv.fs_stat(require("persistence").get_current()).
If nil there's no session


CARB / EPA Check Box Missing From User Input Log Display

CARB / EPA Check Box Missing From User Input Log Display
We added a check box to the data panel … but left the value selected out of log display
User Data Entry:
Engine Model Emissions Year: 2024
Number of Emissions ECUs Expected: 3
Number of CAL IDs Expected: 9
Fuel Type: Diesel vehicle
Ignition Type: Compression
Number of Trips for Fault B Implant: 1

Check box display provided by IM

See #1107 for original request.

“[Not] US/CARB” to appear after
“Engine Model Emissions Year: 20XX”

@ericthomasswenson
This appears in the logs from 3.1.22+, however it is inverted from what it should be. When the US/CARB box is checked the log file shows that it is not US/CARB:
Engine Model Emissions Year: 2024 not US/CARB
Number of Emissions ECUs Expected: 3
Number of CAL IDs Expected: 6
Fuel Type: Diesel vehicle
Ignition Type: Compression
Number of Trips for Fault B Implant: 1


Fix componentDidUpdate when updating by setState on v16

In v16, ShallowRenderer doesn't call componentDidUpdate even updating by setState.
https://github.com/facebook/react/pull/10372
This PR is to fix this.

l know ShallowRenderer v16 calls cDU without a context argument but I didn't include that because I think it should be fixed separately.

made small tweak based on @ljharb's comment. merging now in interest of time. Thanks!

Thanks!

Has this been merged into v3.1.0? Because I cannot get componentDidUpdate to run when using setState

Yes, it's in v3.1; please file a new issue if you have trouble still.


Needs Example of RAW Socket Req/Rep parallel processing

There are currently no examples that display how to setup Req/Rep to handle requests in parallel.  Something I think many people will have use for.

Perfect! :+1:


Deocoder issue when change encoder setting

I'm currently deal with this problem when change setting (resolution and mode) of encoder.
Encoder start with res 640 x 480, after that, I change stream from camera to desktop sharing mode, and res change to 1280 x 720. I have destroyed encoder and reinitialize with new setting (SCREEN_CONTENT_REAL_TIME and new resolution). Decoder, on the remote peer still unchange.
Decoder decode well, but some time this occur:

Original image:

Decode image:

Some time this occur, and some time run well. In both case, decoder does not show any error.
How can i solve this?

seems not  the decoder issue. Can you make sure the encoding setting is correct?

Hi huili2,
This is configuration of encoder when in camera capture:
params.iUsageType = CAMERA_VIDEO_REAL_TIME;
params.iPicWidth = 640;
params.iPicHeight = 480;
params.iRCMode = RC_BITRATE_MODE;
params.iTargetBitrate = _bitrate * 1000;
params.iMaxBitrate = _bitrate  * 1000;
params.uiMaxNalSize = 1500;
params.bEnableFrameSkip = false; // frame skipping
params.bEnableDenoise = false; // denoise control
params.bEnableBackgroundDetection = false; // background detection control
params.bEnableAdaptiveQuant = 0; // adaptive quantization control
params.bEnableLongTermReference = false;
params.iLTRRefNum = 0;
params.iLtrMarkPeriod = 0;
params.bIsLosslessLink = false;
params.iSpatialLayerNum = 4;
// Intialize 4 spatial layer with differrent bitrate (same res)
for (int i = 0; i < params.iSpatialLayerNum; i++) {
	if (i == 0)
		params.sSpatialLayers[i].uiProfileIdc = PRO_BASELINE;
	else
		params.sSpatialLayers[i].uiProfileIdc = PRO_SCALABLE_BASELINE;
	params.sSpatialLayers[i].iVideoWidth = 640;
	params.sSpatialLayers[i].iVideoHeight = 480;
	params.sSpatialLayers[i].iSpatialBitrate = _spatialLayers[i].bitrate * 1000;
	params.sSpatialLayers[i].fFrameRate = 30;
	params.sSpatialLayers[i].sSliceCfg.uiSliceMode = SLICE_MODE;
	if (params.sSpatialLayers[i].sSliceCfg.uiSliceMode == SM_DYN_SLICE) {
		params.sSpatialLayers[i].sSliceCfg.sSliceArgument.uiSliceSizeConstraint = SLICE_SIZE_CONSTRAINT;
		params.uiMaxNalSize = 1500;
	}
}

After switch to scren capture mode, I destroy video encoder and reinitialize with this setting (encoder with 1 layer):
SEncParamBase paramsBase;
memset(&paramsBase, 0, sizeof (SEncParamBase));
paramsBase.iUsageType = SCREEN_CONTENT_REAL_TIME;
paramsBase.fMaxFrameRate = 15;
paramsBase.iPicWidth = 1280;
paramsBase.iPicHeight = 720;
paramsBase.iTargetBitrate=500000;

Cannot directly find the root cause. But could you please set the spatial layer num to be 1, if it would not cause other issues? Current decoder is unable to decode several layers input.

close this because of answered and no further update afterwards.


Use futures::Poll in TryRead, TryWrite, Transport

The methods on these traits were returning Options, with the semantics
not completely clear in all cases.
Fixes #7

Looks like this got handled in move to FramedIo.

Gah, sorry, I didn't see the PR :(


Gopass age auto-unlock on login

Summary
I want to use gopass with age as my auth-source for managing my email passwords. I use mbsync/msmtp to read and send emails locally and I passed gopass mail/whatever as a command since the PassCmd option in both config accepts stdin and it works nicely, however age seems to forget the password every 5 minutes or so and I'm prompted with a pinentry dialog, which might be more secure but is bad UX since mbsync runs every 5 minutes to check for emails. Is there a solution to unlock age at login automatically (or just once per session?)
Edit: Could I do the autounlock if I added an ssh key as a recipient and then dumped it into ssh-agent? Also would adding a recipient re-encrypt the whole store to use that key instead?

I'm afraid but that's not supported today. I haven't closely followed if age itself did add some kind of persistent agent support.
But gopass had it for a while until I realized that it might be insecure so instead of shipping something which might be dangerous I removed it.
We could make a new attempt, but we'll need to make some careful changes around that (e.g. who can talk to the agent, unlocked private key material should not leave the agent, ...). Also possibly issues w/ OS specific keychains.

I have an work-in-progress branch that uses the OS keyring to cache the passphrase.
But I'm not sure I'm happy with the currently indefinite caching.

I have msmtp with three accounts and three different passwords, set to run every 5 minutes to check for my emails. That'd gotta be annoying to deal with. I think if we could make this a strictly opt-in feature, with a huge disclaimer "it's unsafe, do so at your own risk", it would be good for the users.

I think we can add this as an optional feature (off by default) and let age adopters try and report feedback.


ISPN-9130 Scattered cache with bias sends ack too early

https://issues.jboss.org/browse/ISPN-9130

@danberindei Rebased && addressed your comments

Done; I've renamed the CombiningCollector to SingleTargetCollectorImpl.

Integrated, thanks Radim!


Request: Add Accursed Strike for Hexcrafter

Accursed Strike arcana which allows Spellstrike to work with Curse spells is a missing core feature of the Hexcrafters archetype.
It seems quite similar to the Broad Study feat added by this mod, but it would require 1 level in Witch class to make it work.

Check out DarkCodex. It adds this.

the DarkCodex page says that the feature is broken atm

There is nothing to add, this already works with the magues variant casting
fixes.
On Thu, Dec 22, 2022, 2:50 AM UBCK @.***> wrote:

Accursed Strike arcana which allows Spellstrike to work with Curse spells
is a missing core feature of the Hexcrafters archetype.
It seems quite similar to the Broad Study feat added by this mod, but it
would require 1 level in Witch class to make it work.
—
Reply to this email directly, view it on GitHub
https://github.com/Vek17/TabletopTweaks-Base/issues/563, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAWSQPHVWO477C3STV3IDKTWOQI6JANCNFSM6AAAAAATGPE4CQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Sorry for reviving old request, figured it would be better than making a new one. it does not work currently. Here is the description for the Accursed Strike arcana from the TT:
Accursed Strike (Sp): A hexcrafter magus who can cast bestow curse, major curse, or any spell with the curse descriptor can deliver these prepared spells using the spellstrike ability, even if the spells are not touch attack spells.
So of course it works with something like bestow curse since it's already a touch spell, but spells Blindness, Baleful Polymorph, etc. Don't work for because there's no implementation for it.


Remove the final keyword so we can extend the classes

I would like to extend the Eth class to implement eth_call for example, but I am unable to do so because the class is final. The same applies to Web3 or even Http (I had to add Content-type into headers for my BSC RPC to work)
        $request = new Request('POST', $this->url, [
            "Content-Type" => "application/json",
        ], $body);

Could you consider removing the final keyword from them?

@genesiscz, would you be happy with adding eth_call to here directly as a PR? 🙂

I could, but it would require a lot more work because of the transaction needed to be signed (by your private key) which is definitely not a thing I can possibly do in an elegant correct way since I don't know the protocol goodly enough.

Thank you for reporting this issue. What do you think about a solution that don't relies on inheritance? Do you have any ideas?

Thank you for reporting this issue. What do you think about a solution that don't relies on inheritance? Do you have any ideas?

I guess there could be a per-method class which COULD be but DOESN'T HAVE TO be called via __call?

Thank you for reporting this issue. What do you think about a solution that don't relies on inheritance? Do you have any ideas?

For example $transporter->call(new Eth_Call(.....));

Feel free to pull request something here. We have no plans to remove the final keyword.


MosIT data

Great job! When will you open source MosIT data?

Hi, thx for your interest. While we plan to release the data, we are advised to be cautious about the copyright issue. At this moment, we are in the process of finalizing the data and handling the copyright issue. Guess will be available later, but probably on request.

Hi, could you provide information on how to request the data? Thanks.

Thanks for the interesting work! I am also interested in getting the data as well. It would be great if you could share how to request :).

@ChocoWu Would you mind let us know how can we ask for the MosIT data?

@NikhilBhargav @oroojlooy Thx for the interest. We've already released the textual MosIT dataset. Please refer to  MosIT. The image, video, and audio components will be rolled out gradually. Stay tuned!


swift test should warn when --filter excludes all tests (à la XCTest.)

When using XCTest and swift test --filter, if all tests are filtered out a diagnostic of the form:

warning: No matching test cases were run

Is emitted by SwiftPM. We should have a similar warning we emit from swift-testing in this scenario.
Checklist:

[ ] Code and documentation should follow the style of the Style Guide.
[ ] If public symbols are renamed or modified, DocC references should be updated.

Draft for now because we may end up needing to implement the relevant logic in a single location in SwiftPM so that the message reflects the overall output, not per-library output. TBD.

No longer required due to #536 and https://github.com/swiftlang/swift-package-manager/pull/7777.


NaN Loss and learn nothing for all the classes when training from scratch without using pretrained model

When I train the MiB from scratch using the VOC dataset, the Loss keeps being nan during the training. Any idea about this issue?

command:
python -m torch.distributed.launch --nproc_per_node=2 run.py --data_root data --batch_size 12 --dataset voc --name test_MIB_voc_15_5_lr_0.01_no_pretrained --task 15-5 --lr 0.01 --epochs 30 --method MiB --no_pretrained

python -m torch.distributed.launch --nproc_per_node=2 run.py --data_root data --batch_size 12 --dataset voc --name test_MIB_voc_15_5_lr_0.01_no_pretrained --task 15-5 --lr 0.01 --epochs 30 --method MiB --no_pretrained

*****************************************Setting OMP_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed.*****************************************

INFO:rank1: Device: cuda:1
INFO:rank0: [!] starting logging at directory ./logs/15-5-voc/test_MIB_voc_15_5_lr_0.01_no_pretrained/
INFO:rank0: Device: cuda:0
INFO:rank0: Dataset: voc, Train set: 8437, Val set: 1240, Test set: 1240, n_classes 16
INFO:rank0: Total batch size is 24
INFO:rank0: Backbone: resnet101
INFO:rank0: [!] Model made without pre-trained
Warning:  apex was installed without --cpp_ext.  Falling back to Python flatten and unflatten.
Selected optimization level O0:  Pure FP32 training.

Defaults for this optimization level are:
enabled                : True
opt_level              : O0
cast_model_type        : torch.float32
patch_torch_functions  : False
keep_batchnorm_fp32    : None
master_weights         : False
loss_scale             : 1.0
Processing user overrides (additional kwargs that are not None)...
After processing overrides, optimization options are:
enabled                : True
opt_level              : O0
cast_model_type        : torch.float32
patch_torch_functions  : False
keep_batchnorm_fp32    : None
master_weights         : False
loss_scale             : 1.0Warning:  multi_tensor_applier fused unscale kernel is unavailable, possibly because apex was installed without --cuda_ext --cpp_ext. Using Python fallback.  Original ImportError was: ModuleNotFoundError("No module named 'amp_C'",)
Warning:  apex was installed without --cpp_ext.  Falling back to Python flatten and unflatten.
INFO:rank0: [!] Train from scratch
INFO:rank1: tensor([[79]])
INFO:rank0: tensor([[79]])
INFO:rank0: Epoch 0, lr = 0.010000
INFO:rank0: Epoch 0, Batch 10/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 0, Batch 20/351, Loss=nan
Warning: NaN or Inf found in input tensor.INFO:rank0: Epoch 0, Batch 30/351, Loss=nanWarning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 0, Batch 40/351, Loss=nanWarning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 0, Batch 50/351, Loss=nanWarning: NaN or Inf found in input tensor.INFO:rank0: Epoch 0, Batch 60/351, Loss=nanWarning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 0, Batch 70/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 0, Batch 80/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 0, Batch 90/351, Loss=nan
Warning: NaN or Inf found in input tensor.INFO:rank0: Epoch 0, Batch 100/351, Loss=nanWarning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 0, Batch 110/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 0, Batch 120/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 0, Batch 130/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 0, Batch 140/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 0, Batch 150/351, Loss=nan
Warning: NaN or Inf found in input tensor.INFO:rank0: Epoch 0, Batch 160/351, Loss=nanWarning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 0, Batch 170/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 0, Batch 180/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 0, Batch 190/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 0, Batch 200/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 0, Batch 210/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 0, Batch 220/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 0, Batch 230/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 0, Batch 240/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 0, Batch 250/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 0, Batch 260/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 0, Batch 270/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 0, Batch 280/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 0, Batch 290/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 0, Batch 300/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 0, Batch 310/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 0, Batch 320/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 0, Batch 330/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 0, Batch 340/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 0, Batch 350/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 0, Class Loss=nan, Reg Loss=0.0
INFO:rank0: End of Epoch 0/30, Average Loss=nan, Class Loss=nan, Reg Loss=0.0
Warning: NaN or Inf found in input tensor.
Warning: NaN or Inf found in input tensor.
INFO:rank0: validate on val set...
INFO:rank0: Validation, Class Loss=nan, Reg Loss=0.0 (without scaling)
INFO:rank1: Done validation
INFO:rank0: Done validation
INFO:rank0: End of Validation 0/30, Validation Loss=nan, Class Loss=nan, Reg Loss=0.0
INFO:rank0:
Total samples: 1240.000000
Overall Acc: 0.694367
Mean Acc: 0.062500
FreqW Acc: 0.482146
Mean IoU: 0.043398
Class IoU:
        class 0: 0.6943672262601215
        class 1: 0.0
        class 2: 0.0
        class 3: 0.0
        class 4: 0.0
        class 5: 0.0
        class 6: 0.0
        class 7: 0.0
        class 8: 0.0
        class 9: 0.0
        class 10: 0.0
        class 11: 0.0
        class 12: 0.0
        class 13: 0.0
        class 14: 0.0
        class 15: 0.0
Class Acc:
        class 0: 0.9999999999999951
        class 1: 0.0
        class 2: 0.0
        class 3: 0.0
        class 4: 0.0
        class 5: 0.0
        class 6: 0.0
        class 7: 0.0
        class 8: 0.0
        class 9: 0.0
        class 10: 0.0
        class 11: 0.0
        class 12: 0.0
        class 13: 0.0
        class 14: 0.0
        class 15: 0.0

INFO:rank0: [!] Checkpoint saved.
Warning: NaN or Inf found in input tensor.
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 1, lr = 0.009699
INFO:rank0: Epoch 1, Batch 10/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 1, Batch 20/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 1, Batch 30/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 1, Batch 40/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 1, Batch 50/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 1, Batch 60/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 1, Batch 70/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 1, Batch 80/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 1, Batch 90/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 1, Batch 100/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 1, Batch 110/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 1, Batch 120/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 1, Batch 130/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 1, Batch 140/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 1, Batch 150/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 1, Batch 160/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 1, Batch 170/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 1, Batch 180/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 1, Batch 190/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 1, Batch 200/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 1, Batch 210/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 1, Batch 220/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 1, Batch 230/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 1, Batch 240/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 1, Batch 250/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 1, Batch 260/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 1, Batch 270/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 1, Batch 280/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 1, Batch 290/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 1, Batch 300/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 1, Batch 310/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 1, Batch 320/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 1, Batch 330/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 1, Batch 340/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 1, Batch 350/351, Loss=nan
Warning: NaN or Inf found in input tensor.
INFO:rank0: Epoch 1, Class Loss=nan, Reg Loss=0.0
INFO:rank0: End of Epoch 1/30, Average Loss=nan, Class Loss=nan, Reg Loss=0.0
Warning: NaN or Inf found in input tensor.
Warning: NaN or Inf found in input tensor.
INFO:rank0: validate on val set...
INFO:rank1: Done validation
INFO:rank0: Validation, Class Loss=nan, Reg Loss=0.0 (without scaling)
INFO:rank0: Done validation
INFO:rank0: End of Validation 1/30, Validation Loss=nan, Class Loss=nan, Reg Loss=0.0
INFO:rank0:
Total samples: 1240.000000
Overall Acc: 0.694367
Mean Acc: 0.062500
FreqW Acc: 0.482146
Mean IoU: 0.043398
Class IoU:
        class 0: 0.6943672262601215
        class 1: 0.0
        class 2: 0.0
        class 3: 0.0
        class 4: 0.0
        class 5: 0.0
        class 6: 0.0
        class 7: 0.0
        class 8: 0.0
        class 9: 0.0
        class 10: 0.0
        class 11: 0.0
        class 12: 0.0
        class 13: 0.0
        class 14: 0.0
        class 15: 0.0
Class Acc:
        class 0: 0.9999999999999951
        class 1: 0.0
        class 2: 0.0
        class 3: 0.0
        class 4: 0.0
        class 5: 0.0
        class 6: 0.0
        class 7: 0.0
        class 8: 0.0
        class 9: 0.0
        class 10: 0.0
        class 11: 0.0
        class 12: 0.0
        class 13: 0.0
        class 14: 0.0
        class 15: 0.0

BTW, could you provide the Linux kernel version and also the gcc version? Since you can see that the apex installation is not fully successful, therefore I want to know more about your environment setting for installing the apex.

Fixed the problem after successfully installing the apex, the loss is no more nan.

Glad you solved.
In case it may be useful for anyone else, I just installed Apex from the Nvidia repository https://github.com/NVIDIA/apex.
I'm using the latest version, which is 0.1.
Hope to change to Pytorch 1.6 and default Torch.apex in the future.


bad module definition ... vaker/example.v is defined as module main

I'm very new to the language, so maybe I'm doing something wrong here, but after installing the module with both:
v install ChAoSUnItY.vaker

or
v install --git https://github.com/ChAoSUnItY/vaker

and importing it on any file, I got the error that says:
builder error: bad module definition: testing-vaker-module.v imports module "vaker" but /home/everton/.vmodules/chaosunity/vaker/example.v is defined as module `main

(or in the case of installing it with git, it installs directly under ~/.vmodules/vaker - without the chaosunity/ before the folder, but the error is the same)
Should the module be installed in any other way?
UPDATE: this was tested with
$ v --version
V 0.4.0 7ca23f6

(other modules installed in the same way seems to work fine)

Hello, your installation is correct, it's an library module error caused by examples I provided in vaker, which causes compiler confused on building, I'll fix them soon.


Cannot pass AppStoreConnect Upload in 5.2.1

ERROR ITMS-90535: "Unexpected CFBundleExecutable Key. The bundle at 'Payload/xxxxxx.app/Frameworks/PKHUD.framework/PKHUDResources.bundle' does not contain a bundle executable. If this bundle intentionally does not contain an executable, consider removing the CFBundleExecutable key from its Info.plist and using a CFBundlePackageType of BNDL. If this bundle is part of a third-party framework, consider contacting the developer of the framework for an update to address this issue."

Return status of iTunes Transporter was 1: ERROR ITMS-90535: "Unexpected CFBundleExecutable Key. The bundle at 'Payload/xxxxxx.app/Frameworks/PKHUD.framework/PKHUDResources.bundle' does not contain a bundle executable. If this bundle intentionally does not contain an executable, consider removing the CFBundleExecutable key from its Info.plist and using a CFBundlePackageType of BNDL. If this bundle is part of a third-party framework, consider contacting the developer of the framework for an update to address this issue."

The call to the iTMSTransporter completed with a non-zero exit status: 1. This indicates a failure.

Do you have any suggestion?


Import / Export format select may refer to non-existent formats

Describe the bug
After #1647, users can define which formats they want to include, however the Import / Export file format drop down does not account for this, and will show all available formats

Perhaps the IMPORT_EXPORT_FORMATS field can be used to correct this.

Closing - can't reproduce in v4


Get latest default extensions

Created latest internal extensions.

@smadala,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot


Can't run DRNE Freesurfer on Ubuntu

Problem
Pipeline run doesn't complete (or even seem to start) when running DRNE Freesurfer with one user on Ubuntu. Tried running both by clicking coinstac file in file manager and by typing gksudo coinstac from terminal. Screenshots and logs are attached.
gksudo-error-out.txt

coinstac-dev-tools-console-error.log
coinstac-logs.txt
Tasks
Make COINSTAC work with Ubuntu 16.04.

I reopened COINSTAC with gksudo and tried downloading the DRNE Freesurfer image again. The application did not crash. I tried running the pipeline again and got this error.

I tried running the same pipeline on Mac and got the same error. Seems to be a problem with the remote server.

After Ross restarted the remote, I still get the same error on my Mac. However, this time, the pipeline returns an error and stops.

When I click on View Error, I get this:

Ross thinks it's an MRN IT issue.

CNR


x/build/gerritbot: github PR bot does not say who wrote CL

I can't see who wrote https://go-review.googlesource.com/c/go/+/148477
unless I open the "Commit message" file entry.
Can we please get that fixed?
The best option would be to have Gerrit show the author and
commit lines in the commit message shown on the front page
but since we probably can't make that happen soon,
let's at least make the bot post in its first message
some minimal explanatory text like
This Gerrit CL corresponds to GitHub PR golang/go#00000.

Author: Jane Gopher<EMAIL_ADDRESS>
Thanks.

This is almost a dup of #24837, but this bug has good workarounds in the meantime, as #24837 is a bit idealistic and largely out of our hands.
/cc @andybons @dmitshur @FiloSottile @katiehockman

We can use https://gerrit-review.googlesource.com/Documentation/user-upload.html#message to add a message upon upload.


chore: bump .ruby-version to 3.1.3 to allow building on arm64

Description
Bump ruby version check from 3.1.2 to 3.1.3 so that folks running arm64 can also build docs locally
Testing instructions
I've tested it with
ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [arm64-darwin22]

installed via ruby-install ruby 3.1.3.

Guess, this would have to be figured out somehow:
/home/runner/work/docs.konghq.com/docs.konghq.com/vendor/bundle/ruby/3.1.0/gems/liquid-c-4.0.0/ext/liquid_c
make DESTDIR\= sitearchdir\=./.gem.20230303-1703-5g5f1u
sitelibdir\=./.gem.20230303-1703-5g5f1u
compiling block.c
block.c: In function ‘init_liquid_block’:
block.c:126:6: error: old-style function definition
[-Werror=old-style-definition]
  126 | void init_liquid_block()
      |      ^~~~~~~~~~~~~~~~~
block.c: At top level:
cc1: note: unrecognized command-line option ‘-Wno-self-assign’ may have been
intended to silence earlier diagnostics
cc1: note: unrecognized command-line option ‘-Wno-parentheses-equality’ may have
been intended to silence earlier diagnostics
cc1: note: unrecognized command-line option ‘-Wno-constant-logical-operand’ may
have been intended to silence earlier diagnostics
cc1: all warnings being treated as errors
make: *** [Makefile:247: block.o] Error 1

@pmalek have you tried just bumping ruby? that error is due to some of the dependencies updates

@pmalek have you tried just bumping ruby? that error is due to some of the dependencies updates

You mean from which version to which one? I'm running 3.1.3 and I can't get 3.1.2 because I can't build it for arm64.

The ruby version is fine, just drop the changes made to the Gemfile and Gemfile.lock

The ruby version is fine, just drop the changes made to the Gemfile and Gemfile.lock

Oh, OK. Sure thing. Update the PR, PTAL.

@fabianrbz Same error as in https://github.com/Kong/docs.konghq.com/pull/5243#issuecomment-1453634989 😿

@pmalek ah sorry, I remember this issue, 3.1.3 and 3.2 fail to install liquid-c on Ubuntu, that's why I haven't updated it. See this Looks like bumping liquid-c to v4.0.1 fixes it. Let me try that.


Fix reverse-string stub function name

This tripped me up when working on reverse-string

Hey @loziniak, I misunderstood what was happening. The actual problem is that the sample solution names this function reverse-string, but the tests call reverse. This means that the sample solution is incorrect (the built-in reverse is being called instead of the sample solution's reverse-string). I made this PR thinking that the provided skeleton was incorrect and didn't notice that the tests were calling reverse, not reverse-string. So you're right, this would cause drift from the canonical data and this isn't the correct solution. The correct solution is to fix the sample solution.

Hmm to be honest I liked this PR very much, because it allows to use Red's built-in reverse action. Being strict on canonical data is good, but forces a reassignment on this global context word. Also, the most important aspect of it is, indeed, the incorrect example solution. Funny thing is, that the only reason this solution passes the CI/CD tests is, that instead of solution function, a built-in is used by tests :-D. Thanks for spotting this!


Make unused local variables and function parameters emit a warning

Perhaps skip the hard error check if the identifier is _ that way purposefully unused values may be explicitly discarded via:
var _ = some_value();
var _ = some_function_parameter_that_is_unused;

This was actually fixed a while ago. Identifiers suffixed with _ (e.g. foo_) will not have a warning emitted if they are unused.


Bug: LSP does not update correctly

In some cases, the diagnostics are updated correctly (move the line up/down), in other cases like deleting the line, the diagnostics stays there even though it is already obsolete.
https://github.com/errata-ai/vale-ls/assets/73286100/d5fc7a03-5b25-4adf-8f97-5a38275df78a

edit: this also occurs when adding an ignore comment:
<!-- vale Google.FirstPerson = NO -->

I observe similar behavior.


Deck not captured bug

On my home page, under match results, a deck keeps popping up described as "deck not captured". When I clock on it it brings me to the decklist page. The deck listed appears to the "ramunap red" deck from last year. Doesn't seem to be replacing any other decks that I am using, so it isn't a huge issue, just a bit of an eyesore. Thank you for your awesome service and any help you can do to clean this up!

Go to https://mtgarena.pro/u/zomb0y/
Scroll down to Matches results
See error

Screenshots

i have got the same isssue tooday. I have played all my matches witt the same (white) deck, but i have 1 match with "deck not captured' tag and it lead me to the page with completely different red deck (i dont even have such a deck)


Added support for ByteArray type

Description
When I tried to use a ByteArray, it processed it as a complex type.
Type of change
Please delete options that are not relevant.

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

How Has This Been Tested?
I have added a unit test to check that it parses correctly
Checklist:

[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have updated the CHANGELOG and bumped the version
[ ] My changes generate no new warnings
[X] I have added tests that prove my fix is effective or that my feature works
[X] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

Thanks! I'm going to make changes suggestes around week-end.

Is this a change that you need merged ASAP?

No, don't worry, when you can! I hope you have a great camping weekend! 😄


Phone Number Auth possible?

Hi,
Thanks for your great work. Do you know if is there any way to acquire a session token by simulating the phone number/sms sign up mechanism used by the official Tinder App? It makes use of Facebook's Account Kit? If so, would it invalidate the existing session from the official App?

I had to write an android app to try this, got ID and token, but they are refused with 401 all the time.

Hey guys, sorry but I am not really looking at this anymore. Got sidetracked. If there is a will there is a way but it seems that Tinder has been beefing up security lately.


luci-app-shadowsocks-libev: rewrite for shadowsocks-libev 3.0.6-2

As planned in openwrt/packages#4513 , here is the rewrite of luci-app-shadowsocks-libev plus two other fixes while working on it.

v2 <- v1

Group settings for redir rules into three categories and add more detailed description text.

v2 <- v1

Remote Servers table: adjust for screen of 1280px width
description text about enabling an instance

Hi, @hnyman
I think the luci-app-shadowsocks-libev part is now ready to to be merged.  Thanks.


Access request file upload to S3 failure logs are not visible in the DSR processing log UI.

Bug Description
When an access request fails to upload to S3, no error is logged in the front end. The backend logs do have the error.
Steps to Reproduce

Give wrong configuration details for S3
Run an access DSR request

Expected behavior
DSR request should be in error status and the processing log should have the details of the error.
Screenshots
Wil be adding after we are able to reproduce it again.

First step is to reproduce this error and understand what logs are available in the backend.


Doesn't seem to be working

No error seems to be caught, yellow boxes and red boxes still show up on __DEV__ === true and app simply closes on Release mode.
Added the following code to my app:
// index.ios.js

import { setJSExceptionHandler } from 'react-native-exception-handler';

setJSExceptionHandler(error => console.log('error', error), true);

__DEV__: true;
Platform: iOS;
// package.json
{
  ...
  "react": "16.0.0-alpha.12",
  "react-native-exception-handler": "^2.3.0",
  "react-native": "0.47.2",
  ...
}

Hey @lucasbento . Is it possible for you to paste the error that appears in Redbox ?
Just want to see if the error is a JS Error or a Native Error.  With the current code you have written, only JS based unhandled errors will be caught.
To make the module work with Native Errors, please follow the Native error handler callback as explained on the readme.

It is a simple error generated by an undefined function inside the render method:
render() {
  this.test();

  return (
    <View>
       ...
    </View>
  );
}

Doesn't work on a real device either.

Alright @lucasbento  let me try it out. Will be back with an answer

Okay steps I did to replicate ur bug:

Initialised a new RN project.
Added

import { setJSExceptionHandler } from 'react-native-exception-handler';

import React, { Component } from 'react';
import {
  AppRegistry,
  StyleSheet,
  Text,
  View
} from 'react-native';
setJSExceptionHandler(error => console.log('error', error), true);

And this seems to work . I do get the error in the console.log.

Now from the screenshot you had posted. I can see you receive a Yellow screen. Red screens are the actual unhandled errors that cause the app to crash. And this module can only catch those unhandled errors. So my question is: Is this component rendering inside a promise ? Seems like it is from the warning . In that case, it wont generate a `throw` and as a result there wont be a redbox error. But feel free to correct me. And if possible the complete code snippet  or a link of the component js file, so that we can together see what exactly is happening.
export default class SampleApp extends Component {
  render() {
    this.test()
    return (
      <View style={styles.container}>
        <Text style={style .....

@lucasbento @master-atul Hey fellas, I had this issue earlier, but was able to resolve by reinstalling node modules, cleaning my project in Xcode, clearing npm & Watchman cache, the usual suspects when trying to use newly installed & linked packages.
While I'm here though, may I ask how to not show the red screen of death upon a native exception?
https://www.dropbox.com/s/2ifec1lnkzrn5ap/Screenshot%202017-10-02%2014.28.10.png?dl=0
The exception appears to be caught and the dialogue is shown, but the RSOD is still shown underneath. I used the example code specified in the readme:
`setNativeExceptionHandler((exceptionString) => {
});`
,which mentions that you must use a callback when setting the native exception handler, so maybe I'm missing something? Thanks for your time!

Hi @SSTPIERRE2 The RSOD will be shown always for native errors in development mode . I wasnt able to override that functionality in the development mode. Note this happens only for native errors. The RSOD doesn't appear in bundled mode and only the native handler is called.

Ah, that's funny I was thinking about that this morning! If it was in bundled mode you don't get the RSOD and the app just tries to close, thanks for clearing that up :)

Seems to be resolved then :) Closing this issue.


[Question]: how elastic search got used? and in the rag folder, how naive.py, qa.py different ?

Describe your problem
as title
1:how elastic search got used?
2:how naive.py, qa.py different ?

Elasticsearch is used for full text search.
naive.py and qa.py are two different chunk methods.

naive.py basicly apply token number as a chunking condition.
qa.py  is for Q&A fromated raw data, and only Q indexed.

Elasticsearch is used for full text search. naive.py and qa.py are two different chunk methods.

naive.py basicly apply token number as a chunking condition.
qa.py  is for Q&A fromated raw data, and only Q indexed.

thank you so much


Improve querys classes.

Q
A

Is bugfix?
❌

New feature?
✔

Breaks BC?
✔

Tests pass?
✔

[x] add getters and setters.
[x] move phpdoc property private to setters and getters.
[x] change visibility property public to private.
[x] fixed tests.

Folders names should be singular instead of plural.

Once all the classes are reviewed I will change it to singular.


Allow use of Encodable-only and Decodable only in UserDefaults extensions

This PR substitutes the unnecessary Codable constraint with Encodable or Decodable where needed.
Not sure this is big enough to be mentioned in the CHANGELOG(?)
Checklist

[x] I checked the Contributing Guidelines before creating this request.
[ ] I have added a [changelog]

          2 Warnings

:warning:
Consider adding tests for new extensions or updating existing tests for a modified SwifterSwift extension

:warning:
The source files have been modified. Please consider adding a CHANGELOG entry if necessary.

          4 Messages

:book:
Thank you for submitting a pull request to SwifterSwift. The team will review your submission as soon as possible.

:book:
iOS: Executed 530 tests, with 0 failures (0 unexpected) in 3.293 (3.863) seconds

:book:
tvOS: Executed 499 tests, with 0 failures (0 unexpected) in 2.002 (2.412) seconds

:book:
macOS: Executed 366 tests, with 0 failures (0 unexpected) in 1.130 (1.368) seconds

  Generated by :no_entry_sign: Danger

What's the point of saving to/loading from defaults if the type is not both Encodable and Decodable?

Hey @marcocapano :))
I agree with @guykogus, I don't see as correct  to set an only Encodable if you are not able to get it as a Decodable later

@marcocapano Thanks for taking the time to submit this suggestion 👍


chore: add testID for language form

Summary of Changes
Added testID to bouncy checkbox in Language Screen so changing language can be tested in E2E automation
Related Issues
N/A
Pull Request Checklist
Tick all boxes below to demonstrate that you have completed the respective task. If the item does not apply to your this PR check it anyway to make it apparent that there's nothing to do.

[x] All commits contain a DCO Signed-off-by line (we use the DCO GitHub app to enforce this);
[x] Updated LICENSE-3RD-PARTY.md for any added dependencies or vendored components;
[x] Updated documentation as needed for changed code and new or modified features;
[x] Added sufficient tests so that overall code coverage is not reduced.

If you have any questions to any of the points above, just submit and ask! This checklist is here to help you, not to deter you from contributing!
Pro Tip 🤓

Read our contribution guide at least once; it will save you a few review cycles!
Your PR will likely not be reviewed until all the above boxes are checked and all automated tests have passed.

PR template adapted from the Python attrs project.

@fc-santos PR LGTM. Able to update with the base branch and we'll get it merged in.


module index in dyamic is repeated

when adding a module into the dynamic, the module ID is -1, which is generated orderly when exporting to knxprod.
however, in a case, i added 8 modules, then pubish, their ID are 1~8. then i added another 8 modules, publish again, the later 8 modules still have ID 1~8, then the repeated ID causes some problem.
currently, i reset all the IDs of modules, to regenreated them once.

I can confirm this bug and will fix it in the next release.


Improve readability for W292 example by fixing the markdown

Goals ⚽
I came across the webpage for W292 which seems to be broken (or confusing) by the three back-ticks of markdown.  This seems to be caused by commit 2f04993. My goal is to improve the clarity for this page. See below for the currently live version:

Implementation Details 🚧
I fixed the markdown and added a comment so that it is clear to the developer who compares Anti-pattern and Best practice.
Testing Details 🔍
Here's the preview -

Awesome, thanks a ton!


How to get mp4 address from youku.com?

Why mp4?
I am a android developer and recently I want to play some videos from www.youku.com, however I can only use webview to show it.In order to show video on android native video player, I have to get [mp4 address].
What I found?
In the youtube_dl/extractor,I found youku.py. But I am strange to python.So I want to ask you how to get mp4 address from youku.com?
Thank you very much.

-f best[ext=mp4].

Yes,it does dowload files as mp4 format.But I want to know the address and skip dowload.

Use -g to get URL(s)


Memory problem

PGSync version: 2.3.2
Postgres version: 12.11
Elasticsearch version: 7.10
Redis version: 6.2.6
Python version: 3.10.8
Problem Description:
Friends, I have a PGSYNC implementation on a kubernetes, I have been facing constant problems with memory overflow.
pgsync starts using memory until it runs out of memory. Do you have any config or guidance you can give me?
Error Message (if any):

Can you share more details.
How much RAM is PGSync using?
Which is the overall size of your DB including row count.
You can run this Query to produce some stats
SELECT nspname || '.' || relname AS "relation",
    pg_size_pretty(pg_total_relation_size(C.oid)) AS "total_size"
  FROM pg_class C
  LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)
  WHERE nspname NOT IN ('pg_catalog', 'information_schema')
    AND C.relkind <> 'i'
    AND nspname !~ '^pg_toast'
  ORDER BY pg_total_relation_size(C.oid) DESC
  LIMIT 10;

Hi,
Thanks for your reply:
PGSYNC Memory : 2GB
public.refurbishItems,2596 MB
public.sessions,1804 MB
public.task,1662 MB
public.searches,1235 MB
public.activities,382 MB
public.refurbishes,334 MB
public.files,308 MB
public.UserPermissions,197 MB
public.items,160 MB
public.refurbishFiles,109 MB

are you running this in a docker container?
2 GB seems like a limit on some Docker configuration (can you try increasing this)
what do you mean by memory overlflow?
if you are running into the OOM killer then you do need to allocate more RAM to overcome the initial sync

Hi @toluaina , i work with Emerson, we solved that, thanks... however one of our replication slots are stoping syncing occasionally and we can't figure out why. What's is happening is that some point the slot stop syncing and the size of it start growing indefinitely, and it is happening just with one table, Do you have any suggestions?
thanks

Hi @toluaina,
Just to complement... It occurs between 1 or 2 times a week. We need to kill the PGSync POD to get it working normally again. I don't know if it's useful information, but it's on a Kubernets

@toluaina Do you have any ideia? we are having a lot of this problem live

Hi,
Sorry about the delay.

how many replication slots do you have?
does that mean the replication slot(s) is/are growing continuously?
when pgsync runs in daemon mode, it does not need or read the replication slot.
do you have REPLICATION_SLOT_CLEANUP_INTERVAL set? what value?
perhaps you should set this to low value so you can see the replication slot drop in size.

also the replication slot is tied to the database and not to individual tables.
do you mean pgsync stops syncing and the replication slots starts growing?

Hi, @toluaina
REPLICATION_SLOT_CLEANUP_INTERVAL. is not set....
What's your recommendation?
Thank you for your support...

So the default is 180 secs (3 mins) as described here
We just want to confirm the slots are getting truncated each time it runs.
So we it to a low value like 10 secs to see if/when the replication
slot gets truncated.

@toluaina
We only have the problem with a specific slot... today I fear about 10 slots...

Hey tanks for helping,
how many replication slots do you have?
R:  We have 2, pgsync is creating one to each mapped table on schema
does that mean the replication slot(s) is/are growing continuously?
R: yes, analyzing logs on AWS the oldest replication lag and the transaction log disk usage
transaction log disk

oldes replication lag

also the replication slot is tied to the database and not to individual tables.
do you mean pgsync stops syncing and the replication slots starts growing?

exactly what happens....

So after 10 secs. You should see this line in the logs.
assuming REPLICATION_SLOT_CLEANUP_INTERVAL is 10
"Truncating replication slot: "

So after 10 secs. You should see this line in the logs. assuming REPLICATION_SLOT_CLEANUP_INTERVAL is 10 "Truncating replication slot: "

We try 15 seconds...
If the problem persists, let us know here for you...
Thanks for your help.

@toluaina First of all it is important to say that we have a lambda function to clean our slots every day at 8:45 UTC, we created that because we are using postgres 12 and it does not provide max_slot_wal_keep_size options, and sometimes the size of slots was growing indefinitely
So i have just analyzed that old replication lag start to grow always at this time 8:45,  however this not happened every day, there aren't a pattern to happen  that.
Looking into logs i have seen this
2023-01-30 08:42:06 UTC:<IP_ADDRESS>(33648):homehero@homehero:[29390]:STATEMENT: SELECT xid, data FROM PG_LOGICAL_SLOT_GET_CHANGES('homehero_installments', NULL, NULL) 2023-01-30 08:42:06 UTC:<IP_ADDRESS>(33648):homehero@homehero:[29390]:LOG: logical decoding found consistent point at C6F/140008C8 2023-01-30 08:42:06 UTC:<IP_ADDRESS>(33648):homehero@homehero:[29390]:DETAIL: There are no running transactions. 2023-01-30 08:42:06 UTC:<IP_ADDRESS>(33648):homehero@homehero:[29390]:STATEMENT: SELECT xid, data FROM PG_LOGICAL_SLOT_GET_CHANGES('homehero_installments', NULL, NULL) 2023-01-30 08:44:38 UTC:<IP_ADDRESS>(57322):homehero@homehero:[11817]:LOG: starting logical decoding for slot "homehero_payments" 2023-01-30 08:44:38 UTC:<IP_ADDRESS>(57322):homehero@homehero:[11817]:DETAIL: Streaming transactions committing after C6F/18000110, reading WAL from C6F/18000028. 2023-01-30 08:44:38 UTC:<IP_ADDRESS>(57322):homehero@homehero:[11817]:STATEMENT: SELECT xid, data FROM PG_LOGICAL_SLOT_GET_CHANGES('homehero_payments', NULL, NULL) 2023-01-30 08:44:38 UTC:<IP_ADDRESS>(57322):homehero@homehero:[11817]:LOG: logical decoding found consistent point at C6F/18000028 2023-01-30 08:44:38 UTC:<IP_ADDRESS>(57322):homehero@homehero:[11817]:DETAIL: There are no running transactions. 2023-01-30 08:44:38 UTC:<IP_ADDRESS>(57322):homehero@homehero:[11817]:STATEMENT: SELECT xid, data FROM PG_LOGICAL_SLOT_GET_CHANGES('homehero_payments', NULL, NULL) 2023-01-30 08:45:07 UTC:<IP_ADDRESS>(43982):homehero@homehero:[11864]:ERROR: replication slot "homehero_installments" does not exist 2023-01-30 08:45:07 UTC:<IP_ADDRESS>(43982):homehero@homehero:[11864]:STATEMENT: SELECT xid, data FROM PG_LOGICAL_SLOT_GET_CHANGES('homehero_installments', NULL, NULL) 2023-01-30 08:45:15 UTC:<IP_ADDRESS>(53812):homehero@homehero:[22735]:LOG: logical decoding found consistent point at C6F/1C04E8A0 2023-01-30 08:45:15 UTC:<IP_ADDRESS>(53812):homehero@homehero:[22735]:DETAIL: There are no running transactions. 2023-01-30 08:45:15 UTC:<IP_ADDRESS>(53812):homehero@homehero:[22735]:STATEMENT: SELECT * FROM PG_CREATE_LOGICAL_REPLICATION_SLOT('homehero_payments', 'test_decoding') 2023-01-30 08:45:22 UTC:<IP_ADDRESS>(53814):homehero@homehero:[22751]:LOG: logical decoding found consistent point at C6F/1C079E38 2023-01-30 08:45:22 UTC:<IP_ADDRESS>(53814):homehero@homehero:[22751]:DETAIL: There are no running transactions. 2023-01-30 08:45:22 UTC:<IP_ADDRESS>(53814):homehero@homehero:[22751]:STATEMENT: SELECT * FROM PG_CREATE_LOGICAL_REPLICATION_SLOT('homehero_installments', 'test_decoding') 2023-01-30 08:45:30 UTC:<IP_ADDRESS>(43538):homehero@homehero:[22761]:LOG: starting logical decoding for slot "homehero_payments" 2023-01-30 08:45:30 UTC:<IP_ADDRESS>(43538):homehero@homehero:[22761]:DETAIL: Streaming transactions committing after C6F/1C04E8D8, reading WAL from C6F/1C04E8A0. 2023-01-30 08:45:30 UTC:<IP_ADDRESS>(43538):homehero@homehero:[22761]:STATEMENT: SELECT count(*) AS count_1 FROM PG_LOGICAL_SLOT_PEEK_CHANGES('homehero_payments', NULL, NULL) WHERE CAST(CAST(xid AS TEXT) AS BIGINT) < 162715942 2023-01-30 08:45:30 UTC:<IP_ADDRESS>(43538):homehero@homehero:[22761]:LOG: logical decoding found consistent point at C6F/1C04E8A0 2023-01-30 08:45:30 UTC:<IP_ADDRESS>(43538):homehero@homehero:[22761]:DETAIL: There are no running transactions. 2023-01-30 08:45:30 UTC:<IP_ADDRESS>(43538):homehero@homehero:[22761]:STATEMENT: SELECT count(*) AS count_1 FROM PG_LOGICAL_SLOT_PEEK_CHANGES('homehero_payments', NULL, NULL) WHERE CAST(CAST(xid AS TEXT) AS BIGINT) < 162715942 2023-01-30 08:45:30 UTC:<IP_ADDRESS>(43538):homehero@homehero:[22761]:LOG: starting logical decoding for slot "homehero_payments" 2023-01-30 08:45:30 UTC:<IP_ADDRESS>(43538):homehero@homehero:[22761]:DETAIL: Streaming transactions committing after C6F/1C04E8D8, reading WAL from C6F/1C04E8A0. 2023-01-30 08:45:30 UTC:<IP_ADDRESS>(43538):homehero@homehero:[22761]:STATEMENT: SELECT xid, data FROM PG_LOGICAL_SLOT_PEEK_CHANGES('homehero_payments', NULL, NULL) WHERE CAST(CAST(xid AS TEXT) AS BIGINT) < 162715942 LIMIT 5000 OFFSET 0 2023-01-30 08:45:30 UTC:<IP_ADDRESS>(43538):homehero@homehero:[22761]:LOG: logical decoding found consistent point at C6F/1C04E8A0 2023-01-30 08:45:30 UTC:<IP_ADDRESS>(43538):homehero@homehero:[22761]:DETAIL: There are no running transactions. 2023-01-30 08:45:30 UTC:<IP_ADDRESS>(43538):homehero@homehero:[22761]:STATEMENT: SELECT xid, data FROM PG_LOGICAL_SLOT_PEEK_CHANGES('homehero_payments', NULL, NULL) WHERE CAST(CAST(xid AS TEXT) AS BIGINT) < 162715942 LIMIT 5000 OFFSET 0
at 8:45 ERROR: replication slot "homehero_installments" does not exist happened, after that pgsync has created replication slots again, payment back to work, but installment doesn't

It seems you have a number of replication slots.
I'm trying to understand which one is the culprit.
Replication slot homehero_installments should already exist before running pgsync.
The fact that it does not exist implies that the bootstrap was not run yet.
bootstrap -c schema.json should be run just once to set things up including ALL your replication slots.
then run pgsync -c schema.json to sync

PS: I'm happy to move this discussion to discord if you feel necessary.

It seems you have a number of replication slots.
I'm trying to understand which one is the culprit.
Replication slot homehero_installments should already exist before running pgsync.
The fact that it does not exist implies that the bootstrap was not run yet.
bootstrap -c schema.json should be run just once to set things up including ALL your replication slots.
then run pgsync -c schema.json to sync

PS: I'm happy to move this discussion to discord if you feel necessary.

I run bootstrap -c schema.json every time the container is recreated... Could this be a problem then?
About going to discord, that would be great...

running bootstrap each time is not necessary.
Forgot to drop my discord user: taina#4505


lora llama 3.1 can accept specified max_seq_len

Context
What is the purpose of this PR? Is it to

[x] add a new feature
[ ] fix a bug
[ ] update tests and/or documentation
[ ] other (please add here)

Please link to any issues this PR addresses. #2202
Changelog
What are the changes made in this PR?

allow configuring max_seq_len for llama 3.1 lora models from config or CLI

Test plan
Please make sure to do each of the following if applicable to your PR. If you're unsure about any one of these just ask and we will happily help. We also have a contributing page for some guidance on contributing.

[ ] run pre-commit hooks and linters (make sure you've first installed via pre-commit install)
[ ] add unit tests for any new functionality
[ ] update docstrings for any new or updated methods or classes
[ ] run unit tests via pytest tests
[ ] run recipe tests via pytest tests -m integration_test
[x] manually run any new or modified recipes with sufficient proof of correctness
[ ] include relevant commands and any other artifacts in this summary (pastes of loss curves, eval results, etc.)

UX
If your function changed a public API, please add a dummy example of what the user experience will look like when calling it.
Here is a docstring example
and a tutorial example

[ ] I did not change any public API
[ ] I have added an example to docs or docstrings

thanks for the PR, do you mind updating the docstrings too?!

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

Project coverage is 23.85%. Comparing base (aa8f365) to head (d2f581c).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2203   +/-   ##
=======================================
  Coverage   23.85%   23.85%
=======================================
  Files         344      344
  Lines       20658    20658
=======================================
  Hits         4928     4928
  Misses      15730    15730

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

This seems inconsistent with our other builders, which do not specify a max seq len parameter. If you want to change the default max seq len for llama3_1 you should use the base builder llama3_1() instead of the 8b and 405b builders, as they're meant to expose minimal parameters and give all the defaults to get the correct model. But let us know if this is too prohibitive.


Unable to install iOS SDK

Hi,
I am new in AR Drone development. I follow the instruction and I can successfully install the OS X SDK. However, I am not able to install the iOS one. It asked me this:
Do you want to skip /Users/ipsiufai/ARSDKBuildUtils/../curl ?

Yes		    3) Retry		5) Show-Diff
No		    4) Stash/Stash-Pop	6) Reset

What should I choose??
Thz for your attention.

I have the same problem by compiling the libraries for iOS. The compiler stops when trying to compile libjson. Please help!
Building libjson (dependancy of libARMedia)
Start running iOS_BuildLibrary with args:
 -- nodeps -> False
 -- target -> iOS
 -- lib -> json
 -- inhouse -> False
 -- clean -> False
 -- debug -> False
The library libjson does not contains either an autotools or an Xcode project
Error while running iOS_BuildLibrary with args:
 -- nodeps -> False
 -- target -> iOS
 -- lib -> json
 -- inhouse -> False
 -- clean -> False
 -- debug -> False
Error while building dependancy libjson
Error while running iOS_BuildLibrary with args:
 -- nodeps -> False
 -- target -> iOS
 -- lib -> ARMedia
 -- inhouse -> False
 -- clean -> False
 -- debug -> False

I now deleted the curl and the json folder. The two projects will then be redownloaded from the compile script. After that I had no issues anymore.

Thanks a lot for your feedback.


Gets stuck in inf download loop when trying to download folder from someone gallery with only 1 page

Xerbo Allow downloading of specific folders, ref #38 <

https://pastebin.com/zCVhGjAf

moving this to #38

This seems to be some weirdness on FA's end, when you reach the end of a normal gallery you get There are no submissions to list, however, when browsing a folder you don't get that.
The easiest fix would be to check for the existence of the "next" button, or get the URL from it for the next page

Tried making some small changes, does the fix-folder-dl branch work fine?

Tried making some small changes, does the fix-folder-dl branch work fine?

Yeah fix-folder-dl  branch  worked

When download a gallery after the update now does go thought all pages just stops at first.