no phone number appears in the result.

@ADRIANTULANG Olá
I solved the problem like this using the requests() method of the Permission lib:
  Future<List<SimInfo>?> getInfo() async {
    await Permission.phone.request();
    final simCardInfoPlugin = SimCardInfo();

    List<SimInfo>? simCardInfo = await simCardInfoPlugin.getSimInfo();

    return simCardInfo;
  }

hope it helps!

Hi , thanks you gays for this package , but this error still not resolved for me
I request phone permission as @Vinnybrunn00  said , but without any result.
       Future<MyDataState.DataState<List<SimCardModel>,String>> getSimCards() async{
        try{
          PermissionStatus status = await grantPermissions();
          if(status == PermissionStatus.denied) return const MyDataState.DataFailed("Can't grant permissions !");
          await Permission.phone.request();//for test
          List<MySimInfo.SimInfo> simData = await MySimCardInfo.SimCardInfo().getSimInfo()??[];
          return MyDataState.DataSuccess(simData.map((elm)=>SimCardModel(number: elm.number, name:     elm.displayName,slotNumber: int.tryParse(elm.slotIndex)??0)).toList());
        }catch(err){
          return MyDataState.DataFailed(err.toString());
        }
    }

@houssam15 try to only use Permission.phone.request() in the first line of the function.
remember to uninstall and build the app again after you make the changes.

Future initSimInfoState() async {
await Permission.phone.request();
List<SimInfo>? simCardInfo;
// Platform messages may fail, so we use a try/catch PlatformException.
// We also handle the message potentially returning null.
try {
  simCardInfo = await _simCardInfoPlugin.getSimInfo() ?? [];
} on PlatformException {
  simCardInfo = [];
  setState(() {
    isSupported = false;
  });
}

// If the widget was removed from the tree while the asynchronous platform
// message was in flight, we want to discard the reply rather than calling
// setState to update our non-existent appearance.
if (!mounted) return;
setState(() {
  _simInfo = simCardInfo;
});

}
Its not working for me any suggestion?

@BLACKCAT25896 what returns? returns empty?

yes its empty
On Mon, 23 Dec 2024, 8:01 pm Vinícius Bruno, @.***>
wrote:

@BLACKCAT25896 https://github.com/BLACKCAT25896 what returns? returns
empty?
—
Reply to this email directly, view it on GitHub
https://github.com/flutter-try-catch/sim_card_info/issues/4#issuecomment-2559763012,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AENNNOMGQXHGKUSVCKS73ID2HAJS3AVCNFSM6AAAAABQCHASO6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNJZG43DGMBRGI
.
You are receiving this because you were mentioned.Message ID:
@.***>


RetryStrategyOptions requires a backoff strategy, but...

Describe the bug
In the past, the backoff strategy component of RetryStrategyOptions was optional, with a default. It has become the only required property, which makes little sense since it's the one people are least likely to change (at least as far as I can tell). The comment even describes the default value.
But there's no way to say "use the default." There's no DefaultBackoffStrategy. So unless something is hiding somewhere, you have to create an ExponentialBackoffStrategy or a custom RetryBackoffStrategy type, and specify that.
Please make it so this is optional, and/or provide a default backoff strategy type you can instantiate and use here.
Expected Behavior
To be able to change the number of retries without creating and specifying an exponential backoff strategy.
Current Behavior
Too much thinking. Not enough getting it done.
Reproduction Steps
        let config: S3Client.S3ClientConfiguration

        do {
            config = try await S3Client.S3ClientConfiguration(
                retryStrategyOptions: RetryStrategyOptions(
                    maxRetriesBase: 5,
                    rateLimitingMode: .adaptive
                )
            )
        } catch {
            dump(error)
        }

Possible Solution
This used to work. Doesn't anymore. Would be nice not to have to add the backoffStrategy property to the options to get it to work.
Additional Information/Context
No response
AWS SWIFT SDK version used
0.76.1
Compiler and Version used
Swift version 5.10.1 (swift-5.10.1-RELEASE)
Operating System and version
#23~22.04.1-Ubuntu

For background info, refer to the GitHub issue that mentions this issue above (in ticket history).
The fix has been merged to main with this PR: https://github.com/awslabs/aws-sdk-swift/pull/1744.
Retry example and doc that discusses directly manipulating the retryStrategyOptions should be rewritten as soon as it is possible. The new example and doc should discuss manipulating the awsRetryMode and maxAttempts config options instead. which get automatically used to resolve the retryStrategyOptions used by the service client.

The examples that use awsRetryMode and maxAttempts instead of directly manipulating retryStrategyOptions have replaced the old examples. Closing the ticket as resolved.


Backport borg (borgbackup) 1.1+ to 17.09?

Issue description
It seems like there where security relevant changes (Fix AES-CTR nonce reusage) that we should backport to the stable branch but apparently upstream failed to mention this in the release notes.
When I create a backup from a client with version 1.1.1 to a remote server with version 1.0.11 I get the following warning:
Remote: Borg 1.0.11: exception in RPC call:
Remote: Traceback (most recent call last):
Remote:   File "/nix/store/2k0prf34z4jbj4pv3mm7j4gd9zd2chyq-borgbackup-1.0.11/lib/python3.6/site-packages/borg/remote.py", line 141, in serve
Remote:     raise InvalidRPCMethod(method)
Remote: borg.remote.InvalidRPCMethod: RPC method get_free_nonce is not valid
Remote: Platform: Linux xyz 4.9.27 #1-NixOS SMP Mon May 8 05:48:32 UTC 2017 x86_64
Remote: Linux:
Remote: Borg: 1.0.11  Python: CPython 3.6.4
Remote: PID: 11136  CWD: /home/michael
Remote: sys.argv: ['/nix/store/2k0prf34z4jbj4pv3mm7j4gd9zd2chyq-borgbackup-1.0.11/bin/borg', 'serve', '--umask=077']
Remote: SSH_ORIGINAL_COMMAND: None
Remote:
Please upgrade to borg version 1.1+ on the server for safer AES-CTR nonce handling.

According to the changelog we should probably backport version 1.1.3 as it contains security fixes as well or manually apply the patch to a 1.1+ release.
cc @NixOS/security-notifications @nckx @flokli

Fixed by #34368 which is now in nixpkgs-channels/nixos-17.09.


refactor: strongly typed expression AST

This PR refactors the expression implementation to create a strongly typed AST:

Now, an Expression<T> refers to a "level 3" AST as described in #181
A CompiledExpression<T> refers to a "level 1" AST as described in that isse
"Level 2" as described in that issue no longer exists
Expression and CompiledExpression are sealed interfaces without use of Any?, so the conversion from level 1 to 0 has exhaustiveness checking

Additionally, I moved the expression stuff into its own module so it can be used as part of a style generator or something.
And I split up some giant files into smaller ones, and grouped some things into packages (which makes this a breaking change)

#191  👈 (View in Graphite)
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

AFAIK it should be possible to make these not visible to users of maplibre-compose as long as they didn't explicitly add the dependency in their build.gradle, AFAIK?

We can hide the whole module with implementation instead of api but that'd hide the DSL too. I don't think it's possible to hide just part of the module from IDE typeahead (other than hiding it from docs entirely)


No annotation to SNVs in the download db file

We can see the loss-of-function annotation to SNVs in the web-side, however, when we download the annotation database file, this annotation was not existed. How to solve this problem?
Thnanks

Hi @Shicheng-Guo,
By "loss-of-function annotation", are you referring to
the annotation column of the table on the gene/region page?

or the LoF field in the transcript consequences section of the variant page?

Hi @nawatts This post can be closed. I found it in the VCF files download from gnomad. Thanks


CLI fixes for aws and environment modifications

Description
The two github issues that are being closed with this PR did not contain descriptions of the underlying (small) issues in the CLI code. Here's more context:

The CLI code was not interpolating the AWS-centric values. Now it is.
When running a folder via command line, the post-request script of request 1 wants to edit the runtime environment of the Bru object that the CLI instantiated. The environment object that was passed into the post-request script function was correctly being modified, but was not affecting the runtime environment for the folder.

This PR address both of those issues.
Contribution Checklist:

[ ] The pull request only addresses one issue or adds one feature.
[x] The pull request does not introduce any breaking changes
[x] I have added screenshots or gifs to help explain the change if applicable.
[x] I have read the contribution guidelines.
[x] Create an issue and link to the pull request.

Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.
Publishing to New Package Managers
Please see here for more information.

@scottlaplante Would love to get these fixes in.

The two github issues that are being closed with this PR did not contain descriptions of the underlying (small) issues in the CLI code.

Other than #1255, what is the second issue ?
Also, I need a bit  more clarity regarding the changes related to collectionVariables
Would you be willing to get on a call and help me with it?
My cal link is: https://cal.com/helloanoop/30min
If not, can you share a sample collection that reproduces the issue?

 Thank's for taking the time.
Merged!
Will cut a release in the next two hours.


Various documentation updates

These are plucked from the fork I've been toying with. I'm open to changes, but mostly I want move this along

There is a cargo fmt issue with Ubuntu. If you can update that I think this is ready to be merged. There is clearly an issue with rtools on windows that is unrelated to this PR and #747

Probably you simply need to slide rtools-version?
https://github.com/extendr/extendr/blob/002ec3f55ab9ae4b69762ffac9e8c36212068042/.github/workflows/test.yml#L29-L31

Brilliant! This was happening on libR-sys, so I did something there and forgot about it here!


Random repro: Godot 4: AnimatedSprite2D: Animation plays multiple times before calling animation_finished signal

Godot version
4.1.2.stable.flathub [399c9dc39]
System information
Godot v4.1.2.stable (399c9dc39) - Freedesktop SDK 23.08 (Flatpak runtime) - Wayland - Vulkan (Compatibility) - Mesa Intel(R) Xe Graphics (TGL GT2) () - 11th Gen Intel(R) Core(TM) i5-11320H @ 3.20GHz (8 Threads)
Issue description
I found Godot 4 AnimatedSprite2D can repeatedly play an animation more than once, then calls animation_finished handler function once. It can be demonstrated with the following code sample below. A summary of how to trigger it:

$AnimatedSprite2D.play() is called in _process().
The nimation name (a variable) is changed outside _process().
I use animation_finished to capture the end of animation playback.

A set of gif files are attached below to compare the results. They are from same code but different runs. Note that the issue is not stably reproduced. When I got bug report, I ran 29 times, and got 5 wrong cases, and 1 extemely wrong case.
The same behavior is identified on both Linux and macOS.
Good case demo - Animation is played only once.

Wrong case demo - Animation is played twice or three times

Extremely wrong case demo - Animation is played multiple times.

A simplified code sample
func _process(delta: float) -> void:
    $AnimatedSprite2D.play(animation[action_status])

func _on_self_destroy_timer_timeout() -> void:
    action_status = STATUS_COLLECTED  # Wait for 3 seconds to trigger animation change (static -> flash)

func _on_animated_sprite_2d_animation_finished() -> void:
    if action_status == STATUS_COLLECTED:
        print("STATUS_COLLECTED animation played once - can't be guranteed")
        queue_free() # Call queue_free() when animation is finished.

Context
This issue is reported during the same migration project with #84247 from Godot 3 to 4. An experiment shows, that Godot 3 can guarantee to play STATUS_COLLECTED animation once, but Godot 4 does not guarantee this. Again, an inconsistency between Godot 3 and Godot 4.
Impact to player: Test players feel confused because they think the repeated animation can means something different but actually no.
Steps to reproduce

Checkout project https://github.com/fuzhouch/godot-3to4-comparison/ to local, say ./godot-3to4-comparison.
Launch Godot 4.1.2. Open godot 4 project, ./godot-3to4-comparison/godot4/project.godot
From Godot 4 editor, Launch scene, demo_animation_sprite_2d_play_animation_bad.tscn

