Add CPU Manager related configs

Problem:
This is a prerequisite pr for implementing CPU Pinning. We need to add the cpu manager configs first. system-reserved, kube-reserved, cpu-manager-policy.
Solution:
Introduced two configs files:

rke2-99-z00-harvester-reserved-resources.yaml

include two configssystem-reserved and kube-reserved, both of which follow GKE CPU reservation formula for calculating reserved CPU resources.

rke2-99-z01-harvester-cpu-manager.yaml

include cpu manager policy setting, currently the value is "none" (which is the default value)

[!NOTE]
Here I add these files instead of adding configs in 90-harvester-server.yaml or 90-harvester-worker.yaml since we will have 99-max-pods.yaml (after upgrade to a newer harvester version) which overrides kubelet args to "max-pods=200".
https://github.com/harvester/harvester/blob/226f72aa58532071232ad548e27970c1cec55733/package/upgrade/upgrade_node.sh#L490-L495

Related Issue:
related to https://github.com/harvester/harvester/issues/2305
HEP: https://github.com/harvester/harvester/pull/5803
Test Plan:
Setup harvester with one node which has 8 CPUs and check if the two config files exist under /etc/rancher/rke2/config.yaml.d/ and have correct settings.
in 99-z00-harvester-reserved-resources.yaml. The content should be
kubelet-arg+:
- "system-reserved=cpu=490m"
- "kube-reserved=cpu=490m"

in 99-z01-harvester-cpu-manager.yaml. The content should be
kubelet-arg+:
- "cpu-manager-policy=none"

Thanks for the review !

We're setting system-reserved and kube-reserved to the same value. AIUI these are cumulative, so in the case of (for example) a 2 core system, this would reserve 60 + 10 + 400 == 470 for each of those values, meaning a total of 940 mcpu reserved for system + kubernetes usage?

Yes you are right, like you mentioned under a two core system,  harvester reserved almost one core.

Those two config files (/etc/rancher/rke2/config.yaml.d/99-z00-harvester-reserved-resources.yaml and /etc/rancher/rke2/config.yaml.d/99-z01-harvester-cpu-manager.yaml) will be embedded in /oem/90_custom.yaml, which means they'll be rewritten on every system boot, i.e. each host will always start with system-reserved and kube-reserved set as they were during initial installation, and cpu-manager-policy=none. I know we need to later set cpu-manager-policy=static to use CPU pinning, but how do we persist that over a reboot?

Good catch, I will remove 99-z01-harvester-cpu-manager.yaml from this PR as it shouldn't be override after reboot like you mentioned.

I assume we'll also need a separate PR for harvester to handle the upgrade case, to add those two config files for existing systems?

Yep we do have another PR handle the upgrade path, see https://github.com/harvester/harvester/pull/6190/files#diff-43150fc991c91f07946cd41d2d0311c58a9f5deb4c061e1cf3ed11b9cd3dde3b

Thanks for the review !

We're setting system-reserved and kube-reserved to the same value. AIUI these are cumulative, so in the case of (for example) a 2 core system, this would reserve 60 + 10 + 400 == 470 for each of those values, meaning a total of 940 mcpu reserved for system + kubernetes usage?

Yes you are right, like you mentioned under a two core system, harvester reserved almost one core.

I also have some question about that, just check with below case:
2 cores -> 470 for system/kubernetes -> total 940
8 cores -> 60 + 10 + 10 + 10 + 400 = 490 for both system/kubernetes > total 980
16 cores -> 60 + 10 + 10 + 30 + 400 = 520 for both system/kubernetes > total 1040
Seems most common configuration is reserved almost 1 core for the amount of system/kube service (ratio, 1:1).
And, I checked some info from https://kubernetes.io/docs/tasks/administer-cluster/reserve-compute-resources/
Looks the system info could be lower than kube, because the system service looks only include like ssh/udev.
The kube service, like kubelet, might need more CPU resources.
Maybe we could adjust the system: kube service ratio to 2:3?
WDYT?

Those two config files (/etc/rancher/rke2/config.yaml.d/99-z00-harvester-reserved-resources.yaml and /etc/rancher/rke2/config.yaml.d/99-z01-harvester-cpu-manager.yaml) will be embedded in /oem/90_custom.yaml, which means they'll be rewritten on every system boot, i.e. each host will always start with system-reserved and kube-reserved set as they were during initial installation, and cpu-manager-policy=none. I know we need to later set cpu-manager-policy=static to use CPU pinning, but how do we persist that over a reboot?

Good catch, I will remove 99-z01-harvester-cpu-manager.yaml from this PR as it shouldn't be override after reboot like you mentioned.

And who will handle the config cpu-manager-policy=static when we enable the CPU pinning?
harvester controller?

I assume we'll also need a separate PR for harvester to handle the upgrade case, to add those two config files for existing systems?

Yep we do have another PR handle the upgrade path, see https://github.com/harvester/harvester/pull/6190/files#diff-43150fc991c91f07946cd41d2d0311c58a9f5deb4c061e1cf3ed11b9cd3dde3b

I also have some question about that, just check with below case:
2 cores -> 470 for system/kubernetes -> total 940
8 cores -> 60 + 10 + 10 + 10 + 400 = 490 for both system/kubernetes > total 980
16 cores -> 60 + 10 + 10 + 30 + 400 = 520 for both system/kubernetes > total 1040
Seems most common configuration is reserved almost 1 core for the amount of system/kube service (ratio, 1:1).
And, I checked some info from https://kubernetes.io/docs/tasks/administer-cluster/reserve-compute-resources/
Looks the system service could be lower than kube service, because the system service looks only include like ssh/udev.
The kube service, like kubelet, might need more CPU resources.
Maybe we could adjust the system: kube service ratio to 2:3?
WDYT?

Fair enough. I'll make systmReserved = kubeReserved * (2/3).  c.c. @bk201, @ibrokethecloud, @tserong

And who will handle the config cpu-manager-policy=static when we enable the CPU pinning?
harvester controller?

Yes, cpu manager controller will submit job to write cpu manager policy config to /etc/rancher/rke2/config.yaml.d/99-z01-harvester-cpu-manager.yaml

Now, the system will have 2/3 kube reserved, but the kube reserved did not gain the extra 1/3 from the system.

Yeah, that's my reading too. Working through a previous example, we started with a system:kube ratio of 1:1:
2 cores -> 470 for system/kubernetes -> total 940
With the most recent change it looks like this gives us a system:kube ration of ~1:1.5, but the overall total is lower than before:
2 cores -> 470 * 2/3 = 313 system + 470 kube -> total 783
I really don't know what the best value or ratio is here... :-/

@Mergifyio backport v1.4


use dtls.v2

Codecov Report

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

@@           Coverage Diff           @@
##           master      #82   +/-   ##
=======================================
  Coverage   59.57%   59.57%
=======================================
  Files          33       33
  Lines        3166     3166
=======================================
  Hits         1886     1886
  Misses       1080     1080
  Partials      200      200

Impacted Files
Coverage Δ

server.go
60.37% <ø> (ø)
:arrow_up:

client.go
59.92% <ø> (ø)
:arrow_up:

net/dtlslistener.go
0% <ø> (ø)
:arrow_up:

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 17f3716...8c138c1. Read the comment docs.


Error when exporting Latex formulas

When exporting in Medium, the Latex formulas are rendered as code as per attached example

Hi there,
Sorry for the delay in getting back to you. For the moment, only latex that is centred is supported - this is because we need to identify the full cell to convert to latex as we convert and then screenshot it to be an image.
In your example, if you'd like to insert that snippet as latex then you can write in a call:
$$p_i = p_0(1-\lambda)$$
I've just checked and this still works as expected - producing a centred image of your formula. I'm going to close this for now, but if this is something that you really need then it would be great if you could help by contributing it. Unfortunately in order to support in line latex (in line with your text) that would require medium to support those kinds of special mathematicaly characters.
Mark


How do you get the language specific info?

Am I right in thinking you haven't added this functionality?
The responses I get back only include product id and price. Or am I doing something wrong at my end?

which language specific info exactly would you need?

I mean the info you register when creating the IAP on iTunesConnect.
E.g. product name and description in the user's language.

Ok. I'm not sure about that. I think apple should automatically show the popup with that info to you based on your device language?

OK, if it's something wrong at my end, I can close the issue. Does that mean you get to see product details when you make requests? I.e. the functionality is present?

when you make the purchase request, apple will show you a popup with all the product info that you enter in itunes connect.
closing for now. Let me know something is missing here.

I'm not really on Objective C dev, so apologies if I'm wrong. But is this where you define it? It looks like you only return product id and price string there, right?
https://github.com/chirag04/react-native-in-app-utils/blob/master/InAppUtils/InAppUtils.m#L176

yes. For now we are returning priceString and id there. We can return more stuff if available and required from there.

So I did a debug on item there and it has the following internal fields:
_contentVersion
_downloadable
_downloadableContentLengths
_localeIdentifier
_localizedDescription
_localizedTitle
_price
_priceLocale
_productIdentifier

I guess I can just add them in. Do you want a pull request?

Obviously the reason for needing this is that the application should display the products in the user's locale before choosing to purchase. Not just show an internal id to the user and display the real name in a popup.

#9 provides what I was looking for

Cool. Thanks for the PR. I will merge it.


Added note about where .ideavimrc is located

I stumbled around a bit adding my key mapping because I had forgotten that my .ideavimrc had been relocated.  Hopefully this note will help others in a similar situation.

Thanks for your pull request!

Would it be possible to do a release soon? Latest release on https://plugins.jetbrains.com/plugin/164 is from 2014-12-03 16:14:21

@shanx I'm afraid you have to wait for the release at least a couple of weeks, maybe a month. Meanwhile you can download and install nightly builds of the plugin. Alternatively, you can build it yourself as described in the README.


datapath: Backport create sysctl rp_filter overwrite config on agent init

#20072 - datapath: Create sysctl rp_filter overwrite config on agent ini

Closing since this commit was back-ported in #20364


[Bug]: select the word, ctrl+c, then ctrl+f, then ctrl+v，the word that select  is cut

ODC version
4.2.0
OB version
all
What happened?
as the title says,
select the word, ctrl+c, then ctrl+f, then ctrl+v，the word that select  is cut

What did you expect to happen?
the word that select  is reserved
How can we reproduce it (as minimally and precisely as possible)?
...
Anything else we need to know?
No response
Cloud
No response

Same as https://github.com/oceanbase/odc/issues/339

test pass


Ampersand and equals in href

