Just a thought regarding onscreen raindrops

since this fixes light streaks while porting the 360 particle shader over to PC, would a port of the 360 version's (much better) onscreen raindrops be viable?

as to what it changes from the PC version, it changes some naming and variable structure around first of all:
(PC name, Xbox 360 name)
Textures:
DISPMACEMAP (RAINDROPPC) => DIFFUSEMAP_TEXTURE (ONSCREENRAINDROP)
DIFFUSEMAP_TEXTURE (backbuffer) => MISCMAP1_SAMPLER (still backbuffer)
Variables:
RAINDROPALPHA => cvBaseAlphaRef.x
RAINDROPOFFSET => cvLocalCenter
and there's some new stuff too:
cvBaseAlphaRef.y => mask texture horizontal offset
OPACITYMAP_TEXTURE => ONSCREENRAINDROPALPHA, this not only contains a mask but also a small shadow for the raindrops, making them a tad bit more defined
another thing to note is that ONSCREENRAINDROP is 2x the resolution of RAINDROPPC but is otherwise the same texture

I made a real hacky implementation of it by replacing rain_drop.fx and RAINDROPPC with these

//
// PC Rain Drop Effect
//
#include "global.h"

DECLARE_TEXTURE(DIFFUSEMAP_TEXTURE)
sampler DIFFUSEMAP_SAMPLER = sampler_state	// backbuffer for screen distortion
{
    ASSIGN_TEXTURE(DIFFUSEMAP_TEXTURE)
	AddressU = CLAMP;
	AddressV = CLAMP;
	DECLARE_MIPFILTER(LINEAR)
	DECLARE_MINFILTER(LINEAR)
	DECLARE_MAGFILTER(LINEAR)
};

DECLARE_TEXTURE(DISPLACEMAP) // PC edit - these NEED to be here for the shader to work!
sampler DISPLACEMAP_SAMPLER = sampler_state
{
	ASSIGN_TEXTURE(DISPLACEMAP)
	AddressU = WRAP;
	AddressV = WRAP;
	DECLARE_MIPFILTER(LINEAR)
	DECLARE_MINFILTER(LINEAR)
	DECLARE_MAGFILTER(LINEAR)
};

float4 RAINDROPOFFSET;
float RAINDROPALPHA;

struct VS_INPUT
{
	float4 position : POSITION;
	float4 color    : COLOR;
	float4 tex		: TEXCOORD;
	float4 size		: TEXCOORD1;
	//int4   light_index	: BLENDINDICES;
    int4   light_index	: TEXCOORD2;
};

///////////////////////////////////////////////////////////////////////////////////////
//
// Onscreen rain particle effect
//
struct VtoP_RAIN
{
	float4 position  : POSITION;
	float4 tex       : TEXCOORD0;
};

VtoP_RAIN vertex_shader_passthru(const VS_INPUT IN)
{
	VtoP_RAIN OUT;
	OUT.position = screen_position(IN.position);
	OUT.position.w = 1.0f;
	OUT.tex = IN.tex * float4(1, -1, 1, 1); // invert it because it's inverted for some reason

	return OUT;
}

float2 scaleUV(float2 uv, float scale) {
	return ((uv-0.5) / scale) + 0.5;
}

float4 pixel_shader_onscreen_distort(const VtoP_RAIN IN) : COLOR0
{
	// this is an abomination of a formula, but it works
	float rdoffset = floor((((pow(abs(max(max(RAINDROPOFFSET.r, RAINDROPOFFSET.b), max(RAINDROPOFFSET.g, RAINDROPOFFSET.a))-0.5), 2.2))*5000) % 1.0f) * 4)/4;
	float2 cvBaseAlphaRef = float2(RAINDROPALPHA, rdoffset);

	float4 distortion = tex2D(DISPLACEMAP_SAMPLER, IN.tex * float2(0.2f, 1.0f));
	float2 offset = distortion.gb * RAINDROPOFFSET.ba + RAINDROPOFFSET.rg;
	float4 background = tex2D(DIFFUSEMAP_SAMPLER, offset);

	// The opacity map has four different raindrop texture tiled horizontally.  The
	// offset into this texure is stored in cvBaseAlphaRef.y
	//
	offset = IN.tex;
	offset.x = 0.2 + ((cvBaseAlphaRef.y + IN.tex.x*0.25) * 0.8);
	float4 opacity = tex2D(DISPLACEMAP_SAMPLER, offset);

	float4 result;
	result = background * opacity.y;
	result.w = opacity.r * cvBaseAlphaRef.x;

	//result = opacity;

	return result;
}

technique sampdisplace <int shader = 1;>
{
    pass p0
    {
	AlphaBlendEnable = TRUE; // has to be manually set here, thanks Black Box
        VertexShader = compile vs_1_1 vertex_shader_passthru();
        PixelShader  = compile ps_3_0 pixel_shader_onscreen_distort();
    }
}

see https://www.youtube.com/watch?v=mWGDlPKwm4k

No.
This is primarily a shader fix, not a render rework.
You'd need to rework the render code to do so. It's not just the shader for
it, there also is the texture that renders on screen.
These rain drops in particular are the same ones from Underground 2.
I could, instead, do something that ThirteenAG did (or take his and make it
work slightly better with the game if needed).
Lovro Pleše

No. This is primarily a shader fix, not a render rework. You'd need to rework the render code to do so. It's not just the shader for it, there also is the texture that renders on screen. These rain drops in particular are the same ones from Underground 2. I could, instead, do something that ThirteenAG did (or take his and make it work slightly better with the game if needed). -- Lovro Pleše

this would make more sense as a discussion as I never really intended it to be a part of this in particular, but as you haven't enabled discussions on this repo (yet), I had to open it as an issue (fyi issues can be turned into discussions)


Update switch-to-mde-phase-3.md

Added more information on status of sc query windefend and how to check passive mode
Per issue#https://github.com/MicrosoftDocs/microsoft-365-docs/issues/10179

@JohanFreelancer9 Please copy review

Learn Build status updates of commit 5d78791:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

microsoft-365/security/defender-endpoint/switch-to-mde-phase-3.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel

Learn Build status updates of commit 4dde4a2:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

microsoft-365/security/defender-endpoint/switch-to-mde-phase-3.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel

@JohanFreelancer9

@denisebmsft Please merge this PR. Thanks

Learn Build status updates of commit a501abc:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

microsoft-365/security/defender-endpoint/switch-to-mde-phase-3.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel


Misc refactoring and improvements for Agent

Coverage increased (+0.04%) to 88.921% when pulling edd143bb7a3b3310c6461db9149d747cd7b639b9 on mprimi:master into f5c2b5138ca8189dea7ad59411c6f89c7a7112bb on Netflix:master.

@tgianos added new module and moved some classes in there

@tgianos ready

@tgianos added a commit at the end


Normalize memrefs with affine_map in krnl.memcpy

This PR enable us to normalize memrefs with affine_map in use-case including krnl.memcpy .
Test case in this PR has krnl.memcpy. Without this PR, memrefs in this test case are not normalized because krnl.memcpy is not normalizable operation.
To have krnl.memcpy normalizable, this PR adds a trait of MemRefsNormalizable.
Reference: https://reviews.llvm.org/D86236

@AlexandreEichenberger Thanks for your review.
I created this PR because MNIST example didn't work, but the test code was artificial one and I didn't confirm it really works(just confirmed normalization worked).
I replaced it with more simple one. Since new one includes only alloc, dealloc, and krnl.memcpy, it should be correct.

@AlexandreEichenberger Thanks for your review.
I created this PR because MNIST example didn't work, but the test code was artificial one and I didn't confirm it really works(just confirmed normalization worked).
I replaced it with more simple one. Since new one includes only alloc, dealloc, and krnl.memcpy, new one should be correct.


[REQUEST] Use of Toxic Mud

Description:

Toxic Mud, produced by purification of ores with sulfuric acid does not seem to have either an purpose (well, there probably is none, I guess)  or some useful treatment. E.g. purification with filters to get water and $ToxicWaste (well, now we have to find a use for that m)), Void?
If there is a use, than Toxic Mud Buckets should be removed, so one cannot just destroy it by dumping the bucket in lava.
From a chemical perspective, the toxic waste contains mostly Sulfates of certain metals, mostly Calcium, Sodium, and other Alkali and Alkaline Earth Metals as well as Rare Earth Metals. Maybe the waste could be used in some high-end electronics?

Reason:

At the moment Toxic Mud is just waste that cannot be destroyed automacially

Hmm I was kind of just considering removing it but I like this idea for high-end electronics. Not sure if it really fits indrev but I'll give it some thought. Thanks for the suggestion


Release v0.17.1

📖 CHANGELOG
Mainly focuses on fixing #774.

[ ] Referenced an issue explaining the need for the change
[ ] Updated all relevant documentation in docs
[ ] Updated all code comments where relevant
[ ] Wrote tests
[x] Updated CHANGELOG.md

Codecov Report

Merging #778 (691ee26) into master (c44ae5b) will decrease coverage by 0.0%.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           master    #778     +/-   ##
========================================
- Coverage    50.6%   50.6%   -0.1%
========================================
  Files         197     197
  Lines       13571   13587     +16
  Branches     3248    3248
========================================
+ Hits         6875    6876      +1
- Misses       6334    6348     +14
- Partials      362     363      +1

Impacted Files
Coverage Δ

light-client/src/lib.rs
100.0% <ø> (ø)

light-node/src/lib.rs
100.0% <ø> (ø)

proto/src/lib.rs
76.3% <ø> (ø)

tendermint/src/lib.rs
100.0% <ø> (ø)

tendermint/src/signature.rs
59.2% <0.0%> (-2.5%)
:arrow_down:

tendermint/src/block.rs
27.2% <0.0%> (-1.9%)
:arrow_down:

light-client/src/types.rs
26.5% <0.0%> (-0.7%)
:arrow_down:

rpc/src/method.rs
12.1% <0.0%> (ø)

tendermint/src/config.rs
26.1% <0.0%> (+0.4%)
: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 c44ae5b...691ee26. Read the comment docs.

Codecov Report

Merging #778 (691ee26) into master (c44ae5b) will decrease coverage by 0.0%.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           master    #778     +/-   ##
========================================
- Coverage    50.6%   50.6%   -0.1%
========================================
  Files         197     197
  Lines       13571   13587     +16
  Branches     3248    3248
========================================
+ Hits         6875    6876      +1
- Misses       6334    6348     +14
- Partials      362     363      +1

Impacted Files
Coverage Δ

light-client/src/lib.rs
100.0% <ø> (ø)

light-node/src/lib.rs
100.0% <ø> (ø)

proto/src/lib.rs
76.3% <ø> (ø)

tendermint/src/lib.rs
100.0% <ø> (ø)

tendermint/src/signature.rs
59.2% <0.0%> (-2.5%)
:arrow_down:

tendermint/src/block.rs
27.2% <0.0%> (-1.9%)
:arrow_down:

light-client/src/types.rs
26.5% <0.0%> (-0.7%)
:arrow_down:

rpc/src/method.rs
12.1% <0.0%> (ø)

tendermint/src/config.rs
26.1% <0.0%> (+0.4%)
: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 c44ae5b...691ee26. Read the comment docs.


Stop notifications if specific monitor is down

⚠ Please verify that this feature request has NOT been suggested before.

[X] I checked and didn't find similar feature request

🏷 Feature Request Type
New Notification
🔖 Feature description
The option to stop all notifications only if a specific monitor goes down/offline. This would prevent a user receiving a lot of down/up emails/other notifications.
✔ Solution
Here is my case example: I host an ESXi server. If the ESXi server is offline, do not send down notifications for WebServer1, WebServer2, WebServer3, MailServer1, MailServer2 etc etc.
❓ Alternatives
No response
📝 Additional Context
No response

I also want to request a similar but different feature: an option to stop all notifications when all monitors are down, or for example when 90% of the monitors are down. This can prevent receiving tons of notifications when there are network issues with the Uptime Kuma server itself.

I have a device that I want to monitor on general behaviour .. It comes up for 1 minute and sleeps 5 minutes.. I don't want to see notifications (desktop notifications) for this device.. its ok just to monitor it and I can watch the graphs to see if it still behaves as expected.

Is this one of the duplicates linked to https://github.com/louislam/uptime-kuma/pull/1236?

Yes i want to monitor it, but no it's not relevant enough to notify me with any notifications.

You could just disable the notifiations for said monitor. Am I missing something?

As far as I can see this doesn't apply for the desktop notifications.
As a (workable) workaround I increased the Retries to 60, so before it will send a notification, the device was up again.


Add support for adding features

 Issue by deepakjois
Friday May 19, 2017 at 10:50 GMT
Originally opened as https://github.com/deepakjois/luatex-harfbuzz/issues/3

 Comment by khaledhosny
Saturday May 20, 2017 at 12:19 GMT

I suggest using node attributes to pass the features to avoid breaking the runs, then collect them during shaping and pass them as HarfBuzz features array. So that it is possible to, say, turn on cvXX feature for a character in the middle of an Arabic word without breaking the shaping and other features.


docs: document SILFunction attributes in SIL.rst

Well, at least mention them. There could be more documentation about the attributes.

@swift-ci smoke test and merge


[OTHER]

What would you like to share?
Current Behavaiour:

Space can be added after each comma of the tag to improve readability of the search input.
After adding space:

I would like to work on the Issue once it has been triaged and label changed to status: ready for dev.
Additional information
No response

@Sahil-Choudhary-17 thank you for your suggestion - I have assigned this to you


EC-Earth highresSST-present

Only two variables left to publish

All variables fixed and submitted.
EC-Earth-Consortium.EC-Earth3P.highresSST-present.r1i1p1f1.6hrPlevPt.ta needs a prod from Alan to finish publication.

Outstanding:
EC-Earth-Consortium.EC-Earth3P.highresSST-present.r3i1p1f1
EC-Earth-Consortium.EC-Earth3P-HR.highresSST-present.r3i1p1f1


Inappropriate folder structure

Due to miscommunication the folder structure of this project's backend has been compromised, we should fix it on a priority basis before proceeding ahead to avoid any other conflicts and better development experience

taking this up


I see some strange files such as _lfilter.c.in, _correlate_nd.c.in...

Is your feature request related to a problem? Please describe.
No response
Describe the solution you'd like.
No response
Describe alternatives you've considered.
No response
Additional context (e.g. screenshots, GIFs)
No response

Yes they are scipy source files for tempita templating.

Yes they are scipy source files for tempita templating.

thank you


api: audit_log api specific to RBAC http filters

Commit Message: Add audit_log typed config in HCM and audit_condition enum in RBAC config protos.
Risk Level: low
Docs Changes: N/A
Release Notes: N/A
API Considerations:
This API change is proposed for the feature implementation in gRPC first.
gRPC authorization is based on xDS RBAC proto. The audit logging support we are trying to add is to enable users configure loggers and audit authorization events when the audit condition is met.
The primary difference from the access log is that audit log should be invoked right after the RBAC evaluation is done and will not wait till after the entire call finishes. It seems to me this is something Envoy also lacks and could potentially benefit from.
The API change presented here has gone through some preliminary reviews by @markdroth and @ejona86. I'm working on a gRFC which will be linked here as soon as it's available. Meanwhile, I am opening this PR now such that any question or concern could be raised early.

There was some internal discussion held with @htuch @markdroth @ejona86 @erm-g @adisuissa. I believe we concluded that the audit_log could be placed inside the RBAC proto.
This would lead to a bit config duplication if multiple RBACs simply wanted to use the same loggers. But as we argue it is already not a common use case to have multiple RBAC filters, it should be fine. Besides we don't expect users to deal with raw RBACs often.
And in either case, some de-duplication logic will still be needed in both gRPC and Envoy to avoid things like the same file being written by multiple loggers concurrently.
I commented on the added fields that they are specific to HTTP filters, since gRPC is only interested in L7. I think it's extensible to network filters in the future if needed in Envoy.

we argue it is already not a common use case to have multiple RBAC filters, it should be fine.

I don't actually think we were saying that it's not a common use case to have multiple RBAC filters; I suspect it's actually fairly common to have an ALLOW filter followed by a DENY filter. But I don't think that's really why we decided to move this config into the RBAC filter.

Thanks for the correction. That's right we didn't really talk about this. So I should not have used it as an argument here.
FWIW, IIRC, there was a time we talked about Traffic Director allowing only one authorization policy, which is one RBAC filter, per workload. In Istio, I checked that multiple can be applied which be to additively inserted as RBAC filters, but the order, which may be implemented to be deterministic, is not guaranteed by the API (not that it matters mostly).

This approach looks good to me.  @htuch or @mattklein123, any concerns?

I'm LGTM on this API but would like a non-Googler to also sign-off, CC @mattklein123 who has the context.
I think we can simultaneously improve lifecycle logging in HCM, which is going on in places like https://github.com/envoyproxy/envoy/pull/26094 while having a separate audit log facility. This seems best to live in the RBAC filter as it permits direct logging on RBAC events and avoids problems like some later filter delaying the log message by some non-trivial time period. At least that's one plausible argument.

It seems like we might want something similar where we could configure RBAC to just invoke a set of loggers (with the common logging API) when the RBAC decision happens. I think this would be more flexible than a new type of logger.

This is another approach that would be totally valid. I think it would need gRPC to buy-in to implementing access loggers.

Hi @mattklein123 - could you take a look? This design has the highest priority for us (gRPC) at the moment.

/retest

@mattklein123 thank you so much for the quick turnaround!


Update mill-main to 0.11.1

About this PR
📦 Updates com.lihaoyi:mill-main from 0.10.12 to 0.11.1
📜 GitHub Release Notes - Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

🔍 Files still referring to the old version number
The following files still refer to the old version number (0.10.12).
You might want to review and update them manually.
mill
mill.bat

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.lihaoyi", artifactId = "mill-main" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "com.lihaoyi", artifactId = "mill-main" }
}]

labels: library-update, early-semver-major, semver-spec-minor, old-version-remains, commit-count:1

Superseded by #64.


CoAP.NET-master Client and Server issue

HI,
I am running project from CoAP.NET-master CoAP.NET40.2010 when i build the solution it shows no error. Looks like in image 1

After build the solution shows no error. I set CoAP.Server.NET40 project under examples as a startup project and run the solution.
I add some line of code in main method of Examples/CoAP.Client.NET40 project and run the project as a new instance when I debug the code return nothing in response

Request request1 = new Request(Method.GET);
request1.URI = new Uri("coap://localhost:5683/hello-world");
request1.SetPayload("Hello hi", MediaType.TextPlain);
Request reqRes = request1.Send();
// wait for one response
Response response1 = request1.WaitForResponse();
Please let me know what should i pass from the client side and how i will process request on the server side. I want to implement CON,NON, “/.well-known/core”,“Separate Response”,“Observable” option using this code and want to process the request on the server side.
Thanks

Hi~
As we see in the second image, the request is responded with an ACK response of '4.04 Not Found', indicating that 1) the request has been transmitted successfully, 2) the server has received this request, 3) but there is no such a resource named 'hello-world'.
First thing to keep in mind: what you can do with a CoAP client is up to those resources provided by a CoAP server. So basically, you may want to set up your CoAP server at first.
All these features you mentioned, CON/NON, well-known, Separate, OBS, are built-in inside CoAP.NET.
Let's have a look at the Example/CoAP.Server.
Each resource is instantiated with a name and added to the server, i.e.:
server.Add(new HelloWorldResource("hello"));