NOTE: The project is kinds of as minimal as possible. It contains multiple scenes, while each of which are presenting a single bug. Every scene is self-contained, and do not depends on each other.
The scene uses a 3-second timer to tigger problematic animation. So open the scene, wait for 3 seconds, then we can see the gold flashes and disappears.
Result:

In good case, It should flash only once, but it randomly flashes multiple times.
No matter it flashes once or multiple times, the animation_finished signal handler is called once. (Proof: the print() message is written to debug window only once)

As a comparison of Godot 3, use step below:

Launch Godot 3.5.3, then open Godot 3 project, ./godot-3to4-comparison/godot3/project.godot
From Godot 3 editor, Launch scene, Demo_AnimatedSprite2D_Play_Animation.tscn

In my experiment, Godot 3.5.3, the gold always flashes once
Minimal reproduction project

Project repository: https://github.com/fuzhouch/godot-3to4-comparison/

Godot 4 project path (for reproducing issue): godot4/

Godot 3 project path (for behavior comparison): godot3/

The scene we use to reproduce the bug: demo_animation_sprite_2d_play_animation_bad.tscn

The scene that shows workaround: demo_animation_sprite_2d_play_animation_good.tscn

The scene (under project godot3, requires Godot 3.5.3) for behavior comparison: Demo_AnimatedSprite2D_Play_Animation.tscn

Note that this is not super critical issue since I have workaround, but a question may be this: Does this issue indicate it's not safe to call $AnimatedSprite.play() in _process() or _physics_process()?

How does your code check that it is only called once? It ignores the signal when action_status != STATUS_COLLECTED, so you are missing that part, your test is not valid here

My bad got it backwards, will take a look

This is probably due to a bad sync between the frame time and the processing of the animation, if the processing happens in the wrong frame
Unsure how to approach this though

Is it possible we compare the behavior of Godot 3 and 4 of AnimatedSprite code? In my experience, this code pattern works perfectly since March 2023 in my game project, which seems pretty stable.

The behaviors aren't comparable as the 3.x doesn't restart like the 4.x code does, but there is a possible bug with the 4.x code, I am looking into it, but the 3.x code isn't relevant to this

Sure understand. Please kindly let me know if more information is needed.

For this I'm not exactly sure how to continue, there is a sync issue here that might be a bug, there might be the simple limitation that the signals are unreliable when calling play, or there might be a fix here
CC @TokageItLab

Please summarize the issue. Is the problem "AnimatedSprite2D::animation_finished is not firing correctly", right?

I couldn't reproduce the bug but indeed seems there's a logic problem. Specifically (the same issue for backwards animating):
https://github.com/godotengine/godot/blob/4363ae34fa3f52223ae78ff2f2c187ab99827e3a/scene/2d/animated_sprite_2d.cpp#L196-L218
If during last frame processing frame_progress < 1.0 and to_process == remaining == (1.0 - frame_progress) / abs_speed then we'll end up with frame_progress == 1.0 (assuming no float error) and remaining == 0.0. Because of this, the iteration will break:
https://github.com/godotengine/godot/blob/4363ae34fa3f52223ae78ff2f2c187ab99827e3a/scene/2d/animated_sprite_2d.cpp#L182
without handling the frame_progress >= 1.0 part. Such state would be handled on the next NOTIFICATION_INTERNAL_PROCESS.
But the issue is, in the meantime (until the next NOTIFICATION_INTERNAL_PROCESS) frame_progress can be changed. E.g. by calling play from _process(), like in the MRP. Because of the specific internal state mentioned above it can result in restarting the current animation:
https://github.com/godotengine/godot/blob/4363ae34fa3f52223ae78ff2f2c187ab99827e3a/scene/2d/animated_sprite_2d.cpp#L473-L475
In such case e.g. animation_finished signal would be not emitted even though the end of a non-looped animation was reached while processing (frame == last_frame && frame_progress >= 1.0 was true).

Hey folks, I may have a related question on a proper workaround before we have a fix.
As a developer who focus on action game, I highly rely on animation+status shift pattern to perform a sequence of actions combining animation and processing logic (example code below: imagine a "throw fireball  -> backswing -> idle" cycle). It relies on stable animation_finished handler called in one animation playback, so I can shift status in signal handler.
var action_status: int = STATUS_IDLE
func _physics_process(_delta):
    $AnimatedSprite.play(status_to_animation(action_status))  # Rely on stable animation_finished handler called
     # More logic to handle attack interaction

func _on_AnimatedSprite_animation_finished() -> void:
    if action_status == STATUS_ATTACK_FIREBALL: # Status shifting in animation_finished
        action_status = STATUS_BACKSWING
        $SwordAttack_Area2D.set_collision_mask_value(CONSTANT_ENEMY, false)  # shifting both animation and action
    elif action_status == STATUS_BACKSWING
        action_status = STATUS_IDLE

When this bug takes effect, the pattern above should be unstable. In my project, I can see multiple STATUS_ATTACK_FIREBALL animation performed quickly in my machine.
I'm now trying to use a new coding pattern, that I remove $AnimatedSprite2D.play() from _physics_process(), but use $AnimatedSprite.call_deferred("play", ....) in animation_finished handler. So far I didn't see significant problems, but I'm not sure whether it's safe from engine layer.
Do you think the new pattern a proper workaround?

func _physics_process(_delta):
    # Don't call $AnimatedSprite.play() here. Only logic to handle attack interaction.

func _on_AnimatedSprite_animation_finished() -> void:
    if action_status == STATUS_ATTACK_FIREBALL: # Status shifting in animation_finished
        action_status = STATUS_BACKSWING
        $SwordAttack_Area2D.set_collision_mask_value(CONSTANT_ENEMY, false)  # shifting both animation and action
        $AnimatedSprite.call_deferred("play", status_to_animation(action_status))
    elif action_status == STATUS_BACKSWING
        action_status = STATUS_IDLE
        $AnimatedSprite.call_deferred("play", status_to_animation(action_status))

Thank you @kleonc!
I'm moving all my code to call_deferred in the past days. Luckily the code is not that big. Let me try to move some characters to direct calls and compare the results. Will let you know if I seen any differences.


Minimum hamming distance of TAGS barcode is less than given threshold

Hi,
Following are my antibody tags. I tried to run CITE-seq-Count  on 10X  data but got following error. Minimum hamming distance of the tags is 6. Since maximum allowed hammign distance is 3 by default, it is expected to have such error because if there is error in two sequences at most in 3 basepairs this gives rise to tag ambiguity. However, when I provide --hamming-distance 2 I get the same error.
Tags:
CTCATTGTAACTCCT
TGTTCCCGCTCAACT
GCTGCGCTTTCCATT
AACCTAGTAGTTCGG
TTTGTCCTGTACGCC
ACCTTTATGCCACGG
ACTTCCGTCGATCTT
TCAATCCTTCCGCTT
GTCCCTGCAACTTGA
CCAGCTCATTAGAGC
GACCTCATTGTGAAT
AGTTCAGTCAACCGA
ACCTACCTGAGGTTA
TTTACTAAGTCGTTT
CTTCCGATTCATTCA
GGTTGCCAGATGTCA
TGTCTTTCCTGCCAG
CTCCTCTGCAATTAC
CAGTAGTCACGGTCA

Command:
CITE-seq-Count --read1 $R1 --read2 $R2 \
        --tags TAG_LIST.csv \
        --cell_barcode_first_base 1 \
        --cell_barcode_last_base 16\
        --umi_first_base 17 \
        --umi_last_base 26 \
        --output $OUTPUT_DIR/$SAMPLE_R1".csv" \
        --whitelist $10X_WHITELIST_FILE \
       --hamming-distance 2

ERROR:
Minimum hamming distance of TAGS barcode is less than given threshold
Please use a smaller distance; exiting"

Hello @bishwaG
this is strange because when I run the tags you gave here, I don't get the error mesage.

Is it possible that your tags are written like:
tag1,CGATCGA
tag2,CGTACGT

instead of
CGTAGCTA,tag1
GCTGCTAC,tag2

?

Hi @Hoohm
Thanks for your hint. Truly the issue was because of the order of the tags and tag-names columns.

Great! I'm closing this then.


dependabot runners do not work with GHES version 3.9

