Support heapless environments (no_std without alloc)

This is a big change that allows us to run the library without a heap (of course feature gated).
Some trade-offs that have been made:

I changed Id from using a pair of u32 to using a single u64.  This removes the need to re-use IDs.  Conceivably we could overflow u64 but this shouldn't happen until the death of the universe.
To get the current crate no_std + alloc behavior, you need to activate the alloc feature. I guess this is a breaking change if someone was relying on default-features = false in their Cargo.toml...
The public API no longer contains any allocations like Vec or Box, as a result measure functions can no longer return errors, and you need to use unboxed closures.  If there is a need it should be easy to add back boxed closures.
For the heapless mode, a cap had to be put on the number of elements supported.  The max number of nodes is 256 and only vecs up to size 8 are supported.  This can easily be controlled through the sys module.  One big limiting factor is that some algorithms use Vec<Vec<...>> which for heapless mode allocates 8*8=64 memory cells.  For non-heapless mode, we still support an indefinite number of nodes/elements.

First of all, super thanks for this. Looks cool and was def a lot of work. Some comments below but i'm optimistic we can merge this. My main concern is around the iOS and Android crates which need to be updated. They currently build against published stretch version and not local version which is why the CI build is passing.
Let me know if I can help with those platforms in any way.

I changed Id from using a pair of u32 to using a single u64. This removes the need to re-use IDs. Conceivably we could overflow u64 but this shouldn't happen until the death of the universe.

This sounds like a good change. 100% ok with this.

To get the current crate no_std + alloc behavior, you need to activate the alloc feature. I guess this is a breaking change if someone was relying on default-features = false in their Cargo.toml

I'm OK with this, make a note of it in the documentation/readme? We are pre 1.0 for exactly this reason. Until more large-scale usage of the library is implemented we fully expect things like this to change.

The public API no longer contains any allocations like Vec or Box, as a result measure functions can no longer return errors, and you need to use unboxed closures. If there is a need it should be easy to add back boxed closures.

This was mostly used to make interop with Swift and Kotlin easier (possible?). Because the currently iOS and Android crates rely on published stretch version as apposed to local version (I have been meaning to make this change) this breaking change is not reflected in the CircleCI runs for those projects.

For the heapless mode, a cap had to be put on the number of elements supported.

Can we make this a feature flag in cargo.toml? Or in some other way make it user-definable without forking the library?

@emilsjolander thanks for the feedback, I also noticed that it's very easy to hit the limits of the stack-allocated buffers in algo.rs right now, so first I want to find a way to fix that, and then I will make sure that the Android and iOS builds work.

(And I will also split the PR into commits that changes the prod code vs test and bench code because I guess it becomes hard to review now)

Thanks! That would be helpful indeed

I'm now happy with the stack usage of the algorithm.  With the latest changes, and when running the basic example, the functions using the most stack space are:
0x0000000000000e80      344     main
0x0000000000025950      360     stretch::node::Stretch::new_node::hec1479ab44d2bc8e
0x0000000000001860      392     backtrace::print::BacktraceFrameFmt::print_raw::h4fb9cbf291fbf68a
0x0000000000022df0      408     stretch::forest::Forest::new_node::h47548da92cd23f9f
0x0000000000014a50      520     std::sys_common::backtrace::output_filename::h20848066042c7fe2
0x0000000000000370      552     basic::main::h1ca31bbb6fe9aeaf
0x000000000000d780      632     <rustc_demangle::v0::Ident as core::fmt::Display>::fmt::hc54ce657d4c948fb
0x000000000001bd60      888     stretch::algo::<impl stretch::forest::Forest>::compute_internal::h2dfe177d93cd7e9d
0x0000000000008990      1624    core::fmt::float::float_to_decimal_common_shortest::h63c768b484806025
0x000000000000a9f0      2008    core::fmt::float::float_to_decimal_common_exact::hbbd14c96ff317a43

Previously, stretch::algo was using way more.  I will now start breaking out the changes into nicer commits and maybe separate PRs.

@emilsjolander I'm now happy with the core part of the library (well, as you said we can also add support for feature-controlled array sizes, but I'd want to explore that in a separate PR)
I'll try to figure out the bits for other platforms, feel free to provide any help/pointers if you can

@dflemstr Let me know what you think the PR is in a good state to review. excited 🤩

@emilsjolander I think we should be good to go now, I tried to separate out the test and benchmark changes into separate commits, but I'm not sure if GitHub has a good UX for reviewing while ignoring only those changes :(

@emilsjolander bump!

Hey @dflemstr This looks great and I'm happy to merge :) Sorry for the long delay, we were in the middle of shipping a couple big new product updates and later this whole virus thing started happening. I expect to be a lot more responsive going forward.


Add min validator commission

After the passing of proposal #14, we need to update our Cosmos SDK fork to support min validator commissions properly.
Since this feature is planned to go live with Cosmos v0.46, I propose we wait until that version is out before implementing it.

Closed by upgrading to Cosmos v0.47.x (b65867ccfb20ecff9521e0a1da1819066103317f)


Adds BenchmarkDotNet.Artifacts to VisualStudio.gitignore

Reasons for making this change:
BenchmarkDotNet is a benchmarking library supported by the .NET foundation. It became the de facto benchmarking tool in the .net ecosystem and its output is embedded in project websites, blog posts etc.
However, this output pollutes the git repository, since the library generates it directly into the project's folder. This folder contains benchmark results that are not source code and are not considered essential (subsequent runs overwrite existing artifacts without any prompt.)
Sample BenchmarkDotNet output:

Links to documentation supporting these rule changes:
http://benchmarkdotnet.org/Configs/Exporters.htm

An exporter allows you to export results of your benchmark in different formats. By default, files with results will be located in .\BenchmarkDotNet.Artifacts\results directory. Default exporters are: csv, html and markdown. Here is list of all available exporters:

@AmadeusW thanks!


logo_feat_list= (0,) -> failing to test with shot.png

Hey there,
I am trying to test the model on a single example.
I provided the url of the phishing website in the html.txt
and a screenshot in shot.png.
However I get this error when testing with the screenshot :
(python phishpedia.py --folder datasets/test_sites)
File ".../Phishpedia/logo_matching.py", line 179, in pred_brand
sim_list = logo_feat_list @ img_feat.T  # take dot product for every pair of embeddings (Cosine Similarity)
ValueError: matmul: Input operand 1 has a mismatch in its core dimension 0, with gufunc signature (n?,k),(k,m?)->(n?,m?) (size 2048 is different from 0)
I printed the logo_feat_list and its (0,).
I am not sure what I am missing there, I already fixed a lot of issues to build the project but this is something I don't really know what to do.
Thanks for the help

Hi，
you need to move everything under expand_targetlist/expand_targetlist to expand_targetlist/, such that there is no nested directories.