When using this link in a href:
https://images.unsplash.com/photo-1627637819794-fba32f82be16?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwyNzk5NDJ8MHwxfHNlYXJjaHw5fHwzZCUyMHJlbmRlcmluZ3xlbnwwfHx8fDE2Mzg0MTc3MDM&ixlib=rb-1.2.1&q=80&w=1080
I get the error 'Invalid character in entity name' at the "=" in "cs=". If I remove the "=" the error is now at the ampersand in "b&f" and so on.

I'm also having this issue with image links, also any % symbols get an error, so you can't even url encode the characters

This seems to work fine in 3.3.2 as long as the href is properly encoded, e.g.
<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg">
  <image href="https://images.unsplash.com/photo-1627637819794-fba32f82be16?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwyNzk5NDJ8MHwxfHNlYXJjaHw5fHwzZCUyMHJlbmRlcmluZ3xlbnwwfHx8fDE2Mzg0MTc3MDM&ixlib=rb-1.2.1&q=80&w=1080" height="200" width="200" />
</svg>

Ampersand is not a valid symbol in XML because of entities. They should be encoded to & entity.


Implement visibility listening through Intersection Observer API

https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API

The Intersection Observer API provides a way to asynchronously observe changes in the intersection of a target element with an ancestor element or with a top-level document's viewport.

It is much more efficient and its polyfill is very simple for browsers which do not support it that its code is already in this library

@string-areeb I would happily merge any PR that implements this 😄

Thanks. Will try to implement it in a few days


How are multiplexing cycle folders sorted?

At the moment we are sorting the cycle folders by name, which cannot be the right choice.
I guess we should simply use the order of the dataset resources.

Order of resources is a good default for how we parse them into the OME-Zarr. Afterwards, they are ordered in the OME-Zarr based on the acquisition number.
We can eventually consider whether users should be able to e.g. reorder their resources or assign the order manually, but as long as there is one reproducible way to order them with the resource order, that should cover it for the time being.

Fixed in 0.4.6 (https://fractal-tasks-core.readthedocs.io/en/stable/changelog.html).

Can confirm, the reversed_cycles run of example 2 (https://github.com/fractal-analytics-platform/fractal-demos/tree/main/examples-v1/02_cardio_multiplexing) now is processed correctly and the 3rd cycle is presented as cycle 1 and loaded when the plate is loaded.


  It would have to be tested though.

After testing, this doesn't actually add any speed :D


check parallel mode error

In the latest version of the code, you remove the dependence of apex and use torch amp to train a model.But the function is_parallel in ema.py still import apex to check if a model is in parallel mode.

Thx, we will fix this bug soon.


ERROR: for cvat Cannot start service cvat: driver failed programming external connectivity on endpoint cvat (a419da0881ab3fbc4b555d154d87320e088c58993d9260cc901ff3b708ef06f4): Bind for <IP_ADDRESS>:8081 failed: port is already allocated

The output of docker-compose up -d
ERROR: for cvat  Cannot start service cvat: driver failed programming external connectivity on endpoint cvat (a419da0881ab3fbc4b555d154d87320e088c58993d9260cc901ff3b708ef06f4): Bind for <IP_ADDRESS>:8081 failed: port is already allocated

8081 port might be used by other process. You need to change the port. CVAT's default ports are 8080 (cvat django) and 7080 (cvat-ui nginx). Did you edit it?

@abajaj229 , it seems that you run CVAT server twice or another app uses the 8081 port already. You have to run docker ps and see if another docker app allocates the 8081 port.
It is a problem on your side. We cannot fix it inside CVAT. I will close the issue. Don't hesitate to ask additional questions on our gitter channel.


Release new version

Is the project ready to release a new version with the improvements?

Yes, we plan to release a new version today

@tomaswarynyca  new version v1.1.0 has been released

Great! @lryong
I was looking at the changes, why is the api a BREAKING CHANGE?
The api is just an example for people who want it as a microservice.
The rest of the changes are great and more optimized!!

Yes, there was a problem with the description of the release, this version is more about doing some optimization work.
The description has been updated over.
Thank you for your approval of the project!

Great project! @lryong
Now we need to fix the changelog #25

@tomaswarynyca  OK, https://github.com/AfterShip/email-verifier/pull/25 has been merged.

Great @lryong! Thanks for the corrections and the project!


isTypeSupported always returning false in Windows 8.1 / IE11

I am unable to play any PlayReady encrypted content in Win 8.1 / IE11.
The isTypeSupported method on MSMediaKeys is returning false no matter what is passed.
For example:
var audioResultOne = window['MSMediaKeys'].isTypeSupported("com.microsoft.playready", "audio/mp4");
var videoResultTwo = window['MSMediaKeys'].isTypeSupported("com.microsoft.playready", "video/mp4");
var audioResultOne = window['MSMediaKeys'].isTypeSupported("com.microsoft.playready", "audio/mp4; codecs=\"mp4a.40.2\"");
var videoResultTwo = window['MSMediaKeys'].isTypeSupported("com.microsoft.playready", "video/mp4; codecs=\"avc1.640015\"");
All return false.
I have recreated this in shaka v1.6.5, v2.0.1-debug and dash.js v2.3.0 with multiple reference content including the Microsoft CENC content on the dash.js demo and "assets/oops_cenc-20121114-signedlicenseurl-manifest.mpd".
shaka v1.6.5 gives this error:
Unsupported keySystem
shaka v2.0.1-debug gives:
Shaka Error DRM.REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE ()
dash.js returns the following error:
[89039] DRM: KeySystem Access Denied! -- Key system access denied! -- No valid audio/video content configurations detected!
Does anyone know if Microsoft have changed something in IE? I cannot find any references to this issue.

relevant issue also on dash.js github: https://github.com/Dash-Industry-Forum/dash.js/issues/1676

I've got a Windows 8.1 box with IE 11 version 11.0.9600.17239, update version 11.0.11, and I can't reproduce your results:
MSMediaKeys.isTypeSupported('com.microsoft.playready');
MSMediaKeys.isTypeSupported('com.microsoft.playready', 'video/mp4');

Both return true.  Have you asked for support from Microsoft?

@joeyparrish Thanks for testing. Sorry I should have put IE versions on the original comment.
I am using IE 11 version 11.0.9600.18525, update version 11.0.37.
I have not asked Microsoft for support. Do you have a suggested place to raise a ticket with them?

@joeyparrish I have raised a ticket on the Microsoft Connect portal: https://connect.microsoft.com/playready/feedback/details/3114305

Looks like I do not have permission to view that Microsoft ticket.  In any case, since we can't reproduce your results and there isn't anything obviously wrong with Shaka in this regard, I'm going to close this ticket.  If you get any feedback from Microsoft that points back in our direction, let us know and we can reopen to investigate.  Thanks!


Fix typo in first paragraph

Supports all possible languages available on the VS Code extension marketplace. That’s over 200 languages. All you need is a .tmlangauge file for anything not shipped with Shiki.

tmlangauge → tmlanguage

Thanks!


Add < rahmot > as contributor

Hi! I am Rahmot Afolabi, an Outreachy Intern. I am a mentee experience manager at Girlz, ftw and also just completed product management training. I am super excited to contribute to this awesome project. I am looking forward to utilizing my skills and knowledge in improving the user experience for Galaxy newcomers and also enhance and gain new skills in turn.
I added myself to CONTRIBUTORS.yaml so that I can start making valuable contributions to the project.
Kindly accept me as a contributor! I am committed to contributing value and creativity to this incredible community.
Thanks :)

Hi @rahmot, welcome to the GTN! Being on the contributor list is not a pre-requisite to contributing to the GTN.
So we do not add people to the contributor list until their first contribution to avoid inaccurately increasing our statistics. We will leave this pull request open until you make your first contribution and merge it then :)
Thank you for commenting on the other issue which you which to work on!

Thanks for you contribution @rahmot (and your other open PR)!


Fix purge description

Backup purge had an incorrect description. This corrects it.
Needs a version bump since we already published the gem to RubyGems even though we never officially released the CLI toolbelt.

Codecov Report

Merging #262 into master will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #262   +/-   ##
=======================================
  Coverage   96.10%   96.10%
=======================================
  Files          83       83
  Lines        3750     3750
=======================================
  Hits         3604     3604
  Misses        146      146

Impacted Files
Coverage Δ

lib/aptible/cli/subcommands/backup.rb
100.00% <100.00%> (ø)

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 4fe5427...de7f0b2. Read the comment docs.


How can I make custom factory single?

Hi, here is code:
class CustomFooFactory : IFactory<string, Foo>
{
	public CustomFooFactory() {
		Debug.Log("CustomFooFactory ctor");
	}
	public Foo Create(string value)
	{
		return new Foo(value);
	}
}

interface IFoo
{
	string Value{get;}
}

class IFooFactory : Factory<string, IFoo>
{
}

class Foo : IFoo
{
	public Foo(string value)
	{
		Value = value;
	}

	public string Value { get; private set; }

	public class Factory : Factory<string, Foo>
	{
	}
}

Container.BindFactory<string, Foo, Foo.Factory>().FromFactory<CustomFooFactory>().NonLazy();
var factory = Container.Resolve<Foo.Factory> ();
factory.Create ("1");
factory.Create ("2");
factory.Create ("3");
factory.Create ("4");
factory.Create ("5");

Every time create Foo by factory, will create new CustomFooFactory too, how can I make CustomFooFactory single?

You're right, the factory should be created once and cached, just like how other factories work.
I've fixed this with the most recent commit on the master branch, let me know if that doesn't work

That doesn't work ;)
You forgot to declare the caching variable _factory. Thus the current state won't compile...

Curse my programming hubris!  Thanks.  Fixed now


Not availiable on aternos

Would be nice if this was on a website that aternos supports (curseforge.com, poggit.pmmp.io, modrinth.com) so that it could be suggested for aternos.

Duplicates #25

Would be nice if this was on a website that aternos supports (curseforge.com, poggit.pmmp.io, modrinth.com) so that it could be suggested for aternos.

U can just suggest it on the aternos webpage

minehut.com supports it and I'm sure there are other free server hosting services that do too

You can only suggest mods from those sites
On Thu, Mar 3, 2022, 5:17 AM TNT-King @.***> wrote:

Would be nice if this was on a website that aternos supports (
curseforge.com, poggit.pmmp.io, modrinth.com) so that it could be
suggested for aternos.
U can just suggest it on the aternos webpage
—
Reply to this email directly, view it on GitHub
https://github.com/Sorenon/MCXR/issues/29#issuecomment-1057890895, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ARKXW2KINGCAODDAW2B5TOLU6CGTJANCNFSM5PIRSEHQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID:
@.***>

https://modrinth.com/mod/mcxr-core https://modrinth.com/mod/mcxr-play


