no new tasks / NodeId mismatch

Today the networks looks very idle

until yesterday i could assign jobs to my compute-provider via lagrange.. but today it does no longer work.. is there a general problem with lagrange?
i changed the variable as requested (  now the Collateral（SWAN-ETH）is quite static and oes no longer change )
SWAN_COLLATERAL_CONTRACT="0xdc200f89258e72aC3602dD23BD3642C4bd4eE34e"
Ubi tasks and connectivity are good
13932  	GPU      	fil-c2-512M	0xd116ba19aff44d03bb506094fd685b34906ef327f72948ff04f72eb18938fbc3	success	10.00 	2024-02-24 09:00:11
13942  	GPU      	fil-c2-512M	0x1e34babe08e1efec8a25282cab926bcf8022ecb0e8ba9d6284871cbcfb08deb3	success	10.00 	2024-02-24 11:00:11
13952  	GPU      	fil-c2-512M	0x74eafb3e7e8d79e826536149e877e63135603c603ce2785c4ff6fb923ca79b48	success	10.00 	2024-02-24 13:00:11
14063  	GPU      	fil-c2-512M	0xb99b653de0c88fcfcf44efd92e82ce60bdaea64c221fd3a62a4fbe8333492690	success	10.00 	2024-02-24 15:00:11
14073  	GPU      	fil-c2-512M	0x23be663d4797ae8720cbad75e486dd57e89ff2c01d7441c1b90df282d7062102	success	10.00 	2024-02-24 17:00:11
14083  	GPU      	fil-c2-512M	0x7a2ba814bd225d3ed4d1b41da066b4332f97472b3d5d6d8c4b959da658dcec75	success	0.0   	2024-02-24 19:00:11

[GIN] 2024/02/24 - 20:27:48 | 200 |       18.71µs |   <IP_ADDRESS> | GET      "/api/v1/computing/host/info"
[GIN] 2024/02/24 - 20:29:48 | 200 |      15.329µs |   <IP_ADDRESS> | GET      "/api/v1/computing/host/info"
[GIN] 2024/02/24 - 20:31:48 | 200 |       11.01µs |   <IP_ADDRESS> | GET      "/api/v1/computing/host/info"
[GIN] 2024/02/24 - 20:33:48 | 200 |       11.95µs |   <IP_ADDRESS> | GET      "/api/v1/computing/host/info"
[GIN] 2024/02/24 - 20:35:48 | 200 |       15.06µs |   <IP_ADDRESS> | GET      "/api/v1/computing/host/info"
[GIN] 2024/02/24 - 20:37:49 | 200 |        20.1µs |   <IP_ADDRESS> | GET      "/api/v1/computing/host/info"

i have seen this error in info
NodeId mismatch, local node id: 044dd69a713349917f376a77ba832accaa60422f5d70484f2c82d62a87b42c81d1eab1113cfa188e350df03e8cf734a67d14611953f9b92353911b68e45bc27d3d, chain node id: .
so i redeployed. but also error message here
computing-provider init --ownerAddress 0xfe017Ff8F0C7349845Ab52E58FcA96143f2c4981 --beneficiaryAddress **
Contract deployed! Address: 0x1f0a504782b952fC1aEbC50cE9eD61E6e2cC7EE1
Transaction hash: 0xa54102ff8bd36d60c9c6979e67cbe22538d32852ea52750aa449f34f403d75e4
Error: register cp to ubi hub failed

now the info seems good. but still no new jobs
computing-provider info
Owner:               	0xfe017Ff8F0C7349845Ab52E58FcA96143f2c4981
Contract Address:    	0x1f0a504782b952fC1aEbC50cE9eD61E6e2cC7EE1
Multi-Address:       	/ip4/**/tcp/8085
Name:                	ThomasBlock.io-Test
Node ID:             	044dd69a713349917f376a77ba832accaa60422f5d70484f2c82d62a87b42c81d1eab1113cfa188e350df03e8cf734a67d14611953f9b92353911b68e45bc27d3d
Domain:              	**.com
Running deployments: 	14
Available(SWAN-ETH): 	0.98691
Collateral(SWAN-ETH):	0.95000
UBI FLAG:            	Accept
Beneficiary Address: 	**

its also noteworthy that the tasks no longer are refundable. they are "completed" after just some minutes

@Normalnoise
still no new jobs...

Error: register cp to ubi hub failed

the error shows: you have not report your cp info to the ubi-engine, so you can not get the ubi task; you must re-init the cp account to ensure no error happen

its also noteworthy that the tasks no longer are refundable. they are "completed" after just some minutes

@ThomasBlock  I have noticed this issue, it is a bug, we need more time to fix it. if you need more swan token, please let me know. the refund function will be fixed as soon as possible

Error: register cp to ubi hub failed

the error shows: you have not report your cp info to the ubi-engine, so you can not get the ubi task; you must re-init the cp account to ensure no error happen

so what should i do? i ran it again , same error
computing-provider init --ownerAddress 0xfe017Ff8F0C7349845Ab52E58FcA96143f2c4981 --beneficiaryAddress 0x269EBeee083CE6f70486a67dC8036A889bF322A9
Contract deployed! Address: 0x8A878316d185a05edF4A63E92B81737d807E8762
Transaction hash: 0x33d1550790fe4f6c2f4aae2f61c77ef4148690d173a477f63675a8e02957cd8a
Error: register cp to ubi hub failed

it really seems liek there is a general problem with the hub, as other discord members report. can you check that?

you can try it again:

delete the $CP_PATH/privateKey
re-init computing-provider account to ensure there is no error.

you can try it again:

delete the $CP_PATH/privateKey
re-init computing-provider account to ensure there is no error.

i tried that now 4 times. everytime i see
Error: register cp to ubi hub failed
Is there anything else which needs to be done after the Collateral change? i wrote in my config file
SWAN_COLLATERAL_CONTRACT="0xdc200f89258e72aC3602dD23BD3642C4bd4eE34e"
but the collateral differes between the hub and my software - so where could be the problem here?

Ha..2 hours ago something changed in the network:
my tasks jumped from 10 to 110.
Collateral still 0.95000, but i guess something good happened on the network!
seems to be on whole network:

on the other hand this is as all the cpu cores are now blocked and so we still cannot lease GPUs..

we have fixed some issues, can you try it again to lease your GPU

we have fixed some issues, can you try it again to lease your GPU

thank you for the update. yes something changed. the spam taks disappeared recently. i could start the task on langrange. now there are new errors. seen this for two different deployments. did work earlier.
Error building Docker image: Error response from daemon: invalid reference format
Failed to extract exposed port: unable to open Dockerfile: open : no such file or director
time="2024-02-28 18:35:04.312" level=info msg="Job received Data: {UUID:cba67825-22b6-4b98-9aee-c70a50662303 Name:Job-cba67825-22b6-4b98-9aee-c70a50662303 Status:Submitted Duration:3600 JobSourceURI:https://api.lagrangedao.org/spaces/201d7532-8284-4ebd-b348-ff5ce862beda JobResultURI: StorageSource:lagrange TaskUUID:12e1f0a6-aece-4f4a-a3bc-da2e66ffc782 CreatedAt:1709141704 UpdatedAt:1709141704 BuildLog: ContainerLog:}" func=ReceiveJob file="cp_service.go:79"
time="2024-02-28 18:35:05.894" level=info msg="checkResourceAvailableForSpace: needCpu: 8, needMemory: 16.00, needStorage: 20.00" func=checkResourceAvailableForSpace file="cp_service.go:1210"
time="2024-02-28 18:35:05.894" level=info msg="checkResourceAvailableForSpace: remainingCpu: 2, remainingMemory: 16.00, remainingStorage: 348.00" func=checkResourceAvailableForSpace file="cp_service.go:1211"
time="2024-02-28 18:35:05.894" level=info msg="checkResourceAvailableForSpace: needCpu: 8, needMemory: 16.00, needStorage: 20.00" func=checkResourceAvailableForSpace file="cp_service.go:1210"
time="2024-02-28 18:35:05.894" level=info msg="checkResourceAvailableForSpace: remainingCpu: 10, remainingMemory: 53.00, remainingStorage: 1568.00" func=checkResourceAvailableForSpace file="cp_service.go:1211"
time="2024-02-28 18:35:05.894" level=info msg="gpuName: NVIDIA-4090, nodeGpu: map[:0 kubernetes.io/os:0], nodeGpuSummary: map[swan2:map[NVIDIA-A4000:1] swan3:map[NVIDIA-4090:1] swan7:map[NVIDIA-3090:1] swan8:map[NVIDIA-A6000:1]]" func=checkResourceAvailableForSpace file="cp_service.go:1217"
time="2024-02-28 18:35:05.894" level=info msg="checkResourceAvailableForSpace: needCpu: 8, needMemory: 16.00, needStorage: 20.00" func=checkResourceAvailableForSpace file="cp_service.go:1210"
time="2024-02-28 18:35:05.894" level=info msg="checkResourceAvailableForSpace: remainingCpu: 23, remainingMemory: 65.00, remainingStorage: 1593.00" func=checkResourceAvailableForSpace file="cp_service.go:1211"
time="2024-02-28 18:35:05.894" level=info msg="gpuName: NVIDIA-4090, nodeGpu: map[:0 kubernetes.io/os:0], nodeGpuSummary: map[swan2:map[NVIDIA-A4000:1] swan3:map[NVIDIA-4090:1] swan7:map[NVIDIA-3090:1] swan8:map[NVIDIA-A6000:1]]" func=checkResourceAvailableForSpace file="cp_service.go:1217"
time="2024-02-28 18:35:05.895" level=info msg="submitting job..." func=submitJob file="cp_service.go:124"
time="2024-02-28 18:35:05.895" level=info msg="uploading file to bucket, objectName: jobs/c094542f-3962-4633-94be-2963439c8165.json, filePath: /tmp/jobs/c094542f-3962-4633-94be-2963439c8165.json" func=UploadFileToBucket file="storage_service.go:52"
time="2024-02-28 18:35:06.808" level=info msg="uuid: 201d7532-8284-4ebd-b348-ff5ce862beda, spaceName: myDiffusion, hardwareName: Nvidia 4090 · 8 vCPU · 16 GiB" func=DeploySpaceTask file="cp_service.go:1019"
time="2024-02-28 18:35:07.013" level=error msg="http status: 400 Bad Request, code:400, url:https://api.multichain.storage/api/v2/oss_file/get_file_by_object_name?bucket_uid=878494a8-6ab7-4694-96ac-fc89a2afcbe1&object_name=jobs/c094542f-3962-4633-94be-2963439c8165.json" func=HttpRequest file="restful.go:127"
time="2024-02-28 18:35:07.013" level=error msg="https://api.multichain.storage/api/v2/oss_file/get_file_by_object_name?bucket_uid=878494a8-6ab7-4694-96ac-fc89a2afcbe1&object_name=jobs/c094542f-3962-4633-94be-2963439c8165.json failed, status:error, message:invalid param value:record not found" func=HttpRequest file="restful.go:154"
time="2024-02-28 18:35:07.013" level=error msg="https://api.multichain.storage/api/v2/oss_file/get_file_by_object_name?bucket_uid=878494a8-6ab7-4694-96ac-fc89a2afcbe1&object_name=jobs/c094542f-3962-4633-94be-2963439c8165.json failed, status:error, message:invalid param value:record not found" func=HttpGet file="restful.go:64"
time="2024-02-28 18:35:07.013" level=error msg="https://api.multichain.storage/api/v2/oss_file/get_file_by_object_name?bucket_uid=878494a8-6ab7-4694-96ac-fc89a2afcbe1&object_name=jobs/c094542f-3962-4633-94be-2963439c8165.json failed, status:error, message:invalid param value:record not found" func=GetFile file="file.go:56"
time="2024-02-28 18:35:07.167" level=info msg="Download 201d7532-8284-4ebd-b348-ff5ce862beda successfully." func=BuildSpaceTaskImage file="buildspace.go:33"
time="2024-02-28 18:35:07.278" level=info msg="Download 201d7532-8284-4ebd-b348-ff5ce862beda successfully." func=BuildSpaceTaskImage file="buildspace.go:33"
time="2024-02-28 18:35:07.391" level=info msg="Download 201d7532-8284-4ebd-b348-ff5ce862beda successfully." func=BuildSpaceTaskImage file="buildspace.go:33"
2024/02/28 18:35:07 Image path: build/0x7B0CEe1939a4AdA062EC79f4862a42C1F47B1806/spaces/myDiffusion
time="2024-02-28 18:35:07.392" level=error msg="Error building Docker image: Error response from daemon: invalid reference format" func=BuildImagesByDockerfile file="buildspace.go:80"
time="2024-02-28 18:35:07.392" level=info msg="Failed to extract exposed port: unable to open Dockerfile: open : no such file or directory" func=DockerfileToK8s file="deploy.go:91"
time="2024-02-28 18:35:08.303" level=info msg="file name:1_c094542f-3962-4633-94be-2963439c8165.json, chunk size:712" func=func1 file="file.go:217"
time="2024-02-28 18:35:09.313" level=info msg="Delete redis keys finished, keys: [FULL:201d7532-8284-4ebd-b348-ff5ce862beda]" func=1 file="task_service.go:286"
time="2024-02-28 18:35:10.480" level=info msg="jobuuid: cba67825-22b6-4b98-9aee-c70a50662303 successfully submitted to IPFS" func=submitJob file="cp_service.go:152"
time="2024-02-28 18:35:10.743" level=info msg="submit job detail: {UUID:cba67825-22b6-4b98-9aee-c70a50662303 Name:Job-cba67825-22b6-4b98-9aee-c70a50662303 Status:submitted Duration:3600 JobSourceURI:https://api.lagrangedao.org/spaces/201d7532-8284-4ebd-b348-ff5ce862beda JobResultURI:https://7d67303d2964.acl.multichain.storage/ipfs/QmWuN7LhTa2Bw6Fg3jwatUZVjd3D1a42haJAuSzMu5FVeK StorageSource:lagrange TaskUUID:12e1f0a6-aece-4f4a-a3bc-da2e66ffc782 CreatedAt:1709141704 UpdatedAt:1709141705 BuildLog:wss://log.bitstakehaven.com:8085/api/v1/computing/lagrange/spaces/log?space_id=201d7532-8284-4ebd-b348-ff5ce862beda&type=build ContainerLog:wss://log.bitstakehaven.com:8085/api/v1/computing/lagrange/spaces/log?space_id=201d7532-8284-4ebd-b348-ff5ce862beda&type=container}" func=ReceiveJob file="cp_service.go:119"
[GIN] 2024/02/28 - 18:35:10 | 200 |  6.431254455s |   <IP_ADDRESS> | POST     "/api/v1/computing/lagrange/jobs"