hey @kichik,
Using dependabot with self-hosted runners broke with cdk-github-runners and GHES version 3.9.
Reason:
self-hosted tag is not transmitted anymore by webhook to the cdk-github-runner solution.
Consequence:
the dependabot job won`t make it to the step function due to this condition, which makes sense.
https://github.com/CloudSnorkel/cdk-github-runners/blob/751f11858011718359e209e85cadd49f2e85390e/src/webhook-handler.lambda.ts#L139
log:
2023-11-10T08:59:15.877Z	114b4b49-bac8-473e-b943-9cb315b3f93a	INFO	Ignoring labels "dependabot", expecting "self-hosted"
I would like to exclude dependabot triggers from the condition, if the dependabot label is transmitted.

Do you know if there is a reason they stopped sending that label? Could it be a bug?

Do you know if there is a reason they stopped sending that label? Could it be a bug?

I`ll try to find an answer on that.
I had a look at the webhooks sent out and the label self-hosted won`t be sent anymore.
"labels": [
      "dependabot"
    ],

and on the same date the dependabot labeled runner stopped to get executed, we updated from 3.7 to 3.9...

argh I did not find an issue on this topic.


Could not determine IPv4/IPv6 protocol. Using AF_INET

::::            Debug complete           ::::
:::
::: Debug output completed above.
::: Copy saved to /tmp/debug.log
:::
root@ruvds-9vsf3:~# pivpn -l
: NOTE : The first entry is your server, which should always be valid!

::: Certificate Status List :::
Status      Name                                                  Expiration
Valid       ruvds-9vsf3_84040ba2-09c1-4a58-a5a9-8613635e9015      Jul 14 2032
Valid       k-speedster                                           Jul 01 2025
Valid       k-4g                                                  Jul 01 2025
root@ruvds-9vsf3:~# nano /var/log/openvpn.log
  GNU nano 5.4                                                    /var/log/openvpn.log *
Jul 17 14:41:29 ruvds-9vsf3 ovpn-server[2808]: DEPRECATED OPTION: --cipher set to 'AES-256-CBC' but missing in --data-ciphers (AES-256-GCM:AES-128>
Jul 17 14:41:29 ruvds-9vsf3 ovpn-server[2808]: OpenVPN 2.5.1 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] >
Jul 17 14:41:29 ruvds-9vsf3 ovpn-server[2808]: library versions: OpenSSL 1.1.1k  25 Mar 2021, LZO 2.10
Jul 17 14:41:29 ruvds-9vsf3 ovpn-server[2808]: net_route_v4_best_gw query: dst <IP_ADDRESS>
Jul 17 14:41:29 ruvds-9vsf3 ovpn-server[2808]: net_route_v4_best_gw result: via <IP_ADDRESS> dev eth0
Jul 17 14:41:29 ruvds-9vsf3 ovpn-server[2808]: CRL: loaded 1 CRLs from file /etc/openvpn/crl.pem
Jul 17 14:41:29 ruvds-9vsf3 ovpn-server[2808]: ECDH curve prime256v1 added
Jul 17 14:41:29 ruvds-9vsf3 ovpn-server[2808]: Outgoing Control Channel Encryption: Cipher 'AES-256-CTR' initialized with 256 bit key
Jul 17 14:41:29 ruvds-9vsf3 ovpn-server[2808]: Outgoing Control Channel Encryption: Using 256 bit message hash 'SHA256' for HMAC authentication
Jul 17 14:41:29 ruvds-9vsf3 ovpn-server[2808]: Incoming Control Channel Encryption: Cipher 'AES-256-CTR' initialized with 256 bit key
Jul 17 14:41:29 ruvds-9vsf3 ovpn-server[2808]: Incoming Control Channel Encryption: Using 256 bit message hash 'SHA256' for HMAC authentication
Jul 17 14:41:29 ruvds-9vsf3 ovpn-server[2808]: TUN/TAP device tun0 opened
Jul 17 14:41:29 ruvds-9vsf3 ovpn-server[2808]: net_iface_mtu_set: mtu 1500 for tun0
Jul 17 14:41:29 ruvds-9vsf3 ovpn-server[2808]: net_iface_up: set tun0 up
Jul 17 14:41:29 ruvds-9vsf3 ovpn-server[2808]: net_addr_v4_add: <IP_ADDRESS>/24 dev tun0
Jul 17 14:41:29 ruvds-9vsf3 ovpn-server[2808]: Could not determine IPv4/IPv6 protocol. Using AF_INET
Jul 17 14:41:29 ruvds-9vsf3 ovpn-server[2808]: Socket Buffers: R=[212992->212992] S=[212992->212992]
Jul 17 14:41:29 ruvds-9vsf3 ovpn-server[2808]: UDPv4 link local (bound): [AF_INET][undef]:1194
Jul 17 14:41:29 ruvds-9vsf3 ovpn-server[2808]: UDPv4 link remote: [AF_UNSPEC]
Jul 17 14:41:29 ruvds-9vsf3 ovpn-server[2808]: Consider setting groups/curves preference with tls-groups instead of forcing a specific curve with >

How to fix this? Thank you!

Thank you for your report, please read: https://github.com/pivpn/pivpn#general-guidelines and properly fill the issue template that is presented to you when you clicked the button to open a new issue, it can be found here: https://raw.githubusercontent.com/pivpn/pivpn/master/.github/ISSUE_TEMPLATE/pivpn-report.md

Could not determine IPv4/IPv6 protocol. Using AF_INET It's not an error. OpenVPN is simply saying that no IP protocol was specified in the configuration file so it's picking the default. Does the PiVPN work?

It is possible to remove the message by specifying --local in the server config file but that means editing the file, which is out of scope here at pivpn.


Fixing code that didnt' work

Nodejs code fixes

🚀 Deployed on https://65f4c8b856309437d4721e1f--cozy-fox-0defec.netlify.app


on:Tap fires twice for touch events on desktop browser (GhostClick?)

This is a (multiple allowed):

[x] bug

[ ] enhancement

[ ] feature-discussion (RFC)

Swiper Version: 4.4.6

Platform/Target and Browser Versions: Windows 10, Chrome (71) and Firefox (64)

Live Link or JSFiddle/Codepen or website with isssue: https://jsfiddle.net/dx01hjLr/

It appears that the TAP events are being fired twice for touch events... At least with a touch screen laptop.
        var swiper = new Swiper('.swiper-container', {
          slidesPerView: 3,
          spaceBetween: 50,
          on: {
            tap: function(x) {
              console.log("click")
              console.log(x)
            },
            click: function() {
              //console.log("click")
            },
          }
        });

Output with Chrome:
click
> TouchEvent {isTrusted: true, touches: TouchList, targetTouches: TouchList, changedTouches: TouchList, altKey: false, …}
click
> MouseEvent {isTrusted: true, screenX: -555, screenY: 548, clientX: 258, clientY: 54, …}

Output with FireFox
click
> touchend { target: div.box, isTrusted: true, touches: TouchList, targetTouches: TouchList, changedTouches: TouchList(1), altKey: false, metaKey: false, ctrlKey: false, shiftKey: false, view: Window, … }
click
> mouseup { target: div.box, buttons: 0, clientX: 339, clientY: 45, layerX: 61, layerY: 37 }

Whereas mouse click events fire a single time.

I tested this with Edge and IE, and it seems to be working correctly there.


UPC BARCODE confused with EAN BARCODE (iOS)

Describe the bug
scanning UPC BARCODE on iOS device returns the number but with a zero at the beginning. It should return only the number without the zero.
To Reproduce
Steps to reproduce the behavior:

Open scanner
Scan a product with a UPC BARCODE
it returns<PHONE_NUMBER>741  but it should return<PHONE_NUMBER>41

Expected behavior
the code returned should be the one on the BARCODE without implementing a zero at the beginning. This behaivor only happens on iOS
SCREENSHOTS

UPC BARCODE

RETURN VALUE

Smartphone:

Device: iPhone 8
OS: 14.4.1

any updates on this? @AmolGangadhare

Facing the same problem here. Thanks for any update on the issue ;-). Nice package.

this is not from the library but from ios. of course library should handle it. i corrected it myself.
apple explanation
UPC-A is a formal subset of EAN-13. A decoded UPC-A barcode is output as AVMetadataObjectTypeEAN13Code with a leading zero in the stringValue.
you need to change below function inside
SwiftFlutterBarcodeScannerPlugin.swift -> BarcodeScannerViewController -> metadataOutput
 if metadataObj.stringValue != nil {
    if(SwiftFlutterBarcodeScannerPlugin.isContinuousScan){
        SwiftFlutterBarcodeScannerPlugin.onBarcodeScanReceiver(barcode: metadataObj.stringValue!)
    }else{
        launchApp(decodedURL: metadataObj.stringValue!)
    }
}

to this one
var code = metadataObj.stringValue
if code != nil {
  if metadataObj.type == AVMetadataObject.ObjectType.ean13 && code!.hasPrefix("0") {
      code = String(code!.dropFirst())
  }
  if(SwiftFlutterBarcodeScannerPlugin.isContinuousScan){
      SwiftFlutterBarcodeScannerPlugin.onBarcodeScanReceiver(barcode: code!)
  }else{
      launchApp(decodedURL: code!)
  }
}


What criteria was used to collect the HSDs in HSDatabase?

Although there is no golden rule to distinguish partial duplicates from more complete ones, it is believed that the candidate HSDs turn to have at least less than 50% amino acid length difference and similar function of conserved domains.
To balance the HSDs detection sensitivity and accuracy, we have improved the duplicates genes detection and decreased the “snowball effect” via using a series of combo threshold from 90%_10aa to 90%_100aa and from 50%_10aa to 50%_100aa, which can to some extent balance the HSDs detection sensitivity and accuracy. The combo threshold was selected via using a series of thresholds: E + (D + (C + (B +A))).
A = 90%_100aa+(90%_70aa+(90%_50aa+(90%_30aa+90%_10aa)))
B = 80%_100aa+(80%_70aa+(80%_50aa+(80%_30aa+80%_10aa)))
C = 70%_100aa+(70%_70aa+(70%_50aa+(70%_30aa+70%_10aa)))
D = 60%_100aa+(60%_70aa+(60%_50aa+(60%_30aa+60%_10aa)))
E = 50%_100aa+(50%_70aa+(50%_50aa+(50%_30aa+50%_10aa)))

A combination of thresholds was used to acquire a larger dataset of HSD candidates. All-against-all protein sequence similarity search using BLASTP (E-value cutoff of ≤1e-10) filtered via the criteria within certain amino acid length differences and larger than certain amino acid pairwise identities. HSDs candidates were added one after another at different homology assessment metrics (i.e., HSDs identified at more relaxed thresholds were treated more strictly than those found using more conservative thresholds).
For example, HSDs identified at a threshold of 90%_30aa were added on to those identified at a threshold of 90%_10aa (denoted as “ 90%_30aa+90%_10aa”); any redundant HSDs candidates picked out at this combo threshold were removed if the more relaxed threshold (i.e., 90%_30aa) had the identical genes or contained the same gene copies from the stricter cut-off (i.e., 90%_10aa).
Moreover, any HSDs candidates pinpointed at the combo threshold (90%_30aa+90%_10aa) were removed if the minimum gene copy length was less than half of the maximum gene copy length for each HSD, or if HSD candidates had gene copies with incomplete conserved domains (i.e., different number of Pfam domains). After filtering the combo threshold at (90%_30aa+90%_10aa), we added on a more relaxed threshold 90%_50aa (i.e., 90%_50aa+(90%_30aa+90%_10aa)) and then carried out the same HSD candidate removal/filtering process.
To minimize the redundancy and to acquire a larger dataset of HSD candidates, we processed each selected species with the following combination of thresholds: E + (D + (C + (B +A))).

At the same time, since you have already mastered the usage of HSDFinder. if you interest in detecting more duplicates from your fish genomes or worry about missing any important duplicates genes, I would suggest you read the criteria we used to collect duplicates in HSDatabase, https://github.com/zx0223winner/HSDFinder/issues/7

To acquire more HSDs for each of your species, I will need you to re-run the HSDFinder with different thresholds, right now you only have 90_10 for each of your species (e.g., Aven.hsd.species.txt). Here, 90_10 represent 90% amino acid identity, within 10aa length difference, the complete 25 files for each of your species are :
90_10; 90_30;90_50;90_70;90_100;
80_10; 80_30;80_50;80_70;80_100;
70_10; 70_30;70_50;70_70;70_100;
60_10; 60_30;60_50;60_70;60_100;
50_10; 50_30;50_50;50_70;50_100;
You can do the batch work locally or run one at a time from online. So in total for your 14 species you will finally have 350 HSDs files, please label your file like below “species_name.number_number.txt” and place every 25 HSD files in 14 fish species folders, I have a custom script can run all files at a time.
Arabidopsis_thaliana.50_100.txt
Arabidopsis_thaliana.50_10.txt
Arabidopsis_thaliana.50_30.txt
Arabidopsis_thaliana.50_50.txt
Arabidopsis_thaliana.50_70.txt
Arabidopsis_thaliana.60_100.txt
Arabidopsis_thaliana.60_10.txt
Arabidopsis_thaliana.60_30.txt
Arabidopsis_thaliana.60_50.txt
Arabidopsis_thaliana.60_70.txt
Arabidopsis_thaliana.70_100.txt
Arabidopsis_thaliana.70_10.txt
Arabidopsis_thaliana.70_30.txt
Arabidopsis_thaliana.70_50.txt
Arabidopsis_thaliana.70_70.txt
Arabidopsis_thaliana.80_100.txt
Arabidopsis_thaliana.80_10.txt
Arabidopsis_thaliana.80_30.txt
Arabidopsis_thaliana.80_50.txt
Arabidopsis_thaliana.80_70.txt
Arabidopsis_thaliana.90_100.txt
Arabidopsis_thaliana.90_10.txt
Arabidopsis_thaliana.90_30.txt
Arabidopsis_thaliana.90_50.txt
Arabidopsis_thaliana.90_70.txt


Query performance improvements (xBestIndex fix + no default ordering)

While working with the crsql_changes table, I noticed some queries didn't work at all and others were very slow. I'm working with a test table of 1800000 rows, and there are over 3 million crsql_changes row.
I'm using this query in my testing:
SELECT DISTINCT(db_version) FROM crsql_changes WHERE site_id IS ? AND db_version > ? AND db_version < ?

Initial execution time for this query: 8s
Using EXPLAIN QUERY PLAN helped me figure out that no indexes were being used.
This should fix #245 by ignoring "unusable" constraints in xBestIndex. According to the docs:

The aConstraint[] array contains information about all constraints that apply to the virtual table. But some of the constraints might not be usable because of the way tables are ordered in a join. The xBestIndex method must therefore only consider constraints that have an aConstraint[].usable flag which is true.

This first part brought query times down to 2s, it was finally able to use the indexes instead of doing a full table scan.
Upon further investigation, I figured out the queries being constructed by crsqlite always included ORDER BY db_version, seq ASC which caused signifcant slowdown.
For example, here's an explained query it produces internally:
sqlite> EXPLAIN QUERY PLAN SELECT tbl, pks, cid, col_vrsn, db_vrsn, site_id, _rowid_, seq FROM (SELECT      'foo' as tbl,      quote("a") as pks,      __crsql_col_name as cid,      __crsql_col_version as col_vrsn,      __crsql_db_version as db_vrsn,      __crsql_site_id as site_id,      _rowid_,      __crsql_seq as seq    FROM "foo__crsql_clock") WHERE site_id IS NULL AND db_vrsn > ? AND db_vrsn < ? ORDER BY db_vrsn, seq AS;

QUERY PLAN
|--SEARCH foo__crsql_clock USING INDEX foo__crsql_clock_dbv_idx (__crsql_db_version>? AND __crsql_db_version<?)
`--USE TEMP B-TREE FOR RIGHT PART OF ORDER BY

