 in parse_hyp_and_timestamp

In parse_hyp_and_timestamp()
after tokens = sp.id_to_piece(res.hyps[i]) I have such tokens:
▁', '', '-', 'mo', 'du', 'le',
then words = sp.decode_pieces(tokens).split() gives me two words instead of one
'⁇', '-module'
but time = parse_timestamp(tokens, time) treats these tokens like one word, and then
assert len(time) == len(words), (len(time), len(words))
AssertionError: (1, 2)
Thanks in advance.

@yaozengwei Could you have a look?


Building sizer progress

Building sizer operates with boolean and discrete options, but fitness function (kpi's) is not calculated and transfered well.

To avoid the mypy-error in building_sizer/setup.py, types-setuptools needs to be installed.
Should a requirements_dev.txt be created for such optional modules?


New Features: Charger enable/disable toggle and current limit slider

Picks up from https://github.com/hardbyte/ha-evnex/pull/8 (rebased and updates to evnex=0.3.1)

Still want to look at the data used to drive the enable/disable toggle. I'm not sure how the API reflects a disabled charger.

With the couple of extra commits it LGTM


k2tf: init at 0.5.0

Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 114359 run on x86_64-linux 1

1 package built:

k2tf


Delete row after BatchWriter iteration

Right now BatchWriter iterates queue over and over again. This PR fixes it.
It seems like this bug was fixed here https://github.com/ddeboer/data-import/commit/ce5004f4ccaed8f4321f0b2b2f6d5c76d00c658a, not sure why this repository wasn't updated.

Thanks!


Microsoft 365 Defender: Streaming API Settings page doesn't exist (anymore?)

Following this page to configure integration with a third-party SIEM, I'm unable to access the Streaming API settings because it looks like the page doesn't exist anymore.
I searched around and didn't found it anywhere.

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

ID: ab552aac-1b60-da82-2266-8e3c0f61dcf1
Version Independent ID: cc9dea71-92f1-1c0a-f96b-0c301b13b6d0
Content: Stream Microsoft 365 Defender events to Azure Event Hubs
Content Source: microsoft-365/security/defender/streaming-api-event-hub.md
Service: microsoft-365-security
Sub-service: m365d
GitHub Login: @mjcaparas
Microsoft Alias: macapara

@Zoddo Thank you for your feedback. This seems to be a technical issue as I'm able to view the option

I'd recommend you contact support via the need help option in the admin center so that our support team can help you out.
Hope this helps!
Thanks
Sri

@msbemba Thank you very much for the contribution and sharing this explanation. @Zoddo Hope this comment is helpful for you. Considering the nature of the issue, as advised, please open a service ticket in your tenant and follow with them for the resolution. You can contact Microsoft support via the need help section on the admin center. We proceed to close it as here we are limited to documentation fixes and improvements only.
We will be very happy if you can share the outcome or resolution with us if you see documentation update is required. We will certainly update this documentation with that valuable information. Thanks again, for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.


WIP: prepare script is needed for installing dependencies from git using npm

Hello!
The prepare script is needed in a library in order to make the library installable with npm from a git URL in a consuming project's package.json.
F.e. A consuming project would have the following to install rosbag from git:
"dependencies": {
  "rosbag": "foxglove/rosbag.js",
}

However, there's an issue with having both prepack and prepare scripts when using npm: npm will run both of them, but when npm runs prepack, devDependencies of the library being installed (f.e. devDependencies of rosbag while it is being installed from git) will not be available yet, so the build will fail.
The solution to make this work in npm is to delete the prepack script, and just use prepare.
But here's the bad part!
Last I checked, Yarn intentionally does not run prepare scripts. Instead, Yarn only runs prepack scripts, and devDependencies are available during prepack for yarn users, so installing from git with yarn works.
Basically Yarn deviated quite significantly from npm here, which makes the two totally incompatible with each other when install from git.
If yarn must be supported, then adding a prepare script and not deleting the prepack script won't work. In this case we would need to be sure to change the name of the package and publish it so npm users can install from the npm registry.
If npm users would like to install the latest from git though (while not breaking this for yarn users), they would need to clone the project, publish it under their own name, and use a package.json alias:
"dependencies": {
    "rosbag": "npm<EMAIL_ADDRESS>}

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

@trusktr Sorry for the delay - we didn't see any notifications for this PR so didn't realize it was hanging out here. We'll get this added today - I agree being able to install directly from github sources is an important workflow.

@trusktr Sorry for not commenting on this PR sooner - I didn't get any notifications in my usual channels about it. We currently use yarn for all of our work which includes installing directly from sources in these forks so want to make sure we keep that working.
One option here might be to have prepare and prepack invoke a script that detects yarn vs npm and does the right thing depending on which was invoked.

We are gearing up to publish this package on NPM, so this will become a non-issue for anyone simply wanting to consume this library.
Without doing my own testing, but based on the PR description and also reading yarn + npm docs, it sounds like there is no simple solution that would allow both NPM and yarn users to install the package from git sources and have it automatically built (with devDependencies available during build). It might be possible to add the build step to both prepare and prepack, but wrap prepack in a script which detects and exits under npm. I assume someone on the internet has encountered and solved this issue before so if we are going to fix it, it would be nice to reuse prior art, and use the same pattern across all our libraries and our template repo.
However, given that we will be publishing the package to npm shortly, I'm not convinced that all the above work is necessary. If someone is working from a git fork then they are of course free to edit package.json to rename prepack to prepare. All other users will just use our public npm module. I therefore suggest closing this PR unless there is another obvious solution I have missed.

This package has now been published to npm as @foxglove/rosbag.
If there is a better way to use prepack & prepare to allow install from git source on both npm and yarn, we're open to suggestions.


Swarm-listener unable to send create notification

Hello,
I'm trying to run docker-flow-proxy with swarm-listener, however, swarm-listener seems unable to update the proxy, as the logs are filled with the following lines;

2017/06/06 21:53:00 Retrying service created notification to http://haproxy:8080/v1/docker-flow-proxy/reconfigure?distribute=true&port=80&serviceName=mywebsite&servicePath=%2F
2017/06/06 21:53:35 Retrying service created notification to http://haproxy:8080/v1/docker-flow-proxy/reconfigure?distribute=true&port=80&serviceName=mywebsite&servicePath=%2F
2017/06/06 21:54:10 Retrying service created notification to http://haproxy:8080/v1/docker-flow-proxy/reconfigure?distribute=true&port=80&serviceName=mywebsite&servicePath=%2F

I also entered the container, installed curl and tried to do it manually, which left me with this;

/ # curl -v http://haproxy:8080/v1/docker-flow-proxy/reconfigure?distribute=true&port=80&serviceName=mywebsite&servicePath=%2F

Trying <IP_ADDRESS>...
TCP_NODELAY set
connect to <IP_ADDRESS> port 8080 failed: Operation timed out
Failed to connect to haproxy port 8080: Operation timed out
Closing connection 0
curl: (7) Failed to connect to haproxy port 8080: Operation timed out

The commands for creating the two services are these two;

$ docker service create --name swarm-listener --network backend --mount "type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock" -e DF_NOTIFY_CREATE_SERVICE_URL=http://haproxy:8080/v1/docker-flow-proxy/reconfigure -e DF_NOTIFY_REMOVE_SERVICE_URL=http://haproxy:8080/v1/docker-flow-proxy/remove --constraint 'node.role==manager' vfarcic/docker-flow-swarm-listener
$ docker service create --name haproxy -p 80:80 --network backend -e MODE=swarm -e LISTENER_ADDRESS=swarm-listener -e DEBUG=true -e STATS_USER=stats -e STATS_PASS=stats --constraint 'node.labels.type == proxy' vfarcic/docker-flow-proxy

Pinging between the two works, but netstat -tulpn in the proxy container only lists :::8080 for port 8080 - is that an issue? Any other issues that you can see, or other info I should include?
Docker is version 17.03 on both nodes(actually, all 4 nodes), all nodes run Ubuntu 16.04 and the swarm were initialized with listener-address. Both on the first and second attempt to create a swarm.
On my previous attempt to get all this to work, haproxy was eventually updated with the service definition of the webpage, but would only return 503 error messages. When I attempted to curl the servicename from the proxy container, I got an "Host unreachable" message, even though curling from another container on the same node, but which belonged to another service, worked. So I settled with no sense made..

@thomaco Is the service you're creating public? If it is, I could run it in my cluster and debug the problem.

Can you enter into the swarm-listener container and execute:
curl -v http://haproxy:8080/v1/docker-flow-proxy/config

That operation is not related with any target service and outputs DFP config. We'll use it to verify whether the communication between the two services works. If you don't get response 200, the problem is in the backend.
Also, can you please let me know which ports are opened?

It's for a school project, so I just found a working service to proxy.

$ docker service create --name mywebsite --network backend --constraint "node.labels.type == worker" --label com.df.notify=true --label com.df.distribute=true --label com.df.servicePath=/ --label com.df.port=80 dockercloud/hello-world

Based on the output below, I guess the communication between the two services work?

$ curl -v http://haproxy:8080/v1/docker-flow-proxy/config

Trying <IP_ADDRESS>...
TCP_NODELAY set
Connected to haproxy (<IP_ADDRESS>) port 8080 (#0)

GET /v1/docker-flow-proxy/config HTTP/1.1
Host: haproxy:8080
User-Agent: curl/7.52.1
Accept: /

< HTTP/1.1 200 OK
< Content-Type: text/html
< Date: Wed, 07 Jun 2017 09:35:06 GMT
< Content-Length: 716
<
global
pidfile /var/run/haproxy.pid
defaults
mode    http
balance roundrobin
option  dontlognull
option  dontlog-normal
option  forwardfor
option  redispatch

maxconn 5000
timeout connect 5s
timeout client  20s
timeout server  20s
timeout queue   30s
timeout http-request 5s
timeout http-keep-alive 15s

stats enable
stats refresh 30s
stats realm Strictly\ Private
stats auth admin:admin
stats uri /admin?stats

frontend dummy-fe
bind *:80
bind *:443
mode http
option http-server-close
acl url_dummy path_beg /dummy
use_backend dummy-be if url_dummy
backend dummy-be
mode http
server dummy <IP_ADDRESS>:1111

Curl_http_done: called premature == 0
Connection #0 to host haproxy left intact

Open/listening ports in the haproxy container;

/ # netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 <IP_ADDRESS>:35896        <IP_ADDRESS>:*               LISTEN      -
tcp        0      0 <IP_ADDRESS>:443             <IP_ADDRESS>:*               LISTEN      12/haproxy
tcp        0      0 <IP_ADDRESS>:80              <IP_ADDRESS>:*               LISTEN      12/haproxy
tcp        0      0 :::8080                 :::*                    LISTEN      1/docker-flow-proxy
udp        0      0 <IP_ADDRESS>:48784        <IP_ADDRESS>:*                           -
udp        0      0 <IP_ADDRESS>:1514          <IP_ADDRESS>:*                           1/docker-flow-proxy

After letting the haproxy/swarm-listener sit for a while, this error is seen in the logs on the listener;

2017/06/07 09:36:49 Retrying service created notification to http://haproxy:8080/v1/docker-flow-proxy/reconfigure?distribute=true&port=80&serviceName=mywebsite&servicePath=%2F
2017/06/07 09:36:54 ERROR: Request http://haproxy:8080/v1/docker-flow-proxy/remove?distribute=true&serviceName=mywebsite returned status code 500
2017/06/07 09:36:54 ERROR: Request http://haproxy:8080/v1/docker-flow-proxy/reconfigure?distribute=true&port=80&serviceName=mywebsite&servicePath=%2F returned status code 500
{"Mode":"swarm","Status":"NOK","Message":"Could not perform DNS tasks.proxy lookup. If the proxy is not called 'proxy', you must set SERVICE_NAME=\u003cname-of-the-proxy\u003e.","ServiceName":"mywebsite","AclName":"","AddReqHeader":null,"AddResHeader":null,"BackendExtra":"","CheckResolvers":false,"ConnectionMode":"","ConsulTemplateBePath":"","ConsulTemplateFePath":"","Debug":false,"DelReqHeader":null,"DelResHeader":null,"Distribute":true,"HttpsOnly":false,"HttpsPort":0,"IsDefaultBackend":false,"OutboundHostname":"","PathType":"","ProxyMode":"","RedirectWhenHttpProto":false,"ReqPathReplace":"","ReqPathSearch":"","ServiceCert":"","ServiceDomain":null,"ServiceDomainMatchAll":false,"SetReqHeader":null,"SetResHeader":null,"SslVerifyNone":false,"TemplateBePath":"","TemplateFePath":"","TimeoutServer":"","TimeoutTunnel":"","UseGlobalUsers":false,"Users":null,"XForwardedProto":false,"ServiceColor":"","ServicePort":"","AclCondition":"","DomainFunction":"","FullServiceName":"","Host":"","LookupRetry":0,"LookupRetryInterval":0,"ServiceDest":[{"IgnoreAuthorization":false,"Port":"80","ReqMode":"http","ReqModeFormatted":"","ServicePath":["/"],"SrcPort":0,"SrcPortAcl":"","SrcPortAclName":"","VerifyClientSsl":false,"UserAgent":{"Value":null,"AclName":""}}]}

@vfarcic So I looked at it again with a fresh set of eyes, and found issue #76, which subsequently solved all my problems.
Just as a tip for the future - might it be possible to specify the error message even more for dumb users like myself? Also, might it be an idea to add a small info-note on http://proxy.dockerflow.com/swarm-mode-auto/ ?
Anyways, closing the issue, as this was a matter of PEBCAC.

Was it  SERVICE_NAME that fixed the problem?
I'll reopen this ticket as a reminder to make error messages easier to understand as well as to improve the tutorial. Thanks for the feedback.
As a side note, I'd appreciate a pull request with the improvements to the tutorial. It is difficult to put myself into shoes of other people. Would you be willing to modify the docs?

Yes, adding SERVICE_NAME as an environmentvariable to the proxy fixed the problem.
Sure, I'll create a pull request with suggested improvement to the tutorial.

Any suggestions what would be a more appropriate error message?

Seeing as the current error message is currently "Could not perform DNS tasks.proxy lookup. If the proxy is not called 'proxy', you must set SERVICE_NAME=<name-of-the-proxy>.", only a small clarification is needed. Something like "Could not perform DNS lookup for tasks.proxy. If the proxy is not called 'proxy', you must set SERVICE_NAME=<name-of-the-proxy> on the proxy service." maybe?
Moving tasks.proxy to the end of the sentence makes the sentence clearer, as I was somewhat confused on what 'DNS tasks.proxy lookup' meant. For the rest, it's just needed to specify that the variable need to be set on the proxy, to avoid confusion as to where it needs to be set.

Thanks!
It's done and will be available in a few minutes in the release 1.409.


feat: improve UI on smaller screens.

logion-network/logion-internal#311

It depends, the one you mention was clearly forgotten. However, in some very specific cases, the font size is actually used to size an icon or some text which should not change in function of screen width. For example, in the address switcher, the letter inside the shield or disc is 50px large, because it matches the size of the background image.


Issue with Gmail and e10s

C-AD seems to be affected by Firefox bug #1338309  : after installing C-AD (and then, even if it is disabled and even in safe mode), if opened in an e10s-enabled window, Gmail (with Gmail and Google properly whitelisted) will complain that cookies are disables and refuse to load. If opened in a non-e10s window, it works as it should.

You should follow the template if you are reporting a bug.
I am unable to reproduce this, which means do a refresh Firefox (because SDC might have messed up your profile somehow?) and only install Cookie AutoDelete and then report back.

@Evpok I had the exact same issue a while ago while trying to restore my profile. This has nothing to do with C-AD since I experienced the issue before I started using the addon. I tried clearing cookies but to no avail. The only solution is to do what @mrdokenny suggested, create a new profile and it should solve your problem.

I solved the issue by deleting my permission.sqlite, so it might have been some leftover from an old SDC install…

@Evpok The file is permissions.sqlite.


[AutoPR cost-management/resource-manager/consumption/resource-manager] [Hub Generated] Review request for Microsoft.CostManagement to add version stable/2019-01-01

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/5601

(message created by the CI based on PR content)


VirtualAlloc2: Describe how it reacts to NULL process handle

The examples pass nullptr for the Process parameter, but the
doc previously didn't describe what happens in that case.
I assume that it indeed acts on the current process. Chromium seems to use it this way too.

@XrXr : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@Karl-Bridge-Microsoft : Thanks for your contribution! The author(s) have been notified to review your proposed change.


[BUG] The invite link is broken

When using the invite link, it says that This integration is private. Only the application owner can add it.
Image

Apologies! This should be fixed now - let me know if any other issues come up.


NSCCS-9 Businesses should be able to contact us multiple ways

Given I am a business hoping to contact GDSC and add a project for the club to take on
When I visit the home page
Then I see text with button underneath, “Want to submit a project for us to work on? Click the button below to contact us via email or start a chat at the bottom right of the screen.”
When I click the button,
Then I am taken to a form that takes in all client credentials and text field for description of the project.
When I click “submit”
Then I am shown a message “your project has been submitted to the team. We will review and contact you shortly.”

 Businesses Should be able to contact us multiple ways


feat: add Conditions interface

I created Conditions, an interface that allows conditions to be added later.
I considered modifying Where Clause, but it was difficult to maintain compatibility while modifying it for cases that include subqueries in the query string, so I created a separate interface.

I'm closing this PR because it was pointed out that it goes against exql's ideology.


App Store Rejection: Privacy Manifest Files

ITMS-91065: Missing signature - Your app includes “Frameworks/openssl.framework/openssl”, which includes BoringSSL / openssl_grpc, an SDK that was identified in the documentation as a privacy-impacting third-party SDK. If a new app includes a privacy-impacting SDK, or an app update adds a new privacy-impacting SDK, the SDK must include a signature file. Please contact the provider of the SDK that includes this file to get an updated SDK version with a signature. For details about verifying the code signature for a third-party SDK, visit: https://developer.apple.com/documentation/xcode/verifying-the-origin-of-your-xcframeworks.
Apple Developer Relations

Duplicate of #63


IP-Version byte offset cleanup

Cleanup of how the IP-Version byte offset is calculated.  The main point of this PR is to remove the "mystic" value of 6 and substitute it with a properly calculated offset.
Description
Removes the storing of the IP-Type byte for IPv6 frames because it never is and never should be used for these frames.
Defines ipUDP_PAYLOAD_IP_TYPE_OFFSET as an offset dependent on the IPv6 and UDP headers. Calculates ipIP_TYPE_OFFSET automatically based on the sizes it depends on instead of using a hardcoded number. Removes the definitions of ipIP_TYPE_OFFSET and ipUDP_PAYLOAD_IP_TYPE_OFFSET from FreeRTOS_IPv6_Private.h because they are already defined in FreeRTOS_IPv4_Private.h Adds an assert to ensure that storing of the IP-Type for IPv4 frames does not result in overwriting the ethernet header which would be the case if ipIP_TYPE_OFFSET somehow became negative or zero.

I tried running uncrustify, but it seems to modify a bunch of files that I did not touch.
I tried versions 0.67 and 0.77.1 with the following parameters: -c FreeRTOS-Plus-TCP-Fork/tools/uncrustify.cfg --replace --no-backup

Uncrustify can be a bit of a fickle thing. I'll see if I can format your code change so that it passes the checks.
I'm reviewing your change but I'm also going to ask @shubnil to review as he has more +TCP expertise than I do

/bot run uncrustify

@kstribrnAmzn and @evpopov See this commit for example :)

Hi Emil,
Thanks for the change. We are actively reviewing the change. However, We have a release candidate coming up soon, hence we have frozen the merge for a while. We will merge this change as soon as the release is tagged.
Thanks for your patence.
Cheers,
Shub

Thanks all!
No Rush.

@tony-josi-aws you're correct. That comment got out of hand a bit
@htibosch Thanks for the comments. Please take a look at how I cast the define and now the assert catches the situation where ipIP_TYPE_OFFSET gets negative.

/bot run uncrustify

@amazonKamath no worries, just let me know what exactly I need to do.
Should I just close this PR and submit a new one on "main" or can I rebase this current PR branch onto main and force-push it?
I guess what I'm asking is.... if I rebase and force-pushing the branch in my repo, would this PR still be valid?
Or maybe I'm completely confused... Let me know with some more details please.
Thanks

@amazonKamath no worries, just let me know what exactly I need to do. Should I just close this PR and submit a new one on "main" or can I rebase this current PR branch onto main and force-push it? I guess what I'm asking is.... if I rebase and squash all commits and then force-push the branch in my repo, would this PR still be valid? Is this what you are asking me to do or am I'm completely confused?
Thanks

Thank you. No worries. @shubnil @moninom1 @tony-josi-aws  - do you have a preference?

Hi @evpopov As the main and devIntegration branch has grown apart, merging from devIntegration branch to main would be difficult. I would suggest you to  checkout to main branch cherry-pick your changes and create a new PR.
Let us know if you want any help from us. Thank you

Got it.
I'll open a new one in a few days.


tests: Adjustments to run tests with pygments 2.14.0

The current most recent version of pygments produces some different output which provoke failing some of the the existing tests.
Type of changes

[x] Bug fix
[ ] New feature
[ ] Documentation / docstrings
[ ] Tests
[ ] Other

Checklist

[x] I've run the latest black with default args on new code.
[ ] I've updated CHANGELOG.md and CONTRIBUTORS.md where appropriate.
I don't mind any mention of my name or contribution, I think it's not worth that.
[ ] I've added tests for new code.
There is no code added.
[x] I accept that @willmcgugan may be pedantic in the code review.

Description
After getting pygments updated to 2.14.0 the CI infrastructure in Debian reports failing tests for rich version 13.0.0.
For example here a log for amd64.
https://ci.debian.net/data/autopkgtest/testing/amd64/r/rich/30315095/log.gz
Happen on all platforms the CI infrastructure is running on.
Fixing this problem is easy I think, it requires the adjustments of test_python_render_simple_indent_guides() and test_python_render_line_range_indent_guides() so the expected output dos not differ to the produces output.

duplicate of (part of) #2439 (https://github.com/Textualize/rich/commit/8e87818d1948a6267fc6b40a6f9c220b2773883d)

Fix in next release


Feature/home page text

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


Add mark step after optimizer step

There was no XLA barrier call after the optimizer step. This PR fixes that.
It (partially or fully) addresses the third point in #193.
Fixes: #166

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


Dashboard: List Users & Subscriptions

For admins only.
Implement the following:

User index (list)
User subscriptions index (list) as nested resources (e.g. /users/:id/subscriptions)

One of the goals of this is that Admins can manage user's subscriptions (mainly unsubscribing)

I'm pinning this issue to bring more visibility to it. I'd love to have this prioritized so operations can handle unsubscribe requests themselves. Currently, unsub requests are taking up some of my time
cc @northeastprince

Yeah, I saw you doing some of those via the console. Why couldn't they just click on the unsubscribe link?

Some users are marking emails as spam. As a result, AWS sends an email that looks like this. These emails are received by HCB Operations

Are these legit users? If so, that seems odd, as the only way you get emails from us is if you subscribe.


Event Pop-up Improvements:

fixes: issue #1079
Styled the Pop Up card acording to main theme

Hi @rahulkhandait-sde can you please check my PR. Thank you

@LinukaAr Please see the conflicts . Resolve the conflicts . Ensure you pull all the latest changes before pushing your feature/bug fixes to the main branch. After resolving the conflicts, please open a new PR for review.
Thank you!


How to input own data?

Hello , I am interested to use your model. I use SHAPY model and PYMAF to output 3D model from 2D images. So I already have 3D obj file with SMPL format.
How can I apply my 3D model to your model to get the body measurement?

Hi,
Depending on the output of SHAPY and PYMAF you can do the following:

If you have the SMPL shape betas and gender gender parameters as your SHAPY or PYMAF outputs:

smpl_path = "/SMPL-Anthropometry/data/SMPL"
measurer = MeasureSMPL(smpl_path=smpl_path)

measurer.from_smpl(gender=gender, shape=betas)

measurement_names = MeasurementDefinitions.possible_measurements
measurer.measure(measurement_names)
measurer.label_measurements(STANDARD_LABELS)

If you have the SMPL body vertices verts of shape 6890x3 as your SHAPY or PYMAF outputs:

smpl_path = "/SMPL-Anthropometry/data/SMPL"
measurer = MeasureSMPL(smpl_path=smpl_path)

measurer.from_verts(verts=verts)

measurement_names = MeasurementDefinitions.possible_measurements
measurer.measure(measurement_names)
measurer.label_measurements(STANDARD_LABELS)

Then, the measurer.measurements and measurer.labeled_measurements are python dictionaries of your measurements.

Thank you for getting back to me.
So the file format for verts is .npz file format right?
By the way, Is there any other way that can measure from 3D obj file?

So the file format for verts is .npz file format right?

The SMPL package uses pytorch as its standard for vectors/matrices/tensors. Therefore, if you have a .npz file on your disk with the vertices, you can load them with numpy and then convert them into a torch tensor -- something like torch.from_numpy(loaded_numpy_vertices).  As I mentioned however, the dimensions of the vertices needs to be (6890,3).

By the way, Is there any other way that can measure from 3D obj file?

Sure, load your .obj file with trimesh -- something like verts = trimesh.load(scan_path, process=False).vertices --  and then convert the verts into a torch tensor as noted above torch.from_numpy(fitted_smpl).

Thank you for your fast response.
I have a problem when I run measure.py, it keeps showing me about .pkl file is not exist. But I just want to use verts.
I run the code on Google Colab. If you have google colab, please share it with me.
Error "  Path /content/SMPL-Anthropometry/data/SMPL/smpl/SMPL_NEUTRAL.pkl does not exist!"

I already check with my verts and it is match with your verts format. But I don't know how to put your code into measurement.py ?  Becasue it keep showing me verts is not defined.
smpl_path = "/SMPL-Anthropometry/data/SMPL"
measurer = MeasureSMPL(smpl_path=smpl_path)

measurer.from_verts(verts=verts)

measurement_names = MeasurementDefinitions.possible_measurements
measurer.measure(measurement_names)
measurer.label_measurements(STANDARD_LABELS)

@Daktha123 Did you already solve that?  I am still stuck at "measurer.from_verts(verts=verts)". I don't know how to add "verts" to the internal code.

@Daktha123
The second image code looks all right to me at first glance. You don't need the imports there but I guess they shouldn't hurt. I can't help you if I don't know what's actually wrong -- "program is not working" is not specific enough.
@NaToh5
You need to load the verts -- these are YOUR vertices that you should have. You can add them to the code as @Daktha123  did in the second image.

I add these codes in measure.py . The program is working now and it load the verts perfectly. Could you please check it is correct ? Btw how can show the measurement with 2D image like your show in the measurment_visulization.
scan_path = "/content/SMPL-Anthropometry/data/SMPL/smpl/John_0_smpl.obj"
verts = trimesh.load(scan_path, process=False).vertices
verts_tensor = torch.from_numpy(verts)

verts = verts_tensor.float()

from measure import MeasureSMPL
    from measurement_definitions import MeasurementDefinitions, STANDARD_LABELS

    smpl_path = "/content/SMPL-Anthropometry/data/SMPL"
    measurer = MeasureSMPL(smpl_path=smpl_path)

    measurer.from_verts(verts=verts_tensor)

@Daktha123
Yes, it looks good; you don't need the line verts = verts_tensor.float().
To get the visualizations you can use:
measurer.visualize()

This uses the plotly package and opens a visualization in the browser you can rotate.

If I don't use "**verts = verts_tensor.float()*" I got this error " RuntimeError: expected scalar type Float but found Double ". That's why I use that code. Do you think that code might (verts = verts_tensor.float()) have a problem with the measurement process?


Fix URL generation in sitemap generator

We are currently serving broken URLs in the sitemap, which results in bad SEO. Let's get this merged ASAP.

Note: If you are reviewing this PR using netlify's preview, you'll notice the URLs in sitemap.xml will not show the domain (for example the first link is: /2020/05/30/monero-GUI-0.16-released.html). That's because netlify builds using --baseurl '', which enforces a blank baseurl. To review, build the PR locally using bundle exec jekyll build --limit-posts 1 and then inspect the sitemap.xml file in _site.


bump zig sdk + simplify zig build workaround

From @jacobly in https://github.com/ziglang/zig/issues/14815#issuecomment-1550874385:

@motiejus to be clear, this unrelated issue is not affected by a cache
clear, and can be resolved by simply rerunning the build (and not
getting very unlucky again).

Zig notably fixes https://github.com/ziglang/zig/issues/14815

Replaced with #75


Include() statement when related record is not found

When using the Include() statement to brink back related objects i have noticed that if the related child record cannot be found then the parent record is not returned when i would expect (or would like) it to be with just a NULL value for the child record. It looks like it is just doing a JOIN instead of a LEFT JOIN.
Is there another statement I should be using to get it to do a LEFT JOIN i do like the idea of using includes.
Thanks,
Further technical details
EF Core version: 2.0
Database Provider: Microsoft.EntityFrameworkCore.SqlServer
Operating system: Win 7
IDE:Visual Studio 2017

@aday12345 - An optional relationship could have null FK value implying no associated parent row whereas a required relationship means there will be always a parent row associated. For parent side, child may or may not exist. Based on that, when we are generating query and if it is guaranteed to have associated row, we do JOIN rather than LEFT JOIN since that is optimization and it would give same results regardless, (since there are no rows would produce NULL). All this happens automatically for include and it makes sure that correct JOIN is applied. If you are seeing that there was a parent with no related child which was supposed to be returned but using include did not return it then please provide us a repro code which demonstrate that.

ok, so I get that ant it makes sense.
But it this case it is (intentional) bad data and I have a required relationship (not null) and a missing child record i wish it would still return a null back so i can make the decision in my code how to handle it.

If you have bad data (missing child records) then your FK is nullable on database. If you are configuring relationship to be required in EF model then you are causing a mismatch between EF model & database. That is likely to fail. Either you can configure the relationship to be optional in EF or query manually rather than using EF.

thanks, for your help


Add textMapIsSparqlQuery URL parameter to shex-simple

This makes it possible to link to a version of shex-simple where users can enter a SPARQL query directly, without having to know the SPARQL extension syntax.
Part of our attempts to make the tool a bit easier to use for Wikidata editors not overly familiar with ShEx (T218886).

Looks good to me 👍

For posterity's sake, it would be cool to have a stock URL which tested this behavior attached to this PR.

Example URL:
https://tools.wmflabs.org/shex-simple/wikidata/packages/shex-webapp/doc/shex-simple.html?data=Endpoint: https://query.wikidata.org/sparql&manifest=[]&schemaURL=https%3A%2F%2Fwikidata-shex.wmflabs.org%2Fwiki%2FSpecial%3ASchemaText%2FO2&hideData&textMapIsSparqlQuery


Memory leak

Describe the bug
Occasionally, memory usage will grow until it crashes Unity when the editor is left with an active ocean in scene.
Screenshots / video

Versions
Crest 4.5, HDRP 7.3.1 and Unity 2019.4.8.f1
Platform

Editor
Windows

Additional context
We fixed a few memory issues a little while ago which were easier to pinpoint. This one is "occasionally" so it will be more difficult.

From Discord:

so there is still a memory leak in editor mode in the latest hdrp version on 2020.1.  The scene with crest I left open overnight went from 4gb ram usage to 25gb.  This looks like maybe a different issue then one I hit previously that seemed linked to entering/exiting play mode.   Refocusing Unity took a while and that brought the memory down quite a bit.

Interesting. Any suspicions as to the culprit? Any potential repro steps, or seemingly random so far?
I feel like its CPU memory, but i'm not 100% sure. If you can trap it happen it would be interesting to see the profiler memory pane while connected to the editor.

I forgot to add this was reported on Discord by two users (updated post). I haven't experienced this myself. It's hard to know since the timeframe is so long.

One issue is that I think the ocean may be updating every editor frame even if the viewport is rendering infrequently. I think this is a regression, or maybe it was always broken. This may exacerbate any memory leak (but doesn't explain it).
I'm still yet to see this happen across multiple editor versions and multiple PCs. Maybe it's an editor setting, or window layout/settings or something..

On I've seen it now and holy moly it's bad. It comes from creating async GPU readback requests while in edit mode (not play mode). It seems to be an engine bug.
I think a short term fix could just not do them in edit mode. I don't think we rely on them.

Perfect. Did you use the Unity memory profile to find it?

Sort of - the profiler showed unity memory increasing, but it was not attributed to any of the stats, or call stacks, so I binary searched to find the culprit.

Fixed in 2019.4.8, and 2020.1.?
https://issuetracker.unity3d.com/issues/asyncgpureadback-can-leak-memory-under-certain-circumstances

Apparently 2020.1.2f1 specifically. And 2020.2.0a20 too


Reduce Rafael cluster to 5 nodes instead of 10 nodes

I think this is in the wrong repo. Closing and opening in appropriate location


HDDS-6251. Smoketest for ozone admin datanode expects exactly 3 nodes

What changes were proposed in this pull request?
Get expected count of nodes in specific state via unfiltered command, filtering by grep.  This allows running the test with any number of datanodes.
https://issues.apache.org/jira/browse/HDDS-6251
How was this patch tested?
$ cd hadoop-ozone/dist/target/ozone-1.3.0-SNAPSHOT/compose/ozone
$ docker-compose up -d --scale datanode=5
# wait
$ docker-compose exec scm robot smoketest/admincli/datanode.robot
==============================================================================
Datanode :: Test ozone admin datanode command
==============================================================================
List datanodes                                                        | PASS |
------------------------------------------------------------------------------
Filter list by UUID                                                   | PASS |
------------------------------------------------------------------------------
Filter list by NodeOperationalState                                   | PASS |
------------------------------------------------------------------------------
Filter list by NodeState                                              | PASS |
------------------------------------------------------------------------------
Incomplete command                                                    | PASS |
------------------------------------------------------------------------------
Datanode :: Test ozone admin datanode command                         | PASS |
5 tests, 5 passed, 0 failed
==============================================================================

CI:
https://github.com/adoroszlai/hadoop-ozone/runs/5050570714

Thanks @sodonnel for reviewing and committing it.


Issue #532: added data_received listener

Also corrected some minor spelling
Issue: https://github.com/livekit/agents/issues/532

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


suggestion about distribution file names

now the default distributed file hierarchy is as this:
libuv_root
    include
    lib
        Debug
            uv.dll uv.lib uv_a.lib
        Release
            uv.dll uv.lib uv_a.lib

On Windows after adding libuv_root/lib/Debug and libuv_root/lib/Release to system environment variable path, when developing in debug / release mode, it can't automatically choose the right dll.
My suggestion:
libuv_root
    include
    lib
        libuv.dll uv.lib uv_a.lib libuv-d.dll uv-d.lib uv_a-d.lib

Thanks

Hey there! We are currently in the process of dumping GYP as the buildsystem, so thaat's no longer going to apply. You'll just call CMake and I believe you can customize the output artifact name from the command line.

OK

@saghul Are you planning to refactor CMakeLists.txt to use only one target for both build configurations instead of the disctint ones (uv and uv_a)? It's a bit awkward and unnatural to CMake ecosystem because user usually configure BUILD_SHARED_LIBS for the purpose of selection between static and shared builds.
Macro like BUILDING_UV_SHARED can be defined using DEFINE_SYMBOL along with using of GenerateExportHeader utility module to generate export/import logic you currently have here.
Also it will greatly simplify logic of target defines and options, tests, etc.

I'm not sure if that's in the cards. Feel free to open an issue to discuss it.


[wip] Fix k8sapi removal

TL;DR
Remove dependency on lyft's fork of kubeapi
Type

[x] Bug Fix
[ ] Feature
[ ] Plugin

Are all requirements met?

[ ] Code completed
[ ] Smoke tested
[ ] Unit tests added
[ ] Code documentation added
[ ] Any pending items have an associated Issue

Tracking Issue
https://github.com/flyteorg/flyte/issues/742

Closing since we merged this as part of another PR


Google tag manager

I've tried to include the browser-update code via configure tag in google tag manager. Seems it is not working with it, any ideas why?

Usually it should work. Maybe sou don't see the bar because your browser is up to date or you see it only once a day. How did you test it?


🎮 NES guide (FCEUX)

I also want this :)

Will this need a compilation guide or would it be better to just wait for it to be (or make it) available via Flatpak?

I'd prefer to do everything via Flatpak if possible.


A convenient way to install librealsense SDK of a specific release

Required Info

Camera Model
D400

Firmware Version
v2.28.0

Operating System & Version
Ubuntu 16.04

Kernel Version (Linux Only)
4.15.0-106-generic

Platform
PC

SDK Version
2.35.2

Language
C++

Segment
Robot

Issue Description
I have been using the command below to install librealsense SDK on multiple robots. However, the SDK version is always the latest release, therefore there are different versions of librealsense SDK on my robots.
apt-key adv --keyserver keys.gnupg.net --recv-key C8B3A55A6F3EFCDE || apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key C8B3A55A6F3EFCDE add-apt-repository "deb http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo xenial main" -u apt-get install -y librealsense2-dkms apt-get install -y librealsense2-utils apt-get install -y librealsense2-dev apt-get install -y librealsense2-dbg
Question:

Is the librealsense SDK always backward compatible so that I can always do an update on the SDK?
If it is not backward compatible, is there a convenient way to install a specific release of SDK so that I can standardize the version on all the robots?

Hi @songshan0321   If you are accessing an SDK feature that was introduced in a certain version onward, then you would not be able to access that feature in SDK versions older than the one where it was introduced.
If you are using an SDK version that is older than the latest version but is the same or newer than the version where a feature is introduced then there should be back-compatibility.

If you want to ensure that you are installing the same SDK on all robots using Ubuntu then you can obtain a source-code zip file from the SDK Releases page, extract its contents and use the extracted folder to build that specific Librealsense version.

https://github.com/IntelRealSense/librealsense/releases/
The source-code zip file can be found in the Assets file list at the bottom of the listing of details for each version on the Releases page.

If you are installing on multiple robots, you may find it convenient to build the source code using the backend method.  This requires an internet connection but is not dependent on Linux versions or kernel versions and does not require patching.  Once you have extracted a source-code zip file, you can build the SDK from source with the simple method below:

Go to the Librealsense root directory of the extracted folder and create a Build folder, and then change to that created folder using the command below (if you have not created the Build folder already):

mkdir build && cd build

Whilst in the Build folder, run the CMake command below:

cmake ../ -DFORCE_RSUSB_BACKEND=true -DCMAKE_BUILD_TYPE=release -DBUILD_EXAMPLES=true -DBUILD_GRAPHICAL_EXAMPLES=true

Hi thank for the reply. May I know what does FORCE_RSUSB_BACKEND do? Is there any convenient way to build on one Linux PC, then I can distribute the build file on other PC with same Linux distribution and kernel. This can avoid building from source on every PC, it takes time.

FORCE_RSUSB_BACKEND installs resources over the internet that would normally have to be patched when building the SDK from source code.  The link below explains the advantages and disadvantages of the backend method compared to patching.  Please scroll down to the section on the link headed 'What are the advantages and disadvantages of using libuvc vs patched kernel modules?'.
https://github.com/IntelRealSense/librealsense/issues/5212#issuecomment-552184604
If you would prefer to be able to deploy easily to multiple devices though, the best way to do so may be to create a GitHub "fork" copy of the Librealsense repository that is not synced with the official repository and so does not update until you deliberately update it.
https://help.github.com/en/github/getting-started-with-github/fork-a-repo


Add support for indexing methods with no parameters

(will update details shortly)
Motivation

Implementation

Automated Tests

Manual Tests

@vinistock I pushed an update to cover some more agument types. The typecheck is failing, it looks like the RBI needs corrected in a few places.


Support factorials and the gamma function

Before adding such functions, we have to add integration, it requires a lot of work. It will be added, though.


[Bug] .GetCredential() option throws error when secret has multiple password fields (0.34)

Describe the bug
after storing secret in variable and trying to build a pscredential object using the $secret.getcredential() option an error is thrown.
This is depending the template being used. In the case of a standard Active Directory template the error is not thrown and the pscredential object get created.
When using a template with multiple password fields (such as Unix account) the passwd value created is not a string but an object and thus can't be converted using convertto-securestring.
To Reproduce
Steps to reproduce the behavior:

PowerShell script:

import-module Thycotic.SecretServer

$session = new-TssSession -SecretServer https://lab-sspm.lab.petje.com/secretserver/ -UseSdkClient -ConfigPath H:\sdk-powershell\

$secret = Get-TssSecret -TssSession $session -id 78

$username = $secret.GetFieldValue('username')
$password = $secret.GetFieldValue('password')

Write-Host "The username is $username"
Write-Host "The password is $password"

$cred = $secret.GetCredential()

Error/issue observed:

$error | select *

PSMessageDetails      :
Exception             : System.Management.Automation.ParameterBindingException: Cannot convert 'System.Object[]' to the type 'System.String' required by parameter 'String'. Specified method is not supported. --->
                        System.NotSupportedException: Specified method is not supported.
                           at System.Management.Automation.ParameterBinderBase.CoerceTypeAsNeeded(CommandParameterInternal argument, String parameterName, Type toType, ParameterCollectionTypeInformation collectionTypeInfo,
                        Object currentValue)
                           --- End of inner exception stack trace ---
                           at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
                           at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
                           at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
                           at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
                           at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame)
                           at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0)
                           at System.Management.Automation.ScriptBlock.InvokeWithPipeImpl(ScriptBlockClauseToInvoke clauseToInvoke, Boolean createLocalScope, Dictionary`2 functionsToDefine, List`1 variablesToDefine,
                        ErrorHandlingBehavior errorHandlingBehavior, Object dollarUnder, Object input, Object scriptThis, Pipe outputPipe, InvocationInfo invocationInfo, Object[] args)
                           at System.Management.Automation.ScriptBlock.<>c__DisplayClass57_0.<InvokeWithPipe>b__0()
                           at System.Management.Automation.Runspaces.RunspaceBase.RunActionIfNoRunningPipelinesWithThreadCheck(Action action)
                           at System.Management.Automation.ScriptBlock.InvokeWithPipe(Boolean useLocalScope, ErrorHandlingBehavior errorHandlingBehavior, Object dollarUnder, Object input, Object scriptThis, Pipe outputPipe,
                        InvocationInfo invocationInfo, Boolean propagateAllExceptionsToTop, List`1 variablesToDefine, Dictionary`2 functionsToDefine, Object[] args)
                           at System.Management.Automation.ScriptBlock.InvokeAsMemberFunctionT[T](Object instance, Object[] args)
                           at CallSite.Target(Closure , CallSite , Object )
                           at System.Management.Automation.Interpreter.DynamicInstruction`2.Run(InterpretedFrame frame)
                           at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
TargetObject          :
CategoryInfo          : InvalidArgument: (:) [ConvertTo-SecureString], ParameterBindingException
FullyQualifiedErrorId : CannotConvertArgument,Microsoft.PowerShell.Commands.ConvertToSecureStringCommand
ErrorDetails          :
InvocationInfo        : System.Management.Automation.InvocationInfo
ScriptStackTrace      : at GetCredential, C:\Program Files\WindowsPowerShell\Modules\Thycotic.SecretServer\0.34.0\classes\secrets\TssSecret.class.ps1: line 129
                        at <ScriptBlock>, C:\Users\patrick.LAB\Github\Personal\SecretServer\Scripting\PowerShell\get-password - pwsh module.ps1: line 13
PipelineIterationInfo : {}

Expected behavior
storing of username password in a pscredential object.
Environment (please complete the following information):
Secret Server
Build/Version: 10.9.63
PowerShell version
Name                           Value
----                           -----
PSVersion                      5.1.19041.610
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.610
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>

Host information:
[x ] Powershell.exe
[ ] pwsh.exe
[ ] PowerShell ISE
[x ] VS Code (Insiders/Stable)
Additional context
Managed to track this down to the following component: TssSecret.class.ps1
Line 124 - 129
[System.Management.Automation.PSCredential]
GetCredential() {
    $username = ($this.Items | Where-Object FieldName -EQ 'username').ItemValue
    $passwd = ($this.Items | Where-Object IsPassword).ItemValue
    return [pscredential]::new($username,(ConvertTo-SecureString -AsPlainText -Force -String $passwd))

after running into the error and manually running the code above I checked the contents of $passwd
$passwd = ($secret.Items | Where-Object IsPassword).ItemValue
$passwd.GetType()
IsPublic IsSerial Name                                     BaseType

True     True     Object[]                                 System.Array
contents actually translate back to the following:
($secret.Items | Where-Object IsPassword)
ItemId FieldId FieldName              ItemValue    Slug                   Filename

332    110     Password               redacted       password
335    190     Private Key Passphrase              private-key-passphrase
so we would or need to validate that there are not more secret fields and throw a more friendly error (can't create credentials as secret has more password fields).. or do further error handling to try and filter out the actual password we want.

storing of username password in a pscredential object.

This is actually broken in more ways for AD secrets that I did not catch prior. A proper PSCredential for the 6001 template would be having the Username created as domain\username slugs, and then the password slug pulled.
With Unix, I'd have to be told which slug you wanted to use for a password value. It can vary even more with custom templates based on how they created and if they keep with the standard slug names of username and password.
Only clean way I'd see this being fixed for all use cases would be to require the slug names being provided:
[pscredential] GetCredential([string] slug, [string] slug, [string], slug)

This would be a breaking change but is required to address both Unix based templates and the AD template too. This would allow you to create a PSCredential on any combination that you want:
$secret.GetCredential('domain','username','password')

@PatrickV-code fixe can be found in v0.35.0 branch and will be included when I get the next release out.


Include min sdk version requirement

Right now flutter supports a minimum SDK version of 16 and all plugins should be able to match it, anything lower than that will probably cause some unwanted issues. We need to add those into Android Manifest and properly document it.

@


Separate Address/Data Readiness

Separate address and data readiness in the LSU and scoreboard to allow for address calculations to run ahead if data is not ready. Currently we wait for both address and data operands to be ready before starting store operations.

Implemented in https://github.com/riscv-software-src/riscv-perf-model/pull/70.
@h0lyalg0rithm, the address/data separation is structured as follows:
In an Inst object, we have a data register mask and separate tracking in RenameData:
https://github.com/riscv-software-src/riscv-perf-model/blob/7c0b0513554a1622f05c9c3b27895f795e634960/core/Inst.hpp#L65
https://github.com/riscv-software-src/riscv-perf-model/blob/7c0b0513554a1622f05c9c3b27895f795e634960/core/Inst.hpp#L231
for the address tracking, tracking is done via the src_reg_bit_mask:
https://github.com/riscv-software-src/riscv-perf-model/blob/7c0b0513554a1622f05c9c3b27895f795e634960/core/Inst.hpp#L229
where it's stored in the integer rf, because address operands are always integer.
We always check the address operand for readiness first, and if it's ready, then the data for store operations. So ideally if address operand is ready, but data is not, you can runahead with the address calculation and the data will have a callback from the scoreboard when it's ready:
https://github.com/riscv-software-src/riscv-perf-model/blob/7c0b0513554a1622f05c9c3b27895f795e634960/core/LSU.cpp#L117
Let me know if you have any questions on this.


release-19.2: allocator: increase rebalance threshold

PR: https://github.com/cockroachdb/cockroach/pull/44359
From release notes:

The kv.allocator.range_rebalance_threshold setting, which controls how far away from the mean a store's range count must be before it is considered for rebalance, is now subject to a 2-replica minimum. If, for example, the mean number of replicas per store is 5.6 and the setting is 5%, the store won't be considered for rebalance unless the number of replicas is lesser than 3 or greater than 8. Previously, the bounds would have been 5 and 6. [#44359][#44359] {% comment %}doc{% endcomment %}

@rmloveland, not sure if this affects docs.

Closing per discussion in #6591


[Treeview] Hovering an item make icons dissapear.

Description
Hovering an item with an icon gives the icon the same color as the background, or something.
Steps to reproduce

Go to https://opensource.adobe.com/spectrum-css/treeview.html#foldersfiles
Hover one of the items with an icon
Observe the icon become "invisible"

Expected behavior
Icon should have a suitable hover color.
Screenshots

synced to jira: https://jira.corp.adobe.com/browse/CSS-205

Whoops, this isn't about color, it's about the use of the :before pseudo element is position: absolute which places it over the icon when the hover state is activated.

I noticed this, too, and I've fixed it in my WIP Tree View branch, which (as you know) has been temporarily de-prioritized. We'll be sure to get this in, though.

Any word on when this might be fixed?


display: Support arbitrary resolutions

This PR adds support for custom resolutions by changing the replacing the existing resolution_t enum type with a struct type of the same name that includes width, height and interlacing as its values, which is then sent as an argument to display_init like before. The new implementation includes some asserts to protect against invalid settings that do not work on real hardware.
There is still one bug left to resolve. When changing resolutions frequently, it seems that some resolutions will break the VI output in real hardware and leave it in a corrupt state that remains even after soft reset. This can be reproduced that applying this patch to the test example that I made for testing the feature and then press D-pad right, then D-pad down (which should correspond to 322x241).
diff --git a/examples/test/test.c b/examples/test/test.c
index b211a01e..b25fd846 100644
--- a/examples/test/test.c
+++ b/examples/test/test.c
@@ -70,10 +70,8 @@ int main(void)
         /*Fill the screen */
         graphics_fill_screen( disp, 0 );

-        sprintf(tStr, "Video mode: %lu\n", *((uint32_t *)0x80000300));
+        sprintf(tStr, "Size: %lux%lu\n", res.width, res.height);
         graphics_draw_text( disp, 20, 20, tStr );
-        sprintf(tStr, "Status: %08lX\n", *((uint32_t *)0xa4400000));
-        graphics_draw_text( disp, 20, 30, tStr );

         /* Full bright color */
         graphics_draw_box(disp, 20, 40, 20, 20, graphics_make_color(255, 0, 0, 255));
@@ -125,32 +123,28 @@ int main(void)
         if( keys.c[0].up )
         {
             display_close();
-
-            res = RESOLUTION_640x480;
+            res.height--;
             display_init( res, bit, 2, GAMMA_NONE, ANTIALIAS_RESAMPLE );
         }

         if( keys.c[0].down )
         {
             display_close();
-
-            res = RESOLUTION_320x240;
+            res.height++;
             display_init( res, bit, 2, GAMMA_NONE, ANTIALIAS_RESAMPLE );
         }

         if( keys.c[0].left )
         {
             display_close();
-
-            bit = DEPTH_16_BPP;
+            res.width -= 2;
             display_init( res, bit, 2, GAMMA_NONE, ANTIALIAS_RESAMPLE );
         }

         if( keys.c[0].right )
         {
             display_close();
-
-            bit = DEPTH_32_BPP;
+            res.width += 2;
             display_init( res, bit, 2, GAMMA_NONE, ANTIALIAS_RESAMPLE );
         }
     }

Seems that waiting for vblank before updating the VI settings was enough to avoid the VI crash, I updated the PR to have waits in display_init and display_close.

Merged manually, thanks


Build pipeline -test

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


Question about the SBMNet.

Hi,
As what mentioned in the paper, the reliability map Z is computed by

where I think, Z is related to the difference about the interped frame in time t by V_(t->0) and V_(t->1).
However, in the code,

where frame2_1 is compute by the flow SBM_ * (-1)， which I think is flow from 0 to 1, not time t to 1.
In
'''frame2_1, Mask2_1 = warp(frame1_, SBM_ * (-1),  return_mask=True)''',  frame2_1 will be a warpped frame from frame1 to frame3, not frame2.
Hope I have maken a clear statement of my question.

Hi, @JerryLeolfl.
SBM_ is the symmetric bilateral motion vector field from t to 1.
Under the linear motion assumption, we developed the bilateral cost volume layer, which computes matching costs between two feature maps F_0 and F_1, yielding the bilateral cost volume in time t. Consequently, it makes the SBMNet estimate V_t_1.
If you want to know in detail how to estimate V_t_1 as the SBM, BMBC which is our previous method would be helpful to understand it.


Add Ubuntu lunar 23.04 in config/hotspot.yml

Add Ubuntu lunar 23.04 in config/hotspot.yml
Signed-off-by David Bergeron<EMAIL_ADDRESS>

Depend on pull request #471
Because the script generate_dockerfiles.py
Do not work in all versions of ubuntu to generate the entrypoint.sh file.

Sorry out policy is to only support LTS versions in our official docker images


Release 2.37.1

Note:
This also updates go-restful to address upstream CVE which does not affect prometheus directly, but is seen by security scanners. Additionally, we carry on buxfixes and security fixes from go 1.18.5 and go1.18.6.
Changes that are not user visible are not mentioned in the changelog as usual.


Operation returned an invalid status 'Bad Request' when trying to set a custom domain

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug

To Reproduce

Run az staticwebapp hostname set -n jamcloud --hostname blog.domain.com
returns Operation returned an invalid status 'Bad Request'
cli.azure.cli.core.sdk.policies: Response content:
cli.azure.cli.core.sdk.policies: {"Code":"BadRequest","Message":"The maximum number of custom domains allowed for this static site is 2.","Target":null,"Details":[{"Message":"The maximum number of custom domains allowed for this static site is 2."},{"Code":"BadRequest"},{"ErrorEntity":{"ExtendedCode":"59334","MessageTemplate":"The maximum number of custom domains allowed for this static site is {0}.","Parameters":["2"],"Code":"BadRequest","Message":"The maximum number of custom domains allowed for this static site is 2."}}],"Innererror":null}
cli.azure.cli.core.util: azure.cli.core.util.handle_exception is called with an exception:
cli.azure.cli.core.util: Traceback (most recent call last):
File "/opt/homebrew/Cellar/azure-cli/2.32.0/libexec/lib/python3.10/site-packages/knack/cli.py", line 231, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/homebrew/Cellar/azure-cli/2.32.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 658, in execute
raise ex
File "/opt/homebrew/Cellar/azure-cli/2.32.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 721, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/opt/homebrew/Cellar/azure-cli/2.32.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 692, in _run_job
result = cmd_copy(params)
File "/opt/homebrew/Cellar/azure-cli/2.32.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 328, in call
return self.handler(*args, **kwargs)
File "/opt/homebrew/Cellar/azure-cli/2.32.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
return op(**command_args)
File "/opt/homebrew/Cellar/azure-cli/2.32.0/libexec/lib/python3.10/site-packages/azure/cli/command_modules/appservice/static_sites.py", line 117, in set_staticsite_domain
return sdk_no_wait(no_wait, client.begin_create_or_update_static_site_custom_domain,
File "/opt/homebrew/Cellar/azure-cli/2.32.0/libexec/lib/python3.10/site-packages/azure/cli/core/util.py", line 678, in sdk_no_wait
return func(*args, **kwargs)
File "/opt/homebrew/Cellar/azure-cli/2.32.0/libexec/lib/python3.10/site-packages/azure/mgmt/web/v2021_01_15/operations/_static_sites_operations.py", line 2464, in begin_create_or_update_static_site_custom_domain
raw_result = self._create_or_update_static_site_custom_domain_initial(
File "/opt/homebrew/Cellar/azure-cli/2.32.0/libexec/lib/python3.10/site-packages/azure/mgmt/web/v2021_01_15/operations/_static_sites_operations.py", line 2409, in _create_or_update_static_site_custom_domain_initial
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
azure.core.exceptions.HttpResponseError: Operation returned an invalid status 'Bad Request'
cli.azure.cli.core.azclierror: Operation returned an invalid status 'Bad Request'
az_command_data_logger: Operation returned an invalid status 'Bad Request'
Expected behavior

We should include the error message "The maximum number of custom domains allowed for this static site is 2."

route to service team

The error here is that the quota has reached "The maximum number of custom domains allowed for this static site is 2."
@StrawnSC can we show the detailed error message by default on SWA command?

I also need to fix this for az staticwebapp identity assign:

It seems this feature is only available for the standard SKU, but the error message here is simply the unhelpful Bad Request

The same goes for az staticwebapp create where the error message is  RepositoryToken is invalid. Please ensure the repository exists and the RepositoryToken is for an admin of the repository.
This also only outputs Bad Request.


Update readme

The instructions for running tests are out of date.

@justinvdm Ready for review.

:+1:


Screensaver won't use my pictures

I have my pictures on Google Photo View which I access through Roku. I set my screensaver to use my photos. Everything was going along just fine until last week when the screensaver started using pictures from Chris Taylor (a bunch of pics of a fat cat + some ocean pics, etc.).
When I went in to hopefully reset the screensaver it just tells me I'm watching my own pics.
I am not, however, having any problem adding new pictures to my albums or viewing my pictures (except of course in the screensaver)

This is already being tracked in multiple other tickets.
Closing issue, was due to an unannounced change in Google API.. This has been fixed in Release 1.7 (https://github.com/chtaylo2/Roku-GooglePhotos/releases/tag/1.7) Update has been pushed to Roku for publishing.


Add more directed install instructions, fixes #60

Thanks for attempting to make this better. I added a few comments for changes that should be made.
One main point I'd like to drive home is to avoid wrangling the user into your build setup. Some may already have a ruby version manager installed and these steps will only cause issues in their dev environment. There are many tutorials out there surrounding how to install ruby; link to one of them that gives different options on that topic.
List the ruby version, the steps required to get setup, and leave anything else out. If people have questions, we can always improve the documentation in the future :smile:

I had the mindset of someone never setting up a project before.  But I see your point.  Added the suggested changes.


Bug: SAVE_MEDIA=False config option not being respected, media still downloaded

I have SAVE_MEDIA = False in my config, yet youtube videos, etc. are still being downloaded.
Please advise.

Oh strange, I'll investigate.
In the meantime you can set USE_YOUTUBEDL=False or YOUTUBEDL_BINARY=/bin/false

Hmm I'm unable to reproduce this. Can you post your whole config file ArchiveBox.conf?

Closing due to inactivity, but feel free to comment back and and I'll reopen it.


fix secret not working

Fixes:
https://github.com/kubernetes/kubectl/issues/772
and also
https://github.com/kubernetes/website/issues/17597
The problem is that after the change of https://github.com/kubernetes/examples/pull/176.
It has to use configMap to let nginx use tls.key and tls.crt. Otherwise it will try to find nginx.key and nginx.crt which will not be found.

Nice work (but I have not yet tested this)
/kind cleanup

Let's kick it in and revise later if needed.
/lgtm
/approve

Hi @zhouya0, I tested this and is working fine. However, there are couple of minor issues.
"make" command assumes the PWD as "examples/staging/https-nginx"
make keys KEY=/tmp/nginx.key CERT=/tmp/nginx.crt

But this command will fail if the PWD is "examples/staging/https-nginx".
kubectl create configmap nginxconfigmap --from-file=examples/staging/https-nginx/default.conf

It would be nice, if we can sync both.

@gireeshp Thanks, I made https://github.com/kubernetes/website/pull/17923 little PR.


Manual approval required for workflow run<PHONE_NUMBER>: Approve production deployment, high risk: false

Workflow is pending manual review.
URL: https://github.com/anbl-jyskebank-dk/approval-test/actions/runs/3651545981
Required approvers: [rasmus-svith-andersen-jyskebank-dk]
Respond "approved", "approve", "lgtm", "yes" to continue workflow or "denied", "deny", "no" to cancel.

lgtm

Workflow cancelled, closing issue.


Update iata-code-decoder to v1.2.0

Features

Add support for viewing an airline's conditions of carriage in the "Decode IATA Airline Code" command
Load data from Render rather than Heroku, to keep the extension going once Heroku drops their free tier

Dependency updates

Bump node-fetch from 3.2.3 to 3.2.6 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/15
Bump prettier from 2.6.0 to 2.6.2 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/16
Bump typescript from 4.6.2 to 4.7.3 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/17
Bump @typescript-eslint/eslint-plugin from 5.15.0 to 5.28.0 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/18
Bump @types/react from 17.0.41 to 18.0.12 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/19
Bump @typescript-eslint/parser from 5.27.1 to 5.32.0 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/86
Bump @types/node from 17.0.42 to 18.6.3 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/84
Bump @raycast/api from 1.36.0 to 1.38.2 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/74
Bump prettier from 2.6.2 to 2.7.1 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/29
Bump @types/react from 18.0.12 to 18.0.15 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/52
Bump eslint from 8.17.0 to 8.21.0 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/89
Bump typescript from 4.7.3 to 4.7.4 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/88
Bump node-fetch from 3.2.6 to 3.2.10 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/87
Bump react-devtools from 4.24.7 to 4.25.0 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/91
Bump @raycast/api from 1.38.2 to 1.38.3 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/95
Bump @types/react from 18.0.15 to 18.0.17 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/100
Bump @types/node from 18.6.3 to 18.7.3 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/109
Bump @typescript-eslint/eslint-plugin from 5.28.0 to 5.33.0 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/101
Bump eslint from 8.21.0 to 8.22.0 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/110
Bump @typescript-eslint/parser from 5.32.0 to 5.33.0 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/111
Bump @types/node from 18.7.3 to 18.7.5 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/113
Bump @typescript-eslint/parser from 5.33.0 to 5.33.1 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/114
Bump @typescript-eslint/eslint-plugin from 5.33.0 to 5.33.1 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/115
Bump @typescript-eslint/eslint-plugin from 5.33.1 to 5.34.0 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/128
Bump @types/node from 18.7.5 to 18.7.11 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/127
Bump @typescript-eslint/parser from 5.33.1 to 5.34.0 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/126
Bump @typescript-eslint/parser from 5.34.0 to 5.36.1 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/144
Bump @types/node from 18.7.11 to 18.7.14 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/141
Bump typescript from 4.7.4 to 4.8.2 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/135
Bump @raycast/api from 1.38.3 to 1.39.2 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/148
Bump @types/node from 18.7.14 to 18.7.23 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/171
Bump @typescript-eslint/eslint-plugin from 5.34.0 to 5.38.1 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/170
Bump eslint from 8.22.0 to 8.24.0 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/167
Bump @typescript-eslint/parser from 5.36.1 to 5.38.1 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/169
Bump @types/react from 18.0.17 to 18.0.21 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/166
Bump react-devtools from 4.25.0 to 4.26.0 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/172
Bump @raycast/api from 1.39.2 to 1.40.1 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/174
Bump typescript from 4.8.2 to 4.8.4 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/173
Bump @typescript-eslint/eslint-plugin from 5.38.1 to 5.43.0 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/212
Bump @raycast/api from 1.40.1 to 1.43.2 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/210
Bump eslint from 8.24.0 to 8.27.0 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/208
Bump @types/node from 18.7.23 to 18.11.9 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/205
Bump @typescript-eslint/parser from 5.38.1 to 5.43.0 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/211
Bump typescript from 4.8.4 to 4.9.3 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/215
Bump node-fetch from 3.2.10 to 3.3.0 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/214
Bump @types/react from 18.0.21 to 18.0.25 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/216
Bump react-devtools from 4.26.0 to 4.26.1 by @dependabot in https://github.com/timrogers/raycast-iata-code-decoder/pull/213

Full Changelog: https://github.com/timrogers/raycast-iata-code-decoder/compare/v1.1.0...v1.2.0

Hi 👋
Thanks for your contribution 💪
I have now tested your extension and I have some feedback ready for you:

Seems like Decode Airport Code crashes when searching for a, do you have a clue what we can do (there might be too much data)

I'm not able to reproduce that. Would you like me to try limiting the data to a fixed number of results to see if that helps?

Is the commands data saved between openings? You could look into using Raycasts useFetch

No, it isn't. I implemented the data loading before those helpers existed. It also does a live search for each query, so I'm not sure how well a cache will work.

I'm looking forward to testing this extension again 🔥
Request a new review when you are ready. Feel free to contact me here or at Slack if you have any questions.

Are you open to accepting this PR without those fixes - especially the second one? I'm very aware that this extension will break once Heroku drop their free plan.

I actually forgot to upload the screencast I made, but I'm not sure it gives anything useful.
https://user-images.githubusercontent.com/38033107/202427932-e833111b-7375-487c-b04a-226d3926e723.mp4

Does it full the full list initially in this call?

Thanks for that! It helped to pinpoint the issue which was indeed that the first call returns the full list. I've fixed that in the API that serves the extension - and made some other performance tweaks too.


How to Prevent Retry Request

(Describe your issue and goal here)
The Slack SDK version
[INFO] +- com.slack.api:bolt-servlet:jar:1.4.0:compile
[INFO] |  +- com.slack.api:slack-api-model:jar:1.4.0:compile
[INFO] |  +- com.slack.api:slack-api-client:jar:1.4.0:compile
[INFO] |  +- com.slack.api:slack-app-backend:jar:1.4.0:compile
[INFO] |  - com.slack.api:bolt:jar:1.4.0:compile
Java Runtime version
openjdk version "1.8.0_252"
OS info
ProductName:    Mac OS X
ProductVersion: 10.15.5
BuildVersion:   19F101
Darwin Kernel Version 19.5.0: Tue May 26 20:41:44 PDT 2020; root:xnu-6153.121.2~2/RELEASE_X86_64
Steps to reproduce:
Hello, there.
I want to know why retry occurs.
Through the official document, I knew that a retry would occur if the response was not returned within 3 seconds, and I used AsyncMethodsClient to solve this problem. Nevertheless, the problem continues to arise.
The same problem also continues to occur even though the header of the Response object has returned the object X-slack-No-Retry: 1.
I want to know how to solve this problem.

Hi @jayyhkwon,

Through the official document, I knew that a retry would occur if the response was not returned within 3 seconds, and I used AsyncMethodsClient to solve this problem. Nevertheless, the problem continues to arise.

Unfortunately, the 3 second timeout is a constraint of the Slack API and not the Java client. Regardless of whether we use the Synchronous or Asynchronous methods, the Slack API requires a response within 3 seconds of sending the request.
Using the Asynchronous client, you could respond to the Slack API immediately with a 200 ok. Then continue to process your long running jobs. When the jobs are complete, you can use the Asynchronous client to interact with Slack (e.g. send a message).

The same problem also continues to occur even though the header of the Response object has returned the object X-slack-No-Retry: 1.

This is interesting. I'm less experienced with Java and may need to put together a test example. However, looking over the sample code, I noticed that headers.put("X-Slack-No-Retry", Array.toList("1")); will return a list while the X-Slack-No-Retry header requires a string. Would the following fix this issue?
Map<String, String> headers = new HashMap<>();
headers.put("X-Slack-No-Retry", "1");

@jayyhkwon It seems your x-slack-no-retry code looks fine. However, I don't see a reason to return 400 Bad Request to the Slack API server in this scenario. Your app can simply returns 200 OK within 3 seconds. As long as your asynchronous code works as you expect, return ctx.ack(); should work.
I guess the cause of your issue is related to other lines in your code (or time-consuming initialization stuff etc). Probably, other lines unexpectedly are taking more time than you think. Another quick solution I can suggest is to use the built-in ExecutorService. If your SlackEventProcessor provides some way to run code in another thread, you can go with it.
app.message("hello", (req, ctx) -> {
  app.executorService().execute(() -> {
    // do anything asynchronously here
  });
  return ctx.ack();
});

@seratch
thanks!
solved the problem because of your mention.

@jayyhkwon Great to know! I'm glad that we could help you out! 😄

@seratch
Hello, seratch.
its' another question.
Can i access Request object or Request Header in app.event method ?
The official document states that the value of the HTTP header X-Slack-Retry-Num indicates that the request is retry. But when I looked at the code, I couldn't find a way to access it as a Request object.

@jayyhkwon You can access request headers by req.getHeaders(). The req is the first listener arg in my above example.

@seratch
The first arg is EventsAPIPayload interface.
there is not getHeaders() method.
please correct me if i'm wrong.
thank you.

@jayyhkwon Ah ... you are right. I have to say there is no way to directly access request headers in listeners. I will take a look at possible ways to support this use case in the future versions. As a workaround, you can use a global middleware this way:
app.use((req, resp, chain) -> {
  String retryNum = req.getHeaders().getFirstValue("X-Slack-Retry-Num");
  req.getContext().getAdditionalValues().put("x-slack-retry-num", retryNum);
  return chain.next(req);
});
app.event(AppMentionEvent.class, (req, ctx) -> {
  String retryNum = ctx.getAdditionalValues().get("x-slack-retry-num");
  return ctx.ack();
});

@seratch
thanks a lot. work for me!


Remove astroid dependency

Just testing...

And what was the result of the test? Do we need the pr?


⚠ ClamAV has degraded performance

In f7c563d, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 555 ms

Resolved: ClamAV performance has improved in 5df5d20.


Is it possible to use this for parallax images in between content?

Every other parallax library I've looked at has had to have special markup to separate the images that are supposed to be parallax in the background from the static images that scroll like normal, usually the content divs etc.
I like how simple the syntax of this library is, but all the examples seem to focus on a page of moving objects rather than the interspersed parallax amongst normal content. If I set the objects I went to be static to a speed of zero will that achieve the same effect?

Looks like this question has already been answered here. It would be helpful to see an example of that in the examples section. I'm a designer learning to code so I apologize for my ignorance on all this.

Also here's the link to the story that answered my question for other people's future reference: https://github.com/dixonandmoe/rellax/issues/2 I'm trying to work out how to do the image background thing using Rellax. Once I do I'll try and get my project to a pure HTML CSS JS state and upload it do a pull request or something.

I'm having some other problems with Rellax but I think this issue can be closed.


[api] "id" to always return object.id

In the current 1.0 based API, when querying collection resources, id's are transformed into their href equivalent. i.e:
{
  "id” : “https://<appliance>/api/vms/4”,
  . . .
}

There's been a couple requests to keep id's as is and insert the "href" as a separate attribute, i.e. returning the following instead:
{
  “id” :  4,
  “href” : “https://<appliance>/api/vms/4”,
  . . .
}

Eliminating the need for Rest API clients to have to parse the id all the time.
Just want to make sure this is Ok in general with everyone, will need to bump up versioning to 2.0.0 for this.

I am ok with this.  Seems consistent with other REST APIs as well

Thanks @Fryguy, the PR is in progress  #1678
closing this issue.

Let's keep the issue open until the PR is merged.   If you use the phrase Fixes #1525 in the commit message it will auto close this on merge. See https://help.github.com/articles/closing-issues-via-commit-messages/


[WIP] Feature/qj scoped policy manager

这个 PR 实现什么功能/修复什么问题:
改进：增加scopedpolicy支持，用来存储对域和项目的UI策略

是否需要 backport 到之前的 release 分支:

release/3.5

/cc @zexi @yousong @ioito
/area yunionconf

Codecov Report

Merging #8435 into master will decrease coverage by 2.57%.
The diff coverage is n/a.

@@            Coverage Diff            @@
##           master   #8435      +/-   ##
=========================================
- Coverage    6.08%   3.50%   -2.58%
=========================================
  Files         775     307     -468
  Lines      119458   63103   -56355
=========================================
- Hits         7271    2213    -5058
+ Misses     111523   60736   -50787
+ Partials      664     154     -510

Flag
Coverage Δ

#aFlag
3.50% <ø> (-2.58%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

pkg/util/rbacutils/rbac.go

pkg/util/fernetool/fernet.go

pkg/multicloud/ucloud/storagecache.go

pkg/keystone/models/id_mappings.go

pkg/compute/regiondrivers/huawei.go

pkg/multicloud/aws/loadbalancer.go

.../monitor/alerting/conditions/commonalertreducer.go

pkg/cloudcommon/db/quotas/context.go

pkg/util/seclib2/aes.go

pkg/util/iproute2/errors.go

... and 454 more

Continue to review full report at Codecov.

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

/lgtm
/approve


chore: jsr publish

cc @lucacasonato
I get this error trying to resolve the workspace:* dependency to env-core when publishgin for example the nextjs package:

Any idea how to fix?

Can you open an issue on jsr-io/jsr? We'll take a look 😀


Almost perfect

I struggle with he kicad plugin and the correct annotations. This here could be the perfect workflow, except for one missing feature.
It would be perfect if one could specify the key spacing (Or use choc style spacing when selecting choc footprints)

Great. Thank you.
Except, key distance is not symmetrical with standard choc spacing. X and Y direction are different. Standard spacing is18x17 mm.
Pretty popular is also 17x17 for ultra tight spacing with CFX keycaps.

X/Y is set independently:

:man_facepalming:  Sorry I read the diff on my mobile. Yes I see it now, key_distance is a tuple. Sorry, nevermind.


I would love support for Cost Sensitive Classification

Description
Reading through the code it looks like the base XR linear models support assigning a cost to each data point so that they can be weighted differently, e.g. by miss classification cost. In a search and ranking setting, some labels may be more important than others, e,g. applies are more important than clicks for a job board, or movies watched are more important than movies clicked on for a streaming service. However, the more important class is often much sparser, and so being able to use both a positive instances, one as strong one as weak positives, would improve the utility of the model.
Right now, all training instances are treated equally, but if a weight matrix could be provided with instance weights, or a labelling scheme were training data points have different labels, and each label has a relative weight, that would meet this need. The code references a R matrix as input to MLmodel.train, but it cannot be passed in from the trainer.
Comments in MLProblem.init:
Args:
            X (csr_matrix, np.ndarray or ScipyDrmF32): Instance feature matrix.
            Y (csr_matrix, np.ndarray or ScipyCscF32): Instance-to-label matrix.
            C (csc_matrix, np.ndarray or ScipyCscF32, optional): Label-to-cluster matrix.
                If not given, create an all-one matrix of shape `(Y.shape[1], 1)`.
            M (csc_matrix, np.ndarray or ScipyCscF32, optional): Instance-to-cluster matrix.
                If not given, creates M from Y*C with multi-threading sparse_matmul.
            R (csc_matrix, np.ndarray or ScipyCscF32, optional): Relevance matrix.
                If not given, will use None.
            threads(int, optional): Number of threads for multi-threading. Default to 8.

I would like to be able to pass in R. However in HierarchicalMLModel.train (line 1186 in xmc/base.py) the following code prevents this (and it's not exposed in calling classes):
        if prob.R is not None:
            raise NotImplementedError(
                "Cost-senstive learning for HierarchicalMLModel is not yet supported"
            )

Is this just a case of exposing the variable to the different train classes in the parents? If so i would happily implement that myself (and issues a PR) but i was thinking there was probably a reason for it to be hidden. If it's that simple please let me know here and i will work on adding it in.

@simonhughes22 , thanks for your interest in PECOS and the usage of cost-sensitive learning!
As of version=v0.1.0, we did not support cost-sensitive learning at the high level Python API HierarchicalMLModel.train because of three reasons:
(1) How to design a proper relevance matrix is very task-specific; a poorly-design R may lead to poor performance.
(2) The scale of relevance matrix R will affect balance between the loss function and the regularization term. Thus,  Cp  in PECOS needed to be tuned carefully.
(3) The value of relevance matrix needed to be greater than zero! Otherwise the loss function is no longer convex.
With those notes in mind, here is an example code snippet of cost-sensitive learning on the wiki10-31k XMC dataset.
import copy
import numpy as np
from sklearn.preprocessing import normalize
from pecos.core import clib
from pecos.utils import smat_util
from pecos.xmc import Indexer, LabelEmbeddingFactory
from pecos.xmc import HierarchicalMLModel, MLProblem, MLModel

# load your data
X_trn = smat_util.load_matrix("./wiki10-31k/attnxml/X.trn.npz")
X_tst = smat_util.load_matrix("./wiki10-31k/attnxml/X.tst.npz")
Y_trn = smat_util.load_matrix("./wiki10-31k/Y.trn.npz")
Y_tst = smat_util.load_matrix("./wiki10-31k/Y.tst.npz")
R_trn = copy.deepcopy(Y_trn) # only for XMC benchmarks, need to define your own!

# get cluster chain
label_feat = LabelEmbeddingFactory.create(Y_trn, X_trn, method="pifa")
C_chain = Indexer.gen(label_feat, "hierarchicalkmeans", nr_splits=32, max_leaf_size=100)

# one way to get relevance matrix chain for the hierarchical label tree of XR-Linear models
Y_chain, R_chain = [Y_trn], [R_trn]
for C in reversed(C_chain[1:]):
  Y_t = clib.sparse_matmul(Y_chain[-1], C, threads=32)
  Y_chain.append(Y_t.tocsc())
  # this is a heuristic we found useful for XMC benchmarks
  R_t = clib.sparse_matmul(R_chain[-1], C, threads=32)
  R_chain.append(R_t)
Y_chain.reverse()
R_chain = [normalize(R_t, norm="l1", axis=1) for R_t in R_chain[::-1]]

DO_COST_SENSITIVE = True
# cost-sensitive learning needs to tune the Cp hyper-parameters
Cp_list = [1.0, 8.0, 4.0] if DO_COST_SENSITIVE else [1.0, 1.0, 1.0]
model_chain = []
for t, (Y_t, C_t, R_t) in enumerate(zip(Y_chain, C_chain, R_chain)):
    train_params = MLModel.TrainParams.from_dict({"Cp": Cp_list[t]})
    pred_params = MLModel.PredParams()
    R_t = R_t if DO_COST_SENSITIVE else None
    if t == 0:
        cur_prob = MLProblem(X_trn, Y_t, R=R_t)
    else:
        M_t = smat_util.binarized(Y_chain[t - 1].tocsc())
        cur_prob = MLProblem(X_trn, Y_t, R=R_t, C=C_t, M=M_t)
    cur_model = MLModel.train(cur_prob, train_params, pred_params)
    model_chain.append(cur_model)

hlm = HierarchicalMLModel(model_chain)
Y_tst_pred = hlm.predict(X_tst)
print(smat_util.Metrics.generate(Y_tst, Y_tst_pred))

Here are the evaluation results:
# for cost-sensitive learning, we got
# prec  = 85.72 80.86 75.01 70.03 65.24 61.45 57.90 54.67 51.83 49.27
# recall = 5.08 9.52 13.10 16.18 18.69 20.99 22.95 24.66 26.18 27.56

# For original xrlinear, the numbers are
# prec  = 84.54 78.98 73.13 68.27 64.10 60.53 57.22 54.26 51.65 49.21
# recall = 5.00 9.28 12.75 15.73 18.35 20.66 22.65 24.44 26.05 27.48

We are still investigating if there's a stable/robust default hyper-parameters for the cost-senstive learning usage.
And after the investigation, we may consider implementing this functionality at the higher level Python API such as HierarchicalMLModel.train.

Awesome thanks @OctoberChang.


Have initial beta (with server-side texlive) working

To complete:

Add readlink support
Check downloader is working
Complete logic for downloading in open
Test!

It works. :)


L1 Script: publish_and_register

Level 1 script
Workflow:

[x] Instantiate class for simulated 'User'
[x] Get a sample Meta Data object (from .Metadata.get_example())
[ ] Get a sample Meta Data object from a file, or multiple files
[x] Get your Brizo endpoints
[x] Ocean.register_asset()

Testing:

[x] Local components / Local Jupyter
[x] k8s components / Local Jupyter
[x] k8s components / JupyterHub

Close for now, one small point (custom asset) moved to next milestone.


Make sure our LRO is thread safe.

See discussion here: https://github.com/Azure/azure-sdk-for-net/pull/18351#discussion_r569791538

Are the properties in the LRO impacted?