minesweeper on the other hand is working

because our storage service is maintaining, the Lagrange and space deployment is not available, but the ubi task can be done normally.

once the maintenance completed, there will be a announcement in the community in the discord

please upgrade to https://github.com/swanchain/go-computing-provider/releases/tag/v0.4.5


Add --uninstall option

These days, easy way to uninstall is a norm.

Fixed by https://github.com/shirok/get-gauche/commit/32d4de88d4d78b7f971b37672be905f1b71e59a8


the program isnt working anymore

There is a bazillon errors, please if this repository its going to get fixed somebody tell me :)

Aghh, sorry I haven't been working on this project for a while now. Let me know what errors you are getting.

Hey yeah no problem i understand it seems that it havent got the recognition it should have gotten!, Basically i was able to fix most of the issues related with the main.py file like the resolution etc i may be able to do a contribution with those fixes , but now the scheduler does not work at all, it does not find the elements to press the only ones that work are the email login, i was able to kinda fix it making it manual with inputs showing what date etc but yeah it would be nice if the scheduler actually worked

Probabbly tiktok just changed the elements and they have to be put again but if you can take a look at it it would be nice :)


Fix Firebase site association file for iOS

Firebase issue
iOS doesn't open the link because the firebase link association file is wrong
https://seedswallet.page.link/apple-app-site-association
=> This lists the old app first, but we don't use that anymore and so we don't get the link association from Firebase. I have asked their support to fix this, seems like we can't edit this directly (Grrrrrrr...)
The contents are like this:
{"applinks":{"apps":[],"details":[{"appID":"FC2EL78J4P.com.joinseeds.seedswallet","paths":["NOT /_/*","/*"]},{"appID":"9CX5MA4DG5.com.joinseeds.seedslight","paths":["NOT /_/*","/*"]}]}}

Apple parses this file left to right for the first matching link - and the first matching app here is the old, invalid app. So it won't work until this is fixed on the Firebase side.
I just deleted the old app so it could be that caching is still active - I will try this again tomorrow
Possible remedy is trying a new app prefix - I tried that but it had the same issue
https://seedslight.page.link/apple-app-site-association (same contents)
Again, could try this again tomorrow.

Fixed for reference this was the issue, sent to me in email (below)
New applink is this - correct
URL https://seedswallet.page.link/apple-app-site-association
Result:
{"applinks":{"apps":[],"details":[{"appID":"9CX5MA4DG5.com.joinseeds.seedslight","paths":["NOT /_/*","/*"]}]}}

Hi Nikolaus,
I'm Dani, and I'll be assisting you with your issue with Dynamic Links.
I see you've previously deleted your iOS app, and created a new one. With that said, there might be a discrepancy in your API Manager. You'll have to delete the previously attached OAuth Client from the old app, and that should fix the issue. As mentioned in our docs, deleting an app won't necessarily delete its associated OAuth Client. You can delete the OAuth Client by following the steps below:
First, go to the API Manager.
Then, delete the OAuth 2.0 client ID of the deleted iOS app.
Finally, check the apple-app-site-association file and the config of the deleted iOS app should be gone after a few minutes.
Let me know if you have any other questions or clarifications.
Regards,
Dani


Unable to use any commands or execute program

When trying to use the commands specified in the readme I get this error message. Also, I do not see any of the .jar files that look like should be generated during build.

Have you run make build?

Hi Matt,
I was able to use sbt package to create the jar file. I renamed the jar file to 'spdt-compute_2.12-0.1.0.jar' to 'spdt-compute.jar' and now I am seeing this error:

Prerequisite: you need sbt installed.
In the main directory, first run:
make build

Then run:
./bin/spdt --help

Thank you very much Matt. I am relatively new to Scala and sbt.


Does not connect to MQTT Broker..

HASS Workstation Service will not connect to broker.

Which port number is being used fir MQTT?
Can i enter a port number on "IP or Hostname" field?

I can connect to my broker with mqtt://XX.XX.XX.XX:8883 + [user] & [password]

Hi @ChrisPiel70!
The app does not support any ports except 1883 yet and it won't work when you add the port number in the "IP or Hostname" field.

Hi @ChrisPiel70!
The app does not support any ports except 1883 yet and it won't work when you add the port number in the "IP or Hostname" field.

This shouldn't be too much work so I'll get on it.

This shouldn't be too much work so I'll get on it.

This has been implemented and will be in the next release! This will be later today or tomorrow.

This has been implemented and will be in the next release! This will be later today or tomorrow.


Help: Toggle Class From Another Element?

Is it possible to toggle a class from another element, for example a slide navigation panel controlled via burger button. Once open close from another div.
Currently i have 2 buttons, the first opens the panel, adding active class, the second appears within that panel to close it, both are below...
Open Panel...
<button type="button" class="site-header__mobile-button lines-nav main-btn " data-toggle-class data-toggle-escape data-toggle-target=" .whole-page, .navigation-panel_holder, .navigation-panel_main, body" title="Navigation">Open Menu</button>
Once open close panel...
<button type="button" class="navigation-panel_main-button main-btn " data-toggle-class data-toggle-escape data-toggle-target=" .whole-page, .navigation-panel_holder, .navigation-panel_main, body" title="Navigation">Close Menu</button>
Both these work fine, but would it be possible to add another class, i'e an overlay outside of the panel so when you click anywhere else it toggles the above?
So a div click toggle class the above, the i try and set this up it seems to do funny things.

Thanks for your question.
Did you try adding data-toggle-outside attribute on your trigger button ?
By the way, if your close button is inside your navigation panel, you only need to add data-toggle-trigger-off attribute, nothing else.
Hope that will help you.

Thank you for the suggestion, the above buttons appear separately.
Unfortunately your suggestion doesn't work, because its a div that wraps everything, so clicking anywhere obviously turns it on.
<div type="button" data-toggle-class data-toggle-escape data-toggle-target=" .whole-page, .navigation-panel_holder, .navigation-panel_main, body"  class="whole-page" data-toggle-outside>
Ideally i only want the one above to function when it has an  is-active class on it.

Ok, is this what you need ? https://codepen.io/Twikito/pen/VdJVop

Yes! Perfect, how does the day area know to close it again?

"the day area" ?


Add Deepscatter in projects list

Innovative project (I'm biased) under active development.

Neat project! Thanks for the contribution!


Wallclock

Allows a user to advance wall clock time in the topology test driver. This is needed in order to test the punctuate function in custom processors. If this approach is OK, I will add a test.

Sweet I'll have a look today! Thanks

Hi @WesselVS , can you have a look at https://github.com/jpzk/mockedstreams/pull/68, the interface should be good to go, but I have problems with writing a test, it's not straightforward to add a processor, since the output sink is not automatically patched. Would be great if you can have look. Thanks for the contribution so far!


Some shortcut combinations make one of them not to work

Same issue here - M1 Macbook Air on latest version

@Bryceshaw06 @xezrunner Can you guys try v0.10.0? Let me know if the issues are fixed :)