Rewrite Jenkinsfile to declarative and build periodically

Ok for me. Note that I am not able to merge the PR.

Periodic builds work even for PRs (which seems super dumb, but whatever)!


Update css to 2.2.0?

@giakki: there's a new css version https://github.com/reworkcss/css/compare/v2.1.0...v2.2.0
I wonder if it has any of our issues fixed?

@giakki: I still get the same error we got with 2.1.0.
Running "uncss:dist" (uncss) task
Fatal error: uncss/node_modules/css: unable to parse undefined: Maximum call stack size exceeded

Have you tried reporting the issue upstream?

Hmm https://github.com/reworkcss/css/issues/56
So I guess we should try PostCSS.

:+1: for PostCSS.

@ben-eb: have you tried making the switch? Not sure how complex it will be...

@XhmikosR I'm actually using PostCSS for another project; the parser is up to twice as fast as the css module, and its way of handling plugins is done in a very modular way. From my initial experiments with it, it seems like it would be a good fit, especially as they are adding support for asynchronous transformations with promises.

I meant if you tried switching to it for uncss :)
I'm all for it especially since it is way more actively developed.
On Feb 28, 2015 12:26 AM, "Ben Briggs"<EMAIL_ADDRESS>wrote:

@XhmikosR https://github.com/XhmikosR I'm actually using PostCSS for
another project; the parser is up to twice as fast as the css module, and
its way of handling plugins is done in a very modular way. From my initial
experiments with it, it seems like it would be a good fit, especially as
they are adding support for asynchronous transformations with promises.
—
Reply to this email directly or view it on GitHub
https://github.com/giakki/uncss/issues/151#issuecomment-76484505.

Ahh, ok. I haven't no, been really busy with university stuff; would like to contribute a bit more to this project but it's hard finding the time. :smile:
But I can't imagine this being too difficult to develop, especially now that we have a good suite of tests.


UTransport::registerListener() using marker trait dispatch for message types + generic

Hey there folks :wave:
After chatting with @tamarafischer and @stevenhartley and reading through the equivalent PR over on up-java, I tried my hand at something similar over here in Rust.
This is very much in draft status to garner feedback! :slightly_smiling_face:
Some Design Considerations
(examples shamelessly ctrl+c, ctrl+v'ed from Chat-Gippity)
Downcasting + Any
use std::any::Any;

pub trait SuperTrait: Any {
    fn as_any(&self) -> &dyn Any;
}

pub trait SubTrait1: SuperTrait {}
pub trait SubTraitN: SuperTrait {}

impl dyn SuperTrait {
    fn downcast_ref<T: SuperTrait + 'static>(&self) -> Option<&T> {
        self.as_any().downcast_ref::<T>()
    }
}

Pros:

Fairly flexible

Cons:

Can lead to run-time errors fairly easily

TypeTag / Discriminants
pub trait SuperTrait {
    fn type_tag(&self) -> TypeTag;
}

enum TypeTag {
    SubTrait1,
    SubTraitN,
    // Other subtraits...
}

Pros:

Not really any in comparison to the others

Cons:

Doesn't really make use of Rust's type checking

Visitor Pattern
pub trait SuperTrait {
    // Method for accepting a visitor. The visitor is an implementation of
    // a trait that will perform operations specific to the type of the object.
    fn accept(&self, visitor: &dyn Visitor);
}

pub trait SubTrait1: SuperTrait {}
pub trait SubTraitN: SuperTrait {}

pub trait Visitor {
    fn visit_sub_trait1(&self, element: &dyn SubTrait1);
    fn visit_sub_trait_n(&self, element: &dyn SubTraitN);
    // Add methods for other subtraits as needed
}

struct ConcreteSubTrait1;
impl SuperTrait for ConcreteSubTrait1 {
    fn accept(&self, visitor: &dyn Visitor) {
        visitor.visit_sub_trait1(self);
    }
}
impl SubTrait1 for ConcreteSubTrait1 {}

struct ConcreteSubTraitN;
impl SuperTrait for ConcreteSubTraitN {
    fn accept(&self, visitor: &dyn Visitor) {
        visitor.visit_sub_trait_n(self);
    }
}
impl SubTraitN for ConcreteSubTraitN {}

struct MyVisitor;

impl Visitor for MyVisitor {
    fn visit_sub_trait1(&self, _element: &dyn SubTrait1) {
        println!("SubTrait1 visited");
    }

    fn visit_sub_trait_n(&self, _element: &dyn SubTraitN) {
        println!("SubTraitN visited");
    }
    // Implement other visit methods as needed
}

Pros

Leans more on Rust's type system

Cons

A lot of boiler-plate!
Not as flexible as Downcasting + Any

New categories of listener added imply a library change + change to all downstream users (unless they did a pattern match with a _ match arm to discard any unknown types...?)

Enum containing trait objects (the solution in this PR)
Pros

Leans on Rust's type system to prevent most compile time issues
Less boilerplate than Visitor pattern

Cons

Not as flexible as Downcasting + Any

New categories of listener added imply a library change + change to all downstream users (unless they did a pattern match with a _ match arm to discard any unknown types...?)

Closing this PR, we're going with another solution


transform_graph generates faulty model after optimization (quantisation).

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
Yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
Linux Ubuntu 16.04
TensorFlow installed from (source or binary):
source
TensorFlow version (use command below):
Python version:
1.4.1
Bazel version (if compiling from source):
0.8.1
GCC/Compiler version (if compiling from source):
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.6)

Describe the problem
I am using a pre-trained style transfer model that I have converted  to .pb format. When I inference a single image through the fp32 model then I can see the styled image at the output of the network and everything works fine. Later on I optimized the model for inference using transform_graph tool with these parameters :
--transforms='
  add_default_attributes
  strip_unused_nodes(type=float)
  remove_nodes(op=CheckNumerics)
  fold_constants(ignore_errors=true)
  fold_batch_norms
  fold_old_batch_norms
  quantize_weights
  quantize_nodes
  strip_unused_nodes
  sort_by_execution_order'

the quantised models (.pb) generated successfully but now I have problem with inference when I execute sess.run().
Source code / logs
Traceback (most recent call last):
  File "Inf_Image_pb.py", line 89, in <module>
    Session_out = sess.run(l_output, feed_dict={l_input: image})
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 889, in run
    run_metadata_ptr)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 1120, in _run
    feed_dict_tensor, options, run_metadata)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 1317, in _do_run
    options, run_metadata)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 1336, in _do_call
    raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.InvalidArgumentError: Shapes of all inputs must match: values[0].shape = [474,712,3] != values[2].shape = []
	 [[Node: Reshape/shape = Pack[N=3, T=DT_INT32, axis=0, _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_input_image_0_0, _arg_input_image_0_0, Reshape/shape/2)]]

Caused by op u'Reshape/shape', defined at:
  File "Inf_Image_pb.py", line 74, in <module>
    producer_op_list=None
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/importer.py", line 313, in import_graph_def
    op_def=op_def)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 2956, in create_op
    op_def=op_def)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 1470, in __init__
    self._traceback = self._graph._extract_stack()  # pylint: disable=protected-access

InvalidArgumentError (see above for traceback): Shapes of all inputs must match: values[0].shape = [474,712,3] != values[2].shape = []
	 [[Node: Reshape/shape = Pack[N=3, T=DT_INT32, axis=0, _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_input_image_0_0, _arg_input_image_0_0, Reshape/shape/2)]]

I have tried other tensorflow versions, other bazel versions to rebuild the tool and the legacy quantisation tool 'quantize_graph' with mode --mode=eightbit but still fail to inference. In addition I tried other transform combinations using the transform_graph tool, other batch sizes and other input dimensions but still getting error. What is this error refers to ? I can't find any useful information online ..

This is the part that I am getting the error :

@suharshs can you comment or redirect? Thanks!

cc @petewarden
transform_graph has had some hard to debug issue for various models in the past. From your error, it seems that some transformation is screwing up shape information in the graph, but i am really not sure.
We have focused our 8-bit quantization efforts for mobile models on TensorFlow Lite : https://www.tensorflow.org/mobile/tflite/. Currently TFLite quantizations requires quantizing both weights and activations, though this may change.
We use fake quantized training (https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/quantize) to get models that are compatible with TensorFlow Lite's converter, TOCO. TOCO can then convert these models to fully quantized models. We find that for many models, quantizing with training in the loop is necessary for good accuracy.
We are working on making these rewriters more general over various models, so expect improvements in this department.
Here are some examples for how we train mobilenet_v1 for quantization : https://github.com/tensorflow/models/blob/master/research/slim/nets/mobilenet_v1.md
The graph resulting from https://github.com/tensorflow/models/blob/master/research/slim/nets/mobilenet_v1_eval.py is compatible with TensorFlow Lite.
Hope that helps!
What model architecture are you trying to quantize? Are you ok with quantizing both weights and activations?

Hi @suharshs,
Thanks for the information. I am currently not interested on gaining back the quatnization error through re-training but only to manage to inference through the quantized graph. The model is a style transfer model and I want to quantize both weights and activations as I am showing above.

Nagging Assignee @suharshs: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @suharshs: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @suharshs: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @suharshs: It has been 78 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @suharshs: It has been 94 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @suharshs: It has been 110 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Hello,
I think that the activity is expected by you ...
Thanks.