I did as you said:
models/expand_targetlist/expand_targetlist/*
=>
models/expand_targetlist/*
The tree command (-d) displays this:
models
└── expand_targetlist
├── 1&1 Ionos
├── Absa Group
.....
But I still have the same issues:
Traceback (most recent call last):
  File "phishpedia.py", line 175, in <module>
    logo_recog_time, logo_match_time = phishpedia_cls.test_orig_phishpedia(url, screenshot_path, html_path)
  File "phishpedia.py", line 95, in test_orig_phishpedia
    pred_target, matched_domain, matched_coord, siamese_conf = check_domain_brand_inconsistency(
  File "/home/clovinux/Desktop/ing3/pfee/2024-pfe-phishing/backend_ai/Phishpedia/logo_matching.py", line 38, in check_domain_brand_inconsistency
    matched_target, matched_domain, this_conf = pred_brand(model, domain_map,
  File "/home/clovinux/Desktop/ing3/pfee/2024-pfe-phishing/backend_ai/Phishpedia/logo_matching.py", line 179, in pred_brand
    sim_list = logo_feat_list @ img_feat.T  # take dot product for every pair of embeddings (Cosine Similarity)
ValueError: matmul: Input operand 1 has a mismatch in its core dimension 0, with gufunc signature (n?,k),(k,m?)->(n?,m?) (size 2048 is different from 0)

Okay, this fixed the issue.
The problem was that you need to delete LOGO_FEATS.npy and LOGO_FILES.npy to "reload" properly.


Output of --pretty=raw misses date of annotated tags

As you can see in the issue template, this repository issue tracker should only be used to report problems found on the git-scm website (https://git-scm.com/).
Git specific issues should be raised with the community (https://git-scm.com/community).


fix(tokens): Fixing token sends

:tada: This PR is included in version 1.9.10 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Refactor debugoverlay.cpp (fix smart pistol lines)

closes https://github.com/R2Northstar/NorthstarMods/issues/689
This code is probably bad idk dude this is weird stuff. Would be cool to get someone better at cpp than me to review this

Re-requesting testing due to large code changes

Technically missing proper code review but given that code was originally written by @F1F7Y and adapted by @ASpoonPlaysGames I think it should be fine ^^

Technically missing proper code review but given that code was originally written by @F1F7Y and adapted by @ASpoonPlaysGames I think it should be fine ^^

???

:clueless:


DPM support

I'm working on a package manager, (currently called DPM, might change), I create a pull request to add dpm support for jsondataobjects - it just adds the a dspec file which defines what goes in the package.
Can I ask that you also add "dpmpackage" as a topic to the repo (manage topics under the repo name). That will make it possible to find it when searching for dpm packages.
FWIW, I'm using jsondataobjects in DPM itself.

I am maintaining a fork for the purposes of DPM support so closing this.


Fixes bad System.XML reference

This was causing a compile failure on Linux because Linux has a case sensitive file system, and it also made compiler warnings in my project using yours.

Thanks for the PR!


Bump Dependencies #1209992471

Bumps dependencies for product-is. Link : https://github.com/wso2/product-is/actions/runs/1209992471

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.jenkins-is-staging seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


pkg/trace/stats: support measured span flag for stats computation

What does this PR do?
Adds support for a _dd.measured flag. This flag can be used to trigger metrics and stats calculations for any span.
Note:
I did not change some of the places where only top-level spans are considered. E.g.,
https://github.com/DataDog/datadog-agent/blob/1c76b8381a195a0b0f629011a6225e936fe1d37a/pkg/trace/stats/statsraw.go#L224
https://github.com/DataDog/datadog-agent/blob/1c76b8381a195a0b0f629011a6225e936fe1d37a/pkg/trace/stats/statsraw.go#L265
I have also left the legacy APM event extractor untouched, so it will continue to only process top-level spans:
https://github.com/DataDog/datadog-agent/blob/1c76b8381a195a0b0f629011a6225e936fe1d37a/pkg/trace/event/extractor_legacy.go#L38
Motivation
To allow more spans than just top-level ones to be included for measurement.

Forgot to say: you'll have to use reno to create the release notes. They need to be prefixed with APM :, something like:
---
features:
    - |
      APM: Add support for computing statistics on user-selected spans.


Azure VPN Config updates.

[Enter feedback here]
Azure VPN with Intune config deployment works only once. If you deploy a config to the client it works. If you change the XML and upload in the same config or in a new config to the same device the config never gets updated. It needs a manual removal of the VPN connection, removal of the Azure VPN client and a reinstall of the Azure VPN client to get it to work.
I think this is a huge bug in the system and should be fixed very quickly.
Thank you.
With kind regards
Stefan Peters

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

ID: d2c3a64a-0c1e-64a6-a19d-e3a4e341e990
Version Independent ID: bdc800af-32d9-3ec9-d18e-41dad26a9446
Content: Create an Intune profile for Azure VPN clients - Azure VPN Gateway
Content Source: articles/vpn-gateway/vpn-profile-intune.md
Service: vpn-gateway
GitHub Login: @cherylmc
Microsoft Alias: cherylmc

Thanks for the feedback! We are currently investigating and will update you shortly.

@anzaman Can you please look into this? Thank you!

Thank you for you dedication to our documentation.
Unfortunately, we have been unable to review this issue in a timely manner. We sincerely apologize for the delayed response. We are closing this issue. If you feel that the problem persists, please respond to this issue with additional information.
Please continue to provide feedback about the documentation. We appreciate your contributions to our community.
#please-close


Translate README, api and faq to Japanese.

I translated redme.md, api.md and faq.md to Japanese.
I added abobe three files with -ja suffix.

Very nice. Thank you for this contribution! Merging your pull request.


feat: web pipeline

Summary:
This changeset implements a number of gradle tasks to provide consistent deployment actions for the validator web application. It should resolve #1371
Expected behavior:
Explain and/or show screenshots for how you expect the pull request to work in your testing (in case other devices exhibit different behavior).
Please make sure these boxes are checked before submitting your pull request - thanks!

[x] Run the unit tests with gradle test to make sure you didn't break anything
[x] Format the title like "feat: [new feature short description]". Title must follow the Conventional Commit Specification(https://www.conventionalcommits.org/en/v1.0.0/).
[x] Linked all relevant issues
[ ] Include screenshot(s) showing how this pull request works and fixes the issue(s)

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

Recreated in #1406


Add the replace_between filter

Description
Add a  filter to allow replacing all the lines between two lines that match a start and end pattern.
Issues Resolved
None, this function has been requested in a couple slack conversations.
Contribution Check List

[ ] All tests pass.
[ ] New functionality includes testing.
[ ] New functionality has been documented in the README if applicable

This change is

thanks for looking things over.

  Generated by :no_entry_sign: Danger

Awesome!


Fixed power function typecasting

This PR fixes an ambiguous overloaded call to the power function in Python tasklets by casting the argument types to a common type.

Fixed with #1583.


Can't include component without .vue

Default aliases.
In component: import MessageLength from '@/views/components/Component'
Uncaught (in promise) TypeError: Failed to fetch dynamically imported module: https://localhost:3000/resources/views/Component`
In vite console:
Unrestricted file system access to "/resources/views/components/Component"
For security concerns, accessing files outside of serving allow list will be restricted by default in the future version of Vite. Refer to https://vitejs.dev/config/#server-fs-allow for more details.

Fixed by adding.vue, which then breaks phpstorm completion :(
Tried adding this to vite config, which fixed the notice but still cant include.
I guess the error is because vite cant tell what kind of file it is?
Using https://github.com/laravel-presets/inertia
server: {
		fs: {
			strict: false,
			allow: ['./']
		}
	}

Hey, this is a Vite-specific intentional "gotcha". This is the same for .jsx files, which must end in .jsx and not .js for instance.
I can't help you with PHPStorm since I use VSCode and Volar, but I'm kind of surprised that giving the full path breaks the completion. Could it be a configuration option somewhere? Do you use the tsconfig.json or did you disable it?

Ahh, my bad.
Managed to get it working with some config overrides, I think the default tsconfig doesn't work for PHPstorm.

Thanks for the help :D

Could you tell me the changes you did to your tsconfig.json? Maybe I can update the default from Laravel Vite.


Allow source to be linked to Github

Currently I disable includeSource, because I don't want the source code visible outside of Github.
It would be awesome to have an option includeSourceGithub which would link to a Github URL.

:+1:

Just a FYI. I'm close to finishing a plugin that provides an enhanced left hand navigation view and it will support a context menu to open code on Github when the appropriate repo details are provided in package.json. I'll post an update here when the plugin is available.

I have published esdoc-plugin-enhanced-navigation which provides a greatly enhanced left-hand navigation grouping by directory / file name / short name / kind and if you use JSPM / SystemJS and esdoc-plugin-jspm then JSPM packages are sorted separately.

I will consider in the below issues.
https://github.com/esdoc/esdoc/issues/344


some errors

hi,
i have this error when i active debug mode
Warning (2): error_log(/tmp/menu.log): failed to open stream: No such file or directory [ROOT\vendor\qobo\cakephp-menu\src\MenuBuilder\MenuItemFactory.php, line 54]
correct this in \src\Template\Layout\adminlte.ctp

@kacedali yup, that was a little leftover in the menu plugin, which we fixed and released yesterday.
Here's the PR - https://github.com/QoboLtd/cakephp-menu/pull/70/files#diff-5820abc1424ca4ffdbab32be07caed06
The fix is in the cakephp-menu v9.2.0.   If you just do composer update in your project, things should work properly again.
Thanks for reporting!
Please close this issue if the problem is resolved for you, or let me know if it still persists.


KOGITO-221: kogito-api - move legacy APIs to internal

Move all most of org.kie.api under kogito-internal and rename/selectively re-add stuff in the public api. We don't want legacy in 1.0
this obviously break the build, but I wanted to have a starting point for discussion. Moving pieces selectively without change doesn't work, I made a few select change to minimize it.
Please review

if it's okay I would merge this, we can always revert this at any time by moving back the files to their original position

I will reopen this in the future, but it's not important for the next release


Update netmodules source

to use master instead of integration/0.26 as that branch has been merged to master

LGTM!


Idea for right click: soften sharp turn

Here we observe an editor has hastily drawn a ~90 degree sharp turn,

It would be great if upon right click, there was a choice to replace it with a more mild two or three node turn or whatever.
Sure we could do it ourselves with a couple of clicks. But it seems a perfect candidate for a standard tool.

@jidanni Hmm neat idea. I'm not sure how often this would be useful but I know I'd personally use it at times. Sort of like how you can "square" full features or individual corners, you could "circularize" individual corners in addition to full features.

In fact I didn't show you the whole picture above.
In the whole picture the previous editor had hastily made a whole subdivision full of these dangerous (for cars) sharp right turns.
(For mountain areas the user merely would keep in mind the existence of real
https://en.wikipedia.org/wiki/Zig_zag_(railway)
before applying the tool, which would usually be safe for roads.)

It could potentially also be useful for more precise drawing of quarter- and semi-circular buildings. I don't have an idea how to specify the arch angle and radius through the user interface, though.

I don't have an idea how to specify the arch angle and radius through the user interface, though.

@DujaOSM I don't think iD should support this level of complexity. However, I've been considering the possibility of a v3 drawing tool that would assist in drawing arcs.


Limiting detected model changes to defined attributes

I was hoping to prevent a log occurring on a model "updating" event if the change only happened to a particular attribute. For example, I have a datetime field in a user model that I don't want to log changes to, and therefore don't want an activitylog entry if the changes only happened to that field.
Defining the $logAttributes property determines what gets stored for a model, but I can't see if any comparison actually happens to see if anything has actually changed.
Is there currently a way to do this?

No, you need to compare old and attributes yourself.

For diff the 2 values, a little shortcode..
collect($changes->get('attributes'))->diff($changes->get('old'))


Hostname not accurate

Hi guys
I'd like to know how GoAccess v1.9.3 get the hostname information as shown in the screenshot?

I'm using GeoLite2-City.mmdb.
Thanks you

Hi @Zabrane
Nice talk with you here.
Perhaps, you may check more carefully at GOAccess Live Demo here, at same panel Vistor Hostnames and IPs .
At one, you can see City, Country and ASN  fields values that are resolved from lookup of Geo database.
But hostname are resolved from DNS lookup, like a host tool in linux.
So, maybe values seems little bit weird but did chosen by domain owner.
You maybe check, and confirm them, by way for any DNS online resolver.
I hope be clean. Feel free for more asks.

@0bi-w6n-K3nobi  Thanks. You are definitely right.

@0bi-w6n-K3nobi Great answer, thanks!


Add 'Sink.exists' API wrapper.

Uses #1596 as a base.

@dhermes rebased after merge of #1596 to logging-api branch.  PTAL

LGTM


fix(options): need to check if back inside work hours

Story
Noticed a bug with the work hours options - if this is running continuously and falls outside of work hours for the first time after it was initialized, it would never restart the poller and notifier properly. This adds a second poller to check if the bot has come back into work hours, and if so, it should start notifications again.
Testing
Run the reminder continuously for a couple days with work hours defined, it should not fail to restart notifications after the first work day.

@Ahmadposten - after this fix, if you want to check out how i've integrated slackbots with your lib, i can send you the source code.


Face Recog-nition practices

Hi,
I would like to know the best way to 1-to-many face recognition ways, and it could be help to the others.
Accuracy increasing & clustering / searching methods

As we know jittering image increasing the accuracy . From your experience is it useful to add more pictures of the same persons and use them to calculate one ID like jitter calculation (mean)?
Or keep them separate and process jitter each of them and use them seperately. ?
What could be the other methods to increase accuracy and decrease false alarms?

We have two different face database : 1 - 10.000 people  and 2 - 100.000 . All ID extracted with jittering image. To search 1-to-many what is the best way :

check all lenght(face_ID_1 - faceID_2)  walk through all faces and take top few which least distance.
Or make a chineese clustering and ask him to make cluster for searched face.

*any other suggestion..

Best
thanks again davis such a great library.
you have lifetime ticket from us for beer/wine/lunch :) if  you pass by .. as a friend.

Hi Davis,

Don't average a bunch of vectors from different images.  A better thing to
do is to use either k-nearest-neighbors or something like a linear SVM if
you want to take advantage of multiple images.
I wouldn't use chinese whispers.

Would appreciate if you could provide guidance/education on why Chinese Whisper should not be used.
I have a similar challenge i.e. doing 1-to-many match.
Regards & thanks
Kapil

@MyraBaba 将所有人人脸特征截入到内存里，然后再用
face_ID_1=xxx;
foreach item in cacheFeatures
lenght(face_ID_1 - item)
花不了几毫秒


Resubscribe on an interval

Hi,
I'm trying to use client.resubscribe() to rerun all subscriptions. However, I keep receiving the error:
TypeError: Cannot read properties of undefined (reading 'resubscribe')
    at Timeout._onTimeout (file:///usr/src/app/publisher.mjs:85:18)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)

Here is my code:
...
const client = new CensusClient(serviceID, 'ps2', {
    streamManager: {
        subscription: subscriptions
    },
});
...

// Configure interval to rerun all subscriptions to the websocket API
setInterval(async function (client) {
    console.log('Rerun all subscriptions.');
    await client.resubscribe(true);
}, 120000);

Can you shed some light as to why this might be happening?
Thanks :)

The functions body will use parameter client instead of the client variable from the root. As you don't inject the client into the function the parameter client will be undefined. Either remove the parameter or pass it to the parameter like:
setInterval(async function (client) {
    console.log('Rerun all subscriptions.');
    await client.resubscribe(true);
}, 120000, client);

Also, I would run the resubscribe functionality every 5 mins or more. The true parameter in the resubscribe method should only be set if you encounter some error. Besides that, it is currently bugged, as I call the unsubscribeAll on the manager, not the stream.

The functions body will use client parameter instead of the client variable from the root. As you don't inject the client into the function the client parameter will be undefined. Either remove the parameter or pass it to the parameter like:
setInterval(async function (client) {
    console.log('Rerun all subscriptions.');
    await client.resubscribe();
}, 120000, client);

Also, I would run the resubscribe functionality every 5 mins or more. The true parameter in the resubscribe method should only be set if you encounter some error. Besides that, it is currently bugged, as I call the unsubscribeAll on the manager, not the stream.

Oh my goodness I forgot to pass the client as the func param! Jesus it's a bad day 😞 😆
Thanks a lot for your help and advice on removing true from resubscribe 😃 👍🏻


generate_tsv silently generates wrong data

Given invalid json such as:
{
  "classes":
  [
    "car",
    "person",
    "other""
  ],
  "parameters":
  [
    {
      "type": "boolean",
      "name": "is_occluded"
    }
  ]
}

generate_tsv.py silently generates invalid tsv file, which leads to empty space in Toloka.

@nmingazov we added simple validation for incoming JSON params. In case it fails an exception is raised

Ok, now it fails correctly, thanks :)


Can we support blog post?

Dear author, thanks for designing such a simple but elegant theme. I'm wondering if you plan to support blogging that jumps to another dedicated page? If so, this would be of tremendous help to us who want to share content on the internet!

Thanks for your interest in my project!
I don't have a plan to make this a blogging theme. However, as this theme is powered by Jekyll, you may always use it to post new articles/pages, like a blog. You may view the instructions on "how to post using Jekyll" here: https://jekyllrb.com/docs/posts/
If you have any further questions, please feel free to contact me.
Best,
Yaoyao


docs: Detail project setup and contributing workflow

This PR aims at facilitating new contributors to join the project by:

explaining how to set up a well-encapsulated virtual environment for development.
providing a step-by-step guide how to contribute to the project

Any feedback is welcome, thanks for reviewing

CI was not running jobs for PR from forks, which is now fixed


Renamed spyglasses are looking incorrectly

When you are changing spyglasses using CIT recoursepacks by changing in .properties both model and texture, and while you use optifine everything works smooth and well but in case of using CIT Resewn spyglass gets inventory item texture as it's model texture.

properties file screenshot

in-game screenshot

that's how it is supposed to be(and it is when you're using optifine). Left item frame - The way it supposed to look in inventory. Right item frame - model that is supposed to be.

Duplicate of #137


Benefits paragraph says that Hybrid Benefit is supported, while limitations part says it is not

[Enter feedback here]
Documentation is contradictory, benefits paragraph says that AHUL is supported while limitation part says it is not
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 98de8b0f-6cc5-8d9f-6329-f1661e3dedb0
Version Independent ID: a6eff3cd-3859-0cc1-c29b-c7ece21f6f6c
Content: Overview of Azure Dedicated Hosts for virtual machines - Azure Virtual Machines
Content Source: articles/virtual-machines/dedicated-hosts.md
Service: virtual-machines
Sub-service: dedicated-hosts
GitHub Login: @cynthn
Microsoft Alias: cynthn

At present, AHB is only supported on ADH for explicitly placed (non autoplaced) VMs. We are working on bringing BYOL to auto placed VMs/VMSS. Let me know if this clarifies your doubt.

We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


Adapt functional interfaces

There are some changes in v1's functional interfaces. For instance,rx.functions.Action0 is now io.reactivex.functions.Action.
Is in the scope of this library to be able to adapt between the two versions?
Here's what a rx.functions.Action0 to io.reactivex.functions.Action adapter would look like:
public static io.reactivex.functions.Action toV2Action(final rx.functions.Action0 action) {
        io.reactivex.internal.functions.ObjectHelper.requireNonNull(action, "action is null");
        return new Action0V1ToActionV2(action);
}

...

final class Action0V1ToActionV2 implements io.reactivex.functions.Action {
  final rx.functions.Action0 action;

  Action0V1ToActionV2(Action0 action) {
    this.action = action;
  }

  @Override public void run() throws Exception {
    action.call();
  }
}

This library adapts between the reactive base types only. Everything else is out of scope.

Cool, is there any value in providing adapters for the functional interfaces as a seperate library? Or am I missing something and this isn't really needed?

With Java 8 or Retrolambda, you can simply convert between the two with the :: operator:
Func1<Integer, Integer> f1 = v -> v + 1;

Function<Integer, Integer> f2 = f1::call;

Ah that's easy enough to do without needing custom adapters.


garden suggestions

How about telling the player how many cookies they'll get from crumbspore/doughshroom/(white) chocoroot/bakeberry/queenbeet/duketater, and how many banked they need to max out the rewards from those in regular frenzy, elder frenzy, and stacked frenzies.

This would be nice for Conjure Baked Goods as well.


[RFC] Enhancements to Range class

Although ranges in Wren are good they could, IMHO, be made better in two respects.
Firstly, there should be a way to specify the step which currently is always one. For example:
for (i in (0..10).by(2)) System.write("%(i), ")
// would print 0, 2, 4, 6, 8, 10

To avoid potential confusion, I think the step should always be positive whether the range is ascending or descending.
Secondly, an occasional bug in my own code is that I'm sometimes surprised (when the start or end point of the range is variable) that the range is iterating in a different direction to what I intended! It would be useful if there were a way to 'lock' a range to always iterate in a particular direction so that it would be empty if the boundary points evaluated to being the wrong way around. So we'd then have something like this:
var a = 0
// ....
for (i in (1..a).asc) System.write("%(i), ")
// no output as 'a' is less than '1' and the range is locked to ascending

for (j in (10..a).by(2).desc) System.write("%(j), ")
// would print 10, 8, 6, 4, 2, 0 as the range would be descending anyway

Incidentally, the proposed method names here (by, asc and desc) are just ones which immediately come to mind - I'm not particularly wedded to any of them.
Now, I know that you can always use a while rather than a for  statement to get around these problems - and I do - though I then sometimes forget to increment the 'control' variable and end up in an infinite loop :)
I've also written library classes which wrap a range and then change the way the iteration works though, as this is  a rather clunky solution, I don't use them much.
Other languages often have built-in (and sometimes rather cryptic)  syntax to deal with steps and iteration direction though I see no need for this in a resolutely object-oriented language such as Wren.  Additional methods would be fine.
As always, I look forward to comments.

Excluding the fact that it can break existing code, I find it not really
elegant mainly because it is some kind of method chaining...

Excluding the fact that it can break existing code, I find it not really
elegant mainly because it is some kind of method chaining...

What's bad with method chaining?

What's bad with method chaining?

@mhermier

Excluding the fact that it can break existing code

How can it do that?
I though that it wasn't recommended to inherit from built-in classes (apart from Sequence) so, even if it works, you shouldn't be doing it anyway.

I find it not really elegant

Well, it's always more elegant to use built-in syntax but, personally, I don't find the use of methods instead unattractive.
But anyway, however it's done, what  about the general  principle of these proposed changes. Do you think they're worthwhile or not?

@mhermier

Excluding the fact that it can break existing code

How can it do that?
I though that it wasn't recommended to inherit from built-in classes (apart from Sequence) so, even if it works, you shouldn't be doing it anyway.

I find it not really elegant

Well, it's always more elegant to use built-in syntax but, personally, I don't find the use of methods instead unattractive.
But anyway, however it's done, what  about the general  principle of these proposed changes. Do you think they're worthwhile or not?

The is nothing wrong with method chaining, the problem is that the lack of a method chaining operator, make the things "ugly".
If we have an operator for method chaining, lets say ; the your example become something like:
var a = 0
// ....
for (i in 1..a;ascending = true) System.write("%(i), ")
// no output as 'a' is less than '1' and the range is locked to ascending

for (j in 10..a;step = 2;ascending = false) System.write("%(j), ")
// would print 10, 8, 6, 4, 2, 0 as the range would be descending anyway

There is an ambiguity of priority that needs to be solved probably with parenthesis but this makes setters/getters all unified and allow to tune the chained object one the go.

The is nothing wrong with method chaining, the problem is that the lack of a method chaining operator, make the things "ugly".
If we have an operator for method chaining, lets say ; the your example become something like:
var a = 0
// ....
for (i in 1..a;ascending = true) System.write("%(i), ")
// no output as 'a' is less than '1' and the range is locked to ascending

for (j in 10..a;step = 2;ascending = false) System.write("%(j), ")
// would print 10, 8, 6, 4, 2, 0 as the range would be descending anyway

There is an ambiguity of priority that needs to be solved probably with parenthesis but this makes setters/getters all unified and allow to tune the chained object one the go.

@PureFox48 I thought the method you added was changing some existing behavior, my bad if you added new names.

@PureFox48 I thought the method you added was changing some existing behavior, my bad if you added new names.

@mhermier
I don't  dislike your idea of using ; as a method chaining operator and it's what I would have suggested myself if we were to change the language syntax rather than just adding extra methods.
However, it's clearly a more far reaching idea and, even if we had it, we'd presumably still need to add new methods to the Range class in the first place.

@mhermier
I don't  dislike your idea of using ; as a method chaining operator and it's what I would have suggested myself if we were to change the language syntax rather than just adding extra methods.
However, it's clearly a more far reaching idea and, even if we had it, we'd presumably still need to add new methods to the Range class in the first place.

I've been thinking some more about the issues raised here (which for me, at least, are a constant thorn in the flesh) and have come up with what I think is a more elegant solution (clearer, less parentheses) than using instance methods.
Suppose instead we give the Range class two constructors:
Range.asc (start, end, step)
Range.desc(start, end, step)

where :
start is the start point of the range (inclusive)
end is the end point of the range (also inclusive)
step is the step value (a positive integer).
Range.asc and Range.desc would always produce ascending or descending ranges, respectively. If start and end were the wrong way around, the constructors would simply return empty ranges.
Although these constructors wouldn't support exclusive ranges explicitly, they are of course easy to simulate by adjusting the end point appropriately.
An instance getter (step) would also be needed to return the step value.
So the earlier examples would now look like this:
for (i in Range.asc(0, 10, 2)) System.write("%(i), ")
// would print 0, 2, 4, 6, 8, 10

var a = 0
// ....
for (i in Range.asc(1, a)) System.write("%(i), ")
// no output as 'a' is less than '1' and the range is locked to ascending

for (j in Range.desc(10, a, 2)) System.write("%(j), ")
// would print 10, 8, 6, 4, 2, 0

System.print((1..6).step) // 1

I did wonder about making the end point exclusive as this would be more consistent with existing APIs such as Random.int and with what some other languages do (c.f. Python). However, arguably inclusive ranges are more intuitive for users particularly for descending ranges.
The present syntax for constructing ranges using the .. and ... operators would be unaffected and would therefore continue to work the same way it always has.

Seems plain boring

It's a good thing :)
It implies that it doesn't take much learning.


images: allow to specify the packages to be not installed

A template may employ IMAGE_INSTALL to install the packages, but
actually not all images really require them. In order to handle this
situation, we have to define CUBE_*_EXTRA_INSTALL in each board-specific
init script to specify the required packages and avoid using IMAGE_INSTALL.
This works well but it is bad for user experience. People knows how to
edit init script to add the necessary layers and use the require directive
to include the required templates because they are part of bitbake syntax,
but people obviously lacks a profound understanding of using
CUBE_*_EXTRA_INSTALL.
In order to resolve this issue, the following actions are made.

introduce CUBE_*_EXTRA_UNINSTALL.
re-use IMAGE_INSTALL in template.
don't use CUBE_*_EXTRA_INSTALL in init script.
use CUBE_*_EXTRA_UNINSTALL in the private place to blacklist the
unnecessary packages for certain image.

Signed-off-by: Lans Zhang<EMAIL_ADDRESS>

This is too much complexity, and in fact, we do not vary the package lists of our named images. If something needs to modify them to this extent, it is a new image and must take a new name.
We also shouldn't be creating new image types very often, so if something is generally useful, or not useful, it should be proposed to be added or removed from the named types.


ztunnel: allow proxy config via configmap

Ztunnel code allows reading proxy config from file. However, the k8s manifests don't actually load this. We should, using a distinct configmap from Istiod's

The ProxyConfig API is not very suitable for ztunnel, should design a new one to work on ztunnel?  It should be static configuration, which can be loaded during ztunnel bootstrap.

It is not ProxyConfig CRD being read but configmap, just like istio configmap read by istiod today. We already have support for reading this in the ztunnel code, just don't expose it in helm

That makes sense


Computational time with own code

Hi, thank you for the awesome work!
For some reasons, I have to re-write your eval.py by myself.
However, if I run the code, it will take 2 seconds just for prediction.
Do you have any idea why is it?
I already checked I enabled GPU.

import os
from data import COCODetection, MEANS, COLORS, COCO_CLASSES
from yolact import Yolact
from utils.augmentations import BaseTransform, FastBaseTransform, Resize
from utils.functions import MovingAverage, ProgressBar
from layers.box_utils import jaccard, center_size
from utils import timer
from utils.functions import SavePath
from layers.output_utils import postprocess, undo_image_transformation
import pycocotools

from data import cfg, set_cfg, set_dataset

import numpy as np
import torch
import torch.backends.cudnn as cudnn
from torch.autograd import Variable
import argparse
import time
import random
import cProfile
import pickle
import json
import os
from pathlib import Path
from collections import OrderedDict
from PIL import Image

import matplotlib.pyplot as plt
import time

set_cfg("yolact_resnet50_config")
with torch.no_grad():
    torch.cuda.set_device(1)
    cudnn.benchmark = True
    cudnn.fastest = True
    torch.set_default_tensor_type('torch.cuda.FloatTensor')
    net = Yolact()
    net.load_weights('./weights/yolact_resnet50_54_800000.pth')
    net.eval()
    net = net.cuda()
print('model loaded...')

#run your code
def execute(rgb_image):
    net.detect.cross_class_nms = True
    net.detect.use_fast_nms = True
    cfg.mask_proto_debug = False
    with torch.no_grad():
        frame = torch.Tensor(rgb_image).cuda().float()
        batch = FastBaseTransform()(frame.unsqueeze(0))
        time_start = time.clock()
        preds = net(batch)
        time_elapsed = (time.clock() - time_start)
        h, w, _ = rgb_image.shape
        t = postprocess(preds, w, h, visualize_lincomb=False, crop_masks=True, score_threshold=0)
        torch.cuda.synchronize()

        classes, scores, boxes, masks = [x[:MAX_MASK_SIZE].cpu().numpy() for x in t]

        print(time_elapsed)

This is because Pytorch uses a dynamic graph, meaning it sets up the graph the first time you call the network (thus the first iteration takes like 2 seconds). Before your test, run net on some blank input to initialize it, then do the timing.
I also recommend testing multiple images and averaging out the results to get a more accurate timing (in our figures, we used an average over 400 images).

I see!
Thank you so much for your advice!

@kemangjaka can you provide the final script for evalution. Thanks

Hi @ryohachiuma  I am getting below error while running the #run your code
def execute(rgb_image): .Please help me to get the inferance .


AdEntry is not destroyed when its Ad is destroyed

To fix: add destroy dependency to belongs_to :ad relationship

Not important enough to fix


[ACS] Default ACS value isn't respected by the delete, show or scale commands

Description
The acs delete, acs show and acs scale commands don't seem to support their --name parameter being defaulted if you set it via az configure -d acs=<foo>. All other commands (e.g. az acs browse,az acs install-cli), support it, so it would be awesome if all of the commands within the acs group provided consistent behavior.

Environment summary
Install Method: How did you install the CLI? (e.g. pip, interactive script, apt-get, Docker, MSI, nightly)
Answer here: nightly
CLI Version: What version of the CLI and modules are installed? (Use az --version)
Answer here: nightly
OS Version: What OS and version are you using?
Answer here: macOS
Shell Type: What shell are you using? (e.g. bash, cmd.exe, Bash on Windows)
Answer here: bash

closing as az acs is deprecating


Readme updates

Fixes # .
Overview
Added Zubair and Breyana as contributors, moved script commands to match order they need to be run in.
Data Model / DB Schema Changes
<N/A if no changes>
Environment / Configuration Changes
<N/A if no changes>
Notes

thanks =D


Replace IDs with classes for all selectors

maybe this issue doesn't make sense anymore due to #1143 ?

Yep, this will be addressed with the update. :thumbsup:


How can i get a json file?

i am trying to use "response.json()", but it raises an error "TypeError: 'coroutine' object is not callable"

Refer to the usage of this file:
https://github.com/ihandmine/aioscpy/blob/main/cegex/httpbin_post.py


add missingness-by-sample filter

I don't believe it's an argument for snpgdsLDpruning(). Should this be included in ld_pruning.R, or be a standalone script?

implemented in sample_qc.R


Fix libstd

Fixes #146.
r? @sunfishcode for the vararg commit.

When testing https://github.com/dropbox/rust-brotli-decompressor it worked perfect.

While simple libstd programs work now, many wont because of unimplemented intrinsics, u128/i128 or SIMD.


Revert "DocuTune: Apply metadata properties for advocate contributors"

Reverts MicrosoftDocs/microsoft-365-community#590

Docs Build status updates of commit f653b37:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error: GitBranchDeletedOrForcePushed] Cannot sync git repo to specified commit because branch revert-590-alexbuckgit/docutune-autopr-20220303-144143-8905516 has been deleted or has been force pushed

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Add link to awesome-kubeflow repo

This would be beneficial to the community and shows off the great Kubeflow ecosystem.

/cc @james-jwu @zijianjoy

/lgtm


Fix repeat track msgId for asyncReceived

Motivation
The consumer repeats track messageID when processing messages，although this does not result in duplicate consumption of messages, because MessageTracker has been de-processed
Modifications
Removes duplicate track messageid logic in notifyPendingReceivedCallback

/pulsarbot run-failure-checks

@saosir Can you create a test case for it?

OK, I will add test cases later

The pr had no activity for 30 days, mark with Stale label.


fall back to old flow if new flow fails

Hotfix for incident itn-2023-00143
Steps taken to test:

On a cluster that was known to be affected by this incident, run ocm backplane cloud console and ocm backplane cloud credentials
See that the isolated flow was attempted, failed, and fell back to the old flow as evidenced by a message printed to the console.
Take a new cluster that should in fact be using the new flow, run ocm backplane cloud console and ocm backplane cloud credentials
See that the isolated flow was attempted and succeeded without falling back to the old flow.

Can you enumerate the steps you took to test this for the reviewers please?

@iamkirkbater added

/approve

Codecov Report

Merging #245 (0a17482) into main (97cbb5d) will decrease coverage by 0.17%.
The diff coverage is 0.00%.

Additional details and impacted files

@@            Coverage Diff             @@
##             main     #245      +/-   ##
==========================================
- Coverage   51.93%   51.76%   -0.17%
==========================================
  Files          51       51
  Lines        3410     3421      +11
==========================================
  Hits         1771     1771
- Misses       1345     1356      +11
  Partials      294      294

Files
Coverage Δ

pkg/awsutil/sts.go
55.26% <ø> (ø)

cmd/ocm-backplane/cloud/console.go
47.01% <0.00%> (-1.45%)
:arrow_down:

cmd/ocm-backplane/cloud/credentials.go
62.50% <0.00%> (-3.40%)
:arrow_down:


Editing utils.py to patch py27 functionality

Can you add a - "2.7" line to the python: section of .travis.yml.  This will run the travis tests using both python versions, to ensure our tagged "last working 2.7" version actually works.

@paulthebaker, @svigeland : I added "2.7" to .travis.yml, but travis seems to be having problems with getargspec. Is that a python3 only package?

The python3 build goes just fine.

Wooohoo! Squash and merge, baby!


Reminder - #1975 [Event Request] Codeunit 7500 Item Attribute Management – InsertBufferedItemAttributeValueMapping

Regarding #1975 from April 2019, there is nothing to see in Insider Build 17.0.14964.0-W1.
Status is "ships-in-future-update"
Will you still integrate it?

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.


Uncaught Error: Cannot call function 'getPosition' on missing remote object 14Error: Cannot call...

[Enter steps to reproduce:]

...
...

Atom: 1.34.0 x64
Electron: 2.0.16
OS: Microsoft Windows 10 Home Single Language
Thrown From: Atom Core
Stack Trace
Uncaught Error: Cannot call function 'getPosition' on missing remote object 14
Error: Cannot call function 'getPosition' on missing remote object 14
at throwRPCError (C:\Users\Nu3w4v3\AppData\Local\atom\app-1.34.0\resources\electron.asar\browser\rpc-server.js:143:17)
at EventEmitter. (C:\Users\Nu3w4v3\AppData\Local\atom\app-1.34.0\resources\electron.asar\browser\rpc-server.js:354:7)
at emitMany (events.js:147:13)
at EventEmitter.emit (events.js:224:7)
at WebContents. (C:\Users\Nu3w4v3\AppData\Local\atom\app-1.34.0\resources\electron.asar\browser\api\web-contents.js:295:13)
at emitTwo (events.js:126:13)
at WebContents.emit (events.js:214:7)
At C:\Users\Nu3w4v3\AppData\Local\atom\app-1.34.0\resources\electron.asar\renderer\api\remote.js:221

Error: Cannot call function 'getPosition' on missing remote object 14
Error: Cannot call function 'getPosition' on missing remote object 14
    at throwRPCError (~/AppData/Local/atom/app-1.34.0/resources/electron.asar/browser/rpc-server.js:143:17)
    at EventEmitter.<anonymous> (~/AppData/Local/atom/app-1.34.0/resources/electron.asar/browser/rpc-server.js:354:7)
    at emitMany (events.js:147:13)
    at EventEmitter.emit (events.js:224:7)
    at WebContents.<anonymous> (~/AppData/Local/atom/app-1.34.0/resources/electron.asar/browser/api/web-contents.js:295:13)
    at emitTwo (events.js:126:13)
    at WebContents.emit (events.js:214:7)

    at Object.exception (~/AppData/Local/atom/app-1.34.0/resources/electron.asar/renderer/api/remote.js:221:30)
    at metaToValue (~/AppData/Local/atom/app-1.34.0/resources/electron.asar/renderer/api/remote.js:225:28)
    at Object.remoteMemberFunction (~/AppData/Local/atom/app-1.34.0/resources/electron.asar/renderer/api/remote.js:125:16)
    at AtomEnvironment.getWindowDimensions (<embedded>:1:658226)
    at AtomEnvironment.storeWindowDimensions (<embedded>:1:658641)
    at WindowEventHandler.handleWindowBlur (<embedded>:11:286221)

Commands

Non-Core Packages
ask-stack 2.2.0
atom-beautify 0.33.4
atom-ide-debugger-node 0.7.3
atom-ide-debugger-python 0.7.3
atom-ide-ui 0.13.0
atom-live-server 2.3.0
atom-monokai 0.10.9
autocomplete-python 1.12.0
emmet 2.4.3
file-icons 2.1.30
highlight-selected 0.14.0
ide-python 1.3.0
ide-r 0.1.8
kite 0.150.0
linter 2.3.0
linter-jscs 4.2.1
linter-jshint 3.1.14
minimap 4.29.9
minimap-find-and-replace 4.5.2
minimap-git-diff 4.3.1
minimap-highlight-selected 4.6.1
minimap-pigments 0.2.2
monokai 0.24.0
monokai-tweaked-ui 0.3.1
php-cs-fixer 4.1.1
php-server 0.8.0
pigments 0.40.2
platformio-ide-terminal 2.9.1
python-indent 1.1.7
terminal-plus 0.14.5
todo 0.6.0

Thanks for contributing!
We noticed that this looks like a duplicate of https://github.com/atom/atom/issues/16630 so you can subscribe there for updates if you'd like (we believe that this will be fixed in a future Electron upgrade).

Because we treat our issues list as the Atom team's backlog, we close duplicates to focus our work and not have to touch the same chunk of code for the same reason multiple times. This is also why we may mark something as duplicate that isn't an exact duplicate but is closely related.
For information on how to use GitHub's search feature to find out if something is a duplicate before filing, see the How Can I Contribute? section of the Atom CONTRIBUTING guide.


ImportError: cannot import name 'PydanticGeneralMetadata' from 'pydantic._internal._fields' with latest pydantic

Describe the bug
After udating to the latest pydantic version, I get this:
cd ./build/proto && poetry run python -m grpc_tools.protoc -I. --protobuf-to-pydantic_out=. example_model/v1/classes.proto
/Users/jankatins/projects/project1/.venv/lib/python3.11/site-packages/grpc_tools/protoc.py:21: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  import pkg_resources
Traceback (most recent call last):
  File "/Users/jankatins/projects/project1/.venv/bin/protoc-gen-protobuf-to-pydantic", line 5, in <module>
    from protobuf_to_pydantic.plugin.main import main
  File "/Users/jankatins/projects/project1/.venv/lib/python3.11/site-packages/protobuf_to_pydantic/__init__.py", line 2, in <module>
    from .gen_code import pydantic_model_to_py_code, pydantic_model_to_py_file
  File "/Users/jankatins/projects/project1/.venv/lib/python3.11/site-packages/protobuf_to_pydantic/gen_code.py", line 33, in <module>
    from protobuf_to_pydantic import _pydantic_adapter, customer_validator, gen_model
  File "/Users/jankatins/projects/project1/.venv/lib/python3.11/site-packages/protobuf_to_pydantic/gen_model.py", line 18, in <module>
    from protobuf_to_pydantic.get_desc import (
  File "/Users/jankatins/projects/project1/.venv/lib/python3.11/site-packages/protobuf_to_pydantic/get_desc/__init__.py", line 1, in <module>
    from .from_pb_option import get_desc_from_p2p, get_desc_from_pgv
  File "/Users/jankatins/projects/project1/.venv/lib/python3.11/site-packages/protobuf_to_pydantic/get_desc/from_pb_option/__init__.py", line 1, in <module>
    from .from_p2p import get_desc_from_p2p
  File "/Users/jankatins/projects/project1/.venv/lib/python3.11/site-packages/protobuf_to_pydantic/get_desc/from_pb_option/from_p2p.py", line 5, in <module>
    from .base import DescFromOptionTypedDict, ParseFromPbOption
  File "/Users/jankatins/projects/project1/.venv/lib/python3.11/site-packages/protobuf_to_pydantic/get_desc/from_pb_option/base.py", line 7, in <module>
    from protobuf_to_pydantic.customer_con_type import (
  File "/Users/jankatins/projects/project1/.venv/lib/python3.11/site-packages/protobuf_to_pydantic/customer_con_type/__init__.py", line 6, in <module>
    from .v2 import *  # noqa
    ^^^^^^^^^^^^^^^^^
  File "/Users/jankatins/projects/project1/.venv/lib/python3.11/site-packages/protobuf_to_pydantic/customer_con_type/v2.py", line 6, in <module>
    from pydantic._internal._fields import PydanticGeneralMetadata
ImportError: cannot import name 'PydanticGeneralMetadata' from 'pydantic._internal._fields' (/Users/jankatins/projects/project1/.venv/lib/python3.11/site-packages/pydantic/_internal/_fields.py)
--protobuf-to-pydantic_out: protoc-gen-protobuf-to-pydantic: Plugin failed with status code 1.

To Reproduce
Install the following versions:
λ  poetry show
...
grpcio               1.59.3    HTTP/2-based RPC framework
grpcio-tools         1.59.3    Protobuf code generator for gRPC
mypy                 1.7.1     Optional static typing for Python
mypy-extensions      1.0.0     Type system extensions for programs checked with the mypy type checker.
mypy-protobuf        3.5.0     Generate mypy stub files from protobuf specs
protobuf             4.25.1
protobuf-to-pydantic 0.2.1     Generate the `pydantic.BaseModel` class (and the corresponding source code) with parameter verification function through the Protobuf file
pydantic             2.5.2     Data validation using Python type hints
pydantic-core        2.14.5
types-protobuf       <IP_ADDRESS>  Typing stubs for protobuf

Expected behavior
This should work (and it did work with older versions) :-) -> will downgrade pydantic for now...

Thank you for your feedback, in order to minimize the amount of code generated I opted for an internal method. This caused a version incompatibility issue that I have now resolved.
Internal methods will no longer be used from version 0.3 onwards.


[#30] [Integrate] As a logged-in user, I can move to home screen after starting app.

#30
What happened

Implement logic on splash screen

Insight

Implement logic when user session is on.

If user's session is unexpired, splash navigate to Home screen.
If user didn't log in, splash navigate to Log in screen.

Write all test passed
Updated UITest Login flow

@blyscuit Really thanks for your reviewing 😸 , I fixed all the comments at https://github.com/nkhanh44/ic-survey-ios/pull/40/commits/c4cf632b0e11da64439040f43d7c1e68df389ce5


Capture memory leak failures during tests

Description
Tests will automatically save memory dumps when out of memory issues
occur in java test cases. Updated CI to also pick these up for
troubleshooting as needed.
Issues Resolved

Resolves Memory leak on gradlew tests https://opensearch.atlassian.net/browse/MIGRATIONS-2250

Testing
Ran a previous iteration with low memory cap and inspected the assets captured. Hprof file zip where the memory limit was artificially lowered to force OOMs, workflow link.
Check List

[ ] New functionality includes testing

[ ] All tests pass, including unit test, integration test and doctest

[ ] New functionality has been documented
[X] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@gregschohn I've updated the description to include an example:

Ran a previous iteration with low memory cap and inspected the assets captured. Hprof file zip where the memory limit was artificially lowered to force OOMs, workflow link.

How long do we keep those files (or any artifacts) around for?

They are around for the default period 90 days - not intented to be long term shortage, but I'd expect more than enough for a one-off issue that we drive to resolution.

Thanks Peter!  Visually, one can find the artifacts for these hprof files in a build's summary at the bottom in the artifacts section


chore: setup reusable workflow, added constraints, fixed typos in rea…

…dme, updated gitignore

Ifbm https://github.com/Informasjonsforvaltning/fdk-issue-tracker/issues/573


Query multiple indices

We have multiple indices, for example one containing users and one containing the users contributed content. In the fulltext search, we'd like to query all these indices and still have a great order of the returned results. For example, if the user enters "foo", the search should return as well users called "foo" as contents with "foo" in it's title.
These indicies do already exist, and I want to query nearly all of their own respective fields in that search. So I do not want to create a new index just to combine all of my elastic search contents with all of it's attributes in it.
My current idea is to either let elastic search do all of it or let me return the score of each entry and merge the results on my own (as long as it is in any way possible to achieve a reasonable result that way..)
I can't find any hints in the chewy docs how to query multiple indices or how to get the entrys scoring.. Is there any option to achieve my goal? :-)

Check out this: https://github.com/toptal/chewy/issues/404#issuecomment-230232963

On GitHub Classroom we perform a multi index search like so:
Chewy::Search::Request.new(FirstIndex, SecondIndex, ThirdIndex, ...)
  .query(...) # your query here

# This can also be done through the Query interface like so:
Chewy::Query.new(FirstIndex, SecondIndex, ThirdIndex, ...)
  .query(...) # your query here

If you want to see how we did it with pagination take a look at https://github.com/education/classroom/pull/1588


Consider contributing this to .NET BCL

Wanted to see if this is something that should possibly worth persuing as contrib to core .NET itself rather then standalone lib.

@macsux Unfortunately it is very unlikely to be merged into core .NET. Microsoft has decided to maintain backward compatibility, and will keep old broken implementation (.NET 5 and below) for all seeded invocations of System.Random in .NET 6. Microsoft's approach to unseeded implementation in .NET 6 is also different - they've decided to implement xoshiro256** algorithm, which is faster than legacy implementation, but Microsoft's approach to thread-safety (Random.Shared) is also deficient. Microsoft uses thread-static instances which never use full 2^256 period as designed.
CryptoRandom approach is different - it takes the approach that cryptographically strong randomness is the best kind of randomness (whether seeded or unseeded). Users should not be experts to know where/when they need cryptographic randomness vs. "lesser kind" of randomness. The randomness provided should just be high-quality at all times for all purposes.


Box the BrotliState value because it is very large

This reduces the size of BrotliDecoder from 2592 bytes to 8 bytes.
Fixes #172

bors r+


Jellyseer not updated

          Hi, I don't know if it's the right place but for example Jellyseer has been updated since 3 weeks and your addon hasn't

Originally posted by @lo97 in https://github.com/alexbelgium/hassio-addons/issues/953#issuecomment-1693030224

Mmh indeed there is an issue not sure yet why

Solved

Something is still strange, the addon updated and it's showing both in the version number and in the logs, but inside Jellyseer it says it's the old version:
<img width="625" alt="Screenshot 2023-08-26 at 14 37 42" src="https://github.com/alexbelgium/hassio-addons/assets/56902258/150930d7-a475-4311-a6e7-3899f7d37854

">

That's strange it uses fallenbagel/jellyseerr:latest...

Hi, can you take another look at this? Because by using docker externally, pulling from fallenbagel/jellyseerr:latest gets me the latest version 1.7, while the addon is still on 1.5 and never updating

Hi, updates should occur this night as per weekly update frequency

Yeah, but it still hasn't updated to the previous version that has been out for 42 days

Today the add on updated to 1.7 but, as you can see in the log, jellyseer is still at 1.5 (in the last lines)

Strange, it pulls the latest tag

Still 1.5.0

Test 2 doesn't start and doesn't go past this

Thanks very much ; test3 should be the real deal

Thank you, it's now updated!!


Custom CSS Theme Builder download different from online host

The custom css theme builder file that gets downloaded is different from the hosted file. At first sight no issues, but there is an alignment issue in the textarea:

This only happens with the downloaded theme (I've tried with multiple), but it doesn't happen with the css hosted on the googleapis CDN. Here is an example of the textarea misalignment.

We are pushing 1.0.1 this week (probably today). I am confident it will resolve this issue. I will close this for now, but feel free to re-open if the issue should not disappear.

Good for me. I did try using the current 1.0.1 commit today and the issue on the textarea persisted (using the material.min.css at least), but I guess more changes will be made before the official push.

Well, the current site isn't serving the new zips. I think that is the last piece we are waiting on.
If the issue persists when you are cloning directly, then please provide a codepen with the full HTML markup that reproduces the problem please.

It seems it has persisted. Downloading the latest MDL from http://www.getmdl.io/started/index.html#download I get the misalignment. Also on the components page for textfields the textarea underline is misaligned:


WIP: viorng: Remove coinstaller from the INF

Direct registry manipulation is used instead of the co-installer. ¨This means, the crypto provider registration gets into effect after a reboot. Also, current registry changes might not be compatible with future versions of Windows, however, there seems to be no other way of installing the CNG provider through an INF file when rules for Universal Driver INF files are in effect.

@MartinDrab Thanks a lot!
On what OSes did you test those patches?

@MartinDrab Thanks a lot!
On what OSes did you test those patches?

On Windows 10. But I can possibly add Windows 11 to my test environment in few days.

On Windows 10. But I can possibly add Windows 11 to my test environment in few days.

@MartinDrab,
If you have any idea or solution on how to test the UMD part automatically, please ping me and I will extend our CI.

viofs test was run due to a root solution update. All other drivers tests are canceled.

On Windows 10. But I can possibly add Windows 11 to my test environment in few days.

@MartinDrab, If you have any idea or solution on how to test the UMD part automatically, please ping me and I will extend our CI.

Well, there is the viorngtest.exe application (it is part of the MSVS solution). It just reads random data from the CNG cryptographic provider installed by the viorng INF (driver). If it is successful, it returns exit code 0 and prints something like this:
D:\path\>viorngtest 1024
0: Microsoft Primitive Provider
1: QEMU VirtIO RNG Provider
Using it
Done OK

Otherwise it returns a nonzero exit code and prints an error message.
So, it can be tested like this:

install the driver via the INF file,
reboot,
run viorngtest 1024.

The value of 1024 is size of the random data buffer to read from the driver, you may specify basically any value you like.
To add the VirtIo RNG device into the VM, -device virtio-rng-pci needs to be passed to QEMU (or something mentioned in 1). If this is not possible, you can still test presence of the QEMU VirtIO RNG Provider provider since viorngtest will list it before failing.

I also tested on Windows 8 and Windows 8.1 and the provider installs successfully as well. Can do Windows 11 soon.

Tested UDM on Server 2019, 2022 - works as expected.

WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll is still removed in this patch
@MartinDrab

WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll is still removed in this patch @MartinDrab

Yes I know. There is a bit of a trouble with Windows version before Windows 10. Universal INFs prohibit the Coinstallers section even if no custom coinstallers are specified (and the goal is only to ship the right WDF version with the driver). Of course, this is not an issue on Windows 10 (and later) where that is not necessary.
I suppose it should be OK to use the right WDF version on each of the supported version of Windows (i.e. the version that is always present there). I just need to check whether such versions are defined and the driver actually depends on them.

@MartinDrab

Coinstallers section even if no custom coinstallers are specified

This is expected. We have this section in ALL drivers for ALL versions. For example fwcfg64 driver https://www.dropbox.com/sh/ieza0co6k1jez9b/AAD4TRbr8_pKJgJk0CPucs_Da?dl=0&file_subpath=%2Ffwcfg.inf&lst=&preview=fwcfg64-Win2022x64.zip

FWCfg INF https://github.com/virtio-win/kvm-guest-drivers-windows/blob/master/fwcfg64/fwcfg.inf#L80

rerun tests


Restructure doc for new build of tutos and gallery

Resolves: #1063
Let's discuss of having this kind of solution. Please let me know what your thoughts are.
Nothing has changed for the user except that now, users will see this in the URL of demos and tutorials: docs.taipy.io/en/develop/gallery/articles/chatbot/.
Now the order is set by the order property of the index.md of the related demo or tutorial.
For the documentation developer, now everything is in the same place, which is worse in visualizing where the articles are. However, it is simpler to contribute to the documentation, reorder the documentation and change sections of the doc.
The PR still needs to be finished. I have to fix broken links.

This is a good idea since ordering demos before required adding a number to the folder name. I see now that you use an order property in the index header of each demo. How is the ordering implemented? If this works, I'm okay with it. I'll test it once broken links issues are addressed and let R&D judge the implementation.


Confusing Telemetry settings

GitLens Version: 10.2.22
VSCode Version:  1.38.1
OS Version: macOS 11.0 Beta

Steps to Reproduce:

Disable telemetry according to the instructions from Microsoft
Install GitLens
View telemetry settings.
Observe GitLens telemetry setting is enabled.

Gitlens telemetry setting should be disabled by default if the overall setting is disabled. Otherwise it appears enabled as shown here (yes, even with the note).

GitLens doesn't collect any telemetry -- that setting was old (and unused) and has been removed in GitLens 11

GitLens doesn't collect any telemetry -- that setting was old (and unused) and has been removed in GitLens 11

Today GitLens prompted me to connect to GitHub which is another form of Telemetry (if enabled). Is there a way to prevent this prompt from occurring now that the telemetry disable feature has been removed?

Yes -- there will be an easy opt-out coming very soon, or you can use the Insiders edition today.


Add support for FreeBSD.

Use readchar_linux on FreeBSD too, like on Linux and Darwin. This seems to run fine.

Hello, I added your PR to #79. Could you please run the manual testscript (in tests/manual-test.py) on a FreeBSD system and verify that it works with most characters/keys?
also if you want to you could remove the platfrom checks here:
https://github.com/Cube707/python-readchar/blob/f20f57f0e01bbda4bf6ca55035c87b5b4dbcbbfb/tests/posix/conftest.py#L4-L13
and check if the tests complete on a FreeBSD system as well.

duplicate of #46

Hello, I added your commit to #79. Could you please run the manual testscript (in tests/manual-test.py) on a FreeBSD system and verify that it works with most characters/keys?
also if you want to you could remove the platfrom checks here:
https://github.com/Cube707/python-readchar/blob/f20f57f0e01bbda4bf6ca55035c87b5b4dbcbbfb/tests/posix/conftest.py#L4-L13
and check if the tests complete on a FreeBSD system as well.

Sorry that I missed this earlier. I've now done this and all of the tests pass... I can submit that as a separate pull request.

I've created a pull request (#86) to run the tests on *bsd* platforms.

@trombonehero

I've now done this and all of the tests pass...

Great, if you have the time it would be amazing to have some screenshots here of whats working on FreeBSD to have it documented for the future. But no pressure, if you don't have the time / can't be bother to do it, the issue is allready closed and will stay undocumented...

Some results of the manual tests (which all seemed to work):
a - \x61
b - \x62
c - \x63
d - \x64
e - \x65
f - \x66
g - \x67
got SPACE - \x20
x1b\x1b
got TAB - \x09
got LF - \x0a
\ - \x5c
got BACKSPACE - \x7f
got CTRL_F - \x06
got CTRL_D - \x04
d - \x64
1 - \x31
2 - \x32
3 - \x33
! - \x21
@ - \x40
# - \x23
got F1 - \x1b\x4f\x50
got F2 - \x1b\x4f\x51
got F3 - \x1b\x4f\x52
got F4 - \x1b\x4f\x53
got UP - \x1b\x5b\x41
got LEFT - \x1b\x5b\x44
got DOWN - \x1b\x5b\x42
got RIGHT - \x1b\x5b\x43
| - \x7c


blocks not working

InfiniTiC-1.12-0.1.42
adding a block item in whitelist section doesn't work. The block still is not smeltable nor castable.

New version released for MC1.12.2.  This should work correctly now.  If not, please post a link to the mod you are using and a pastebin of your json config file.


Terminal suggest: git co - should be a completion

Top entry here should be - which means the last checked out branch:

There was a ~1-2 second delay between typing the space after - and the suggest widget actually showing up. Is that a known issue?

Yes that's tracked in another issue.


Platform dependent search bar and ui fixes

Summary
This adds two search bars one native for ios and the one for android is constructed in react-native code.
Also included fixes for the KeyboardAvoidView for select_server, login and mfa screens, as well as using platform specific styles to set the margin from the top on ios.

@jarredwitt changes made

+1, updated the notice.txt slightly

@jarredwitt done

@hmhealey done


[React flow] Flickering / z-fighting / re-rendering between canvas & nodes on click/drag, introduced in 11.10.4

Describe the Bug
When I upgraded react-flow in my project, I encountered a bug where dragging a node "flickers" between selecting the canvas versus selecting the node:

while a node is being dragged, the mouse cursor image flickers between pointer and drag
when attempting to drag a node, about half the time dragging a node will drag the canvas instead, so it take multiple attempts to drag a node
similarly, it may take a few clicks to select a node because it seems to click "through" the node to the canvas half the time.

It feels like z-fighting: the node and the canvas seem to be competing for who is the target of the cursor. Though it's probably re-rendering during the mousedown on click and during the mousemove on drag.
I am using a custom node, I'm not sure what is relevant to include about it.
Versions I tested: does it have this flickering bug? These are the versions I tested in an attempt to narrow it down:

11.11.1 yes
11.10.4 yes! this is the breaking change
11.10.3 no
11.10.2 no
11.10.0 no
11.9.4 no
11.8.3 no

I'm guessing this may have been introduced by #3897 just from context clues?? Maybe the changes to useEffect are causing a re-render?
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue

Use version 11.10.4+
Click to drag a custom node (All the custom nodes I've tried have this flickering behavior in 11.10.4+, they don't have any unusual parts: no input fields, etc, so I'm not sure what to note about the nodes I tested)
About half the time, the node will not be selected, and the canvas will be grabbed instead. When the node is grabbed, the cursor will flicker between grab and pointer icons

Downgrading to 11.10.3 fixes the issue.
Expected behavior
As a user, I expected the normal drag-and-drop behavior for nodes.
Screenshots or Videos
No response
Platform

OS: Linux
Browser: Chrome
Version: 11.10.4+

Additional context
No response

Does this issue happen with any of the examples on the website?

It looks like the flickering is caused by changing the visibility property, probably in this line.
I've tried to create reproducable demo:

CodeSandbox 11.11.1;
CodeSandbox 11.10.1.

This probably happens when we reinit nodes due to an external update, e.g. a backend response.
I tried to simulate this situation in the sandbox. But it's not always reproducible.
Also, attached 2 videos:
https://github.com/xyflow/xyflow/assets/11480414/b04673f2-24f8-4860-b766-3a31a858cf1c - 11.11.1
https://github.com/xyflow/xyflow/assets/11480414/93a68828-6c89-473e-b4f9-41e20eb88ac3 - 11.10.1

@IanLondon Have you by any chance updated to v12 yet? This should be fixed in the new versions.

Hi, I tried upgrading to v12 (quickly and dirtily) and it still has a similar issue.

I guess the issue here is that you are creating new nodes. This would not happen if you would iterate over your existing nodes and not throw away any information. Same for v12. If you want to update your nodes, you need to keep node.measured. Otherwise we need to re-initialize them.
@IanLondon could you provide an example for this?

This would not happen if you would iterate over your existing nodes and not throw away any information.

Hmm, I've invested quite a bit of work in my application to avoid this case, but it's possible there's still some edge cases where it's happening. Happy to refer to an example of reinitialization and see if it helps, once that example exists.

Just to clarify. Things like this usually appear when you are using setNodes and ignoring the previous nodes that get supplied.
// Good
setNodes(nodes => nodes.map(node => { ...node, /* changes here */ }));

// Bad
setNodes(someNodesIHaveCachedAndModified);

Can you make sure this is not happening?

Fairly certain. Also, I can confirm this still happens in 11.11.4, which dependabot updated me to, thus breaking my application.
If that situation is inadvisable, it seems like the application should log a warning when it happens?
I'm pretty frustrated that I pay for a pro subscription and this neither works nor tells me that I'm doing something wrong and shooting myself in the foot.. since it worked fine before 11.10.4.


Analysis on simulated trio

No write-up yet, but some preliminary results on erroneous vs non-erroneous input.

Codecov Report

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

@@           Coverage Diff           @@
##           master      #76   +/-   ##
=======================================
  Coverage   85.51%   85.51%
=======================================
  Files          13       13
  Lines        1125     1125
  Branches      189      189
=======================================
  Hits          962      962
  Misses        123      123
  Partials       40       40

Continue to review full report at Codecov.

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


Louis testing

bug fixes and enhancements to light state, deceleration and other minor issues.

oh no. entire nano degree without messing up once. and on capstone... I do it... Wrong pull request :)


BigQuery API Services and CloudStorage incompatibility

Environment details
In our project, we depend on both BigQuery and CloudStorage, with the following maven dependency declarations
com.google.cloud:google-cloud-storage:jar:1.113.4:compile
com.google.cloud:google-cloud-bigquery:jar:1.126.0:compile
The google-cloud-bigquery jar declares a dependency on google-api-services-bigquery:jar:v2-rev20201030-1.31.0, which declares a dependency on com.google.api-client:google-api-client:1.31.1
The google-cloud-storage jar declares a dependency on com.google.api-client:google-api-client:jar:1.30.11
Due to maven dependency resolution rules, the resolved api-client version is 1.30.11, however, google-api-services-bigquery fails to initialize using version 1.30.11 and throws the following error:
Caused by: java.lang.IllegalStateException: You are currently running with version 1.30.11 of google-api-client. You need at least version 1.31.1 of google-api-client to run version 1.31.0 of the BigQuery API library.
at com.google.common.base.Preconditions.checkState(Preconditions.java:481)
at com.google.api.client.util.Preconditions.checkState(Preconditions.java:113)
at com.google.api.services.bigquery.Bigquery.(Bigquery.java:44)
at com.google.common.base.Preconditions.checkState(Preconditions.java:481)
Google libraries should declare their minimum versions such that combinations of dependencies resolve the required versions correctly.
Our code does not directly consume anything from the api-client jar. The quality control rules do not allow us to workaround this problem by adding an explicit declaration on the required api-client version since we do not use it directly.  We require that our dependencies declare their dependencies correctly.
mvn -version
Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T14:33:14-04:00)
Maven home: /usr/local/Cellar/maven/3.5.4/libexec
Java version: 1.8.0_144, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.15.7", arch: "x86_64", family: "mac"