@pablopunk It did not fix it for me. I am on the latest version, and the commands I'm trying to use are "Command" for "Move" and "Alt+Command" for "Resize". https://share.cleanshot.com/wGq9Jxst

Can confirm that there is still an issue with shortcut overlap.
https://github.com/pablopunk/SwiftShift/assets/8061077/20ffc71d-47d5-497e-9de5-675bdab1e4c7
However, on Ventura, the app now works when screen recording as well, something it did not do with one of the initial versions.

This seems to be a different issue to the one I solved (which was just triggering both actions at the same time, so one would shadow the other one).
This one only happens when one shortcut contains the other one (⌘⇪ contains ⌘) but I'm having a hard time fixing the code.
https://github.com/pablopunk/SwiftShift/blob/05305abd56a80e4aa541d82a08b6e7fcaf02253c/Swift Shift/src/shortchuts/ShortcutsManager.swift#L112-L116
Both shortcuts pass the second check because ⌘⇪ contains ⌘, so I think by inverting the check (⌘ contains ⌘⇪) it should work but the AlgebraSet might not work as I think 😅, cause this makes no shortcut to be triggered:
 if event.modifierFlags.isDisjoint(with: shortcut.modifierFlags) {
     MouseTracker.shared.stopTracking(for: action)
-} else if event.modifierFlags.contains(shortcut.modifierFlags) {
+} else if shortcut.modifierFlags.contains(event.modifierFlags) {
     MouseTracker.shared.startTracking(for: action)
 }

Well I asked ChatGPT and it completely solved the issue by using something I didn't know about (converting the events using .deviceIndependentFlagsMask). Should have done that much earlier.

@xezrunner @Bryceshaw06 Please check out the latest release and see if the issue is finally fixed 🙏🏻  https://github.com/pablopunk/SwiftShift/releases/tag/0.13.0

Works great @pablopunk ! Thanks for the fix!


Permit Signature checker only accepts Smart wallet signatures from deployed contracts

Hello,
my team is working on an app that primarily uses USDC and we are attempting to integrate the new coinbase Smart Wallets into our app. We utilize the permit function for off-chain gasless approvals for users, through which the user will sign an eip712 message that will authorize an allowance for their usdc tokens.
The issue we ran into is that the permit signature was not accepted for brand new created coinbase smart wallets, but i think this applies to smart wallets in general maybe.
It seems when the signature is submitted to USDC erc20 contract it gets a failing EOA signature error. I found the code i believe fails and it seems the SignatureChecker expects a smart wallets code to be deployed to the blockchain. However, from what I read the smart wallet code is deployed when the owner first initiates a transaction from the wallet. So new wallets that may have received tokens can not have their signed messages approved.
Link to code: https://github.com/circlefin/stablecoin-evm/blob/f64f01f93ea4e4b3a88be1de716fc0ada88f798c/contracts/util/SignatureChecker.sol#L43C14-L43C24
I'm reading more into offchain signature verification for undeployed smart wallets, erc-6492

https://eips.ethereum.org/EIPS/eip-6492
https://medium.com/@adeolasola01/erc-6942-signature-validation-for-pre-deploy-contracts-78724cdd6c33
https://docs.stackup.sh/docs/erc-4337-validating-signatures-guide

This is my first issue submission. What steps would need to be taken to bring this change about?
Edit: off the top of my head, i wonder if updating the  conditional w/ isContract to also check if the signature ends with the predeploy magic bytes (0x6492649264926492649264926492649264926492649264926492649264926492) may be a suitable check to init a smart wallet signature check; I can attempt an example PR tomorrow to demonstrate

i don't have permissions to create a PR (understandably so). But something like this may suffice.
    function isValidSignatureNow(
        address signer,
        bytes32 digest,
        bytes memory signature
    ) external view returns (bool) {
        if (!isContract(signer) && !isCounterfactual(signature)) { // <--- Additional check here
            return ECRecover.recover(digest, signature) == signer;
        }
        return isValidERC1271SignatureNow(signer, digest, signature);
    }
    ...

    /**
     * @dev Checks if the input address is a smart contract.
     */
    function isContract(address addr) internal view returns (bool) {
        uint256 size;
        assembly {
            size := extcodesize(addr)
        }
        return size > 0;
    }

   /**
     * @dev Checks if the signature is a predeploy counterfactual signature per eip-6492
     * link: https://eips.ethereum.org/EIPS/eip-6492
     */
    function isCounterfactual(bytes memory _signature) internal pure returns (bool) {
        bytes32 ERC6492_DETECTION_SUFFIX = 0x6492649264926492649264926492649264926492649264926492649264926492;
        return bytes32(_signature[_signature.length-32:_signature.length]) == ERC6492_DETECTION_SUFFIX;
    }


Getting error 400 while fetching CLa Groups created on staging environment

Getting error 400 while fetching CLa Groups created on staging environment
{"error":true,"message":"network timeout at: https://api-gw.staging.platform.linuxfoundation.org/cla-service/v4/foundation/a097c000007p4zBAAQ/cla-groups","source":"resource"}
https://images.zenhubusercontent.com/194341141/ca26cb44-f1ca-4151-beac-7d3ec771fd44/recording__176.mp4

This was fixed by David and deployed to DEV & Staging.
Manish has verified it on Staging and found it to be working fine now.
So, marking this ticket as QA Done.

This is deployed to PROD through https://github.com/communitybridge/easycla/releases/tag/v2.0.19


Support nested Switches

Hi, I've read the docs to see if nested Switches are supported (a longstanding wish), and I think they are not, so I wanted to make a feature proposal.
The idea is that a switch picks the first matching route or switch. A switch matches if one of its routes (or switches) matches. It's basically the Composite pattern.
The use-case is this one:
<Switch>
    <Route path="blue/one"/>
    <Route path="red/one"/>
    <Route path="bread/one"/>
    <Route path="apple/one"/>
</Switch>

If I want to create separate route groups for "color" or "food" then it would be great if I can refactor this to
// Switch that renders either ColorsSwitch or FoodsSwitch.
// This approach can be used to clean up switches with many routes.
// It can also be used to reuse switches in different locations.
<Switch>
    <ColorsSwitch/>
    <FoodsSwitch/>
</Switch>

const ColorsSwitch = () => {
    return (
        <Switch>
            <Route path="blue/one"/>
            <Route path="red/one"/>
        </Switch>
    )
}

const FoodsSwitch = () => {
    return (
        <Switch>
            <Route path="bread/one"/>
            <Route path="apple/one"/>
        </Switch>
    )
}

@schmitch It's a bit hard to follow what your problem with nested routes is. Can you give an example of the thing that doesn't work for you, but only using Switch and Route? (and no custom components)

@mnieber actually the custom components is the problem.
we prefer them to make nested routes since we have tons of routes

I need something like this so that some routes share a context provider.
<Switch>
  <Route path="/a" nest />
    <Provider>
      <Switch>
        <Route path="/1" />
        <Route path="/2" />
      </Switch>
    </Provider>
  </Route>
  <Route path="/b" />
</Switch>

@haggen  It looks like your example would already work with the current Switch. Doesn't it work?

@mnieber Oh indeed it does! Reading the docs I was under the impression that Routes needed to be directly nested. Thanks!


making event/mask->set a bit faster

Before: complexity of the func event/mask->set in the worst case is linear to size of the input param keys.
Now: worst case complexity bound by highest bit position in the param mask.

It appears to be as slow in the best case, and at least 2x slower in average case:
  (criterium.core/quick-bench
    (mask->set 0x55 [:caps-lock :shift :control :alt :win-logo :linux-meta :linux-super :mac-command :mac-option :mac-fn]))
=> Execution time mean : 283,523285 ns

  (criterium.core/quick-bench
    (mask->set2 0x55 [:caps-lock :shift :control :alt :win-logo :linux-meta :linux-super :mac-command :mac-option :mac-fn])))
=> Execution time mean : 592,513362 ns

  (criterium.core/quick-bench
    (mask->set2 0x1 [:caps-lock :shift :control :alt :win-logo :linux-meta :linux-super :mac-command :mac-option :mac-fn])))
=> Execution time mean : 294,927788 ns

Seems a bit better for small masks, and in the same time it should be better for very long keys
(criterium.core/quick-bench
  (mask->set-current 0x55 [:caps-lock :shift :control :alt :win-logo :linux-meta :linux-super :mac-command :mac-option :mac-fn]))
=> Execution time mean : 1.376686 µs

(criterium.core/quick-bench
  (mask->set-candidate 0x55 [:caps-lock :shift :control :alt :win-logo :linux-meta :linux-super :mac-command :mac-option :mac-fn]))
=> Execution time mean : 1.386406 µs

(criterium.core/quick-bench
  (mask->set-current 0x1 [:caps-lock :shift :control :alt :win-logo :linux-meta :linux-super :mac-command :mac-option :mac-fn]))
=> Execution time mean : 1.102889 µs

(criterium.core/quick-bench
  (mask->set-candidate 0x1 [:caps-lock :shift :control :alt :win-logo :linux-meta :linux-super :mac-command :mac-option :mac-fn]))
=> Execution time mean : 570.107321 ns

Thanks! Merged as ed76cccaec34c6127c45d43a7655a80aba666114


MPI typecheck

For the MPI interceptor library, adds

type checks for builtin MPI types
(partial) type checks for MPI types constructed with one of the MPI type combiners (unsupported combiners and arguments are documented in the MPI interceptor README)
checks for whether the buffer given to an MPI call is large enough for the given count w.r.t. the MPI type and buffer type

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
2 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.03%) to 88.762%

Files with Coverage Reduction
New Missed Lines
%

lib/runtime/Runtime.cpp
2
90.0%

Totals

Change from base Build<PHONE_NUMBER>:
-0.03%

Covered Lines:
3175

Relevant Lines:
3577

💛  - Coveralls


macchina: 0.6.9 -> 0.7.2

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/macchina/versions.
meta.description for macchina is: "A fast, minimal and customizable system information fetcher"
meta.homepage for macchina is: "https://github.com/Macchina-CLI/macchina"
meta.changelog for macchina is: "https://github.com/Macchina-CLI/macchina/releases/tag/v0.7.2"
Updates performed

Rust version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

/nix/store/505fsywrf7xkrdfm28acafq7nprlfr1m-macchina-0.7.2/bin/macchina passed the binary check.

1 of 1 passed binary check by having a zero exit code.

1 of 1 passed binary check by having the new version present in output.