Hi @kmonachopoulos ,
We are working on putting together weight and activation quantization for TensorFlow Lite (that doesn't require training), will keep you posted once that is ready.
In the meantime can you inspect the inputs of the culprit "Reshape/shape" (looks like it is a Pack node) node before and after you call the transformation to see what exactly is changing. This may give you some hints as to what is going wrong with the shapes.

Nagging Assignee @suharshs: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @suharshs: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!


nixos/kanidm: allow origin url ending without slash

kanidm has a new option strict_redirect_uri that is default enable, which enforces exact matches for redirect, which in this module are
called origins. Since not all programs use origins ending in a slash, we should allow arbitrary origins.
Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Is there anything blocking this? This is important for provisioning on 1.4.0


functionapp deployment user show fails

This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az functionapp deployment user show
Errors:
'function' object has no attribute 'metadata'
Traceback (most recent call last):
python3.6/site-packages/knack/cli.py, ln 206, in invoke
    cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 608, in execute
    raise ex
cli/core/commands/__init__.py, ln 666, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
cli/core/commands/__init__.py, ln 659, in _run_job
    six.reraise(*sys.exc_info())
...
cli/core/commands/arm.py, ln 761, in show_exception_handler
    raise ex
cli/core/commands/arm.py, ln 747, in handler
    return getter(**args)
web/v2019_08_01/operations/_web_site_management_client_operations.py, ln 40, in get_publishing_user
    url = self.get_publishing_user.metadata['url']
AttributeError: 'function' object has no attribute 'metadata'

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Put any pre-requisite steps here...
az functionapp deployment user show

Expected Behavior
Environment Summary
Linux-4.19.84-microsoft-standard-x86_64-with-debian-buster-sid
Python 3.6.5

azure-cli 2.2.0

Extensions:
azure-devops 0.17.0

Additional Context

functionapp

Hi @bmc-msft Just wanted to check in and see if you are still experiencing this issue?


⚠ Bofrost.de has degraded performance

In d0808cf, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 883 ms

Resolved: Bofrost.de performance has improved in a8c82cf after 308 days, 15 hours, 52 minutes.


🚀 [Feature] Frontend: Mall Talk History from Backend

🚀 Feature

As a user I want to see the list of the calls I received, rejected or missed.
Here is how to connect to the backend to read or update the history of incoming calls:
  query {
    incomingMallTalkHistory {
      id
      status
      from {
        username
      }
    }
  }

Where status is an enumerator:
export enum MallTalkStatus {
  'UNKNOWN' = 'UNKNOWN',
  'ACCEPTED' = 'ACCEPTED',
  'REJECTED' = 'REJECTED',
  'MISSED' = 'MISSED',
}

When this query is called, all mall talks with status UNKNOWN are set to MISSED. Therefore the status UNKNOWN should never reach the client.
To update the status:
mutation($tableId: Int!, $fromId: Int!, $status: MallTalkStatus!) {
  updateMallTalkHistoryStatus(tableId: $tableId, fromId: $fromId, status: $status) {
    id
    status
    from {
      username
    }
  }
}

This should be done, when the user clicks on accept or reject on an incoming call.

Duplicate of #2474


Update torque sensor

Contemplating up to 3 axis as 6 would imply a force sensor, communicated separately.
Measurements of a single axis, multi-axis sensors could publish each value in a separated named topic.

@ibaiape can you fill all the values in the specs message with this datasheet, which is the current torque torque sensor integrated in H-ROS.

max_torque:  50
resolution: 0.1
device_type: 0
force_direction: 2
max_rpm: 0  # Not taken into account if the sensor type is static
safe_overload: 150
max_overload:  400
axis:  1
max_rate: ? # Unspecified in datasheet, assumed max possible physical rate, calculable with connector&cable max rate divided by measurement bit size
min_ideal_temp: -10
max_ideal_temp: 60
min_operating_temp:  -10
max_operating_temp:  85
min_error_margin: 0.1
max_error_margin: 0.1
Removed min_torque (as it's either 0 or negative max_torque).
Renamed "calibrated" temp to "ideal" temp for easier understanding.
Added resolution.
Renamed max/min "accuracy" for max/min "error margin".
Removed force_sensor, if there's a force reading it will be visible through it's own topics.


Updating links, fixing some grammar/typos.

The main change here is to update the links to the slim/ directory in the tensorflow/models repo, since they've been moved to the research/ subdirectory. I also fixed a few typos/grammar issues along the way. Thanks for making this into a standalone tool!

Not really necessary since this is more about the code, the grammar seems fine by me, and I don't think good capitalization is really all that helpful, but thanks for updating the links!


web font的跨域问题

引入font-awesome的css，会加载woff等文件，但这些文件没有设CORS啊。。。

Font from origin 'https://openapi.baidu.com' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource
同上
bootstrap的icon在https下全都不能用

Font from origin 'http://apps.bdimg.com' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://vpsug.com' is therefore not allowed access.
我也是

这种低级错误也犯，真烦

这个问题不准备处理了?还是有什么技术难点?


Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Hello,
I am using Angular 6 and laravel 5.7 to create a project.
Installed the package  barryvdh/laravel-cors.
I set the baseURL of my requests from a service of my  angular project  to http://www.mydomain.com/laravel/public/api for production deployment purpose. In my local server heading to www.mydomain.test/api works good, but when i deploy it cause of the preflight request i have this error :

Access to XMLHttpRequest at 'http://mydomain.com/laravel/public/api/sendMessage' from origin 'http://www.mydomain.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Any idea how can i fix it ?

hi
I check package
its disabled.
you must add manual to your app

我也遇到了相同的问题，但是我最终解决了它。
在 Laravel 中不要使用 public function __construct(){}，它会导致你的http请求头不会被改变。
把它去掉就可以了。
希望能帮助到你！

the problem was not on the package , the server didn't support the laravel i was using.

@amorZhu
谢谢你帮我解决了这几天的困扰！

@AlexGrabovaj you found any solution?


QUESTION: Does everparse produce actual parsers?

Hi everyone, hi @tahina-pro,
I read the papers and am interested in the parser/serialiser pair generation of everparse. In the README.md it is also mentioned that this project is about producing verified parsers from 3d message format descriptions.
However, in the documentation, and in the code I managed to generate using the everparse.sh script, I can only find validation code.
Am I missing something?
Thanks a lot for your reply :)

Okay I found that it is in fact quackyducky which does that (it is in the paper but almost absent from the documentation). I am however not able to produce C code with quackyducky yet.

The general philosophy of EverParse is to minimize the number of copies done by the parser.
So, usually, one runs a validator and then uses EverParse's accessors to read relevant parts of the input directly from the input buffer.
Additionally, in 3d you can augment the validation code with parsing actions that build some parsed representation of the input format. https://project-everest.github.io/everparse/3d-lang.html#actions

Great! Thanks for the reply!
Okay, I see, it makes sense. And, if I understood correctly, the same apply to write data to a buffer: one has to use different functions to write different parts of the data, right?
I will check the actions of 3d, that seems interesting thanks!
Also, are you pushing 3d instead of quackyducky because one can do the same things (and more?) with 3d?
Thanks again :)

Not necessarily pushing 3d over qd. They have different roles. If you are trying to parse binary formatted data from an existing C application, then 3d is a good fit. If you're trying to use verified parsers within a larger F* project, then qd is likely a better fit.

Thanks a lot for your reply :) That makes more sense now 👍
I am trying to write an example and I still have something I don't know: I made a toy an example with this spec:
struct {
    uint16 content<2..10>;
} content_one;

struct {
    uint16 content<12..15>;
} content_two;

enum {one(0), two(2), (255)} content_type;
struct {
    uint64 id;
    uint32 size;
    uint8 arr[size];
    content_type typ;
    select(typ) {
        case one: content_one;
        case two: content_two;
    } content;

} message;

I am now trying to write a simple program that serialises one of those and parses it back, just to demonstrate the capability of the tool :)
How should I write the uint64_t for example? Reading the paper, I have a sense of how to write list (with the finaliser) and the enum provides write/read functions. But what about the simple types? Should I write them in the buffer "by hand" but then how to make sure they are a valid representation of my value?
Thanks a lot for your help :)


Fix | Query

Fixes #
Proposed Changes

Json dot notation doesn't work well with a dash symbol in key name. The fix replaced the dot notation with brackets


Include a search option on the build dashboard

https://flutter-dashboard.appspot.com/#/build
While triaging flakes, we wanted to look up a particular test to see if it had been flaky recently. The dashboard only shows the test name on hover, so it took a while to track down the one we were looking for.
It would be nice if there was a search bar that made it easier to find, like the benchmarks page.

fyi @goderbauer :)

As we're adding more and more devicelab tests, I think this search/filter option would be very very useful.

There is a proposal for this: https://github.com/flutter/cocoon/pull/948


📃:  Want to add a vanilla JS project that is 'Currency Converter'

:red_circle: Title : Currency Converter
:red_circle: Aim : Helps to convert one currency rate to another currency rate(Support more than 150 country) & It has implement all the JS core logic
:red_circle: Tech Stack Used :  HTML, CSS, JavaScript
Screenshots 📷

:white_check_mark: To be Mentioned while taking the issue :

Full name :  Suvadip Sana
What is your participant role?  gssoc-extd, hacktoberfest

Happy Contributing 🚀
All the best. Enjoy your open source journey ahead. 😎

#108


Swift 5 infinite loop - remove optionals

As explained in this issue, this PR removes the optional methods
https://github.com/lucianomarisi/JSONUtilities/issues/31
Either this PR or #33 should be merged, not both

Codecov Report

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

@@          Coverage Diff          @@
##           master    #32   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           6      6
  Lines         144    158   +14
=====================================
+ Hits          144    158   +14


Remove track1 packages for services that are being spun down

Packages impacted by this PR
@azure/cognitiveservices-luis-authoring
@azure/cognitiveservices-luis-runtime
@azure/cognitiveservices-qnamaker
@azure/cognitiveservices-qnamaker-runtime
Issues associated with this PR
https://github.com/Azure/azure-sdk-for-js/issues/25726
Describe the problem that is addressed by this PR
Removing deprecated packages for services that are in the process of being decommissioned and their workloads migrated to other services.

/check-enforcer override


Validator returns all error messages associated with textfield

Hi Is there a way where the validator returns all the error messages associated with the textfield rather than just returning the error message associated to the first rule that it fails on?
For example a text field has a RequiredRule(), MinLengthRule(6), RegexRule(1digit), RegexRule(1letter).
When the user focuses on this textfield a message is displayed stating:
"This is a required field. Minimum Length 6. One number. One Letter."
As each rule is satisfied the message associated with that rule disappears.
Thanks

There actually is not as of right now. ValidationRule's validateField() method only returns the first one that fails. Here's the code snippet:
return rules.filter{ !$0.validate(self.textField.text ?? "") }                     .map{ rule -> ValidationError in return ValidationError(textField: self.textField, errorLabel:self.errorLabel, error: rule.errorMessage()) }.first

@w007up  You can do what you just said by using a single regex rule satisfying all the rules
^(?=.*[0-9])(?=.*[a-zA-Z])(.{6,})$

you can test it here
https://regex101.com/r/iI5uR2/1
I would suggest to use this for complex rules with one single message, and close this issue instead?

@racer1988 I understand your suggestion of using a regular expression that includes all the rules but I think what @w007up was asking is how will he notify which rule has failed. The regular expression will just display the same error message each time. For example, say a user types one letter (thus fulfilling two of the requirements of the regular expression) but doesn't satisfy the other constraints of the regular expression. The resulting error message would still display "This is a required field. Minimum Length 6. One number. One Letter." when in fact it should show "Minimum Length 6. One number."

Ah ok, he wants multiple strings to be concatenated and removed based on the active validation.
That is a nice improvement but requires quite some new work on the validation part.
maybe it could be a separate validation method

For sure. It will definitely require a separate validation method as the current one only returns the first rule that fails.