The SEARCH here is great, but the USE TEMP B-TREE FOR RIGHT PART OF ORDER BY adds a lot of time in certain cases.
Removing the default ORDER BY appended to every crsql_changes queries brought the execution time down to 200ms
Doing this means clients will have to add an ORDER BY if they care about it, it's a bit of a breaking change. However, it gives more low-level control over the produced queries.
Edit: the aforementioned numbers are probably erroneous (definitely not rigorous), but at least it fixes the xBestIndex errors)

Switched the base to point to dev so I can merge there and then fix the tests. There are some broken tests not showing here since the CI didn't run all the tests on PR open. This is fixed here: https://github.com/vlcn-io/cr-sqlite/compare/main...dev

Looks like xBestIndex needs to take into account aOrderBy from pIdxInfo and "consume" the order by if the returned results will be correctly ordered.
I'm investigating this now unless it's something you want to tie up.

Added some commits on top of this to get tests passing --
https://github.com/vlcn-io/cr-sqlite/commits/x-best-index-fix


Fix typos / encoding in original Pascal implementation

On resuming the work in this project, it was noticed that there are many typos and minor enconding issues that can be sort of easily fixed before resuming the C# conversion.

Closed after merge of #10


Rename sklearn to proper dep, solve failing tests

Should solve failing tests, needs to be scikit-learn not sklearn

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


[Question] MetaDataImport, Generic Type Parameters

Hoping you could put some light on this.
Questions

What happened to IMetaDataImport2? Will it ever be implemented?
Is there a way to retrieve generic type parameters as an array?

Some context
This came up on this when I tried to retrieve more detailed informations about generic type using available functionalities and MetaDataImport looked like the way to go.
Given that I already have enumerated objects and their Type property contains correct ClrType objects, I now have access to ClrObject.Type.MetadataToken, which should contain TypeDef token. With it I can utilize MetaDataImport, to retrieve the name without generic params:
Note: following code was run on version 1.0.5.
ClrModule _module; // initialized somewhere
ClrType _type; // initialized somewhere
// Get the COM wrapper and token
MetaDataImport _metadata = (MetaDataImport)_module.MetadataImport;
int _token = _type.MetadataToken; // Why it's not some unsigned int btw.?
_metadata.GetTypeDefProperties(_token, out var _name, out _, out _);

// Assuming C# type was "class Generic<T1,T2>"
// _name will contain "MyAssembly.Generic`2"

Probably there are more efficient ways to retrieve this, but let it be for now.
From what I see MetaDataImport class is a partial implementation of IMetaDataImport interface.
Searching on how could I retrieve generic type parameters with it I stepped on IMetaDataImport2 interface, which gloriously unveils EnumGenericParams and GetGenericParamProps methods which looks like exactly what I wanted.
Unfortunately when I looked into source code:

in 1.0.5 there's a .cs file for this interface, but it does not appear to be finished, there's no class (COM wrapper) using it and comments hint that there's work to be done to make it work;
in 2.0 (current master branch) this file is gone and it does not appear to be implemented elsewhere,

so it appears like there's no way of accessing those methods at the moment 😞.

This is just an oversight on my part.  ClrMD 2.0 is still being built, but I completely forgot about the second interface.
The intent here is that ClrMD will provide the ISOSDac, IXCLR*, and IMetaDataImport functions that it needs to do its work.  ClrMD will also provide any functions requested by the community at large, either through a pull request or just filing an issue and having me do the work.  I don't want to just blanket implement everything right now because it would take me forever and most people won't need it.  Just let me know if there's other stuff you need that's missing.
I'll try to implement EnumGenericParams and GetGenericParamProps this week.

// Why it's not some unsigned int btw.?

Tokens probably should be uint, but I'm a bit on the fence about it.  The BCL uses int, see this for example.  In either case, I need to actually go through the entire library and make it fully consistent, which I haven't done yet.
Please do continue to file any issues where something seems missing, it's likely I either haven't gotten around to it yet or I just forgot.  Either way I always appreciate an issue filed as a reminder.

I understand.
After few more thoughts I'm not sure what will EnumGenericParams return - at first I thought it'll return tokens of the type params for this particular instance, e.g. for
class Generic<T1> { }
new Generic<int>(); // object in memory, token will be retrieved from it's type

it would return token for the int (System.Int32) type, but now when I look at the GetGenericParamProps method parameters, it appears that the EnumGenericParams more likely returns tokens for the GenericParams table, pointing to the generic param T1 (not to a specific type).
Either way, as it's not yet implemented (no way to test it) and the documentation describes the returned array of those tokens as "The array of generic parameters to enumerate." this is just speculating.
Anyway I'm looking forward to being able to retrieve the <T1, T2, ...> generic params and <int, Class1, ...> types anyhow from an active object 😉.

Unfortunately I'm not 100% sure if what you are looking at will be accomplishable through the metadata interface.  The real underlying problem here is that the dac private API does not support generics in a lot of cases that it should or needs to.
If this isn't workable through the metadata api, we'll have fix this in the runtime.  This is one of the things on my todo list is to try to fix that in the .Net Core 5 timeframe, but that means it will only work when debugging a runtime that has the fix.

#431 added functionalities to retrieve the <T1, T2, ...> generic parameters.
The new APIs look like the followings:
https://github.com/microsoft/clrmd/blob/a5e28f71c2a319a80de027fdb4977cc855e6624c/src/Microsoft.Diagnostics.Runtime/src/Common/ClrType.cs#L89
https://github.com/microsoft/clrmd/blob/a5e28f71c2a319a80de027fdb4977cc855e6624c/src/Microsoft.Diagnostics.Runtime/src/Common/ClrGenericParameter.cs#L9-L17
As for the generic arguments, I've no idea where to find them.

The generic arguments are only exposed through the native IDacDbiInterface interface.

The generic arguments are only exposed through the native IDacDbiInterface interface.

Yeah.  I was thinking about the dac/dbi interface over the last few days.  I really don't want to build support for the IDacDbiInterface in clrmd.  It's not versioned and requires tight coupling, so changes between versions of CLR may start causing access violations at any time.
I think the long term direction here is for me to go do work in the coreclr repo to add new ISOSDac interfaces that implement a lot of functionality that we really need.  This is my current wishlist, if I had infinite time:

Get ElementType for method table data.
All functions which take method tables should work with type handles (for generic fields, for example).
Generic support in general.  (This issue.)
~Images report size.~
TypeSpec enumeration
Change modulemaptraverse to fill an array
Dac::Flush needs to be synchronized.

We have done all that we are going to around MetadataImport in this release.  NextTurn's EnumerateGenericParameters should resolve the initial problem here, and I think MetadataImport is where I want it to be for ClrMD 2.0.
I'm going to close this issue now, but please feel free to open a new issue if there's functionality in IMetaDataImport that you would like to need wrapped in ClrMD.

I was wondering a bit about retrieving the actual types of generic parameters ([System.Int32, System.Double], rather than [T1, T2]) and I wonder if it's proper that MetadataToken for instances of generic types is actually TypeDef token, rather than TypeSpec token.
Note that it isn't a bug in ClrMD, as WinDbg (!DumpClass) already shows it like this, but I wonder if it's expected behavior.
WinDbg output
0:000> !DumpClass /d 00007ffa115704e0
Class Name:      ConsoleApp1.GenericType1`2[[System.Int32, mscorlib],[System.Double, mscorlib]]
mdToken:<PHONE_NUMBER>000008    <-- 0x02000000 = TypeDef, 0x1b000000 = TypeSpec, so it's 8th entry in TypeDef
File:            C:\...\ConsoleApp1.exe
Parent Class:    00007ffa6ec12f68
Module:          00007ffa113e4148
Method Table:    00007ffa113e6228
Vtable Slots:    4
Total Method Slots:  5
Class Attributes:    100001
Transparency:        Critical
NumInstanceFields:   1
NumStaticFields:     0
              MT    Field   Offset                 Type VT     Attr            Value Name
00007ffa6ec3aaa0  4000007        8        System.Byte[]  0 instance           SomeGarbage

If mdToken would be of TypeSpec type, this would allow to retrieve the underlying type (currently shown mdToken) and all of the arguments/params types (System.Int32, System.Double TypeRefs) from the TypeSpec signature.
This kind of stroke me, as recently I was dealing with some generics in our profiler, and tokens there tended to be TypeSpec and MemberRef tokens instead of TypeDef and MethodDef ones.


[release-4.15]  OCPBUGS-36813: [CARRY] perform operator apiService certificate validity checks directly

Manual cherry-pick of https://github.com/openshift/operator-framework-olm/pull/798 to 4.15

/retest

Test pass, see: https://issues.redhat.com/browse/OCPBUGS-36813
/lable qe-approved
/label cherry-pick-approved

/label qe-approved

/lgtm

/retest

/label backport-risk-assessed

/cherry-pick release-4.14

/cherry-pick release-4.14


[Mobile, Tablet] Need to add three dots menu if to click on Prompt name

[Mobile] Need to add three dots menu if to click on Prompt name, like it's done for chats
Note: On laptop three dots menu appears on hover over

Verified on staging using iPhone and iPad successfully


Is spyder Integrated with Qt-designer ?

Description of your problem
Since i am new to Spyder IDE
I have
Query??
Is there any way that  allows us to design Python GUI's using Qt-designer in Spyder IDE itself?
Versions and main components

Spyder Version: 2.3.8
Python Version: 2.7.12
Qt Version:4.8.7
PyQt Version:4.11.4
Operating system: Ubuntu

@abhishekbudruk no. We design everything directly in code, so we do not use QtDesigner, nor uic files.

Thanks for your response

Thanks for the help
On Mon, Jul 24, 2017 at 12:54 PM, Gonzalo Peña-Castellanos <
<EMAIL_ADDRESS>wrote:

Closed #4800 https://github.com/spyder-ide/spyder/issues/4800.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/spyder-ide/spyder/issues/4800#event-1175591751, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AcywzZ2D0tY3rBbZ14Rk5b9fiqkqIdD7ks5sREa_gaJpZM4OgzwS
.


Windows Installation Failed

Hello, I would like to ask about the following installation issue on my Windows 10 machine.
Additional info:

I have VS 2019 build tools (16.8.5) as well as Windows 10 SDK installed already
the directory C:\Users\peter\AppData\Local\Temp\PAB6C8~1\ doesn't exist, whether before or after I close the command line window for the script. As a result, there is no vslogs.zip to upload
I do not have quotes in PATH like this issue

Microsoft Visual Studio Build Tools installation failed! Exited with 1.!

FIRST you can retry this script which can resolve intermittent network failures or (rarer) Visual Studio installer bugs.SECOND you can run the following (all on one line) to manually install Visual Studio Build Tools:

        C:\Users\peter\AppData\Local\Temp\PAB6C8~1\0\vsinstall\vs_buildtools.exe --add Microsoft.VisualStudio.Component.Windows10SDK.18362 --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.Component.VC.14.26.x86.x64

Make sure the following components are installed:
        a) MSVC v142 - VS 2019 C++ x64/x86 build tools (v14.26)
        b) MSVC v142 - VS 2019 C++ x64/x86 build tools (Latest)
        c) Windows 10 SDK (10.0.18362.0)

THIRD, if everything else failed, you can file a Bug Report at https://github.com/diskuv/dkml-installer-ocaml/issues and attach C:\Users\peter\AppData\Local\Temp\PAB6C8~1\0\vsinstall\vslogs.zip

FATAL [118acf2a]. A transient failure occurred.

Root cause: The conformant command had exit code 1:
                                           C:\Users\peter\AppData\Local\Temp\7z1C08BB64\sg\network-ocamlcompiler\windows_x86_64\setup-machine.bat
                                             -DkmlPath
                                             C:\Users\peter\AppData\Local\Temp\7Z1C08~1\sg\NETWOR~1\WINDOW~1\dkmldir
                                             -TempParentPath
                                             C:\Users\peter\AppData\Local\Temp\PAB6C8~1
                                             -SkipProgress -AllowRunAsAdmin

>>> A transient failure occurred. <<<

dkml-package.bc: [ERROR] FATAL [5f927a8b].
                         A transient failure occurred.

                         Root cause: The command had exit code 20:
                                                                    C:\Users\peter\AppData\Local\Temp\7z1C08BB64\sg\xx-console\windows_x86_64\bin\gsudo.exe
                                                                      --wait --direct
                                                                      C:\Users\peter\AppData\Local\Temp\7z1C08BB64\bin\dkml-install-admin-runner.exe
                                                                      install-adminall
                                                                      --verbosity=info --color=always
                                                                      --prefix
                                                                      C:\Users\peter\AppData\Local\Programs\DiskuvOCaml
                                                                      --staging-files
                                                                      C:\Users\peter\AppData\Local\Temp\7z1C08BB64\sg

                         >>> A transient failure occurred. <<<

Sorry about that. I just realized myself recently the directory containing vslogs.zip is deleted almost immediately after it is generated. I have a bugfix coming out for that issue (plus a few other bug fixes).
I'll update this ticket when the new release is finished. You will probably have to wait for that.
There is a tiny chance that if you restart your computer, then erase the C:\DiskuvOCaml directory, and then redo the installation ... it might fix the issue

There is also a new installer at https://github.com/diskuv/dkml-installer-ocaml/releases/tag/v1.1.0_r2 that will capture the vslogs ... and it also marginally improves installing Visual Studio. Is there any chance you could try it out? (Run the uninstaller first, then the installer)

I tried the installer linked above and the installation succeeded; thanks!


Add support for Admin.domains API

see: https://developers.google.com/admin-sdk/directory/v1/reference/domains

Any update on this?
Thank you!

This may have been updated in the latest regenerate of the library.

Great, thank you!


Allow setting custom msgpack library to use

I'd like to add in the ability to swap in a custom msgpack library to use. I'm making a proposal first before opening a PR just to see if there's support. This would somewhat mirror the existing capacity to bring your own packet parser to socket.io.
My proposal for the change would be to add a new key/value to RedisAdapterOptions of something like:
interface MsgpackInterface {
  decode: (data: any) => any;
  encode: (data: any) => any;
}

interface RedisAdapterOptions {
  // other options
  /**
   * MessagePack library to use for marshaling and un-marshalling data out of Redis.
   *
   * @default notepack.io
   */
  msgpack?: MsgpackInterface;
}

and then in the RedisAdapter constructor, have something like this.msgpack = opts.msgpack || msgpack, and then any future call to msgpack in the class would be replaced with this.msgpack. I've loosely tested this within my own application and haven't seen anything break, but I may be missing something on how this is used.
I'd make a similar change for the @socket.io/redis-emitter library as well.
For the motivation for this change, this library currently uses the notepack.io library to handle encoding/decoding messages into/out of redis. In benchmarking our application, we are finding that msgpackr library would give us a decent speed-up for the sorts of payloads we have (We also already use it in a number of other places in our stack):
Encoding (this will take a while):
+----------------------------+----------------+
|                            │ data           |
+----------------------------+----------------+
| notepack                   │ 25,242 ops/sec |
+----------------------------+----------------+
| msgpack-js                 │ 2,192 ops/sec  |
+----------------------------+----------------+
| msgpack-lite               │ 17,457 ops/sec |
+----------------------------+----------------+
| @msgpack/msgpack           │ 21,024 ops/sec |
+----------------------------+----------------+
| msgpackr                   │ 42,637 ops/sec |
+----------------------------+----------------+
| JSON.stringify (to Buffer) │ 16,157 ops/sec |
+----------------------------+----------------+

Decoding (this will take a while):
+--------------------------+----------------+
|                          │ data           |
+--------------------------+----------------+
| notepack                 │ 24,175 ops/sec |
+--------------------------+----------------+
| msgpack-js               │ 18,337 ops/sec |
+--------------------------+----------------+
| msgpack-lite             │ 10,894 ops/sec |
+--------------------------+----------------+
| @msgpack/msgpack         │ 19,320 ops/sec |
+--------------------------+----------------+
| msgparck                 │ 45,733 ops/sec |
+--------------------------+----------------+
| JSON.parse (from Buffer) │ 39,214 ops/sec |
+--------------------------+----------------+

As such, I'd like to have the ability to provide my own msgpack implementation to use for the adapter.

That sounds reasonable :+1:
Minor nitpick: I don't think the interface should include "msgpack" in its name, as any format would work (protobuf for example).

Does parser work better for you?

Yes that sounds great :+1:


Build Gains Network Subgraph

### Deployment Status
- [x] Polygon: https://okgraph.xyz/?q=dhruv-chauhan%2Fgains-trade-polygon-121
- [ ] https://github.com/messari/subgraphs/issues/2005

@dhruv-chauhan

PR #1972 ready for review! @bye43

approved QA in other issue

upgrade needs to be added to hosted: https://github.com/messari/subgraphs/pull/2104

Both versions are fully synced, I am not sure if the polygon deployment has passed QA

Double checking polygon

@dhruv-chauhan For Gains, is there a reason swaps are zero?


Merges master to live. See commits for details.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

skype/skype-ps/skype/Enable-CsOnlineSipDomain.md
:white_check_mark:Succeeded
View (skype-ps)

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


Updated with Facebook Auth

Proposed Changes:

Added information about facebook auth

DCO1.1 Signed-off-by: Thomas Boop<EMAIL_ADDRESS>

Hi boopt2,
Thanks for submitting this pull request!
I can confirm that the DCO1.1 sign-off has been included. It is okay to process this pull request.
dco-bot


chore(bb): small compile improvements

seems to save about 30seconds building bb bench binaries

Benchmark results
Metrics with a significant change:

protocol_circuit_witness_generation_time_in_ms (private-kernel-reset-small): 2,053 (-19%)
protocol_circuit_witness_generation_time_in_ms (public-kernel-tail): 25,831 (+24%)
protocol_circuit_proving_time_in_ms (private-kernel-reset-small): 30,537 (-38%)
protocol_circuit_size_in_gates (private-kernel-reset-small): 1,048,576 (-50%)

Detailed results
All benchmarks are run on txs on the Benchmarking contract on the repository. Each tx consists of a batch call  to create_note and increment_balance, which guarantees that each tx has a private call, a nested private call, a public call, and a nested public call, as well as an emitted private note, an unencrypted log, and public storage read and write.
This benchmark source data is available in JSON format on S3 here.
Proof generation
Each column represents the number of threads used in proof generation.

Metric
1 threads
4 threads
16 threads
32 threads
64 threads

proof_construction_time_sha256
5,738 (+1%)
1,558 (+1%)
714 (+1%)
795 (+5%)
774 (+1%)

L2 block published to L1
Each column represents the number of txs on an L2 block published to L1.

Metric
8 txs
32 txs
64 txs

l1_rollup_calldata_size_in_bytes
1,412
1,412
1,412

l1_rollup_calldata_gas
9,464
9,476
9,464

l1_rollup_execution_gas
616,105
616,117
616,105

l2_block_processing_time_in_ms
1,372
5,547 (+8%)
9,868 (-3%)

l2_block_building_time_in_ms
47,103 (+1%)
193,657 (+4%)
370,965

l2_block_rollup_simulation_time_in_ms
46,925 (+1%)
192,978 (+4%)
369,618

l2_block_public_tx_process_time_in_ms
25,146 (+1%)
108,861 (+4%)
213,583 (+1%)

L2 chain processing
Each column represents the number of blocks on the L2 chain where each block has 16 txs.

Metric
3 blocks
5 blocks

node_history_sync_time_in_ms
10,107 (+1%)
15,327

node_database_size_in_bytes
14,467,152
21,303,376

pxe_database_size_in_bytes
18,071
29,868

Circuits stats
Stats on running time and I/O sizes collected for every kernel circuit run across all benchmarks.

Circuit
protocol_circuit_simulation_time_in_ms
protocol_circuit_witness_generation_time_in_ms
protocol_circuit_proving_time_in_ms
protocol_circuit_input_size_in_bytes
protocol_circuit_output_size_in_bytes
protocol_circuit_proof_size_in_bytes
protocol_circuit_num_public_inputs
protocol_circuit_size_in_gates

private-kernel-init
162 (-1%)
3,524
26,067 (+7%)
19,990 (-3%)
61,798 (-4%)
86,720 (-3%)
2,643 (-3%)
1,048,576

private-kernel-inner
612 (-2%)
4,042 (-1%)
54,535 (+3%)
88,862 (-4%)
61,798 (-4%)
86,720 (-3%)
2,643 (-3%)
2,097,152

private-kernel-tail
532 (-2%)
2,693 (-3%)
43,862
86,653 (-4%)
76,438 (-1%)
10,624
265
2,097,152

base-parity
6.56 (+2%)
1,199 (-7%)
2,894 (+4%)
128
64.0
2,208
2.00
131,072

root-parity
50.0
72.7 (+7%)
51,038 (+2%)
27,084
64.0
2,720
18.0
2,097,152

base-rollup
813 (+5%)
2,422 (-1%)
88,906
119,578
756
3,648
47.0
4,194,304

root-rollup
114 (-3%)
81.4
24,707 (+12%)
25,297
620
3,456
41.0
1,048,576

public-kernel-app-logic
526 (+1%)
2,854 (+2%)
53,174 (+2%)
103,405 (-1%)
84,766 (-2%)
116,832 (+2%)
3,584 (+2%)
2,097,152

public-kernel-tail
1,192 (-1%)
:warning: 25,831 (+24%)
183,128 (+2%)
393,850
7,490
10,624
265
8,388,608

private-kernel-reset-small
589 (-1%)
:warning: 2,053 (-19%)
:warning: 30,537 (-38%)
118,173 (-2%)
61,798 (-4%)
86,720 (-3%)
2,643 (-3%)
:warning: 1,048,576 (-50%)

merge-rollup
30.5 (+6%)
N/A
N/A
16,534
756
N/A
N/A
N/A

public-kernel-setup
622 (-2%)
N/A
N/A
103,405 (-1%)
84,766 (-2%)
N/A
N/A
N/A

public-kernel-teardown
529 (-15%)
N/A
N/A
103,405 (-1%)
84,766 (-2%)
N/A
N/A
N/A

private-kernel-tail-to-public
N/A
9,482 (+14%)
95,185 (+1%)
N/A
N/A
116,832 (+2%)
3,584 (+2%)
4,194,304

Stats on running time collected for app circuits

Function
app_circuit_proof_size_in_bytes
app_circuit_proving_time_in_ms
app_circuit_size_in_gates
app_circuit_num_public_inputs

SchnorrAccount:entrypoint
16,128 (-4%)
52,156 (+5%)
2,097,152
437 (-4%)

Token:transfer
16,128 (-4%)
49,625 (-14%)
2,097,152
437 (-4%)

Tree insertion stats
The duration to insert a fixed batch of leaves into each tree type.

Metric
1 leaves
16 leaves
64 leaves
128 leaves
512 leaves
1024 leaves
2048 leaves
4096 leaves
32 leaves

batch_insert_into_append_only_tree_16_depth_ms
11.1 (-1%)
18.6 (+4%)
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_count
16.7
31.8
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_ms
0.648 (-1%)
0.570 (+4%)
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_32_depth_ms
N/A
N/A
52.7 (+2%)
83.0 (+3%)
265
508 (+1%)
1,095 (+10%)
1,926 (-2%)
N/A

batch_insert_into_append_only_tree_32_depth_hash_count
N/A
N/A
95.9
159
543
1,055
2,079
4,127
N/A

batch_insert_into_append_only_tree_32_depth_hash_ms
N/A
N/A
0.539 (+2%)
0.513 (+3%)
0.482
0.475 (+1%)
0.520 (+10%)
0.460 (-2%)
N/A

batch_insert_into_indexed_tree_20_depth_ms
N/A
N/A
62.2 (+1%)
122 (+2%)
382 (+1%)
764 (+3%)
1,620 (+9%)
2,870 (-3%)
N/A

batch_insert_into_indexed_tree_20_depth_hash_count
N/A
N/A
106
208
692
1,363
2,707
5,395
N/A

batch_insert_into_indexed_tree_20_depth_hash_ms
N/A
N/A
0.540 (+1%)
0.546 (+1%)
0.518
0.527 (+3%)
0.560 (+9%)
0.500 (-3%)
N/A

batch_insert_into_indexed_tree_40_depth_ms
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
67.0 (+1%)

batch_insert_into_indexed_tree_40_depth_hash_count
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
107

batch_insert_into_indexed_tree_40_depth_hash_ms
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
0.595 (+1%)

Miscellaneous
Transaction sizes based on how many contract classes are registered in the tx.

Metric
0 registered classes
1 registered classes

tx_size_in_bytes
82,705 (-1%)
664,768

Transaction size based on fee payment method
| Metric |  |
| - |  |
Transaction processing duration by data writes.

Metric
0 new note hashes
1 new note hashes
2 new note hashes

tx_pxe_processing_time_ms
12,323
4,306
78,796

Metric
1 public data writes
2 public data writes
3 public data writes
4 public data writes
8 public data writes

tx_sequencer_processing_time_ms
3,207
2,118
6,027
2,256
2,523


Update docs site footer with current social buttons

Enhancement Description
Update the current docs footer to use the same social buttons as those used on layer5.io as shown in this screencast.

Hi @leecalcote : Is this still up for grabs?

Hi @anusha5695, I missed your question earlier. Yes, help here would be very nice. @gunjanmimo has given this a try in PR #432, which is good. However, hasn't quite hit the mark yet in terms of the original ask to use the same social buttons as those used on layer5.io as shown in this screencast.
You're help here would be much appreciated!

@leecalcote I can work on this if you want. Do we want the tooltips? They won't really work going below the buttons like they do on the layer5.io site but I can put them above the buttons.

@schillingjerrid yes, sir. Please.

@leecalcote Yes to the tooltips?

@schillingjerrid Yes, if the tooltips fit, it would be great to have them - whether they are below or above the buttons.

@leecalcote Sounds good to me.

Doesn't #527 solve this issue?

Hey guys, sorry I haven't been working on this recently. I have a branch with the changes made but I've been on holiday for the last few weeks and haven't finished testing it. @raghavaggarwal99 's branch looks good! I'll un-assign myself from the issue.

@schillingjerrid no problem. Thanks for signaling here. We're very pleased to get what time of yours that we can. :)


A slight mistake; TThe.

In glossary, there is a slight typo which 'TThe' is in Halant (Virama) description.

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

ID: 7c1a0129-e23f-c785-89bc-25fb41b378c0
Version Independent ID: b2a39f6a-94ed-b3ff-effb-17b2cc31b9e1
Content: | Microsoft Docs
Content Source: typographydocs/script-development/devanagari.md
Product: typography
GitHub Login: @mijacobs
Microsoft Alias: mijacobs

Closing as Fixed.


feat: adding resource annotations

api-linter was fixed to accurately identify
resources. As a result, this surfaces multiple
linter failures that must be fixed.

closing in favor of #55


Only a package.json and a .gitignore file after running the npx command

I ran the command npx create-guten-block arion-related-posts as suggested, in wp-content/plugins, The installation took a minute, and after that, the arion-related-posts folder had 2 files.
package.json
{
  "name": "arion-related-posts-cgb-guten-block",
  "version": "1.0.0",
  "private": true,
  "scripts": {
    "start": "cgb-scripts start",
    "build": "cgb-scripts build",
    "eject": "cgb-scripts eject"
  }
}

and a .gitignore for the node_modules
The scripts, don't seem to be working either.
I have:
Node version 16.13.0
NPM version 8.1.0
Windows 10

Hi I have the same Problem, did you find any solution .
Thanks.
Node version v16.13.1
NPM 8.1.2
MAC OSX

Unfortunately no. But I don't think this is getting updated anymore. So I switched to @wordpress/scripts or @wordpress/blocks

Might be too late, to be of any help, but the scripts and config used with create-guten-block are not working with Node v16. If you want to use cgb you'll have to roll back to Node v12.


An object without shadows and light

Hello! Is it possible to draw an object in the middle of a darkened room that would not be darkened? It is necessary to show a hint object for the player, so that it is not affected by light and shadows.

Change the draw order such that the hint is drawn after the lighting. Alternatively use BulbLightOverlay() to draw a light exactly the same size/shape as the hint.

In the "Create" event of the object, I added together and separately "BulbLightOverlay" and "BulbShadowOverlay", also changed the rendering layers in places, no effect... Am I doing something wrong?
The "create" event of the object
light = new BulbLightOverlay(oRenderer3.lighting);
light.sprite = sprInfoTable;
light.x = x;
light.y = y;
light.AddToRenderer(oRenderer3.lighting);

shadow = new BulbShadowOverlay(oRenderer3.lighting);
shadow.sprite = sprInfoTable;
shadow.x = x;
shadow.y = y;
shadow.AddToRenderer(oRenderer3.lighting);

Shadows are still visible on the object

If you use bright colors, everything is fine:

If pastel or dim, then shadows are visible:

Bulb is not magic and obeys all the normal GameMaker drawing rules. If you are drawing the lighting surface in the Draw End event then it will draw on top of everything else. Either move the lighting surface draw operation so that it happens before the UI elemnt or move the UI element after the lighting surface is drawn.


List of notifications IDs and payload formats in wiki

I was looking for the currently defined notification IDs in order to decide how and if I should define a new notification type in a module I'm writing, and it seems that there is no such a list anywhere in the wiki.
I think it could be useful to have a "catalog" for the available notifications, similar to the one we have for the available modules.

Absolutely a good idea! Feel free to contribute! :)

Somebody recently added the page to the wiki, so I'm contributing there, great!


Hi Andy, I have made these commits to accommodate authorization headers. We have come across scenarios where both the headers: authorization and proxy-authorization are present. The authString will not get populated if proxy-authorization headers are present as part the request.

Parse proxy-authorization header to read the header value for proxy-authorization field
Clearly describe the problem and solution
---proxy-authorization headers that are present in the request are not getting parsed and the corresponding value is not getting populated because authString are not getting populated. I have made these commits to accommodate proxy-authorization headers. We have come across scenarios where both the headers: authorization and proxy-authorization are present. The authString will not get populated if proxy-authorization headers are present as part of the request.
Relevant issue number(s) if applicable
---NA
Did you run npm run lint from the viewer or parliament directory (whichever you are making changes to) and correct any errors
--- My changes are only present in capture/parsers/http.c file.
Did you Ensure that all tests still pass by navigating to the tests directory and running ./tests.pl --viewer
---- ./test.pl was run on the pcap directory.
License
I confirm that this contribution is made under an Apache 2.0 license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

Feel free to reopen if you want to address the above comments.


Sandbox issue in Microsoft Azure Learning Path

Describe the bug
Error of "Unauthorized sandbox used" appear when attempting to complete Microsoft Azure Learning path that requires sandbox. My Microsoft account is newly created, and I did not do anything that violates the use of sandbox. There are no other explanations why the error occurs.
(EDIT)
My Microsoft account is<EMAIL_ADDRESS>To Reproduce
Steps to reproduce the behavior:

Go to Microsoft Azure Learning Path that requires Sandbox (e.g., Azure fundamentals exercise, Create a website in Azure)
Click on Activate Sandbox
See error as shown in the screenshot attached

Expected behavior
I am expected to be able to use the sandbox.
Screenshots

Desktop (please complete the following information):

OS: Windows 10 Enterprise
Browser chrome
Version 79.0.3945

Any updates so far? @mlottner @yunyunyunyun

@mlottner  please I have the same issues and I'm sure I didn't do anything wrong I'm just using sandbox to prepare for my azure certificate can you please fix that for me

Duplicate of #2409


build: Update to header 1.2.191

Update known-good
Generate source

CI Vulkan-Tools build queued with queue ID 32656.

CI Vulkan-Tools build # 515 running.

CI Vulkan-Tools build # 515 passed.


'ChatGPT error 400',howto Reset ChatGPT to default?

"Your method: 'GPT3 OpenAI API Key' and your model: 'text-davinci-003' may be incompatible or one of your parameters is unknown. Reset your settings to default. (HTTP 400 Bad Request) ChatGPT error 400"
howto Reset ChatGPT to default?

To reset everything to default, use this shortcut(ctrl+shift+p) and under Extensions you will see ChatGPT, all overwritten settings will be highlighted, you can reset them to default using the settings gear icon. Or you can go to settings.json on your vs-code, if you overwrote any of the extension's settings, remove them from settings.json. This extension's settings start with chatgpt.*

I want to use 'GPT3 OpenAI API Key' and 'text-davinci-003', Because the browser can't log in because of 'unsupport countries', how to set it?

The promot always has a prefix like
"prompt": "You are ChatGPT helping the USER with coding. \n\t\t\tYou are intelligent, helpful and an expert developer, who always gives the correct answer and only does what instructed. You always answer truthfully and don't make things up. \n\t\t\t(When responding to the following prompt, please make sure to properly style your response using Github Flavored Markdown. \n\t\t\tUse markdown syntax for things like headings, lists, colored text, code blocks, highlights etc. Make sure not to mention markdown or stying in your actual response. \n\t\t\tTry to write code inside a single code block if possible)User:\n\nHelllo<|im_end|>\n\nChatGPT:\n",

reset conversation does not work.

@jumbojing both types are supported (browser, api key). You just need to make sure you are selecting the right model in your settings. Pay attention to the Prefix for both types, not all models work in both types.

@dannliu that's correct, the extension adds a context to the chatgpt conversations by default, it then appends your selected prefix. This is for chatgpt to properly respond to your code related queries in vs-code.


replace_or_add failing on XML document

I am using this resource on a machine.  It will find the line it needs on the first run and replaces it correctly.  Every run after that fails because it can't detect that the line was already replaces so it appends it to the end of the document.
CODE:
replace_or_add "sso crowd auth" do
  path "#{node["confluence"]["install_dir"]}/confluence/confluence/WEB-INF/classes/seraph-config.xml"
  pattern %Q[<!-- <authenticator class="com.atlassian.confluence.user.ConfluenceCrowdSSOAuthenticator"/> -->]
  line %Q[<authenticator class="com.atlassian.confluence.user.ConfluenceCrowdSSOAuthenticator"/>]
  notifies :restart, "service[#{service_name}]", :delayed
end

DEBUG OUTPUT:
* replace_or_add[sso crowd auth] action edit[2015-05-15T20:30:39+00:00] INFO: Processing replace_or_add[sso crowd auth] action edit (tcn_atlassian::confluence line 112)
[2015-05-15T20:30:39+00:00] DEBUG: providers for generic replace_or_add resource enabled on node include: []
[2015-05-15T20:30:39+00:00] DEBUG: providers that refused resource replace_or_add[sso crowd auth] were: []
[2015-05-15T20:30:39+00:00] DEBUG: providers that support resource replace_or_add[sso crowd auth] include: []
[2015-05-15T20:30:39+00:00] DEBUG: no providers supported the resource, falling back to enabled handlers
[2015-05-15T20:30:39+00:00] DEBUG: providers that survived replacement include: []
[2015-05-15T20:30:39+00:00] DEBUG: dynamic provider resolver FAILED to resolve a provider

Is there any reason why it is not finding the line and reporting it as "up to date"?

"#{node[" is completeing the quote on your recipe compile
always use node['single_quotes']
-s

That was not the issue.  It compiled correctly both ways and still is not detecting the "line" portion correctly.  It finds the "pattern" just fine the first time and replaces it correctly.  On the second converge it fails to recognize that the "line" is already in the file.
Could the editor be returning some strange characters?  I'm using this on a SmartOS machine.

There may be a bug in the regex matching library
On Fri, May 15, 2015 at 5:52 PM, Jared Everett<EMAIL_ADDRESS>wrote:

That was not the issue. It compiled correctly both ways and still is not
detecting the "line" portion correctly. It finds the "pattern" just fine
the first time and replaces it correctly. On the second converge it fails
to recognize that the "line" is already in the file.
Could the editor be returning some strange characters? I'm using this on a
SmartOS machine.
—
Reply to this email directly or view it on GitHub
https://github.com/someara/line-cookbook/issues/28#issuecomment-102533382
.

Well then I'm confused.  Below are the two cases I'm using in the same recipe.  The first resource fails but the second one works:
# # BUG: There is something wrong with matching here.
replace_or_add "sso crowd auth 1" do
  path "#{node["confluence"]["install_dir"]}/confluence/confluence/WEB-INF/classes/seraph-config.xml"
  pattern '<!-- <authenticator class="com.atlassian.confluence.user.ConfluenceCrowdSSOAuthenticator"/> -->'
  line '<authenticator class="com.atlassian.confluence.user.ConfluenceCrowdSSOAuthenticator"/>'
  notifies :restart, "service[#{service_name}]", :delayed
end

replace_or_add "sso crowd auth 2" do
  path "#{node["confluence"]["install_dir"]}/confluence/confluence/WEB-INF/classes/seraph-config.xml"
  pattern '<authenticator class="com.atlassian.confluence.user.ConfluenceAuthenticator"/>'
  line '<!-- <authenticator class="com.atlassian.confluence.user.ConfluenceAuthenticator"/> -->'
  notifies :restart, "service[#{service_name}]", :delayed
end

Thanks for the help

@someara So i found the issue and it is a change that happened between 0.5.1 and 0.5.2 here

@someara So looks like it is just a logic error on my side.  My pattern was too strict.  When your code compared the 'line' with the 'regex' it wouldn't match.  The second example works because the 'line' can be found in the 'pattern' unlike the first example.  The first example is also trying to match the <!-- and --> which won't work.  That then makes it not found and the code will then append it to the file.  Sorry to bother you with this issue.

@someara I just opened PR #29 which might offer a solution for this issue.  I would guess this mistake is not isolated so the fix I propose will catch it and print a couple of warnings to notify the user to adjust their pattern.  Any thoughts would be good.  This provides a small safety net and backwards compatibly to those using line 0.5.1 or earlier.

@somera and @hulu1522 We ran into the behavior of line adding the same line repeatedly to the end of the file. Why should the pattern of the line to be replaced match the line being added?  I don't think that should be required.  As originally coded the pattern has to match the original line and the replacement line, that seems too restrictive.
replace_or_add
pattern 'a'
line  'b'
I'd expect a line matching 'a' to be replaced by line 'b' , even though 'b' doesn't match the pattern.
Hulu1522, your fix looks like it will make line behave more like what I'd expect.  I don't see any reason for the info log messages though.  We had a similar PR in the works.
Thanks

@MarkGibbons I agree with you.  I don't even care if my PR is merged as long as a fix is pushed.  I just wanted to offer a solution.  Let us know when your PR is ready.  Thanks.

@MarkGibbons I removed the comments as suggested in PR #29

:+1:
PR #30

I think this issue has been resolved.  Thanks.  :)

Yes, PR #30 fixed the problem.


Is this published?

The jar on Maven is almost empty.
$ wget http://central.maven.org/maven2/me/tomassetti/java-symbol-solver-logic/0.1.3/java-symbol-solver-logic-0.1.3.jar
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0  1195    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  6991  100  6991    0     0   152k      0 --:--:-- --:--:-- --:--:--  152k
$ unzip -l java-symbol-solver-logic-0.1.3.jar
Archive:  java-symbol-solver-logic-0.1.3.jar
  Length      Date    Time    Name
---------  ---------- -----   ----
        0  2015-11-24 21:41   META-INF/
       25  2015-11-24 18:57   META-INF/MANIFEST.MF
        0  2015-11-24 18:57   me/
        0  2015-11-24 18:57   me/tomassetti/
        0  2015-11-24 18:57   me/tomassetti/symbolsolver/
        0  2015-11-24 21:41   me/tomassetti/symbolsolver/logic/
     4631  2015-11-24 21:41   me/tomassetti/symbolsolver/logic/GenericTypeInferenceLogic.class
     3153  2015-11-24 21:41   me/tomassetti/symbolsolver/logic/FunctionalInterfaceLogic.class
     1957  2015-11-24 21:41   me/tomassetti/symbolsolver/logic/AbstractTypeDeclaration.class
     3913  2015-11-24 21:41   me/tomassetti/symbolsolver/logic/AbstractClassDeclaration.class
---------                     -------
    13679                     10 files

ok then, perhaps it is time to do a proper release. Thanks for reporting this

Of course pushing things to Maven Central is 1 million times more complicate that it should be. Opening a ticket here: https://github.com/Codearte/gradle-nexus-staging-plugin/issues/20

Deploying from Gradle anywhere is complicated. Having it done publishing to Maven Central is a piece of cake (with gradle-nexus-staging-plugin of course ;) ).
I put some suggestions in the corresponding issue.

Version 0.3.0 has been released


[Bug Report][Google] Not works in Safari

Describe the bug
Always show "Waiting for ChatGPT response..."
Desktop or Mobile (please complete the following information):

OS: macOS 13 Ventura
Browser: Safari
Userscript Manager: Userscipts
Userscript Version: 0.3.6

Same bug with Tampermonkey


Potential regression in test_download_throughput[boto3]

The test is very noisy, so it's hard to tell, but there might be a regression:

Action: Keep monitoring over the next week.
cc @jrbourbeau, who will monitor CI, and @crusaderky who, added this test.

This looks like it may be a genuine infrastructure issue.
Most tests have slown down for a few days and may be back to normal now:

The boto3 and pandas+boto3 tests are there as alternatives to s3fs, to isolate actual network performance from a regression in pandas and dask, which are both based on s3fs.
I can't quite explain while panda+boto3 is unperturbed (it's literally local CPU-only work on top of boto3). @ntabris and I observed in the past that different workers can have wildly different download throughputs from s3. Can't find the conversation right now. [dask] is the only one of the bunch that uses 5 workers in parallel, and it's always been much more stable.

I cannot find our previous conversation. I suspect it was a video call.
I have no plans to spend time on this personally.

It looks like this issue has persisted:


add back support for Python 3.9, again...

Since there does not seem to have been a very concrete reason to remove support for Python 3.9, except for the fact that all major packages dropped it this year, we are adding it back to make life easier for some people that still depend on 3.9.

[x] Tests added and passed if fixing a bug or adding a new feature
[x] All code checks from pre-commit passed
[x] Added an entry in the CHANGELOG.md file

Everything seems to work!
Test coverage is off for some reason because Codecov does not use the latest commit from main to check diff. Anyway, not an problem here. Hence, merging now.


As an author, I want to befriend remote authors

Add a befriend button that submits the post's or comment's author id to a befriend route.


Unable to display over raylib window.

Hi,
I have created a gui menu for raspberry pi 3 using raylib based on this example. I want to display some video over it. I am running  mpv which is built using this guide. I ran mpv with flag  --ontop-level=1. But mpv keeps running in the background.
Could you guide me ?
Thanks & Regards

Sorry @superuser789, no idea how mpv works.


'react-scripts start' does not work on linux (WSL)

Describe the bug
On linux (WSL) npm run start fails with the following error
spawn powershell.exe ENOENT
Not sure why its trying to spawn powershell on Linux but this seem to have been introduced from version 3.0.0 of react-scripts. The workaround is to downgrade react-scripts to 2.1.8
This is reproducible on a fresh install using latest npm version 6.14.8 and latest nodejs verison 14.10.1 (also reproducible on 10.x)
Did you try recovering your dependencies?
Reproducible on a fresh install so unlikely its related to corrupt dependencies.
Environment
System:
    OS: Linux 4.19 Ubuntu 20.04.1 LTS (Focal Fossa)
    CPU: (8) x64 Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
  Binaries:
    Node: 14.10.1 - /usr/bin/node
    Yarn: Not Found
    npm: 6.14.8 - /usr/bin/npm
  Browsers:
    Chrome: Not Found
    Firefox: Not Found
  npmPackages:
    react: ^16.13.1 => 16.13.1
    react-dom: ^16.13.1 => 16.13.1
    react-scripts: 2.1.8 => 2.1.8
  npmGlobalPackages:
    create-react-app: Not Found

Steps to reproduce

npx create-react-app hello-world
cd hello-world
npm run start

Note: This is reproducible at least on Linux (WSL - Ubuntu), it maybe reproducible on Linux generally but I have not tested.
Expected behavior
Compiled successfully!

You can now view hello-world in the browser.

  Local:            http://localhost:3000/
  On Your Network:  http://<IP_ADDRESS>:3000/

Note that the development build is not optimized.
To create a production build, use npm run build.

Actual behavior
Starting the development server...

events.js:291
      throw er; // Unhandled 'error' event
      ^

Error: spawn powershell.exe ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:268:19)
    at onErrorNT (internal/child_process.js:464:16)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)
Emitted 'error' event on ChildProcess instance at:
    at Process.ChildProcess._handle.onexit (internal/child_process.js:274:12)
    at onErrorNT (internal/child_process.js:464:16)
    at processTicksAndRejections (internal/process/task_queues.js:80:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn powershell.exe',
  path: 'powershell.exe',
  spawnargs: [
    '-NoProfile',
    '-NonInteractive',
    '–ExecutionPolicy',
    'Bypass',
    '-EncodedCommand',
    'UwB0AGEAcgB0ACAAIgBgACIAaAB0AHQAcAA6AC8ALwBsAG8AYwBhAGwAaABvAHMAdAA6ADMAMAAwADAAYAAiACIA'
  ]
}

Reproducible demo
This can be reproduced on a newly created project so demo project is not relevant.

Couldn't reproduce it on WSL
Environment Info:

  current version of create-react-app: 3.4.1
  running from /home/kds/.config/yarn/global/node_modules/create-react-app

 System:
    OS: Linux 4.19 Ubuntu 20.04.1 LTS (Focal Fossa)
    CPU: (4) x64 Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz
  Binaries:
    Node: 12.18.4 - /usr/bin/node
    Yarn: 1.22.5 - /usr/bin/yarn
    npm: 6.14.6 - /usr/bin/npm
  Browsers:
    Chrome: Not Found
    Firefox: Not Found
  npmPackages:
    react: ^16.13.1 => 16.13.1
    react-dom: ^16.13.1 => 16.13.1
    react-scripts: 3.4.3 => 3.4.3
  npmGlobalPackages:
    create-react-app: Not Found

Couldn't reproduce it on WSL
Environment Info:

  current version of create-react-app: 3.4.1
  running from /home/kds/.config/yarn/global/node_modules/create-react-app

 System:
    OS: Linux 4.19 Ubuntu 20.04.1 LTS (Focal Fossa)
    CPU: (4) x64 Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz
  Binaries:
    Node: 12.18.4 - /usr/bin/node
    Yarn: 1.22.5 - /usr/bin/yarn
    npm: 6.14.6 - /usr/bin/npm
  Browsers:
    Chrome: Not Found
    Firefox: Not Found
  npmPackages:
    react: ^16.13.1 => 16.13.1
    react-dom: ^16.13.1 => 16.13.1
    react-scripts: 3.4.3 => 3.4.3
  npmGlobalPackages:
    create-react-app: Not Found

So it appears it only happens when you have windows path disabled in wsl.config via the following option:
[interop] appendWindowsPath = false
It makes sense since powershell is available on path when this option is not disabled, but don't think react-scripts should be relying on powershell being available on Ubuntu.

Have same issue on WSL2 with newly created app and<EMAIL_ADDRESS>

I was able to bandaid this by symlinking /c to /mnt/c

I was able to bandaid this by symlinking /c to /mnt/c

I was also able to fix the problem this way, for anybody looking for the appropriate command:
sudo ln -s /mnt/c /c

Can you try the latest release and see if this has improved? If not please open a new issue.

I was able to bandaid this by symlinking /c to /mnt/c

I was also able to fix the problem this way, for anybody looking for the appropriate command:
sudo ln -s /mnt/c /c

Thank you for this fix. I have been struggling with getting my node project to run on WLS and happened across this entire thread.
Added the symlink solved my problem.


Multi-character prefix causes inconsistent help pages

A single character prefix will display normally (no space between prefix and command as below)

Whereas a multi-character prefix will make help pages have a space between the command and prefix (as below)

Please join the Discord Server and ask in the corresponding channel.


Graphql?

Hey.
On VUE there is no admin which can work with graphql api.
Maybe it would be a good decision to add support?

Hi, thank you very much for this suggestion! It forced me to get acquainted with the GraphQL specification and to check if stable backend libraries supporting this language are available.
GraphQL will solve my overfetching problems and reduce the amount of code in my APIs, so I will definitely add GraphQL support to the project.
If Vue CRUD with GraphQL support would be useful for you and you have an idea how to add this support, I will be grateful for contributing to the project.
I'll try to take care of it next week.

Glad you liked it.
In my opinion, GraphQL is becoming a standard in implementing APIs and for managing data more and more requests.
I recommend first to get acquainted with the project, As the most functional of the implementations of admin panels to GraphQL:
https://github.com/marmelab/react-admin and https://github.com/zifnab87/ra-component-factory
What questions arise immediately when you connect the admin panel to api?

Users
Roles
Access rights
Of course it should take on the API.
Now the project https://github.com/hasura/graphql-engine becomes popular.

It develops very quickly and does not require manual writing of schemas.
I, as a person who can raise this all, but is difficult with programming, there is a problem with the description of react-admin....
Api has this feature:
If you "set" a tool (for example https://insomnia.rest/) on an existing point, then it can read the entire structure and what this point can provide.
My "idea" is to use this feature, the admin interface tool could make the primary configuration:

Create a list of sections (entities)
Subtract fields in these entities
Build the skeleton of the configuration file based on this information
Give the ability to customize the visibility of fields in different modes: listing, editing, adding
enable or disable options for the section: import, export, filtering, and so on.

If you take such an implementation, and take the functionality of Hasurа (but optional), where the guys are very responsive, then this product will be Bomb.

@szczepanmasny instead of implementing in addition to VueResource, Apollo or another request client, I would rather leave the choice to the developer.
For example in the refreshList function:
      Vue.http.get(url).then((response) => {
        const items = response.body
        selectItems = items.map((item) => {

I would use:
        const items = this.customGetItems();
        selectItems = items.map((item) => {

The developer could give the function pointer while creating the Crud component.


Different default priors for HSGP TVPs

I think some of the TVP fits in the TVP notebook can be improved by using different priors on the GP.
Basically, I'd propose to:

Use the PC prior as the default prior for a GP TVP.
Allow the user to overwrite the particular settings of that PC prior.
Allow the user to override the PC prior with a more informative Inverse Gamma prior where they choose mu and sigma or the upper and lower tail probabilities and mass, a la pm.find_constrained_prior.
Use this function to set m and c to match the prior given to the lengthscale.  This will require assuming how far into the future the user wants to make predictions.  If the user wants reliable predictions further into the future, they will need to specify the number of days they need.

The main idea is to use the PC prior for the GP scale (eta) and lengthscale (ls) as the default prior.  I think this could potentially be done using the data and without any user input.  The PC prior is derived as joint prior.  It works out to be an Exponential on eta and a Frechet or inverse Weibull on the lengthscale.
PC priors are not uninformative, so the user potentially needs to set two tail probabilities:

For the scale eta: $p(\eta > U) = \alpha$.  User must choose $U$ and $\alpha$.` eta is just like a standard deviation, so some fraction of the overall standard deviation of the data could be used here.
For the lengthscale ls: $p(\ell < L) = \alpha$. User must choose $L$ and $\alpha$.  If the data is daily, is it reasonable to not measure variation on a scale of less than one week?  If so, we could automatically choose L = 7 and $\alpha=0.01$.  For daily data though, there must be a hard cutoff at L = 1, the resolution of the data.