found 0.7.2 with grep in /nix/store/505fsywrf7xkrdfm28acafq7nprlfr1m-macchina-0.7.2

found 0.7.2 in filename of file in /nix/store/505fsywrf7xkrdfm28acafq7nprlfr1m-macchina-0.7.2

directory tree listing: https://gist.github.com/5938a462b54b9493bf20cf31230aaa05

du listing: https://gist.github.com/256ee26a6f5be4c8bbbc8a19fe6c0c19

Rebuild report (if merged into master) (click to expand)

4 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
1 i686-linux rebuild(s)
1 x86_64-darwin rebuild(s)
1 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
macchina

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/505fsywrf7xkrdfm28acafq7nprlfr1m-macchina-0.7.2 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A macchina https://github.com/r-ryantm/nixpkgs/archive/fef20991e894dea59f4522b272e57124227492ec.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/505fsywrf7xkrdfm28acafq7nprlfr1m-macchina-0.7.2
ls -la /nix/store/505fsywrf7xkrdfm28acafq7nprlfr1m-macchina-0.7.2/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

macchina

Maintainer pings
cc @414owen for testing.

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

1 package built:

macchina


Implement Bellman-Ford Algorithm in Java

add your code here

Please do assign it to me !! @aritra-tech

Please do assign it to me !! @aritra-tech

sure


[Bug]: Select into statement returns always -1 updated rows

What happened?
SELECT CAST(serverproperty('babelfishversion') AS VARCHAR) : 4.3.0
select 1 as c1 into #tmp --updated rows = -1 : wrong, should be 1
babelfish return always -1 but sql server return always the real inserted rows count.
Babelfish works good with these statements :
create table #tmp2 (c1 int not null)
insert into #tmp2 (c1) values(1) --updated rows = 1 : good
update #tmp2 set c1 = 2 --updated rows = 1 : good
delete #tmp2 --updated rows = 1 : good
delete #tmp2 --updated rows =0 : good
Version
BABEL_4_X_DEV (Default)
Extension
babelfishpg_tsql (Default)
Which flavor of Linux are you using when you see the bug?
Amazon Linux
Relevant log output
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct.

I cannot reproduce this issue. On 4.3.0  as well as on earlier versions it works correctly for me:
1> select 1 as c1 into #tmp
2> select @@rowcount
3> go
rowcount
-----------
          1

(1 rows affected)

I got the good value if I do "select @@rowcount" after the select into statement.
I will reformulate my question.


Allow gestures to pass-through routes

Use case
Currently it is not possible to present a new screen using Navigator and still be able to receive touches in a screen that lays below.
This limitation does not allow to use Navigator for partly covering screen. A good example would be when a bottom-sheet-like screen needs to be presented above a full-screen map. In such cases map that lays below should still be able to receive touches so users can pan around.
Currently the only way to allow touch pass-through is to use OverlayEntry. It works but it is not ideal, especially when multiple screens needs to be presented.
Proposal
Please consider adding a route or a setting to an existing routes that allows touch pass-through to previous screen. This change would allow to use Navigator though-out the app and would not require the use of OverlayEntry.

This should be doable with a custom Route. I believe it is the ModalRoute that introduces the pointer blocking.

I am going to close this per my previous comment.


add MockEmail class

Based on @MGatner comment at https://github.com/codeigniter4/CodeIgniter4/pull/2785#issuecomment-607180488
Checklist:

[x] Securely signed commits
[x] Unit testing, with >80% coverage

I've added unit test for $autoClear parameter in send() method.

This looks good. We do need a way to incorporate testing failures, though, too. Not sure what the preferred way here would be, whether it's another method that specifies the result, or another parameter I'm not too concerned.
@MGatner thoughts?

Yes I think this is a great start. I was thinking of something like this:
	/**
	 * Record of mock emails sent.
	 * @var string
	 */
	public $archive;
...
	public function send($autoClear = true)
	{
...
		$this->archive[] = get_object_vars($this);

		return true;
	}

That way a test could check $mockEmail->archive to see the actual emails that were "sent". I don't think that code will work because of the scope but you get the idea.

@MGatner I've added $archive property for save properties on send() method called.

I realized that clear() methods clear the properties, so, I placed the archive saving after autoClear check.

Thanks @samsonasik this is precisely what I'd hoped for! Glad to see it wasn't too complicated either.

I realized that clear() methods clear the properties, so, I placed the archive saving after autoClear check.

@samsonasik I'm working on some tweaks to Email testing... Isn't the precisely what we don't want? Setting $this->archive = get_object_vars($this); after clear() means the values will always be blank. Should be before like you originally had it, right?


performance: find a way to stream the body into the parser

with ~150 lines of logs we "only" get around 2k RPS, with an empty body we get 50k RPS for the web-server component.
I'm not sure if this is possible with axum, but it would be good if we wouldn't need to convert the body to a byte buffer in the web handler.
So either pass the body to the background task and buffer it there, or even convert the parser into a streaming parser.

-- wrk.lua
wrk.method = "POST"
wrk.body = [[
473 <131>1 2023-02-20T07:16:58+00:00 host app postgres.2595527 - [DATABASE] [10-1]  sql_error_code = 28000 time_ms = "2023-02-20 07:16:58.219 UTC" pid="2105602" proc_start_time="2023-02-20 07:16:58 UTC" session_id="63f31e6a.202102" vtid="2/2324671" tid="0" log_line="2" database="postgres" connection_source="<IP_ADDRESS>(52440)" user="postgres" application_name="[unknown]" FATAL:  no pg_hba.conf entry for host "<IP_ADDRESS>", user "postgres", database "postgres", SSL off
]]

wrk.headers["logplex-drain-token"] = "logplex_token"

then run wrk http://localhost:3000 -s wrk.lua -t24 -c24 -d30s

just did a short test that reads the body in the async task, this directly doesn't help.
Probably we need to combine this with the BodyStream extractor

BodyStream also doesn't make it faster, the reason has to be somewhere else.

( there is also a chance that wrk is slow?)


more functions on tickets index

this enables updating the status of multiple tickets as once, while also making the process of merging tickets a lot easier.
Regards #164 but is not yet fully closing the issue as a new state "archived" is missing.
@BadChoice I don't know if there is a better validation for the tickets, i went with view ticket, to be honest i didn't work with this sort of validation yet. feel free to change.

Hey! this looks pretty good! just added a couple reviews that will make the code follow a bit more the current style, let me know if you have any question/comment

It looks perfect to me know, just those style merge conflicts
Thanks!!

done :)

Can’t this call in TicketStatusController ‘Ticket::findOrFail($ticketId);’ not better be:
$ticket = Ticket::find($ticketId);
if ($ticket){....}
Else the next ticketids in the request are not being processed?
Sorry if i’ve missed something, i’m watching this PR on my mobile.

findOrFail is a Eloquent Feature, so it comes with Laravel. Quote from the Laravel Documentation:

Not Found Exceptions
Sometimes you may wish to throw an exception if a model is not found. This is particularly useful in routes or controllers. The findOrFail and firstOrFail methods will retrieve the first result of the query; however, if no result is found, a Illuminate\Database\Eloquent\ModelNotFoundException will be thrown

So it would throw an Exception if the Ticket was not found - which should not ever happen anyways. But this way you get at least an error into the log file instead of Laravel failing quietly. Better have feedback than silence I'd say.


DOC: Add some comments to device.py + whitespace

Codecov Report

Merging #483 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master     #483   +/-   ##
=======================================
  Coverage   89.51%   89.51%
=======================================
  Files          53       53
  Lines        7466     7466
=======================================
  Hits         6683     6683
  Misses        783      783

Impacted Files
Coverage Δ

ophyd/device.py
90.99% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


Add support for CollectionInterface::reduce()

Background/problem
The library supports map() on CollectionInterface, but there is no reduce().
Proposal/solution
Add CollectionInterface::reduce() with the following signature:
/**
 * @template TCarry
 *
 * @param callable(TCarry, T):TCarry $callback A callable to apply to each
 *     item of the collection to reduce it to a single value.
 * @param TCarry|null $initial If provided, this is the initial value provided
 *     to the callback.
 *
 * @return TCarry
 */
public function reduce(callable $callback, mixed $initial = null): mixed;

Additional context
Since this is a change to the interface, it requires a major version bump.

Find an interface (among some others) for this here: https://github.com/loophp/collection/blob/master/src/Contract/Operation/FoldLeftable.php

Does "fold left" mean the same as "reduce?" I'm not familiar with the phrase "fold left."

Yes, see https://en.wikipedia.org/wiki/Fold_(higher-order_function)

Implemented in 0ca6ba5f4c3bc4f29e41b39c471a4e054155a5d7


update rust bindings to include scanner and highlights

connects #29
This fixes cargo test runs and includes the highlight queries in the rust package.

I think it's worth discussing whether tree-sitter-elixir should be published to crates.io and/or npm. Some grammars are published (for example ruby) but many are not, and those that are do not usually get updated frequently. Most of the larger tree-sitter consumers I know take dependencies on grammars by git (either by submodules or shallow-clones), and you can do that with cargo and npm, so IMO there isn't really any benefit in publishing them.

@the-mikedavis I agree with everything you said, using Git dependencies sounds fine, so let's wait until there's a clear need for it being published :)


Unable to properly parse url(fonts) in css from 3rd party node_module

Command
build, serve
Is this a regression?

[ ] Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was
no earlier version
Description
I have an esm type library that I implemented as a minimal reproduction project at: https://github.com/BppleMan/esm-lib.git.
When I introduced the esm module in angular, I got error： unresolved token in css.
So I wrote a minimal webpack.config and used @angular-builders/custom-webpack with webpack-merge it into ng cli's own webpack config.
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const fs = require("fs");
const {lstatSync, readlinkSync} = fs;
const path = require("path");
const {resolve} = path;

let esmLibPath = resolve("node_modules", "esm-lib");
const stat = lstatSync(esmLibPath);
if (stat.isSymbolicLink()) {
    esmLibPath = resolve("node_modules", readlinkSync(esmLibPath));
}

console.log("monacoPath", esmLibPath);

module.exports = {
    mode: "development",
    output: {
        clean: true,
    },
    module: {
        rules: [
            {
                test: /\.css$/,
                include: esmLibPath,
                use: [
                    MiniCssExtractPlugin.loader,
                    "css-loader"
                ]
            },
            {
                test: /\.ttf$/,
                include: esmLibPath,
                use: [
                    "file-loader"
                ]
            }
        ]
    },
    plugins: [
        new MiniCssExtractPlugin()
    ]
}

Above I get ng build/serve right, but when I look at the dist dir, I see that the main.css compiled by ng build resolves the font url to an absolute path, like:
@font-face {
	font-family: "codicon";
	font-display: block;
	src<EMAIL_ADDRESS>format("truetype");
}

