1.9.x - gitlab install still takes a while to have softserve ready

Error
Init actions: 4 expected tasks ...

Process Parameters            ... done! [1 in 0s]
- Creating K8S Cluster
Prepare Temporary Repo        ... 25.0% [#######.....................] [1 in 13m44.901012s]
- Created Softserve
- Waiting Softserve
Prepare Temporary Repo        ... done! [4 in 14m31.228s]
panic: we tried hard to setup SoftServe but there were something wrong, please check the logs

goroutine 1 [running]:
log.Panic({0xc0000eb888?, 0x1c0f10c?, 0xc0000eb888?})
	/usr/local/go/src/log/log.go:385 +0x65
github.com/kubefirst/kubefirst/internal/softserve.ConfigureSoftServeAndPush(0x0)
	/home/developer/app/internal/softserve/softserve.go:96 +0x316
github.com/kubefirst/kubefirst/cmd.glob..func12(0xc0001056c0?, {0xc000201bf0, 0x0, 0x1})
	/home/developer/app/cmd/createGitlab.go:99 +0x5ff
github.com/kubefirst/kubefirst/cmd.glob..func10(0x2b9fde0, {0xc000201bf0?, 0x0, 0x1})
	/home/developer/app/cmd/create.go:50 +0x1d9
github.com/spf13/cobra.(*Command).execute(0x2b9fde0, {0xc000201be0, 0x1, 0x1})
	/go/pkg/mod/github.com/spf13/cobra@v1.4.0/command.go:856 +0x67c
github.com/spf13/cobra.(*Command).ExecuteC(0x2ba0060)
	/go/pkg/mod/github.com/spf13/cobra@v1.4.0/command.go:974 +0x3b4
github.com/spf13/cobra.(*Command).Execute(...)
	/go/pkg/mod/github.com/spf13/cobra@v1.4.0/command.go:902
github.com/kubefirst/kubefirst/cmd.Execute()
	/home/developer/app/cmd/root.go:26 +0x25
main.main()
	/home/developer/app/main.go:65 +0x41d

Logs
LOG: 2022/09/21 12:37:37.814911 /home/developer/app/cmd/createUtils.go:303: Softserve Update
LOG: 2022/09/21 12:37:37.816504 /home/developer/app/internal/softserve/softserve.go:62: Executing configureSoftserveAndPush
LOG: 2022/09/21 12:37:37.817690 /home/developer/app/internal/softserve/softserve.go:68: Configuring SoftServe, attempt (1 of 5)
LOG: 2022/09/21 12:37:37.818605 /home/developer/app/internal/softserve/softserve.go:108: gitClient clone ssh://<IP_ADDRESS>:8022/config /home/developer/.k1/config
LOG: 2022/09/21 12:37:37.826373 /home/developer/app/internal/softserve/softserve.go:72: something went wrong, error is: error cloning config repository from soft serve, error: dial tcp <IP_ADDRESS>:8022: connect: connection refused, going to try again...
LOG: 2022/09/21 12:37:47.827344 /home/developer/app/internal/softserve/softserve.go:68: Configuring SoftServe, attempt (2 of 5)
LOG: 2022/09/21 12:37:47.828223 /home/developer/app/internal/softserve/softserve.go:108: gitClient clone ssh://<IP_ADDRESS>:8022/config /home/developer/.k1/config
LOG: 2022/09/21 12:37:47.831216 /home/developer/app/internal/softserve/softserve.go:72: something went wrong, error is: error cloning config repository from soft serve, error: dial tcp <IP_ADDRESS>:8022: connect: connection refused, going to try again...
LOG: 2022/09/21 12:37:57.833590 /home/developer/app/internal/softserve/softserve.go:68: Configuring SoftServe, attempt (3 of 5)
LOG: 2022/09/21 12:37:57.834492 /home/developer/app/internal/softserve/softserve.go:108: gitClient clone ssh://<IP_ADDRESS>:8022/config /home/developer/.k1/config
LOG: 2022/09/21 12:37:57.837003 /home/developer/app/internal/softserve/softserve.go:72: something went wrong, error is: error cloning config repository from soft serve, error: dial tcp <IP_ADDRESS>:8022: connect: connection refused, going to try again...
LOG: 2022/09/21 12:38:07.838641 /home/developer/app/internal/softserve/softserve.go:68: Configuring SoftServe, attempt (4 of 5)
LOG: 2022/09/21 12:38:07.839527 /home/developer/app/internal/softserve/softserve.go:108: gitClient clone ssh://<IP_ADDRESS>:8022/config /home/developer/.k1/config
LOG: 2022/09/21 12:38:07.841958 /home/developer/app/internal/softserve/softserve.go:72: something went wrong, error is: error cloning config repository from soft serve, error: dial tcp <IP_ADDRESS>:8022: connect: connection refused, going to try again...
LOG: 2022/09/21 12:38:17.843676 /home/developer/app/internal/softserve/softserve.go:68: Configuring SoftServe, attempt (5 of 5)
LOG: 2022/09/21 12:38:17.844436 /home/developer/app/internal/softserve/softserve.go:108: gitClient clone ssh://<IP_ADDRESS>:8022/config /home/developer/.k1/config
LOG: 2022/09/21 12:38:17.846660 /home/developer/app/internal/softserve/softserve.go:72: something went wrong, error is: error cloning config repository from soft serve, error: dial tcp <IP_ADDRESS>:8022: connect: connection refused, going to try again...
LOG: 2022/09/21 12:38:27.849596 /home/developer/app/internal/softserve/softserve.go:96: we tried hard to setup SoftServe but there were something wrong, please check the logs

I will add extra checks before proceeding.

At this moment of the installation we only have:

EKS Cluster
A manual installation of soft-serve

Argo is not around yet.

PF may not be working as expected yet.

https://github.com/kubefirst/kubefirst/blob/bd552b8b1f3e068d5e9913c680050febecd9dc28/cmd/createGitlab.go#L88
This block of try to configure softserve and create port forward needs to be part of a loop, as Config may be failing due to a bad port-forward.

#408 fix didn't worked.

PR open, tests worked. Waiting approvals, closing issue.

Sample of retry rule for soft-serve working as desired, a former fail scenario that was saved with this rule:

LOG: 2022/09/22 18:49:01.689412 /home/developer/app/internal/k8s/kubernetes.go:229: soft-serve pods found, continuing
LOG: 2022/09/22 18:49:11.694271 /home/developer/app/cmd/createGitlab.go:87: Waiting for soft-serve installation to complete...
LOG: 2022/09/22 18:49:11.695377 /home/developer/app/internal/k8s/kubernetes.go:185: PF started (svc/soft-serve)
LOG: 2022/09/22 18:49:16.697909 /home/developer/app/internal/k8s/kubernetes.go:193: /home/developer/.k1/tools/kubectl   --kubeconfig   /home/developer/.k1/gitops/terraform/base/kubeconfig   -n   soft-serve   port-forward   svc/soft-serve   8022:22
LOG: 2022/09/22 18:49:36.699545 /home/developer/app/internal/softserve/softserve.go:62: Executing configureSoftserveAndPush
LOG: 2022/09/22 18:49:36.699858 /home/developer/app/internal/softserve/softserve.go:67: Configuring SoftServe, attempt (1 of 5)
LOG: 2022/09/22 18:49:36.700130 /home/developer/app/internal/softserve/softserve.go:104: gitClient clone ssh://<IP_ADDRESS>:8022/config /home/developer/.k1/config
LOG: 2022/09/22 18:49:36.707311 /home/developer/app/internal/softserve/softserve.go:71: something went wrong, error is: error cloning config repository from soft serve, error: dial tcp <IP_ADDRESS>:8022: connect: connection refused, going to try again...
LOG: 2022/09/22 18:49:46.709585 /home/developer/app/internal/softserve/softserve.go:67: Configuring SoftServe, attempt (2 of 5)
LOG: 2022/09/22 18:49:46.710142 /home/developer/app/internal/softserve/softserve.go:104: gitClient clone ssh://<IP_ADDRESS>:8022/config /home/developer/.k1/config
LOG: 2022/09/22 18:49:46.712601 /home/developer/app/internal/softserve/softserve.go:71: something went wrong, error is: error cloning config repository from soft serve, error: dial tcp <IP_ADDRESS>:8022: connect: connection refused, going to try again...
LOG: 2022/09/22 18:49:56.713477 /home/developer/app/internal/softserve/softserve.go:67: Configuring SoftServe, attempt (3 of 5)
LOG: 2022/09/22 18:49:56.714057 /home/developer/app/internal/softserve/softserve.go:104: gitClient clone ssh://<IP_ADDRESS>:8022/config /home/developer/.k1/config
LOG: 2022/09/22 18:49:56.716746 /home/developer/app/internal/softserve/softserve.go:71: something went wrong, error is: error cloning config repository from soft serve, error: dial tcp <IP_ADDRESS>:8022: connect: connection refused, going to try again...
LOG: 2022/09/22 18:50:06.718479 /home/developer/app/internal/softserve/softserve.go:67: Configuring SoftServe, attempt (4 of 5)
LOG: 2022/09/22 18:50:06.719399 /home/developer/app/internal/softserve/softserve.go:104: gitClient clone ssh://<IP_ADDRESS>:8022/config /home/developer/.k1/config
LOG: 2022/09/22 18:50:06.722050 /home/developer/app/internal/softserve/softserve.go:71: something went wrong, error is: error cloning config repository from soft serve, error: dial tcp <IP_ADDRESS>:8022: connect: connection refused, going to try again...
LOG: 2022/09/22 18:50:16.724033 /home/developer/app/internal/softserve/softserve.go:67: Configuring SoftServe, attempt (5 of 5)
LOG: 2022/09/22 18:50:16.724604 /home/developer/app/internal/softserve/softserve.go:104: gitClient clone ssh://<IP_ADDRESS>:8022/config /home/developer/.k1/config
LOG: 2022/09/22 18:50:16.726378 /home/developer/app/internal/softserve/softserve.go:71: something went wrong, error is: error cloning config repository from soft serve, error: dial tcp <IP_ADDRESS>:8022: connect: connection refused, going to try again...
LOG: 2022/09/22 18:50:26.727519 /home/developer/app/cmd/createGitlab.go:108: Soft-serve not configured - waiting before trying again
LOG: 2022/09/22 18:50:26.728156 /home/developer/app/cmd/createGitlab.go:109: Soft-serve not configured - Re-creating Port-forward deails at: https://github.com/kubefirst/kubefirst/issues/429
LOG: 2022/09/22 18:50:46.731145 /home/developer/app/internal/k8s/kubernetes.go:185: PF started (svc/soft-serve)
LOG: 2022/09/22 18:50:51.732013 /home/developer/app/internal/k8s/kubernetes.go:193: /home/developer/.k1/tools/kubectl   --kubeconfig   /home/developer/.k1/gitops/terraform/base/kubeconfig   -n   soft-serve   port-forward   svc/soft-serve   8022:22
LOG: 2022/09/22 18:51:11.733719 /home/developer/app/internal/softserve/softserve.go:62: Executing configureSoftserveAndPush
LOG: 2022/09/22 18:51:11.734241 /home/developer/app/internal/softserve/softserve.go:67: Configuring SoftServe, attempt (1 of 5)
LOG: 2022/09/22 18:51:11.734782 /home/developer/app/internal/softserve/softserve.go:104: gitClient clone ssh://<IP_ADDRESS>:8022/config /home/developer/.k1/config
LOG: 2022/09/22 18:51:13.619108 /home/developer/app/internal/softserve/softserve.go:133: re-wrote config.yaml at /home/developer/.k1/config folder
LOG: 2022/09/22 18:51:13.619611 /home/developer/app/internal/softserve/softserve.go:140: Committing new changes...
LOG: 2022/09/22 18:51:15.544643 /home/developer/app/pkg/helpers.go:71: trying read the file in yaml format:  /home/deve


How can I convert my loacl img-caption pairs to the webdataset by using webdataset？

I have a folder contains img-caption pairs such as：

|--base_folder
    --img1.png
    --caption1.txt
    --img2.png
    --caption2.txt
    ……

How can I convert my loacl img-caption pairs to the webdataset by using webdataset？ Can you just give me an example please？！

same question, any updates regarding this?

def create_webdataset(root_folder, output_file):
    with wds.TarWriter(output_file) as sink:
    ¦   files = [f for f in os.listdir(root_folder) if f.endswith(".jpg")]
    ¦   for index, file in enumerate(files):
    ¦   ¦   image_path = os.path.join(root_folder, file)
    ¦   ¦   # Construct the corresponding text file path
    ¦   ¦   text_path = os.path.join(root_folder, file.replace(".jpg", ".txt"))

    ¦   ¦   # Skip if the corresponding text file does not exist
    ¦   ¦   if not os.path.exists(text_path):
    ¦   ¦   ¦   continue

    ¦   ¦   # Process your data (load image, load text)
    ¦   ¦   # For simplicity, I'm just printing the paths here
    ¦   ¦   print("Image path:", image_path)
    ¦   ¦   print("Text path:", text_path)

    ¦   ¦   # Example: Load image with PIL
    ¦   ¦   image = Image.open(image_path).convert("RGB")
    ¦   ¦   # Example: Load text
    ¦   ¦   with open(text_path, "r") as text_file:
    ¦   ¦   ¦   text_content = text_file.read()

    ¦   ¦   key = text_path.split("/")[-1][:-4]
    ¦   ¦   ¦
    ¦   ¦   # Write to the tar file
    ¦   ¦   sink.write({
    ¦   ¦   ¦   "__key__": str(key),
    ¦   ¦   ¦   "jpg": image,
    ¦   ¦   ¦   "txt": text_content
    ¦   ¦   ¦   })

Note that there are also multiple examples in ./examples for how to  create datasets.


2023年3月版的idea无法使用

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

重复了https://github.com/godfather1103/p3c/issues/23#issuecomment-1844243007


PR: copy re-scope for resident's start page

Resolves #313 Users need to know how their permit price is determined
@sanjaypoyzer I'll need your help creating the localisation rules for the copy in square brackets.
Before

After

@sanjaypoyzer hi did you see this one? It's the page you and @EUzkuraityte were happy with yesterday except with the Verify-related content moved out. Would be great to get this flowing through so we have an updated prototype for Monday's testing! @petegale is aware this is likely to be coming through.

@lizziebruce Yep, gonna go through and add the conditional logic.

Just a note on "What you'll need" - The first and 4th bullet points are essentially talking about what you need for Verify, and possibly imply needing documents the user won't need. I'm happy to merge this in though and see what users interpret it as. (cc @petegale)

@sanjaypoyzer @petegale Do you mean non-Verify? This isn't the case either way. Bullet point 1 was previously for document upload e.g. "documents to prove.." and I edited to "ability to prove.." on Egle's advice so that it applied for both doc upload and Verify. Bullet point 2 is clearly for both: answer security questions or upload documents.


Show me which relay(s) a note is stored on

user story
As a nerd njump user, I would like to be able to plug in a noteID in njump that shows me which relay(s) the note is stored on, so that I don't have to do investigative work using other tools (e.g. to test where spam is coming from, to test the decentralization of the network etc.).
acceptance criteria

on njump noteID page there is a section that displays which relay(s) a note is stored on
this could take place in nerd view ("show more details") immediately after "published at" timestamp

context
See example npub njump page that displays relevant relay information:

Example problem: where is this spam coming from
https://njump.me/note1fctz4yvrwyq7yearmj86yl8e9eu0e9ettsn8lahex47a35lgkk6q3m23q7

Could be text only or show relay logo


Arabic Texts are not rendering properly.

Try removing @charset "UTF-8"; at the top of your .scss file, I'm guessing this is the issue here.

Great! works now. thanks.


early foundryup check

Description:

Replaced solidity framework strings values with enum (discussed in https://github.com/scaffold-eth/create-eth/pull/58#discussion_r1645896238) not sure if its the best but please feel free to suggest better
used forge to install foundry libraries

Thanks Shiv, great change!


Solana wishlist

A thread of Solana runtime features that would be awesome.

Ephemeral accounts. This would allow us to generate CPI clients that can pass return values as one would expect (without requiring the client to pass in shared memory accounts, which is quite the leaky abstraction).
API to fetch the AccountInfo of the account that paid for the transaction (instead of having to pass it into via the account slice). This is nice because some apis, like creating PDAs inside a program, need to have a payer. It would be great to use the payer of the entire transaction as a default for these types of things.
System program AccountInfo as a dynamic sysvar. It's common to want to create a pda or transfer lamports within a program, which requires the system program.
A version of solana-test-validator's --bpf-program flag but for accounts, i.e., the ability to load into genesis accounts and data for a program. Would be awesome for spl tokens in particular.
Pre-execution for transactions so that clients dont need to specify accounts and read/write manually.

A version of solana-test-validator's --bpf-program flag but for accounts, i.e., the ability to load into genesis accounts and data for a program. Would be awesome for spl tokens in particular.

Any ideas on how to encode the account address and data in arguments?
https://docs.rs/solana-sdk/1.8.5/solana_sdk/account/struct.Account.html


docs-bug(COMPONENT): Disable outside click close in mat-select

Documentation Feedback

I want to disable the outside click of mat-select, I have a requirement is close when clicking on the done button if any option is selected.
Is there any way to do this? Please help me...
Affected documentation page
https://material.angular.io/components/select/overview

Closing since we don't support this pattern with buttons in the select in the first place. Also worth noting that clicking outside isn't the only way to close it, there's also the escape key.


vp9 encode fails with special 2K yuv input

$ yamiencode -i somefile_300frames.yuv -s I420 -W 2048 -H 858 -c VP9 --rcmode CQP -o ./samefile_300frames.yuv.vp9
[IMGUTILS @ 0x7ffd372c02e0] Picture size 0x0 is invalid
libva info: VA-API version 0.39.3
libva info: va_getDriverName() returns 0
libva info: Trying to open /opt/yami//vaapi/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
libyami error 14466 (vaapipicture.cpp, 61): vaEndPicture(): invalid parameter
libyami error 14466 (encode.cpp, 126): assert fails
yamiencode: encode.cpp:126: int main(int, char**): Assertion `0 && (status == YAMI_SUCCESS)' failed.
Aborted (core dumped)

@chivakker , I checked with the following resolution and it seems image width and height should be alignd with 8.
2560x1440 (normal 2k resolution)  Pass
198x150 (w/h aligned with 2)         Fail
396x300 (w/h aligned with 4)         Fail
792x600 (w/h aligned with 8)         Pass

I see the comment in  in libva (va_enc_vp9.h), "The source and recon surfaces allocated should be 64x64(SB) aligned". We need do Align64(width) and Align64(heigh) when we create these surface.

If we do need alloc  64 aligned surface, we should pay attention to unused area in right and bottom.
see https://cgit.freedesktop.org/vaapi/intel-driver/commit/?id=a478779c8c6b296c2069ab0fbc6f71c2e55c6a85 for detials

I confirmed that aligning it to 64 will make the use case pass.  I will prepare a patch that fixes for all resolutions. Thanks for the inputs.

fixed by #601

1.0.0 RC2 test OK.


Fix install.sh for kubectl 1.23 or later

The install.sh script uses the --dry-run mode of kubectl. This flag
without further value has been deprecated with version 1.18 and entirely
removed with 1.23. This change makes the dry-run to run on client side.

Created issue #414 for this before seeing the PR.

Thanks for the fix!


INS-287 get code

Closes INS-287
- What I did
Implemented GetCode method
- How to verify it
Run tests

Merge after INS-284!


General Barcode Lookup on Bibdata

In addition to the work to provide a ReCAP friendly export by barcode https://github.com/pulibrary/marc_liberation/commits/barcode_lookup we should also provide a general lookup by barcode that produces a reasonable. The legacy getVoyRec in use in various utilities provides this lookup, http://libweb5.princeton.edu/getvoyrec/.

The method I have created works for all barcodes. The one difference is that ReCAP materials have the 852 $h and $i merged and additional subfields are added to the 876 for ReCAP-specific information. Is that sufficient, or does a method need to be created that omits the extra ReCAP-specific fields even for ReCAP records?

I will try and identify if any applications actually utilize the barcode lookup present in GetVoyRec.


lua_rawget_rtype is not define in lua5.1

lua_rawget_rtype is not define in lua5.1

what verion of kaguya?

just clone 15day ago。it is the newest。

https://github.com/satoren/kaguya/blob/master/include/kaguya/compatibility.hpp#L119
lua_rawget_rtype  implemented in #if LUA_VERSION_NUM < 503


Paper link is wrong.

Paper link is wrong.
The correct paper link is here. Man, what can i say ?

Hi @LanFear-Li , Thank you for your reminder, I have just fixed it.


[docker] add prebuilt images again and reduce image size

This PR redoes the work of #138 which was lost somewhere along the way

I fixed the errors by going back to using gcc for compiling the verilator model. I don't know why clang results in erroneous execution, but as the new gcc compiles fast enough, this is no big problem.
Additionally, I further reduced the size to 4.1GB by removing some cache and the custom llvm toolchain, as we don't need it (see kuleuven-micas/snax-mlir#130 for a successfull snax-mlir ci on this container image).

@rgantonio @JosseVanDelm
For me this one is ready to go! It is mostly a copy of #138, but with all the problems resolved.
A big thank you to @JosseVanDelm on continuing this crusade in my absence.

I tried to request your review @JosseVanDelm but this is not possible as this is your PR 😆 .
Anyway, only thing left to do is also to convert the docker tags back to main

Happy to self-accept this :+1:

yes haha we plan on removing them sooner rather than later, they are mostly old tests


Determine if changing Reference type causes problems.

I broke a record and am not sure why.
https://geodev.btaa.org/admin/documents/btaa-1bbf2981131345819fb9874b965fd23c/edit
Steps:

Tried to upload a multipage HTML file and assigned it to the Data Dictionary/Documentation.
I checked in in the interface. The record is viewable, but when I clicked "Documentation," I got a disallowed file error
Deleted the HTML
Uploaded an Excel file and assigned to Data Dictionary/Documentation.
The record is now broken with a 500 error.

Yeah, seems like two issues related to "Documentation" here really...

The files — the multipage HTML file, Excel file
AWS S3 permissions — why are we seeing the AWS "AccessDenied" error

If you have them around, could you please attach each of those files (HTML and Excel) to this ticket for troubleshooting?
The permissions issue is a little more complicated, as I no longer have access to the AWS S3 management console. I've written Michael asking for both of us to have access to the management console to troubleshoot these type of file access issues.

This was the xlsx file: AddressOneSTREET_CENTERLINES_DataDictionary05282019.xlsx

Removed the bad reference link and re-added the XLSX file. Everything is working as expected now. If this happens again we should review the background queue for failures or backlog.
Closing this ticket


Update EVM Version to Shanghai

Describe the feature you would like
Use shanghai version of the EVM.
Additional context
By setting evm_version to shanghai, the deployed bytecode of PRBMath will be more optimized because of PUSH0 opcode. Thus I recommend changing the value of evm_version in foundry.toml.

Done in https://github.com/PaulRBerg/prb-math/commit/368168128017589c3085ed5aeacb0c328d743e69.


Update withJitter assert error

The withJitter(long) does not exists, this should be withJitter(double).

Coverage remained the same at 84.192% when pulling 96f8e50611fac850d52229d693e674e7fc6f16a5 on Fokko:patch-1 into b66cf3fd1a692c87b4a4d8d70ec630c26ebb5fb2 on jhalterman:master.


Deploy

A simple page with the name of your app (yes, you need to choose one), and links to the sign up and log in pages.
Sign up and log in pages
The user should be able to register in the app with full name, email and password (all mandatory).
The user can log into the app using email and password.
If the user is not logged in, they can't access pages that require the user to be logged in (all the pages described below).
Home page (categories page)
When the user logs in, they are presented with the categories page.
For each category, the user can see their name, icon and the total amount of all the transactions that belongs to that category.
When the user clicks (or taps) on a category item, the application navigates to the transactions page for that category.
There is a button "add a new category" at the bottom that brings the user to the page to create a new category.
Transactions page
For a given category, the list of transactions is presented, ordered by the most recent.
At the top of the page the user could see the total amount for the category (sum of all of the amounts of the transactions in that category).
There is a button "add a new transaction" at the bottom that brings the user to the page to create a new transaction.
When the user clicks on the "Back" button (<), the user navigates to the home page.
"Add a new category" page
The user fills out a form to create a new category, indicating their name and icon (both mandatory).
The user clicks (or taps) the "Save" button to create the new category, and is taken to the home page on success.
When the user clicks on the "Back" button (<), the user navigates to the home page.
"Add a new transaction" page
The user fills out a form to create a new transaction with:
name (mandatory)
amount (mandatory)
categories (mandatory at least one)
The user click (or taps) the "Save" button to create the new transaction, and is taken to the transactions page for that category.
When the user clicks on the "Back" button (<), the user navigates to the transactions page for that category.
Testing requirements
Create unit and integration tests for all the most important components of your RoR application.

Hi @erickma1
The Future Features section of your ReadMe is blank. Pls endeavor to add some contents under this section ASAP!
Standing by..

Hi @erickma1
The Future Features section of your ReadMe is blank. Pls endeavor to add some contents under this section ASAP!
Standing by..

okay please, doing it now

Hi @erickma1
The Future Features section of your ReadMe is blank. Pls endeavor to add some contents under this section ASAP!
Standing by..

okay please, doing it now

done please


Could not play aacPlus radio streams

Current behavior
Describe what happens when you encounter this issue.
I'm using react-native-video library for a Radio App, in order to play continuous MP3 and HE-AAC (aacPlus) audio streams over HTTP and HTTPS.
Reproduction steps
I set an HTTP or HTTPS URL on 'source' variable.as described below.
It works fine when playing MP3 streams, after a little buffering it starts to play audio.
When playing aacPlus streams, it starts to download the continuous file but it doesn't play it. Just in case I interrupt the stream from the server side or if I disconnect the phone from the network, connection closes and the downloaded file starts to play immediately.
Expected behavior
I want audio to start playing as soon as it start to download from server.
Platform
Which player are you experiencing the problem on:

Android ExoPlayer
Android MediaPlayer

Video sample
http://streams.cloudradio.co/radio/8000/stream.aac
https://streams.cloudradio.co/radio/8000/stream.aac

Problem was solved on Android forcing the use of ExoPlayer :)

how to forcing the use of ExoPlayer??


Update check_rabbitmq_cluster.cfg

Typo, was "partition" should be "cluster".

Thanks @augieschwer for your PR 👍


perf(node-binding): reduce JsCallback lock contentions

Summary

Require Documentation?

[ ] No
[ ] Yes, the corresponding rspack-website PR is __

!bench

!bench


Create new Read QC Service

Integrate community standards for assessing read quality (FastQC) as a PATRIC service to support higher level tools such as the read mapping, taxonomic binning and functional binning services and will be exposed to the user through those tools.

Looking into a error in the interface.  UI is there but not in main menu so we can continue testing.
Could use trimming part as part of pre-processing for Assembly Service like we do for SRA, but needs to be coordinated with Allan.


Consider using our own marshalling APIs (i.e. our own MarshalAs and UnmanagedType)

This will allow us to allow extra marshalling options (such as UTF8 strings - we're currently using ANSI where we should be using UTF8).
This would consist of the following

Adding more SilkMarshal methods to support more string encodings (using System.Text.Encoding)
Adding our own UnmanagedType enum
Adding our own UnmanagedTypeAttribute, probably shouldn't use MarshalAs as that may mistake P/Invoke users who are also using Silk.NET or SilkTouch-powered bindings
We should keep support for the regular MarshalAsAttribute, as this is ubiquitous and forcing our own may break other projects, such as the ClangSharp SilkTouch backend.

I'm not too fond of keeping the "original" marshal as, because we do not support most of its features, so it may be misleading.

The same logic can be applied to Silk.NET.Maths ;)

Honestly not sure what you mean

We're not gonna force people into using our maths types if they don't need them like OpenTK does, I reckon we should apply the same principle to the MarshalAs attributes as well.
Also, I think extra work will have to be done in getting ClangSharp to work with our custom attribute, so supporting the old one in addition to the new one will help a lot.

I see. Makes sense I guess. Be sure to open an issue for anything you need, even if it can be worked around.

Will do :+1:


dag: resolve required actions after hive.yml

Actual Execution trace:
2022-10-03 11:03:59,842               hive_client_config.yml
2022-10-03 11:03:59,843               hive_hiveserver2_config.yml
2022-10-03 11:03:59,843               hive_jmx-exporter_config.yml
2022-10-03 11:03:59,843               hive_metastore_config.yml
2022-10-03 11:03:59,843               hive_metastore_restart.yml
2022-10-03 11:03:59,844               hive_ranger_config.yml
2022-10-03 11:03:59,844               hive_hiveserver2_restart.yml

all required actions are validated, this issue was created only to keep a trace.


Add SuperAlert

An extension can open an Alert at the center of screen.

can you make options for the user to press? like (yes, no) (accept, cancel) etc

Why are the blocks in chinese?

Why are the blocks in chinese?

Probably because the creator is Chinese.

Can you add more blocks that can customize the alert box? Here is some concept blocks I made (that do work, so this is possible):

Heres the .js file with the blocks. If you use this, you don't have to give me credit:
New Alert Blocks.js.zip

That 's a good advice.

SICK!!!! How did you get the select color block argument?

SICK!!!! How did you get the select color block argument?

Scratch.ArgumentType.COLOR

SICK!!!! How did you get the select color block argument?

Scratch.ArgumentType.COLOR

Oh ok, thanks!

can you make options for the user to press? like (yes, no) (accept, cancel) etc

I did this in Better Input

can you make options for the user to press? like (yes, no) (accept, cancel) etc

I did this in Better Input

sir this is the pr for superalert

can you make options for the user to press? like (yes, no) (accept, cancel) etc

I did this in Better Input

sir this is the pr for superalert

ma'am, we are both using CSS. I have no argument but still. Work is already done lmao

i like to see this extension be merged.
i also like if every time the user clicks out of the popup or ESC is pressed, The popup closes

i like to see this extension be merged.
i also like if every time the user clicks out of the popup or ESC is pressed, The popup closes

Just use an if statement and close the box if true

i like to see this extension be merged.
i also like if every time the user clicks out of the popup or ESC is pressed, The popup closes

Just use an if statement and close the box if true

oh ok

guys we love XSS

i mean this pull seems dead but this extension has XSS in it.

W xss /j

Why was this closed?


Add tracer function to span interface

added a tracer function to span interface
added a tracer function to NoopSpan
added a private constructor to NoopTracer

I would rather not add this. It adds an unneeded complexity IMHO.
Can you provide examples are why this is needed @oibe ?

It might be useful in the case where you want to create a child span, but are deeper in the stack.  If i'm inside of a function that hooks into some framework, and I want to use a span to measure the execution time of a nested call then I need to create a child span.  I have access to the span through thread locals, but I don't have the ability to create a child span because I need the tracer to do that.

It might be useful …

We really don't want to add complexity to the code prematurely because of might-be's.
The Tracer object will be part of the application control layer, and will be injected or available via lookup (singleton pattern) in most java applications. It's also thread-safe so does not need to be concerned with thread-locals as so forth. For this reason I'd rather hold off on such an addition until the demand for it is clearer.

I think we will either need Span.tracer() or we will basically force OT users to use a Tracer singleton. Getting all of the DI stuff to line up properly is possible in theory but will be quite difficult in practice.
I am ok waiting for someone to need Span.tracer(), though... @oibe it sounds like this is still in hypothetical territory for Java specifically (I realize that we have this functionality in Go/python already)?


docs: link not working

The link in the guides 👉 https://akveo.github.io/react-native-ui-kitten/docs/guides/create-ui-kitten-screen#create-ui-kitten-screen is giving an error 404.
The link is highlighted in the screenshot below.

The result of the above link:

I guess the appropriate link would be this one?

Issue type
I'm submitting a ...  (check one with "x")

[x] bug report
[ ] feature request

Issue description
Current behavior:

Expected behavior:

Steps to reproduce:

Related code:

insert short code snippets here

Other information:
OS, device, package version
insert information here

Thanks for reporting!

No problem. I hope you are not annoyed by me opening these issues. 🙌


pyautogui.wrie missing character in URL

Hi - Love this module, thanks for all you do!
Runnning pyautogui on VirtualBox, Linux, MacOS host
Precondition: focus is in the address bar, in Firefox
Code:
pyautogui.write("https://example_url.com/")
Expected:
text appears in address bar:  "https://example_url.com/"
Actual: (one 't' is missing in the address):
text appears in address bar: "htps://example_url.com/"

Hi,
Could you provide any additional information?
Runnning pyautogui on VirtualBox, Arch Linux (Firefox 87.0), Windows 10 host this code works fine:
`
import pyautogui
pyautogui.sleep(5)
pyautogui.write("https://example_url.com/")
`

i tested it too on windows it worked fine , maybe its ur keyboard layout that is affecting it u, can read this threadif u want
https://stackoverflow.com/questions/59604162/typewrite-character-with-pyautogui
Well u can try this alternative just to see whats going on slowly.
pyautogui.typewrite("https://example_url.com/", interval=0.5)


Add a new validator organization in existing besu network.

Description
As a developer I want to add new validator organization in existing besu network. Add a validator node using ibft_proposeValidatorVote api method.

Refer to the documentation for adding a validator peer.
Perform the mannual addition of a new validator node in besu on baf network
Add the required changes in ansible for generating the crypto material for new validator organization.
add the new node to an existing besu network using ansible.
Update the samples/network.yaml
Update the readme and operational guide.

Acceptance Criteria

Ansible playbook to add a new node to the existing network
use the curl command to get the peer count and number of validators.
curl -X POST --data '{"jsonrpc":"2.0","method":"net_peerCount","params":[],"id":1}' http://carrierl.rc.dev2.aws.blockchaincloudpoc-develop.com:15011
curl -X POST --data '{"jsonrpc":"2.0","method":"ibft_getValidatorsByBlockNumber","params":["latest"], "id":1}' http://carrierl.rc.dev2.aws.blockchaincloudpoc-develop.com:15011
create furthur stories if required.

I'll take on this one

I'll take on this one

For reference: #1276


Arduino-CI is failing to find include file

https://github.com/RobTillaart/MultiMap/runs/1637056493?check_suite_focus=true
MultiMap.h is a source file that contains one templated function, small enough to post here
#define MULTIMAP_LIB_VERSION "0.1.3"

#include "Arduino.h"

// note: the in array should have increasing values
template<typename T>
T multiMap(T val, T* _in, T* _out, uint8_t size)
{
    // take care the value is within range
    // val = constrain(val, _in[0], _in[size-1]);
    if (val <= _in[0]) return _out[0];
    if (val >= _in[size-1]) return _out[size-1];

    // search right interval
    uint8_t pos = 1;  // _in[0] allready tested
    while(val > _in[pos]) pos++;

    // this will handle all exact "points" in the _in array
    if (val == _in[pos]) return _out[pos];

    // interpolate in the right segment for the rest
    return (val - _in[pos-1]) * (_out[pos] - _out[pos-1]) / (_in[pos] - _in[pos-1]) + _out[pos-1];
}

The unit test is a simple test and that runs successful.
However compiling the examples , all complain that they cannot find the #include MultiMap.h
local compilation is no problem. So somehow the library is not findable.
Error message
Compiling multimap_NTC.ino for arduino:avr:uno...
Last command:  $  /usr/local/bin/arduino-cli --format json compile --fqbn arduino:avr:uno --warnings all --dry-run /github/home/Arduino/libraries/MultiMap/examples/multimap_NTC/multimap_NTC.ino
/github/home/Arduino/libraries/MultiMap/examples/multimap_NTC/multimap_NTC.ino:10:10: fatal error: MultiMap.h: No such file or directory
 #include "MultiMap.h"
          ^~~~~~~~~~~~
compilation terminated.
Error during build: exit status 1

Adding the MultiMap.h file in the same folder as the example results in success.
(tested with one example, but expected to work with all)

Adding the MultiMap.h file in the same folder as the example results in success.
(tested with one example, but expected to work with all)

It seems to be caused by the incorrect filename case in the includes field of library.properties:
https://github.com/RobTillaart/MultiMap/blob/arduino-ci/library.properties#L10
includes=multimap.h

If I correct that to the right case;
includes=MultiMap.h

the error goes away.
I don't kno enough about arduino_ci to understand why that error would would cause the CI run to fail in this way, but it's wrong regardless, so certainly worth fixing.

It seems to be caused by the incorrect filename case in the includes field of library.properties:
https://github.com/RobTillaart/MultiMap/blob/arduino-ci/library.properties#L10
includes=multimap.h

If I correct that to the right case;
includes=MultiMap.h

the error goes away.
I don't kno enough about arduino_ci to understand why that error would would cause the CI run to fail in this way, but it's wrong regardless, so certainly worth fixing.

This seems like a good candate to test as-is with Arduino-CI/action@latest, I have some code to explicitly report on this.  Can you give it shot?

This seems like a good candate to test as-is with Arduino-CI/action@latest, I have some code to explicitly report on this.  Can you give it shot?

I don't know enough about arduino_ci to understand why that error would would cause the CI run to fail in this way

If I'm reading that output properly, this error is coming from arduino-cli, running in a case-sensitive filesystem.

I don't know enough about arduino_ci to understand why that error would would cause the CI run to fail in this way

If I'm reading that output properly, this error is coming from arduino-cli, running in a case-sensitive filesystem.

OK, I see it's this bug: https://github.com/arduino/arduino-cli/issues/960
which was introduced in Arduino CLI 0.13.0 and has since been fixed (https://github.com/arduino/arduino-cli/pull/987). So this would not occur if the latest release of Arduino CLI was used.

Even though the includes field value affecting compilation was a bug in Arduino CLI, having the wrong filename in that field is still a bug in the MultiMap library, since this will affect IDE users who use the "Sketch > Include Library > MultiMap" feature.

OK, I see it's this bug: https://github.com/arduino/arduino-cli/issues/960
which was introduced in Arduino CLI 0.13.0 and has since been fixed (https://github.com/arduino/arduino-cli/pull/987). So this would not occur if the latest release of Arduino CLI was used.

Even though the includes field value affecting compilation was a bug in Arduino CLI, having the wrong filename in that field is still a bug in the MultiMap library, since this will affect IDE users who use the "Sketch > Include Library > MultiMap" feature.

OK, I'm not completely clear on what's happening here nor what the proper behavior should be.  Is the Arduino compiler and/or arduino-cli providing case-insensitive functionality even when operating in a case-sensitive filesytem (e.g. OSX, linux)?

OK, I'm not completely clear on what's happening here nor what the proper behavior should be.  Is the Arduino compiler and/or arduino-cli providing case-insensitive functionality even when operating in a case-sensitive filesytem (e.g. OSX, linux)?

OK, I'm not completely clear on what's happening here

If you're interested, see https://github.com/arduino/arduino-cli/issues/960 and https://github.com/arduino/arduino-cli/pull/987 for all the details.
Otherwise, just know that this is caused by a combination of a bug in the MultiMap library and Arduino CLI. There is nothing wrong with arduino_ci other than that it's using a version of Arduino CLI that's 3 months out of date.
So if you like, you can just say that it's RobTilaart's responsibility to fix the bug in MultiMap, or you can take this as the sign that you need to update to using Arduino CLI 0.14.0.

Is the Arduino compiler and/or arduino-cli providing case-insensitive functionality

No.

OK, I'm not completely clear on what's happening here

If you're interested, see https://github.com/arduino/arduino-cli/issues/960 and https://github.com/arduino/arduino-cli/pull/987 for all the details.
Otherwise, just know that this is caused by a combination of a bug in the MultiMap library and Arduino CLI. There is nothing wrong with arduino_ci other than that it's using a version of Arduino CLI that's 3 months out of date.
So if you like, you can just say that it's RobTilaart's responsibility to fix the bug in MultiMap, or you can take this as the sign that you need to update to using Arduino CLI 0.14.0.

Is the Arduino compiler and/or arduino-cli providing case-insensitive functionality

No.

I did read that, but it didn't really talk about case sensitivity.  Let me ask a different way: are these the proper fixes, given a specific arduino-cli version?
arduino-cli 0.13.0
  architectures=*
- includes=multimap.h
+ includes=MultiMap.h
  depends=

vs
arduino-cli 0.14.0
  architectures=*
- includes=multimap.h
  depends=

I did read that, but it didn't really talk about case sensitivity.  Let me ask a different way: are these the proper fixes, given a specific arduino-cli version?
arduino-cli 0.13.0
  architectures=*
- includes=multimap.h
+ includes=MultiMap.h
  depends=

vs
arduino-cli 0.14.0
  architectures=*
- includes=multimap.h
  depends=

I don't meant to belabor this point, it's just that I've added code that tries to scan for incorrect data in the properties file:
https://github.com/Arduino-CI/arduino_ci/pull/256/commits/d8a0a0bbd430bf263723095023b82a5e8d11959c#diff-c8e39f6b37c608a31b7357c90dcd7b605242d3735e6bc87797cd32c90cd4f6c7R368
and from this conversation I can't tell if I've done it correctly.

I don't meant to belabor this point, it's just that I've added code that tries to scan for incorrect data in the properties file:
https://github.com/Arduino-CI/arduino_ci/pull/256/commits/d8a0a0bbd430bf263723095023b82a5e8d11959c#diff-c8e39f6b37c608a31b7357c90dcd7b605242d3735e6bc87797cd32c90cd4f6c7R368
and from this conversation I can't tell if I've done it correctly.

So if you like, you can just say that it's RobTilaart's responsibility to fix the bug in MultiMap
I'm on it

So if you like, you can just say that it's RobTilaart's responsibility to fix the bug in MultiMap
I'm on it

The build was successful now.
imho a +1 for a syntax / content checker that verifies the lib.props file against the library itself.

The build was successful now.
imho a +1 for a syntax / content checker that verifies the lib.props file against the library itself.

+1 for a syntax / content checker that verifies the lib.props file against the library itself

That should be available in Arduino-CI/action@latest, did you try that out?

+1 for a syntax / content checker that verifies the lib.props file against the library itself

That should be available in Arduino-CI/action@latest, did you try that out?

+1 for a syntax / content checker that verifies the lib.props file against the library itself

That should be available in Arduino-CI/action@latest, did you try that out?

Not for this repo - I'll merge the succeeded arduino-ci build first and do a test afterwards

+1 for a syntax / content checker that verifies the lib.props file against the library itself

That should be available in Arduino-CI/action@latest, did you try that out?

Not for this repo - I'll merge the succeeded arduino-ci build first and do a test afterwards

Latest caught it
Run Arduino-CI/action@latest
/usr/bin/docker run --name cc4956f625cf8bc22b4d32a068ac733b9ef3c9_d43ebe --label cc4956 --workdir /github/workspace --rm -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/MultiMap/MultiMap":"/github/workspace" cc4956:f625cf8bc22b4d32a068ac733b9ef3c9
Located arduino-cli binary...                         /usr/local/bin/arduino-cli
Environment variable CUSTOM_INIT_SCRIPT...                                    ''
Environment variable USE_SUBDIR...                                            ''
Installing library under test...                                               ✓
WARNING...     Installed library named 'MultiMap' has directory name 'workspace'
Library installed at...                  /github/home/Arduino/libraries/MultiMap
library.properties 'includes=' entry 'multimap.h' exists...                    ✗               <<<<<<<<<<<<<<<<<<<<<<
This may indicate a problem with your configuration; halting here
Failures: 1
Last message:  $  /usr/local/bin/arduino-cli --format json config dump
========== Stdout:
{
  "board_manager": {
    "additional_urls": []
  },
  "daemon": {
    "port": "50051"
  },
  "directories": {
    "data": "/github/home/.arduino15",
    "downloads": "/github/home/.arduino15/staging",
    "user": "/github/home/Arduino"
  },
  "logging": {
    "file": "",
    "format": "text",
    "level": "info"
  },
  "telemetry": {
    "addr": ":9090",
    "enabled": true
  }
}
========== Stderr:

The cross shows that it actually doesn't exist
The json dump does not give more information.
Better than the current master as it points to the right spot.

                                    ''
Environment variable USE_SUBDIR...                                            ''
Installing library under test...                                               ✓
WARNING...     Installed library named 'MultiMap' has directory name 'workspace'
Library installed at...                  /github/home/Arduino/libraries/MultiMap
library.properties 'includes=' entry 'multimap.h' exists...                    ✗               <<<<<<<<<<<<<<<<<<<<<<
This may indicate a problem with your configuration; halting here
Failures: 1
Last message:  $  /usr/local/bin/arduino-cli --format json config dump
========== Stdout:
{
  "board_manager": {
    "additional_urls": []
  },
  "daemon": {
    "port": "50051"
  },
  "directories": {
    "data": "/github/home/.arduino15",
    "downloads": "/github/home/.arduino15/staging",
    "user": "/github/home/Arduino"
  },
  "logging": {
    "file": "",
    "format": "text",
    "level": "info"
  },
  "telemetry": {
    "addr": ":9090",
    "enabled": true
  }
}
========== Stderr:

The cross shows that it actually doesn't exist
The json dump does not give more information.
Better than the current master as it points to the right spot.

Thanks!
The JSON dump isn't necessarily helpful in all cases, it's just part of the failure reporter in the test runner script.  I will make it more explicit that it's conveying the last interaction with the backend.

Thanks!
The JSON dump isn't necessarily helpful in all cases, it's just part of the failure reporter in the test runner script.  I will make it more explicit that it's conveying the last interaction with the backend.

are these the proper fixes, given a specific arduino-cli version?
arduino-cli 0.13.0
 architectures=*
- includes=multimap.h
+ includes=MultiMap.h
 depends=

That's the proper fix regardless of Arduino CLI version. The problem is simply that the filename in the library.properties includes field is different from the filename in the library. In this case, that happened to be due to case mismatch, but the problem would have been the same if it was something like "foo.h".
The intended usage of the library.properties field is to customize which #include directives should be added to the sketch when someone selects the library from the Arduino IDE's Sketch > Include library menu. By default, this convenience feature will add #include directives to the sketch for every header file in the root of the library's source folder, but in some cases that's not the appropriate behavior, in which case the library author can specify the #include directives they want via the includes field. So with the previous library.properties configuration, if someone had selected Sketch > Include library > MultiMap, this line would have been added to the top of the currently opened sketch:
#include <multimap.h>

which would have resulted in a compilation error since the filename in the library is MultiMap.h. That's the bug in the MultiMap library.
But if the Arduino IDE's Sketch > Include library menu was not used then the incorrect includes field value should have no effect whatsoever on compilation. The fact that it did affect compilation is the bug in Arduino CLI 0.13.0.

are these the proper fixes, given a specific arduino-cli version?
arduino-cli 0.13.0
 architectures=*
- includes=multimap.h
+ includes=MultiMap.h
 depends=

That's the proper fix regardless of Arduino CLI version. The problem is simply that the filename in the library.properties includes field is different from the filename in the library. In this case, that happened to be due to case mismatch, but the problem would have been the same if it was something like "foo.h".
The intended usage of the library.properties field is to customize which #include directives should be added to the sketch when someone selects the library from the Arduino IDE's Sketch > Include library menu. By default, this convenience feature will add #include directives to the sketch for every header file in the root of the library's source folder, but in some cases that's not the appropriate behavior, in which case the library author can specify the #include directives they want via the includes field. So with the previous library.properties configuration, if someone had selected Sketch > Include library > MultiMap, this line would have been added to the top of the currently opened sketch:
#include <multimap.h>

which would have resulted in a compilation error since the filename in the library is MultiMap.h. That's the bug in the MultiMap library.
But if the Arduino IDE's Sketch > Include library menu was not used then the incorrect includes field value should have no effect whatsoever on compilation. The fact that it did affect compilation is the bug in Arduino CLI 0.13.0.

...wow.  if that's the case, the docs convey almost none of that.

includes - (available from Arduino IDE 1.6.10) (optional) a comma separated list of files to be added to the sketch as #include <...> lines. This property is used with the "Include library" command in the Arduino IDE. If the includes property is missing, all the header files (.h) on the root source folder are included.

Is there a way to submit improvements to that text?  I'd suggest

includes - (available from Arduino IDE 1.6.10) (optional) a comma separated list, indicating the set of files that a sketch would need to include (as #include <...> lines) in order to use the library. This property informs the "Include library" command in the Arduino IDE, which auto-inserts those lines into a sketch. If the includes property is missing, all the header files (.h) on the root source folder are inserted.

Throughout this entire conversation I had been convinced that include= was a signal to the compiler or something.
That brings me to another question: is it allowed to include a file that doesn't end in .h?  I may need to adjust logic if so.

...wow.  if that's the case, the docs convey almost none of that.

includes - (available from Arduino IDE 1.6.10) (optional) a comma separated list of files to be added to the sketch as #include <...> lines. This property is used with the "Include library" command in the Arduino IDE. If the includes property is missing, all the header files (.h) on the root source folder are included.

Is there a way to submit improvements to that text?  I'd suggest

includes - (available from Arduino IDE 1.6.10) (optional) a comma separated list, indicating the set of files that a sketch would need to include (as #include <...> lines) in order to use the library. This property informs the "Include library" command in the Arduino IDE, which auto-inserts those lines into a sketch. If the includes property is missing, all the header files (.h) on the root source folder are inserted.

Throughout this entire conversation I had been convinced that include= was a signal to the compiler or something.
That brings me to another question: is it allowed to include a file that doesn't end in .h?  I may need to adjust logic if so.

Is there a way to submit improvements to that text?

Sure! The entire source of the documentation content of https://arduino.github.io/arduino-cli/dev/ is hosted in the arduino/arduino-cli repository:
https://github.com/arduino/arduino-cli/tree/master/docs

is it allowed to include a file that doesn't end in .h? I may need to adjust logic if so.

Yes. The header file extensions are merely a convention. There is no special treatment from the compiler based on which is used. The standard library actually doesn't use any extension, so you'll see things like this:
#include <functional>

However, the Arduino build system does require specific header file extensions in a couple of situations:

Header files in the sketch folder. https://github.com/arduino/arduino-cli/blob/0.14.0/arduino/globals/globals.go#L29-L32
The primary header files of a library: https://github.com/arduino/arduino-cli/blob/0.14.0/arduino/libraries/libraries.go#L221

Is there a way to submit improvements to that text?

Sure! The entire source of the documentation content of https://arduino.github.io/arduino-cli/dev/ is hosted in the arduino/arduino-cli repository:
https://github.com/arduino/arduino-cli/tree/master/docs

is it allowed to include a file that doesn't end in .h? I may need to adjust logic if so.

Yes. The header file extensions are merely a convention. There is no special treatment from the compiler based on which is used. The standard library actually doesn't use any extension, so you'll see things like this:
#include <functional>

However, the Arduino build system does require specific header file extensions in a couple of situations:

Header files in the sketch folder. https://github.com/arduino/arduino-cli/blob/0.14.0/arduino/globals/globals.go#L29-L32
The primary header files of a library: https://github.com/arduino/arduino-cli/blob/0.14.0/arduino/libraries/libraries.go#L221

Sorry... to clarify, is the IDE going to read the property include=functional and write #include <functional> in the sketch as part of the "Include library" menu command?

Sorry... to clarify, is the IDE going to read the property include=functional and write #include <functional> in the sketch as part of the "Include library" menu command?

Yes. The Arduino IDE doesn't do any validation/restrictions on the contents of the includes field. It just splits on commas, trims whitespace and adds #include directives for each of the elements to the top of the sketch that is open at the time.

Yes. The Arduino IDE doesn't do any validation/restrictions on the contents of the includes field. It just splits on commas, trims whitespace and adds #include directives for each of the elements to the top of the sketch that is open at the time.

Opened https://github.com/arduino/arduino-cli/pull/1124
Looks like I'll have to scale back the logic to just warnings about the include= entries not corresponding to files.

Opened https://github.com/arduino/arduino-cli/pull/1124
Looks like I'll have to scale back the logic to just warnings about the include= entries not corresponding to files.

Opened arduino/arduino-cli#1124

Thanks! I'll do a review as soon as you run the formatting task and sign the CLA.

Opened arduino/arduino-cli#1124

Thanks! I'll do a review as soon as you run the formatting task and sign the CLA.


Make -m window --focus iterative

I can't afford having 4 (or even 2 with next and prev) keys just to focus windows. I'd like it to be iterative so that when it reaches last window, it starts again. This way I'll be able to use just --focus next to focus all the windows in current space. Actually it's a built-in feature in OS X (Keyboard -> Shortcuts -> Keyboard -> Move focus to active or next window), but it's clunky, I suppose because of "active" part, which means that sometimes if I move to some space and use this shortcut it returns me to the previous space.

yabai returns a non-zero exit code if a command failed, which you can use to implement wraparound:
# cycle forwards
yabai -m window next || yabai -m window first

# cycle backwards
yabai -m window prev || yabai -m window last

In the code snippet of @dominiklohmann --focus is missing
# cycle forwards
yabai -m window --focus next || yabai -m window --focus first

# cycle backwards
yabai -m window --focus prev || yabai -m window --focus last


[Bug]: ODP cannot connect

ODC version
ODC4.2.3
OB version
independent
What happened?
ODP cannot connect

What did you expect to happen?
can connect
How can we reproduce it (as minimally and precisely as possible)?
chat privately
Anything else we need to know?
No response
Cloud
No response

the observer may be crashed.

PASS


[feat] Add bunjs support

Describe the problem
it would be awesome if you can use bun instead of nodejs, it may be faster and easier for the developer.
Describe the solution you'd like
add the bun cli to start a new project.
Alternatives considered
No response
Additional context
No response

We are not using Node.js at all, so we can't replace it with bun.
Tauri uses Rust as a backend and normal JS in the browser in the frontend, with plans to support different languages for the backend, see #4670.
You can however use bun as of now as a package manager for your frontend project.

okay thank you for claring it!


TouchScreenButtons break with Rapier2D enabled

Describe the bug
If you enable Rapier 2D physics in Godot Project, TouchScreenButtons register no more touch events.
As soon as I disable the Rapier physics, they start working again.
To Reproduce
Add this to your project settings:
[physics]
2d/physics_engine="Rapier2D"w

Add a TouchScreenButton to any scene. It will not emit any signals or InputEvents on touch.
Expected behavior
TouchScreenButtons should be unaffected by Rapier or at least work similarly.
Environment:

OS: Windows
Godot Version: tested with 4.2, 4.3rc1, 4.3dev6
Type: simd single 2d

Example Project:
touch-buttons-test.zip
"Mouse input as touch" is enabled, so this can also be tested using the mouse.
Tapping the button/pressing space will print "Hey!".
If I enable Rapier, it doesn't.

The touchscreen button uses shape_collide with no motion, and in rapier the function without motion results in no result, bc it can't put a direction (eg normal results in size 0).
So put a small motion to both of 0.001 (before they also had this, but they both had same motion, so same issue, so now changed to put to one a motion of -0.001, -0.001 and other 0.001, 0.001).


Food Items Backend

A db with the following fields:

foodId
foodName
dietType
description
specialIngredients
serving
specialNote
foodImageId
locationLat
locationLong
status:
createdAt
deletedAt
updatedAt

The backend should allow for manipulation of the status field.

and the updatedAT field as well

working on it

I have built the API using Gin with most of the requested fields, currently writing a readme and a possible docker deployment
missing fields are: created at
deleted at
updated at

Done

just merge the pull request and the issue will be closed

I forgot two important fields
angelUserID
humanUserID

I'll add the fields today

when you updated the fields, did you add patch to humanUserID and updatedAT

Also add status and message to the response upon patching

do you want to be able to patch all the fields

working on status and message then

I have enabled patch for all fields


MercuryTrade stops showing notifications after a while, needs restart. Still not working.

MercuryTrade stops showing notifications after a while, please fix this if you have time!

Same here

Sam here. I can't trade without Mercury...

Same for me. Restarting doesn't help. I have the latest version.

Same here but it starts working again after closing poe trade macro. Pls fix.

Notifications stopped working like 2 days ago and I can't fix it...

Guys - try following:
close POE and Mercury, search poe-install folder and look for the "Client.txt" eg. Steam\steamapps\common\Path of Exile\logs\Client.txt
delete the client.txt - start POE & Mercury again.
The problem is (sometimes) when the logfile is too big Mercury can't handle it well, since it use the logfile.


migrations list picks up hidden files and those not ending in .sql, such as vim swapfiles

Bug report
Describe the bug
Commands that interact with migrations pick up any file that contains the given regex, not those that end in .sql or that aren't hidden files.
tl;dr
https://github.com/supabase/cli/blob/72f79c76c477525f7f86d703848ce67daf960cdd/internal/utils/misc.go#L106
should be changed to something like
MigrateFilePattern = regexp.MustCompile(`^[^\.].*([0-9]+)_.*\.sql$`)

(note: I don’t know golang really)
To Reproduce
> supabase migration new test
Created new migration at supabase/migrations/20221210224402_test.sql.
> touch supabase/migrations/.20221210224402_test.sql.swp
> supabase migration list

        LOCAL      │     REMOTE     │     TIME (UTC)
  ─────────────────┼────────────────┼──────────────────────
<PHONE_NUMBER>4402 │                │ 2022-12-10 22:44:02
<PHONE_NUMBER>4402 │                │ 2022-12-10 22:44:02

If you supabase db push, it will push both files.  If the second file was created because you ran vim, you get all kinds of weird errors because Postrgres tries to execute the contents of the vim swapfile.
Expected behavior
Would expect it to ignore hidden files for sure, and also would only expect it to use files ending in .sql
Screenshots
N/A
System information
> supabase --version
1.22.1

installed on macos with homebrw

Thanks for catching this bug. I will release a fix soon.


feature:  prepare declad to accept a metacat-native JSON file

Metacat has a native all-json file descriptor, we want to shift all of our various metadata uploaders to use that.
Documented in
https://metacat.readthedocs.io/en/latest/ui.html#declare-a-single-file

@StevenCTimm -- do you have a representative json file in the "native all-json" format? And do you want to be able to still declare to SAM as well?


Inconsistent dependency labels

Is there an existing issue for this?

[X] I have searched the existing issues

Package ecosystem
all
Package manager version
No response
Language version
No response
Manifest location and content before the Dependabot update
No response
dependabot.yml content
No response
Updated dependency
No response
What you expected to see, versus what you actually saw
I expect that all pull requests are labelled consistently
Some pull requests are labelled as "dependencies" and ecosystem while others are labels as "dependency" and ecosystem
Examples:
https://github.com/bigdaz/android-cache-fix-gradle-plugin/pull/22
https://github.com/DataBiosphere/terra-billing-profile-manager/pull/157
Native package manager behavior
No response
Images of the diff or a link to the PR, issue, or logs
No response
Smallest manifest that reproduces the issue
No response

@yeikel This is because the second repository has explicit labels configured through .github/dependabot.yml. Let me know if that makes sense!

@yeikel This is because the second repository has explicit labels configured through .github/dependabot.yml. Let me know if that makes sense!

It makes sense in this scenario, but I have seen this inconsistency as well running dependabot-core directly
Also in this example  https://github.com/24pullrequests/24pullrequests/blob/main/.github/dependabot.yml I do not see any mention to the "dependency" label but see https://github.com/24pullrequests/24pullrequests/pull/3916
Another example: https://github.com/nimiq/core-rs-albatross/blob/albatross/.github/dependabot.yml
Please let me know if I am missing anything!

I don't have an explanation for that, so let me reopen this!


winbox: 3.41 -> 4.0beta1

Description of changes
https://forum.mikrotik.com/viewtopic.php?t=210505
4.0 beta release has official Linux support!
Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] 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

[x] Fits CONTRIBUTING.md.

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

I have marked this as a draft, as it's just a beta version for now

Thanks for getting this started! :)
Maye it should be packaged as "winbox4"? I think there is value in adding it already but "winbox3" should probably be kept arround at least until they mark it as stable. And until then "winbox" should probably keep refering to "winbox3".
Oh and they've since already published 4.0beta3: https://download.mikrotik.com/routeros/winbox/4.0beta3/WinBox_Linux.zip

Wouldn't it be a good idea to avoid adding the version number in the name of the package ? (e.g., pkgs/by-name/wi/winbox4/package.nix => pkgs/by-name/wi/winbox/package.nix)
I would be in favour to package winbox4 the same way winbox3 is packaged (not in pkgs/by-name), then, when winbox4 is out of beta, move it to pkgs/by-name.

My assumption was this:

WinBox 4 becomes stable
We make winbox4 the default winbox
Some time later (or right away), we drop winbox3
We rename winbox4 to winbox and create an alias for winbox4 (?)

Also, how about dropping winbox3 now?

Also, how about dropping winbox3 now?

I'd prefer keeping it around, at least until MikroTik doesn't provide two main download links here anymore: https://mikrotik.com/download. Further, I think winbox should continue to point to the latest non-beta version

I don't have


fixed space to parse

Which issue this PR addresses:

Fixes
What this PR does / why we need it:

Test plan for issue:

Is there any documentation that needs to be updated for this PR?

fixed spacing in go.mod to get this to parse now.


Use cases for module attributes besides module type

The initial use case for module attributes is types, but module attributes had been previously discussed over several years. Some other possible use cases:

Fetch parameters -- e.g., various policies, authentication options, etc. Unclear how this would interact with caching modules, or how this would be represented
SRI or other integrity markers -- this interacts poorly with caching, and it may be best to have this out of line in some other yet-to-be-designed resource file
Marking CJS modules in Node -- this may be a good use of the type field
Redirection to find the module within a WebPackage -- I don't know the current state of all this; maybe @nyaxt could clarify if this makes any sense
Built-in module polyfilling -- now that import maps are not proposed to serve this purpose (initially, a complex module specifier was proposed, so this would be analogous)

For each of these, there would be a significantly greater amount of investigative work to make a real proposal. This repository does not aim to do that work, but I'd like to just understand a bit more about the broader space. Some questions to discuss in this issue:

Does anyone have any other use cases besides type, or comments on the above?
Do strings make sense as values for the additional possible module attributes?
Do we really think it's likely that we'll eventually want any of them, or will type alone probably suffice?

I think another use case would be for tooling; transpilers could tune their code generation based on attributes for instance:
import {a} from "b" with parserPlugin: 'jsx';

This proposal allows arbitrary keys so it could be anything.

@xtuc On one hand, this could cause more divergence in the ecosystem. On the other hand, I imagine it may be nicer than maintaining separate configuration files.

Maybe it could be useful in testing scenarios? similar to libraries like proxyquire.
import { a } from './my-module.js' with stub: { 'path': './my-path-stub.js' };

It may also be useful for some form of dependency injection?

Just for reference, this was already discussed in tc39 a bit for the integrity case with these slides.

Thanks for the cross-references. To summarize, @domenic explained why module attributes would be a suboptimal solution for integrity, and the committee agreed. I am not proposing integrity as a primary use case, but given all past discussion, it seemed worth mentioning.

I had done a POC months before to ES import a TypeScript file in the browser directly. I used syntax like
import mod from "/typescript-transpiler.js?path=/src/index.ts"

And I use import.meta.url to get the "self" URL where a path parameter in it. With module attributes, I can write
import mod from '/typescript-transpiler.js' with { path: "/src/index" }; // or whatever the syntax is.
// And I can read import.meta.attributes or whatever in typescript-transpile.js to do the compiler job

This requires re-instantiate the whole module if the module attributes are different but the path is the same.
The previous trick in the URL parameter is working because the browser treats the same URL with different URL parameters as different modules.
I think re-instantiate in module attribute might be a serious problem. Does the current semantic of module attribute support this?

Here's some ideas I have for use cases of per-import-site module attributes:

parameters to built-in parsers, such as a reviver for the JSON parser, a content encoding, a start production, etc
parameters to built-in validators, such as an expected mime-type, an expected maximum size or object count, a parsing timeout, an expected schema, etc
provide a custom parser
delayed execution of top-level statements (as in integration of two modules with non-cooperating authors)
capabilities
specifying security/feature policies to use
specifying the realm to execute the module in
forced re-execution of a possibly-cached module

The custom parser use case could be solved by having a "text/plain" or "application/octet-stream" type supported where it just gives you what came in off the wire instead of parsing/executing the resource. The capabilities and realms use cases could be solved by instead importing within a Realm as in the Realms proposal.
Notice that none of these would be more appropriately provided via out-of-band metadata because they each may vary at different import sites for the same resource.

specifying security/feature policies to use

I brought this up at the end of the December Realms/Compartments meetup in SF. Having the ability to restrict, eg, network access at the import site would be extremely powerful:
const basicThing from 'lib' with { network: false };

Or, just strip all privileged API access:
const basicThing from 'lib' with { privilege: 'none' };

I'm not sure if it's relevant, but webpack uses magic comments to name chunks or select different modes.
https://webpack.js.org/api/module-methods/#magic-comments

Module attributes could also be used to implement asset references (like proposed in https://github.com/tc39/proposal-asset-references).
If a reference to a module is needed (instead of the module itself), it could be imported as:
import moduleRef from 'module' with {reference: 'asset'};

import(moduleRef);
MyCustomLoader.load(moduleRef);

It could be used together with the type attribute:
import jsonRef from 'json-file' with {type: 'json', reference: 'asset'};

import(jsonRef);

We use a custom API for this at Facebook and having a standard syntax for it would be great (either with the asset references proposal or with this one).

I'm thinking something like this: https://github.com/surma/rollup-plugin-comlink would be nice to support.

@Somnid it's a use case for https://github.com/tc39/proposal-import-assertions#follow-up-proposal-evaluator-attributes. Assertions are not transforming the module, but asserting it's type.

A lot of people would like support for specifying alternative parsers, specifically for working with languages that compile to JavaScript. There are existing projects that hack Chromium to permit importing TypeScript directly, so it'd be nice to have a proper API for that kind of thing. However, being able to import the plain code wouldn't really solve the issue. The TypeScript parser would need to convert the imported source to JavaScript source, then call eval on it, which has all kinds of issues.
Ideally, we'd be able to specify that an import is a module (and needs to be executed), but that it is not written in JavaScript, and to specify the parser to use to parse it. The parser would then return the JavaScript that would be imported as normal.
Given that static imports are the first thing in the file, it would be difficult to specify a parser with anything other than a URL that the parser can be imported from. I'm not precisely sure how that would work??
Longer term, it'd be awesome if the parser had the option of returning some form of standardized JavaScript AST, eliminating the need to generate JavaScript source code. This would be a lot cleaner and more efficient, and (IIUC) it would also eliminate the need for source maps (the AST would take its line and column numbers from the source language), so debugging source languages in DevTools (with breakpoints etc) would just work.
Obviously, supporting a standard AST format requires an AST format, which is beyond the scope of import assertions, but supporting source-to-source parsers seems to be something that could be explored here, and it would open up the possibility of source-to-AST-parser support later.

A runtime source-to-source parser heard like "I need eval" to me

Hey @Jack-Works. Thanks for considering it.

A runtime source-to-source parser+executor heard like "I need eval" to me

Electron already has eval. That's not the issue. Importing stuff like TypeScript is not especially useful, if you're only able to load the source files, specifically because they would then require eval (once compiled) to execute, which is not the same as importing modules.
Maybe there could be some other hook, related to the dynamic import function. I dunno.  I'm a vanilla JS guy. I was just considering the usefulness of the usecase.

@Jack-Works - On reflection, I was wrong about extending the import syntax to support registering alternative parsers etc. It doesn't really belong here.
It would be much more flexible to generalize from language parsers to response adaptors that can intercept any resource, including imports, as well as XHR requests, stylesheets, image/audio/video tags etc.
Rather than do this in import statements, adaptors could be registered in a global registry (like custom HTML elements, or something similar), mapping some non-standard memetype to a handler that can either render the resource fully, or can convert it to a standard resource that the browser would take from there.
I've obviously just sketched out one way it could work, roughly. In any case, while import assertions could be affected by a proposal like that (maybe allowing something like import foo from "./main.funky" assert {usertype: "funky"}), I'm pretty certain now that registering these adaptors inside import statements was a bad idea.
Sorry for the noise, and thanks for considering it anyway.

I think it'd be pretty cool to allow importing modules as workers with this syntax.
import workerRef from "./worker.js" with { type: "module", worker: true};
// or
const workerRef = await import("./worker.js", { with:  { type: "module", worker: true} });

workerRef.onchange = ()=>{
    console.log("hello world");
}

Definitely deserves some bike shedding on the syntax.

Vite has something similar to what @lino-levan proposes: https://vitejs.dev/guide/features.html#import-with-query-suffixes

Thinking it would be useful for the service worker to know about the attributes so a service worker could polyfill stuff.
And also for servers, could it be sent with some request headers?
also how about using credentials?

import credentials from './secrets.json' with {type: 'json', credentials: 'include', headers: xyz }

Sending attributes to the server could enable some interesting use cases, like auto-proxying server code to the client.
// The server generates a client module that implements functions
// as RPC calls to the server. server.js is actually a Node module.
import {queryFoo, addFoo} from './server.js' with {serverProxy: true};

// Some imagined query API
const foos = await queryFoo(['name', '==', 'bar']);

It would be great to replace fs.readFile('./content.txt', 'utf8') with something like:
import content from './file.txt' with { type: 'text' };

const isScript = content.startsWith('#!/bin/sh');

Similarly, it would be great to replace fs.readFile('./file.mp3') with something like:
import content from './file.mp3' with { type: 'blob' };

const ab = await blob.arrayBuffer();

This would effectively standardize file reads and even allow bundlers to inline the content when using { type: 'text' }.

@styfle Since there's no instantiation, linking, or evaluation for text/blob assets, I imagine you would want to use the source keyword from https://github.com/tc39/proposal-source-phase-imports with these imports.

@michaelficarra Thanks! I'm not sure if that proposal would import as a string or blob. It says:

This proposal allows ES modules to import a reified representation of the compiled source of a module when the host provides such a representation:

I then references another proposal but it looks stale: https://github.com/tc39/proposal-asset-references

An asset reference here would just be a URL object. See this slightly outdated presentation. That's not what you're looking for if I understand you correctly.

I'm not sure if that proposal would import as a string or blob.

I was thinking you would use the source keyword in conjunction with { type: 'text' } or { type: 'blob' }. Since instantiation, linking, and evaluation would all be a no-op for such assets, it better conveys to the reader that those steps are skipped.

And I use import.meta.url to get the "self" URL where a path parameter in it. With module attributes, I can write
import mod from '/typescript-transpiler.js' with { path: "/src/index" }; // or whatever the syntax is.
// And I can read import.meta.attributes or whatever in typescript-transpile.js to do the compiler job

Wouldn't it make more sense to have the actual file in the from and the transpiler as an attribute of sorts?

I think another use case would be for tooling

Not sure if JS should have "knowledge" of tooling/be dependent on it.

It would be much more flexible to generalize from language parsers to response adaptors that can intercept any resource, including imports, as well as XHR requests, stylesheets, image/audio/video tags etc.
Rather than do this in import statements, adaptors could be registered in a global registry

The import maps WICG proposal talks about why they decided against a programmable resolution hook. I'm not sure as to if and to what extent this also applies to this proposal

Similarly, it would be great to replace fs.readFile('./file.mp3') with something like:
import blob from './file.mp3' with { type: 'blob' };

const ab = await blob.arrayBuffer();

In this context, the parser augmentation proposal might be interesting.

I'm not sure if type could be used for this use case, but I think it would be great to replace fs.readFile('./content.txt', 'utf8') with something like:
import txt from './file.txt' with { type: 'text' };

const isScript = txt.startsWith('#!/bin/sh');

This could be taken even further by including a charset attribute:
import txt from './file.txt' with { type: 'text', charset: 'utf8' };

const isScript = txt.startsWith('#!/bin/sh');


Getting a basic deployment to work.

I am trying to deploy monocular on AWS EC2 instances . I set up nginx-ingress to use NodePort since I do not have a LB at my disposal right now and set ssl-redirect: "false" following the advice of @prydonius to avoid ssl redirects.
kubectl get ingress does not give an IP (expected)
but when I access monocular using the nodeIP:nodePort of nginx-ingress, the page loads but getting chart or repositories just circling around and not return anything.
If I access monocular using the nodeIp:nodePort of monocular-ui, I see the deployment, repos table but clicking on them does not retrieve my deployments.
Any help on what I am doing wrong ?

hey @pkrishn6, can you see any Javascript errors in your browser's console, or any failed requests in the network tab?

@prydonius : Thanks for your response.
This is the error:
Request URL: http://xxxxx:32342/api/v1/repos
Request Method: GET
Status Code: 503 Service Temporarily Unavailable
Remote Address: xxxxxxxx:32342
Referrer Policy: no-referrer-when-downgrade
similar error for charts. Could this be a connectivity to mongoDb issue like #430  ?
I am unable to zero-in on the problem from kubectl logs of the api pod. I have just one api and one ui pod.
MongoDb set up with emptyDir
Ingress setup with nodePort .

And interestingly, just deleting the values of "repos" key  in values.yaml was not sufficient to not download any repos.
// Enabled returns the map of repositories
func Enabled(configFile string) (Repos, error) {
_, err := os.Stat(configFile)
if os.IsNotExist(err) {
log.Info("Loading default repositories")
return official, nil
}
log.Info("Loading repositories from config file")
repos, err := loadReposFromFile(configFile)
if err != nil {
return nil, err
}
if len(repos) == 0 {
	log.Info("No repositories found, using defaults")
	**return official, nil**      <-------- Here
}

Looked at this code and though clearing the "repos" key from the values.yaml will do but that did not do the trick either.
loadReposFromFile I think does not return an err and hence official is returned. This pretty much gives users no option to disable official repos which I think is a bug

@pkrishn6 it's "normal" for the API pod to restart many times as it downloads large Chart repos (like the stable one). Is it taking longer than 10 minutes to get to a running state?

Was able to get the deployment to work.

ingress resource should have annotation:
nginx.ingress.kubernetes.io/rewrite-target: /       instead of
ingress.kubernetes.io/rewrite-target: /    if the chart version of ingress-nginx is 0.17.1 or lower

Thanks @prydonius for all the help .

@pkrishn6 this should now be fixed in the 0.5.1 chart version! thanks!


[BUG][Functional] Cross-account Athena queries of logs are not possible

Required Basic Info

Accelerator Version:  v1.3.7
Install Type: Clean
Upgrade from version: N/A

Describe the bug
Cross-account Athena queries of the log bucket(s) are not possible because the ASEA-managed bucket and key policies (generated by flagging roles with "ssm-log-archive-read-only-access": true) lack the s3:ListBucket action.
Failure Info
Athena is unable to execute queries due to an S3 permission failure.
Required files
N/A
Steps To Reproduce

In the config file, add a role flagged with ssm-log-archive-read-only-access: true in the security account.
Execute the state machine to create the role and update the log archive's bucket and key policies.
Create a Glue data catalog and table in the log account.
Enable cross-account access for the security account as per https://docs.aws.amazon.com/athena/latest/ug/security-iam-cross-account-glue-catalog-access.html.
Assume the read-only role in the security account.
Configure Athena's query output location and connect to the log data catalog.
Attempt to preview the table.
Athena will raise an S3 permission error.

Expected behaviour
Athena can query logs.
Screenshots
N/A
Additional context
N/A

We should also add the following to the PBMMAccel-SSMReadOnlyAccessPolicy attached to these roles:
            "Action": [
                "glue:Get*",
                "glue:BatchGet*"
            ],
            "Resource": [
                "arn:aws:glue:<REGION>:<LOG-ACCOUNT>:*"
            ]

The IAM policy can be worked around by adding the required permission in a managed policy. However, the only workaround for the bucket policy is to manually edit it via the console.


fix: firefox launch

Explanation
This PR fixes firefox launch issue. However, user still needs to allow permissions on firefox extension settings to make cryptkeeper work. This is because host permissions in firefox are optional.
Details are below:

[x] Replace webextension-polyfill-ts with webextension-polyfill
[x] Remove scripting.registerContentScripts and use manifest for content scripts
[x] Firefox compatibility fixes

More Information
Closes #500
Screenshots/Screencaps
N/A
Manual Testing Steps
Can launch in firefox
Pre-Merge Checklist

[x] PR template is filled out
[ ] IF this PR fixes a bug, a test that would have caught the bug has been added
[x] PR is linked to the appropriate GitHub issue
[x] PR has been added to the appropriate release Milestone

PR template source from github.com/MetaMask

@0xmad Let's please put this in a daft mode for now.


the PCB has an error.Arduino nano d4 can not set interrupt.

Yes, we have already updated the PCB. But are still waiting for prototypes for testing.
If you have already ordered the old PCB, you can initialize the following variables
int temp = 0;
int speed_l = 0;
int speed_r = 0;

disable the interrupts
  //attachInterrupt(digitalPinToInterrupt(PIN_SPEED_L), speed_left, RISING);
  //attachInterrupt(digitalPinToInterrupt(PIN_SPEED_R), speed_right, RISING);

and use this code snippet in the the main loop to read the speed sensors manually:
  temp = digitalRead(PIN_SPEED_L);
  if (temp != speed_l) {
    speed_l=temp;
    speed_left();
  }
  temp = digitalRead(PIN_SPEED_R);
  if (temp != speed_r) {
    speed_r=temp;
    speed_right();
  }

Note that one revolution will correspond to 40 ticks now, since every change (RISING + FALLING) is detected.

ok, thank you.

This is addressed in the code now. Simply set the PCB version. No need to add the code above.

Thank you.I have a question,in autopilot mode, where is the cmd come from?


seprate css file

@rccji Perhaps reset up to cf02d83 & add the link element in?
Then perhaps a separate favicon PR if you do create a custom icon?

Closing in preference to #49


Change color for objects in GUI?

Can I change color for object inside GUI? currently I cannot find any setting allow me to do that.

Do you mean the colors for visualizations? You can change the palette here: https://github.com/hkchengrex/Cutie/blob/a9cad9acdd3bcb027e48e276547b9766312d8326/gui/interactive_utils.py#L42


Subterra

This mod is newer but has a lot of possibilities for compatibility https://www.curseforge.com/minecraft/mc-mods/subterra

And if you do thank you, your mod is great

I'm take a look data folder in mod jar file
Is that mod doesn't has forge:ores/XXX blocks?
I can't found tagged blocks

Google translate

Subterra is under development, so there is a possibility that the developer will add tags.
Could you make a suggestion to the Subterra developers first?
If the developer answers 'NO', I'll write the compliant code

Subterra developer seems very busy, no reply
Instead I will write compatible code
Maybe apply to v0.10?

Investigated Subterra items.
Almost all of the ore does not processing ore to ingot directly
There are many combinations of Subterra unique, so it seems inappropriate to apply it to this mode.
Perhaps it would be better to split it into separate modes.
Like 'Subtera Addon (Mechanism Processing)'
So sorry


Implement xstate-ninja-vue

Contribution for #7
@rlaffers Should I add my name as author for the @xstate-ninja/vue package ?

Some screenshot of the example

Contribution for #7
@rlaffers Should I add my name as author for the @xstate-ninja/vue package ?

Yes please.

Contribution for #7
@rlaffers Should I add my name as author for the @xstate-ninja/vue package ?

Yes please.

Done @rlaffers thanks

resolve #7

Could you publish it on npm ?

What do you think about a more generic way to register Ninja ?
import type { AnyInterpreter } from 'xstate'

import createXStateNinjaSingleton from 'xstate-ninja'

const ninja = createXStateNinjaSingleton()

export function registerNinja(actor: AnyInterpreter) {
  return watchEffect((onCleanup) => {
    if (actor.options?.devTools) {
      ninja.register(actor)
      onCleanup(() => ninja.unregister(actor))
    }
  })
}

const machine = useMachine(gatewayMachine, {
  id: `${gatewayMachine.id}-${id.value}`,
  devTools: true,
})

onScopeDispose(registerNinja(machine.service))

The onScopeDispose is a vue method to auto call the method when the vue who started the machine get deleted


JsonInheritanceConverter.WriteJson doesn't respect JsonSerializer settings

Could the JsonInheritanceConverter.WriteJson be somehow changed to support the settings of the JsonSerializer when serializing discriminator field?
The current implementation serializes the discriminator name in the same form as given in the constructor:
jObject[_discriminator] = JToken.FromObject(GetDiscriminatorValue(value.GetType()));
This works fine until you change how property names should be serialized:
serializer.ContractResolver = new CamelCasePropertyNamesContractResolver();
After adding the CamelCasePropertyNamesContractResolver, one might expect that the discrimator field would also start with a lower-case letter. This is not the case, if the discriminator is for example "Type". In this case, everything else is serialized with lower-case letter as the first letter, but the discriminator field with be serialized as upper-case letter as the first letter.
One ugly solution would be to forcefully add the property before serialization, so the settings of the serializator would be respected:
var expando = new ExpandoObject();
var dictionary = (IDictionary<string, object>)expando;

foreach (var property in value.GetType().GetProperties())
{
    dictionary.Add(property.Name, property.GetValue(value));
}

dictionary.Add(_discriminator, JToken.FromObject(discriminator));

var jObject = JObject.FromObject(expando, serializer);

writer.WriteToken(jObject.CreateReader());

This is not a good solution, but I think you get the point.

My "solution" probably breaks more than it fixes. But the general idea was that it would be nice to serialize discriminator with the given serializer. That way all the settings of the serializer could have an effect to the discriminator field as well.

Okay, after digging the code, I realized there's bunch of problems on my suggestion. Closing this for now.


[Bug]: Slide slightly shifted when slide content is changing

Which variants of Embla Carousel are you using?

[ ] embla-carousel (Core)
[X] embla-carousel-react
[ ] embla-carousel-vue
[ ] embla-carousel-svelte
[ ] embla-carousel-autoplay
[ ] embla-carousel-auto-scroll
[ ] embla-carousel-solid
[ ] embla-carousel-auto-height
[ ] embla-carousel-class-names
[ ] embla-carousel-docs (Documentation)
[ ] embla-carousel-docs (Generator)

Steps to reproduce
The bug occurs when I am updating the slide content:
https://github.com/davidjerleke/embla-carousel/assets/26093865/7e110dcf-9327-4312-bc0b-3a2ce0a9330b
Expected Behavior
The slide shouldn't slightly shift to the left and the user has to scroll to another tab and scroll back to fix it.
Additional Context
Looking to see if someone has run into it and can provide a quick fix. I can provide a sandbox if it isn't something obvious.
What browsers are you seeing the problem on?
Chrome
Version
v^8.0.0
CodeSandbox
No response
Before submitting

[X] I've made research efforts and searched the documentation
[X] I've searched for existing issues
[X] I agree to follow this project's Contributing Guidelines for bug reports

@leo-paz please provide a minimal CodeSandbox that reproduces the problem. Thanks.

@leo-paz please let me know if you want to pursue this.

@leo-paz this issue is scheduled for deletion in two days unless I get a response.


Investigate Livy performance improvement by upgrading HTTP connection

In some cases, it should be possible to upgrade an HTTP Livy connection into a sockets connection that is much more performant, assuming system admins gave access to additional ports.

Tracking this work as a proper work item in the sparklyr project with: https://github.com/rstudio/sparklyr/issues/1595