@jcamerin, Thanks for filling issue.I follow your step and able to reproduce this issue. The cause of issue is google-cloud-storage:1.113.4 use google-api-client:1.30.11 while google-cloud-bigquery:1.126.0 use google-api client :1.31.1.Here lower level  google-api-client:1.30.11 is require to exclude from google-cloud-storage:1.113.4
to fix current scenario.
Would you try below step and Please let us know if this helps you?
pom.xml
<dependencies>
    <dependency>
        <groupId>com.google.cloud</groupId>
        <artifactId>google-cloud-storage</artifactId>
        <version>1.113.4</version>
        <exclusions>
            <exclusion>
                <groupId>com.google.api-client</groupId>
                <artifactId>google-api-client</artifactId>
            </exclusion>
        </exclusions>
    </dependency>
    <dependency>
        <groupId>com.google.cloud</groupId>
        <artifactId>google-cloud-bigquery</artifactId>
        <version>1.126.0</version>
    </dependency>
</dependencies>

Code:
BigQueryStorageTest.java
package com.gcp.main;

import com.google.api.client.http.HttpRequestInitializer;
import com.google.api.client.http.HttpTransport;
import com.google.api.client.http.javanet.NetHttpTransport;
import com.google.api.client.json.JsonFactory;
import com.google.api.client.json.jackson2.JacksonFactory;
import com.google.api.services.bigquery.Bigquery;
import com.google.api.services.storage.Storage;
import com.google.auth.http.HttpCredentialsAdapter;
import com.google.auth.oauth2.ServiceAccountCredentials;

import java.io.FileInputStream;
import java.io.IOException;

public class BigQueryStorageTest {

    // TODO(developer): Replace these variables before running the sample.
    private static final String jsonFilePath="path to credential file";

    public static void main(String[] args) throws IOException {
        Bigquery bigquery =  createBigQueryAuthorizedClient();
        System.out.println("Bigquery Client::"+bigquery);
        Storage storage = createStorageAuthorizedClient();
        System.out.println("Storage Client::"+storage);
    }

    public static Bigquery createBigQueryAuthorizedClient() throws IOException, IOException {
        // Create the credential
        HttpTransport transport = new NetHttpTransport();
        JsonFactory jsonFactory = new JacksonFactory();
        ServiceAccountCredentials sourceCredentials = ServiceAccountCredentials
                .fromStream(new FileInputStream(jsonFilePath));
        HttpRequestInitializer requestInitializer = new HttpCredentialsAdapter(sourceCredentials);
        //return instance of bigquery client
        return new Bigquery.Builder(transport, jsonFactory, requestInitializer).setApplicationName("BigqueryApplication").build();
    }

    public static Storage createStorageAuthorizedClient() throws IOException {
        // Create the credential
        HttpTransport transport = new NetHttpTransport();
        JsonFactory jsonFactory = new JacksonFactory();
        ServiceAccountCredentials sourceCredentials = ServiceAccountCredentials
                .fromStream(new FileInputStream(jsonFilePath));
        HttpRequestInitializer requestInitializer = new HttpCredentialsAdapter(sourceCredentials);
        //return instance of storage client
        return new Storage.Builder(transport, jsonFactory, requestInitializer).setApplicationName("StorageApplication").build();
    }
}

Output:
Bigquery Client::com.google.api.services.bigquery.Bigquery@567d299b
Storage Client::com.google.api.services.storage.Storage@6842775d

I agree with the analysis of the issue, but I disagree with the proposal for us to change our dependency declaration to exclude a required transitive dependency. One of the reasons is that if we remove bigquery from our dependencies, then cloudstorage will break.  Along similar lines, if a future version of CloudStorage requires a newer version of google-api-client, then we will be right back in this situation again where the older version is resolved due to our explicit exclusion. That will be even more difficult for us to track down.

If you are using more than one Google Cloud client library, we recommend you use one of our Bill of Material (BOM) artifacts to help manage dependency versions.
It will look something like:
<dependencyManagement>
  <dependencies>
    <dependency>
      <groupId>com.google.cloud</groupId>
      <artifactId>libraries-bom</artifactId>
      <version>16.1.0</version>
      <type>pom</type>
      <scope>import</scope>
     </dependency>
   </dependencies>
</dependencyManagement>

<dependencies>
  <dependency>
    <groupId>com.google.cloud</groupId>
    <artifactId>google-cloud-storage</artifactId>
  </dependency>
  <dependency>
    <groupId>com.google.cloud</groupId>
    <artifactId>google-cloud-bigquery</artifactId>
  </dependency>
</dependencies>

The BOM declares the versions that we know are compatible dependency-wise (including transitive dependencies). We have many tools in place to make sure that these dependencies are compatible. For more information, you can check out https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM

Thank you @chingor13
I should have looked for a BOM, but did not. After applying, a few jars were downgraded, but everything is working.

Yeah, the BOMs may be slightly behind for any single particular library especially when we have to roll out compatible versions to 80+ libraries.

Very understandable...  minor downgrades thankfully!


Dynamic Image In AppBar ?

Am loading a ImageView using glide, whose height is unknown. How to achieve that ?

It may not work. I am sorry.


📖 Guest Book 🙇🏻♂

This "issue" serves as a guest book. You're welcome to write nice things about this project, share how it's helped you out, or name drop companies using it.
Idea came from this tweet.

This is a great project, thanks very much for creating it, excellent work. One question: I am wondering for touch events, is it possible to make an even more complex recognition pattern, more so than the long press, swipe and double tap... something like when the user draws a S shape (etc.) for examples it triggers an event?.

This is a great project, thanks very much for creating it, excellent work. One question: I am wondering for touch events, is it possible to make an even more complex recognition pattern, more so than the long press, swipe and double tap... something like when the user draws a S shape (etc.) for examples it triggers an event?.

Please create an issue inside the correct project. This is a different project. I will delete your comment eventually.