The real problem this causes is when I run ng serve, I got error in the browser: Access to local files is not allowed<EMAIL_ADDRESS>I want to know how ng cli handles something like src: url(xxxx.ttf) when parsing .css$
Minimal Reproduction
https://github.com/BppleMan/angular-ivy-srhfxs.git
Exception or Error
No response
Your Environment
Angular CLI: 14.2.4
Node: 16.16.0
Package Manager: npm 8.11.0
OS: darwin arm64

Angular: 14.2.4
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1402.4 (cli-only)
@angular-devkit/build-angular   14.2.4
@angular-devkit/core            14.2.4 (cli-only)
@angular-devkit/schematics      14.2.4 (cli-only)
@schematics/angular             14.2.4 (cli-only)
rxjs                            7.5.7
typescript                      4.7.4
webpack                         5.74.0

Anything else relevant?
No response

Hi @BppleMan,
Thanks for opening the issue. Please be aware that custom Webpack configuration are not supported by the Angular team.


Update website/API docs to reflect 0.2

Can we update the website with the latest API documentation and make sure that the syntax on the front-page is what's in the current newsgroups pipeline?
I've got a few other cosmetic improvements that I'll make once this is done.

It probably also makes sense to start versioning the "api" directory in documentation like api/0.2/ and maybe have a symlink which points api/latest/ to api/0.2/. api/latest can then be the canonical place to find the documentation for the latest release.

Silly question, but where can I find the code for the website?

@tomerk Its in the gh-pages branch https://github.com/amplab/keystone/tree/gh-pages

This was merged already so I'll close.


Warning for incomplete papers, containing only title and abstract

Sometimes authors submit along with the abstract submission a pdf file containing only the title and abstract of the paper.
If they miss the paper submission deadline without withdrawing the paper, pdfchecker gives no warning.
This feature is more useful for conferences that have a separate deadline for the abstract submission, followed by another deadline for the paper submission.
In general, it would be nice to have a warning for suspicious short papers.

That's a good idea. I'll indeed add a warning for papers that are very short (1-2 pages) when the call asks for 10.

Thank you @avandeursen
This fix might also catch papers that were submitted by mistake to the Research Track, while they were intended for tracks with lower page limits, such as ERA, NIER tracks.


[bazel,manuf] Integrate platform transition in opentitan_binary

At the moment, opentitan_binary produces a ".elf" target with a platform constraint but it uses cc_binary on which we cannot define a transition. This means that any target that depends on such an ELF file will not trigger a transition and be built with the same platform (unless this rule defines a transition on its attributes). This is problematic for tests that needs to compile a tool with the host toolchain but build some artefact with the platform toolchain, hence the use of platform_target. This is not ideal though because the situation protentially repeats with every binary built by opentitan_binary so it makes more sense for this macro to always produce a target that triggers a transition. This commit specifies and implements that opentitan_binary now create an extra target named "_elf" (underscore instead of .elf) that triggers a transition.

I have pushed an experimental commit to try to make the .elf target transition always. This is trickier than I thought, we will see how much it break on the CI.

This breaks too many things. Unfortunately the signing rules make all kinds of assumptions on the names. This means that the we would need to use the transitioned elf binary as the source for all other binaries/artefacts used. This is not ideal because it means any provider created by cc_binary would need to be re-exported by rv_alias so it's very fragile.
I think it is better to keep the previous solution: create a target name .elf_transition. Long-term, the proper solution is for opentitan_functest to become a proper rule and define a transition on its inputs. This is a big undertaking though.

Thanks for exploring this @pamaury . Are we good to merge this now?

If you are happy with the bazel then yes this can be merged.

Ah sorry looks like this needs to be rebased to fix conflicts, because one of the platform_targets moved files recently. Then I can merge this. Sorry about that.

I have rebased and fixed the conflicts, hopefully the CI will be happy.


Textarea: console error

Info
When using the Textarea component you get a console error:

Code for the above:
<goa-form-item label="Court date">
  <goa-textarea goaValue [formControl]="testText" />
</goa-form-item>

testText = new FormControl();

Just a heads up, the issue doesn't exist with this combination of versions:
@abgov/angular-components: "3.0.0",
@abgov/web-components: "1.20.3"

But it does exist with these versions:
@abgov/angular-components: "3.0.1",
@abgov/web-components: "1.20.3",

It looks like @abgov/angular-components is to blame. This error can't be replicated with React.
Acceptance Criteria:

The Textarea component should not give a console error

:tada: This issue has been resolved in version 1.17.0-alpha.75 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version 4.17.0-alpha.32 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version 1.23.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version 4.22.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version 3.0.0-alpha.5 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


idris2Packages.buildIdris: add retroactive support for building a whole dependency tree with source

Another refactor that looks like more changes than it is if you glance at the GitHub line-changes.
This PR does two things primarily:

Support a passthru withSource attribute that can be used to take a derivation that would build without source and instead build it with source. This allows a project to depend on any number of packages built without source but then also have a developer shell that exposes all dependency sources to IDE integrations with a line as simple as inputsFrom = [ myPkg.withSource ];
Add a library' attribute to the output of buildIdris alongside the existing library attribute to make it less awkward to do the default thing of building without source (which I think is even more appealing now than ever before given the withSource attribute.