The name will be its URL path when being accessed. In other words, if you want to access the HelloWorld resource on the server, you can visit: coap://localhost:5683/hello
That explains why you get a 4.04 Not Found in your previous code: you get a wrong path :( (coap://localhost:5683/hello-world)
There are some other existing resources you may be interested in.

[SeparateResource] (/smeshlink/CoAP.NET/tree/master/CoAP.Example/CoAP.Server/Resources/SeparateResource.cs) on '/separate', featuring 'Separate Response'.
[TimeResource] (/smeshlink/CoAP.NET/tree/master/CoAP.Example/CoAP.Server/Resources/TimeResource.cs) on '/time', featuring 'Observable' resource.
[LargeResource] (/smeshlink/CoAP.NET/tree/master/CoAP.Example/CoAP.Server/Resources/LargeResource.cs) on '/large', featuring block-wise transfer.
[StorageResource] (/smeshlink/CoAP.NET/tree/master/CoAP.Example/CoAP.Server/Resources/StorageResource.cs) on '/storage', accepting POST & PUT data.

Besides, WellKnownCore resource on '/.well-known/core' is presented by default in a CoAP server, thus you don't need to write it yourself.
You may want to write your own resources, but those resources above would be a good start point.
See [Example/CoAP.Server/Resources/] (/smeshlink/CoAP.NET/tree/master/CoAP.Example/CoAP.Server/Resources) for more details.
About CON/NON
The CoAP server accepts both CON/NON messages. Creates different requests to examine this feature, with an overloaded constructor of Request class:
Request(Method method, Boolean confirmable)
// CON request, with ACK response
Request request1 = new Request(Method.GET);
...
Response response1 = request1.WaitForResponse();

// NON request, with NON response
Request request2 = new Request(Method.GET, false);
...
Response response2 = request2.WaitForResponse();

In this case, the request1 is a CON, thus will be responded with an ACK response, or an empty message of ACK, and then a separate response later.
The request2 is created with confirmable setting to false, makeing it NON. So the response2 will be NON too.
As for sending data to server
There are two popular ways to send data in a request: query strings or payload body, just like HTTP.
In the [FibonacciResource] (/smeshlink/CoAP.NET/tree/master/CoAP.Example/CoAP.Server/Resources/FibonacciResource.cs) on '/fibonacci', you can find how to process query strings from a request.
To send data with query strings in a client request, just append them to the URL, e.g.
coap://localhost:5683/fibonacci**?n=7**
While query strings are widely used in GET requests, in POST/PUT requests however, payload data is preferred. Check StorageResource to learn how to fetch payload from a request.
In a client request, use:
request.SetPayload("Any Data");

Thanks so much I appreciate your explanation. I have some more confusion
please clarify.
-Suppose I want to receive response asynchronously from client side how I
will register the event in client side.

On the server side how I will get the payload data which is sent from
client side.
How it is possible to debug the code on server side when your request
goes to server.

Thanks
Shreyansh Jain
On 1 May 2015 21:42, "longshine"<EMAIL_ADDRESS>wrote:

Hi~
As we see in the second image, the request is responded with an ACK
response of '4.04 Not Found', indicating that 1) the request has been
transmitted successfully, 2) the server has received this request, 3)
but there is no such a resource named 'hello-world'.
First thing to keep in mind: what you can do with a CoAP client is up to
those resources provided by a CoAP server. So basically, you may want to
set up your CoAP server at first.
All these features you mentioned, CON/NON, well-known, Separate, OBS, are
built-in inside CoAP.NET.
Let's have a look at the Example/CoAP.Server.
Each resource is instantiated with a name and added to the server, i.e.:
server.Add(new HelloWorldResource("hello"));
The name will be its URL path when being accessed. In other words, if you
want to access the HelloWorld resource on the server, you can visit:
coap://localhost:5683/hello
That explains why you get a 4.04 Not Found in your previous code: you
get a wrong path :( (coap://localhost:5683/hello-world)
There are some other existing resources you may be interested in.

SeparateResource
http:///smeshlink/CoAP.NET/tree/master/CoAP.Example/CoAP.Server/Resources/SeparateResource.cs
on '/separate', featuring 'Separate Response'.
TimeResource
http:///smeshlink/CoAP.NET/tree/master/CoAP.Example/CoAP.Server/Resources/TimeResource.cs
on '/time', featuring 'Observable' resource.
LargeResource
http:///smeshlink/CoAP.NET/tree/master/CoAP.Example/CoAP.Server/Resources/LargeResource.cs
on '/large', featuring block-wise transfer.
StorageResource
http:///smeshlink/CoAP.NET/tree/master/CoAP.Example/CoAP.Server/Resources/StorageResource.cs
on '/storage', accepting POST & PUT data.

Besides, WellKnownCore resource on '/.well-known/core' is presented by
default in a CoAP server, thus you don't need to write it yourself.
You may want to write your own resources, but those resources above would
be a good start point.
See Example/CoAP.Server/Resources/
http:///smeshlink/CoAP.NET/tree/master/CoAP.Example/CoAP.Server/Resources
for more details.
About CON/NON
The CoAP server accepts both CON/NON messages. Creates different requests
to examine this feature, with an overloaded constructor of Request class:
Request(Method method, Boolean confirmable)
// CON request, with ACK response
Request request1 = new Request(Method.GET);
...
Response response1 = request1.WaitForResponse();
// NON request, with NON response
Request request2 = new Request(Method.GET, false);
...
Response response2 = request2.WaitForResponse();
In this case, the request1 is a CON, thus will be responded with an ACK
response, or an empty message of ACK, and then a separate response later.
The request2 is created with confirmable setting to false, makeing it
NON. So the response2 will be NON too.
As for sending data to server
There are two popular ways to send data in a request: query strings or
payload body, just like HTTP.
In the FibonacciResource
http:///smeshlink/CoAP.NET/tree/master/CoAP.Example/CoAP.Server/Resources/FibonacciResource.cs
on '/fibonacci', you can find how to process query strings from a request.
To send data with query strings in a client request, just append them to
the URL, e.g.
coap://localhost:5683/fibonacci*?n=7*
While query strings are widely used in GET requests, in POST/PUT requests
however, payload data is preferred. Check StorageResource to learn how to
fetch payload from a request.
In a client request, use:
request.SetPayload("Any Data");
—
Reply to this email directly or view it on GitHub
https://github.com/smeshlink/CoAP.NET/issues/19#issuecomment-98168085.

You're welcome. Here are explainations.
Receive response asynchronously
The WaitForResponse() method of course, as its name says, will block and wait util a response arrives.
To receive response async, listen to the Request.Respond event before sending a request.
request.Respond += (o, e) =>
{
  Response response = e.Response;
  // here you can go on with the response
};

request.Timeout += (o, e) =>
{
  // no response from server before the request is timed out
};

request.Send();

Request.Respond event will be fired once a response arrives, with a ResponseEventArgs carrying current response.
You may also want to listen to the Timeout event to see if the request is timed out before any possible response from server. You may get a warning of this event. Don't mind.
See Example/CoAP.Client for more. A byEvent variable is introduced to decide whether to receive response async or sync.
Server side
Take the HelloWorldResource as an example. Here I make a few changes.
class HelloWorldResource : Resource
{
  protected override void DoGet(CoapExchange exchange)
  {
    // the request contains all the info you sent from your client
    Request request = exchange.Request;

    // get payload from the request
    String payload = request.PayloadString;

    // and respond it
    exchange.Respond("Hello World! " + payload);
  }

  // Override DoPost, DoPut, DoDelete to handle other types of requests
}

Server side debug
Just set a breakpoint wherever you'd like to break on any resource.
For example, insert a breakpoint on the first line in DoGet method of HelloWorldResource as pasted above. You will enter debug mode as the breakpoint triggers once a request to '/hello' is coming.

Thanks for your quick response .
On 2 May 2015 07:54, "longshine"<EMAIL_ADDRESS>wrote:

You're welcome. Here are explainations.
Receive response asynchronously
The WaitForResponse() method of course, as its name says, will block and
wait util a response arrives.
To receive response async, listen to the Request.Respond event before
sending a request.
request.Respond += (o, e) =>
{
Response response = e.Response;
// here you can go on with the response
};
request.Timeout += (o, e) =>
{
// no response from server before the request is timed out
};
request.Send();
Request.Respond event will be fired once a response arrives, with a
ResponseEventArgs carrying current response.
You may also want to listen to the Timeout event to see if the request is
timed out before any possible response from server. You may get a warning
of this event. Don't mind.
See Example/CoAP.Client for more. A byEvent variable is introduced to
decide whether to receive response async or sync.
Server side
Take the HelloWorldResource as an example. Here I make a few changes.
class HelloWorldResource : Resource
{
protected override void DoGet(CoapExchange exchange)
{
// the request contains all the info you sent from your client
Request request = exchange.Request;
// get payload from the request
String payload = request.PayloadString;

// and respond it
exchange.Respond("Hello World! " + payload);

}
// Override DoPost, DoPut, DoDelete to handle other types of requests
}
Server side debug
Just set a breakpoint wherever you'd like to break on any resource.
For example, insert a breakpoint on the first line in DoGet method of
HelloWorldResource as pasted above. You will enter debug mode as the
breakpoint triggers once a request to '/hello' is coming.
—
Reply to this email directly or view it on GitHub
https://github.com/smeshlink/CoAP.NET/issues/19#issuecomment-98292417.

HI,
When I send the request to server and process the request using below code working fine
protected override void DoGet(CoapExchange exchange)
{
// the request contains all the info you sent from your client
Request request = exchange.Request;
// get payload from the request
string payload = request.PayloadString;
        // and respond it
        exchange.Respond("Hello" + payload);
    }

But when I call REST API for processing the request payload data which take some time for processing the request after process the request when i respond(exchange.Respond("Hello");) to client it returns null.
protected override void DoGet(CoapExchange exchange)
{
// the request contains all the info you sent from your client
Request request = exchange.Request;
// get payload from the request
string payload = request.PayloadString;
// process the payload data request using RESTAPI which takes some time in process
        // and respond it
        exchange.Respond("Hello" + payload);
    }

Please let me know what is the issue?
Thanks
Shreyansh Jian


[HOLD for payment 2024-12-03] [Search v1.2] - Unable to pay held expense in Search

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 9.0.60-0
Reproducible in staging?: Y
Reproducible in production?: N/A - new feature, doesn't exist in prod
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers<EMAIL_ADDRESS>Issue reported by: Applause Internal Team
Action Performed:
Precondition:

User has paid expense in Search before.

Go to staging.new.expensify.com
[User A] Submit an expense to User B.
[User B] Go to transaction thread > Click report header.
[User B] Click Hold expense, enter reason and save it.
[User B] Go to Search.
[User B] Click Pay button for the held expense.

Expected Result:
Confirmation modal will show when paying held expense in Search.
Actual Result:
Confirmation modal does not show when paying held expense in Search. The pay button shows loading and then reverts to initial state.
Workaround:
Unknown
Platforms:

[ ] Android: Standalone
[ ] Android: HybridApp
[x] Android: mWeb Chrome
[ ] iOS: Standalone
[ ] iOS: HybridApp
[ ] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

Screenshots/Videos
https://github.com/user-attachments/assets/d092259f-297a-476a-a51b-22dca2f03701

View all open jobs on GitHub
Issue OwnerCurrent Issue Owner: @OfstadC

Feature was added in this PR https://github.com/Expensify/App/pull/51445
@IuliiaHerets was this issue open while testing that PR? If so, you should've noted that, so the assigned person does not need to go find it.
ccing @luacmartins because it's your PR, but looking into it now.

I can't reproduce this... I see the RHP opening:

Yeah, still can't reproduce it, even in a new workspace... @IuliiaHerets can you retry? Is there any added context on the test you did that might be triggering this bug?

I think the reason applause can reproduce is because for the pay action we only do a "one-click pay" if you have previously paid something in that workspace, which saves that payment method to nvp_private_lastPaymentMethod. Otherwise, we open the RHP.

AHA!

I'm still working on adding RBR to Search actions (see this PR). I'll also discuss what the pattern for reports with held expenses should be and come back here.

Must've entered this if but it is completely impossible to know what happened since the https requests are not linked to this one.
@lakchote I see you worked on this command, do you know what could be going on? Also, I think we should pass the requestID to the https request, so logs are all tied to the same requestID.
Going to try to find it by other data

Could not find it. Tried this and don't see it here either.
@luacmartins @lakchote I think this should not block newDot deploy anyway since seems like the problem is in the backend, no?

Yea, I don't think this is a blocker since the fix is in the backend. We're still working on sending correct Onyx updates from the backend (see this comment)

if we are working on it on that other issue, should we close this one?

Actually, even if we are, let's keep this one to improve debugability of this. Going to assign @lakchote for that since he added this code.

@iwiznia Issue was found by exploratory. Asked for retesting, I'll back to you soon with an answer

Oh @IuliiaHerets, no need, we already know how to trigger the error.

Tester shared new steps if you need

Go to staging.new.expensify.com
[User A] Submit an expense to User B.
[User B] Go to Search.
[User B] Click Pay next to the expense.
[User B] Click Pay elsewhere.
[User A] Submit an expense to User B.
[User B] Go to transaction thread > Click report header.
[User B] Click Hold expense, enter reason and save it.
[User B] Go to Search.
[User B] Click Pay button for the held expense.

https://github.com/user-attachments/assets/441be320-375f-47d1-af88-8ddb58732d97

Done!


tqdm evaluation number - What does the '72' stand for?

Not really an issue, but...
I'm running your tutorial. Could you tell me what this number represents: "72" (see picture)?
It's from the train.py using your data. I couldn't figure out where it comes from and how to modify it.

That would be n_samples / batch_size for total batches in one epoch.

That would be n_samples / batch_size for total batches in one epoch.


feat(ecma): @call object for constructor calls

Provides appropriate @call.inner and @call.outer text objects for object constructors, e.g. new MyObject(5, 'hi')

Can you rebase it to the master so that the tests pass? It is required to pass before merging and the older master commit was failing. Sorry and thank you!


Errors showing when VSCode opening

It seems like the last update is triggering an error whenever VSCode is opened or when I open a file.
Here are the stacktraces:

messageService.ts:125 Cannot read property 'filter' of null: TypeError: Cannot read property 'filter' of null
	at MdOutlineProvider.getChildren (/Users/Damien/.vscode/extensions/yzhang.markdown-all-in-one-0.10.1/out/src/toc.js:242:28)
	at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:28:257200
	at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:28:63276
	at new n.Class.derive._oncancel (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:28:48394)
	at Object.t.asWinJsPromise (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:28:63239)
	at t.getTreeItems (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:28:257152)
	at e.$getElements (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:28:256203)
	at t.e.invoke (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:28:423958)
	at e._invokeHandler (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:28:280554)
	at e._receiveOneMessage (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:28:280244)
	at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:28:279271
	at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:28:281190
	at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:28:56058
	at e.invoke (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:28:55287)
	at e.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:28:57078)
	at Socket.  Error: Please return an array of children.
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:28:204908
    at Object.g [as _notify] (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:28:52522)
    at Object.enter (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:28:56594)
    at n.Class.derive._oncancel._run (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:28:57915)
    at n.Class.derive._oncancel._error (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:28:57432)
    at e.resolveErr (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:28:2434911)
    at e._receiveOneMessage (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:28:2436272)
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:28:2435600
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:28:2437519
    at e.invoke (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:28:66905)
e.onUnexpectedError @ /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:29

I know how frustrating it can be to get an error report just after a release 😅 Keep up the good work on the extension though! ❤

Thanks for your report. I'll have a look

I believe it is fixed in v0.10.2 😉

@neilsustc Indeed! Thanks for the quick fix 😄


Fix for race condition during scheduler registration when there are multiple builds on queue

Fix for race condition during scheduler registration(on demand) when there are multiple builds on queue

@vinodkone good stuff there. We are running 0.5.0 version of the mesos-plugin and we are having the same issue. Any chance for a 0.5.1 release soon to include this change as well?

:+1: +1  0.5.1. release with this fix would be excellent!!

@cornelf @tomstockton 0.6.0 was released today which includes this fix.


py2many: cross module type inference

Passes the test case below. bar1() defined in another
file is correctly inferred as returning an int.
Tested via: py2many --rust=1 /tmp/testdir
containing the two files in the paste attached to the issue
Related: https://github.com/adsharma/py2many/issues/158

Triggers some extra failures in self transpilation, because now errors in imported files are attributed to the importing file as well.
Looking into the errors to figure out the best strategy to deal with the failures.

The main remaining problem to solve is:
pyrs/clike.py: AttributeError: 'Module' object has no attribute 'scopes'

which shows up during transpilation

It was a bit non obvious to figure out why windows was failing. Turns out that windows runs both py38 and py39.
With py38 test_cpp_recursive has 11 successful
With py39 it has 12 successful (probably due to ast changes)
I'll change the check to > 11 so they both pass.


Why test.py doesn't support mode 0?

Let's say if I want to apply DSAC in mode 0, how do I test the trained model?

Hi,
for testing, mode 0 and mode 1 are the same, meaning that the input is an RGB image for both cases. That's why the test script knows only mode 1, and you would test a mode-0-model with mode 1. Sorry for the confusion!


148 integrate vanity and ar5iv

I'll probably have to work on parsing those sources too (e.g. https://ar5iv.labs.arxiv.org/html/2005.01643). Except if you want to, for the sake of the exercise or if I'm too slow 😛

By parsing you mean add this as a paper source ?

Yes exactly. It's messier

I've resolved the conflict in templates.js due to #161. The minified files are still the ones from the branch. If you pull, build locally, push back it should be fine.

@julien-blanchon I think we're good now, I added the svgs to the memory items (in the list view) and added the parsing from vanity ar5iv and scirate to the arxiv source.
FYI I'll merge at the end of the week because I want to release quickly :)

I totally understand, you're 100% entitled to vacation haha it's just for me to move on.
w.r.t. sources, yes, in config.js I treat them as arxiv URL patterns:
    arxiv: [
        "arxiv.org/abs/",
        "arxiv.org/pdf/",
        "scirate.com/arxiv/",
        "ar5iv.labs.arxiv.org/html/",
        "arxiv-vanity.com/papers/",
    ],


Interface: None light devices that are discovered are discovered as "lights"

As seen in screenshot below the text for the device description is incorrect.

Yes, it's just translation which is not correct. It will work correctly though when you click submit.
I already have fixes for that in place in this PR #1190 , will finish that soon.

Fixed in #1190


Fix public room attachments

The regex in getChannel was testing the entire msg object instead of msg.room, causing the expression to be truthy and msg.room was returned without prefixing with #, even though msg.room didn't have an # prefix. In turn, this caused Hubot to attempt to send attachments to an invalid room. This fixes the issue by explicitly testing msg.room in the first branch.

Thank you for your interest and pull request, @bojanrajkovic!!!
I'm currently with a huge workload, but I promise you that I'll look into it with detail Monday/Tuesday next week :smiley_cat:

This is perfect, thank you!!! :smile_cat:  Sorry for the long delay!


[doc] Clarify the impact of batch message in key_shared subscription

Fixes #7121
Motivation
Following the java example at http://pulsar.apache.org/docs/en/client-libraries-java/#key_shared. The messages sometimes may send to only one consumer if the producer sends the batched messages. It's better to clarify in the doc to introduce the right way to use key_shared subscription.
Modifications
Update Java client documentation.

@Huanli-Meng Please help review this PR.


[BUGFIX][BACKPORT] delete executor before reallocating it memory

Description
Fixes memory leak in executor

How about the 1.x branch?

How about the 1.x branch?

https://github.com/apache/incubator-mxnet/pull/19214


Use MS repo for making PR  builds of monaco for the playground

Moves the make-monaco-builds repo to the MS org

Thanks, that's all set up, but I'm gonna give it a night to verify that a nightly build works and if so, then this is good to go

3/4 env vars seemed to have been set up right, we'll see tomorrow if the 4th is now 👍

Yep, this run looks correct: https://github.com/microsoft/TypeScript-Make-Monaco-Builds/runs/825649237?check_suite_focus=true


Array indexing needs to be updated

While using dc.NRZ_bits2, the following warning was issued from scipy.signal.signaltools:
FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use arr[tuple(seq)] instead of arr[seq]. In the future this will be interpreted as an array index, arr[np.array(seq)], which will result either in an error or a different result.
out = out_full[ind]

This has been updated as of scipy 1.15, maybe sooner.


Add front matter support

Front matter allows the user to specify options specific to that page, such as a title and tags (if its an article).

Added the new meta-* declaration in 68dca13. Thanks for the suggestion!


Button component throws error with SSR

Describe the bug
Button component has window, and I get error ReferenceError: window is not defined on server-side.
Expected behavior
Component mustn't throw error in server-side.
Screenshots

The tenth line contains window in file node_modules/material-components-vue/dist/button/index.js.
I guess it happens, because target is web in webpack config.
I found similar discussion about it https://github.com/webpack/webpack/issues/6522.
Also, I found your issue, where you set taget: node, but now I can't find this config (https://github.com/matsp/material-components-vue/commit/cfd107090bb657895f98d37a76f4eb31b6a7a50b).

@horprogs Thanks for the hint. We must provide a module that is usable on server side. Maybe I switch to Rollup because it's better for bundling up libraries.


Pin timeout-sampler version

/cherry-pick v4.15

/cherry-pick v4.14

Cherry-pick requested for PR: Pin timeout-sampler version by user myakove
Adding label/s cherry-pick-v4.15 for automatic cheery-pick once the PR is merged

Manual cherry-pick is needed
Cherry pick failed for e2a2be287c411ed49d1772441cb7333d108be083 to v4.14:
To cherry-pick run:
git remote update
git checkout v4.14
git pull origin v4.14
git checkout -b timeout-sampler-pin-version-v4.14
git cherry-pick e2a2be287c411ed49d1772441cb7333d108be083
git push origin timeout-sampler-pin-version-v4.14

Manual cherry-pick is needed
Cherry pick failed for e2a2be287c411ed49d1772441cb7333d108be083 to v4.15:
To cherry-pick run:
git remote update
git checkout v4.15
git pull origin v4.15
git checkout -b timeout-sampler-pin-version-v4.15
git cherry-pick e2a2be287c411ed49d1772441cb7333d108be083
git push origin timeout-sampler-pin-version-v4.15


Question on Resize

When i see the resize parameters
1)
    dict(type='Resize', img_scale=(1333, 800), keep_ratio=True),
If i understand correctly it will resize given image to above shape ?

  type='MultiScaleFlipAug',  # An encapsulation that encapsulates the testing augmentations
        img_scale=(1333, 800),  # Decides the largest scale for testing, used for the Resize pipeline
        flip=False,  # Whether to flip images during testing
        transforms=[
            dict(type='Resize',  # Use resize augmentation
                 keep_ratio=True),

what is difference between  simple resize and resize with scale parameter basically here and above

My image max size is 520 and 704 . what should i pass for scale in resize  parameter..
Can i skip resize if want to train with raw image size ?

https://github.com/open-mmlab/mmdetection/blob/f08548bfd6d394a82566022709b5ce9e6b0a855e/mmdet/datasets/pipelines/transforms.py#L31-L39

The image width and height will match to the given size and keep the original ratio, and then resize the image
MultiScaleAugFlip is a Test-time augmentation with multiple scales and flipping.
the parameters need to be changed according to your needs. More details can refer to the code.
Yes you can


Document Foundry 0.7.5 Support Status

Is your feature request related to a problem? Please describe.
Does https://github.com/Djphoenix719/PDFoundry/issues/28 mean that Foundry 0.7.5 is not yet supported? I know module.json only lists compatibility up to 0.7.3 but it's so common for module authors not to update module.db that it's hard to know when that's lagging awaiting the next module release and when someone REALLY means that it's not supported.
Describe the solution you'd like
Add Foundry 0.7.5/0.7.x statements to https://foundryvtt.com/packages/pdfoundry/ and README.md here so folks who consider PDFoundry an important part of their game know the compatibility status.
Describe alternatives you've considered
At some point I'll stand up a 0.7.5 instance and do some testing myself, but having an issue to collect positive/negative reports seems like it will help concentrate news about testing that the community has done.
Additional context
N/A

I have to refactor the code for #28 but it should still be functional to my knowledge, it just might not play nice with other modules yet.
I am unaware of any outstanding "bugs" other than minor things or things that have not been reproducible, so for now I am fairly comfortable in saying PDFoundry should support 0.7.5 comfortably. Hopefully I will get a chance to update to enrichHTML once 0.7.X moves out of beta and I don't need to worry about supporting both versions - just very busy with real life lately.

If you do encounter issues please feel free to report them though, I'm prioritizing fixing bugs when they come up to refactoring or adding new features with my limited time - still very much supporting the module.

Hopefully I will get a chance to update to enrichHTML once 0.7.X moves out of beta...

FWIW, 0.7.5 is out of beta as of Wed 2020-10-21: https://foundryvtt.com/releases/
Thanks for the update on current status. I'm not trying to push development, I know folks are doing this in their spare time as a labor of love... there's just a lot of modules in an uncertain state of support since the recent stable release of 0.7.5 and I'm trying to figure out the status of modules that I depend on.

Oh; I didn't realize that 0.7.5 was marked as stable - a good example of how busy I am 😅
It's a good reason for me to move ahead with the refactor then - I will see what I can do about it. However PDFoundry should be stable to my knowledge, the refactor of enrichHTML will just help it play nice with modules.
I'm going to close this for now, but please reach out if you encounter issues in your testing with 0.7.5.


Question: tork-coordinator behaviour

Hello.
I can see some strange behaviour from tork-ccordinator (my be it by design - but in the past I thought it was different behaviour)

If we create job with some queue name - and this queue doesn't exist in the RabbitMQ: coordinator can't create this queue, until some worker come and create this queue. And only then tork-coordinator puts JOb in this queue.
If I cancel Job - I still see this message in the RabbitMQ queue (I have no workers yet): I thought if we cancel job - coordinator has to delete this job from the queue. But seems only workers can do this - if I have no workers yet this message will persist in the queue until some worker delete it.

From two of these cases: coordinator doesn't create any queues, doesn't delete any jobs from queues - only workers do this.

That's correct, at the moment, a worker must subscribe to a queue before tasks can be sent to it.
Once a task is in the queue there's no way for the coordinator to pull it back. Once the task arrives at a worker the worker will signal the coordinator that it's starting to work on it. The coordinator in turn will lookup the task and find out it was cancelled meanwhile and let the worker know to stop processing it so as not to waste resources.

@runabol thanks for clarifying this!


Add mild typing to common utils functions

I ran into this for parse_timedelta elsewhere.
These functions often change types of things and are commonly used.
I don't want to get into deep typing here (I'll leave that for others)
but a little bit here seemed like it might have unambiguously positive
impact.

Look folks, I'm just doing the minimal thing here.  I don't want this to distract people.  This has already cost enough time that I regret the PR.
I'm going to put just enough work in so that this isn't wrong and that's it.  I'm not focusing on this right now.  I'm focusing on getting shuffling in a good state.  I apologize for starting this PR.

If this is good, awesome, let's merge.  If there is something broken / damaging then I'll fix it.  Let's raise an issue to improve this module in the future (I think that it's one of the higher impact modules for typing) and then prioritize it accordingly.

Looking back over my PRs I saw this.  I'm abandoning this now.  If someone wants to pick it up that would be grand.  I think that it's good to go, but I'll let others make that determination.  Happy to close otherwise.

I'm trying to push to this PR but I get permissions error. @mrocklin is the "Allow edits and access to secrets by maintainers" checkbox ticked?

Can't push, will open a new PR


feat: Add machine controller for v1alpha5.Machine reconciliation

Fixes #
Description

Add machine controller for v1alpha5.Machine reconciliation

How was this change tested?
make presubmit
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

317 of 451 (70.29%)  changed or added relevant lines in 16 files are covered.
3 unchanged lines in 2 files lost coverage.
Overall coverage increased (+1.7%) to 78.854%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

pkg/termination/errors.go
10
12
83.33%

pkg/test/expectations/expectations.go
13
15
86.67%

pkg/controllers/machine/liveness.go
5
8
62.5%

pkg/termination/termination.go
24
28
85.71%

pkg/controllers/machine/launch.go
22
27
81.48%

pkg/controllers/controllers.go
0
6
0.0%

pkg/controllers/machine/initialization.go
48
57
84.21%

pkg/controllers/machine/registration.go
42
55
76.36%

pkg/controllers/machine/errors.go
4
18
22.22%

pkg/utils/condition/condition.go
31
59
52.54%

Files with Coverage Reduction
New Missed Lines
%

pkg/test/expectations/expectations.go
1
95.7%

pkg/controllers/deprovisioning/controller.go
2
70.81%

Totals

Change from base Build<PHONE_NUMBER>:
1.7%

Covered Lines:
6287

Relevant Lines:
7973

💛  - Coveralls


Fixed finishing early if a nested template finishes

Closes #17

@andyday, I have tested my change manually by creating/updating/deleting templates both with and without nested templates but Im open to suggestions on how to improve test coverage with in the unit tests.

@andyday, it seems the build is now failing. I can confirm this is not a result of the changes in the Pull Request based on this: https://travis-ci.org/Nordstrom/cfn

Looks like the changes here are fairly small.  Formatting changes make it difficult to identify real changes.  I think most (if not all) of this extra noise will go away if you merge in the latest master.  It has similar standardjs formatting changes.  Once you've done this I'll take a look.

Awesome, thanks @andyday. Ill merge now.
Just an FYI, when you are looking at merge requests with lots of white space, you can tick the Hide whitespace changes changes under `Diff settings:

@andyday, I have rebased with master. I just noticed that your .travis.yml configuration is still using yarn to run tests, is this intentional?

@mymattcarroll no I noticed that as well.  It will still run the npm scripts, but need to change it soon.  As for the whitespace trick, thanks for the tip.

published to npm as 1.5.1


Why is there a max limit of .1 eth to convert eth to sol in the sollet wallet

It seems that there may be a hard coded limit of .1 eth when trying to convert eth to sol in the sollet wallet.

I believe the intention is that you convert a small amount of native ETH to SOL to get started, then you use that SOL to add SPL ETH as a token to your wallet, which has no limit.

Are you sure? I am able to convert 0,09 ETH from my metamask to Solana-based ETH, at least, it's letting me approve the transaction in metamask

Any update on this?  I've been having the same issue. I have SOL in my wallet and I've event tried switching to my hardware wallet which also has SOL.  In either case I've connected to MetaMask which has plenty of ETH.  However, when I go to Deposit SOL -> ETH -> Convert, it says I can only convert .1

Here is the solution:
Convert the max 0.1 ETH to SOL. Then click the add symbol button and add ETH to your wallet. Then click deposit ETH and you can now do unlimited.

@jhlx, not sure if I did this right but it's still not working for me:

Converted .1 ETH to SOL
Clicked add symbol and added ETH (the only option was wrapped ETH so I added that)
I sent ETH from MetaMask to my Wallet
I now have plenty of ETH (wrapped) in my wallet
I go to SOL, and click on RECEIVE -> ETH, but the limit is still .1

Yeah steps 1-4 are correct.
You can stop after those 4 steps if you all you want is to have your assets (those steps work for all coins, not just ETH) on the Solana blockchain.
If you additionally want to trade your ETH (or any other coin) into SOL, you can now go to dex.projectserum.com and trade ETH (or any other coin) for USDC and then USDC for SOL.

However, when I go to Deposit SOL -> ETH -> Convert, it says I can only convert .1

Thanks @jhlx, but I don't see how this addresses this problem?

Ah, actually I updated my comment with a better way. I think it will provide the seamless experience you are looking for. S/o to @armaniferrante for creating this feature:
After step 4, click on the swap icon (it is in the top right bar on Sollet). Now you can convert unlimited ETH into SOL.

@jhlx , thanks again.  That's pretty cool.
I take it the .1 Max is hardcoded then, and intentional?  I think if the messaging said something like the following it would avoid some confusion since the UI makes it seem like the maximum is actually how much ETH you have in your wallet:
Native ETH can be converted to native SOL via MetaMask. To convert, you must already have SOL in your wallet.  _Note, you are limited to converting .1 ETH with this method_
Either way, I'm really enjoying Sollet, props to those working on it! 👏

After step 4, click on the swap icon (it is in the top right bar on Sollet). Now you can convert unlimited ETH into SOL.

Actually, just tried this now and see a couple of issues:

If I choose to swap ETH it shows a balance of 0 even though I have ETH
When I search for SOL in the dopdown of what to swap for it doesn't come up.  Instead only SOLAPE and SDOGE come up under MAIN.  Nothing comes up under WORMHOLE and SOLLET

After step 4, click on the swap icon (it is in the top right bar on Sollet). Now you can convert unlimited ETH into SOL.

Actually, just tried this now and see a couple of issues:

If I choose to swap ETH it shows a balance of 0 even though I have ETH
When I search for SOL in the dopdown of what to swap for it doesn't come up.  Instead only SOLAPE and SDOGE come up under MAIN.  Nothing comes up under WORMHOLE and SOLLET

Should be fixed (you probably have multiple eth accounts and one of them is zero).
SOL swapping isn't yet implemented in the GUI (we need to implement wrapping/unwrapping of the native SOL into the SPL variant, still).

SOL swapping isn't yet implemented in the GUI (we need to implement wrapping/unwrapping of the native SOL into the SPL variant, still).

Ok, so is it only possible to convert .1 native ETH to native SOL via the sollet interface?  If so, why?

Hi, circling back up.  Is it possible to convert more than .1 ETH to SOL via Sollet?

For now, just trade ETH for SOL (or ETH -> USDC -> SOL) on Serum DEX.


add new package DiligentCore

DiligentCore is a modern cross-platform low-level graphics API.

please add on_test


added the org chart web part

Q
A

Bug fix?
no

New feature?
no

New sample?
yes

What's in this Pull Request?
Please describe the changes in this PR. Sample description or details around bugs which are being fixed.
Added the Organisation Chart sample webpart

Hi @vman, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by Microsoft and real humans are currently evaluating your PR.
TTYL, MSBOT;

Closing this PR as I have updated the web part and created another pull request: https://github.com/SharePoint/sp-dev-fx-webparts/pull/14


Update: 2023-04-28

Duotang update 2023-04-28:
Detailed changes:
duotang.html:

Change colour to improve lineage distinction in Omicron sublineages barplot.(Closes #192)
Wording clarifications/improvements. (Closes #193, Closes #196, Closes #197)
Clean up the list of useful tool section and add Mike Honey’s SARS-CoV-2 genomes DataViz Projects to the list (Closes #194, Closes #195)

Merging anyways because cloudflare-pages doesn't build when any single asset is >25mb and our html is 40mb


Add rule name to issue message

Closes #310

Codecov Report

Merging #311 (742f82f) into master (2484107) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #311   +/-   ##
=======================================
  Coverage   98.76%   98.76%
=======================================
  Files          36       36
  Lines        2587     2587
=======================================
  Hits         2555     2555
  Misses         32       32

Impacted Files
Coverage Δ

robocop/run.py
97.38% <ø> (ø)

robocop/config.py
96.90% <100.00%> (ø)

tests/utest/test_argument_validation.py
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 2484107...742f82f. Read the comment docs.


camera view showing the wrong color

hello team! I see the camera view showing the wrong color

Hi @tmq902005
Thanks for submitting.  We will investigate the image quality further.

Latest releases improved the image quality.


DrachtIO-Server crashes after sip-call with excluded transport

We had excluded tcp from out drachtio-server.
If we try to use this transport the drachtserver crashes
Last lines from Docker-Log
2018-12-06 13:10:28.884319 Client::processMessage - got request with 4 tokens
2018-12-06 13:10:28.884420 Client::processMessage - request id b688dca4-8554-49fb-81ae-708b034c0a60, request type: sip transaction id: , dialog id: c5640f56-bec1-4379-af49-b19d9674aed1
2018-12-06 13:10:28.884458 Client::processMessage - sending a request inside a dialog (dialogId provided)
2018-12-06 13:10:28.884626 ClientController::addApiRequest: clientMsgId b688dca4-8554-49fb-81ae-708b034c0a60; size: 1
2018-12-06 13:10:28.884699 SipDialogController::doSendRequestInsideDialog dialog id: c5640f56-bec1-4379-af49-b19d9674aed1
2018-12-06 13:10:28.884957 SipDialogController::doSendRequestInsideDialog - defaulting request uri to sip:drachtio@<IP_ADDRESS>:5038;transport=udp
2018-12-06 13:10:28.884997 DrachtioController::findTportForSubscription: no transport found for<EMAIL_ADDRESS>2018-12-06 13:10:28.885030 SipDialogController::doSendRequestInsideDialog - automatically detecting content-type as application/sdp
2018-12-06 13:10:28.885088 nta.c:2753 nta_tpn_by_url() nta: selecting scheme sip
2018-12-06 13:10:28.885142 tport.c:3285 tport_tsend() tport_tsend(0x19796e0) tpn = udp/<IP_ADDRESS>:5038
2018-12-06 13:10:28.885182 tport.c:4085 tport_resolve() tport_resolve addrinfo = <IP_ADDRESS>:5038
2018-12-06 13:10:28.886871 tport.c:3531 tport_send_msg() tport_vsend returned 895
2018-12-06 13:10:28.887211 send 895 bytes to udp/[<IP_ADDRESS>]:5038 at 13:10:28.885221:
ACK sip:drachtio@<IP_ADDRESS>:5038;transport=udp SIP/2.0
Via: SIP/2.0/UDP <IP_ADDRESS>;rport;branch=z9hG4bK75e5tFpNKKXer
Max-Forwards: 70
From: <sip:<IP_ADDRESS>:5060>;tag=6FHF0NeQppcKp
To: <sip:drachtio@<IP_ADDRESS>:5038>;tag=7vZt4a8gFm1mH
Call-ID: 24ea3c27-73fb-1237-30aa-3ac0b2717a22
CSeq: 131714850 ACK
Content-Type: application/sdp
Content-Length: 527

v=0
o=FreeSWITCH<PHONE_NUMBER><PHONE_NUMBER> IN IP4 <IP_ADDRESS>
s=FreeSWITCH
c=IN IP4 <IP_ADDRESS>
t=0 0
m=audio 20486 RTP/AVP 0 102 103 8 101 104 106
a=rtpmap:0 PCMU/8000
a=rtpmap:102 opus/48000/2
a=fmtp:102 useinbandfec=0; cbr=1; maxaveragebitrate=30000; maxplaybackrate=48000; ptime=20; minptime=10; maxptime=40
a=rtpmap:103 SPEEX/32000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=rtpmap:104 telephone-event/48000
a=fmtp:104 0-16
a=rtpmap:106 telephone-event/32000
a=fmtp:106 0-16
a=ptime:20
2018-12-06 13:10:28.891731 nta.c:8405 outgoing_send() nta: sent ACK (131714850) to udp/<IP_ADDRESS>:5038
2018-12-06 13:10:28.891805 SipDialogController::doSendRequestInsideDialog - clearing IIP that we generated as uac
2018-12-06 13:10:28.891844 SipDialogController::clearIIP - setting Timer D to keep transaction around for retransmits on leg 0x197ccf0
2018-12-06 13:10:28.891883 timerD: Adding entry to go off in 32500ms
2018-12-06 13:10:28.891916 timerD: Adding entry to the head (queue was empty), length: 1
2018-12-06 13:10:28.891970 ClientController::removeApiRequest: clientMsgId b688dca4-8554-49fb-81ae-708b034c0a60; size: 0
2018-12-06 13:10:28.892713 Client::write_handler - wrote 1089 bytes: system:0
2018-12-06 13:10:28.972202 Client::read_handler read: 0a058eb7-0071-47e9-a9d4-d9a8aa4c9e53|sip||
INVITE sip:<IP_ADDRESS>;transport=tcp SIP/2.0
From<EMAIL_ADDRESS>Alert-Info: file://ring.pcm/;info=alert-autoanswer
Content-Length: 549

v=0
o=FreeSWITCH<PHONE_NUMBER><PHONE_NUMBER> IN IP4 <IP_ADDRESS>
s=FreeSWITCH
c=IN IP4 <IP_ADDRESS>
t=0 0
m=audio 20486 RTP/AVP 0 102 103 8 101 104 106
a=rtpmap:0 PCMU/8000
a=rtpmap:102 opus/48000/2
a=fmtp:102 useinbandfec=0; cbr=1; maxaveragebitrate=30000; maxplaybackrate=48000; ptime=20; minptime=10; maxptime=40
a=rtpmap:103 SPEEX/32000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=rtpmap:104 telephone-event/48000
a=fmtp:104 0-16
a=rtpmap:106 telephone-event/32000
a=fmtp:106 0-16
a=ptime:20
a=sendrecv

2018-12-06 13:10:28.976671 Client::processMessage - got request with 4 tokens
2018-12-06 13:10:28.976822 Client::processMessage - request id 0a058eb7-0071-47e9-a9d4-d9a8aa4c9e53, request type: sip transaction id: , dialog id:
2018-12-06 13:10:28.976979 Client::processMessage - sending a request outside of a dialog
2018-12-06 13:10:28.977325 ClientController::addAppTransaction: transactionId 85d4399a-8c9d-4605-8ee7-be07c5e98f0a; size: 1
2018-12-06 13:10:28.977441 ClientController::addApiRequest: clientMsgId 0a058eb7-0071-47e9-a9d4-d9a8aa4c9e53; size: 1
2018-12-06 13:10:28.977807 SipProxyController::doSendRequestOutsideDialog attempting to determine transport tport for request-uri sip:<IP_ADDRESS>;transport=tcp
proto: tcp
2018-12-06 13:10:28.977929 SipTransport::findAppropriateTransport: searching for a transport to reach tcp/sip:<IP_ADDRESS>;transport=tcp
2018-12-06 13:10:28.983340 SipTransport::findAppropriateTransport: host parsed as <IP_ADDRESS>
2018-12-06 13:10:28.988989 SipTransport::findAppropriateTransport - after filtering for transport we have 4 candidates
2018-12-06 13:10:28.989119 SipTransport::findAppropriateTransport - after filtering for protocol we have 0 candidates

I need to make this not crash, but it seems like your server is explicitly configured to use UDP only and your app explicitly requested TCP, is that correct?  I should fix this so the INVITE simply fails to go out and app gets an error something like "requested protocol not available".  Is that in line with your expectations?

Jup, that exactly what happens / should happen in future. Thx
Von meinem iPhone gesendet
Am 06.12.2018 um 14:18 schrieb Dave Horton <notifications<EMAIL_ADDRESS>I need to make this not crash, but it seems like your server is explicitly configured to use UDP only and your app explicitly requested TCP, is that correct? I should fix this so the INVITE simply fails to go out and app gets an error something like "requested protocol not available". Is that in line with your expectations?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/davehorton/drachtio-server/issues/64#issuecomment-444867560, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AYvpiIa1JOg8IEQlbVfQz0wxJp4din9Dks5u2RkVgaJpZM4ZGfF_.


Provide a way to cache the internal nioBuffer of the PooledByteBuffer…

… to reduce GC. (#8603)
Motivation:
Often a temporary ByteBuffer is used which can be cached to reduce the GC pressure.
Modifications:
Cache the ByteBuffer in the PoolThreadCache as well.
Result:
Less GC.

@normanmaurer apologies I didn't review carefully enough the first time and had made some assumptions which I don't think are valid after looking closer.
I don't this is threadsafe in its current form - ArrayDeque isn't and the additions/removals could be from arbitrary threads without synchronization.. e.g. deallocate() could be in any user thread releasing the buffer. It doesn't look like the init0 method is synchronized either in general.
I think it may work to add an nio buffer field to PoolThreadCache.Entry instead, but not sure if there are are other implications of doing that.

No worries.... looking today again

I do think stashing it in PoolThreadCache.Entry instead of having a separate per-chunk cache would work, looks like it would be easy to plumb through the alloc and dealloc paths. WDYT?

@njhill yep agree that should work. I will take care.

@njhill done. PTAL again

Also @franz1981

@njhill
Not sure if it is what you mean, but pre PR:
io.netty.buffer.PoolThreadCache$MemoryRegionCache$Entry object internals:
 OFFSET  SIZE                            TYPE DESCRIPTION                               VALUE
      0    12                                 (object header)                           N/A
     12     4   io.netty.util.Recycler.Handle Entry.recyclerHandle                      N/A
     16     8                            long Entry.handle                              N/A
     24     4       io.netty.buffer.PoolChunk Entry.chunk                               N/A
     28     4                                 (loss due to the next object alignment)
Instance size: 32 bytes
Space losses: 0 bytes internal + 4 bytes external = 4 bytes total

With this PR:
io.netty.buffer.PoolThreadCache$MemoryRegionCache$Entry object internals:
 OFFSET  SIZE                            TYPE DESCRIPTION                               VALUE
      0    12                                 (object header)                           N/A
     12     4   io.netty.util.Recycler.Handle Entry.recyclerHandle                      N/A
     16     8                            long Entry.handle                              N/A
     24     4       io.netty.buffer.PoolChunk Entry.chunk                               N/A
     28     4             java.nio.ByteBuffer Entry.nioBuffer                           N/A
Instance size: 32 bytes
Space losses: 0 bytes internal + 0 bytes external = 0 bytes total

We're lucky that at least it won't make any difference on memory footprint (with oops).
My concern instead is related to the effect on GCs that use card-marking (G1 does SATB AFAIK): probably doing a bench aging on purpose the NIO ByteBuf to became old gen would help to check what's the effect on the allocation rate about copying the nioBuffer from Entry to the pooled ByteBuf.

@njhill the downside of cache the ByteBuffer in the PoolThreadCache is that by default we only cache buffers <= 32k there, which means for other buffers there will be no caching happening of the ByteBuffer. That is a bit unfortunate as if pushed hard enough we may use bigger buffers to read from the socket.

@normanmaurer I had a go at adding more plumbing onto this change to handle those cases, let me know what you think c29fa22e48f77ef71f03596ec4236a032fc4b651 (minor cleanup would still be needed)

@njhill yep I think your commit looks mostly fine. Do you mind if I bring it over into this pr with some cleanup ?

The deque bits I copied from your original changes anyhow :)

LGTM. Will review again once updated with @njhill's patch.

@njhill @trustin @franz1981 PTAL again... I incorporated the changes of @njhill with the exception that I did not cache the ByteBuffer for PoolSubPage allocations. Thats mainly because how it was done was not safe as we may allocate multiple times per sub-page. We could fix this be adding another Deque to the head of the PoolSubPage linked list and cache there.  But I think we just can ignore this as these allocations should be small enough to cache in PoolThreadCache and so have the ByteBuffer cached there anyway.

New allocation profile with the PR.

Thanks @normanmaurer, looks great, I agree this seems good enough to not warrant the additional complexity/overhead of subpage-scoped caches, although without closer analysis/profiling can't judge that for sure.
How about this small improvement/simplification to the latest version though:

revert the changes to PoolChunk.allocateSubpage and PoolChunk.allocateRun (so they take only int and return long again)
move the initBuf(...) call into the common parent PoolChunk.allocate method, so that it polls the cache for both cases (as is currently done only in allocateRun)

It's "free" and may result in a few more cache hits, WDYT?

@njhill good feedback... Just pushed a new commit which should address it. PTAL again

@njhill @franz1981 thanks... fixed :)

@normanmaurer Looks fine to me :+1:

@normanmaurer I believe this changeset substantially increased our applications memory footprint which resulted in low memory on some boxes and the kernel OOM killer axing java processes :boom: I will see how deploying a canary build when the holiday period is over but wanted to give you a heads up in the meantime.

@johnou I would be surprised if this would be the case as it only caches the "container" around the memory.
You are running the snapshot ?

@normanmaurer oh crap, "removed this from the 4.1.32.Final milestone" then it must be something else.. In the meantime downgrading to 4.1.30.Final / 2.0.17.Final ( should hold for Christmas :crossed_fingers: ) I will create a new issue once I get more information.

@johnou let me know once you have more infos (like heap dump etc)

@normanmaurer if it's the PooledByteBufAllocator that has simply cached too much that won't show up in a heap dump because it's off-heap right? I just added a new mbean to export ByteBufAllocatorMetric values.

@johnou while this is true it may still give some hints as you will see the "container" in the heap dump.


Add bindings to StrictMode

https://reactjs.org/docs/strict-mode.html

Hey! This looks like a great one to start with. I have some questions before opening a PR:
Should there be a test for StrictMode? As StrictMode is a development feature, I am not sure how we could test for this. I also found it difficult to verify in the javascript output in _build. Finally, when I run make format-check, I get suggestions to add empty lines in files I did not modify. Is this expected behavior with format?

Hello @benschinn
Thanks for jumping in! StrictMode has a bunch of "features" that might be hard to unit test. I would try to pick one that is relevant to ensure that strict mode is enabled. Since we run a browser-like environment, we might be able to detect the double rendering when effects happen? If not, I wouldn't worry too much about it.
Regarding the format-check, we run format-check on CI (https://github.com/ml-in-barcelona/jsoo-react/runs/6151024960?check_suite_focus=true#step:7:1). Maybe there's a miss-match on ocamlformat? Try running opam update or opam install . --deps-only --with-test


OG Fix

Absolute URL instead of relative URL
Different error for binary blob

@ruudniew tests are still failing due to missing favicon

Build should pass when newest OG version is deployed


front-end when i call api then getting 405 Method Not Allowed

I have pass in header.
URL: {{Base_URL}}/store-update
Method: POST
Accept: version10,
Content-Type: application/json

But not working.By default call version1.Can you please help me for that issue.
I have also create cors middlware but request header not setting.Also this api working fine in android,ios device but front-end not working.

If you are getting method not allowed, it means you there is no route with the requested method at the requested url path (endpoint).
Sorry but overall your question seems to have nothing to do with dingo - dingo has nothing to do with android, ios vs frontend, etc.

Hi
@specialtactics
End point is there in v2 and default calling v1.So i have pass also header but not getting that request in backend always checked with v1 not in v2.

usually you would prefix /v2/path
Maybe worthwhile checking docs


May 2021 release updates

Pull Request Test Coverage Report for Build 854760232

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

Totals

Change from base Build 854453466:
0.0%

Covered Lines:
26551

Relevant Lines:
55643

💛  - Coveralls


Simplify atmosds testing dataset

Pull Request Checklist:

[ ] This PR addresses an already opened issue (for bug fixes / features)

This PR fixes #xyz

[ ] Tests for the changes have been added (for bug fixes / features)

[ ] (If applicable) Documentation has been added / updated (for bug fixes / features)

[ ] HISTORY.rst has been updated (with summary of main changes)

[ ] Link to issue (:issue:number) and pull request (:pull:number) has been added

What kind of change does this PR introduce?

Reduces the amount of testdata preparation needed for the atmosds file

Does this PR introduce a breaking change?
No*, however, the newly formatted test dataset will now include some more precalculated variables. Metadata of variables and dataset will be significantly different.
Other information:
Relies on changes that will be added with https://github.com/Ouranosinc/xclim-testdata/pull/21
Should be merged before merging #1235

All that is missing is the radiation variable (rsds) which is being collected now.
I'm not sure what the issue is with the random EnsembleStats file. Maybe an error with the associated md5?


Domain randomization with mjx backend

I have the following test file, which I use to test whether my domain randomization implementation works. The idea is that I condition (randomized) environments on the same action and initial state, and expect to get perturbed state when taking one step forward.
from typing import Any
import jax

import jax.numpy as jnp
from brax import base
from brax.io import mjcf
from brax.envs import register_environment
from brax.envs.base import PipelineEnv, State
from brax import envs

xml = """
<!-- https://github.com/google-deepmind/dm_control/blob/main/dm_control/suite/cartpole.xml -->
<mujoco model="cart-pole">
  <option timestep="0.01">
    <flag contact="disable"/>
  </option>
  <default>
    <default class="pole">
      <joint type="hinge" axis="0 1 0"  damping="2e-6"/>
      <geom type="capsule" fromto="0 0 0 0 0 1" size="0.045" mass=".1"/>
    </default>
  </default>
  <worldbody>
    <light name="light" pos="0 0 6"/>
    <camera name="fixed" pos="0 -4 1" zaxis="0 -1 0"/>
    <camera name="lookatcart" mode="targetbody" target="cart" pos="0 -2 2"/>
    <geom name="floor" pos="0 0 -.05" size="4 4 .2" type="plane"/>
    <geom name="rail1" type="capsule" pos="0  .07 1" zaxis="1 0 0" size="0.02 2"/>
    <geom name="rail2" type="capsule" pos="0 -.07 1" zaxis="1 0 0" size="0.02 2"/>
    <body name="cart" pos="0 0 1">
      <joint name="slider" type="slide" limited="true" axis="1 0 0" range="-1.8 1.8" solreflimit=".08 1" damping="5e-4"/>
      <geom name="cart" type="box" size="0.2 0.15 0.1" mass="1"/>
      <body name="pole_1" childclass="pole">
        <joint name="hinge_1"/>
        <geom name="pole_1"/>
      </body>
    </body>
  </worldbody>
  <actuator>
    <motor name="slide" joint="slider" gear="10" ctrllimited="true" ctrlrange="-1 1" />
  </actuator>
</mujoco>
"""

_PARALLEL_ENVS = 128

def domain_randomization(sys, rng):
    @jax.vmap
    def randomize(rng):
        cpole = jax.random.normal(rng) * 1. + sys.actuator.gear[0]
        mass = sys.actuator.gear.at[0].set(cpole)
        return mass, cpole

    mass, samples = randomize(rng)
    in_axes = jax.tree_map(lambda x: None, sys)
    in_axes = in_axes.tree_replace({"actuator.gear": 0})
    sys = sys.tree_replace({"actuator.gear": mass})
    return sys, in_axes, samples[:, None]

class Cartpole(PipelineEnv):
    def __init__(self, backend="mjx", **kwargs):
        sys = mjcf.loads(xml)
        self.sparse = kwargs.pop("sparse", False)
        self.swingup = kwargs.pop("swingup", False)
        super().__init__(sys=sys, backend=backend, n_frames=1, **kwargs)

    def reset(self, rng: jax.Array) -> State:
        """Resets the environment to an initial state."""
        rng, rng1, rng2 = jax.random.split(rng, 3)
        if self.swingup:
            q = self.sys.init_q + jax.random.normal(rng1, (self.sys.q_size(),)) * 0.01
            q = q.at[1].add(jnp.pi)
        else:
            q = self.sys.init_q
            q = q.at[0].set(jax.random.uniform(rng1, shape=(), minval=-1.0, maxval=1.0))
            q = q.at[1].set(
                jax.random.uniform(rng1, shape=(), minval=-0.034, maxval=0.034)
            )
        qd = jax.random.normal(rng2, (self.sys.qd_size(),)) * 0.01
        pipeline_state = self.pipeline_init(q, qd)
        obs = self._get_obs(pipeline_state)
        reward, done = jnp.zeros(2)
        metrics: dict[str, Any] = {}
        return State(pipeline_state, obs, reward, done, metrics)

    def step(self, state: State, action: jax.Array) -> State:
        """Run one timestep of the environment's dynamics."""
        # Scale action from [-1,1] to actuator limits
        action_min = self.sys.actuator.ctrl_range[:, 0]
        action_max = self.sys.actuator.ctrl_range[:, 1]
        action = (action + 1) * (action_max - action_min) * 0.5 + action_min
        pipeline_state = self.pipeline_step(state.pipeline_state, action)
        obs = self._get_obs(pipeline_state)
        done = jnp.zeros_like(state.done)
        return state.replace(
            pipeline_state=pipeline_state,
            obs=obs,
            reward=self._reward(pipeline_state, action),
            done=done,
        )

    def cart_position(self, pipeline_state: base.State) -> jax.Array:
        return pipeline_state.q[0]

    def pole_angle_components(self, pipeline_state: base.State) -> jax.Array:
        return jnp.cos(pipeline_state.q[1]), jnp.sin(pipeline_state.q[1])

    def bounded_position(self, pipeline_state: base.State) -> jax.Array:
        return jnp.hstack(
            (
                self.cart_position(pipeline_state),
                *self.pole_angle_components(pipeline_state),
            )
        )

    def _reward(self, pipeline_state: base.State, action: jax.Array) -> jax.Array:
        if self.sparse:
            cart_in_bounds = 1.0
            angle_in_bounds = 1.0
            return cart_in_bounds * angle_in_bounds
        else:
            upright = (self.pole_angle_components(pipeline_state)[0] + 1) / 2
            centered = 1.0
            centered = (1 + centered) / 2
            small_control = 1.0
            small_control = (4 + small_control) / 5
            small_velocity = 1.0
            small_velocity = (1 + small_velocity) / 2
            return upright.mean() * small_control * small_velocity * centered

    @property
    def action_size(self):
        return 1

    def _get_obs(self, pipeline_state: base.State) -> jax.Array:
        """Observe cartpole body position and velocities."""
        return jnp.concatenate(
            [self.bounded_position(pipeline_state), pipeline_state.qd]
        )

register_environment(
    "cartpole_swingup_sparse",
    lambda **kwargs: Cartpole(swingup=True, sparse=True, **kwargs),
)
register_environment(
    "cartpole_swingup", lambda **kwargs: Cartpole(swingup=True, **kwargs)
)
register_environment(
    "cartpole_balance", lambda **kwargs: Cartpole(swingup=False, **kwargs)
)

def test_parameterization():
    def policy(*_, **__):
        return jnp.ones((1,)), None

    environment = envs.get_environment(env_name="cartpole_balance")
    rng = jax.random.PRNGKey(1)
    rng = jax.random.split(rng, _PARALLEL_ENVS)
    new_sys, in_axes, samples = domain_randomization(environment.sys, rng)
    environment = envs.training.wrap(
        environment,
        action_repeat=1,
        randomization_fn=lambda *_, **__: (new_sys, in_axes),
    )
    policy = jax.vmap(policy, in_axes=(0, None))
    state = environment.reset(jnp.asarray([jax.random.PRNGKey(0)] * _PARALLEL_ENVS))
    next_state = environment.step(state, policy(state, None)[0])
    count = sum(
        jnp.allclose(next_state.obs[0, :], obs[0, :])
        for obs in jnp.split(next_state.obs[1:, :], _PARALLEL_ENVS - 1, axis=0)
    )
    assert (
        count / _PARALLEL_ENVS < 0.2
    ), "Different environment initializations should have different trajectories"

if __name__ == "__main__":
    test_parameterization()

As seen, the environment is based on deepmind control suite cartpole. Now, for some reason, when I use the mjx backend, in line 64 (Cartpole's constructor), I get the exact same next state (while I would expect different states, as the dynamics are perturbed), while if I use generalized backend, the test passes.
Any idea why this may happen? The barkour tutorial suggests that domain randomization with the mjx backend should work.
Any help would be very much appreciated!
EDIT: tried now running a similar experiment with the InvertedPendulum environment -- seems like I get the same behavior. Happy to create a standalone running code for it as well.

Hi @yardenas , actuator.gear is an attribute only used by generalized, spring and positional but not by mjx. Please follow the example exactly as shown in the tutorial! Sorry for the late reply!


Gateways after Nic update on Shared Network tests

Description
This PR add a test to verify that the right gateways and netmasks are set on updates of IPs from a different range on shared networks. This was fixed in #5105

Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] Enhancement (improves an existing feature and functionality)
[ ] Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale

[ ] Major
[x] Minor

Bug Severity

[ ] BLOCKER
[ ] Critical
[ ] Major
[ ] Minor
[ ] Trivial

Screenshots (if appropriate):
How Has This Been Tested?

integration test only

@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

UI build: :heavy_check_mark:
Live QA URL: http://qa.cloudstack.cloud:8080/client/pr/6355 (SL-JID-1522)

@blueorangutan package

@nvazquez a Jenkins job has been kicked to build packages. It will be bundled with  KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

Packaging result: :heavy_check_mark: el7 :heavy_check_mark: el8 :heavy_check_mark: debian :heavy_check_mark: suse15. SL-JID 3351

@blueorangutan test

@weizhouapache a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

Trillian test result (tid-4124)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 40127 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr6355-t4124-kvm-centos7.zip
Smoke tests completed. 95 look OK, 1 have errors
Only failed tests results shown below:

Test
Result
Time (s)
Test File

test_05_create_template_with_no_checksum
Error
65.48
test_templates.py


Address annotations security issues from SPIKE

Description
What:

Implement an HTTPS API endpoint to post annotations
Address security issues from #463 Graphana annotations spike  (PR #538)

Why:

Grafana has a feature for adding annotations to charts. We want to do this in an annotated way.
For example, when a load test starts, we want to add an annotation to the grafana charts.

When:

ASAP

Where:
Tasks

[ ] #438

Acceptance Criteria

[ ]
[ ] Resolve linter errors
[ ] Remove to-do, dead code, & unnecessary comments
[ ] Existing documentation is updated (readme, .md's)
[ ] New documentation needed to support the change is created
[ ] Validation test run if applicable

Constraints

Coordinate with PnP-Deploy on cert #531

References:

References #

Enable HTTPS endpoint for Grafana to enable secure connection from outside the cluster to Grafana inside the cluster.
Not a goal in this task to enable HTTPS between services within the cluster.

Check with AK on status of using Traefik and HTTPS

For now, use self-signed certs and use kubectl port-forward to expose an endpoint locally. Grafana has some configs (1, 2) that can be used to listen on HTTPS.


[BUG] Hover info button not always displayed

Expected behavior
If a reading view has text in green boxes, an info button should be shown next to the title.
Actual behavior
Button missing in http://hoax.obdurodon.org/read?id=GH-BLNPS-18040106

https://www.smashingmagazine.com/2022/03/guide-hover-pointer-media-queries/

https://www.nngroup.com/articles/tooltip-guidelines/

https://knackforge.com/blog/how-deal-hover-touch-screen-devices/


https://docs.microsoft.com/en-us/azure/automation/automation-tutorial-update-management

In the document:
https://docs.microsoft.com/en-us/azure/automation/automation-tutorial-update-management
I am not able to find the process on the azure portal. The Runbook name options just doesnt show up
"For Runbook Name, click the + sign and enter Patch-MicrosoftOMSComputers as a custom name. For Status, choose Failed or click the + sign to enter Failed."
where do i find the Rubook Name thing...?

@newtonsheikh
Thanks for your feedback! We will investigate and update as appropriate.


Remove deprecated debug output functions from 19 source files.

[approve ci]

[approve ci centos]

@SolidWallOfCode if this doesn' t get reviewed soon, @zwoop will throw me in the wood chipper in the backyard of the Denver Apple site.  And you'll have to live with the guilt.


[semver:minor] feat(set-shas): support for private repos

Add authentication for private repositories.
Closes #2

@vsavkin @meeroslav
Hi guys,
We would love to be able to use this orb with our private repo. Could you please take a look at these changes and give me some feedback.
Much appreciated,
Kenley

@meeroslav @vsavkin
This orb doesn't seem to have been published to the nx orb repository since this PR was merged. Can this be published please so we can use it with our private repos?
Thanks,
Kenley

Hi @kenleytomlin, there have been issues with access rights in CirceCI. We have contacted their support channel and hopefully, it will be resolved soon so we can publish this change.
Sorry for the delay

Version is out now. Thank you for your patience.


BitStuffer2::BitStuff undefined bitshift

InBitStuffer2::BitStuff, if bitPos <= 0 and (32 - bitPos >= numBits) is False, an undefined bitshift will occur when (*srcPtr++) >> (32 - bitPos).
LERC functions which use BitStuff make this scenario impossible by returning false if numBits >= 32 before calling BitStuff. Users of the library may not do this. If that scenario is likely, could the BitStuff function be patched?

@eslerm  No worries, BitStuff() is a private, low level member function of the BitStuffer2 class and can only be called from other class member functions. This function is at the very bottom of the boiler room. It is easier to understand once you know that it only gets called for (0 < numBits< 32). Bit stuffing integer numbers makes only sense inside this range. I have added more checks and comments so it is easier to see that this undefined bit shift cannot happen. I'd rather avoid putting asserts in the innermost loops. You can check out the updates to BitStuffer2.cpp at this PR: https://github.com/Esri/lerc/pull/224.

Thanks for the explanation @tmaurer3!
Your PR looks great 😊

+105 -206 and more checks in the right places! Nice :) Thanks


Configuration file name issue

What's happening
I created a new project with CRA5 and I have a configuration file named cracorc.ts, which is in the shown list on Website. But when I run craco start, I got this:
PS E:\Projects\craco-antd-ts-redux> npm start

> start
> craco start

E:\Projects\craco-antd-ts-redux\node_modules\.pnpm\@craco+craco@7.0.0_u3gkuxlvcvnfil7skimcnzk2pq\node_modules\@craco\craco\dist\lib\config.js:113
                throw new Error('craco: Config file not found. check if file exists at root (craco.config.ts, craco.config.js, .cracorc.js, .cracorc.json, .cracorc.yaml, .cracorc)');
                      ^

Error: craco: Config file not found. check if file exists at root (craco.config.ts, craco.config.js, .cracorc.js, .cracorc.json, .cracorc.yaml,
.cracorc)

The two lists are not same...
CRACO version
7.0.0

Thanks for catching this. Neither list was correct. The correct file name is .cracorc.ts. I just updated the documentation so that's accurate now, and I'll update that error message soon.


Improve documentation and write some tutorials.

Currently, documentation for hvm-lang is very poor. The only documentation is the README.md file which is too large and contains a confusing mixture of explanations and examples.
This PR splits the documentation part of README.md into many short files, each of which teaches a single hvm-lang concept. We can later make them longer if necessary.

#99 and #85 have some fixes on the documentation, make sure to properly merge them into this pr

#99 and #85 have some fixes on the documentation, make sure to properly merge them into this pr

Alright, that's done by the last two commits


Write fetch function to get sections from Nebula API

Parameters:

professor reference
course reference

Output:

array of sections

Working on this