Then, if the user has more prior knowledge about the lengthscale, the InverseGamma prior becomes a good choice.
What do people think about setting sensible defaults for the scale and the lengthscale using just the data, or should the user be forced to make a choice?  Any guidance on the implementation would be greatly appreciated.

This is awesome! Our users are definitively not experts in GPs; having suitable default priors is key 🙏! I'll take a look into the PR this week!
Thanks for bringing your expertise to the package 🙌

Sure thanks @juanitorduz, the PR is quite bad, so forgive me on that.  In my mind the first step is, does this proposal sound good?  and then step 2 is how to implement it.  The PR, mostly the notebook, is more to demonstrate that this works alright.
Also tagging @ulfaslak since this got kickstarted by a discussion we had.

@bwengals I really like the proposal, and from my side, it is a key addition to the model! I especially like how the out-of-sample -prediction looks in the notebook. 💪
I suggest we work on step (2). One thing we need to keep in mind is what the default parameters should be when the optimization step in the find-constrained-prior fails. We can have a simple heuristic.
Please let me know how we can support you (besides the reviews) to work on the PR.
@wd60622 @ulfaslak any other thoughts from your side?


New feature for settings: Renew certificates

Older WebOS TVs have an expired root certificate for self signed Let'sEncrypt websites.
It would be nice if you could integrate this as a new feature switch to homebrew settings.
(A small change is needed as for now the bash script interferes with update blocking feature of homebrew).
Thx