Please create a separate issue. This issue is used specifically to collect reviews about the project and not deal with feature requests/bug fixes.
P.S: I will delete your comment here eventually to keep this issue clean and focused on what it was created for.

This is a great project, thanks very much for creating it, excellent work. One question: I am wondering for touch events, is it possible to make an even more complex recognition pattern, more so than the long press, swipe and double tap... something like when the user draws a S shape (etc.) for examples it triggers an event?.

Please create a separate issue. This issue is used specifically to collect reviews about the project and not deal with feature requests/bug fixes.
P.S: I will delete your comment here eventually to keep this issue clean and focused on what it was created for.


Created the option for rclone copy or rclone sync in the config/env

To enable rclone sync, instead of rclone copy, add RCLONE_SYNC as true to the environment variables or the config.
It defaults to rclone copy.

bump

Your changes are not working for me @eliasbenb

Your changes are not working for me @eliasbenb

Sorry, the RCLONE_SYNC option didn't work from the config.ini file previously, it just worked from the environment variable.
It should work now.

Hi,
Each time that I try the new code I have this error
Traceback (most recent call last):
  File "C:\Users\administrateur\AppData\Local\Programs\Python\Python39\lib\threading.py", line 954, in _bootstrap_inner
    self.run()
  File "C:\Users\administrateur\Desktop\CloneBot-master\telegram_gcloner\utils\fire_save_files.py", line 54, in run
    if os.getenv('RCLONE_SYNC').lower() == 'true' or config.RCLONE_SYNC.lower() == 'true':
AttributeError: 'NoneType' object has no attribute 'lower'

I think you forgot to pull the new commit I made.

Hi,
Each time that I try the new code I have this error
Traceback (most recent call last):
  File "C:\Users\administrateur\AppData\Local\Programs\Python\Python39\lib\threading.py", line 954, in _bootstrap_inner
    self.run()
  File "C:\Users\administrateur\Desktop\CloneBot-master\telegram_gcloner\utils\fire_save_files.py", line 54, in run
    if os.getenv('RCLONE_SYNC').lower() == 'true' or config.RCLONE_SYNC.lower() == 'true':
AttributeError: 'NoneType' object has no attribute 'lower'

@eliasbenb Do you know if there would be a way to allow rclone --drive-impersonate<EMAIL_ADDRESS>flag to use with 'My Drive' ? (after updating it to newer gclone version from v1.57 rclone as the dependency.


Add missing arrows

Fixed some expressions apparently missing arrows.
I wish we could check the syntax of codes embedded in documents...

Thank you v much!


Expo Windows LAN Timeout

Hi, each time I run on device over LAN network I get connection timeout on Expo App.
Here's what I did :

I added port and app exeption in firewall on windows and avast antivirus.
Then I disabled all firewalls.
I disabled all others virtual connections and I'm sure with the ip address of my wifi.
Android Phone and pc same wifi.
I this is what I got from netstat command:

Please tell me if I missed something, I searched a lot and I didn't find a solution.

Why is this closed? Did you managed to solve the problem?
Because I'm also having the exact same problem right now.

Add firewall exception (in and out) for ports 19000 and 19001


tf.linalg.diag crash (abort)

Click to expand!
Issue Type
Bug
Source
binary
Tensorflow Version
2.11.0-dev20220914
Custom Code
No
OS Platform and Distribution
Ubuntu 18.04.4 LTS (x86_64)
Mobile device
No response
Python version
3.7.6
Bazel version
No response
GCC/Compiler version
No response
CUDA/cuDNN version
N/A
GPU model and memory
No response
Current Behaviour?
tf.linalg.diag crash (abort)
Also reproduced in the gist
Standalone code to reproduce the issue
import numpy as np
import tensorflow as tf
tf.linalg.diag(k=1070828000000, diagonal=np.ones((2,2,2,2)))

Relevant log output
2022-09-15 19:38:46.149294: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory
2022-09-15 19:38:46.149328: W tensorflow/compiler/xla/stream_executor/cuda/cuda_driver.cc:265] failed call to cuInit: UNKNOWN ERROR (303)
2022-09-15 19:38:46.149367: I tensorflow/compiler/xla/stream_executor/cuda/cuda_diagnostics.cc:163] no NVIDIA GPU device is present: /dev/nvidia0 does not exist
2022-09-15 19:38:46.149684: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX2 AVX512F FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2022-09-15 19:38:46.188085: F tensorflow/core/framework/tensor_shape.cc:404] Check failed: 0 <= new_num_elements (0 vs. -3186289596827017184)
Aborted (core dumped)

@DNXie,
I was facing a different error stating OOM when allocating tensor with shape[1381143300,1381143300] while executing the given code. Kindly find the gist of it here. Thank you!

@DNXie,
I was able to reproduce the issue on tensorflow v2.8, v2.9 and nightly. Kindly find the gist of it here.

Created a PR #57788 for the fix.

I also observed the following API aliases can cause the same issue in older versions of tensorflow.
Users should be cautious when using them on both CPU and GPU up to tensorflow 2.11.1 (v2.11.0-94-ga3e2c692c18).

tf.linalg.diag, tf.compat.v1.linalg.diag, tf.compat.v1.matrix_diag

It seems to be fixed in tensorflow 2.12.0 (v2.12.0-rc1-12-g0db597d0d75) and later versions.


Incorrect selection changed parameters order in DataGrid

DataGrid selection changed returns removed items in AddedItems collection and added items in RemovedItems collection. It happens due to incorrect order of parameters in
https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Controls.DataGrid/DataGridSelectedItemsCollection.cs#L338

This was fixed by #3526, @danwalmsley looks like we might need to do another stable release that includes #3526?


Find an empty locale item value, please fill in.

This is a low-priority issue.
Missing translation text (zh-cn) for "Primordial Jade Cutter" on Wish Counter page, it looks weird.
I know other empty items are deprecated, but this one is really in the stable game version.
I found it shows correct on Weapons page, so it's not a translation problem, just missing value somewhere.
I have checked the source code, the value of "Primordial Jade Cutter" in src/locales/items/zh.json is empty.
(only zh.json miss it)
(Actually I'm not sure whether this file is related to Wish Counter or not.)
In Simplified Chinese, it is【磐岩结绿】, just like the name in src/data/weapons/zh.json

Fixed in 999584058ed7e93e201d7d1a2b346f7686e2840f


Add byStrand mode for strand-specific consensus

with cram test.

why not just delete the commented-out code there?

sorry, i just posted and then deleted something dumb

This passes our tests, so if nobody has any critical complaints, please signal with a +1 then I'll commit

Where did we leave off on this?

Whoops! I meant to merge this!


Cross-compile on Linux for Windows ARM with clang-cl

I am trying to build openssl for "Windows 10 for ARM" on Linux build agent with clang-cl.
There is predefined VC-WIN64-ARM configuration, which I successfully utilized to build with MSVC on Windows.
With some additional options I was also able to build with clang-cl / llvm-lib / lld-link on Windows.
Approximately this was the recipe:
set CFLAGS=--target=aarch64-windows-msvc -imsvc ...
set ARFLAGS=/MACHINE:ARM64
set LDFLAGS=/MACHINE:ARM64 -libpath:...
perl Configure --release VC-WIN64-ARM -O2 CC=clang-cl AR=llvm-lib LD=lld-link no-shared
nmake

But when I use such recipe to cross-compile on Linux, it fails with such message:
This perl implementation doesn't produce Windows like paths (with backward
slash directory separators).  Please use an implementation that matches your
building platform.

This Perl version: 5.26.1 for x86_64-linux-gnu-thread-multi

Obviously VC-WIN64-ARM works only on Windows.
I haven't found any other configuration for Windows ARM target.
Is it possible to cross-compile openssl for Windows ARM on Linux?

Hmm. Interesting it seems you are using clang-cl and using one of the Visual Studio config targets. Normally when cross-compiling for Windows on Linux we use the mingw compilers and the mingw targets. I have no idea whether this is even possible using clang-cl on Linux.
Perhaps @levitte might know.

you can try to set CONFIGURE_INSIST=yes before invoking Configure.

Although I suspect you will end up with an "nmake" style Makefile with that Configure target.

Although I suspect you will end up with an "nmake" style Makefile with that Configure target.

Yup.  "VC" implies Visual C with all the corresponding tools, and has never been adapted for cross compilation in this sense.
clang blurs the line, it seems...

Marking as inactive to be closed at the end of 3.4 dev, barring further input


How to close the side bar in single page application?

Hi,
I would like to close the side bad after an option has been clicked in a single page application. I'm using angular 4.
Any tips?

Hi,
We are using below code to close the sidebar on click:
$('.pmd-navbar-sidebar .navbar-nav li > a').on( 'click', function() {
    $('.pmd-navbar-sidebar').removeClass('pmd-sidebar-open');
    $('.pmd-sidebar-overlay').removeClass('pmd-sidebar-overlay-active');
    $('body').removeClass('pmd-body-open');
});

You can use above code snippet in your Angular SPA.
Hope it may solve your purpose.

Thank you for sharing your solution. I will give it a go! :)


Favicon

The favicon is the old logo of ÉCLAIR.

No it isn't, it's a new logo for Centralisation. It's not very pretty though


Create a new pull request by comparing changes

Pull Request Test Coverage Report for Build 408753909

18 of 18 (100.0%)  changed or added relevant lines in 14 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.02%) to 94.503%

Totals

Change from base Build 405110269:
-0.02%

Covered Lines:
1888

Relevant Lines:
1952

💛  - Coveralls


add atom source

I installed atom with the default source and it was outdated.
Their instructions recommend a different source
https://flight-manual.atom.io/getting-started/sections/installing-atom/#debian-and-ubuntu-debapt

:1st_place_medal: