Update general UG formatting problems (don't merge yet)

Resolves #318
Do review and approve, but don't merge for now.

Codecov Report
Base: 69.93% // Head: 69.93% // No change to project coverage :thumbsup:

Coverage data is based on head (00205c9) compared to base (1b6fa63).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #317   +/-   ##
=========================================
  Coverage     69.93%   69.93%
  Complexity      717      717
=========================================
  Files           106      106
  Lines          2428     2428
  Branches        322      322
=========================================
  Hits           1698     1698
  Misses          609      609
  Partials        121      121

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Autodetect "enumerate" functions

Followup from #146, posting the issue as a reminder for myself :)
We've currently got a hardcoded list but should instead automatically decide whether to generate an *Alloc() wrapper based on the parameter's "length" attribute and possibly other factors such as an "incomplete" return code.
I won't get to this right away but hopefully in the next few weeks or so.

@Snektron Hey, sorry for the delay on this! I haven't started on the implementation but did finally look into how these functions can be classified.
Seems like the most reliable indicators are that (a) the last parameter is an optional pointer, and (b) the previous parameter is tagged as its associated length. That rule seems to correctly classify everything, aside from false positives on some vkCmd*() functions which can be filtered out by name (not a hardcoded list, just reject any name with that prefix). There are a few additional checks we can add for redundancy, e.g. the aforementioned "incomplete" return code.
Full list:

vkEnumerateDeviceExtensionProperties
vkEnumerateDeviceLayerProperties
vkEnumerateInstanceExtensionProperties
vkEnumerateInstanceLayerProperties
vkEnumeratePhysicalDeviceGroups
vkEnumeratePhysicalDevices
vkGetCudaModuleCacheNV
vkGetDeviceImageSparseMemoryRequirements
vkGetDisplayModeProperties2KHR
vkGetDisplayModePropertiesKHR
vkGetDisplayPlaneSupportedDisplaysKHR
vkGetEncodedVideoSessionParametersKHR
vkGetFaultData
vkGetFramebufferTilePropertiesQCOM
vkGetImageSparseMemoryRequirements
vkGetImageSparseMemoryRequirements2
vkGetPastPresentationTimingGOOGLE
vkGetPhysicalDeviceCalibrateableTimeDomainsKHR
vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR
vkGetPhysicalDeviceCooperativeMatrixPropertiesNV
vkGetPhysicalDeviceDisplayPlaneProperties2KHR
vkGetPhysicalDeviceDisplayPlanePropertiesKHR
vkGetPhysicalDeviceDisplayProperties2KHR
vkGetPhysicalDeviceDisplayPropertiesKHR
vkGetPhysicalDeviceFragmentShadingRatesKHR
vkGetPhysicalDeviceOpticalFlowImageFormatsNV
vkGetPhysicalDevicePresentRectanglesKHR
vkGetPhysicalDeviceQueueFamilyProperties
vkGetPhysicalDeviceQueueFamilyProperties2
vkGetPhysicalDeviceRefreshableObjectTypesKHR
vkGetPhysicalDeviceSparseImageFormatProperties
vkGetPhysicalDeviceSparseImageFormatProperties2
vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV
vkGetPhysicalDeviceSurfaceFormats2KHR
vkGetPhysicalDeviceSurfaceFormatsKHR
vkGetPhysicalDeviceSurfacePresentModes2EXT
vkGetPhysicalDeviceSurfacePresentModesKHR
vkGetPhysicalDeviceToolProperties
vkGetPhysicalDeviceVideoFormatPropertiesKHR
vkGetPipelineCacheData
vkGetPipelineExecutableInternalRepresentationsKHR
vkGetPipelineExecutablePropertiesKHR
vkGetPipelineExecutableStatisticsKHR
vkGetQueueCheckpointData2NV
vkGetQueueCheckpointDataNV
vkGetShaderBinaryDataEXT
vkGetShaderInfoAMD
vkGetSwapchainImagesKHR
vkGetValidationCacheDataEXT
vkGetVideoSessionMemoryRequirementsKHR

So yeah, seems real doable. I should have a PR for you soon, hopefully this weekend at the latest.


Call activator on off-heap container and remove entris from all stores

https://issues.jboss.org/browse/ISPN-8442
https://issues.jboss.org/browse/ISPN-8443

Everything else looks good though :+1:

Added also into put method.

Changes look good to me, just want to wait on CI but then I will integrate. Thanks @vjuranek !

Needs rebase

rebased

Restarted build again, maybe this will get a finished build finally.

I would recommend rebasing to get fixes from master to better run CI.

rebased

test failures are unrealted

Integrated into 9.1.x and master, thanks @vjuranek !


v4 TRC 'para' values off by a bit?

Apologies, me again.
sRGB-v4.icc contains for the RTCs:
70617261 00000000 00030000 00026669 0000F2A7 00000D59 000013D0 00000A5B
That's 4 byte tag ("para"), 4 bytes reserved (0), 2 byte curve type (3), another 2 bytes reserved (0), and then 5 s15Fixed16Number at 4 bytes each. The 5 numbers encode g, a, b, c, d in the equation
Y = (a*X + b)**g       if X >= d
  =  c*X               else

s15Fixed16Number per ICC spec:
"4.6 s15Fixed16Number
An s15Fixed16Number is a fixed signed 4-byte (32-bit) quantity which has 16 fractional bits as shown in Table 4."
Table 4 for example contains "1.0 encoded as 0001_0000h".
The conversion from an int32_t encoding such a number to a floating point value an be done with:
double f = i / (double)0x1'0000;
int i = round(f * 0x1_0000);

The sRGB TRC uses g = 2.4 per https://en.wikipedia.org/wiki/SRGB#From_sRGB_to_CIE_XYZ
>>> hex(round(2.4 * 0x1_0000))
'0x26666'

Rounding vs truncating doesn't make a difference:
>>> hex(int(2.4 * 0x1_0000))
'0x26666'

The file instead contains 00026669.
>>> 0x00026669 / 0x1_0000
2.4000396728515625

Which one is closer to the true value 2.4?
>>> (0x00026669 / 0x1_0000) - 2.4
3.967285156258882e-05
>>> (0x00026666 / 0x1_0000) - 2.4
-6.103515624911182e-06

Am I missing something?
(I haven't looked at the other 4 parameters in detail yet, but they're also a bit different than what I get when I convert {2.4, 1/1.055, 0.055/1.055, 1/12.92, 0.04045} to s15Fixed16Numbers.)

There was a previous discussion on that in https://github.com/saucecontrol/Compact-ICC-Profiles/issues/6
The short answer is that naive rounding of all parameters to s15Fixed16 results in both the a and g values rounding down, which gives a less accurate match for the true sRGB curve than the adjusted values used in my profile.  The adjusted values halve the total error.


3rd - Lollipop + Unit Tests

Reviewers can check out relevant changes by clicking on the last commit.


Fix eslint and prettier setup

Our linting/autoformatting is quite outdated. I had to follow this guide to get things working in HoagMobile
https://dev.to/robertcoopercode/using-eslint-and-prettier-in-a-typescript-project-53jb

Closed via https://github.com/echobind/react-native-template/commit/5352fab3b6c084685306c498718e8a330930e9fa and https://github.com/echobind/react-native-template/commit/393b194a1451094bccd77b45553d7895d4da0899


ImportError: cannot import name 'neuron_xla_compile' from 'libneuronxla'

Hi team, for all the models, I am getting the below error while importing transformers_neuronx.{MODEL_NAME}.model
>>> from transformers_neuronx.gptj.model import GPTJForSampling
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/ssm-user/aws_neuron_venv_pytorch/lib64/python3.7/site-packages/transformers_neuronx/gptj/model.py", line 16, in <module>
    from transformers_neuronx import compiler
  File "/home/ssm-user/aws_neuron_venv_pytorch/lib64/python3.7/site-packages/transformers_neuronx/compiler.py", line 31, in <module>
    from libneuronxla import neuron_xla_compile
ImportError: cannot import name 'neuron_xla_compile' from 'libneuronxla' (/home/ssm-user/aws_neuron_venv_pytorch/lib64/python3.7/site-packages/libneuronxla/__init__.py)

The transformers_neuronx version is: 0.6.x
The torch_neuronx version is: <IP_ADDRESS>.9.0
OS Used: Amazon Linux 2
Kernel: kernel-devel-5.10.167-147.601
Please help me to resolve this.

You need to update to torch-neuronx-<IP_ADDRESS>.10.0

Thanks @yogendra-yatnalkar. @dacorvo is correct. For the latest transformers-neuronx 0.6 in release 2.13,  please use release 2.13 torch-neuronx version <IP_ADDRESS>.10.1. As mentioned in transformers-neuronx release notes, in transformers-neuronx 0.6 we added the Neuron Persistent Cache for compilation to automatically load pre-compiled model artifacts. We will update documentation to make it clearer.

Hi @dacorvo thanks, this helped a lot. @jeffhataws understood, thanks for the explanation, adding this in documentation will surely help.

For future readers facing this, just adding some extra information:

I was using the Pytorch 1.11 (AL2) DLAMI earlier, but in that, I was never able to update the torch-neuronx to the required version.
When I switched to Pytorch 1.13 (AL2) DLAMI, I was easily able to update the drivers and things worked out of box.


openscap: ship with static cve for network-isolated clusters

Proposed Fix for #18
Added downloading of CVE files while building the image (in Dockerfile).
OpenSCAP will now try to access them if it couldn't download ones from the normal channel.
cc @simon3z @mpreisler

Embedding the CVE is not a solution for network-isolated clusters


backend/drm: reset frame_pending on last commit

Since commit 85757665e6e1 ("backend/drm: Check if output is enabled
before sending frame event"), we don't send a frame event if the output
has been disabled in the meantime. This however introduces a race: if we
schedule the flip and disable and commit the output before the flip
happens output.frame_pending will not be reset to false.
We than always fail to enable the output subsequently:
  00:07:13.276 [INFO] [sway/commands.c:257] Handling command 'output DP-2 enable'
  00:07:13.276 [DEBUG] [sway/commands.c:428] Subcommand: enable
  00:07:13.276 [DEBUG] [sway/config/output.c:204] Merging on top of existing output config
  00:07:13.276 [DEBUG] [sway/config/output.c:227] Config stored for output DP-2 (enabled: 1<EMAIL_ADDRESS>position 0,0 scale -1.000000 subpixel unknown transform -1) (bg /home/phoenix/Pictures/Wallpapers/mine/oper.jpg fill) (dpms 1) (max render time: -1)
  00:07:13.276 [DEBUG] [sway/config/output.c:351] Turning on output DP-2
  00:07:13.276 [DEBUG] [sway/config/output.c:360] Set preferred mode
  00:07:13.276 [DEBUG] [wlr] [backend/drm/drm.c:465] connector DP-2: Can't enable an output without a buffer
  00:07:13.276 [DEBUG] [wlr] [types/wlr_output.c:689] Attaching empty buffer to output for modeset
  00:07:13.277 [DEBUG] [sway/config/output.c:329] Output DPI: 162.560000x161.364706
  00:07:13.277 [DEBUG] [sway/config/output.c:400] Auto-detected output scale: 1.000000
  00:07:13.277 [DEBUG] [sway/config/output.c:430] Committing output DP-2
  00:07:13.277 [DEBUG] [wlr] [types/wlr_output.c:729] Tried to commit a buffer while a frame is pending

since the basic_output_test will always fail.
Reset frame_pending to false even if the output has been disabled in the
meantime.
Fixes https://github.com/swaywm/wlroots/issues/3109

I think it makes sense. AFAICS wayland and X11 also call wlr_output_send_frame in a callback which may always be called. Therefore we could move the output enabled check to wlr_output_send_frame.


Upgrade wasmtime-runtime-layer to v24

This is the regular version bump for wasmtime_runtime_layer to v24
This PR includes a small required change to the wasm_runtime_layer crate, which results in a minor version bump to 0.4.2: the Value (and backend::Value) types get a new ty(&self) -> ValueType method. This method is required to use wasmtime v24 without introducing an unnecessary panic path.

Thanks!


support unittest.expectedFailure in plain nosetests

Using expectedFailure is much better than raising SkipTest because the latter will prevent the code from being executed which will lead to bit-rot. However nosetests (v1) doesn't support that so maybe I should add some support in PythonicTestCase (e.g. custom decorator).
The decorator should

translate a failure to SkipTest if the test runner does not support expected failures.
emit a message in case an "expectedFailure" test passes so the dev notices and can remove the decorator.

PythonicTestcase 1.3.0 supports SkipTest and @expect_failure.

implemented in 9dd3d58160daf6368af0363ac172b3a126c1bafd


Sonar-Gerrit integration in Jenkins

Hi,
There is a Jenkins freestyle job that is triggered by some Gerrit events.In response to triggers, it downloads the changes and runs a Sonarqube Analysis. The Sonarqube comments detailing the results are to be posted on Gerrit after the analysis is complete.This is the expected behaviour.
As of now, In Jenkins, the Sonarqube execution is success. But the build is failed mentioning the error
"
*ERROR: Build step failed with exception
java.lang.IllegalArgumentException: Gerrit change number is empty*

Could anyone please suggest on this?

Did you pass this property?
Key	Recommended value template	Example
sonar.pullrequest.key	${GERRIT_CHANGE_NUMBER}-${GERRIT_PATCHSET_NUMBER}	250-1


[DOCS] Add mesheryctl commands for service mesh apps management

Signed-off-by: afzal442<EMAIL_ADDRESS>Description
Added mesheryctl commands for service mesh apps management
This PR fixes #3829
Notes for Reviewers
Signed commits

[x] Yes, I signed my commits.

🚀 Preview for commit c14fed08699c030f0ec0d17891603d80daaaa22b at: https://61138317693e9e93a0ce4d9c--meshery-docs-preview.netlify.app

https://61138317693e9e93a0ce4d9c--meshery-docs-preview.netlify.app/reference/mesheryctl

🚀 Preview for commit 62e8e93b381177581e3662fb9f22c80cc7ac2028 at: https://611ab103cea2b20a48bb5bc5--meshery-docs-preview.netlify.app

🚀 Preview for commit b5c621c9b8fa61405dfe8818d2070ae6b02b21cb at: https://611b5e8cd6e8e5e1990113da--meshery-docs-preview.netlify.app

@afzal442 Could you mark this PR as "ready to review" if it is?

🚀 Preview for commit 291baa05fcf47e6619c1c92f39137d0cb6e187ef at: https://611dbe8f2322ce6071d675eb--meshery-docs-preview.netlify.app

@navendu-pottekkat you can review it now. sorry for any inconvenience caused to you.

🚀 Preview for commit 8150b4d05e0ac4a81d626438432f15ddebd97588 at: https://611dc0da66f2775babe88685--meshery-docs-preview.netlify.app

@navendu-pottekkat do u find everything else fine? let me know if it is so.

🚀 Preview for commit fe2ef6f2abf8fe75b000047837d5a9da936a4625 at: https://6124ad18a1b2158e5e2a7e99--meshery-docs-preview.netlify.app

hi @navendu-pottekkat , could you take a look again here plz?
https://6124ad18a1b2158e5e2a7e99--meshery-docs-preview.netlify.app/reference/mesheryctl#service-mesh-apps-management

Thanks @navendu-pottekkat. Apologise! I haven't made everything run on my system. Let's add this to our meeting note prior to its start. mesheryctl app apply [flags] is not found here. I haven't added that.

Please run these commands on your machine, figure out....

I'm already dealt with this, but then I thought I should make changes ATS above.
Look what I got from other commands picture in examples sections e.g. as below.
mesheryctl perf apply [profile-name] --flags
mesheryctl perf list [profile-id]
placeholder value is taken here.

I meant to say mesheryctl app onboard not apply sorry for the confusion.
The other commands needs to be changed too. Most of this were added in a single PR so, it was either get some documentation or no documentation.
If you could, please open up issues and add proper examples to other commands as well.

hmm that sounds good. awesome! thanks, @navendu-pottekkat. I'll open a follow-up issue soon. let's tidy up these things.

@afzal442 no need to assign me... I'll look on it simultaneously on this

🚀 Preview for commit e01a50b6b206105a0aef41bdde4eb889be70f611 at: https://614356e458950c17ab4af681--meshery-docs-preview.netlify.app

@alphaX86 did you do take a look into this in your PR?

@afzal442 you do know that the YML is refactored right? So, why you've included files again? Try to make them under cmds.yml

Oh before that, fetch the upstream branch and update...
@warunicorn19 I already saw this and I thought mine should be done earlier and focusing on this. But that example issue which @navendu-pottekkat recommended (like real time examples instead of plain syntaxes) gave a halt and I didn't think of this till now coz we are in dire need for mesheryctl testers to accomplish this

@alphaX86 yup, sounds good. @afzal442 could you pull the latest and make the changes accordingly then we'll be good to go.

ahem! hey pals! I already updated my branch with the latest one. 🔹 I'm looking into it! 😄

@navendu-pottekkat recommended (like real time examples instead of plain syntaxes in examples field) gave a halt and I didn't think of this till now coz we are in dire need for mesheryctl testers to accomplish this

hmm, I see. Could have been suggested earlier. BTW @sayantan1413 and I made it though. 🏷

@afzal442 👀 you made it for every command and subcommand?

hmm, I see. Could have been suggested earlier. BTW @sayantan1413 and I made it though. 🏷
I already stated this one to you but IG I didn't mean it right, my bad 😂 anyway good to hear 👍


WebSocketsProcessor_RFC6544 throwing "NotImplemented" exception

I'm sending binary data to the server and one request in particular seems to keep tripping this. In ProcessFrame, there is this code:
                else
                {
                    if(pendingCount == 0)
                    {
                        Process(context, connection, frame.Payload, frame.OpCode);
                    } else
                    {
                        throw new NotImplementedException();
                    }
                }

I've been trying to strip down an example to reproduce it, but not having much luck. I grabbed the raw request as it was logged by NetGain, then sent it through the TcpClient, but that works just fine. The big difference is the client side is using WebSocket-Sharp. I've pulled in the source code and can see it happen, but since I'm not really that familiar with the protocol it's hard for me to understand what/why it's happening. If it matters, the message is 1035 bytes long. What's interesting is that it says 1036 bytes are available?
But what I see in the Output Window is this:
[server] Receive, Success: 1035 bytes
Received: (1035 bytes are here)
[server]	processing with 1036 bytes available
Parsed header from: 02-FE-03-F8-78-E2-56-B7
[server]	processed 1024 bytes; 12 remaining
[server]	processing with 12 bytes available

BTW - Is there an easy way to actually view the activity when the client isn't a browser? I could do this with Wireshark but then I'd have to move the server to another machine/VM for testing. I'd rather not if there was some nice way of doing it.

This seems to be related to what WebSocket-Sharp calls the "FragmentLength". It looks like it was splitting anything larger than 1016 bytes into multiple fragments, which NetGain doesn't like. Bumping this up so the entire message could be passed without splitting seems to fix the problem.

This issue is killing me. I'm unable to send any meaningful amount of information from client to server (even in 32kb chunks). Sending one big payload and sending many little payloads seems to have the same issue.
Is there any workaround for this?


feat(*): add configurable upper bound to envoy connections

Description:
Adds and checks configurable limit to envoy connections and resolves #2332
Signed-off-by: Shalier Xia<EMAIL_ADDRESS>
Affected area:

New Functionality      [ X]
Documentation          [ ]
Install                [ ]
Control Plane          [ ]
CLI Tool               [ ]
Certificate Management [ ]
Networking             [ ]
Metrics                [ ]
SMI Policy             [ ]
Security               [ ]
Tests                  [ ]
CI System              [ ]
Demo                   [ ]
Performance            [ ]
Other                  [ ]

Please answer the following questions with yes/no.

Does this change contain code from or inspired by another project? If so, did you notify the maintainers and provide attribution?
No

Hey @draychev, if you are merging braches from main into the PR, please do not use a merge commit, instead squash and merge. We have the autorebase label for this purpose, that is intended to avoid messing the tree with merge commits in PRs.


[BUG] When I run the script to install database i do not get the Kibana/Elasticsearch Credentials

Describe the issue
A clear and concise description of what the issue is.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Windows Event Collector (please complete the following information):

OS: [e.g. Server 2016 v1607]
WEC Config [e.g. V0.1]
Winlogbeat Config [e.g. V0.1]
Winlogbeat.exe version [e.g. winlogbeat version 6.4.2 (386)]
sysmon config [e.g. File hash or Version]
sysmon executable [e.g. V8.1]

Linux Server (please complete the following information):

Docker: [e.g. Docker version 18.09.3]
Docker compose stack file version: [e.g. version 0.1]
Linux: [e.g. PRETTY_NAME="Ubuntu 18.04.2 LTS"]
Logstash Version [e.g. #LME logstash config V0.1]

Additional context
Add any other context about the problem here.

Hey @dalkangh, would you be able to include some additional information on what you observed during the install apart from a lack of credentials? I'm struggling to reproduce this error so any more information would be helpful, in particular whether any errors occurred during the install that you could share, and whether the docker stack was successfully running at the end just without outputting credentials (you can work that out with the following command:
sudo docker stack ps lme

I'd also be curious if simply uninstalling and re-installing LME stack fixes this, or whether you are missing credentials every time you run the installer?
sudo /opt/lme/Chapter\ 3\ Files/deploy.sh uninstall
sudo /opt/lme/Chapter\ 3\ Files/deploy.sh install

Thanks

Hi
Reinstalling I noticed this error:
LME Requires 8GB of RAM Available for use - exiting
Didn't notice it first time round.
I have increased RAM on the VM and script has worked.
Thanks for your help
Dal
From: adam-ncc @.>
Sent: 08 March 2022 17:48
To: ukncsc/lme @.>
Cc: Daljeet Kangh @.>; Mention @.>
Subject: Re: [ukncsc/lme] [BUG] When I run the script to install database i do not get the Kibana/Elasticsearch Credentials (Issue #130)
CAUTION: EXTERNAL EMAIL
E-Mail originated outside of Sandwell Academy.
Hey @dalkanghhttps://github.com/dalkangh, would you be able to include some additional information on what you observed during the install apart from a lack of credentials? I'm struggling to reproduce this error so any more information would be helpful, in particular whether any errors occurred during the install that you could share, and whether the docker stack was successfully running at the end just without outputting credentials (you can work that out with the following command:
sudo docker stack ps lme
I'd also be curious if simply uninstalling and re-installing LME stack fixes this, or whether you are missing credentials every time you run the installer?
sudo /opt/lme/Chapter\ 3\ Files/deploy.sh uninstall
sudo /opt/lme/Chapter\ 3\ Files/deploy.sh install
Thanks

Reply to this email directly, view it on GitHubhttps://github.com/ukncsc/lme/issues/130#issuecomment-1062041463, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXUT7CVXH37UIQVEZWLXX4DU66HFBANCNFSM5NWY7EBQ.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID<EMAIL_ADDRESS>The contents of this e-mail are confidential and may be privileged, and are intended only for the use of the person or company named herein. Any views or opinions presented are solely those of the author and do not necessarily represent those of Sandwell Academy. If you are not the intended recipient of this e-mail or a person responsible for delivering it to the intended recipient, you are hereby notified that any distribution, copying or dissemination of the information herein is strictly prohibited.
Sandwell Academy: Sponsored by Thomas Telford Multi Academy Trust. Registered Office: Thomas Telford School Old Park Telford TF3 4NW Registered in England No. 4798185

Glad to hear your issue was resolved, thanks.


Small WSL build fixes

This is a small build fix for the Ubuntu 18/WSL build. It also updates the docs to include the new required python dist utils dependency installation.

LGTM


Add option to double up exposure stepping

Toggle option to have even more granular stepping of exposure. A step between every current step might be perfect. Harsher outdoor light is difficult to dial in.

why did you close this? i was going to add additional exposure steps for the manual mode...

looking good now


Android: index.html file not found.

Hi,
I have been trying to use this generator but I have encountered a problem. If I use gulp watch all is fine but if I try to install the app on my android phone I have the following error: file:///android_assets/www/index.html file not found. How can I fix it?
Thanks

Just an update, I have solved doing cp -r app/* www/. is it the proper way of doing it?
Thanks


Text lost when changing new todo from single line to multi-line

Hi there !
Totally love this new tool to take a fresh start with todotxt files.. That's fantastic work, and so much more "actual" and modern than the other existing ones.. !
I'll report a few things that I've noticed, trying to break them up into individual "bugs".
So here goes the first one : the text lost when changing a new todo from single line to multi-line.
Steps to reproduce the behavior

Create a new Todo item (which you've never saved before), type a few things.
Switch to multi-line.
Multi-line happens but what you've typed is gone :)
(Note : if you are editing a previously created and saved single-line todo, it doesn't happen.)

Expected behavior
Of course the text should not disappear when changing from single to multi line.
Stay tuned for more !
Cheers,
O.

@Oroumov , thanks for reporting bugs and glitches, I'll look into it as soon as I find the time.

Hi @Oroumov. Could you please check if this still happens in https://github.com/ransome1/sleek/releases/tag/v1.1.2-rc.1?

This had been fixed in https://github.com/ransome1/sleek/releases/tag/v1.1.2


Jinghan/Replace FeatureName by FeatureFullName for feature APIs

This PR does:

use FeatureFullName instead of FeatureName in metadata store
refactor feature related APIs (GetFeatureByName, ListFeature, UpdateFeature)

close #810

Ignore integration test, will fix after all refactors done


JavaProxy doesn't work with service -  ERROR Error: com.tns.system.classes.loading.LookedUpClassNotFound: Class "com.nativescript.location.BackgroundService" not found.

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
√ Getting NativeScript components versions information...
√ Component nativescript has 6.7.4 version and is up to date.
√ Component tns-core-modules has 6.5.2 version and is up to date.
√ Component tns-android has 6.7.4 version and is up to date.
× Component tns-ios is not installed.

Plugin(s): -
NativeScript-Angular: 8.20.0
Angular: 8.2

Describe the bug

Declare the service in the Manifest file
      <service android:name="com.nativescript.location.BackgroundService"
               android:exported="false" >
      </service>

Add functionality
@JavaProxy("com.nativescript.location.BackgroundService")
      class BackgroundService extends (<any>android).app.Service {
        constructor() {
          super();
.
.

JavaProxy throws error message about the declared service is missing:
ERROR Error: com.tns.system.classes.loading.LookedUpClassNotFound: Class "com.nativescript.location.BackgroundService" not found.

To Reproduce

Expected behavior
I should be able to extend the service to set the functionality
Sample project

Additional context

try to add importHelpers: false to the compilerOptions from tsconfig.tns.json as pointed in this comment this can be a bug that nobody points out or something missed in the documentation.


Clarifying power needs from RPi

Hi @dhhagan,
Thanks for developing this wonderful library. I need to clarify something from the documentation. It will be of a great help if you could help me with this.
I was reading documentation on "https://py-opc.readthedocs.io/en/latest/". The section "Connecting via GPIO" mentions "The OPC requires at least 250 mA, so powering directly through the RPi is not an option". Please explain me this as I do not have much knowledge of electronics.
Can't RPi provide this current? If not, please give me an idea of how to connect both RPi and OPC-N3 with the same power supply. Can both the device be powered using mobile charging adapter?
Thanks for your time! Waiting for your response...
Originally posted by @yash-dahima in https://github.com/dhhagan/py-opc/issues/75#issuecomment-1727090674

Hi @yash-dahima
Opened a new ticket for this since it's a separate question. The Raspberry Pi cannot provide that much current from GPIO pin, so you will need to use a different power supply that can provide that much current. You can use a single power supply and split the power between the RPi and OPC. It's a bit hard without knowing more about your current setup.


Can I use in express application?

Is it possible to use sockette with express application? Can you provide some little example about that?
Thanks

Sure, but you still need a socket server somewhere. I would recommend ws or uws, which can both be integrated into your Express (or any) server.
I'm working on a Polka demo that use Sockette and uWebSockets. I'll link it here once it's done.

Thanks I will be very useful! :+1:

@lukeed please share link :D
Also it would be nice to expose the WebSocket instance, maybe via a getter, to utilize the extra uws client features.

No link yet, sorry~! Forcing myself to build a product in my free time right now. Then I can continue OSS work 😆
You can already get access to the WebSocket instance. All the event listeners have a an event.target, as per the Event object spec. So, for example, you can do this:
let ws;
let socket = new Sockette('ws://...', {
  oninit(ev) {
    ws = ev.target; // save the WebSocket
    // ...
  }
});

// later on

ws.binaryType = 'arraybuffer';

Just FYI, I have re-implemented https://github.com/jellydn/ws-sockette for  NodeJs.


Process multiple Chatdown files at once

Currently, Chatdown files need to be processed one at a time. To process multiple files, you need to use a folder watcher like Chokidar, or alternative means, such as a PowerShell one-liner and a VSCode task.
The Bot Builder Community team has built out a preview solution on top of Chatdown called chatdown-glob that can be installed globally, and accomplishes this task. It would be nice to eventually fold this into the core Chatdown CLI. An -r or --recursive switch could be used on the command line to identify the action as a recursive one for all files, and then the code from chatdown-glob could be folded in and utilized.
We would be more than will to add in this functionality, and do a PR if desirable.

@tomlm we should look to snap to ludown. I use -l <folder_name> and optionally add -s to recursively include sub-folders as well.

@vishwacsena @tomlm The Bot Builder Community is more than willing to do a PR on this, since we already built the functionality with chatdown-glob. Just give us the nod, and we'll fold it in using the command line switches you referenced from LUDown.

@szul - yes. sounds good. look forward to the PR. Please include unit tests as well. Thanks!

@vishwacsena @tomlm Integrated the code locally. Will write the unit tests before doing a PR. Probably sometime this weekend.


it got blocked, do you know any way to unblock it? the lightspeed filter blocked it for 'mature games'

cbgamesdev.github.io was recently blocked on my school Chromebook because it contained a 'mature game.' Can you fix this by identifying the mature game? The Lightspeed filter automatically blocks/unblocks websites based on their content.

chiboga.github.io is the backup


Consider the way to inform users that the specified gang scheduler isn't supported

Since #1747, we have treated the scheduler-plugins as a default gang-scheduler, and we use the scheduler-plugins if users set anything other than volcano to https://github.com/kubeflow/training-operator/blob/6d6d83dfe7d8c3f4f3938c00c04d8b7410caa205/cmd/training-operator.v1/main.go#LL76C1-L77C105.
So, if the specified gang scheduler isn't supported in the training operator, informing that would be better.
/cc @johnugeorge

/remove-kind discussion
/kind feature

cc: @Syulin7

Do we need to check if the podgroup CRD exists?  Users should ensure that their scheduler can support Volcano podgroup or scheduler-plugins podgroup.

Do we need to check if the podgroup CRD exists? Users should ensure that their scheduler can support Volcano podgroup or scheduler-plugins podgroup.

It sounds good to me. If users set --gang-scheduler-name=volcano, the training operator checks whether there is the podgroup CRD in the cluster; if users set another value to --gang-scheduler-name, the training operator checks the scheduler-plugins CRD in the cluster.
@johnugeorge wdyt?

The key question is, Are we planning to support only volcano and scheduler plugins in the future?  If we are,(due to overhead in management), it sounds good to me. Else, it might be better to make CRD check to be dynamic(like in https://github.com/kubeflow/katib/blob/master/cmd/katib-controller/v1beta1/main.go#L62)

Else, it might be better to make CRD check to be dynamic(like in https://github.com/kubeflow/katib/blob/master/cmd/katib-controller/v1beta1/main.go#L62)

Makes sense.
We probably need to support native PodGroup CRD (kube-controller-manager) once the feature graduates to beta.

@Syulin7 Any thoughts?

Else, it might be better to make CRD check to be dynamic(like in https://github.com/kubeflow/katib/blob/master/cmd/katib-controller/v1beta1/main.go#L62)

Agree, users decide whether or not to check the podgroup CRD themselves?

Probably, we can have podgroups for the volcano and the scheudler-plugins as a default.

@Syulin7 Do you have enough time to work on this?

/assign

@Syulin7 Do you have any progress?

@Syulin7 Do you have any progress?

@tenzen-y  Sorry for late reply(Forgot to check the message.). there is no progress at the moment. I will work on this.

@Syulin7 Do you have any progress?

@tenzen-y Sorry for late reply(Forgot to check the message.). there is no progress at the moment. I will work on this.

Thanks for the response. Feel free to send a ping to me once the PR is ready.

@Syulin7 Do you have any update?
Thanks


How to compute or get fisher_exp.npy

Hello,
I want to reproduce the results of the research paper. But I am having issue computing fisher information matrix for L2-SP Fisher technique. Can you please guide.

Hi,
here are the files, which are computed by the formula \hat{F_{jj}} in the paper.
fisher_imagenet_resnet101: https://drive.google.com/open?id=1QRY61IPC9aQbkX0aaC29pq7h2tXfnimp
fisher_places_resnet152: https://drive.google.com/open?id=1QRY61IPC9aQbkX0aaC29pq7h2tXfnimp
https://drive.google.com/open?id=1Y81D5z16g2MXK7XCN4dFkrB2T1Chl1kb


[improvement]

add descriptions to classes and functions (and as a bonus: in-editor documentation)

Hi there!
Please check out this part of our documentation. All functions and signals in the GDSync singleton have documentation. This also includes the PropertySynchronizer and NodeInstantiator.
Due to a Godot bug, you need to edit those scripts in any way (just add an extra enter) and save them. Once you have done that the descriptions and documentation appear.

Hi there!
Please check out this part of our documentation. All functions and signals in the GDSync singleton have documentation. This also includes the PropertySynchronizer and NodeInstantiator.
Due to a Godot bug, you need to edit those scripts in any way (just add an extra enter) and save them. Once you have done that the descriptions and documentation appear.

Thanks. i tried editing all the scripts but the only one that did the trick was GD-Sync.gd, after resaving that one, I am now able to view docs and see in editor descriptions of classess and properties


TypeError: objectFitPolyfill is not a function

I know this issue was opened already but I am experimenting the same errors, is there a workaround for this?

That's strange. What browser are you using, and are you seeing the same error on the demo page?
If the answer to the above is no, you might be using an outdated version of objectFitPolyfill.

No, the problem was I am using react and SSR. To use it properly you need to use require() or it wont be added to the webpack bundle. Maybe it is worth to put it on the docs so that you people won't open issues like this in the future.
Either way, I cant really get your polyfill working on IE / Edge even following the guides. The video gets centered and occupies the full width of the viewport but as I diminish the window length the height wont occupy the full viewport.
Thank you very much for your time.

Really sorry for the delayed response on this. I'd consider virtual DOM frameworks / SSR support to likely be out of scope for this polyfill. Developers using React, Angular, Vue, etc. essentially need to be familiar enough with the framework and their use case to know what lifecycle hooks to use and when.
It sounds like what's likely happening is that the polyfill is being initialized before anything is actually rendered. You'll need to call objectFitPolyfill() manually after your video and its container DOM is rendered. Hope that makes sense!


Support legacy boolean yes|no|on|off but warn user about incompatibility

After debate within the team, we decided to prefer backward compatibility, warning user about this misuse of yaml, and will plan removal for this legacy syntax in a future release


Users/marco del gamba/issue143

Pull request to fix issue #143

@microsoft-github-policy-service agree


DV 2011 - Dont allow setting a variable with expandable type

To support https://github.com/microsoft/Power-Fx-Dataverse/issues/211.

✅ No public API change.

✅ No public API change.


How to deal with possibility of SegmentGroup absence in the EDI file?

Hello :),
I am currently developing a solution for deserialization of IFCSUM D01B message using EDI.Net. The problem that I am facing has to do with the way that the library is handling SegmentGroups, which I probably just don't understand.
Given this sample D01B IFCSUM message:
UNA:+.? '
UNB+UNOY:3+Sample+Sample+211217:1234'
UNH+1+IFCSUM:D:01B:UN'
BGM+Sample+Sample+Sample'
DTM+Sample:Sample:Sample'
FTX+Sample+++Sample'
CNT+Sample:Sample'
CNT+Sample:Sample'
CNT+Sample:Sample'
CNT+Sample:Sample'
RFF+Sample:Sample'
RFF+Sample:Sample'
RFF+Sample:Sample'
NAD+Sample+Sample::Sample'
NAD+Sample+Sample'
TDT+Sample++Sample+Sample:Sample+Sample:Sample'
DTM+Sample:Sample:Sample'
DTM+Sample:Sample:Sample'
TSR+Sample+Sample'
TSR+Sample+Sample'
TSR+Sample+Sample'
CNI+Sample+Sample'
TPL+Sample'
MEA+Sample++Sample:Sample'
DTM+Sample:Sample:Sample'
DTM+Sample:Sample:Sample'
DTM+Sample:Sample:Sample'
DTM+Sample:Sample:Sample'
TSR+Sample+Sample'
TSR+Sample+Sample'
TSR+Sample+Sample'
TOD+Sample++Sample'
RFF+Sample:Sample'
RFF+Sample:Sample'
RFF+Sample:Sample'
RFF+Sample:Sample'
TDT+Sample++Sample'
NAD+Sample+Sample++Sample:Sample+Sample+Sample++Sample+Sample'
NAD+Sample+Sample++Sample:Sample+Sample+Sample++Sample+Sample'
NAD+Sample+Sample++Sample:Sample+Sample+Sample++Sample+Sample'
RFF+Sample:Sample'
NAD+Sample+Sample++Sample:Sample+Sample+Sample++Sample+Sample'
RFF+Sample:Sample'
NAD+Sample+Sample++Sample:Sample+Sample+Sample++Sample+Sample'
RFF+Sample:Sample'
GID+Sample+Sample:Sample:::Sample'
HAN+Sample:::Sample'
FTX+Sample+++Sample'
MEA+Sample+Sample+Sample:Sample'
MEA+Sample++Sample:Sample'
DIM+Sample+Sample:Sample:Sample:Sample'
RFF+Sample:Sample'
PCI+Sample+Sample'
UNT+52+1'
UNZ+1+1234'

Everything is working fine when I use SequenceEnd in the SegmentGroup attribute, and segment defined as the SequenceEnd acutally exists. Below are a few examples of my implementation of the message as of right now (passing child segments in the SegmentGroup attribute constructor):
public class D01BIFCSUM
{
    #region Interchange Header

    // S001/0001
    [EdiValue(Path = "UNB/0")]
    public string UNB_SyntaxIdentifier { get; set; }

    // S001/0002
    [EdiValue(Path = "UNB/0/1")]
    public string UNB_SyntaxVersionNumber { get; set; }

    // S002/0004
    [EdiValue(Path = "UNB/1")]
    public string UNB_InterchangeSenderIdentification { get; set; }

    // S003/0010
    [EdiValue(Path = "UNB/2")]
    public string UNB_InterchangeRecipient { get; set; }

    // S004/0017
    [EdiValue(Path = "UNB/3/0")]
    public string UNB_Date { get; set; }

    // S004/0019
    [EdiValue(Path = "UNB/3/1")]
    public string UNB_Time { get; set; }

    // 050/0020
    [EdiValue(Path = "UNB/4")]
    public string UNB_InterchangeControlReference { get; set; }

    #endregion Interchange Header

    // D01B IFCSUM
    public D01B_IFCSUM_MESSAGE Message { get; set; }

    #region Interchange Trailer

    // 0036
    [EdiValue(Path = "UNZ/0")]
    public int UNZ_InterchageControlCount { get; set; }

    // 0020
    [EdiValue(Path = "UNZ/1")]
    public string UNZ_InterchangeControlReference { get; set; }

    #endregion Interchange Trailer
}

[EdiMessage]
public class D01B_IFCSUM_MESSAGE
{
    #region Message Header Info

    // 010/0062
    [EdiValue(Path = "UNH/0")]
    public string UNH_MessageReferenceNumber { get; set; }

    // S009/0065
    [EdiValue(Path = "UNH/1/0")]
    public string UNH_MessageType { get; set; }

    // S009/0052
    [EdiValue(Path = "UNH/1/1")]
    public string UNH_MessageVersionNumber { get; set; }

    // S009/0054
    [EdiValue(Path = "UNH/1/2")]
    public string UNH_MessageReleaseNumber { get; set; }

    // S009/0051
    [EdiValue(Path = "UNH/1/3")]
    public string UNH_ControllingAgency { get; set; }

    #endregion Message Header Info

    // x1
    public D01B_BGM_SEGMENT BGM { get; set; }

    // x0-9
    public D01B_DTM_SEGMENT[] DTM { get; set; }

    // x0-99
    public D01B_MOA_SEGMENT[] MOA { get; set; }

    // x0-99
    public D01B_FTX_SEGMENT[] FTX { get; set; }

    // x0-9
    public D01B_CNT_SEGMENT[] CNT { get; set; }

    // x0-9
    public D01B_RFF_SEGMENTGROUP1[] RFF_SEGMENT_GROUP_1 { get; set; }

    // x0-9
    public D01B_NAD_SEGMENTGROUP4[] NAD_SEGMENT_GROUP_4 { get; set; }

    // x0-9
    public D01B_TDT_SEGMENTGROUP9[] TDT_SEGMENT_GROUP_9 { get; set; }

    // x0-9999
    public D01B_EQD_SEGMENTGROUP21[] EQD_SEGMENT_GROUP_21 { get; set; }

    // x0-9999
    public D01B_CNI_SEGMENTGROUP25[] CNI_SEGMENT_GROUP_25 { get; set; }

    // 0074
    [EdiValue(Path = "UNT/0")]
    public string UNT_NumberOfSegments { get; set; }

    // 0062
    [EdiValue(Path = "UNT/1")]
    public string UNT_MessageReferenceNumber { get; set; }
}

[EdiSegment, EdiPath("BGM")]
public class D01B_BGM_SEGMENT
{
    // C002/1001
    [EdiValue(Path = "BGM/0")]
    public string BGM_MessageName { get; set; }

    // C106/1004
    [EdiValue(Path = "BGM/1")]
    public string BGM_MessageNumber { get; set; }

    // 030/1225
    [EdiValue(Path = "BGM/2")]
    public string BGM_MessageFunction { get; set; }
}

[EdiSegmentGroup("CNI", "TPL", "DTM", "TSR", "CUX", "MOA", "FTX", "GDS", "TOD", "RFF", "TDT", "NAD", "GID")]
public class D01B_CNI_SEGMENTGROUP25
{
    // 010/1490
    [EdiValue(Path = "CNI/0")]
    public string CNI_ConsolidationItemNumber { get; set; }

    // C503/1004
    [EdiValue(Path = "CNI/1")]
    public string CNI_DocumentIdentifier { get; set; }

    public D01B_TPL_SEGMENTGROUP28[] TPL { get; set; }

    public D01B_DTM_SEGMENT[] DTM { get; set; }

    public D01B_TSR_SEGMENT[] TSR { get; set; }

    public D01B_CUX_SEGMENT[] CUX { get; set; }

    public D01B_MOA_SEGMENT[] MOA { get; set; }

    public D01B_FTX_SEGMENT[] FTX { get; set; }

    public D01B_GDS_SEGMENT[] GDS { get; set; }

    public D01B_TOD_SEGMENTGROUP31[] TOD { get; set; }

    public D01B_RFF_SEGMENTGROUP32[] RFF { get; set; }

    public D01B_TDT_SEGMENTGROUP38[] TDT { get; set; }

    public D01B_NAD_SEGMENTGROUP43[] NAD { get; set; }

    public D01B_GID_SEGMENTGROUP50[] GID { get; set; }
}

I don't want to paste the whole code base for this because it would be massive, but I hope the picture of the situation is clear enough. Every other EdiSegment is nested like BGM in this example, and every other SegmentGroup is also nested like in this example, according to the structure of the EDI file above. When I assume that, for example, RFF SG1's SequenceEnd is "NAD" (NAD SG4), or NAD SG4's SequenceEnd is TDT SG9 etc. (even in far more nested SG's like CNI or GID it works perfectly fine) it's all good.
So after all this, what's the actual problem? I am in a situation when I can't be always sure what my EDI file will include, and there are some SegmentGroups that will not always be present, let's look at the example:
UNA:+.? '
UNB+UNOY:3+Sample+Sample+211217:1234'
UNH+1+IFCSUM:D:01B:UN'
BGM+Sample+Sample+Sample'
DTM+Sample:Sample:Sample'
FTX+Sample+++Sample'
CNT+Sample:Sample'
CNT+Sample:Sample'
CNT+Sample:Sample'
CNT+Sample:Sample'
RFF+Sample:Sample'
RFF+Sample:Sample'
RFF+Sample:Sample'
NAD+Sample+Sample::Sample'
NAD+Sample+Sample'
TDT+Sample++Sample+Sample:Sample+Sample:Sample'
DTM+Sample:Sample:Sample'
DTM+Sample:Sample:Sample'
TSR+Sample+Sample'
TSR+Sample+Sample'
TSR+Sample+Sample'
EQD+Sample+Sample'
CNI+Sample+Sample'
TPL+Sample'
MEA+Sample++Sample:Sample'
DTM+Sample:Sample:Sample'
DTM+Sample:Sample:Sample'
DTM+Sample:Sample:Sample'
DTM+Sample:Sample:Sample'
TSR+Sample+Sample'
TSR+Sample+Sample'
TSR+Sample+Sample'
TOD+Sample++Sample'
RFF+Sample:Sample'
RFF+Sample:Sample'
RFF+Sample:Sample'
RFF+Sample:Sample'
TDT+Sample++Sample'
NAD+Sample+Sample++Sample:Sample+Sample+Sample++Sample+Sample'
NAD+Sample+Sample++Sample:Sample+Sample+Sample++Sample+Sample'
NAD+Sample+Sample++Sample:Sample+Sample+Sample++Sample+Sample'
RFF+Sample:Sample'
NAD+Sample+Sample++Sample:Sample+Sample+Sample++Sample+Sample'
RFF+Sample:Sample'
NAD+Sample+Sample++Sample:Sample+Sample+Sample++Sample+Sample'
RFF+Sample:Sample'
GID+Sample+Sample:Sample:::Sample'
HAN+Sample:::Sample'
FTX+Sample+++Sample'
MEA+Sample+Sample+Sample:Sample'
MEA+Sample++Sample:Sample'
DIM+Sample+Sample:Sample:Sample:Sample'
RFF+Sample:Sample'
PCI+Sample+Sample'
UNT+53+1'
UNZ+1+1234'

The only difference between two provided EDIFACT's is the EQD SegmentGroup, after TDT SG9, it's there sometimes, sometimes it is not ;). So when I (wrongly) assume that TDT SG9's SequenceEnd is CNI, it fails when there is EQD segment present in the file, or when I assign EQD as SequenceEnd of TDT, and EQD is not present (ok otherwise). That's it, the only problem. I have looked at a lot of issues posted here, where providing child segments and SegmentGroups in the constructor of SegmentGroups would be the way to go, but then Deserialization fails, for example, the RFF SG1 which is defined in the EdiMessage attributed class collects all 10 RFF segments from the whole file, instead of 3 which are actually there in the main message context of EDIFACT.
I suspect that the solution for this problem is there, but I just can't quite find it, so I would very much appreciate some help with this examples. If needed, I will provide more implementation examples from the D01BIFCSUM class, and thanks in advance :).

I have debugged the EdiSerializer class and this is what I have found (reference documentation: https://www.stylusstudio.com/edifact/D01B/IFCSUM.htm):
When I enter the MEA SegmentGroup 29 (inside TPL SG28) in the outer CNI SegmentGroup 25 which is contained in the class with [EdiMessage] attribute it closed the CNI SG25 in on of the conditions inside TryCreateContainer method,
else if (level.GroupMembers.Length > 1 &&!level.GroupContains(readerSegment as string))
{
    level.Close(); // Close this level
    continue;
}

as CNI SG 25 didn't contain the possibility to have "MEA" segment inside it's SegmentGroup attribute parameters. After I changed it (added all possible segments from all the nested SegmentGroups inside CNI) it seems to work perfectly fine now, but my question is, is this actually a proper solution? Based on all issue suggestions that I have read, I should only be including Segments and SegmentsGroups that may exist on the same level, but it works with all nested Segments and SegmentGroups also added to the attribute in CNI.

Hi @Qtemp123 and thank you for your interest in EDI.Net

question is, is this actually a proper solution? Based on all issue suggestions that I have read, I should only be including Segments and SegmentsGroups that may exist on the same level, but it works with all nested Segments and SegmentGroups also added to the attribute in CNI.

Usually this (mapping everything contained and not only same level) is useful only when developing or when some nested GegmentGroups are not present in the CLR classes (Mapped at all). I have not yet found the time to debug your case but if you would like it would be helpful to make a pull request with a failing test so that I can take a look.


Basic web GUI

Although not the primary purpose, basic web GUI with async queries can show what argrelay CLI tries to do in its more constraint terminal environment.
It also allows demoing argrelay for remote users (who don't have immediate access to shell).

The GUI is implemented as:

single page: https://github.com/argrelay/argrelay/blob/v0.5.2.final/src/argrelay/relay_server/gui_templates/argrelay_main.html
controlled by single JavaScript file: https://github.com/argrelay/argrelay/blob/v0.5.2.final/src/argrelay/relay_server/gui_static/argrelay_client.js


search.js.map

Hi,
I am using the gem install version (Not using Bower). I notice the search page has the following network request which does not exist, any ideas why? This happens on my search page via the script

Request URL:http://localhost:4000/js/search.js.map
Request Method:GET
Status Code:404 Not Found
Request Headersview source
Accept:/
Accept-Encoding:gzip, deflate, sdch
Accept-Language:en-US,en;q=0.8
Cache-Control:max-age=0
Connection:keep-alive
Host:localhost:4000
Referer:http://localhost:4000/search/index.html?q=buffalo

Same for me. and then search does not work

As a temporary fix you can remove the following line at the end of the minified output:
//# sourceMappingURL=search.js.map

:+1:

Yes,  temporary fix works.

*.map is an UnMinified version of Minified files that can be edited within Chrome Developer Tools. It's not required for function and removing the reference at the bottom of the Minified file is fine.

Indeed. I have it working nicely now :)
On Thu, May 28, 2015 at 4:38 AM, Gary Traffanstedt<EMAIL_ADDRESS>
wrote:

*.map is an UnMinified version of Minified files that can be edited
within Chrome Developer Tools. It's not required for function and removing
the reference at the bottom of the Minified file is fine.
—
Reply to this email directly or view it on GitHub
https://github.com/slashdotdash/jekyll-lunr-js-search/issues/51#issuecomment-106027191
.

--
Romiko Derbynew
Mobile: +61 4000 90251
Email<EMAIL_ADDRESS>*Website: *http://rangerrom.com
*Blog: *http://rangerrom.com/blog

Still is a thing. Thanks for the hint.


Swift pitfall

invent unless
https://airspeedvelocity.net/2014/06/28/extending-the-swift-language-is-cool-but-be-careful/

return in forEach

preferredPresets().forEach {
      if input.device.supportsAVCaptureSessionPreset($0) && self.session.canSetSessionPreset($0) {
        self.session.sessionPreset = $0
        return
      }
    }

deinit {
dispatch_async(queue) {
self.doSomething()
}
}

lazy variable with weak self in deinit
lazy public var something: Something = Something().then { [weak self] in
    guard let strongSelf = self else { return }

   // code goes here
  }

Cannot form weak reference to instance (0x7ffdc420d200) of class ViewController. It is possible that this object was over-released, or is in the process of deallocation.

UIKeyboardWillShow gets called multiple time as system custom keyboard is changed

Breakpoint in guard, if let that has multiple statements. It gets hit many times

Button target action is tap
Then you have function tap
func tap(completion: () -> Void) {
  completion()
}

When the button is tapped, the first parameter is UIButton, not the function that we expected. Calling completion yields EXC_BAD_ACCESS

Use init in protocol extension !!! Should not do this

Set scrollView.delegate = nil in controller deinit, while scrollView is lazy. Should not do this !!!


Chrome extension does not allow import

There is an alert message that appears in Figma if you click on the upload here button: "You need to be online to use this plugin."
First time using this Chrome extension and Figma plugin so not sure of the correct process to import a webpage to Figma
Screenshot is the web version of Figma (not desktop version).

.

Hi @lisacees - unfortunately there are parts of this plugin that involve of using an API (that requires internet access) for the plugin to work. Are you saying that you have an internet connection, but the plugin thinks you don't?

Exactly.

Oh wow that's very strange. Does using the chrome extension work for you / work around this issue?


Share sheet exposes wrong type (plain text) for URLs

When sharing a video the shared object is an URL if you inspect it in the share sheet, but its type seems to be plain text. This prevents all URL-exclusive actions from being listed in the share sheet, crippling the usefulness of the share feature.

Thank you for filing!


Initial integration of Azure SDK for ACI executor in Golang, reduce resulting image size

Added Azure Go SDK integration for the ACI executor in Golang.
When all looks good, I can also add a tutoriual on ACI with Golang :)

LGTM, thanks!

Awesome, thanks!


Deleted question

Hi @onurozo92 ! Could you please update the template to help in expediting the issue. Thank you!

@mohantym I posted the question elsewhere. Have you seen it? The template is filled out there..

@oo92 ! Moving this to closed status as it is duplicated to #56503. Thank you!


Split Payment Functionality

Hey , great package , just one doubt , so i want that users pay directly to vendor from my flutter app , and i got commison out of it , so by using this split functionality , can i achieve this , and will payment settledown to bank accounts of vendors and mine , instantly ??

Hi @rohitsangwan01  yes that's right. Flutterwave split works that way.

Great , thanks for confirmation


Hello,This is only for windows?

nothing

nothing

It isn't, no.
It will also work on Linux and MacOS,
I just haven't gotten around to writing the automated scripts for either of them yet. I'll try and get them done as soon as I can, but it may be a while.
Sorry

It can work if you run manually pip install -r requirements.txt and then save the following as start.sh in main. You need to place the name of your conda env in the code:
`#!/bin/bash
Create a new tmux session without attaching to it
tmux new-session -d -s my_session
Navigate to the frontend_server directory and run it
tmux send-keys -t my_session "cd $PWD/environment/frontend_server" C-m
tmux send-keys -t my_session "conda activate <conda_env>" C-m
tmux send-keys -t my_session "python manage.py runserver" C-m
Create a new window for the backend server
tmux new-window -t my_session
Navigate to the reverie/backend_server directory and run it
tmux send-keys -t my_session "cd $PWD/reverie/backend_server" C-m
tmux send-keys -t my_session "conda activate <conda_env>" C-m
tmux send-keys -t my_session "python reverie.py" C-m
Attach to the tmux session
tmux attach -t my_session
`
This worked for me.


ping setuid error

nix --extra-experimental-features nix-command --extra-experimental-features flakes shell nixpkgs#iputils -c ping google.com -c4

errors

ping: setuid: Function not implemented

ping requires root or a setuid binary.

And  how do you install setuid? There are suggestion that you need to use the security wrapper
security.wrappers = {
  ping = {
    owner = "root";
    group = "root";
    capabilities = "cap_net_raw+p";
    source = "${pkgs.iputils.out}/bin/ping";
  };
};

But I am unsure where to put this in the flake install of nix on droid

This does not work in nix-on-droid. These are NixOS options. Also you need to root your device otherwise you are restricted to a unprivileged user.

But ping command in Termux is working well. It seems like ping command in Termux is just a wrapper of system's ping command.
~ $ cat /data/data/com.termux/files/usr/bin/ping
#!/data/data/com.termux/files/usr/bin/sh
unset LD_LIBRARY_PATH LD_PRELOAD
PATH=$PATH:/system/bin exec /system/bin/ping "$@"

But ping command in Termux is working well. It seems like ping command in Termux is just a wrapper of system's ping command.
~ $ cat /data/data/com.termux/files/usr/bin/ping
#!/data/data/com.termux/files/usr/bin/sh
unset LD_LIBRARY_PATH LD_PRELOAD
PATH=$PATH:/system/bin exec /system/bin/ping "$@"

Trying to run /system/bin/ping google.com returns no such file or directory in Nix on Droid.

I got ping to work like this:
Modify /system/bin/login by adding -b /system:/uppersystem to the proot command line. Restart the app and run /uppersystem/bin/linker64 /uppersystem/bin/ping. nix-on-droid seems to mask the /system/bin and /android/system/bin directories somehow, but I don't quite get the logic. Perhaps it could expose the real /system/bin directory in a similar manner?

Nice, wonder if that could somehow be used towards https://github.com/t184256/nix-on-droid/issues/221

nix-on-droid seems to mask the /system/bin and /android/system/bin directories somehow, but I don't quite get the logic. Perhaps it could expose the real /system/bin directory in a similar manner?

It might be because of a proot-pseudomount to /bin, which we need for /bin/sh?
You might be interested in commits in bin-less branch.

It might be because of a proot-pseudomount to /bin, which we need for /bin/sh?

Just to be sure, are you referring to this line?
But then why is /bin a symlink to /system/bin? And why doesn't /android/system/bin contain the contents of the upper /system/bin (due to  -b /:/android)?

I got ping to work like this: Modify /system/bin/login by adding -b /system:/uppersystem to the proot command line. Restart the app and run /uppersystem/bin/linker64 /uppersystem/bin/ping. nix-on-droid seems to mask the /system/bin and /android/system/bin directories somehow, but I don't quite get the logic. Perhaps it could expose the real /system/bin directory in a similar manner?

Is there a way to declaratively modify the login script from a Nix config file?
Or maybe just add a initialization script on switch.

Is there a way to declaratively modify the login script from a Nix config file?
Or maybe just add a initialization script on switch.

I don't think there is a direct way. What you can do is build your own bootstrap zipball with this change per the instructions in the README.

It should be enough to fork, modify login.nix and point your channel/flake to your fork.
Though when I'm experimenting with it, I usually just edit the login script directly on a spare device =)

It might be because of a proot-pseudomount to /bin, which we need for /bin/sh?

Just to be sure, are you referring to this line? But then why is /bin a symlink to /system/bin? And why doesn't /android/system/bin contain the contents of the upper /system/bin (due to -b /:/android)?

My bad, /android/system/bin seems to work too. So /android/system/bin/linker64 /android/system/bin/ping

It might be because of a proot-pseudomount to /bin, which we need for /bin/sh?

Just to be sure, are you referring to this line? But then why is /bin a symlink to /system/bin? And why doesn't /android/system/bin contain the contents of the upper /system/bin (due to -b /:/android)?

My bad, /android/system/bin seems to work too. So /android/system/bin/linker64 /android/system/bin/ping

I have been using this workaround since some time but suddenly I got this error:
CANNOT LINK EXECUTABLE "/android/system/bin/ping": library "/nix/store/qbkpqssvc41v2pd9dda8s3cyxs7m0dbm-dnshack/lib/libdnshackbridge.so" needed or dlopened by "/system/bin/ping" is not accessible for the namespace "(default)"


How to get response from server to client? When any method has been called from client?

Hi @mikuso ,
I used the package ocpp-rpc and have query regarding receiving response from server to client. so can you please provide your suggestion on it?
I have created two separate folder one is for server and another is for client and install the ocpp-rpc library on both app.
On the server end, I have already handled the method as below:
server.on('client', async (client) => {
       await client.handle('MeterValues', ({params}) => {
        console.log(`Server got MeterValues from ${client.identity}:`, params);
        return {};
    });
});

Here, If I will return JSON object with any properties, It will not allow me and generate error on client end and aborted it.
event if I will return like return {  status: "Accepted" } on server end then it will show error on client as below:
So, here how can we get response from server to client end? and Make sure that the method has been called successfully.
\node_modules\ocpp-rpc\lib\util.js:44
    const err = new E(message ?? '');
                ^

RPCPropertyConstraintViolationError: data must NOT have additional properties
    at createRPCError (\client_app\node_modules\ocpp-rpc\lib\util.js:44:17)
    at Validator.validate (\client_app\node_modules\ocpp-rpc\lib\validator.js:47:19)
    at RPCClient._onCallResult (\client_app\node_modules\ocpp-rpc\lib\client.js:822:31)
    at RPCClient._onMessage (\client_app\node_modules\ocpp-rpc\lib\client.js:644:26)
    at WebSocket.<anonymous> (\client_app\node_modules\ocpp-rpc\lib\client.js:369:42)
    at WebSocket.emit (node:events:527:28)
    at Receiver.receiverOnMessage (\client_app\node_modules\ws\lib\websocket.js:1169:20)
    at Receiver.emit (node:events:527:28)
    at Receiver.dataMessage (\client_app\node_modules\ws\lib\receiver.js:528:14)
    at Receiver.getData (\client_app\node_modules\ws\lib\receiver.js:446:17) {
  rpcErrorMessage: 'Payload is syntactically correct but at least one field contains an invalid value',
  rpcErrorCode: 'PropertyConstraintViolation',
  details: {
    errors: [
      {
        instancePath: '',
        schemaPath: '#/additionalProperties',
        keyword: 'additionalProperties',
        params: { additionalProperty: 'status' },
        message: 'must NOT have additional properties'
      }
    ],
    data: { status: 'Accepted' }
  }
}

Calling the method from Client as below:
const cli = new RPCClient({
    endpoint: "ws://localhost:3000",
    identity: "EXAMPLE123",
    protocols: ["ocpp1.6"],
    strictMode: true,
});

cli.call("MeterValues", {
    connectorId: 0,
    transactionId: 12345,
    meterValue: [
        {
            sampledValue: [
                {
                    unit: "Celsius",
                    context: "Sample.Clock",
                    measurand: "Temperature",
                    location: "Body",
                    value: "33.8,18.6",
                },
            ],
            timestamp: new Date().toISOString(),
        },
    ],
});

Thanks,

Hi,
cli.call() returns a Promise which will either resolve with the value of the response from the other side, or it will reject with an RPCError of some sort.  If the client uses strictMode: true, then it will also reject with an RPCError if the response is invalid.
If the Promise from cli.call() resolves to a value, then you can be sure that the server has responded correctly to the call.
I have expanded on your example to demonstrate:
server.js
const {RPCServer} = require('ocpp-rpc');

const server = new RPCServer({
    protocols: ['ocpp1.6'],
    strictMode: true,
});

server.on('client', async (client) => {
    await client.handle('MeterValues', ({params}) => {
        console.log(`Server got MeterValues from ${client.identity}:`, params);
        return {};
    });
});

server.listen(3000);

client.js
const {RPCClient} = require('ocpp-rpc');

async function main() {
    const cli = new RPCClient({
        endpoint: "ws://localhost:3000",
        identity: "EXAMPLE123",
        protocols: ["ocpp1.6"],
        strictMode: true,
    });

    await cli.connect();

    try {
        const response = await cli.call("MeterValues", {
            connectorId: 0,
            transactionId: 12345,
            meterValue: [
                {
                    sampledValue: [
                        {
                            unit: "Celsius",
                            context: "Sample.Clock",
                            measurand: "Temperature",
                            location: "Body",
                            value: "33.8,18.6",
                        },
                    ],
                    timestamp: new Date().toISOString(),
                },
            ],
        });

        console.log('Got reply:', response); // Got reply: {}
    } catch (err) {
        // MeterValues call failed

        console.error("MeterValues call failed because:", err.message);
        console.error("RPC Error code:", err.rpcErrorCode);
        console.error("Error details:", err.details);
    }
}

main().catch(console.error);

Does this help?

For completeness, if you want to test sending an error from the server:
server.on('client', async (client) => {
    await client.handle('MeterValues', ({params}) => {
        throw createRPCError("InternalError", "This is an example error");
    });
});


Clear form errors on submit

This is a (temporary) fix for #172 . This PR really should have some tests added to it, but I was unable to get the test suite working locally, and I unfortunately don't have more time to spend on this at the moment. Totally understand if you want to wait for a proper fix on this.

Looks good. thanks!


reth killed by out-of-memory killer

Describe the bug
Reth 0.2.0-beta.6 running on ubuntu 22.04 was killed by the OOM killer.
It had been running at the chain tip for more than two weeks before the jemalloc stats started to increase linearly from ~3.5GB to ~40GB over less than an hour, at which point it was killed. The machine has 64GB RAM.
The machine is running reth, lighthouse, an arbitrum node which is using reth, and an RPC client program which is primarily calling eth_call, debug_traceCall and eth_subscribe (for new blocks) on reth. It's not a particularly heavy RPC load, but there may be some bursts of activity. It is primarily using IPC transport for RPC. I don't see any signs of anything bad happening right before the OOM in any of the client logs or the reth log.
Memory graphs are attached along with the relevant bit of reth.log. Happy to upload more info, but none of the other graphs on the dashboard showed any obvious issues.

reth.log
Steps to reproduce
Sync reth to ethereum chain tip
subscribe to new blocks, run debug_traceCall to get logs and state changes from mempool txns using IPC
Wait several weeks
Boom!
Node logs
No response
Platform(s)
Linux (x86)
What version/commit are you on?
reth Version: 0.2.0-beta.6
Commit SHA: ac29b4b73
Build Timestamp: 2024-04-26T04:52:11.095680376Z
Build Features: jemalloc
Build Profile: maxperf
What database version are you on?
Current database version: 2
Local database version: 1
Which chain / network are you on?
mainnet
What type of node are you running?
Archive (default)
What prune config do you use, if any?
None
If you've built Reth from source, provide the full command you used
cargo build --profile maxperf --bin reth
Code of Conduct

[X] I agree to follow the Code of Conduct

I just restarted reth with jemalloc heap profiling enabled. I'll update the bug if I can trigger this again with the profiling, but it may take quite a while to reproduce.

hey @gbrew do you have debug logs you can send over? They would be in ~/.cache/reth/logs

hey @gbrew do you have debug logs you can send over? They would be in ~/.cache/reth/logs

Sorry, the only logs I found there were not current, so I didn't include them. Will see if I need to change my config to get debug logs enabled again.

hey @gbrew do you have debug logs you can send over? They would be in ~/.cache/reth/logs

Sorry, the only logs I found there were not current, so I didn't include them. Will see if I need to change my config to get debug logs enabled again.

hmm, they should be enabled automatically, if this is running in a service of some sort, or as root? if it's running as a systemd system service or similar, then /root/.cache/reth/logs is the place to look

I believe this happens because requests are coming in faster than we can write responses so the output buffer runs full

maybe this happens because requests are coming in faster than we can write responses so the output buffer runs full

Are you thinking of a specific buffer which I can see on the dashboard? None of the ones I saw looked to be increasing in size during the memory growth FWIW.

I just caught this crash again but with heap profiling enabled.
Attached are a couple heap profiles, one the overall profile right before death, and one a diff profile from a minute or so before death to death.
If I'm reading correctly, it looks like it is using 32GB of memory for the Vec allocated in get_headers_response().
I'm assuming this is handling P2P requests for block headers. Looks like the code already tries to limit the size of this response Vec using MAX_HEADERS_SERVE and SOFT_RESPONSE_LIMIT, so it seems like the possibilities are that the limiting is broken, or that there are a huge number of header requests live at the same time?

Here's the grafana jemalloc stats for the latest crash. Interesting that it has 5 episodes of linear memory growth in the 3 hours before crashing, but in all but the last of them it recovers before using up all the memory.
It does look consistent with continuing to process p2p requests but not sending the responses for long periods of time, along the lines of what @mattsse was suggesting above. Seems a bit crazy this would happen for more than an hour straight though.  Maybe some explicit form of backpressure is needed to prioritize sending responses?

I just found that the rate of incoming p2p header requests goes way up when the memory growth happens. It is about 1-2 reqs/s prior, then goes up to about 25 reqs/s during the uncontrolled memory growth. So it does seem like reth is just failing to handle that rate of header requests and the sending of responses gets starved and they pile up until memory is exhausted.

related https://github.com/paradigmxyz/reth/issues/8131

Ran into the same issue. I didn't save logs because I figured it was a result of heavy RPC load (querying states for days). After checking my code and restarting, I can confirm it's not the RPC load (memory usage remains steady around 30GB when I start).
If it happens again I'll include the metrics tag on restart and and keep track of p2p header requests.
Execution: Reth v0.2.0-beta.8
Consensus: lighthouse v5.1.3 , mainnet
Platform: linux x86
Machine: 128gb DDR5, 4TB gen5 nvme

I am seeing OOM kills happen fairly frequently too. I haven't installed the monitoring stack yet but I assume it's related to p2p as I don't utilize rpc in any way.
$ docker run ghcr.io/paradigmxyz/reth --version
reth Version: 1.0.5
Commit SHA: 603e39ab74509e0863fc023461a4c760fb2126d1
Build Timestamp: 2024-08-12T14:15:11.150189859Z
Build Features: asm_keccak,jemalloc
Build Profile: maxperf

[35797.744437] Out of memory: Killed process 10263 (reth) total-vm:5382410624kB, anon-rss:44717552kB, file-rss:0kB, shmem-rss:0kB, UID:1000 pgtables:790640kB oom_score_adj:0
[498231.524734] Out of memory: Killed process 60546 (reth) total-vm:5383626404kB, anon-rss:44783072kB, file-rss:0kB, shmem-rss:0kB, UID:1000 pgtables:1193532kB oom_score_adj:0
[2412844.173887] Out of memory: Killed process 32085 (reth) total-vm:5057062080kB, anon-rss:38217524kB, file-rss:0kB, shmem-rss:0kB, UID:1000 pgtables:1199060kB oom_score_adj:0
[4268503.040666] Out of memory: Killed process 46653 (reth) total-vm:5065120296kB, anon-rss:38309664kB, file-rss:0kB, shmem-rss:0kB, UID:1000 pgtables:1275744kB oom_score_adj:0

I am seeing OOM kills happen fairly frequently too. I haven't installed the monitoring stack yet but I assume it's related to p2p as I don't utilize rpc in any way.

do you mind setting up monitoring and/or checking what docker's memory limits are? And could you file a new issue for this?

do you mind setting up monitoring and/or checking what docker's memory limits are? And could you file a new issue for this?

No limits are applied by docker (or podman in this instance). If you notice the dmesg output I pasted above, reth was OOM-killed a few times - caught while consuming up to 45 GB twice, which is very close to the available memory my server has when reth is not running. I have reduced the outbound and inbound peers from the defaults and will monitor for future instances of this. Does it make sense to open another issue without further details? I won't get to set up the monitoring stack anytime soon.

Quick update: I've continued seeing an OOM crash every month or so as of v1.0.4. I haven't done any work to verify that these crashes are the same issue laid out here, but I'd guess they are.

what commit are you running @gbrew ?

what commit are you running @gbrew ?

I was seeing crashes most recently on 443f7d56ac1317caa29178decd087561828967dd . I just updated to v1.1.0, so will report if I see anything there in the future.

@gbrew can we move this to a new issue? Just so that we have the full context in one place. @0xmichalis feel free to comment on the new issue as well

@gbrew can we move this to a new issue? Just so that we have the full context in one place. @0xmichalis feel free to comment on the new issue as well

Of course, I'll open a fresh issue if I see this happen again.


Mainnet Wallet Release 2020-10-19

@vgrichina can we please include this one: https://github.com/near/near-wallet/pull/1061

@vgrichina can we please include this one: #1061

Merged


Should the exclusive monitor for supporting the lr/sc instruction pair be placed within the RISC-V CPU subsystem?

Hello, while trying to understand the RISC-V lr/sc instruction pair, I notice that they can be used in non-cacheable or IO regions. However, when employing lr/sc instruction pair in these regions, an exclusive monitor must be added for each thread to monitor different threads' access operations on the same address, thus determining whether the sc instruction can be successfully executed. The RISC-V Specification, however, does not specify where such an exclusive monitor should reside nor does it explicitly mention the existence of the exclusive monitor.
So here's my question: In a RISC-V based SoC system, is there a clear requirement that the exclusive monitor must be placed within the RISC-V CPU subsystem (as indicated by Number 1 in the diagram), or should it reside outside the RISC-V CPU subsystem, perhaps at the Point of Serialization (Number 2 in the diagram), or at the endpoint (Number 3 in the diagram), or is this implementation-defined?

On Mon, Jan 22, 2024 at 4:47 AM jiamenghan @.***> wrote:

Hello, while trying to understand the RISC-V lr/sc instruction pair, I
notice that they can be used in non-cacheable or IO regions. However, when
employing lr/sc instruction pair in these regions, an exclusive monitor
must be added for each thread to monitor different threads' access
operations on the same address, thus determining whether the sc instruction
can be successfully executed. The RISC-V Specification, however, does not
specify where such an exclusive monitor should reside nor does it
explicitly mention the existence of the exclusive monitor.
So here's my question: In a RISC-V based SoC system, is there a clear
requirement that the exclusive monitor must be placed within the RISC-V CPU
subsystem (as indicated by Number 1 in the diagram), or should it reside
outside the RISC-V CPU subsystem, perhaps at the Point of Serialization
(Number 2 in the diagram), or at the endpoint (Number 3 in the diagram), or
is this implementation-defined?
1.jpg (view on web)
https://github.com/riscv/riscv-isa-manual/assets/13928390/7cfe59d1-031a-4f21-8c78-04796a157eef

A few initial comments:

RISC-V does not require that LR/SC be supported for non-main memory
PMA regions.

The Priv spec PMA chapter describes the Reservability PMA.  This
section also contains the following non-normative comment:

*We recommend providing RsrvEventual support for main memory regions where
possible. Most I/O regions will not support LR/SC accesses, as these are
most conveniently built on top of a cache-coherence scheme, but some may
support RsrvNonEventual or RsrvEventual.    *
As far as how one would implement LR/SC support for non-cacheable and I/O
regions, the architecture of course avoids specifying implementation
approaches.  So there is no requirement as to where an exclusive monitor
must be placed., i.e. this is implementation-defined.
Greg

On Mon, Jan 22, 2024 at 4:47 AM jiamenghan @.***> wrote: Hello, while trying to understand the RISC-V lr/sc instruction pair, I notice that they can be used in non-cacheable or IO regions. However, when employing lr/sc instruction pair in these regions, an exclusive monitor must be added for each thread to monitor different threads' access operations on the same address, thus determining whether the sc instruction can be successfully executed. The RISC-V Specification, however, does not specify where such an exclusive monitor should reside nor does it explicitly mention the existence of the exclusive monitor. So here's my question: In a RISC-V based SoC system, is there a clear requirement that the exclusive monitor must be placed within the RISC-V CPU subsystem (as indicated by Number 1 in the diagram), or should it reside outside the RISC-V CPU subsystem, perhaps at the Point of Serialization (Number 2 in the diagram), or at the endpoint (Number 3 in the diagram), or is this implementation-defined? 1.jpg (view on web) https://github.com/riscv/riscv-isa-manual/assets/13928390/7cfe59d1-031a-4f21-8c78-04796a157eef
A few initial comments: - RISC-V does not require that LR/SC be supported for non-main memory PMA regions. - The Priv spec PMA chapter describes the Reservability PMA. This section also contains the following non-normative comment: *We recommend providing RsrvEventual support for main memory regions where possible. Most I/O regions will not support LR/SC accesses, as these are most conveniently built on top of a cache-coherence scheme, but some may support RsrvNonEventual or RsrvEventual. * As far as how one would implement LR/SC support for non-cacheable and I/O regions, the architecture of course avoids specifying implementation approaches. So there is no requirement as to where an exclusive monitor must be placed., i.e. this is implementation-defined. Greg

Thx a lot!


Update to Go 1.12 runtime.

Update to the Go 1.12 runtime.

The login option in app.yaml is no longer supported. Check the
X-Appengine-Cron http header instead.
Add a 'stage' make target that allows you to easily stage a change.

This change is staged at https://staging-go112-dot-gvisor-website.appspot.com/


JobInformation list shall not contain full job information

Situation
This is a sub issue of #2366
Currently when a administrator fetches the running jobs, the configuration for each job is returned as well. This is much unnecessary data, but also can contain test credentials etc.
Wanted
We want to reduce the job information list entries returned on usecase UC_ADMIN_LISTS_ALL_RUNNING_JOBS
The returned data shall not contain the configuration any more or unnecessary details.
Solution
We only support following information inside list entries:

jobUUID;
since;
status;
projectId (this is still interesting, because an admin can see if the jobs belong to same project)

Was already removed by #3254


Fix developer blog link in notebook

Description
Fix developer blog link in notebook responsibleaidashboard-housing-decision-making.ipynb
Similar issue to https://github.com/microsoft/responsible-ai-toolbox/pull/1713 but in a different notebook
Checklist

[ ] I have added screenshots above for all UI changes.
[ ] I have added e2e tests for all UI changes.
[x] Documentation was updated if it was needed.

Codecov Report

Merging #1715 (b8aef5b) into main (91cf2af) will decrease coverage by 14.81%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             main    #1715       +/-   ##
===========================================
- Coverage   90.39%   75.58%   -14.82%
===========================================
  Files          39       10       -29
  Lines        1718      258     -1460
===========================================
- Hits         1553      195     -1358
+ Misses        165       63      -102

Flag
Coverage Δ

unittests
75.58% <ø> (-14.82%)
:arrow_down:

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

Impacted Files
Coverage Δ

raiutils/raiutils/dataset/__init__.py

raiutils/raiutils/common/retries.py

raiutils/raiutils/__init__.py

raiutils/raiutils/version.py

raiutils/raiutils/dataset/dataset.py

...ranalysis/erroranalysis/_internal/cohort_filter.py

...nalysis/erroranalysis/_internal/version_checker.py

erroranalysis/erroranalysis/_internal/metrics.py

erroranalysis/erroranalysis/__init__.py

erroranalysis/erroranalysis/_internal/utils.py

... and 19 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Remove obsolete members from Avalonia.Base namespace

Though there are two places where i have no idea what to do.

https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Base/Media/DrawingContext.cs#L73-L74
https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Base/VisualTree/IVisualWithRoundRectClip.cs

Fixed issues
Part of https://github.com/AvaloniaUI/Avalonia/issues/6666

You can test this PR using the following package version. 0.10.999-cibuild0023020-beta. (feed url: https://nuget.avaloniaui.net/repository/avalonia-all/index.json) [PRBUILDID]

You can test this PR using the following package version. 0.10.999-cibuild0023193-beta. (feed url: https://nuget.avaloniaui.net/repository/avalonia-all/index.json) [PRBUILDID]

You can test this PR using the following package version. 0.10.999-cibuild0023195-beta. (feed url: https://nuget.avaloniaui.net/repository/avalonia-all/index.json) [PRBUILDID]


add "clearTimeout" function : delete local storage after x seconds

For what reason???

What if the user goes back to a form, with values from database several weeks later and don't see original values but the localstorage values, he may not notice that the form contains actually the localstorage values.

I second this request.  I'll give you my scenario - I'm using sisyphus to handle the fact that iPad, when running a site as a "Web App", does not allow for multitasking.  If you start to fill out a form, then switch to another app to look something up, and come back, it dumps you back to the original URL defined in the shortcut.  I am using localStorage to redirect back to the URL you were at when you were last using the app, but now I'm able to re-fill the "dirty" form data as well, thanks to your plugin.
However, I don't want that dirty data to be refilled hours later - I only want the app to refill data into the form if you have only been away for a little while, and delete it after some time.

Finally, I took a different approach to my problem :
If there is localstorage data, the website warns the user that temporary values were saved but can be dismissed (through a button of course)


Ensure to load web assets with absolute path

Loading by relative path is problematic in case of the change of request path. (e.g. /ui/ or /ui)
Loading by an absolute path (/ui/*) makes it robust.

See: https://github.com/prestosql/presto/issues/500

@Lewuathe Thanks for your PR.
Am i correct that this should solve https://github.com/prestosql/presto/issues/500 ?
If this is about /ui vs /ui/, we could also consider redirecting from the former to the latter.

If redirect works, that would be preferable, as it allows us to relocate the UI path in the future.

Am i correct that this should solve #500 ?

@findepi Yes, it should fix #500. If it's better to redirect /ui to /ui/, I can do.
As @electrum suggested, using an absolute path may cause additional work when we choose another path for UI.

Unfortunately, simple redirection did not work because each resource request was not redirected because the path is relative.
The following code does not redirect the resource request (e.g. css, js)
public class WebUiResource
{
    // ...
    @GET
    @Path("/ui")
    public Response redirectUiPath(
            @HeaderParam(X_FORWARDED_PROTO) String proto,
            @Context UriInfo uriInfo)
    {
        return redirectIndexHtml(proto, uriInfo);
    }
}

Overall using the absolute path is safer.

This should have been resolved by #539. Please let me know otherwise. Thanks for your contribution.


Unable to set LocalID to 3081 (Australia) using New-SPOSite

Category

[x] Bug

Describe the bug
Attempted to batch create sites and set LocaleID to 3081 for Australia however am getting the following error message:
Microsoft.SharePoint.Client.ServerException: LocaleId 3081 is not a suppported locale.
Apparently does not work in PnP PowerShell either but have not validated.
https://github.com/pnp/PnP-PowerShell/issues/1407
Steps to reproduce

Windows PowerShell as Admin

Updated Microsoft.Online.SharePoint.PowerShell module

Run the following commands in script. Variables imported from CSV
#local vars to make this easier
$siteName = $row.SiteName;
$siteUrl = $row.SiteUrl;
$siteOwner = $row.Owner;
$siteLogoUrl = $row.LogoUrl;
$siteLocale = $row.Locale;
$siteTimezone = $row.Timezone;
$siteTemplate = $row.Template;
#$hubSiteUrl = $row.HubSiteUrl;
Write-Output $("Creating {0}..." -f $siteUrl);
#create site
Write-Host -ForegroundColor Cyan "Site name: "$siteName
Write-Host -ForegroundColor Cyan "Site url: "$siteUrl
Write-Host -ForegroundColor Cyan "Site owner: "$siteOwner
Write-Host -ForegroundColor Cyan "Site logo: "$siteLogoUrl
Write-Host -ForegroundColor Cyan "Site LocaleID: "$siteLocale
Write-Host -ForegroundColor Cyan "Site timezone: "$siteTimezone
Write-Host -ForegroundColor Cyan "Site template: "$siteTemplate
Write-Host -f Yellow "...creating comm site and associating with hub site"
try
{
New-SPOSite -StorageQuota 20000 -Template $siteTemplate -TimeZoneId $siteTimezone -Title $siteName -Url $siteUrl -Owner $siteOwner -NoWait -LocaleId $siteLocale
}
catch [System.Exception]
{
Write-Host -ForegroundColor Red $_.Exception.ToString()
break;
}
finally
{
Write-Host -f Green "Site created"$siteName
Write-Host
}

See error and site not created.

Expected behavior
Expected to find that site had been created and locale set to English (Australia).
Environment details (development & target environment)
E5 Developer tenancy

Your Developer Environment: Windows 10
Target Environment: SharePoint Online
Framework: PowerShell
Browser(s): latest Chrome/Edge
Tooling: VS Code
Additional details: The more context you can provide, the easier it is (and therefore quicker) to help.

Additional context

DELETE THIS LINE BEFORE SUBMITTING - Provide any other context about the problem.

Thanks for your contribution! Sharing is caring.
Submission guidelines

!!IMPORTANT!! - All submissions must complete the baseline sections included in this template. Ignoring or deleting this template may result in closing the issue with the label type:incomplete-submission.
Follow our guidance on How To Create Good Issues.
If you are reporting an issue around any of the documents or articles, please ensure that you have referenced the specific file or URL of the related document.
If you have technical questions about the framework, we monitor the tags #spfx, #spfx-webparts, and #spfx-tooling on SharePoint StackExchange.
Remember to include sufficient details and context.
If you have multiple questions, suggestions, or bugs, please submit them in separate issues.

DELETE THIS SECTION BEFORE SUBMITTING
Thanks for your contribution! Sharing is caring.

As the error states, this isn't a supported locale in SharePoint:

https://docs.microsoft.com/en-us/previous-versions/office/sharepoint-csom/jj167546(v=office.15)
https://support.microsoft.com/en-us/office/languages-supported-by-sharepoint-dfbf3652-2902-4809-be21-9080b6512fff


Cant download lastest version 2.51 for android.  Installed previous versions ok.  Checked security settings and unknown apps is checked.  Seems to try to DL on hitting link, but no message.

Describe the bug

Scenario

Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error-->

Expected behavior

LogFile

Screenshots

Valkyrie Version

Desktop

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context

Was able to download and install today.


[1.13] Bump Mesos to nightly 1.8.x 1c679e9

High-level description
This is a routine bump to the latest Mesos and mesos-modules.
Related JIRA Issues
Checklist for all PRs

[ ] Included a test which will fail if code is reverted but test is not. If there is no test please explain here:
[x] Read the DC/OS contributing guidelines
[x] Followed relevant code rules Rules for Packages and Systemd

Checklist for component/package updates:
If you are changing components or packages in DC/OS (e.g. you are bumping the sha or ref of anything underneath packages), then in addition to the above please also include:

[x] Changelog:
https://github.com/apache/mesos/compare/ed1c7ee1db94a1c886e3d5a99f66b6abaec30f49...1c679e90f606aa0af948914c3afe8c90bf3bbcd3

[ ] Test Results: [link to CI job test results for component]

[ ] Code Coverage (if available): [link to code coverage report]

@mesosphere-mergebot bump-ee

@mesosphere-mergebot label Ready For Review


Update model and dataset metadata

Part one of #294
Overview
This PR updates metadata related to models and datasets to match the new way we're thinking about models. (ie, we're linking to models in external model repositories. We don't need to store information on how to serialize/deserialize them ourselves.)
Discussion
This PR makes it so that models are no longer top-level entities in our datastore. A lot of deletions follow from that. Now model metadata is stored directly in Pipeline entities rather than having a key-value lookup relationship.
Testing
I just relied on the unit tests here.
Documentation
The change where Pipelines now directly contain Model metadata (not just names) is reflected in the autogenerated pipeline metadata docs

:books: Documentation preview :books:: https://garden-ai--326.org.readthedocs.build/en/326/

Codecov Report

Merging #326 (e54c193) into main (1624532) will decrease coverage by 1.11%.
The diff coverage is 94.73%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
@@            Coverage Diff             @@
##             main     #326      +/-   ##
==========================================
- Coverage   78.15%   77.05%   -1.11%
==========================================
  Files          43       41       -2
  Lines        2303     2070     -233
==========================================
- Hits         1800     1595     -205
+ Misses        503      475      -28

Files
Coverage Δ

garden_ai/app/completion.py
61.90% <ø> (-9.07%)
:arrow_down:

garden_ai/app/console.py
100.00% <ø> (ø)

garden_ai/app/main.py
90.00% <ø> (-0.91%)
:arrow_down:

garden_ai/client.py
66.47% <ø> (+4.23%)
:arrow_up:

garden_ai/gardens.py
82.78% <100.00%> (ø)

garden_ai/local_data.py
81.63% <100.00%> (-2.99%)
:arrow_down:

garden_ai/mlmodel.py
95.23% <100.00%> (+3.57%)
:arrow_up:

garden_ai/pipelines.py
82.25% <100.00%> (-1.75%)
:arrow_down:

tests/cli/test_console.py
100.00% <ø> (ø)

tests/conftest.py
93.27% <ø> (-0.67%)
:arrow_down:

... and 3 more

... and 2 files with indirect coverage changes


Ensure reflection has access to instance methods on byref-like types

Adding the test uncovered a subtle issue. When rooting a virtual method for reflection, we should root the virtual method use of the slot defining method (not e.g. the ToString method on the byref-like type - we don't have virtual method use information for that).

The failure mode on Unix looks a lot like #4379 doesn't really work. I'm not aware of any tests being checked in for this feature and this might be the first one. I'll just disable that part of the test on a bug because this is not a problem I'm trying to solve right now.
TestByRefLikeTypeMethod
Unhandled Exception: System.Exception: Exception of type 'System.Exception' was thrown.
   at ReflectionTest.TestByRefLikeTypeMethod.Run() + 0x165
   at ReflectionTest.Main() + 0x12
   at Reflection!<BaseAddress>+0x1f820f


Normalize Maven build log

Currently, the format of the Maven build log is different than the one used by the operator. While this does not prevent it from being parsed by log collection tools, it makes things harder. Ideally, the Maven build log should follow the same format as the operator log.
This is a followup from #1783.

Implemented, therefore closing.


ci: add TIOBE analysis

This PR also takes the liberty of cleaning up our README and CONTRIBUTING files, which required some work.
Checklist

[x] I am the author of these changes, or I have the rights to submit them.
[x] I have added the relevant changes to the README and/or documentation.
[x] I have self reviewed my own code.
[ ] All requested changes and/or review comments have been resolved.

Note to self: Remember to update nfs-server-proxy-operator with all of these changes, because this was mostly copied from there.

Ok, new plan. Since Github updated to 24.04, we cannot install the python tools directly into the system. And since the TiCS tool requires the installation of the charm dependencies, we cannot use pipx for that. Hence, I modified the action to use a virtual environment instead. Let's just see if it works.


Disconnect walreceiver when no new WAL arrives

to turn tenant into Idle state.
Compute-node <--> WAL service connection changes:
Cancel SendWalHandler that has stopped receiving WAL after idle_session_timeout.
Now this is hardcoded as 30 seconds. Maybe worth turning into config parameter.
WAL service <--> Pageserver connection changes:
Change request_callback behavior: only request callback when receiver has some new WAL to stream,
shutdown request_callback thread together at ReceiveWalConn exit
If pageserver is caught up, disconnect ReplicationConn from WAL service to pageserver after some timeout.
Note that caught up here means that pageserver received the latest WAL. We don't have to wait for it to be durably stored, because it is already stored in WAL service and can be retreived later from safekeepers in case of pageserver restart.
Pageserver changes:
If walreceiver exited because of timeout, don't try to reconnect. Rely on WAL service request_callback to initiate this connection again, when new WAL arrives.

So there are multiple things added here.

On safekeeper, stop callmemaybe thread when wal receiver which started it dies. It is ok, it fixes current unpleasant bug, I vote with three hands to merge it ASAP.
If nothing comes from compute to safekeeper, after 30s thread receiving WAL on safekeeper goes down. Note though (not sure it is intended) as currently coded it also influences thread sending WAL to pageserver, as it lives under postgres_backend as well -- if no feedback comes from pageserver, it will die too.
If pageserver is caughtup with safekeeper, safekeeper at some point will terminate the connection between them.
Callmemaybe thread on safekeeper: If there is no more committed WAL /since the last time it was checked/, don't request to connect.
Reaction to callmemaybe on pageserver: previously pageserver reconnected to the requested safekeeper infinitely, now only 10 times.

I'm not sure whether we really want 2, as we already have similar timeout logic on the higher lever: console turnes idle compute off after some timeout. Purely read only nodes are not covered by this, but how much we want to kill connections for them? And note that dying compute <-> safekeeper connection will terminate safekeeper <-> pageserver one (which is good), but it means if some chunk of WAL got to safekeeper but not to pageserver, 2 will intervene in pushing it further -- though not too successfully as walproposer will constantly reconnect anyway. So proper implementation would be more complicated.
Same for 3+4. Moreover, if we have 2 properly implemented, we get it for free: if nothing happens, again dying compute <-> safekeeper connection terminates  safekeeper <-> pageserver one. There are also implementation issues, see inline.
As for 5, it is nice to get rid of infinite reconnections, but why 10? I imagined myself it like this: one callmemaybe requests to connect 1 time. If something goes wrong, callmemaybe repeats. OTOH, if safekeeper has live pageserver <-> safekeeper connection, it stops doing callmemaybe to avoid spamming logs and network. Currently 2 of 3 safekeepers will still poll, but eventually we should have some gossip between them deciding who is the most advanced (and in the quorum) and should server WAL.


FIXED: util.cascade alters source callback array

Coverage remained the same at 93.987% when pulling 7e1c8d379360ea2938a130450a424498e426916a on xtr0:fix_util_cascade into d8a5fe0fd56fb28cbdc380a7b4fdeee3f3087137 on Profiscience:master.

Could you add a test case, and make sure it fails w/o your changes? It would be really easy to accidentally regress this change w/o noticing.
Other than that, lgtm! Thanks!

Coverage remained the same at 93.987% when pulling 6056152c16b7e24981707272cf31956140cbecee on xtr0:fix_util_cascade into d8a5fe0fd56fb28cbdc380a7b4fdeee3f3087137 on Profiscience:master.

Sweet!