We are planning on making a dedicated app for that. I already cleaned up a script I used some time before, you can check that - it works pretty much the same way and shouldn't break existing webosbrew customizations:
https://github.com/webosbrew/apps-repo/issues/29#issuecomment-1003778789

Ok, closing my issue then :)


chore: Release v1.9.16

Description
PR for Release v1.9.16

/ok-to-test sha=67a8d3b

/ok-to-test sha=35b1614


NVS

Have NVS store data like this
{ "items" :
[{"name": "huy"},
{"age": 15}]
}

Okay, congratulations! What is your issue precisely?

you mean it can store. Pls show me how to store this

No, NVS is not designed to store structured data. It is a flat key-value storage. You may construct JSON out of this data and store it in FATFS filesystem (see storage/wear_levelling example).

key-value one by one, not key- (key- value), right?

You can either do it one-by-one, or "flatten" the JSON and treat the whole thing like a single unparsed string / blob and use the nvs apis for those.

thanks you


Zeroes in Evaluation Result

Was trying to use only nuscenes radar data with features x, y, z, rcs and speed, where speed = sqrt(vx_comp2 + vy_comp2). Train took approximately 4.5 hour (0.5 hour for each 5865 step). Result was all zeroes not even close to zeros, is this normal and adequate?

@fkavache How did you solve this issue?

@fkavache How did you solve this issue?

Hi, I am facing the same problem. Have you solved this?

@darshb34 @chyohoo
I don't remember :D


Extension which consumes messages

Currently chime listens event bus to consumer messages to.
This may be provided with extensions. In order to consumer messages from another sources.

done with extensions


Errors as string instead of Array

Is there anyway to get errors as stings instead of as an array?
So instead of:
email: [
'Error one',
'Error two'
]

I want:
email: 'Error one'

No, you can do this yourself easily by mapping it to the first value or you can use another output format: http://validatejs.org/#validate-error-formatting


Dont cache myip

We seem to be caching myip by default from what I can tell, which is probably not what we want almost ever, because using that command you're explicitly looking to see what your current IP is, which may have changed.

You are right ! It is confusing because I start and stop a VPN and used ipinfo myip to check the connection..
My previous command was curl -Ss -w '\n' https://ipinfo.io?token=xxxxxxxx and I expected that ipinfo myip gives me the same result, which is NOT the case.

Works fine for me, it's not caching myip anymore. It was fixed in #114. I think we should release the new version as the last release 2.8.1 was on May 23 and the PR was merged on Jul 20.


[feature] Use relative paths in project file

Paths in the files section of the project file (.jadx) are currently absolute paths. As a result paths become invalid when the project folder is moved to a new location. Using relative paths (if a file is in the same folder as the project file or a subfolder thereof) would resolve this.

A very good idea. I prepared the necessary changes.

Fixed in PR #1313


The great partition between MMS and Model Export -- Making Model Expo…

…rt tool independent of MMS
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Closing this PR.
Will raise a new one without moving parts of the service files out of MMS.


feat: throw error on invalid render mode :technologist:

Description
I changed the UserWarning thrown by VideoRecorder into a ValueError that gets thrown if render_mode is an invalid value. The exception is mirrored inside the constructor of RecordVideo so that it fails as soon as possible.
Motivation
Right now, when you wrap an env in a RecordVideo, the code throws only an user warning at the end of the training when it tries to save a video but render_mode is set to None, or in general to any other value except rgb_array and rgb_array_list.
It would be nice to check the render mode early, ideally inside the RecordVideo constructor, so that the training doesn't have to be restarted in case the parameter was accidentally left unspecified.

Before
After

env = gym.make(env_name)env = RecordVideo(env, directory)train(model, env)...# throws user warning here, without recording# you now have to start from scratch
env = gym.make(env_name)env = RecordVideo(env, directory) # will throw exception 🚫

env = gym.make(env_name, render_mode="rgb_array")env = RecordVideo(env, directory)  # will continue execution ✅

Fixes #560
Type of change

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

Checklist:

[x] I have run the pre-commit checks with pre-commit run --all-files (see CONTRIBUTING.md instructions to set it up)
[x] 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

I focused on keeping all tests in test_record_video.py green, but I didn’t add new ones. Let me know if I should cover my changes with extra tests.

While I agree with the idea that raising an error is more helpful when a warning a large number of times.
I'm uncertain if we should be limiting the possible render modes that can be used with RecordVideo
For example, MuJoCo has a depth_array render mode that is uncommon but to my knowledge should be compatible with RecordVideo.
I see three possible solutions

Keep the code as it is
Raise an error only when the render_mode is None, as this is the most common case when an issue will occur
Add a parameter confirm_uncommon_render_mode that allows uncommon render modes to be used but unless oped-in then an error will occur

Personally, I think the second option is the best one

I would go with 2 but if you agree I would also add the check for the other known and documented render modes, like this:
if not render_mode or render_mode is in ["human", "ansi", "ansi_list"]:
    raise Exception

since we know for sure they cannot be rendered.
Anything else (["rgb_array", "rgb_array_list", whatever MuJoCo does]) is fair game.

Looking at the new experiment RecordVideoV0, I would follow what it does - https://github.com/Farama-Foundation/Gymnasium/blob/c6bf140018593331b8fe733db528d0e40ab8ef7a/gymnasium/experimental/wrappers/rendering.py#L144C9-L144C9

I tried to make it as close as possible to the experimental RecordVideoV0.