Declaring Backlog Bankruptcy!
I'm not going to lie this project took off and I'm pretty overwhelmed by it. I no longer actively code in Swift and I need help from more contributors in order to keep this project relevant. I'd like to find someone to transition as lead maintainer or help this codebase find a happy home with a company.
The codebase for this project is relatively small and focused project for who is looking to contribute. It does one thing, and does it pretty well. It has pretty high test coverage and good adoption. I think my ideal maintainer / contributor would work for a company that actively uses SwiftValidator in their production application.
If you're interested in helping out please comment on #204


admin username ignored

The admin username for first time setup
SETUP_ADMIN_USER="thisisme"
The above portion of config.env appears to be being ignored..

I'm an idiot.. i was re-deploying but didn't delete the live folder first..

@danmed No worries! But remember, your data is stored in docker volumes, not the live folder. The live folder just has deployment files and secrets.
List out your docker volumes with this:
docker volume ls

If you want to clear the postgres database, you should delete the one with postgres_data in the name. Otherwise, anything with "setup" in the name won't apply, because the deployment will just grab your old volume!

Yep,  I had gotten rid of all images, volumes and containers.. but when
running deploy.sh, if the live folder is already populated then it doesn't
output the default username and password on completion and will also ignore
the username set in config.env.
i had to rm -rf it to get things to play ball as a new install.
On Sun, Jul 2, 2023 at 11:50 PM ubergeek77 @.***> wrote:

@danmed https://github.com/danmed No worries! But remember, your data
is stored in docker volumes, not the live folder. The live folder just has
deployment files and secrets.
List out your docker volumes with this:
docker volume ls
If you want to clear the postgres database, you should delete the one with
postgres_data in the name. Otherwise, anything with "setup" in the name
won't apply, because the deployment will just grab your old volume!
—
Reply to this email directly, view it on GitHub
https://github.com/ubergeek77/Lemmy-Easy-Deploy/issues/22#issuecomment-1616918032,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AA5S4WQ435HOEYJRYYVSVJTXOH3LLANCNFSM6AAAAAAZ3VK3ZE
.
You are receiving this because you were mentioned.Message ID:
@.***>


Update rules.json

Fixes #69

Any news so far?

Hey! It seems all good, although the tests seem to fail for some reason (testling hangs).

And published as 1.6.1 :-)

thanks :heart:

Thanks for merging! Not quite sure what happened, but for some reason an is still in the rules list. Should I open another issue for this?

@felixhageloh yes please, it will be reflected in the CHANGELOG this way :-) Thanks!


[#4558] Add protocol buffers message

#4558

Codecov Report

Merging #5764 into master will increase coverage by 0.01%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master    #5764      +/-   ##
==========================================
+ Coverage   40.63%   40.65%   +0.01%
==========================================
  Files        2923     2923
  Lines       87880    87845      -35
  Branches    11557    11560       +3
==========================================
- Hits        35714    35713       -1
+ Misses      49072    49039      -33
+ Partials     3094     3093       -1

Impacted Files
Coverage Δ

...oint/profiler/sender/grpc/AgentGrpcDataSender.java
0% <ø> (ø)
:arrow_up:

...t/collector/receiver/grpc/service/SpanService.java
5.71% <0%> (+1.06%)
:arrow_up:

...point/profiler/sender/grpc/SpanGrpcDataSender.java
0% <0%> (ø)
:arrow_up:

...t/collector/receiver/grpc/service/StatService.java
6.06% <0%> (+1.06%)
:arrow_up:

...point/profiler/sender/grpc/StatGrpcDataSender.java
0% <0%> (ø)
:arrow_up:

...vercorp/pinpoint/rpc/packet/ClientClosePacket.java
55.55% <0%> (-11.12%)
:arrow_down:

...pc/server/LoggingServerMessageListenerFactory.java
90% <0%> (-10%)
:arrow_down:

...rc/main/java/com/navercorp/pinpoint/test/Item.java
70% <0%> (-3.34%)
:arrow_down:

...orp/pinpoint/rpc/server/DefaultPinpointServer.java
79.92% <0%> (-0.36%)
:arrow_down:

...java/com/navercorp/pinpoint/rpc/DefaultFuture.java
74.16% <0%> (+1.66%)
:arrow_up:

... and 2 more

Continue to review full report at Codecov.

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


Filename can be a nested path

TL;DR This patch allows setting of arbitrary filename to support uploads of directories. This matches current spec and behaviour of Chrome.
Example
for (const filepath of ['foo/bar.txt', 'foo/baz.txt']) {
  form.append('uploads', createReadStream(filepath), {filepath})
}
// Content-Disposition: form-data; name="uploads"; filename="foo/bar.txt"
// Content-Disposition: form-data; name="uploads"; filename="foo/baz.txt"

Edit: Updated to reflect latest patch.
Description
The FormData .append spec defers to the File API spec which states:

There are numerous file name variations and conventions used by different underlying OS file systems; this is merely the name of the file, without path information.

However, the HTMLInputElement.webkitdirectory  spec supports relative paths, and Chrome sets them as the filename=... in the form field.
This is also supported by Multer, for example.
Caveat Emptor
Breaking change for anyone manually specifying filename as a full path. Does not change behaviour on auto-detecting of filename from stream, http, etc.
Edit: The filepath option overrides filename. This PR is no longer a breaking change.
See also

https://github.com/form-data/form-data/pull/203#issuecomment-218624023

😱 What's wrong with CI tests?! Worked fine for me. 🤔

Coverage remained the same at 97.949% when pulling 0cd101cf33ad5e39a47e38bb466b7d42a5a38e4e on sebdeckers:patch-1 into d7398c3e7cd81ed12ecc0b84363721bae467db02 on form-data:master.

The CodeFactor issues seem to be unrelated to this patch, AFAICT.

Thanks for the PR @sebdeckers. Do you mind to add a test for the use case?
Also, how strong do you feel about using filename for the full path?
If we'd add something like filepath – it won't be breaking change.
Thanks.
PS. I'll check what's wrong with CodeFactor.

I removed CodeFactor (it was weird and inconsistent) – it should be better now.

Ooh, that's a great idea! 💡 How did I not think of just adding a new property. 😅
Will refactor this PR and add testing.

Coverage increased (+0.02%) to 97.97% when pulling 04f974614ddb3157f52b62ac55b5f4312aa66a55 on sebdeckers:patch-1 into d7398c3e7cd81ed12ecc0b84363721bae467db02 on form-data:master.

Coverage increased (+0.02%) to 97.97% when pulling 8e49db00a433bbb2cd555ebccf1d5a3bfb410cae on sebdeckers:patch-1 into d7398c3e7cd81ed12ecc0b84363721bae467db02 on form-data:master.

Coverage increased (+0.02%) to 97.97% when pulling ecc572af5a63150dd3406771037d12febf6c9a0d on sebdeckers:patch-1 into d7398c3e7cd81ed12ecc0b84363721bae467db02 on form-data:master.

Coverage increased (+0.02%) to 97.97% when pulling 26ecb8137ad8901204b1da97d4605906e52d96e7 on sebdeckers:patch-1 into d7398c3e7cd81ed12ecc0b84363721bae467db02 on form-data:master.

All right. Took me a few tries to get Windows support working but this should do the trick. 😅 Appveyor is very useful.

Thanks for the update. Looks good in general, just want to discuss implementation details.

Coverage increased (+0.04%) to 97.99% when pulling a8f6303542f8de553abf044fb9c7848c19e48871 on sebdeckers:patch-1 into d7398c3e7cd81ed12ecc0b84363721bae467db02 on form-data:master.

(Sorry for the coveralls spam ... It seems to leave a comment on every rebase.)
Fixed as per review:

Removed normalize-path dependency in favour of .replace('\\', '/')
Refactored filename assignment to avoid mutating the variable.

Also fixed:

contentType detection based on both options.filepath and options.filename

Coverage increased (+0.03%) to 97.98% when pulling 7f0fc80a6b6a007d5d3acfa2012d239f68433f00 on sebdeckers:patch-1 into d7398c3e7cd81ed12ecc0b84363721bae467db02 on form-data:master.

Don't worry about coveralls :) With greenkeeper gone from this repo, it's all nice and quiet :)
And thank you for walking extra mile :)

Coverage increased (+0.03%) to 97.98% when pulling b9f38fb1ca86948732c32bc791f5bd463891b484 on sebdeckers:patch-1 into d7398c3e7cd81ed12ecc0b84363721bae467db02 on form-data:master.

Coverage increased (+0.03%) to 97.98% when pulling 125046c464f0cd5e38e764d6d3a90a470b5f8969 on sebdeckers:patch-1 into d7398c3e7cd81ed12ecc0b84363721bae467db02 on form-data:master.

Coverage increased (+0.03%) to 97.98% when pulling 125046c464f0cd5e38e764d6d3a90a470b5f8969 on sebdeckers:patch-1 into d7398c3e7cd81ed12ecc0b84363721bae467db02 on form-data:master.

Coverage increased (+0.03%) to 97.98% when pulling 125046c464f0cd5e38e764d6d3a90a470b5f8969 on sebdeckers:patch-1 into d7398c3e7cd81ed12ecc0b84363721bae467db02 on form-data:master.

Coverage increased (+0.03%) to 97.98% when pulling 125046c464f0cd5e38e764d6d3a90a470b5f8969 on sebdeckers:patch-1 into d7398c3e7cd81ed12ecc0b84363721bae467db02 on form-data:master.

Coverage increased (+0.03%) to 97.98% when pulling 125046c464f0cd5e38e764d6d3a90a470b5f8969 on sebdeckers:patch-1 into d7398c3e7cd81ed12ecc0b84363721bae467db02 on form-data:master.

Coverage increased (+0.03%) to 97.98% when pulling 125046c464f0cd5e38e764d6d3a90a470b5f8969 on sebdeckers:patch-1 into d7398c3e7cd81ed12ecc0b84363721bae467db02 on form-data:master.

Coverage increased (+0.03%) to 97.98% when pulling 125046c464f0cd5e38e764d6d3a90a470b5f8969 on sebdeckers:patch-1 into d7398c3e7cd81ed12ecc0b84363721bae467db02 on form-data:master.

Coverage increased (+0.03%) to 97.98% when pulling d38e932dc1e3418d32d9f8869f103b376ce9bd3d on sebdeckers:patch-1 into d7398c3e7cd81ed12ecc0b84363721bae467db02 on form-data:master.

Coverage increased (+0.03%) to 97.98% when pulling 517081ab97886d9a554c0726a8b22e91ce628396 on sebdeckers:patch-1 into d7398c3e7cd81ed12ecc0b84363721bae467db02 on form-data:master.

Coverage increased (+0.03%) to 97.98% when pulling 517081ab97886d9a554c0726a8b22e91ce628396 on sebdeckers:patch-1 into d7398c3e7cd81ed12ecc0b84363721bae467db02 on form-data:master.

🤞

Coverage increased (+0.03%) to 97.98% when pulling 9512d0c955e983d8d001b953def3e535984132dc on sebdeckers:patch-1 into d7398c3e7cd81ed12ecc0b84363721bae467db02 on form-data:master.

Coverage increased (+0.03%) to 97.98% when pulling 9512d0c955e983d8d001b953def3e535984132dc on sebdeckers:patch-1 into d7398c3e7cd81ed12ecc0b84363721bae467db02 on form-data:master.

Looks like it's in good working state. I invited you as a Collaborator, you can merge when it's passes. Thank you.

@alexindigo Thanks! It's an honour. Appreciate your guidance & patience. 🤝

Thank you. I'll publish it shortly.

Published v2.2.0. Thanks again.


CETL's cetl::any

Fix for issue #83

@thirtytwobits this is waiting for review. The Sonar failure is due to the coverage check which we discussed at the call.


Shorten block hash a la short-bech32

Is your feature request related to a problem? Please describe.

Describe the solution you'd like

Currently, we display the full block hash on PageBlock. It would be nicer to apply the same principles to the block hash as we do to bech32 addresses. We should shorten the hash and display the full hash in a tooltip.
Describe alternatives you've considered

We could leave it as is, but this would be an easy improvement.
Additional context

please consider #1741


Errors when running zcam.py

Error when running zcam.py
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 2088, in __call__
    return self.wsgi_app(environ, start_response)
  File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 2073, in wsgi_app
    response = self.handle_exception(e)
  File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 2070, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1515, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1513, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1499, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
  File "/home/alex/z-cam/zcam.py", line 140, in home
    to_url2 = "https://api.telegram.org/bot"+ API_KEY +"/sendMessage?chat_id="+ str(user_id) +"&text="+ str(log_msg)
NameError: name 'user_id' is not defined

I really think you should allow command line arguments to specify if you want bit.ly or telegram. Also, looks like bitly also blocks the ngrok links.

Add your telegram bot api as mentioned.

I know what the issue is, but not everyone would want to do that by default. I think there should be a way to let people use telelgram bot api or not.

Use older version for that


If POSEPOCH is not present, copy the value from PEPOCH

Hi Matt,
I came across an issue with the DATE parameter (PR to follow shortly), and while looking at fixing it I found that psrqpy seemed to have a significantly reduced number of POSEPOCH values as compared to a query to psrcat. Digging into the psrcat source, it seems that if a value for POSEPOCH is not set for a source, psrcat will copy over the value from the PEPOCH parameter to fill in the gap.
I've run the pytest suite on the PR and this passes all tests. Any warnings also appeared in the current HEAD version. Though there will be a slight reduction in code coverage as I haven't written new tests.

❯ git symbolic-ref --short HEAD
posepoch_from_pepoch
❯ pytest
============================= test session starts ==============================
platform linux -- Python 3.9.5, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
rootdir: /home/suddenly/git/psrqpy, configfile: pytest.ini
plugins: socket-0.5.1, cov-3.0.0, anyio-3.3.0
collected 36 items
psrqpy/tests/query_test.py ....................................          [100%]
=============================== warnings summary ===============================
psrqpy/tests/query_test.py::test_ppdot_diagram
psrqpy/tests/query_test.py::test_ppdot_diagram
psrqpy/tests/query_test.py::test_ppdot_diagram
psrqpy/tests/query_test.py::test_ppdot_diagram
psrqpy/tests/query_test.py::test_ppdot_diagram
psrqpy/tests/query_test.py::test_ppdot_diagram
DeprecationWarning: np.str is a deprecated alias for the builtin str. To silence this warning, use str by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.str_ here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
-- Docs: https://docs.pytest.org/en/stable/warnings.html
======================= 36 passed, 6 warnings in 24.46s ========================

Here's a copy of the C code in psrcat v1.66, definePosEpoch.c:definePosEpoch() as a quick reference.
/* ************** */
/* Position Epoch */
/* ************** */
void definePosEpoch(pulsar *psr,int ip,int type)
{
  int ip1,len,date,i;
  char ref[4];
  double val1;
  /* If posepoch is not set, then set it to the period epoch */
  if (type==1)
    {
      ip1 = getParam("PEPOCH",NULL);
      if (psr->param[ip1].set1==1)
        {
          val1 = psr->param[ip1].shortVal;
          psr->param[ip].set1 = 1; psr->param[ip].shortVal = val1; sprintf(psr->param[ip].val,"%8.2f",val1);
          psr->param[ip].derived = 1;
          if (pcat_maxSize[ip] < strlen(psr->param[ip].val)) pcat_maxSize[ip]=strlen(psr->param[ip].val);
        }
    }
...
}

I've tried to match your code style, but let me know if there's anything off in that regard or anything else you'd like me to change.
Cheers,
David

@David-McKenna Thanks for spotting this bug and fixing it. Your change looks good to me.


Improvement over image component

As per the design introduced in #4563 for an enhanced version of browsing results with sensitive images, the image component requires some changes.
Description
Both versions of the component documented in the Design Library have the following changes:
Image large

Blur layer over image has the bg-blur variable
In hover and focus, the component shows the text "Sensitive content" inside. Center and bottom aligned

Image small

Blur layer over image has the bg-blur variable
The text "Sensitive content" replaces the CC license icons
In resting state, the label has the text-secondary variable applied
In hover and focus states, the label has the text variable applied

The alias mentioned above go as (copied from this comment):
Colors

white-88: #FFFFFF at 88%
black-72: #000000 at 72%

Alias
# Light theme

:root {
	bg-blur: var(white-88);
}

# Dark theme

:root {
	bg-blur: var(black-72);
}

Additional context
The tokens applied are according to #3592 project

In the process of implementing this I have observed that the text "Sensitive content" does not look very good for tall images. For example, see image number 5 in the second row here.

@fcoveram what would you recommend as the course of action in that case?

That looks good to me


Template Error

Having an issue where an attached template immediately reverts back to its original size once the token is moved. For specifics, the issue occurs after resizing a template that is already attached to a token. So, if I create a 10ft circle and attach it to a character token, I can move it around just fine. If I later resize that template to 15 ft (for example), it works fine until the token is moved at which point it immediately reverts to the original size at the time of attachment. I've disabled all of my mods except those listed below. I am not getting any errors in the console. Not sure if this is a feature (locking the template size) that was recently introduced or a bug.
Foundry 0.7.9
PF2e Ruleset
Token Attacher
Libwrapper
Select Anything Tool (required to attach the template)

Once something is attached it'll keep their position and size relative to the base token. If you want to change the size of the template but keep the token the same size you can use the quick edit mode. This behaviour was introduced in token attacher 4.0.

Ok, I thought it may have been something I missed. Thanks


Fetch schema (Not Fully Documented Issue)

Todo
I still need to document this issue
https://rust-driver.docs.scylladb.com/stable/schema/schema.html

The get_cluster_data function has been implemented in ScyllaSession. From the ClusterData module, the only function that has been migrated so far is get_keyspace_info, which provides access to data similar to that found in this Rust driver documentation.
A few functions from ClusterData could still be useful to migrate, such as get_endpoints and get_nodes_info.

As the PR #33 doesn't fully implement this issue it should either not close it or another issue describing the remaining stuff be created.


Error messages (35)

Previously
{
   "indexP"            : 0,
   ${indexP.${indexP}} : "newvalue"
}

caused
'Could not set parameter '${indexP.${indexP}}' with value 'newvalue'! Reason: 'int' object is not subscriptable'
And this is correct.
With latest changes in the JsonPreprocessor, the error message changed to:
'expected string or bytes-like object'
This seems to be an internal error and is not helpful for users. Please restore the previous error message.

This ticket was solved on stabi branch.

Retest successful. Issue can be closed.

merged for version 0.13.1


Add FAA

Faculty of Administration and Business, University of Bucharest
for e-mail: student.faa.ro
website: faa.ro

@wizzzaro Pull request merged. Thank you!


launchMode attribute cause error

I use Ti SDK  9.0.0
Android SDK 23-29
If I add the launchmode attribute in the activity tag,  causes en error when compiling:
tools:replace specified at line:5 for attribute tools:launchMode, but no new value specified
[ERROR] :  [GRADLE] /Users/xavieralfeiran/Documents/Appcelerator_Studio_Workspace/ContactMeLater_and/build/android/app/src/debug/AndroidManifest.xml Error:
[ERROR] :  [GRADLE] 	Validation failed, exiting
[ERROR] :  [GRADLE]
[ERROR] :  [GRADLE] FAILURE: Build failed with an exception.
[ERROR] :  [GRADLE]
[ERROR] :  [GRADLE] * What went wrong:
[ERROR] :  [GRADLE] Execution failed for task ':app:processDebugManifest'.
[ERROR] :  [GRADLE] > Manifest merger failed with multiple errors, see logs
Also, if i take out the launchMode, compiling goes fine, but when calling the deep link, app opens but deeply callback function is not fired.

Second issue with reported also with Ti SDK 9.0.0, 8.3.1, 8.2.0  and 8.0.0
java version 1.8.0
When deep link is clicked, app goes to the foreground and console log shows:
[ERROR] :  JNIUtil: !!! Unable to convert unknown Java object class 'java.util.ArrayList' to JS value !!!
[ERROR] :  JNIUtil: !!! Unable to convert unknown Java object class '[B' to JS value !!!


External API's Calling My API Secured with Azure Active Directory

If I have a Web API secured with Azure Active Directory, is this the flow used for calling it from another Web API?
If the calling Web API is an external application, is the answer the same?

@RehanSaeed
Let's name upstream the calling Web API; and downstream the called Web API.
it depends on whether you want to call downstream from upstream in the name of the user or in the name of the application itself.

if you want to call downstream in the name of the user, you'd need to use the On-behalf-of flow: See Service to service calls on behalf of the user
if you want to call downstream in the name of the upstream Web API (with no user), then client credentials, as illustrated by this sample, is the thing to do. See Client credential flows

Closing this issue as it's now answered.


Datepicker methods create second inline calendar

I am trying to find a way to refresh an inline datepicker.
Expected behaviour
Creating an inline calendar with
$('#calendar div').datepicker({});
and then running
$('.datepicker').datepicker('update', '');
should refresh the calendar as described in the docs
Actual behaviour
A second inline calendar is created below the existing one.
Datepicker version used
1.6.4, 1.7.0-dev, 1.7.0-RC1
Example code
Jsfiddle example to reproduce the problem:
https://jsfiddle.net/b0hob8gu/4/

After further experimentation it seems that when the calendar is created inline on a div, the 'update' (and other) datepicker methods have to performed on that div, e.g.,
$('#calendar div').datepicker('method', arg1, arg2);
and not on the element with class "datepicker", e.g.,
$('.datepicker').datepicker('method', arg1, arg2);
as indicated in the documentation.
Do I have that right?


Enhancement: add usb passthrough [CI SKIP]

IMPORTANT: Please do not create a Pull Request without creating an issue first.
Problem:
This is new feature, please check this PR for more detail. You could click here for readability.
Solution:
According to this enhancement, we could split this into two major tasks in summary:

[ ] Expose KubeVirt USB Passthrough config - enable USB Passthrough feature
[ ] Create external device plugin - enable ability to choose specified USB device

Related Issue:
https://github.com/harvester/harvester/issues/1710
Test plan:

Just discussed with @ibrokethecloud  about this feature should be implemented on separated repository or kept on same repository. We both prefer same repository, and will rename the repository name properly.


coTURN use-auth-secret

Is it possible to allow 'use-auth-secret' as opposed to user credentials?

Check my new project. There you can use TURN only for server
https://github.com/AlexxIT/go2rtc


Issues/#740 export technologies to yaml files

Before testing:
! Please make an export of your local database. !
Than proceed to run the migrations and run the code.

I think this is good, and I'm glad we're moving this data out of the database. A couple of comments:

Instead of FILE_ROOT being hard-coded in Technology, how about using Settings.static_data_path so that the tests can use their own static files? This is quite useful because it means that tests don't become dependant on real-world data; if a tests checks that a demand of x and a capacity of y results in load z, changing a tech capacity might cause the test to fail. In fact, the code is working just fine (tests are for verifying code, not data).
For example, both Atlas and ETEngine have their own stripped-down versions of ETSource in their tests. It would be pretty awful if every update of ETSource required us to update tests in those two projects; having their own versions of ETS keeps the tests reliable and repeatable.
The way to go about this might be to add the ability to use the Settings path – in the test environment its value is spec/fixtures/static – and, with no technology YAML files in that directory, run the tests with the --fail-fast option. If nothing fails, great! Something likely will fail, so copy the technology file necessary to get the tests to pass and then try it again. The aim is to have the minimum number of technology.yml files required to get the tests to pass.

Nice-to-have: It would be nice to be able to omit some attributes from the technology files and have sensible defaults assumed. For example, we could remove any attribute which has no value set (plenty have export_to: and default_capacity:).
A default could be set for attributes like visible, expandable, and composite, with the attribute only appearing in the YAML file if it differs from the default.

Nitpicking nice-to-have: Perhaps instead of default_capacity, default_volume, and default_demand, we might have a defaults hash instead?
defaults:
  capacity: 4.0
  volume: 10.0

Nitpicking nice-to-have: It would also be nice to remove the name attribute from the YAML files, and have this defined in a locale file.

Instead of FILE_ROOT being hard-coded in Technology, how about using Settings.static_data_path so that the tests can use their own static files

Done!
I also removed all the blank keys. I also once looked at those defaults (for expandable, visible etc.) but there's something odd going on there which I couldn't explain directly. I'll try it again though to see what that was.
I also agree with the defaults Hash but I'll do that some other time.

Thank you @grdw! This is nice.
I removed the migration on ImportableAttribute and created an extra backup of the staging DB as suggested. To master it goes!


Remove version: Jackett.Jackett version 0.20.2629

404 - release deleted
Microsoft Reviewers: Open in CodeFlow

URL: https://github.com/Jackett/Jackett/releases/download/v0.20.2629/Jackett.Installer.Windows.exe
Response Error: The remote server returned an error: (404) Not Found.
(Automated message - build 918)


#294: Switch ORM mapping to XML and cleanup

ORM mapping does not belong in the Entities. So, moving this to XML. This is also a next step towards making it easy to do some "domain modelling and ddd".

insert visual debt joke<

(ps: merged in master)


Add background to exported images

Fixes #27.

I sent an example image to @cvz04 to review.

Background looks good with the gray background


Chrome extension for bookmarking important contacts

Prerequisites

[X] I am a GSSoC-22 Participant
[X] I checked to make sure that this issue has not already been filed

Description
Hey @abhijeet007rocks8 , I am a GSSOC 22 participant. I want to add a chrome extension which can be used for saving important contacts.  tech stacks I will be using that are JavaScript, HTML, CSS.
Tech Stack
Web Development

Hello, @manisha-27 . I have added this Chrome extension to the 'Web Development" folder. And I requested a pull; could you please review it and let me know if there are any issues?


[Bug] Commands doesn't appear on command palette

SO: Windows 11 23H2
Obsidian version: 1.5.8
Plugin version: 0.62

I have disabled all of other plugins and and yet it didn't work

The same
Windows 10 22h1
Obsidian version: 1.5.8
Plugin version: 0.62
why...

will have a look soon.

Hi @RenanSantos7 @Falkonar
Do you all ran into this issue even when the focus is in a note (editor panel)? The commands of this plugin will only show in command palette when focus is in the editor panel.
If so, are you both using Windows?

Thank you for confirm that. I will find a Windows machine to do a test.


3D Plots: add new plot types and improve features

The idea of 3D plots was mentioned previously (#2358) and recently implemented (#3774) but a lot of work is needed before this plot type feels truly functional. This issue will track progress toward moving forward with new features and plot types.
There is a new Sandbox.WinForms3D project in the ScottPlot 5 solution 🚀
High priority next steps that come to mind include:

[ ] non-orthographic projection perspective (this may be a 2-line modification)
[ ] improved center of rotation
[ ] ability to render flat surfaces in 3D space by creating a polygon from their vertices
[ ] addition of more 3D volume primitives
[ ] fix 3D rectangles so their panel render order occurs farthest-to-closest
[ ] a more carefully thought out UI which allows rotation along specific axes

I'll close the rest of the open issues, then loop back around to this


Add history to repository

Currently only the latest state is kept in the repository.
We should add history to the repository so the repository can retrieve the model at any point in time.

The easiest way to do this is to add from and until columns to all tables.
To make it easy to query the current state, we can define the current state as a view on these history enhanced tables with only the latest version of the nodes.

Done


Controlling multiple accessories is slow

Hi,
I have an issue setting up a HomeKit scene with multiple accessories controlled by the broadlink. There is a big lag between the command execution like 7 seconds. RF Powersockets, waiting ... IR Projector waiting ... projection screen ..
Is there any option that can change this behavior?
Best regards

what is your installed version?

v3.6.22 is currently installed and it seems that all commands are sent right away
form the homberidge to the Broadlink RM Pro+ and the execution delay happens at the Broadlink.


Epic: Import data from OSDU to FMU with fmu-dataio

fmu-dataio is fully focused on exporting data, but the fundamental intention of it also cover the aspect of importing data. One could imagine am ImportData class similar to ExportData for this purpose.
There is also a link here to OSDU from which we expect to get input data via APIs leading to immutable data instances stored in/by OSDU.
Prototyping something on this in fmu-dataio may be a sensible first step with the following primary purposes:

Learn about the requirements for importing data to FMU
Learn about the requirements for importing data from OSDU, with specific focus on user impact, user friendliness, maintenance, implementation
Establish more direct relationships with ongoing work in OSDU

It is clear that this is a major topic which will require significant learning before we converge on anything. Simply getting started may be the best option at this point.

I think this implies a general awareness and support for OSDU schemas which can be relevant for export as well. Exported metadata should ideally be structured in a way that no translation is needed further up stream, i.e., we can be OSDU compliant from the FMU perspective from ab initio. It may be relevant for Sumo to add or modify this metadata wrt its interaction with OSDU as well, but ideally if Sumo is further pushing FMU objects into OSDU and is the only mechanism by which we do so, it makes a lot of sense to have this prepared before upload to Sumo.

This is a large discussion with a million unknowns. E.g. the use of ResQML natively inside FMU is a very different discussion compared to transforming to it on-demand, etc. It could have very large consequences, potentially.


create more sample images for deploying

Hi Ben Potter,
I'm currently working on creating more sample images for deploying Code Server and my work are on @code-server-boilerplates org.
And of course, I had created my own version of this repo in https://github.com/code-server-boilerplates/starter-pack, which includes the code-server binary and other essentials plus croc in case of sending files without the need of Mega.nz's official CLi and cloudflared for port proxy through Cloudflare's network without poking into your firewall settings in both the root Dockerfile and the bootstrapper scripts for VMs.
Hope this might helps!


Remove usage of StreamSource to support targets without a filesystem

std.io.StreamSource is a tagged union, defined as so:
const std = @import("../std.zig");
const io = std.io;

pub const StreamSource = union(enum) {
    buffer: io.FixedBufferStream([]u8),
    const_buffer: io.FixedBufferStream([]const u8),
    file: std.fs.File,
};

On targets that don't have a filesystem (for example, WASM in the browser), this prevents zigimg from being used, giving the user a compile time error saying (paraphrased), "std.os.fd_t is not defined".
I worked around this in my personal fork by swapping the implementation from std with a version that uses dynamic dispatch instead of a static union. You can see that here. This is an issue and not a pull request because the workaround only supports loading from memory, and I'm not sure that it's the right way to go.
Another solution might be changing std to void out the file variant on systems that don't have a filesystem.

This will be closed by #52 once the changes to StreamSource have been merged to zig master.

Closed by https://github.com/ziglang/zig/pull/8890


December 3rd 2015 breaking change

Will the gem be affected by the following breaking change? https://support.zendesk.com/hc/en-us/articles/213699578--BREAKING-DELETE-Response-code-change

No, all 2XX responses are considered valid.


Linker error for OpenSSL on Windows

What's your question?
what verison openssl should i use?
Additional Context
i download jwt-cpp using vcpkg,and i get

and i compile the openssl 1.0.1，i get

header folder

lib folder

and i write a test function

my project setting：
header folder：

lib dir：

and i have join the lib libeay32.lib and ssleay32.lib to project，when i complile code，meet error  error LNK2019: 无法解析的外部符号 _BIO_new，loos like i do not link the lib。what should i do?

jwt-cpp supports all versions of openssl between 1.0.x and 3.x, so your while your version is on the older end (you should really use a recent one in the name of security) I think it should work fine.
I don't speak whatever language that is, but LNK**** errors usually mean that something with your linker setup is wrong. You have added the openssl path, however you also need to make sure you add the relevant libraries to the linker.

if i use the right version of openssl,the lib after i compile the source code ,will generate lib libssl.lib and libcrypto.lib insteal of  libeay32.lib and ssleay32.lib,am i right?i have compile the openssl and i get libeay32.lib and ssleay32.lib, it look like i use the wrong version of openssl

It's seems you have misused vcpkg. You have installed openssl with vcpkg and a second older copy manually?
So it not surprising you see different versions at link or runtime.
I would highly recommend using CMake and VCPKG together to install dependencies so you'll don't have conflicts in your system

@gggamemaster if you've passed this issue please close it :)

i have passed it after reinstall openssl


Error installing from pip

I'm trying to install grib2io with pip, after installing g2c using spack. But I get an unintelligible error.
Here's my installation command:
G2C_DIR=/home/wmay/spack/opt/spack/linux-ubuntu22.04-skylake/gcc-11.4.0/g2c-1.9.0-757z2u7sacuazj4p3sykh7ut5hbksxlo/lib pip install grib2io

And here's the shell output:
Defaulting to user installation because normal site-packages is not writeable
Collecting grib2io
  Using cached grib2io-2.2.2.tar.gz (46.7 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy in /home/wmay/.local/lib/python3.10/site-packages (from grib2io) (1.26.4)
Requirement already satisfied: pyproj in /home/wmay/.local/lib/python3.10/site-packages (from grib2io) (3.6.1)
Requirement already satisfied: certifi in /home/wmay/.local/lib/python3.10/site-packages (from pyproj->grib2io) (2024.2.2)
Building wheels for collected packages: grib2io
  Building wheel for grib2io (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for grib2io (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [117 lines of output]
      Use static libs: False
          incdirs = [None, '/tmp/pip-build-env-66uraamc/overlay/local/lib/python3.10/dist-packages/numpy/core/include']
          libdirs = [None]
          extra_objects = []
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-310
      creating build/lib.linux-x86_64-cpython-310/grib2io
      copying src/grib2io/_grib2io.py -> build/lib.linux-x86_64-cpython-310/grib2io
      copying src/grib2io/__config__.py -> build/lib.linux-x86_64-cpython-310/grib2io
      copying src/grib2io/xarray_backend.py -> build/lib.linux-x86_64-cpython-310/grib2io
      copying src/grib2io/__init__.py -> build/lib.linux-x86_64-cpython-310/grib2io
      copying src/grib2io/templates.py -> build/lib.linux-x86_64-cpython-310/grib2io
      creating build/lib.linux-x86_64-cpython-310/grib2io/tables
      copying src/grib2io/tables/section6.py -> build/lib.linux-x86_64-cpython-310/grib2io/tables
      copying src/grib2io/tables/section4_discipline4.py -> build/lib.linux-x86_64-cpython-310/grib2io/tables
      copying src/grib2io/tables/section1.py -> build/lib.linux-x86_64-cpython-310/grib2io/tables
      copying src/grib2io/tables/section4_discipline20.py -> build/lib.linux-x86_64-cpython-310/grib2io/tables
      copying src/grib2io/tables/section0.py -> build/lib.linux-x86_64-cpython-310/grib2io/tables
      copying src/grib2io/tables/__init__.py -> build/lib.linux-x86_64-cpython-310/grib2io/tables
      copying src/grib2io/tables/section4_discipline10.py -> build/lib.linux-x86_64-cpython-310/grib2io/tables
      copying src/grib2io/tables/section3.py -> build/lib.linux-x86_64-cpython-310/grib2io/tables
      copying src/grib2io/tables/originating_centers.py -> build/lib.linux-x86_64-cpython-310/grib2io/tables
      copying src/grib2io/tables/section4_discipline209.py -> build/lib.linux-x86_64-cpython-310/grib2io/tables
      copying src/grib2io/tables/section4_discipline3.py -> build/lib.linux-x86_64-cpython-310/grib2io/tables
      copying src/grib2io/tables/section4_discipline2.py -> build/lib.linux-x86_64-cpython-310/grib2io/tables
      copying src/grib2io/tables/section4_discipline1.py -> build/lib.linux-x86_64-cpython-310/grib2io/tables
      copying src/grib2io/tables/section4_discipline0.py -> build/lib.linux-x86_64-cpython-310/grib2io/tables
      copying src/grib2io/tables/section5.py -> build/lib.linux-x86_64-cpython-310/grib2io/tables
      copying src/grib2io/tables/section4.py -> build/lib.linux-x86_64-cpython-310/grib2io/tables
      creating build/lib.linux-x86_64-cpython-310/grib2io/utils
      copying src/grib2io/utils/__init__.py -> build/lib.linux-x86_64-cpython-310/grib2io/utils
      copying src/grib2io/utils/arakawa_rotated_grid.py -> build/lib.linux-x86_64-cpython-310/grib2io/utils
      copying src/grib2io/utils/gauss_grid.py -> build/lib.linux-x86_64-cpython-310/grib2io/utils
      copying src/grib2io/utils/rotated_grid.py -> build/lib.linux-x86_64-cpython-310/grib2io/utils
      running egg_info
      writing src/grib2io.egg-info/PKG-INFO
      writing dependency_links to src/grib2io.egg-info/dependency_links.txt
      writing entry points to src/grib2io.egg-info/entry_points.txt
      writing requirements to src/grib2io.egg-info/requires.txt
      writing top-level names to src/grib2io.egg-info/top_level.txt
      reading manifest file 'src/grib2io.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no previously-included files matching '*.py[cod]' found anywhere in distribution
      warning: no previously-included files matching '*.c' found anywhere in distribution
      warning: no previously-included files matching '*.so' found anywhere in distribution
      adding license file 'LICENSE'
      writing manifest file 'src/grib2io.egg-info/SOURCES.txt'
      copying src/grib2io/.DS_Store -> build/lib.linux-x86_64-cpython-310/grib2io
      running build_ext
      Traceback (most recent call last):
        File "/home/wmay/.local/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/home/wmay/.local/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/home/wmay/.local/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
          return _build_backend().build_wheel(wheel_directory, config_settings,
        File "/tmp/pip-build-env-66uraamc/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 410, in build_wheel
          return self._build_with_temp_dir(
        File "/tmp/pip-build-env-66uraamc/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 395, in _build_with_temp_dir
          self.run_setup()
        File "/tmp/pip-build-env-66uraamc/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 311, in run_setup
          exec(code, locals())
        File "<string>", line 223, in <module>
        File "/tmp/pip-build-env-66uraamc/overlay/local/lib/python3.10/dist-packages/setuptools/__init__.py", line 104, in setup
          return distutils.core.setup(**attrs)
        File "/tmp/pip-build-env-66uraamc/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/core.py", line 184, in setup
          return run_commands(dist)
        File "/tmp/pip-build-env-66uraamc/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/core.py", line 200, in run_commands
          dist.run_commands()
        File "/tmp/pip-build-env-66uraamc/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "/tmp/pip-build-env-66uraamc/overlay/local/lib/python3.10/dist-packages/setuptools/dist.py", line 967, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-66uraamc/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/tmp/pip-build-env-66uraamc/normal/local/lib/python3.10/dist-packages/wheel/bdist_wheel.py", line 368, in run
          self.run_command("build")
        File "/tmp/pip-build-env-66uraamc/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/cmd.py", line 316, in run_command
          self.distribution.run_command(command)
        File "/tmp/pip-build-env-66uraamc/overlay/local/lib/python3.10/dist-packages/setuptools/dist.py", line 967, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-66uraamc/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/tmp/pip-build-env-66uraamc/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/command/build.py", line 132, in run
          self.run_command(cmd_name)
        File "/tmp/pip-build-env-66uraamc/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/cmd.py", line 316, in run_command
          self.distribution.run_command(command)
        File "/tmp/pip-build-env-66uraamc/overlay/local/lib/python3.10/dist-packages/setuptools/dist.py", line 967, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-66uraamc/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/tmp/pip-build-env-66uraamc/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/command/build_ext.py", line 359, in run
          self.build_extensions()
        File "/tmp/pip-build-env-66uraamc/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/command/build_ext.py", line 479, in build_extensions
          self._build_extensions_serial()
        File "/tmp/pip-build-env-66uraamc/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/command/build_ext.py", line 505, in _build_extensions_serial
          self.build_extension(ext)
        File "/tmp/pip-build-env-66uraamc/overlay/local/lib/python3.10/dist-packages/Cython/Distutils/build_ext.py", line 130, in build_extension
          new_ext = cythonize(
        File "/tmp/pip-build-env-66uraamc/overlay/local/lib/python3.10/dist-packages/Cython/Build/Dependencies.py", line 1010, in cythonize
          module_list, module_metadata = create_extension_list(
        File "/tmp/pip-build-env-66uraamc/overlay/local/lib/python3.10/dist-packages/Cython/Build/Dependencies.py", line 886, in create_extension_list
          m, metadata = create_extension(template, kwds)
        File "/tmp/pip-build-env-66uraamc/overlay/local/lib/python3.10/dist-packages/Cython/Build/Dependencies.py", line 762, in default_create_extension
          depends = resolve_depends(kwds['depends'], include_dirs)
        File "/tmp/pip-build-env-66uraamc/overlay/local/lib/python3.10/dist-packages/Cython/Build/Dependencies.py", line 469, in resolve_depends
          path = resolve_depend(depend, include_dirs)
        File "Cython/Utils.py", line 90, in Cython.Utils.cached_function.wrapper
        File "/tmp/pip-build-env-66uraamc/overlay/local/lib/python3.10/dist-packages/Cython/Build/Dependencies.py", line 480, in resolve_depend
          path = join_path(dir, depend)
        File "Cython/Utils.py", line 90, in Cython.Utils.cached_function.wrapper
        File "/usr/lib/python3.10/posixpath.py", line 76, in join
          a = os.fspath(a)
      TypeError: expected str, bytes or os.PathLike object, not NoneType
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for grib2io
Failed to build grib2io
ERROR: Could not build wheels for grib2io, which is required to install pyproject.toml-based projects

Which platform: Ubuntu 22.04
Versions

python3 --version: Python 3.10.12

Any ideas about what could be causing this? Is the conda installation better supported?

Oh here we go. I just had the G2C directory off by one folder. This works:
G2C_DIR=/home/wmay/spack/opt/spack/linux-ubuntu22.04-skylake/gcc-11.4.0/g2c-1.9.0-757z2u7sacuazj4p3sykh7ut5hbksxlo pip install grib2io

Just need to leave off the "lib" folder.


On timeout don't move back to fallback

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket: