Coap command not transmit by RCP with ml-EID ip

I send a command coap with no response:
coap-client -m get coap://[fdbb:ddbd:7576:8ac9:e6ac:f767:1c27:c832]/ble_name -N
I have 4 products and a BR with RCP dongle nrf52840 (with build 5c7850ebe..dcebe97f8)
the 4 products are nrf52840_SDK
IPs:
nrf52840_sdk_1:
[ "fdbb:ddbd:7576:8ac9:0:ff:fe00:c00", "fd11:22:0:0:ea00:a829:4777:904d", "fdbb:ddbd:7576:8ac9:e6ac:f767:1c27:c832", "fe80:0:0:0:6817:9951:3cab:bd1e" ]
Border router:
[ "fdbb:ddbd:7576:8ac9:0:ff:fe00:2800", "fd11:22:0:0:f239:9caa:3059:66a7", "fdbb:ddbd:7576:8ac9:b6af:bb5a:2634:99fa", "fe80:0:0:0:d872:ea23:54e4:2713" ]
nrf52840_sdk_2
[ "fdbb:ddbd:7576:8ac9:0:ff:fe00:4400", "fd11:22:0:0:e980:e73b:f474:d970", "fdbb:ddbd:7576:8ac9:8eaf:866:fd26:7834", "fe80:0:0:0:7810:787e:e820:806" ]
nrf52840_sdk_3
[ "fdbb:ddbd:7576:8ac9:0:ff:fe00:b400", "fd11:22:0:0:32fd:bde2:2215:4964", "fdbb:ddbd:7576:8ac9:2b42:a87a:e912:a1d", "fe80:0:0:0:44ac:793a:59f5:f269" ]
nrf52840_sdk_4
[ "fdbb:ddbd:7576:8ac9:0:ff:fe00:e400", "fd11:22:0:0:942d:bef:7820:bb20", "fdbb:ddbd:7576:8ac9:fbaa:62ea:3d32:22a", "fe80:0:0:0:5803:40e:f9e2:34f2" ]
For all products, i request the same Coap ressource with ml-eid and i haven't answer with the product with "fdbb:ddbd:7576:8ac9:e6ac:f767:1c27:c832" ipv6
sudo ot-ctl coap get fdbb:ddbd:7576:8ac9:0000:00ff:fe00:0c00 ble_name
coap response from fdbb:ddbd:7576:8ac9:0:ff:fe00:c00 with payload:<PHONE_NUMBER>645f47505f32314643
sudo ot-ctl coap get fdbb:ddbd:7576:8ac9:e6ac:f767:1c27:c832 ble_name
no response
coap-client -m get coap://[fdbb:ddbd:7576:8ac9:0000:00ff:fe00:0c00]/ble_name -N
Thread_GP_21FC
coap-client -m get coap://[fdbb:ddbd:7576:8ac9:e6ac:f767:1c27:c832]/ble_name -N
no response
When i see the frame with wireshark, i observe the request frame is never sending, so i think the RCP don't relayed this frame.
Also, Sometimes, it's work well!
coap-client -m get coap://[fdbb:ddbd:7576:8ac9:e6ac:f767:1c27:c832]/ble_name -N
Thread_GP_21FC
route data:
{
"rloc16": "0c00",
"mlip": "fdbb:ddbd:7576:8ac9:0000:00ff:fe00:0c00",
"br": false,
"Ext_Address": "'6a1799513cabbd1e'",
"Rloc16": "0x0c00",
"Route": {
"IdSequence": "112",
"RouteData": [
{
"RouteId": "0x03",
"LinkQualityOut": "0",
"LinkQualityIn": "0",
"RouteCost": "1"
},
{
"RouteId": "0x0a",
"LinkQualityOut": "0",
"LinkQualityIn": "1",
"RouteCost": "2"
},
{
"RouteId": "0x11",
"LinkQualityOut": "1",
"LinkQualityIn": "1",
"RouteCost": "2"
},
{
"RouteId": "0x21",
"LinkQualityOut": "0",
"LinkQualityIn": "0",
"RouteCost": "2"
},
{
"RouteId": "0x2d",
"LinkQualityOut": "3",
"LinkQualityIn": "3",
"RouteCost": "1"
},
{
"RouteId": "0x39",
"LinkQualityOut": "3",
"LinkQualityIn": "3",
"RouteCost": "1"
}
]
},
"Leader_Data": {
"PartitionId": "0x4d788d3d",
"Weighting": "64",
"DataVersion": "233",
"StableDataVersion": "59",
"LeaderRouterId": "0x21"
}
}

Can you provide the output of eidcache? I'm wondering if somehow the Address Query did not succeed.
Can you also provide the sniffer packet capture?
What version of the Nordic SDK are you using?

following, your request
sudo ot-ctl eidcache
fdbb:ddbd:7576:8ac9:fbaa:62ea:3d32:22a e400
fdbb:ddbd:7576:8ac9:2b42:a87a:e912:a1d b400
fdbb:ddbd:7576:8ac9:8eaf:866:fd26:7834 9800
fdbb:ddbd:7576:8ac9:4503:be71:4b49:f4b5 8400
fdbb:ddbd:7576:8ac9:e6ac:f767:1c27:c832 fffe
Done
coap frame not sending.zip
dataset:
Active Timestamp: 1
Channel: 11
Channel Mask: 07fff800
Ext PAN ID: f515a3a51f0d87d5
Mesh Local Prefix: fdbb:ddbd:7576:8ac9/64
Master Key: 1ca00c3430a05390f60d736bfb776f03
Network Name: OT_AD_Demo
PAN ID: 0xdad4
PSKc: dfd75d9ed470b2c8c83b2e2dd3a17376
Security Policy: 0, onrcb
nordic Dongle : nrf52840
nordic sdk : nrf5_thread_4.1.0
the problem is with fdbb:ddbd:7576:8ac9:e6ac:f767:1c27:c832 (in the capture we don't see coap request ble_name for this ip)
the RLOC here is ec00

@nicho2 , my guess is that you had tried to contact that IPv6 address when the device was not attached and the Address Query did not get a response. As a result, the Address Query component is backing off. Currently, the Thread Specification specifies a maximum backoff time of 8 hours.
https://github.com/openthread/openthread/blob/aaf553ee7d5ac42e35155551414fa9dde7731bf3/src/core/config/tmf.h#L97-L107
In practice, we have found that this is far too long. In Nest products, we use a much smaller value of 120 seconds (2 minutes).
I would suggest changing the above config to 120 to see if that helps resolve your issue.

Hello,
If you observed the capture, at the line 40, i send a  networkdiagnostic get  fdbb:ddbd:7576:8ac9::ff:fe00:ec00  0 1 5 6 16
and the product is answered good (line 42)
and normaly at the 55, i send a get coap for ressource /ble_name on this product and i use its ipv6  fdbb:ddbd:7576:8ac9:e6ac:f767:1c27:c832  but as you see the frame is not transmit by the dongle ( Border Router).
It's not a problem with the attachment of the product. it's a problem with the RCP.

@nicho2 , when sending to an RLOC, no Address Query is required. However, when sending to an EID (i.e. not RLOC), the device will need to perform an Address Query to discover the RLOC. I do not see an Address Query message emitted for fdbb:ddbd:7576:8ac9:e6ac:f767:1c27:c832. Can you try changing the config for OPENTHREAD_CONFIG_TMF_ADDRESS_QUERY_MAX_RETRY_DELAY as suggested above?

Hello Jonathan,
I have changed this line
#define OPENTHREAD_CONFIG_TMF_ADDRESS_QUERY_MAX_RETRY_DELAY 120 //28800
for the device and for the RCP, and i have always the problem:
sudo ot-ctl eidcache
fdbb:ddbd:7576:8ac9:fbaa:62ea:3d32:22a e400
fdbb:ddbd:7576:8ac9:2b42:a87a:e912:a1d b400
fdbb:ddbd:7576:8ac9:8eaf:866:fd26:7834 9800
fdbb:ddbd:7576:8ac9:4503:be71:4b49:f4b5 8400
fdbb:ddbd:7576:8ac9:25dc:f4ce:1969:a081 fffe
Is it possible there is a relation with the topology  because between the RCP and the device there is 2 hops (the other products have a direct link with RCP)?

@nicho2 , the fact that (1) the target is multiple hops away and (2) the target is an EID (not an RLOC) requires the BR to perform an Address Query to determine how to reach the device.
It is not clear to me why the Address Query is not happening or not succeeding. The pcap file is a bit short. Would you be able to collect a packet capture that includes the network formation itself?
Also, can you enable DEBG level logging on the BR and provide the logs?

here, you will found a first log file
log.txt
Tomorrow, i'm doing all you are requested

Hello @jwhui, following the trace
log_RCP_join_and_coap.txt
join_and_coap_complet.zip
the product has now these ipv6 :
55 | dc00 | [ "fdbb:ddbd:7576:8ac9:0:ff:fe00:dc00", "fdbb:ddbd:7576:8ac9:7137:2781:adc0:aeb", "fe80:0:0:0:6cff:646e:c3b7:fb66" ]

@nicho2 , thank you for raising this issue and working with us to pinpoint the issue.
The sniffer packet capture clearly shows the Address Query message being sent with an IPv6 Hop Limit value set to 1. As a result, the Address Query message is never forwarded to devices that are multiple hops away.
The root cause is when PLATFORM_UDP is enabled, the Address Query message is sent using the Linux kernel's default IPv6 hop limit value. For multicast messages, the default is set to 1.
https://github.com/openthread/openthread/blob/e95d7b676140740a0a3f200be93602a9eb459d92/src/posix/platform/udp.cpp#L119
One possible way to fix this is by using OPENTHREAD_CONFIG_IP6_HOP_LIMIT_DEFAULT rather than the Linux kernel default. This would make the behavior consistent with OpenThread devices that do not have PLATFORM_UDP enabled. See #5736 for the proposed fix. Let me know if this addresses your issue.

hello @jwhui,
i have put this modification:
int hopLimit = (aMessageInfo.mHopLimit ? aMessageInfo.mHopLimit : OPENTHREAD_CONFIG_IP6_HOP_LIMIT_DEFAULT);
and now, all works fine.
Thanks.

hello @jwhui,
i have put this modification:
int hopLimit = (aMessageInfo.mHopLimit ? aMessageInfo.mHopLimit : OPENTHREAD_CONFIG_IP6_HOP_LIMIT_DEFAULT);
and now, all works fine.

@nicho2 , thanks for confirming!


Update Clients calling without SNI header

The message is to be updated in the second point of 'Clients calling without SNI header'
(supported in the Developer and Premium tier)
The APIM has been updated and the service has started supporting the operation in the developer tier too.

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

#sign-off


fix: raise an exception when parsing source encounters a JSONDecode TDE-448

This is now covered in https://github.com/linz/topo-imagery/pull/582


When using the horizontal mode of the scroll container, there are problems that are inconsistent with expectations.

Check that this is really a bug

[X] I confirm

Reproduction link
https://codepen.io/lintx-the-lessful/pen/PovENEz
Bug description
My English is not good. The content of this issue is translated by Google. If you want to know the specific phenomenon, please enter the demo page, try to slide the sample swiper left and right, then uncomment the commented js files in the "html" block and comment the uncommented ones. In short, switch the imported files between<EMAIL_ADDRESS>and<EMAIL_ADDRESS>and try to use the examples.
Inconsistent behavior when imported into "swiper.bundle.js" and "swiper.js" (including import Swiper from "swiper")
Expected Behavior
Press the left mouse button - move a certain distance - wait for the swiper content to stop scrolling - release the mouse, The scroll bar should remain in its current position
Actual Behavior
Press the left mouse button - move a certain distance - wait for the swiper content to stop scrolling - release the mouse, The scroll bar moves to the starting position
Swiper version
10.0+
Platform/Target and Browser Versions
Windows 11 and chrome
Validations

[X] Follow our Code of Conduct
[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
[X] Make sure this is a Swiper issue and not a framework-specific issue

Would you like to open a PR for this bug?

[ ] I'm willing to open a PR

Ok, I got it, it was my problem, "FreeMode" has been extracted as a separate module, I should use it like this:
import Swiper from "swiper"
import {FreeMode} from "swiper/modules"
var swiper = new Swiper(".swiper", {
    slidesPerView: "auto",
    freeMode: true,
    modules:[FreeMode],
    mousewheel: true,
});


modified quality check, and gapfilling, and improved plotting

Purpose
This PR includes modifications for gapfilling and plotting in run_fluxnet.jl, plot_utils.jl, and data_tools.jl, addressing specific issues related to using longterm mean and general quality flags for gapfilling and plotting enhancements.
Content
This PR introduces changes to run_fluxnet.jl, plot_utils.jl, and data_tools.jl. Specifically, I have:

plot_utils.jl now contains a new function plot_and_save that plots and save if needed the required model met-drivers under "results/inputs"
data_tools.jl now uses the data from same hour and same day across all years if any data is absent. If no such data is available the absent data is filled up with a coarser representative dataset as stated in "time_criteria"
run_fluxnet.jl is modified as necessary and plotting output data is modified.

In the Content, I have included:

Tests to verify the modifications.
Appropriate docstrings on all functions, structs, and modules, and included relevant documentation to improve clarity and maintainability.
kat comments are included

Request for Review
@Espeer5 and @kmdeck, please review the changes and provide your feedback. Your insights would be invaluable in resolving the remaining issues and finalizing the PR for merge.

Hey Mitra,
You can assign reviewers on the top right of this web page.
I assigned myself (I'll have a look next week)

Thanks Alex
I know I am creating a mess, hopefully once I know how to resolve them, it
will stop
On Thu, Feb 29, 2024 at 11:57 AM Alexis Renchon @.***>
wrote:

Hey Mitra,
You can assign reviewers on the top right of this web page.
I assigned myself (I'll have a look next week)
—
Reply to this email directly, view it on GitHub
https://github.com/CliMA/ClimaLand.jl/pull/529#issuecomment-1971564862,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BCSRGXOHQHNJXPYSUA3OTCTYV5OXPAVCNFSM6AAAAABD7FEAGOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZRGU3DIOBWGI
.
You are receiving this because you authored the thread.Message ID:
@.***>

I squashed your commits to 1,
Are the changes to experiments/Manifest.toml intentional?
If not, we should keep the one from main (I can help).


Powerpoint version of slides

Great content, but can we please have the powerpoint version of the slides rather than just the PDF versions like we used to have before. The animations and visualistaions dont work with PDF so it woudl be great if we can get the PPT versions of the slides as well.

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

ID: b64ef97e-e9fd-6f00-e3df-7347010771d5
Version Independent ID: b64ef97e-e9fd-6f00-e3df-7347010771d5
Content: The Chief Information Security Officer (CISO) Workshop - Security documentation
Content Source: ciso-workshop/the-ciso-workshop.md
Service: security
GitHub Login: @mas
Microsoft Alias: mas

Just wanted to check if this will be available as PPT files?


Instead of a singleton, use Builder pattern to instantiate a class

Instead of a singleton, use Builder pattern to instantiate a class the use DI to inject it to all related classes.
https://github.com/zbalkan/PANhunt/blob/9396eb0e361ac64ef73ea6c19f672c05f73dfa8a/panhunt.py#L388

Removed singletons with commits https://github.com/zbalkan/PANhunt/commit/a6a9a2910351e6ebec756ed537c0c3dac5b7c9d3 and https://github.com/zbalkan/PANhunt/commit/9c21de1f0fdfaf6635eb6df0aacb5a26a24235b4.


Update version to v3.5.117

Can you confirm if you need to re-release, I'm a bit confused... you'd release with this version, or you released with the previous version file? Approved.

Basically you merge it first. Then you create a tag, otherwise the tag is gonna be on top of old wrong Version.hpp. Please merge, delete the release you published 30+ mins ago, then re-release with the latest once it lands in the master.


Refactor

Use stderr for error messages to allow easier output manipulation
Use correct exit codes to allow easier scripting
Use context manager to handle filestream resource management
Separated user validation into its own function

Tested on all.txt.

lgtm!


[Backport release-24.05] mattermost: 9.5.10 -> 9.5.11

Fixes MMSA-2024-00370; see: https://mattermost.com/security-updates/
(cherry picked from commit d5ac04f76857eabb2995775256afb3930fe514b2)

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

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

Just cherry picked the version bump, since, by sheer chance, matterbridge was right next to these in all-packages.nix and got moved to by-name too, but not in release-24.05!


Batoto: fix regex + update regex

Adding back the setOnPreferenceChangeListener was the only thing that actually fixed the issue.
Checklist:

[x] Updated extVersionCode value in build.gradle for individual extensions
[ ] Updated overrideVersionCode or baseVersionCode as needed for all multisrc extensions
[ ] Referenced all related issues in the PR body (e.g. "Closes #xyz")
[ ] Added the isNsfw = true flag in build.gradle when appropriate
[x] Have not changed source names
[ ] Have explicitly kept the id if a source's name or language were changed
[x] Have tested the modifications by compiling and running the extension through Android Studio
[ ] Have removed web_hi_res_512.png when adding a new extension

make baseUrl lazy, it's calling preferences on start which causes id to be 0

make baseUrl lazy, it's calling preferences on start which causes id to be 0

tyvm
that fixed it


Server-side Integration

Background
I'm doing identify calls from the server side, which holds all the traits associated with that user. From the browser (front end) I only call identify with the userId.
Problem
Since Inspectlet doesn't have a server-side integration, I don't get the traits on their end. I only get userId. See screenshot of how it looks in Inspectlet; http://pudge.se/6QVDEu
Solution
They have an API. I think it would be a good idea to involve the creators of Inspectlet, so we get things rights. Please read the quote below from https://www.inspectlet.com/docs/custom_metrics

Inspectlet can gather data for Custom Metrics from the server by a standard HTTP GET request. Please note that for server-side metrics, the scope can only be event. Syntax for server-side request:
https://www.inspectlet.com/cmetrics/api/(wid)?mid=(mid)&name=(name)&value=(value)
Not all variables in the URL are necessary. See above for more information about the parameters.

Any thoughts on how we can fix this @ndhoule and @hankim813?
Ping @inspectlet

@pudgereyem hey! that is correct we do not have a server side integration for inspectlet at the moment. I'm not sure if they have a public server side api. If they do you can submit a request for an integration at https://segment.com/contact/requests/integration

@hankim813 Submitted. I've also updated this issue with the same description as in the request.
@inspectlet would be awesome if you could join this conversation. Could you tell us more about the API and the possibilities?
Thanks!

Hey @hankim813 @inspectlet, has there been any development on this?
/Victor

We do! We'd be happy to help put together a server side integration that leverages our latest Inspectlet API. Please let us know if we can be of any help!

@hankim813 what would be needed from Inspectlet and Segment respectively to make this happen?
ping @inspectlet

@inspectlet @pudgereyem we would need to prioritize it internally. right now we have a pretty large backlog for the remainder of this quarter. a server side integration with inspectlet is not something we have slated yet unfortunately.
@inspectlet did you by any chance fill this form out already? https://segment.com/requests/integrations
if not, that's the first step to getting your request into our internal system. I will say right now that in order to be prioritized, we need evidence that there is a large customer demand for this so providing as much stats/context around that will help us prioritize! @pudgereyem ^ you can also fill out the form as we take into consideration just sheer number of customers completing the above form for a given partner.

I filled out the form @hankim813.
I understand that you have to prioritise. Is this is the backlog or will you ignore it until you get more requests?

@pudgereyem yes, we have a very large backlog (from the form you filled), I'd say your best bet to get an integration prioritized is have your biggest mutual customers to contact their Segment reps to get this prioritized. Sorry, not trying to ignore you guys! 😥


issue : Listening for authentication requests

Hi
i did the no-gui install of this email-oauth2- proxy and when i execute it for the first time i got this :

but i don't understand how to connect my email client. i have seen this github thanks to him https://movementarian.org/blog/posts/a-headless-office-365-proxy/   .
And i try to do the same but i did'nt detect fetchmail like him.
i will share you my emailproxy config file :

Please help me i will check this post often to looking for answers.

There is no issue here – all you need to do is actually connect your client to the proxy rather than the main O365 servers. Please read the getting started guide (you've completed the first two paragraphs already).


Dashboard - Buttons to easy hide various stats from the dashboard

When installing a new Webmin it is always a pain in the a** to find every off/hide button for the Recently logins (i don't think this can be turned off?), Disk usage, Network interface, Stats history and so on...
It would have been much easier if there was a hide button to easy hide it from the Dashboard.
Now i have to go here and go there to hide them all 🙁
Something like this:

Or uncheck it and add the text Hide  😊

Hello,
Is this the close button that you're looking for?

Yes, exactly 😊

Yes, exactly 😊

So, have you found it? 🙂 Or else what is an issue?

Is that button on all of them?

Yes, there was a button...
In that case there is no issue and i can close it.

@iliajie If i hide the Recent login, where do i get it back again?

Theme configuration page.

@iliajie Hmm, i must be blind, 😎 because i can't find it 😔

Ohh, i need to hide it first. That explains why i could find it.
But now to another question. How do i get it back?

Nothing happens when i click on it.

But now to another question. How do i get it back?

You need to hold Ctrl key to deselect accordions that you want to un-hide. This is standard multi-select functionality.

That wasn't so easy to understand. The save button continues to be green. When i change other settings it will change to orange.

The save button continues to be green. When i change other settings it will change to orange.

That's a room for improvement. I'll have a look. Thanks.

Couldn't you show these Hidden accordions in another way?
Maybe a checkbox: Recent logins ▢ ?

That wasn't so easy to understand. The save button continues to be green. When i change other settings it will change to orange, so i know i need to press save.

Thanks, I will fix this on the next theme release.


option to disable tqdms progressbar.

Per this post it supports it via an environment variable, but the bark library doesnt seem to respect the variable and still produces a progress bar.
https://stackoverflow.com/questions/37091673/silence-tqdms-output-while-running-tests-or-running-the-code-via-cron

found it on my own, pass silent=True when calling the generate function.


refactor Grid display into a separate component using Material UI.

Description
Clearly documents the reason for the pull request and what has changed.

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Change Status

[x] Complete, tested, ready to review and merge
[ ] Complete, but not tested (may need new tests)
[ ] Incomplete/work-in-progress, PR is for discussion/feedback

Organization

[x] Have you linked this pull request to a Trello card?

Has This Been Tested

[x] Yes
[ ] No
[ ] Not necessary

Review

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] Have you added two reviewers to this pull request?
[ ] Is this a work in progress?
[x] Is this ready to be reviewed?
[x] My changes generate no new warnings
[x] I have commented my code, particularly in hard-to-understand areas

Looks good!


Use torchtext.legacy for RNN example

This is a quick fix for #1 : In my environment, it works fine by replacing torch.{data,datasets} to torch.legacy.{data,datasets}. Tested with Google Colaboratory.
I'm sorry if there are silly mistakes because I'm a very beginner with Jupyter Notebook.

Fixes #1.

@nandenjin Thanks for letting us know. I didn't realize the major update of torchtext. I really appreciate your pull request. It looks totally good to me, so I merge your code into the repository. Thanks!


[XLA][AMDGPU] Add GemmRewriter into AMDGPU HLO optimization pipeline.

@whchung  can you cherry-pick this improvement to r1.15 release branch?


ropp-ufo does not clone

@mjmurph needs to access ROPP operators.
I see that ropp-ufo is an optional bundle, however I can't locate the source repo. Below points to a jcsda-internal location which is not there:
https://github.com/JCSDA-internal/fv3-jedi/blob/821ac6243aaad771386bf1cac0007e226c55d67a/CI/buildspec_intel.yml#L118-L119
I read in JEDI docs that ropp-ufo is an EUMETSAT dependency. So perhaps this now resides at an external github source and we need to find it. @danholdaway perhaps you have some insight? If not I can ask the JCSDA folks.
Since this is an optional dependency, while building we need to turn off the ecbuild flags pointed here within the jedi_bundle:
https://jointcenterforsatellitedataassimilation-jedi-docs.readthedocs-hosted.com/en/latest/inside/jedi-components/fv3-jedi/build.html#optional-observation-operators

@Dooruk the repo may be private and you don't have access to it. Even though you have access to JCSDA-internal it doesn't mean you have access to every repo, only those which you have permission to view via the teams that you're in. Since ropp is not open source code the JCSDA is not permitted to redistribute it. Michael may need to sign an agreement to use Ropp and then he'll be able to access it and then jedi_bundle will be able to build it.

Oh I see, thanks for the explanation, that makes much more sense. Michael just told me they figured it out with Francois and has a local build with ropp.


New theme: hugo-dusk

Hi,
I've created a minimalistic dark Hugo theme: https://github.com/gyorb/hugo-dusk
Could you please add it to the themes page?
Let me know if I should modify something.
Thanks

Hello @gyorb,
thank you very much for sharing this theme with the Hugo community. I've merged it in b1d8613. Your theme should be listed soon on the themes site.
Regards,
Digitalcraftsman


Wrong private profile inserted into the chat when multiple are available

When the wallet has multiple private profiles, on a profile request always the same private profile is inserted no matter which one the user selects from the drop down.
Steps to reproduce:

create two single address wallets on your device
attest each to create two private profiles
insert private profile into a chat eg. via a profile request: select the second item from the drop down list
send profile to the chat bot and observe the other profile that was displayed first in the drop down list is sent

The only way to send the correct profile it to select the wallet that has the attested profile. In that case that one is gonna be the first item in the drop down and so will be sent in the chat bot.
It gets confusing if you have more (eg. non-profile) wallets, then it seems quite random which profile is picked on a profile request.

The bug affected only android and was fixed some time ago, sorry for late reply.


Redirect to /404 when external users attempt to access support UI

Context
https://github.com/DFE-Digital/access-your-teaching-qualifications/pull/585 introduced protection for support UI access by authenticated external users.

Changes proposed in this pull request
Redirect rather than render the 404 page.

Guidance to review

Link to Trello card
https://trello.com/c/eAwSyVCM/1861-fix-service-name-in-ctr-error-pages-header

Checklist

[x] Attach to Trello card
[x] Rebased main
[x] Cleaned commit history
[x] Tested by running locally

 Fix service name in CTR error page(s) header


Error starting Python extension under code-server

OS/Web Information

Web Browser: Version 88.0.4324.182 (Developer Build) built on Debian bullseye/sid, running on Debian bullseye/sid (64-bit)
Local OS: Debian testing, using code-server installed as a Progressive Web Application
Remote OS: Arch Linux container image, running on Ubuntu host in GKE
Remote Architecture: Coder Enterprise
code-server --version: 3.9.0-1 06c7e17674bd72c1bb655471a69e2f1a4244b329

Steps to Reproduce

Install the official Python extension
Open the Command Palette (Ctrl+Shift+P) and select "Python: Select Interpreter"

Expected
A list of interpreters should appear
Actual
An error stack is logged to the Log (Remote Extension) log:
[2021-03-18 15:33:45.481] [exthost] [info] ExtensionService#_doActivateExtension ms-toolsai.jupyter {"startup":false,"extensionId":{"value":"ms-python.python","_lower":"ms-python.python"},"activationEvent":"onCommand:python.setInterpreter"}
[2021-03-18 15:33:45.481] [exthost] [info] ExtensionService#loadCommonJSModule file:///home/coder/.local/share/code-server/extensions/ms-toolsai.jupyter-2020.12.1/out/client/extension
[2021-03-18 15:33:45.482] [exthost] [error] Activating extension ms-toolsai.jupyter failed due to an error:
[2021-03-18 15:33:45.488] [exthost] [error] Error: Cannot find module '/home/coder/.local/share/code-server/extensions/ms-toolsai.jupyter-2020.12.1/out/client/extension'
Require stack:
- /opt/coder/code-server/lib/vscode/out/vs/loader.js
- /opt/coder/code-server/lib/vscode/out/bootstrap-amd.js
- /opt/coder/code-server/lib/vscode/out/bootstrap-fork.js
	at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)
	at Function.Module._load (internal/modules/cjs/loader.js:841:27)
	at Function.t._load (/opt/coder/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:1093:657)
	at Function.i._load (/opt/coder/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:1062:334)
	at Function.n._load (/opt/coder/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:1058:567)
	at Module.require (internal/modules/cjs/loader.js:1025:19)
	at require (internal/modules/cjs/helpers.js:72:18)
	at Function.r [as __$__nodeRequire] (/opt/coder/code-server/lib/vscode/out/vs/loader.js:20:263)
	at p._loadCommonJSModule (/opt/coder/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:1063:631)
	at p._doActivateExtension (/opt/coder/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:959:742)
	at p._activateExtension (/opt/coder/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:958:822)
	at Object.actualActivateExtension (/opt/coder/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:956:453)
	at h._activateExtension (/opt/coder/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:680:603)
	at /opt/coder/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:680:281
	at Array.map (<anonymous>)
	at h._activateExtensions (/opt/coder/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:680:269)
	at h._activateExtensions (/opt/coder/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:680:338)
	at h.activateByEvent (/opt/coder/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:677:745)
	at p._activateByEvent (/opt/coder/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:957:300)
	at /opt/coder/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:966:111
	at processTicksAndRejections (internal/process/task_queues.js:97:5)

Screenshot

Notes

This issue can be reproduced in VS Code: Yes/No
I don't have VSCode installed locally, and would prefer not to install it, sorry
This is possibly related to https://github.com/cdr/code-server/issues/2675 or https://github.com/microsoft/vscode-python/issues/14959. It may also be a limitation of Coder's internal extension marketplace

Fingers crossed this might be fixed. :crossed_fingers:  https://github.com/cdr/code-server/issues/2341#issuecomment-801408467

I think this might be because the Python extension version we ship right now needs code-server 3.9.1/VSCode 1.53.
Can you try on the latest version?

I think this might be because the Python extension version we ship right now needs code-server 3.9.1/VSCode 1.53.

Can you confirm context of "versoin"? Version of code-server or version of extension?

@ediphy-dcottrell I believe here @oxy is referring to the latest version of code-server: 3.9.1

I was able to get Python working with the production version of code-server by doing these in order

Disable extensions.autoUpdate label ( Extensions: Auto update )
Downloading version ms-toolsai.jupyter-2020.11.358541065 of jupyter and installing it ( you can google the whole string )
Downloading version ms-python.python-2020.11.358366026 of python and installing it

This project is so great , it gives me the same excitey feelings as emacs, so great.

I am also unable to start python.
local os = Windows 10
remote os = Oracle Linux 7.8
vscode server 1.54.3
installed extensions

Python v2021.3.680753044
GitLens v11.3.0

Error message:
Cannot activate the 'Python' extension because it depends on the 'Jupyter' extension, which is disabled. Would you like to enable the extension and reload the window?
However Jupyter is not supported on VS Code Server (see my related issue in https://github.com/microsoft/vscode-jupyter/issues/5342#issuecomment-809540167) and I can not install that extension remotely.

@trir262 what version of code-server are you using?
I added this to an upcoming milestone. We'll investigate.

I hope I have the right version : 1.54.3
I looked in .vscode-server/bin/2b9aebd5354a3629c3aba0a5f5df49f43d6689f8/package.json

Ah, yes, that's the VS Code version. I meant the code-server version. Here's where you can find it:

Apologies,
Here's my info:
Version: 1.54.3 (system setup)
Commit: 2b9aebd5354a3629c3aba0a5f5df49f43d6689f8
Date: 2021-03-15T10:55:45.459Z
Electron: 11.3.0
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.19042

That looks like VS Code's Help information (not code-server). A few follow-ups:

What does your setup look like?
How are you using code-server?
What version of code-server are you using?

Here are the steps I took:
Installed vscode on win10 client
Installed "Remote Development" extension
Connected to SSH Linux endpoint, which installed vscode server
Downloaded vsix for Python, gitlens & jupyter
Installed Python & Gitlens via offline install (linux device has no access to internet)
Unable to install Jupyter (apparently that's not supported, according to my other issue)
Opened a remote path that has a .py file in it
Opened .py file --> Exception appears in bottom screen

I now went to Extensions and saw the possibility to install the extensions to the remote endpoint. That way I am able to install the extensions and now it does seem to work for me.
I was able to install Jupyter and now python dev works as it should.
There is an inconsistency apparently in installing vsix offline and "Installing extension in remote"

Ah yeah, we could probably do a better job explaining the differences between the two.  Well glad you got it working!

@trir262 hi!
Just noticed this - you appear to be using Microsoft's 'official'/proprietary vscode-server binary, not our open-source code-server tool (which is what this repo is for). We currently do not support connecting to a locally installed VSCode with an extension, and code-server can only be accessed in a web browser.
I've mentioned this on the original issues you've filed upstream too!

Here went to the same issue, but after updating Python and Jupyter extensions, this error had disappeared.
Error: Cannot find module '/home/username/.local/share/code-server/extensions/ms-toolsai.jupyter-2020.12.1/out/client/extension'
Now Just having this error
[Extension Host] (node:62109) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.


[!] Implement contiguous integration via GitHub Actions, which automatically runs ESLint and Testcafe tests on repo

Do all work for this task in a branch called issue-77
The following are required for M2 submission:

Use GitHub Actions to run ESLint and Testcafe on the repo (contiguous integration).

Must also display the current results of continuous integration via a badge (added to Rainbow Cards Home Page / github.io site, see task 34 in github.io repo)

Completed on both repos


Invisible Input boxes when unfocused

Describe the bug
In my web pages, some of my clrInput fields will be invisible unless they have focus. When they have focus, they will have the
blue underline as usual, however the line will be thinner than normal.

There is no consistency as to which clrInput fields are invisible across different pages, however on a given page it will consistently be input fields in a specific location (i.e. if I swap the visible job # field with the invisible lot # field, job # will become invisible and lot # will become visible).
Additionally, if I override the bottom border width, the invisible fields will become visible. However, they are thinner than all the other input fields that were visible before the width change.
I viewed the web page in Chrome and in Firefox. The issue is present in both, but the invisible fields are in different locations in each browser.
How to reproduce
I don't know. I updated to version 4.0.4 recently from 3.1.5, however I attempted to revert to 3.1.5 and the issue was still present.
Expected behavior
I would like all my input fields to be consistently visible and the same size.
Versions
App

Angular: [11.0.2]
Node: [10.6.3]
Clarity: [4.0.4]

Device:

Type: [Dell Desktop]
OS: [Windows 10]
Browser [Chrome, Edge, Firefox]

Without an isolated reproduction it's hard to firgure out what is going on here.
If you can re-create the issue in one of our starter stackblitzes it will help us, help you.

Without an isolated reproduction it's hard to figure out what is going on here.
If you can re-create the issue in one of our starter stackblitzes it will help us, help you.

Turns out, that's actually exactly what I needed. I couldn't reproduce it, so I figured it had to be one of my custom styles. I tried each one and discovered where my problem was.
https://clarity-v4-light-theme-yzsy1h.stackblitz.io
.clr-col-1, .clr-col-2, .clr-col-3, .clr-col-4, .clr-col-5, .clr-col-6, .clr-col-7, .clr-col-8, .clr-col-9, .clr-col-10, .clr-col-11, .clr-col-12 {     overflow: hidden !important;     text-overflow: ellipsis !important; }
I made this style because I didn't like how, when the screen gets too narrow, anything I had in a grid would collapse and change the height. If you take a look at the stack blitz, you should notice that the input field bottom border is very slightly thinner than is normal. After you focus on it and leave, it will be thicker again.
It is a very subtle difference, and perhaps it won't be noticeable on your screen. However, in my application, it is going even further and causing some of the input fields to be invisible.
Would this be considered a bug or just a case of bad styling on my side? I'll get rid of my style for now since that's what's causing the issue.

Hi @dan-p-dev,
It is definitely not a bug.
Sometimes when playing around with the code that sets visual changes to a component library there are side-effects that can appear and also a responsibility comes to handle these side-effects inside the application.
Try to follow our guidelines I believe you will find the right solution for your case there.


[BEAM-13333][Playground] Save Python logs to the cache

[BEAM-13333]
Implement adding python code processing logs to the cache

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

R: @KhaninArtur @ilya-kozyrev

R: @pabloem


CEP-402 upgrade php7 sf3 part3

NOTE: should be merged after https://github.com/zencap/state-machine/pull/29 Please see the diff
NOTE: this is aimed to be v2.0.0 (together with #29 )

Bump min supported PHP to 7.1
Update PHPUnit to v6.4

I suggest to merge this one and create new tag v3.0


Suggestion

If you can, could you make a 1.20.1 version of this mod for forge?

Yes! I will be working on that very shortly.


Get current min / max zoom level for renderer?

Please describe the feature that you want to propose
I am trying to use the download image example. It works but I need to provide min / max zoom level as getTransformForBounds arguments.
As min / max zoom level may change in the future, I would like this info expose by ReactFlowInstance, so I can directly access that information from react-flow without the need of hard-coding it.
Can you provide a hook something like getZoomBounds() : ({ min: number, max: number })?

You can access this information using useStore
const selector = (s: ReactFlowState) => {
	return {
		minZoom: s.minZoom,
		maxZoom: s.maxZoom,
	}
}

const { minZoom, maxZoom } = useStore(selector);

Here's an example.

Yep! Or set them by yourself via minZoom / maxZoom props.


Segmentation Fault with null access to change

I encounter this periodically when using the ROS 2 dynamic_bridgeprogram to send large messages (image messages) with Fast-RTPS:
Thread 12 "dynamic_bridge" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffd77fe700 (LWP 18681)]
eprosima::fastrtps::rtps::ReaderProxy::set_change_to_status (this=0xc33c70, change=0x0,
    status=status@entry=eprosima::fastrtps::rtps::UNDERWAY)
    at /home/william/ros2_ws/src/eProsima/Fast-RTPS/src/cpp/rtps/writer/ReaderProxy.cpp:196
196	    if(change->sequenceNumber <= changesFromRLowMark_)
(gdb) bt
#0  eprosima::fastrtps::rtps::ReaderProxy::set_change_to_status (this=0xc33c70, change=0x0,
    status=status@entry=eprosima::fastrtps::rtps::UNDERWAY)
    at /home/william/ros2_ws/src/eProsima/Fast-RTPS/src/cpp/rtps/writer/ReaderProxy.cpp:196
#1  0x00007ffff2cf32ab in eprosima::fastrtps::rtps::StatefulWriter::send_any_unsent_changes (this=0xc0e120)
    at /home/william/ros2_ws/src/eProsima/Fast-RTPS/src/cpp/rtps/writer/StatefulWriter.cpp:233
#2  0x00007ffff2cecea8 in eprosima::fastrtps::rtps::AsyncWriterThread::run ()
    at /home/william/ros2_ws/src/eProsima/Fast-RTPS/src/cpp/rtps/resources/AsyncWriterThread.cpp:126
#3  0x00007ffff5a51c80 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4  0x00007ffff79bd6ba in start_thread (arg=0x7fffd77fe700) at pthread_create.c:333
#5  0x00007ffff54c082d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

It looks like the change parameter to the set_change_to_status method is null. I can try to provide more details if it would help (like steps to reproduce).

Out of curiosity, how large is "large" within the context of your application? We are working on a video streaming application that is sending frames that are between 30kB and 150kB (total bandwidth ~10Mbits/s) and am wondering if we should keep an eye out for a similar failure.
From what I read, FastRTPS should be capable of handling large data, given the proper Publisher/Writer QOS configuration. If there are any discrepancies, we would like to know.
From the docs:
// Allow fragmentation
PublisherAttributes Wparam;
Wparam.qos.m_publishMode.kind = ASYNCHRONOUS_PUBLISH_MODE;

WriterAttributes Wparam;
Wparam.mode= ASYNCHRONOUS_WRITER;

The images were on the order of 300kb each at 30Hz, but we can adjust the resolution up or down so it can vary.

Hi, we have found what is causing this error and we are working on it. Thank you again for the feedback.


[FEAT] Display a notification from authProvider

Is your feature request related to a problem? Please describe.
Forgot password page which is shown in the docs has bad UX because after the successful submit there is completely no feedback to the user.
https://refine.dev/docs/tutorial/understanding-authprovider/headless/auth-pages/#forgot-password-page
Instead a success toast message should shown to the user. Unfortunately according to the docs notification provider can be only accessed from useNotification hook -> https://refine.dev/docs/api-reference/core/providers/notification-provider
In my case I need to trigger a notification from auth provider.
Describe alternatives you've considered
No response
Additional context
No response
Describe the thing to improve
Add a possibility to trigger a notification from auth provider.

Hey @Mikilll94 ,
Can you review this topic (https://discord.com/channels/837692625737613362/1088507646388215979/1088507646388215979)? It's a technical limitation caused by MUI not providing a native notification system. Alternatively, you can choose to use the methods mentioned in the topic.


Use inspect.getfullargspec(fn) for type hint support

https://github.com/tokikanno/django-openapi/blob/9ec204d2f16ed54eb02c936696ae81a9f2f97d6a/django_openapi/route.py#L159

Can't quite understand why, can u describe more details of why you need this change?

Can't quite understand why, can u describe more details of why you need this change?

Sure! :)
Right now I am forced to do this:
def create_team(request, payload=Body(CreateTeamsRequest)):
I would like to be able to do this:
def create_team(request: HttpRequest, payload: CreateTeamsRequest=Body(CreateTeamsRequest)):

Sure! :)
Right now I am forced to do this:
def create_team(request, payload=Body(CreateTeamsRequest)):
I would like to be able to do this:
def create_team(request: HttpRequest, payload: CreateTeamsRequest=Body(CreateTeamsRequest)):

You mean use getfullargspec for the type hint support?

You mean use getfullargspec for the type hint support?

Yeah, if possible :)

Yeah, if possible :)

ok, I'll see if I can do something with the getfullargspec.

ok, I'll see if I can do something with the getfullargspec.

Thanks! I really appreciate the work you have done here :)

Thanks! I really appreciate the work you have done here :)

bumped version to <IP_ADDRESS>, plz give it a try.

bumped version to <IP_ADDRESS>, plz give it a try.

It works! Thanks :D

It works! Thanks :D


[regtool] hwext register with rw1c fields results in partial implementation.

Description
I've been trying to get regtool to output sensible RTL that uses an external register with swaccess of rw1c.  When running the following HJSON through the tool, I get a reg_top.sv that tries to use a non-existent reg2hw.enable.re signal.
I'm working around this at the moment by burning registers duplicating the external ones.
{
  name: BLOCK
  cip_id: 1001
  version: 1.1.1
  regwidth: 32
  registers:
  [
    {
      skipto: 0x0
    }
    {
      name: ENABLE
      desc: ""
      hwext: "true"
      hwqe: "true"
      hwre: "true"

      fields:
      [
        {
          name: EN
          desc: ""
          bits: 0
          resval: 0
          hwaccess: hwo
          swaccess: rw1c
        }
      ]
    }
  ]
  clocking:
  [
    {
      clock: clk_i
      reset: rst_ni
      idle: idle
      primary: "true"
    }
  ]
  bus_interfaces:
  [
    {
      protocol: tlul
      direction: device
    }
  ]
}

The pkg file looks like:
package block_reg_pkg;

  // Address widths within the block
  parameter int BlockAw = 2;

  ////////////////////////////
  // Typedefs for registers //
  ////////////////////////////

  typedef struct packed {
    logic        d;
  } block_hw2reg_enable_reg_t;

  // HW -> register type
  typedef struct packed {
    block_hw2reg_enable_reg_t enable; // [0:0]
  } block_hw2reg_t;

  // Register offsets
  parameter logic [BlockAw-1:0] BLOCK_ENABLE_OFFSET = 2'h 0;

  // Reset values for hwext registers and their fields
  parameter logic [0:0] BLOCK_ENABLE_RESVAL = 1'h 0;
  parameter logic [0:0] BLOCK_ENABLE_EN_RESVAL = 1'h 0;

  // Register index
  typedef enum int {
    BLOCK_ENABLE
  } block_id_e;

  // Register width information to check illegal writes
  parameter logic [3:0] BLOCK_PERMIT [1] = '{
    4'b 0001  // index[0] BLOCK_ENABLE
  };

endpackage

and the snippet of the RTL top level looks like:
  // Register instances
  // R[enable]: V(True)
  logic enable_qe;
  logic [0:0] enable_flds_we;
  assign enable_qe = &enable_flds_we;
  prim_subreg_ext #(
    .DW    (1)
  ) u_enable (
    .re     (enable_re),
    .we     (enable_we),
    .wd     (enable_wd),
    .d      (hw2reg.enable.d),
    .qre    (reg2hw.enable.re),
    .qe     (enable_flds_we[0]),
    .q      (),
    .ds     (),
    .qs     (enable_qs)
  );

Actually, it looks like I can work around this by making the hwaccess: hrw.  The fields then magically appear in the pkg.
Is this what you intended?  Should you be throwing an error here rather than outputting broken RTL or was this intended to be an option?

To make sure I understand the problem:

Your hjson specifies a register and asks for an hwre signal
The generated reg_top tries to connect the prim_subreg_ext so that it writes to reg2hw.<REG_NAME>.re
But the reg2hw structure doesn't have an re signal for that register.

Is that right? If so, I suspect we need to make a small tweak to the Python code that generates the package defining reg2hw.
If you want to debug further, you could poke around by locally adding edits to the reg_pkg.sv.tpl and trying to figure out what is getting included/skipped and why.

@rswarbrick Exactly right.  I'm assuming that those signals aren't templated unless the register has a hardware read interface.  I'll see if I can do some poking.


Efficient memory ordering for DiscreteDP

(This is to summarize my comments https://github.com/QuantEcon/QuantEcon.jl/pull/109#issuecomment-216474996, https://github.com/QuantEcon/QuantEcon.jl/pull/109#issuecomment-216727212, https://github.com/QuantEcon/QuantEcon.jl/pull/109#issuecomment-216764154.)

n: number of states
m: number of actions (Assume it is constant over the states)

Consider bellman_operator, where we compute

vals = R + beta * Q * v and
Tv = s_wise_max(vals).

Let me denote R + beta * Q * v by U(s, a) as a function of (s, a), to distinguish it from a Julia array; let me denote the probabilities by q(sa, s'), where sa is a state-action pair, while s' is a state tomorrow.

To compute s_wise_max, the data for U should be ordered in memory as
U(1, 1), ..., U(1, m), U(2, 1), ..., U(2, m), ..., U(n, 1), ..., U(n, m)
i.e., action should change faster.
So the same applies to R: action should change faster.

To compute Q * v, the data for q should be ordered in memory as
q(sa_1, 1), ..., q(sa_1, n), ..., q(sa_L, 1), ..., q(sa_L, n)
(where the state-action pairs are listed as sa_1, ..., sa_L)
i.e., state-tomorrow should change faster.
Given 1. and 2., for Q, state-tomorrow should change first, action second, and state-today third.

This was very helpful, thank you for summarizing here.
From the very last statement, it sounds like in Julia we need to order Q(s', a, s) and in python we would need to order it Q(s, a, s'). Do you agree?

Yes, that's my opinion.


FCNPC Windows Server Console not closing after rcon exit command

Hello Guys.
Currently I have a watchdog that monitors whether the server is running or not and when I do the daily automatic restart of the server by a function in game mode I have noticed that the console does not finish closing when executing the rcon exit command. And therefore the server does not start again.
I tried changing the position and also removing from the plugins parameter in the server.cfg and of course i've already tried to run the server without the watchdog and I can confirm that the console stays on hold until I press the ctrl + c keys.
Screenshots:
Here is the plugin running OK

Here is when the gamemode exit command was launched, the other plugins finished successfully

Versions:

OS: Windows 10 and  Windows Server 2019 Standard
SA-MP version: 0.3.7 R2 and 0.3 DL R1 (In samp dl i've been using FCNPC-DL.dl)
FCNPC version: FCNPC 2.0.9

Thanks you, i really love ur masterpiece plugin.

Fixed in https://github.com/ziggi/FCNPC/commit/464dd0dbfcfdfeb51a3c80f8a87ecceea304e73c, available in FCNPC 2.0.10


Making Blob.exists() work as Bucket.exists().

Also returning the _BucketIterator directly in
storage.api.list_buckets() rather than wrapping it in iter().
@tseaver As mentioned https://github.com/GoogleCloudPlatform/gcloud-python/pull/812#issuecomment-99170688 I said I'd fix Blob.exists() while making sure the iterators didn't work in batches.
It turns out they were already not working. Here is a working get request
>>> from gcloud import _helpers
>>> from gcloud import storage
>>>
>>> _helpers._PROJECT_ENV_VAR_NAME = 'GCLOUD_TESTS_PROJECT_ID'
>>> storage.set_defaults()
>>>
>>> with storage.Batch() as batch:
...     bucket = storage.get_bucket('bucket-name')
...     print bucket._properties
...
<gcloud.storage.batch._FutureDict object at 0x7f7ce19f4a10>
>>> bucket._properties
{u'kind': u'storage#bucket', u'name': u'bucket-name', ...

while a bucket iterator fails since _FutureDict.get throws a KeyError:
>>> with storage.Batch() as batch:
...     buckets_iter = storage.list_buckets()
...     response = buckets_iter.get_next_page_response()
...
Traceback (most recent call last):
  File "<stdin>", line 3, in <module>
  File "gcloud/storage/iterator.py", line 115, in get_next_page_response
    self.next_page_token = response.get('nextPageToken')
  File "gcloud/storage/batch.py", line 96, in get
    key, default))
KeyError: "Cannot get('nextPageToken', default=None) on a future"

and a blob iterator fails (but not quite always)
>>> bucket.connection
<gcloud.storage.batch.Batch object at 0x7f3b1c56db50>
>>> bucket.connection._connection
<gcloud.storage.connection.Connection object at 0x7f3b1c56d490>
>>> bucket._connection = None
>>>
>>> with storage.Batch() as batch:
...     blobs_iter = bucket.list_blobs()
...     response = blobs_iter.get_next_page_response()
...
Traceback (most recent call last):
  File "<stdin>", line 3, in <module>
  File "gcloud/storage/iterator.py", line 111, in get_next_page_response
    response = self.connection.api_request(
AttributeError: 'NoneType' object has no attribute 'api_request'

Coverage remained the same at 100.0% when pulling bf8b655b57f13d231c9f901be012972b6cd17039 on dhermes:fix-blob-exists into aafcd2af33305ae22fc880486b06ac75a7c3d821 on GoogleCloudPlatform:master.

LGTM


Why I am getting 'ApolloParseException' after upgrading from 1.0.0-alpha to 1.0.0 ?

Hi Team ,
I am currently upgraded an old project's Apollo version from 1.0.0-alpha to 1.0.0 .
After upgrading I am getting this Execption

    com.apollographql.apollo.exception.ApolloParseException: Failed to parse http response
        at com.apollographql.apollo.internal.interceptor.ApolloParseInterceptor.parse(ApolloParseInterceptor.java:101)
        at com.apollographql.apollo.internal.interceptor.ApolloParseInterceptor$1.onResponse(ApolloParseInterceptor.java:53)
        at com.apollographql.apollo.internal.interceptor.ApolloServerInterceptor$1$1.onResponse(ApolloServerInterceptor.java:106)
        at okhttp3.RealCall$AsyncCall.execute(RealCall.java:203)
        at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:764)
     Caused by: java.io.EOFException: End of input
        at com.apollographql.apollo.internal.json.BufferedSourceJsonReader.nextNonWhitespace(BufferedSourceJsonReader.java:946)
        at com.apollographql.apollo.internal.json.BufferedSourceJsonReader.doPeek(BufferedSourceJsonReader.java:332)
        at com.apollographql.apollo.internal.json.BufferedSourceJsonReader.beginObject(BufferedSourceJsonReader.java:169)
        at com.apollographql.apollo.response.OperationResponseParser.parse(OperationResponseParser.java:82)
        at com.apollographql.apollo.internal.interceptor.ApolloParseInterceptor.parse(ApolloParseInterceptor.java:87)
        at com.apollographql.apollo.internal.interceptor.ApolloParseInterceptor$1.onResponse(ApolloParseInterceptor.java:53)
        at com.apollographql.apollo.internal.interceptor.ApolloServerInterceptor$1$1.onResponse(ApolloServerInterceptor.java:106)
        at okhttp3.RealCall$AsyncCall.execute(RealCall.java:203)
        at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:764)

But everything was fine till I upgraded . I upgraded to 1.0 stable from alpha because I upgraded Gradle due to Firebase Crashlytics migration .
Apollo alpha thowed build errors in new Gradle . So I upgraded to 1.0 and build success
But after opening the app , I got this exception
The mystery here is  =>
The okHTTP logging intercepter printing the response JSON and it valid and correct too.
But Apollo can't parse it
Why apollo can't parse the JSON when it received correctly ?
Limitations
And one Sad thing is , I can't upgrade to latest apollo versions due to using lot of old packages, since old packages incompatible with new Gradle 6+ and apollo latest version needs new Gradle .
Please help me
Info  :
Apollo version :        : 1.0    (1.0 alpha before)
Gradle build tools:   : 3.6.4
Gradle                      : 5.6.4
Kotlin :                      : 1.3.72
Sample Query
#Get Profile Details
query GetProfile {
 userAccount {
 result {
 userId
 profileId
 firstName
 lastName
 displayName
 gender
 dateOfBirth
 iosDOB
 email
 userBanStatus
 phoneNumber
 preferredLanguage
 preferredLanguageName
 preferredCurrency
 location
 info
 createdAt
 picture
 country
 loginUserType
 isAddedList
 verification {
 id
 isEmailConfirmed
 isFacebookConnected
 isGoogleConnected
 isIdVerification
 isPhoneVerified
 }
 userData {
 type
 }
 verificationCode
 countryCode
 loginUserType
 isAddedList
 }
 status
 errorMessage
 }
 }

Response (from okhttp logger)  :
{
  "data": {
    "userAccount": {
      "__typename": "WholeAccount",
      "result": {
        "__typename": "UserAccount",
        "userId": "2bced470-49b7-11eb-a6aa-89804552bd8c",
        "profileId": 28,
        "firstName": "Ragesh",
        "lastName": "Antony",
        "displayName": "Ragesh Antony",
        "gender": null,
        "dateOfBirth": "6-1993-3",
        "iosDOB": "6-3-1993",
        "email"<EMAIL_ADDRESS>        "userBanStatus": null,
        "phoneNumber": null,
        "preferredLanguage": null,
        "preferredLanguageName": null,
        "preferredCurrency": null,
        "location": null,
        "info": null,
        "createdAt": "1609233662000",
        "picture": "52cd186f3f176cd981a4085887cd019d.jpeg",
        "country": null,
        "loginUserType": "Guest",
        "isAddedList": false,
        "verification": {
          "__typename": "UserVerifiedInfo",
          "id": 28,
          "isEmailConfirmed": true,
          "isFacebookConnected": false,
          "isGoogleConnected": false,
          "isIdVerification": false,
          "isPhoneVerified": false
        },
        "userData": {
          "__typename": "UserType",
          "type": "email"
        },
        "verificationCode": null,
        "countryCode": null
      },
      "status": 200,
      "errorMessage": null
    }
  }
}

======
Apollo Config Module :
https://gist.github.com/RageshAntony/86686ebb9557698d8569acec6fc04b42
Please help me to resolve this issue

Hi Antony! Could you try to make a small isolated, standalone project that reproduces the problem and update Apollo Android there to confirm it's working well in the latest version (2.4.6 as we're speaking) ?
Overall, the path forward there is definitely to update your dependencies and Gradle version so that you can pick up latest fixes in apollo-android but also Gradle and your other dependencies. Apollo Android works Gradle 5.6+, not only Gradle 6+ so maybe that can help.
If upgrading your dependencies is out of the question, you could use apollo-android in a separate library project that uses a recent Gradle as a mitigation. This way, you can keep using Gradle 3.6 in your main project and progressively move your dependencies to Gradle 6. To do this, you'll have to publish the library project as explained here. That'll add a bit more complexity to your build so I'd recommend updating the dependencies as a first approach.

Hi Antony! Could you try to make a small isolated, standalone project that reproduces the problem and update Apollo Android there to confirm it's working well in the latest version (2.4.6 as we're speaking) ?
Overall, the path forward there is definitely to update your dependencies and Gradle version so that you can pick up latest fixes in apollo-android but also Gradle and your other dependencies. Apollo Android works Gradle 5.6+, not only Gradle 6+ so maybe that can help.
If upgrading your dependencies is out of the question, you could use apollo-android in a separate library project that uses a recent Gradle as a mitigation. This way, you can keep using Gradle 3.6 in your main project and progressively move your dependencies to Gradle 6. To do this, you'll have to publish the library project as explained here. That'll add a bit more complexity to your build so I'd recommend updating the dependencies as a first approach.

Hi Antony! Could you try to make a small isolated, standalone project that reproduces the problem and update Apollo Android there to confirm it's working well in the latest version (2.4.6 as we're speaking) ?
Overall, the path forward there is definitely to update your dependencies and Gradle version so that you can pick up latest fixes in apollo-android but also Gradle and your other dependencies. Apollo Android works Gradle 5.6+, not only Gradle 6+ so maybe that can help.
If upgrading your dependencies is out of the question, you could use apollo-android in a separate library project that uses a recent Gradle as a mitigation. This way, you can keep using Gradle 3.6 in your main project and progressively move your dependencies to Gradle 6 (or more). To do this, you'll have to publish the library project as explained here. That'll add a bit more complexity to your build so I'd recommend updating the dependencies as a first approach but that could be an option if everything else fails.

Hi Martin Bonn,
Thanks very much. Like you suggested I created a New project and executed the query with Apollo 2.4.6. It's success
So I upgraded Apollo In my main project and fixed other library issues
Now I able to parse queries without problems
Thanks
But one issue occurring
If I set generate Kotlin models to True , I can't build project
I am getting
Can't find symbol
Ex : Can't find symbol UserLoginQuery ...
So I have to set generate Kotlin models False ...
Pls help me
Apollo version : : 2.4.6
Gradle build tools: : 4.1.1
Gradle : 6.7.1
Kotlin : : 1.3.72

Hi Antony! Could you try to make a small isolated, standalone project that reproduces the problem and update Apollo Android there to confirm it's working well in the latest version (2.4.6 as we're speaking) ?
Overall, the path forward there is definitely to update your dependencies and Gradle version so that you can pick up latest fixes in apollo-android but also Gradle and your other dependencies. Apollo Android works Gradle 5.6+, not only Gradle 6+ so maybe that can help.
If upgrading your dependencies is out of the question, you could use apollo-android in a separate library project that uses a recent Gradle as a mitigation. This way, you can keep using Gradle 3.6 in your main project and progressively move your dependencies to Gradle 6 (or more). To do this, you'll have to publish the library project as explained here. That'll add a bit more complexity to your build so I'd recommend updating the dependencies as a first approach but that could be an option if everything else fails.

Hi Martin Bonn,
Thanks very much. Like you suggested I created a New project and executed the query with Apollo 2.4.6. It's success
So I upgraded Apollo In my main project and fixed other library issues
Now I able to parse queries without problems
Thanks
But one issue occurring
If I set generate Kotlin models to True , I can't build project
I am getting
Can't find symbol
Ex : Can't find symbol UserLoginQuery ...
So I have to set generate Kotlin models False ...
Pls help me
Apollo version : : 2.4.6
Gradle build tools: : 4.1.1
Gradle : 6.7.1
Kotlin : : 1.3.72

Thanks very much. Like you suggested I created a New project and executed the query with Apollo 2.4.6. It's success

Nice, glad to hear that !

If I set generate Kotlin models to True , I can't build project

That's unfortunate. Can you copy/paste the full stacktrace?

Thanks very much. Like you suggested I created a New project and executed the query with Apollo 2.4.6. It's success

Nice, glad to hear that !

If I set generate Kotlin models to True , I can't build project

That's unfortunate. Can you copy/paste the full stacktrace?

That's unfortunate. Can you copy/paste the full stacktrace?

Yeah . See here
--> https://gist.github.com/RageshAntony/e973e54861ae8c8e9a345f4adbcd40e2
Apollo version : : 2.4.6
Gradle build tools: : 4.1.1
Gradle : 6.7.1
Kotlin : : 1.3.72
dagger : 2.24
points :

In the ApiHelper.kt , the IDE showing 'unable to resolve Builder'.
The Query classes are generated in Kotlin and I able to open the Kotlin class , when I click cmd/ctrl + click in any Query / Mutation class names in ApiHelper.kt
That is even though classes generated , build log showing unable to find symbols

That's unfortunate. Can you copy/paste the full stacktrace?

Yeah . See here
--> https://gist.github.com/RageshAntony/e973e54861ae8c8e9a345f4adbcd40e2
Apollo version : : 2.4.6
Gradle build tools: : 4.1.1
Gradle : 6.7.1
Kotlin : : 1.3.72
dagger : 2.24
points :

In the ApiHelper.kt , the IDE showing 'unable to resolve Builder'.
The Query classes are generated in Kotlin and I able to open the Kotlin class , when I click cmd/ctrl + click in any Query / Mutation class names in ApiHelper.kt
That is even though classes generated , build log showing unable to find symbols

Thanks for all the details!

location: package com.localspace.work/Users/radicalstart/Documents/ragesh/android/sai-praveen-rentall-space-premium-android-v1.1/app/build/tmp/kapt3/...

That sounds like a kapt incremental build issue, I've had a few myself. Usually, they're resolved by removing the build directory and building again: rm -rf app/build

Thanks for all the details!

location: package com.localspace.work/Users/radicalstart/Documents/ragesh/android/sai-praveen-rentall-space-premium-android-v1.1/app/build/tmp/kapt3/...

That sounds like a kapt incremental build issue, I've had a few myself. Usually, they're resolved by removing the build directory and building again: rm -rf app/build

Thanks for all the details!

location: package com.localspace.work/Users/radicalstart/Documents/ragesh/android/sai-praveen-rentall-space-premium-android-v1.1/app/build/tmp/kapt3/...

That sounds like a kapt incremental build issue, I've had a few myself. Something like: https://youtrack.jetbrains.com/issue/KT-11978. Usually, they're resolved by removing the build directory and building again: rm -rf app/build

Yeah .. That error resolved
But that Builder not found error
 symbol:   class Builder
  location: class SearchListingQuery/Users/radicalstart/Documents/ragesh/android/sai-praveen-rentall-space-premium-android-v1.1/app/build/tmp/kapt3/stubs/debug/com/localspace/work/data/remote/ApiHelper.java:122: error: cannot find symbol
    com.localspace.work.GetAllReservationQuery.Builder query, int pageSize);

Why this builder not available in Kotlin models but available in Java ?

Thanks for all the details!

location: package com.localspace.work/Users/radicalstart/Documents/ragesh/android/sai-praveen-rentall-space-premium-android-v1.1/app/build/tmp/kapt3/...

That sounds like a kapt incremental build issue, I've had a few myself. Something like: https://youtrack.jetbrains.com/issue/KT-11978. Usually, they're resolved by removing the build directory and building again: rm -rf app/build

Yeah .. That error resolved
But that Builder not found error
 symbol:   class Builder
  location: class SearchListingQuery/Users/radicalstart/Documents/ragesh/android/sai-praveen-rentall-space-premium-android-v1.1/app/build/tmp/kapt3/stubs/debug/com/localspace/work/data/remote/ApiHelper.java:122: error: cannot find symbol
    com.localspace.work.GetAllReservationQuery.Builder query, int pageSize);

Why this builder not available in Kotlin models but available in Java ?

Why this builder not available in Kotlin models but available in Java ?

Kotlin uses data classes and default arguments so there's no real need for Builders there. You can call the constructor directly:
GetAllReservationQuery(/* variables go here */)

Why this builder not available in Kotlin models but available in Java ?

Kotlin uses data classes and default arguments so there's no real need for Builders there. You can call the constructor directly:
GetAllReservationQuery(/* variables go here */)

Why this builder not available in Kotlin models but available in Java ?

Kotlin uses data classes and default arguments so there's no real need for Builders there. You can call the constructor directly:
GetAllReservationQuery(/* variables go here */)

ooh I understand
But we used builder pattern in many places , So difficult to replace . So I stay with Java models
One question
What is the advantages of using Kotlin models ?

Why this builder not available in Kotlin models but available in Java ?

Kotlin uses data classes and default arguments so there's no real need for Builders there. You can call the constructor directly:
GetAllReservationQuery(/* variables go here */)

ooh I understand
But we used builder pattern in many places , So difficult to replace . So I stay with Java models
One question
What is the advantages of using Kotlin models ?

What is the advantages of using Kotlin models ?

I'd say it's the same reasons to use Kotlin in general: nullability support, data classes, default arguments, named arguments. Also, if your codebase is 100% Kotlin, it saves the java compilation phase.

What is the advantages of using Kotlin models ?

I'd say it's the same reasons to use Kotlin in general: nullability support, data classes, default arguments, named arguments. Also, if your codebase is 100% Kotlin, it saves the java compilation phase.

What is the advantages of using Kotlin models ?

I'd say it's the same reasons to use Kotlin in general: nullability support, data classes, default arguments, named arguments, etc... Also, if your codebase is 100% Kotlin, it saves the java compilation phase.

Ok understood
Thanks for your dedicated support
My issues resolved 🙏

What is the advantages of using Kotlin models ?

I'd say it's the same reasons to use Kotlin in general: nullability support, data classes, default arguments, named arguments, etc... Also, if your codebase is 100% Kotlin, it saves the java compilation phase.

Ok understood
Thanks for your dedicated support
My issues resolved 🙏

No problem! You're welcome.

No problem! You're welcome.

@martinbonnin
Hi Martin . One additional query .
Is it possible to print the Query variables in logical  as a JSON before sending them out ?
For example :
Query login ($name: String,$pass: String) .....
print vars as
{
name: "ragesh",
pass: "123"
}

@martinbonnin
Hi Martin . One additional query .
Is it possible to print the Query variables in logical  as a JSON before sending them out ?
For example :
Query login ($name: String,$pass: String) .....
print vars as
{
name: "ragesh",
pass: "123"
}

Is it possible to print the Query variables in logical as a JSON before sending them out ?

If it's for debug, I highly recomment the OkHttp logging interceptor: https://github.com/square/okhttp/tree/master/okhttp-logging-interceptor
For other purposes, you can do something like below:
    val buffer = Buffer()
    val jsonWriter = JsonWriter.of(buffer)
    query.variables()
        .marshaller()
        .marshal(InputFieldJsonWriter(jsonWriter, CustomScalarAdapters.DEFAULT))
    val json = buffer.readUtf8()

Is it possible to print the Query variables in logical as a JSON before sending them out ?

If it's for debug, I highly recomment the OkHttp logging interceptor: https://github.com/square/okhttp/tree/master/okhttp-logging-interceptor
For other purposes, you can do something like below:
    val buffer = Buffer()
    val jsonWriter = JsonWriter.of(buffer)
    query.variables()
        .marshaller()
        .marshal(InputFieldJsonWriter(jsonWriter, CustomScalarAdapters.DEFAULT))
    val json = buffer.readUtf8()


Improve citation layout for longer content

Pull Request Checklist:

[x] Positive Test Case Written by Dev

[x] Automated Testing

[x] Sufficient User and Developer Documentation

[x] Passing Jenkins Build

[ ] Peer Code review and approval

Improve citation text layout for longer content.

Copy button moved to top right.
Simplify layout with CSS flex.

With short text:

With long text:

With edit button:

Positive Test Case

Create a resource
Verify proper layout of citation text

METRIC
VALUE

NEW BUGS
0

NEW SECURITY HOTSPOTS
0

NEW VULNERABILITIES
0

NEW DUPLICATED LINES DENSITY
0.0

NEW CODE SMELLS
0

https://sonarqube.cuahsi-workstation.com:9000/dashboard?id=hydroshare-4408

retest this, please


Update the Beam searching algorithum file solve error

Issues in Your Code:
Memory Leaks-
The child nodes allocated in the createNode function are not freed properly, leading to memory leaks.
The next_beam array is allocated in each iteration but not fully deallocated if it holds nodes at the end.
Freeing Memory-
You should ensure all nodes and their children are freed correctly to avoid memory leaks.
Check for Null Pointers-
When adding children to the next_beam, you should check that the child nodes exist (i.e., not NULL).
Improper Initialization of Children-
When creating child nodes in your main function, you should ensure the children array is initialized correctly.
Changes:
Memory Management-Added a freeTree function to recursively free all nodes and their children to prevent memory leaks.
NULL Check- Added a check for NULL before adding children to the next beam.
Clearer Structure-The main function initializes the tree structure and calls freeTree at the end to clean up allocated memory.

issue not found


run python eval.py

Why is there an error after running eval.py：symbol cudaGraphInstantiateWithFlags version libcudart.so.11.0 not defined in file libcudart.so.11.0 with link time reference

Hi, this seems to be an issue with CUDA. Do you have CUDA 11.0 installed and is Jax compiled correctly with CUDA support?


Refactor tests/api.js and test #775

Factor out tests/render.js out of tests/api.js,
reducing boilerplate and allowing easier save and
restore of the environment.
Add tests for #775

The test for #775 should go in #775. You can combine the refactoring of test in one PR. Would be easy to review, monitor CI progress and since so forth.

This pull request also includes #847; I propose we discuss refactoring of tests here - it makes no sense to introduce another PR just for commit 565ece9 and commit 31321b9 serves as a justification why I needed to refactor this. Unfortunately, unlike in Gerrit Code Review, I cannot stack pull requests on top of another. If you think that testes/render.js is unproblematic, we can merge this and #847 closes. If not, let's discuss testing here and push #847 alone, as it's trivial.

I'll look at this post #775.

Superseded by https://github.com/sass/node-sass/pull/901.


Makes ExpandWhens preserve connect Info's

This is a StrawMan or perhaps a partial fix for Issue #679.
It's not elegant, and I had to resort to strings as the match key because I could not reliably match nodes mid transform (I tried it with and without MemoizedHash but did not work, particularly when using in Treadle). This satisfies my immediate need in treadle, I don't know if it is sufficient for @stevenmburns but I'd like to see this or some better version sooner rather than later.

Collects Info's found for symbols
Merges multiple sources for symbol into MultiInfo
restores these info's on connect statements.
Add test showing preserved infos

I’ll give this a try.
From: Chick Markley<EMAIL_ADDRESS>Sent: Thursday, May 24, 2018 1:41 PM
To: freechipsproject/firrtl<EMAIL_ADDRESS>Cc: Burns, Steven M<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: [freechipsproject/firrtl] Makes ExpandWhens preserve connect Info's (#816)
This is a StrawMan or perhaps a partial fix for Issue #679https://github.com/freechipsproject/firrtl/issues/679.
It's not elegant, and I had to resort to strings as the match key because I could not reliably match nodes mid transform (I tried it with and without MemoizedHash but did not work, particularly when using in Treadle). This satisfies my immediate need in treadle, I don't know if it is sufficient for @stevenmburnshttps://github.com/stevenmburns but I'd like to see this or some better version sooner rather than later.

Collects Info's found for symbols
Merges multiple sources for symbol into MultiInfo
restores these info's on connect statements.
Add test showing preserved infos

You can view, comment on, or merge this pull request online at:
https://github.com/freechipsproject/firrtl/pull/816
Commit Summary

Makes ExpandWhens preserve connect Info's

File Changes

M src/main/scala/firrtl/passes/ExpandWhens.scalahttps://github.com/freechipsproject/firrtl/pull/816/files#diff-0 (38)
A src/test/scala/firrtlTests/SourceInfoSpec.scalahttps://github.com/freechipsproject/firrtl/pull/816/files#diff-1 (68)

Patch Links:

https://github.com/freechipsproject/firrtl/pull/816.patch
https://github.com/freechipsproject/firrtl/pull/816.diff

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/freechipsproject/firrtl/pull/816, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABcUfpEoEgMd095k1zHWyZLWb1VUgrXNks5t1xrRgaJpZM4UM9Qj.

Per the Travis failures, the LEC checks are probably just timing out. I am not around today but I'll try to take a look this weekend. It seems strange that a change to purely source locators and thus comments could possibly cause Yosys to take a long time, pretty strange.

@jackkoenig I did some eyeball regression tests with regress/RocketCore.fir between main and new branch and did not see any obvious performance change. That file has 116 whens in 6155 lines of firrtl.

I'm going to push a commit fixing a couple of style nits and another one to try to fix these travis timeout failures

Even with the extended runtime, one of the formal checks is failing and I cannot figure out why. My best guess is that it is running out of memory and getting killed, but it also could be a kill -9 from I don't know what source. Doing some memory use profiling...

The failing equivalence check is the ICache. On my laptop, hosts takes 2.6GB to do that check. Compare this to Yosys only using 870MB to check RocketCore. Travis limits are either 3GB or 4GB. 2.6 is kind of close but should be under. I recently bumped the version of Yosys, maybe it uses more memory now than it used to...

After further investigation, it seems that sometime between Yosys 0.7 (Nov 2016) and master today there was a performance regression that causes it to have a ton of trouble with the ICache. In this PR, I've reverted to Yosys 0.7 and added a patch to fix issue with the ABC repo moving. I'm going to try to bisect to figure out when the regression was added to Yosys so I can let Clifford know, but for now this workaround will prevent us from being blocked by that issue.


Bulk load crashes influxDB

NOTE: My understanding is that the 500 issue is a known issue in 0.9.2, but I'm not sure if the crashing issue is, so I'm putting this in the system just to make sure it's known.
I was doing a bulk load into influxDB at Yahoo, and it crashed.
Here are the specifics:
Running on an openstack VM with
two CPU allocated,
4GB RAM,
107GB Virtual Disk,
RHEL 6.6 (64 Bit) - 2.6.32-431.23.3
I notice a few bad behaviors:
First, the server would return 500 responses until it flushed points, and then it would go back to 204 responses.
I've ruled out the disk being full - it still has plenty of space, and the size of the database is currently 4.9 GB.
I was feeding it approximately 100M datapoints just as fast as it could consume them. I was feeding them via the HTTP interface, in batches of 1000-1100 datapoints per post.
The test started at 7:08 GMT and ended at 10:39 GMT, and in that time there were 56898 posts, of which 56607 were successful, 40 returned status code 400, and 251 returned status code 500. It's also interesting to note that the first status code 500 occurred at 08:24 GMT, over an hour into the test. If it helps, here's the list of times for 500 responses. They definitely seemed to be more frequent further into the test.
<snip> (they are available in https://github.com/influxdb/influxdb.com/issues/222 if needed)
Please let me know if there's any other information you need to help troubleshoot this. I'll leave everything as it was the moment it crashed in case you need me to do any diagnostics.

@ianflint Were you running any queries when the db crashed? Is there a panic in the logs? Please include the log statements from right before the process died.
What happens when you relaunch the process?

I was not running any queries (I was thankfully asleep since it was 3 AM :))
I didn't see any kind of panic in /var/log/influxdb/influxd.log - everything just stopped.
  Here are the last 20 flushes.  I'm not sure if it's interesting that the flushes are of such different sizes.
[shard] 2015/08/13 10:31:39 flush 8810 points in 1.248s
[shard] 2015/08/13 10:31:42 flush 6416 points in 0.941s
[shard] 2015/08/13 10:31:45 flush 7313 points in 0.843s
[shard] 2015/08/13 10:31:47 flush 8993 points in 0.617s
[shard] 2015/08/13 10:34:47 flush 90116 points in 29.124s
[shard] 2015/08/13 10:35:27 flush 87611 points in 38.036s
[shard] 2015/08/13 10:35:57 flush 88769 points in 27.858s
[shard] 2015/08/13 10:36:31 flush 86382 points in 31.309s
[shard] 2015/08/13 10:36:53 flush 84889 points in 20.167s
[shard] 2015/08/13 10:37:22 flush 85194 points in 26.988s
[shard] 2015/08/13 10:37:50 flush 89898 points in 25.217s
[shard] 2015/08/13 10:38:25 flush 88700 points in 33.253s
[shard] 2015/08/13 10:38:29 flush 10006 points in 1.926s
[shard] 2015/08/13 10:38:33 flush 11658 points in 1.455s
[shard] 2015/08/13 10:38:36 flush 9093 points in 0.958s
[shard] 2015/08/13 10:38:39 flush 9642 points in 1.279s
[shard] 2015/08/13 10:38:42 flush 10013 points in 1.027s
[shard] 2015/08/13 10:38:46 flush 8639 points in 1.789s
[shard] 2015/08/13 10:38:49 flush 9469 points in 0.935s
[shard] 2015/08/13 10:38:51 flush 9366 points in 0.548s
Also, FWIW the data cardinality for the data I was trying to insert is 1.7M.  Since it got a little more than halfway through, I suspect the actual key cardinality in the database is around 1M.
Now the test - to restart the server.  And ...
Starting the process influxd [ OK ]
influxd process failed to start [ FAILED ]
Here's what showed up in influxd.log:
[metastore] 2015/08/13 19:14:35 [INFO] raft: Node at <IP_ADDRESS>:8088 [Follower] entering Follower state
[metastore] 2015/08/13 19:14:35 read local node id: 1
[metastore] 2015/08/13 19:14:36 [WARN] raft: Heartbeat timeout reached, starting election
[metastore] 2015/08/13 19:14:36 [INFO] raft: Node at <IP_ADDRESS>:8088 [Candidate] entering Candidate state
[metastore] 2015/08/13 19:14:36 [DEBUG] raft: Votes needed: 1
[metastore] 2015/08/13 19:14:36 [DEBUG] raft: Vote granted. Tally: 1
[metastore] 2015/08/13 19:14:36 [INFO] raft: Election won. Tally: 1
[metastore] 2015/08/13 19:14:36 [INFO] raft: Node at <IP_ADDRESS>:8088 [Leader] entering Leader state
[metastore] 2015/08/13 19:14:37 [INFO] raft: Disabling EnableSingleNode (bootstrap)
[metastore] 2015/08/13 19:14:37 [DEBUG] raft: Node <IP_ADDRESS>:8088 updated peer set (2): [<IP_ADDRESS>:8088]
[metastore] 2015/08/13 19:14:37 [DEBUG] raft: Node <IP_ADDRESS>:8088 updated peer set (2): [<IP_ADDRESS>:8088]

It looks like influx started, but got wedged - I couldn't connect to it with /opt/influxdb/influx.  I increased the heartbeat timeout to 10s and bounced it, but it still came up wedged.  Any other ideas?

Tried 100s heartbeat timeout.  Still nojoy.

Looks like there might be a raft consensus issue, even though it's a cluster of one node. That's beyond my ability to debug. @otoolep or @benbjohnson any thoughts on why this server won't stay up?

Does not look like a raft issue from the log snippet.  The node became the leader which is what it should do.  What is you data size on disk?  It may be taking a long time to initialize the shards so the HTTP listener will not come up until that completes.

Data size on disk is 4.9GB
On the second go-round, the process died as soon as it was launched.  I'll try again.

It's running now, but I still can't connect.  I'll give it a few minutes to get its feet under it and try again.

It's now up and accepting connections.
So the question is why it crashed in the first place.  Any ideas?  Is there anything you'd like me to look at?

If the process crashed or paniced, there should be something in the influxdb log.  If the OS killed the process (perhaps linux OOM killer), there should be something in syslog /var/log/syslog that might provide some hints to the problem.

There it is!
Aug 13 10:39:19 raisedamazed kernel: Out of memory: Kill process 2339 (influxd) score 940 or sacrifice child
Aug 13 10:39:19 raisedamazed kernel: Killed process 2339, UID 498, (influxd) total-vm:9412756kB, anon-rss:3796636kB, file-rss:156kB
So is there a way to limit the memory footprint of the process?  Or do I just need a box with more memory?

There is no way to limit how much memory influxd uses right now.  You will need a box with more RAM.

This might be due to the in memory cache of the write ahead log. The next release (0.9.3) next week will give you some controls to limit how much memory it uses.

Do you know how many unique series you have? A unique series is the measurement + tag set. If it's > 1m you'll definitely need more memory since we keep an in memory inverted index of the measurements and tags

My hope was to push about 100x this much data into influx, so what would be the memory footprint for a database of 500GB?

To answer your other question, cardinality will be about 5 million.

@ianflint the memory footprint is a function of the number of unique series, not the number or size of points stored.
You say the eventual cardinality will be about 5 million, what is it now?

About 1M (based on when it crashed)

Ian
On Thursday, August 13, 2015 3:24 PM, Sean Beckett<EMAIL_ADDRESS>wrote:

@ianflint the memory footprint is a function of the number of unique series, not the number or size of points stored. You say the eventual cardinality will be about 5 million, what is it now?—
Reply to this email directly or view it on GitHub.

The reason it's so high compared to the data volume is that I was only loading the first hour out of 24.

Ian

With 1 MM unique series, 4GB is insufficient RAM. I can't say for sure what would be required, but try bumping to 8GB or better 16GB, if you plan to push in 5 MM unique series. We should be publishing recommended server configurations with the 0.9.4 release.


[Enhancement]cScheduledTask TaskPath Property requires \ at first char for Get/Test.

Reference
ref : https://github.com/guitarrapc/DSCResources/issues/49#issuecomment-178571072
Description
If you set cScheduledTask as below it works fine.
configuration present
{
    Import-DscResource -Modulename GraniResource
    Node $AllNodes.Where{$_.Role -eq "localhost"}.NodeName
    {
        cScheduleTask hoge
        {
            Ensure = "Present"
            Execute = "C:\Temp\test.bat"
            TaskName = "TestRenaud2123"
            TaskPath = "\rimes"
            ScheduledAt = [datetime]"00:00:00", [datetime]"01:00:00"
            RepetitionIntervalTimeSpanString = @(([TimeSpan]"00:05:00").ToString())
            RepetitionDurationTimeSpanString = @(([TimeSpan]::MaxValue).ToString())
            Disable = $false
        }
    }
}

But if you set TaskPath without \ on first char, Test always fail and start Set.
configuration present
{
    Import-DscResource -Modulename GraniResource
    Node $AllNodes.Where{$_.Role -eq "localhost"}.NodeName
    {
        cScheduleTask hoge
        {
            Ensure = "Present"
            Execute = "C:\Temp\test.bat"
            TaskName = "TestRenaud2123"
            TaskPath = "rimes"
            ScheduledAt = [datetime]"00:00:00", [datetime]"01:00:00"
            RepetitionIntervalTimeSpanString = @(([TimeSpan]"00:05:00").ToString())
            RepetitionDurationTimeSpanString = @(([TimeSpan]::MaxValue).ToString())
            Disable = $false
        }
    }
}

Todo

[ ] Test TaskPath first char for \
[ ] Automatically add \ if there isn't exists.

Hi @renaudl,
I have released new version 3.7.6. You can find it at PowerShell Gallery.
Appreciate for your feed back.
Cheers,


Arguments not passed to functions

In data_loaders.py, line 72, an instance of BaseInferenceDataset is created. BaseInferenceDataset is defined in base_dataset.py. It has the following arguments:
rasterized_shapefiles_path
image_path
stride
bands
model_input_size
district
num_classes
transformation

But when class BaseInferenceDataset is called on line 72 of data_loaders.py, the stride argument is not passed, causing the program to fail. Not sure what value of stride should be passed, but this is clearly an issue that has to be corrected. I've pasted a screenshot from PyCharm showing this error.

A very similar typo is present later on in the same data_loaders.py file. Line 52 creates an instance of BaseTrainDataset, which is also defined in base_dataset.py. It has the following arguments:
data_list
data_map_path
stride
model_input_size
bands
num_classes
one_hot
mode='train'
transforms=None

But when class BaseTrainDataset is called in data_loaders.py, the mode=train argument is not passed (should be mentioned on line 54), which will also cause the program to fail. But on line 59, mode=test is clearly specified under the else condition. This of course means that the missing mode=train argument is just a typo. Should be quite an easy fix. .

@srinathjayaraman The original author, Annus has assigned model_input_size to stride. So, in data_loader/data_loader.py, assign stride=model_input_size before bands and it should work fine.

So the typo is in a different place then? Line 75 of data_loader/data_loaders.py ?

@srinathjayaraman The original author, Annus has assigned model_input_size to stride.

Where did you notice this?

@srinathjayaraman In his repo! :P Old code is his code.


checking if useoidc env var is set

To be able to remove hard-coded use_oidc = {true, false} config from provider section, provider should be able to determine if a specific environment variable is set.
Before;
provider "powerplatform" {
  use_oidc = true
}

After (with POWER_PLATFORM_USE_OIDC environment variable is set);
provider "powerplatform" {
}

closes #329

Why does the environment config trump the provider config? This is more of a "food for thought" question, as I've also added variable handling that uses this priority order, so not worth changing, but I wonder if we've gotten it backwards throughout the provider. I'm probably just not thinking of an obvious reason to do things in that priority order. Anywho, LGTM.

it's more like, the options that you can use to configure the plan/apply in the way you like.
so, instead of having how you authenticate hard-coded, you might want to configure it in the pipeline, based on the pipeline parameters, etc.
quick note; this change doesn't give priority to environment config, we still check if the config exists in the provider section, if yes, we use it, if no, we check the environment variables.

Why does the environment config trump the provider config? This is more of a "food for thought" question, as I've also added variable handling that uses this priority order, so not worth changing, but I wonder if we've gotten it backwards throughout the provider. I'm probably just not thinking of an obvious reason to do things in that priority order. Anywho, LGTM.

it's more like, the options that you can use to configure the plan/apply in the way you like.
so, instead of having how you authenticate hard-coded, you might want to configure it in the pipeline, based on the pipeline parameters, etc.
quick note; this change doesn't give priority to environment config, we still check if the config exists in the provider section, if yes, we use it, if no, we check the environment variables.

Ah, yep, I stared at it too long and lost the plot: we check if the config value is blank and only then would we use the environment variable, that makes more sense to me. I do basically the same thing with envOidcRequestUrl and envOidcRequestToken . Thanks for following up.

LGTM.


Is there a way to retrieve the stack trace of an exception when testing with the CliRunner?

Hi,
I'm writing test for some click commands I have in our application and I'm missing the ability to obtain the stack trace of the exception to locate where the errors that break the test are happening (something like this).
Is there a way to do this?
Thanks.

Closing due to inactivity.


UKS object cannot be initialized

Hi,
The program cannot do "mf = dft.UKS(mol)" - it complains that 3 arguments are given instead of 2 to uks.UKS. I noticed that uks.UKS(mol, *args) was replaced by uks.UKS(mol, xc) in dft/init.py in the newer pyscf version. Changing it back fixes the issue.
Alex

I can't reproduce this in v1.7.0.  Can you provide a minimal script that
fails?  UKS in __init__.py automatically sets the xc kwarg if it is
not specified, which is then passed to uks.UKS(mol, xc)
On Tue, Feb 4, 2020 at 5:51 PM alexmir18<EMAIL_ADDRESS>wrote:

Hi,
The program cannot do "mf = dft.UKS(mol)" - it complains that 3 arguments
are given instead of 2 to uks.UKS. I noticed that uks.UKS(mol, *args) was
replaced by uks.UKS(mol, xc) in dft/init.py in the newer pyscf version.
Changing it back fixes the issue.
Alex
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/pyscf/pyscf/issues/513?email_source=notifications&email_token=ADGAJC4PQONLHC3IMCOINOLRBHWP5A5CNFSM4KP7PGZ2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4ILBKWRQ,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADGAJC35UH4G2TX4FEJWYILRBHWP5ANCNFSM4KP7PGZQ
.

mol = gto.M(atom='H 0 0 0', spin=1)
mf = dft.UKS(mol)
It turns out the issue is due to two versions of pyscf installed on the machine, so that the newer pyscf module(module "pyscf_17") keeps using older pyscf files (module "pyscf"), since "import pyscf" is hard-coded in .py files. Could you suggest the best way to keep two pyscf versions? I added some routines to the previous version, so I would like to keep it for back-compatibility.

You can set PYTHON_PATH to the top directory of the pyscf you need.

If you're going to be working with multiple versions of any Python package, PySCF included, I would strongly recommend using virtual environments to keep your package separate and safe.
I would suggest using conda or virtualenv. From a virtual environment you can pip/conda install a stable version of PySCF and they will be isolated within this environment, i.e. won't get mixed up between different versions. You can even build PySCF from source and then use python -m pip install -e .  inside the main PySCF directory to install that version to your currently activated environment.
In general, editing the $PYTHONPATH env variable is a viable option, but as you've seen it requires some care, whereas virtual environments are safeguarded against these kinds of problems by design.

Thank you for the detailed response!


Convert minimum-wage-calculator-employers to use ERB templates for questions

Looks good to me.

I've rebased on master and force pushed in preparation for merging.


Should not be able to swipe and reveal the delete option in Settings > Select Active Networks for built-in chains or enabled custom chains #3334

Fixes #3334

On mobile now. But that looks like many lines of changes?

it removes ability to  swipe cells 'delete action' and it updates PromptViewController with ModalViewController, for more aligned dismissal  animation and reducing code lines.

@hboon check if its still reproducing for u.
i am able to add new networks, and remove custom networks.