For example, one might have the following default.nix and shell.nix (note the use of library' in default.nix and withSource in shell.nix):
# default.nix
let
  inherit (pkgs) idris2Packages;

  someIdrisLibrary =
    idris2Packages.buildIdris {
      ipkgName = "some-library";
      src  = ./some-lib;
      idrisLibraries  = [ ];
    };

  myPkg =
    idris2Packages.buildIdris {
      ipkgName = "my-pkg";
      src  = ./.;
      idrisLibraries  = [ someIdrisLibrary ];
    };
in
myPkg.library'

# shell.nix
let
  myPkg = import ./.;
in
mkShell {
  inputsFrom = [ myPkg.withSource ];
}

This would conveniently mean no source code is packaged with the library by default but when used in a developer shell source code could be requested (even for all dependencies).
Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

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

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 351520

x86_64-linux

:white_check_mark: 2 packages built:

idris2Packages.idris2Lsp
idris2Packages.pack


[Storage] Confusing behavior accessing nonexistent Azure Queue Storage

Package Name: azure-storage-queue
Package Version: 12.1.3
Operating System: windows / linux
Python Version: 3.7.4

Describe the bug
When trying to access non-existent account of Azure queue storage, QueueClient is created w/out errors, and calling receive_messages() results in a long timeout (followed by an error).
To Reproduce:
Consider the following code:
from azure.storage.queue import QueueClient
conn = "<correctly formed connection string with invalid account name>"

print("Creating client")
queue_client = QueueClient.from_connection_string(conn, "thequeue")

print("Getting queue messages")
for x in queue_client.receive_messages():
    print(x)

This code prints both messages immediately, followed by a long (80 seconds) delay. Traceback of an error that follows is available here
The long timeout behavior is confusing, especially when you are debugging a program that has an endless loop over queue messages, and you are wondering, why it is not executing.
Expected behavior
One of the following options:

Error about non-existing account name upon creation of QueueClient (I understand this might not be possible, because additional REST call would be required)
Shorter timeout
Some indication in the error message about possibility of non-existing account.

Hi @shwars I was able to reproduce the issue, I'm gonna look into finding a solution for getting a shorter timeout and will get back to you :)

hi @shwars
This should be resolved if you set retry_connect=0 when initiating QueueClient, this will help throw immediately on connection failure. currently the connection_timeout=20 (seconds) you can set to a smaller value if you want.
Let me know if you have any questions!

Hi @xiafu-msft, thank you for the clarification. I was thinking about the possibility to manually setting timeout to smaller value. However, considering first-time user, it would be convenient to have timeout set to some reasonable value by default. 20 seconds is probably a reasonable value (although rather on a long side), but it is not clear why the actual waiting time in my case is 80 seconds, and not 20.

Hi @shwars
SDK defaults retry_connect=3, which means SDK will automatically retry to connect for you internally.
Setting retry_connect=0 will stop from retry when there's connection error.

Thanks for the explanation, @xiafu-msft. I understand where the problem is coming from. My concern is that for a non-experienced user who does not understand the internals this 80-seconds delay will look extremely strange, and make things more difficult to debug. Do you think that we should add the notice to docs saying that invalid queue name will result in a long timeout?

Hi @shwars
That's a good suggestion, we absolutely should make the doc better and friendly to non-experienced user!

Hi @shwars
Just an update.
It seems @tadam-msft has some thoughts to make (optional configurations)[https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/README.md#optional-configuration] more obvious to new customers.
Then probably we don't need to update the quick start doc, since this doc is for basic operations probably we want to keep it simple.
I think (SDK API doc){https://docs.microsoft.com/en-us/python/api/azure-storage-queue/azure.storage.queue?view=azure-python] could be a better place to have the info, let me know how you feel about that!

@xiafu-msft This problem was discovered as part of an end-to-end scenario, where I tried to evaluate how seamless is the technology for beginners. I believe that long 30 sec timeout instead of an error message is kind of misleading, and thus I think at least a short paragraph of text explaining this behaviour is nice to have in a quickstart document.

close this issue for now since the link has been added, feel free to comment on it or open a new issue if you have any other questions!


Seperate dev docs

We should separate out the current developer facing documentation in the README into a separate file, and add more user facing contents to the README. To say things like "This is what you should see in  the UI and how to navigate it. If you add a converter, it will show up here"

Outline

Intro to Data explorer

Notable Use Cases (User Stories)
How to register datasets

What is a dataset? (everything is a dataset)
Manually
Programatically

Using the data Explorer

Navigating nested data (left panel)
Launching Activities (left panel)
Surfacing Metadata (right panel)

How will this impact development in Jupyterlab

High level overview of what the implications of developing with the Data Registry.
Link out to full developer docs


CASMTRIAGE-5367: Rearrange (?i) option

Summary and Scope
The case-insensitive option (?i) needs to appear at the beginning of the regular expression line. If it does not, later versions of Python flag this as an error.
(cherry picked from commit ed6ffe7abcf2f79bb39760f56ca2af75132d9c42)
Issues and Related PRs
List and characterize relationship to Jira/Github issues and other pull requests. Be sure to list dependencies.

Resolves [CASMTRIAG-5367](issue link)
Change will also be needed in <insert branch name here>
Future work required by [issue id](issue link)
Documentation changes required in [issue id](issue link)
Merge with/before/after <insert PR URL here>

Testing
List the environments in which these changes were tested.
Tested on:

Crossroads24

Test description:
I uploaded and ran the new BOS image with the fix. I reran the triggering command, and it did not cause the BOS API to crash. Mission accomplished.

Were the install/upgrade-based validation checks/tests run (goss tests/install-validation doc)?
Were continuous integration tests run? If not, why?
Was upgrade tested? If not, why?
Was downgrade tested? If not, why?
Were new tests (or test issues/Jiras) created for this change?

Risks and Mitigations
Low; it's broken otherwise.
Pull Request Checklist

[x] Version number(s) incremented, if applicable
[x] Copyrights updated
[x] License file intact
[x] Target branch correct
[x] CHANGELOG.md updated
[x] Testing is appropriate and complete, if applicable
[x] HPC Product Announcement prepared, if applicable

As noted in the PR for this to the develop branch, I found an indentation error in one of the patterns being changed, and I also found that we are using illegal syntax in several of them. I made a PR which modifies the regular expressions to both fix the problem from the triage ticket and use legal expressions. I made one PR for develop and one PR into support/2.0 (which also includes the other API fixes, since they're going to end up there anyway, in order to make it into the auto-generated API docs).


mat-icon

As it's difficult to align font-awesome icons, try to use mat-icon fonts.
Extract home symbol from i-k font and add it to the menu-bar.

It's possible to specify mat-icon by adding class rules (like font-awesome).
There are many other techniques to add mat-icons (see the docs).
Icon alignments can be fixed by adding them in a mat-icon-button, taking benefits of ripple, but padding and margin must be overridden.
The menu symbol will be added  in issue #18.


ByuMapFragment: Closes #153

This change is

Reviewed 1 of 1 files at r1.
Review status: all files reviewed at latest revision, 1 unresolved discussion.

support/src/main/java/edu/byu/support/fragment/ByuMapFragment.java, line 38 at r1 (raw file):

	private static final String TAG = ByuMapFragment.class.getSimpleName();

	private static final int MAP_PADDING = 150;

Can you send me some before and after screenshots?

Comments from Reviewable

Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable


Don't use the Python namespace qurator

Using "qurator" requires coordination between all projects. → Avoid this.

Fixed in master.


Config used for update file path

Use config to setup the file path. We set it to our default, and explain in Readme how to change it and use with SD card option.
Small fixes in Readme - 2 options to use bootloader and app
Tested on K64F , both options that I described - merge bootloader + app and app via SD.
@ashok-rao @c1728p9 @MarceloSalazar

Do you want to merge this before the workshop starts? Or is it "safer" to keep it as before for now? We can answer questions as & when people start asking..

README.md  - those changes are important . Ican scrape config file and separate PR


Update to Cake 0.17.0

Cake 0.18.0 will requires at least version 0.16.x to work.

Hey @pascalberger,
Thanks for your PR!
I'm not sure that the reference to the package Cake.Testing is needed in main project (Cake.Yarn).

@MilovanovM Oops, no propably I didn't take care enough on the selected checkboxes while updating the package and you can remove the pacakge from  the main repo.


Adds Sports generator

Feature Description
Add a function to generator common college sports
Proposed Solution
This could be built from the list of NCAA sponsored sports, with some non-US additions like Cricket. College sports programs are typically gendered so having gendered versions would be useful (e.g. Soccer vs Women's Soccer vs Men's Soccer).  We can leave Soccer vs Football to an internationalize effort.
Please include test coverage.

Hi! I'm new to open source and would love to contribute. I opened a pull request for this issue if you could take a look.


embeddings

Hi, great project!
How hard would it be to extract embeddings from the LLMs?

func encode(_ text: borrowing String) -> [Token] should do it.
let text = "hello world"
let llm = LLM(...)
let embeddings = llm.encode(text)

but for decoding those embeddings back, you need to do this (for now) to avoid under the hood handling:
let text = embeddings.map({ llm.model.decodeOnly($0) }).joined()

i think i should work on decoding experience to be more smooth.

i think you have the wrong definition of LLM embeddings, and it's understandable because i was also once confused about the concept. you might want to check this comment. it's also the reason why i chose not to use the word "embedding" in this library
if you want to test the similarities between embeddings, you can cast the [Token] that's outputted by the encode function as [Float] and use it in a VectorDB, or check the cosine similarities between your choices.
for checking similarity between simple words like "king" or "queen" in your example, i suggest you to just use the apple's Natural Language Framework like this, as LLM token is chosen somewhat arbitrarily(as far as i know), there is no guarantee that "king" and "queen" is similar than "king" and "monitor".
i haven't tested myself but for just checking similarities between sentences or words you should use this similarity-search-kit library or use it with this together.

Thanks, very very helpful links!!!
LLM embeddings are usually a vector of floats, Token encodings are a vector of ints, casting these to float makes no sense, no confusion here ;)

i was just saying that you have the option to cast an array of ints as array of float so that you can check cosine similarity. after all, int is also just a valid one dimensional vector. i'm glad i was able to help you!

so, i researched a bit further on this, being not so sure if i understood the concept correctly. what you are referring to is not related to LLM, indeed. however, embedding models are usually used with LLM, usually for text search, and that's where the confusion occurs. aside from the fact that sometimes some refer tokens as embeddings, that is.
for example, mistral uses mistral-embed model, and openAI uses text-embedding-3-small, text-embedding-3-small, and text-embedding-ada-002. they are used and can be used in conjunction with LLM like mistral 7B, but it has no direct relation with LLMs. as machine learning models are just blackbox that we can not really look into so far, there is not a direct way to retrieve the "internal representation" of LLM either.

word2vec embeddings  were not related to LLM, but today embeddings are (mostly) done via LLMs, or as you pointed out correctly SLMs (small language models) although some believe that using a truely large LLMs also give better embeddings.

there is not a direct way to retrieve the "actual internal representation"
I think your research yielded a wrong result there. while using all current activations as embedding would be overkill, LLM embeddings are indeed calculated through some activations:

• Last Layer Embeddings: Using the activations from the last hidden layer of the model as the embedding for a word or sentence.
• Concatenation of Multiple Layers: Combining activations from multiple layers to form a richer representation.
• Pooling Strategies: Applying operations such as mean or max pooling over activations from one or more layers to create fixed-size embeddings.


Windows 11 compatability

Just a simple question will winget be compatible with windows 11 releasing later this year?

Yes - A simple answer 😊.


feat: enable prompt template on all urls

:tada: This PR is included in version 1.4.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Qualifying to Pre-Elimination: CodeChef Solution

Aim

What is the objective of the Script
I want to add the solution of this problem https://www.codechef.com/SDPCB21/problems/QUALPREL  in CodeChef Folder.
Can you please assign me this issue under Hecktober fest label?

Details

What the features will your script have
I want to give the solution of this problem in C++. I will give the clean code with proper comments and explanation.

Programming language

[ ] C
[x] C++
[ ] Java
[ ] Python

@Ayush7614  Can you please assign this issue to me under Hecktoberfest?

Can you please assign this issue to me under Hacktoberfest?


Update keycloak-adapter-core, ... to 24.0.3

About this PR
📦 Updates

org.keycloak:keycloak-adapter-core
org.keycloak:keycloak-admin-client
org.keycloak:keycloak-core

from 21.1.2 to 24.0.3 ⚠
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

🔍 Files still referring to the old version number
The following files still refer to the old version number (21.1.2).
You might want to review and update them manually.
src/main/scala/akkahttp/oidc/OIDCKeycloak.scala

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.keycloak" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.keycloak" }
}]

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

Superseded by #869.


Replace knowledge with multiple sources

I'm getting a issue of when I trying to replace the knowledge with multiple sources of QnA pairs.
This is the JSON request body of what I'm going to update to the existing knowledge base. I'm using the Replace knowledge method of doing it.
Is there any problem with my JSON? The code is running good if I remove the last question and answer with different source. But I need to know how to replace it with multiple sources of questions and answers?
  @"
    {
      'qnaList': [
        {
          'id': 0,
          'answer': 'Hello, this is the Test-KB QnA KB (Replaced)',
          'source': 'Custom Editorial',
          'questions': [
            'hello',
            'hi',
            'how are you'
          ],
          'metadata': [
            {
              'Name': 'Category',
              'Value': 'Greeting'
            },
            {
              'Name': 'Keyword',
              'Value': 'Hello'
            }
          ]
        },
        {
          'id': 1,
          'answer': 'Morning, how can I help you with Test QnA KB',
          'source': 'Custom Editorial',
          'questions': [
            'Morning',
            'Good morning'
          ],
          'metadata': [
            {
              'Name': 'Category',
              'Value': 'Greeting'
            },
            {
              'Name': 'Keyword',
              'Value': 'Morning'
            }
          ]
        },
        {
          'id': 2,
          'answer': 'I'm a test knowledge base of Team',
          'source': 'Identification',
          'questions': [
            'name',
            'who are you'
          ],
          'metadata': [
            {
              'Name': 'Category',
              'Value': 'Identify'
            },
            {
              'Name': 'Keyword',
              'Value': 'Team'
            }
          ]
        }
      ]
    }
    "

@CalvinFengDatacom
Thanks for the feedback. We are actively investigating and will get back to you soon.

@femsulu  Hi, thank you for your response. It's actually my mistake. This method is working great! I had added an inappropriate apostrophe in the last answer "I'm", where I should added a terminate mark like "\'".
So, it's not your fault. It's actually mine.


Print error message when await is not followed by signal or coroutine

When await was not followed by a signal or coroutine the GDScript parser would
crash.
This fix will check if await is followed by a signal or coroutine in case that
isn't true (element == nullptr) then an error message is printed.
This PR should fix #51560.

Looks good to me, please squash the commits together so we can merge this. See PR workflow for instructions :slightly_smiling_face:

Thanks @Calinou, I tried that yet when I try to (force) push the result, I get the following error:
To https://github.com/williamd67/godot.git
 ! [remote rejected]       fix-await-without-argument -> fix-await-without-argument (refusing to allow a Personal Access Token to create or update workflow `.github/workflows/android_builds.yml` without `workflow` scope)
error: failed to push some refs to<EMAIL_ADDRESS>
As far as I can see, was .github/workflows/android_builds.yml not changed on my branch.
I also checked my git configuration and don't see anything unusual, so it would be really appreciated if someone could support me with this error.

Thanks @Calinou, I tried that yet when I try to (force) push the result, I get the following error:

To https://github.com/williamd67/godot.git

 ! [remote rejected]       fix-await-without-argument -> fix-await-without-argument (refusing to allow a Personal Access Token to create or update workflow `.github/workflows/android_builds.yml` without `workflow` scope)

error: failed to push some refs to<EMAIL_ADDRESS>

As far as I can see, was .github/workflows/android_builds.yml not changed on my branch.
I also checked my git configuration and don't see anything unusual, so it would be really appreciated if someone could support me with this error.

You need to add the Workflow right into your github access token configuration

Thanks that solved it.


Show technical info in track listing

Add option to show technical info when listing tracks in browse view.

Implemented in devel branch.


Feature/126 accordion table sort and group no value fields

Types of Changes
Prerequisites
Please make sure you can check the following two boxes:

[x] I have read the CONTRIBUTING document
[x] My code follows the code style of this project

Contribution Type
What types of changes does your code introduce? Put an x in all the boxes that apply:

[ ] Bug fix (non-breaking change which fixes an issue, please reference the issue id)
[x] New feature (non-breaking change which adds functionality, make sure to open an associated issue first)
[x] Breaking change (fix or feature that would cause existing functionality to change)
[x] My change requires a change to the documentation
[x] I have updated the documentation accordingly
[x] I have added tests to cover my changes
[x] All new and existing tests passed

Description
See #126.

fix sorting of items that don't have a value for the sortBy/groupBy column
change order of items so that items without a value are moved to the end of the list
AccordionTable:

add a separate pseudo-group for items that don't have a value for the groupBy column
add an optional prop to define the label for this new pseudo-group

change sorting for values of type number so that 0 isn't handled as falsy anymore but instead is sorted and grouped like other numbers

Breaking changes: At the moment the handling of Tables with items that don't have a value defined for the sortBy/groupBy column isn't working correctly so I assume that most people don't have not-defined values in their data. However, as this PR changes the way not-defined values are handled in theory it could change the behaviour of existing apps that depend on the (wrong) sorting and grouping of not-complete items.

Hi @dimabory. This is true, the first PR was merged to master by mistake and therefore the changes were not included in newer alpha-releases on npm. I talked to @guiherzog and he suggested to create a new PR targeting develop this time.
Sorry for the trouble.


Broken filter vcxproj.filters file

I noticed while including a .hpp file I had created in the features folder, I didn't have to add "features/" inside the include. I looked into it some more and it turns out that everything I create gets put into the root directory of my project for what ever reason. It also seems that the utilities that are supposed to be in the helpers folder are just in the root directory according to Visual Studio (2017) as well. I did some looking around and it seems like the vcxproj.filters file is broken. I've tried fixing it multiple times with no luck.
Anyone have a fixed version or willing to fix it?
EDIT: Here is what Visual Studio shows inside the workspace (http://i.imgur.com/nzzWqbc.png) which I know is incorrect by just looking at the folders/files inside the project's directory.
EDIT 2: I've fixed most of the issue(s), everything is displayed correctly in Visual Studio, all of the folders have their correct name(s), but when I create a .cpp file or .hpp file in lets say the features folder, it still puts it in the root directory of the project. If anyone wants the semi-fixed vcxproj.filters file here it is: https://pastebin.com/raw/mGLX7SQS

You realise the folders in vs aren't actual directories?

they are filters


Missing Info.plist file in iOS framework

I am compiling from source for iOS. Everything works fine when I use the framework in OS X, but when I try to use the simulator, I get this error:
2015-07-21 9:14:58.803 PM com.apple.CoreSimulator.CoreSimulatorService[4326]: Error Domain=LaunchServicesError Code=0 "The operation couldn’t be completed. (LaunchServicesError error 0.)" UserInfo=0x7fbf3c60ccf0 {Error=PackageInspectionFailed, ErrorDescription=Failed to load Info.plist from bundle at path /Users/ezat/Library/Developer/CoreSimulator/Devices/EDAD2677-B611-43B5-842A-ABC09D1A54F0/data/Library/Caches/com.apple.mobile.installd.staging/temp.PLoi5C/extracted/NopaliMobileLicenseSupport.app/Frameworks/NMSSH.framework}
It seems that simulator needs an Info.plist file. I tried adding a fake one, but then there another error comes up stating that the plist is missing a CFBundleIdentifier.
Are there any workarounds that you know of?
Thanks

Ezat

You may have already found the answer to this, but just incase someone else is reading, this problem drove me crazy, so I thought I would let all looking for an answer know how I solved it..

I removed references and completely deleted the framework NMSHH.framewark from my Xcode project.

Opened Simulator, chose Simulator/Reset Content and Settings..

In Xcode, I did a Product/Clean and while holding alt down, did a Product/Clean Build Folder. I think if you do the latter of the 2, Product/Clean is unnecessary, but I was grabbing at straws

To add the framework back to the project, I chose the target/Build Phases and added a new Copy Files phase.

Made destination "Frameworks", TICKED "Copy only when installing" before adding the framework ( this part is in bold because it is the only thing that I changed from my original attempt ) added the framework to the copy files phase.

My blood pressure is back to normal now..
Hope this helps..


Not all colors changed in graph editor, when theme switch from dark to light(or light to dark)

Godot version:
3.0
OS/device including version:
no matter
Issue description:
Incorrect colors

Steps to reproduce:
Change the theme to light, restart the editor, change the theme to dark

The question is, should the editor be restarted after a theme change?

Ah, no, it begin invalid even wtihout restart

Yes. But restarting fixes it. There are two ways to solve this:

Fix it properly. Change icons/colors accordingly. Users can still use the editor without restarting.
Just a warning text that says you should restart the editor.

I prefer 1), since most other things work flawlessly already. Probably it is just a missing NOTIFICATION_THEME_CHANGED handler.


[CHALLENGE SUBMISSION] Week 04 - Python!

Please provide the following information for your submission:
What is your name? (First, Last)
Rebecca Trapani
Where is your GitHub Repo ?(Link to your challenge solution)
Detailed instructions: https://github.com/errbufferoverfl/violet-lobster
Python Solution: https://github.com/errbufferoverfl/violet-lobster/tree/main/week-04
Azure Function Endpoint: https://big-bbq.azurewebsites.net/api/calcbudget?budget=99999
What Challenge is this for? (Challenge number between 1 and 7)
4
(Optional) Anything else we should know? e.g., language used, location, blog post, tell us how you solved this solution, including any challenges you faced solving it.
I originally tried to use linear programming to try and find the optimal amount of each food but I didn't have enough constraints so the program was just really keen about buying halloumi.
In the end I ended up defining an estimated amount people would eat, in this case 700g and then a percentage of what people would eat, for example 25% fillet, 5% potato, 5% mushroom etc. based on this I could determine how much each person would want to eat and the cost per person. From there I could then divide my budget by that cost per person and work out how much I would spend!
I spent a fair bit of time working on the linear programming so when that didn't work I ended up just focusing on providing the answer we originally wanted i.e how many people can we serve based on our budget but also added in the cost per person, and amount of change left.
It also provides you with a helpful shopping list so you buy the 🎇 perfect 🎇 amount! I might use this to work out what I need to buy for Christmas day 🤔

I love how the list is ready to be printed and off we go for grocery shopping. Thank you @errbufferoverfl!

From all of us at Developer Relations at Microsoft, thank you for participating in #SeasonsOfServerless and submitting a solution!

Feel free to share your solution on Twitter with the tag #SeasonsOfServerless.

Thanks for your awesome submission!
🎉 We've now added you and your solution to the Hall of Fame. 🎉


Curl broken again

upstream php images have been updated and so they now include curl 7.64.0 which causes the issue in https://github.com/amazeeio/lagoon/issues/923 to happen again

https://github.com/amazeeio/lagoon/commit/9f6a1308421ae4486c76bbbf19a7b39a3c47cfd8 installs a specific older version of curl, to prevent the issue from happening

for people affected:
change the FROM in your Dockerfile.cli to:
amazeeio/php:7.x-cli-drupal-v0.21.0
replace the 7.x with your php version already in Dockerfile.cli

this is released: https://github.com/amazeeio/lagoon/releases/tag/v0.21.3

Unfortunately just downgrading curl wasn't enough, we also need to downgrade libcurl:
https://github.com/amazeeio/lagoon/commit/38a3efa5242d606e715a8984b77fa99599884268

closing has been released in  https://github.com/amazeeio/lagoon/releases/tag/v0.22.0


Design for larger class sizes

My original design assumed a teacher who leads a class. So the UI is based on an assumption that there will be at most 30 students in the class list.
It does work with larger groups.... sort of. (There is a hard limit of 254 students in a class because of the data type used to store the limit).
Increasingly I'm getting requests for schools that ask for a class of 100 students or 200 students. While this is do-able, I'm not sure it's a great experience. It'd be worth looking into what could be done to make this better.

After speaking with many teachers, they definitely want to be able to manage more students.  I believe these educators do not have class sizes over 30 students. In reality, they would like to support multiple classes and need to be able to manage more than 30 students. For example, two classes of 25.  How I managed this in the classroom was each of my 20 computers stations essentially had an account that students shared between classes. This however can get tricky when you have students work on many ML for Kids projects.
My suggestion is a feature where teacher accounts can create multiple classes. Under student management you would first create a class/course/group and name it, then you can add"new student" or "multiple students" to that selected group.
Then you can define the max number of students per class and the max number of classes a teacher account can have. I am not sure what those limits need to be.

I teach middle school in the United States. I have 6 classes in total, two of which are computer Science. One of those has 31 students, the other has 37. I would definitely appreciate the option for more students.

@rhelmstedter This isn't so much about an option for more students - which is already possible (please email me your class details and I can update your class) - but about improving the usability for managing larger classes.


Added links to contributors profiles

I'm not after the hacktoberfest swag... but it doesn't mean I can't use this PR for it 😂

/approve


Can't find device

Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):

Consider checking out SDK examples.
Have you looked in our documentations?
Is you question a frequently asked one?
Try searching our GitHub Issues (open and closed) for a similar issue.

All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)

Required Info

Camera Model
D435i

Operating System & Version
Linux Ubuntu 16.04

Issue Description
I can open the realsense-viewer, but it can't find my camera.
I try update the firmware. But it still can't connect my camera.

When i try
lsusb

When i try
intel-realsense-dfu –b 002 –d 002 –f –i /home/lilala/Signed_Image_UVC_5_11_1_100.bin

When i try
intel-realsense-dfu –p

How can i use the camera?

@pangchenglin,
You have the device enumerated in USB2 mode:

lsusb
...
8086:0ad6 Intel Corp.

D435i was initially released with USB3 support, and with FW versions prior to v<IP_ADDRESS> it will not run in USB2 mode.
If that was not the intend then just check the cable/switch port to make sure it is recognized as USB3 (8086:0b3a).
In case you have to use it with USB2 connection then upgrading to the latest recommended v<IP_ADDRESS> is required.

I change another computer, it can work. But when I try to install realsense-ros, I have a new problem. I submit the problem in https://github.com/IntelRealSense/realsense-ros/issues/821 .
How can I solve it?


NODE-1741: implement convenient transactions api (core)

This is the core component (the meat) of NODE-1741. There were some design decisions made here, most notably that only a Promise may be returned from the lambda passed into withTransaction. Outside of that, this mostly follows the spec to the letter.

@daprahamian @kvwalker all issues should be addressed, PTAL


Refine github issue/zenhub workflow

@ZoeSimon I'll hand this one to you.   If you like how it's done you can close or throw it in the backlog for another day.


Merge shipping

Hello @rachellamcw! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file Shipping_Cost_Calculator.py:

Line 3:1: E266 too many leading '#' for block comment
Line 7:1: E266 too many leading '#' for block comment
Line 10:1: E266 too many leading '#' for block comment


setRequestMetadataKey equivalent?

The mobile libraries have the "setRequestMetadataKey" function, which is useful for mixpanel integration to set "$mixpanel_distinct_id" as per the Branch docs. Is there an equivalent in the web sdk?

It actually makes sense that these are mobile only since the branch events for Open, Install, etc are only fired on mobile.


Update store to properly manage WAL create/delete.

Update the store to remove the WAL directories associated with a shard or database when they are deleted.
Fix the Store so that it creates separate WAL directories for databases and retention policies.

Can we get a test added to server_test.go that will fail without this fix?

This change makes sense, +1, though I'd really like to see a test case added to catch any future regression. For example, here is the test case I added the time I fixed "DROP DATABASE would drop all data":
https://github.com/influxdb/influxdb/blob/master/cmd/influxd/run/server_test.go#L152

@otoolep going to merge this for now so we can get into RC2. Please add an issue to create that test.

cherry-picked into 0.9.3

Actually, I guess now looking at the code the bug would only apply with the WAL in place. Since the WAL is new, and we have tests that ensure that databases are dropped in isolation, it now seems to me the test coverage is sufficient.


Better cache invalidation in MockDirectoryInfo

When invoking the Create() and Delete() methods on
MockDirectoryInfo, the Exists property should intrinsically invoke
Refresh() the next time it is called. This is necessary to prevent
returning stale state about the directory after those operations.
Additional test cases have been added for MoveTo() as well, to ensure
it also not returning stale state.
For context, this change was motivated by PR #828 where similar issues
were solved in MockFileInfo.

I'm not going to add the conventional commit prefix as I prefer the repository maintainers to squash-merge my PR and apply the appropriate convention. This is not out of laziness, but rather out of respect: The maintainers will be more familiar with how they wish to deliver my changes.

@fgreinacher Let me know if there's anything else I need to do. Thank you once again for taking the time to review my PR.


Fix geoserver configuration

Overview
This PR does a whole collection of different things all related to getting tiles from geoserver.
There were a few problems to solve that map pretty neatly onto the commits:

only a subset of the subject views were created in the database when you ran setup with the --views flag. This was caused by an under-indented for loop.
geoserver didn't know where to find itself. This was caused by the PROXY_BASE_URL not being explicitly set, so geoserver didn't know the host to ask for its copy of openlayers or other things it needed
Database views weren't created as part of load_development_data. #498 also fixes this and should be merged before this PR is I think.
The bounding box I manually set for subject layers was wrong. This caused only some of the tiles to render instead of all of the tiles, and the fix was to let geoserver figure the bbox out on its own.

There were also two ergonomics improvements:

With batch inserting the data, django has to hang onto more data in memory, so I increased VM memory (#498 also did that it turns out)
Because I was spending a lot of time in geoserver, I bumped the base image to a slim image instead of an alpine so bash and apt would be available. I think this is fine for development and something we should consider leaving until it's time to start caring about image size.

Checklist

[x] PR has a name that won't get you publicly shamed for vagueness

Demo
Get

at

me

Notes
If geoserver is unavailable (you'll get a No JSON object could be decoded from geoserver config immediately or a 503 from the service when you're using the app), docker-compose stop, restart the VM, and try again. If that doesn't work, talk to me. This happens sometimes, but when I was trying to create an issue, I couldn't reproduce it.
Testing Instructions

take down all ur stuff (docker-compose stop)
bring all ur stuff back up (docker-compose up -d)
Create the views: docker-compose exec ./manage.py setup -V config/config.xml
Reconfigure geoserver: docker-compose exec ./manage.py setup -G config/config.xml
Start drawing a plan and check out those sweet sweet tiles

NEW testing instructions:

git pull --force this branch
docker-compose exec django ./manage.py setup -G config/config.xml
you'll get tiles and openlayers geojson _and they'll line up whoooooa

Recent commits focused on making tiles line up and on making configuration quieter using the quietOnNotFound parameter


Settings -> Default Site -> Redirect not working with HTTPS

Hi, this is about an obstacle (error?) I came across when setting the default site in NPM:
Settings -> Default Site -> Redirect not working with HTTPS
Example:
Lets say my WAN IP address which has port 80 open to NPM is <IP_ADDRESS>
The "Default Site" is set to "Redirect to" https://www.google.com (or any other external URL).
When you then open the IP address in a browser the following happens:

http://<IP_ADDRESS> -> successful redirect
https://<IP_ADDRESS> -> certificate error/warning, not redirect

If I understand correctly then the certificate error will come anyway because the IP cannot be secured with a certificate.
However, if the certificate error is ignored in browser... shouldnt then still be a redirect possible?

The decision was made not to support this and to instead return a 444. I don't want to support clients that skip SSL security. I can't think of any valid use case to do this for the default site.

Thanks for the quick answer.
Understood. Just as a background why I would use this feature.
I am having subdomains pointed to my WAN IP at home via DDNS...
So if someone is trying to directly enter the WAN IP with http://wan.ip - the NPM is hit with an unknown host and redirected to e.g. Google.
Since most browsers automatically use https:// there would not be a redirect at all, exposing that there might be something other than a redirect...
Anyway, maybe I am thinking about this the wrong way?

It's good to think defensively. From an attack point of view though, if port 443 is open then it's a given that there's a https server running on it. An attacker doesn't need to get a SSL cert working or otherwise in order to know that.
So in this case the security of your hosts starts with obscurity, the attacker would need to know the exact DNS names to use.
Let's assume that your DNS names are somehow known to the public either through forums or google search results. I would suggest that everyone assumes this and puts measures in place to protect their hosts further. At the end of the day the last security measures have to come from the hosts that NPM is forwarding to.

I think  I have solution for HTTPS Redirect, I created 404 host where i used domain name with wildcard: *.MyDomainName.com
I enabled SSL, unfortunately I use Namecheap provider for DNS and It does not allow me create wildcard certificate, so everytime they must confirm certificate. But now I have custom error page on HTTP and HTTPS, the example bellow points to the Custom Html file what can be created from the Nginx Proxy manager > Settings > Default site: Custom
Just add this bellow to the 404 Hosts for any Domain you want, you can use the Wildcard mentioned (*.domain.com)
 location / {
    root   /data/nginx/default_www;
    index index.html;
    rewrite ^/$ /index.html break;
  }

Do you have suggestions for this scenario, which brought me here today?
I am using Technitium DNS server and am using it primarily for DNS level add blocking.  By default when a user on my home network tries to go to a 'blocked' site, it gives them a DNS error...that's not very friendly.
They have an addon app for custom block page, which allows you to display a simple message to the user (very basic html page) letting them know that it's blocked, instead of throwing a DNS error....BUT, their built in little page doesn't have an SSL certificate, so any HTTPS traffic that goes there needs to accept an unsigned certificate before they see the blocked page...which is just as bad as the dns error...my home users are not techy types....so, I thought to myself, self...how do I easily have a properly signed certificate....well, through NPM of course....so, I setup a proxy redirect with ssl, and then pointed my default page to that redirect, so any time someone hits my NPM without a proper name (like ANY blocked URL from my DNS server, NPM will redirect to the site I have defined and get the 'blocked' message I have setup.....except....http works, but https doesn't.....
So, do you have any suggestions on how to do the redirect that I'm trying to do?
...but within the settings there is an option to give it an alternate IP.

This problem is still happening, our client in the Aerospace Industry is lowering our security class cause of that...
Would not be better to simply disable the default https host? Https on ip:443 is totally useless anyway.


Trouble Compiling NGettext in Visual Studio 2019

I'm getting several
error CS0234: The type or namespace name 'AssemblyMetadataAttributeAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?)

errors when I try to compile this repository in Visual Studio 2019.

These errors point to several NGettext.AssemblyInfo.cs files that appear to be getting generated by the portable-*  targets.

You need to install the targeting pack for PCL to make it work.


Add Extract Job Definition Metadata

Please include answers to these questions as part of your pull request
In the GitHub webUI, use the Write tab to modify the Markdown text that is part of the pull request. For each question simply place an X inside the square brackets, [X], that represents your answer. Make sure there are no blanks inside the brackets, otherwise MarkDown doesn't render properly. Using the Preview tab while editing this form, you can see the formatted/rendered version of the message.

Q1: Confirm that you have the right to submit the code that is being contributed. Please consider the origin of your code and confirm you have the appropriate rights to make the submission subject to the Apache 2.0 license that applies to everything in this repository of custom steps. If so, follow the instructions for the Contributor Agreement (which is based on the industry-standard Developer Certificate of Origin (DCO)).

[X] Yes, I have the right to submit the contributed code on behalf of myself, my company, or any other owner of the code. I have also attached my signed copy of the DCO to this message.
[ ] No

Q2: Confirm that your contribution does not include any personally identifiable information (PII), for example, in any examples used in your README file.

[X] My contribution does NOT include PII data
[ ] My contribution includes PII data

Q3: Confirm your contribution does not include any encryption or other export-controlled technology.

[X] My contribution does NOT contain encryption or other export-controlled technology
[ ] My contribution includes encryption or other export-controlled technology
ContributorAgreement.txt

@Criptic , point 2 hasn't been resolved. The folder name still differs from the step name. As we use import/export to convert from/to a different file format, my preference would be to use "Extract Job Definition Metadata" for both folder and step name.
As this is the name you already use for the step, only the folder would need to be renamed. So no screenshot, readme, about-tab updates needed.

@snlwih thank you - fixed it now

SAS Internal Due Diligence Review - COMPLETED on 08MAY2023.


Approximate with DistancePlaneProjection

Fixes #2973

We could switch to a two-pass calculation based on the result of the plane distance. But I'm not sure we want that complexity.


When splitting, the method Schema.split() should use a specific exception to reject malformed command line

I think we want to make it easy to separate what can be a configuration exception, called with null by example from what is an exception due to the command line being malformed.
The later should not use IllegalArgumentException.

closed by https://github.com/sormuras/command-line-interface/commit/8088dcab6a3b4d00301b673d803e25ad4623519e


code markdown sections not displaying characters correctly

example: ' becomes '
can be seen at http://availity.github.io/availity-uikit/components.html#Basic

Should be fixed in v2


mac获取中文文件地址乱码

Closing as invalid--if you want to explain

what you expected
what actually happened
include test code reproducing the issue

feel free to reopen.