Possible issues with higher price precisions

Current state
We have a merchant where the products have a high decimal precision. In that case we do have 6 decimal places.

Error description
We could see that an error occurs during the checkout, for example if you try to use the credit card, which says something like:

"The amount of the order does not match the total amount from the order lines. Expected order amount to be €14.81 but got €14.82."

So based on this error, we assume that the expected authorized amount and the final charged amount might not be equal.
Reconstruction
This is an actual order where the error occured. Some assumptions.

The system is configured that an article does have a higher decimal precision. In this case 6 decimal places.
Do have some articles :)

You could see that base on the following table, the expected amount should be €14.81. This is also stated in the exception.
You could also see that based on our assumption the possible calculated value is €14,82 when calculated with a higher precision.
This leads to the conclusion that the values transfered to Mollie do have a lower precision or Mollie is not able to calculate with higher decimal places. The final part will contain some logs where you can actually see that in the first instance the items are not transferred with their original value but the rounded one.

Position
Shopware 6 value
without round
round on 2 decimal places

5x DIN 963
2,7336
2,7336
2,73

5x DIN 985
2,9334
2,9334
2,93

5x DIN 125 A
1,6494
1,6494
1,65

Shipping
7,50
7,50
7,50

Total
14,82 (round)
14,1864
14,81

Log
As you can see in the log, we assume that the error happens because the amount transmitted for every line item is not the original but the rounded value.
ApiException(code: 422): [2022-10-11T16:38:06+0000] Error executing API call (422: Unprocessable Entity): The amount of the order does not match the total amount from the order lines. Expected order amount to be €14.81 but got €14.82. Documentation: https://docs.mollie.com/overview/handling-errors. Request body: {\"amount\": {\"currency\":\"EUR\",\"value\":\"14.82\"} ,\"locale\":\"de-AT\",\"method\":\"creditcard\",\"orderNumber\":\"450078\",\"payment\":{\"webhookUrl\":\"https:\\/\\/www.frantos.com\\/at\\/mollie\\/webhook\\/1f45e063a516479786bc9bd9e855ed8d\",\"cardToken\":\"tkn_NwspRhvspR\"},\"redirectUrl\":\"https:\\/\\/www.frantos.com\\/at\\/mollie\\/payment\\/1f45e063a516479786bc9bd9e855ed8d\",\"webhookUrl\":\"https:\\/\\/www.frantos.com\\/at\\/mollie\\/webhook\\/1f45e063a516479786bc9bd9e855ed8d\",\"lines\":[{\"type\":\"physical\",\"name\":\"DIN 963 Senkschraube mit Schlitz 4.8 verzinkt M 5x25\",\"quantity\":5,\"unitPrice\": {\"currency\":\"EUR\",\"value\":\"0.55\"} ,\"totalAmount\":{\"currency\":\"EUR\",\"value\":\"2.73\"},\"vatRate\":\"20.00\",\"vatAmount\":{\"currency\":\"EUR\",\"value\":\"0.46\"},\"sku\":\"1052\",\"imageUrl\":\"https%3A%2F%2Fstatic.frantos.com%2Fmedia%2F39%2F29%2F95%2F1664458060%2FTI-38_B_4.PNG\",\"productUrl\":\"\",\"metadata\":{\"orderLineItemId\":\"31ed2121ace3470fb2a3ff694539ab44\"}},{\"type\":\"physical\",\"name\":\"DIN 985 Stoppmutter Stahl 8 verzinkt M 5\",\"quantity\":5,\"unitPrice\": {\"currency\":\"EUR\",\"value\":\"0.59\"} ,\"totalAmount\":{\"currency\":\"EUR\",\"value\":\"2.93\"},\"vatRate\":\"20.00\",\"vatAmount\":{\"currency\":\"EUR\",\"value\":\"0.49\"},\"sku\":\"4028\",\"imageUrl\":\"https%3A%2F%2Fstatic.frantos.com%2Fmedia%2F74%2Fd0%2F9f%2F1664458095%2FTI-67_B_1.PNG\",\"productUrl\":\"\",\"metadata\":{\"orderLineItemId\":\"d5c7adba109848deaac7f03574ee1c77\"}},{\"type\":\"physical\",\"name\":\"DIN 125 A Scheiben Stahl verzinkt M 5  u00d8 5,3x10x1\",\"quantity\":5,\"unitPrice\": {\"currency\":\"EUR\",\"value\":\"0.33\"} ,\"totalAmount\":{\"currency\":\"EUR\",\"value\":\"1.65\"},\"vatRate\":\"20.00\",\"vatAmount\":{\"currency\":\"EUR\",\"value\":\"0.28\"},\"sku\":\"48545\",\"imageUrl\":\"https%3A%2F%2Fstatic.frantos.com%2Fmedia%2F9d%2Fb7%2F1b%2F1664458132%2FD00125_A_AK.JPG\",\"productUrl\":\"\",\"metadata\":{\"orderLineItemId\":\"83ec8edda73845e2acfd4e1ae8c91dad\"}},{\"type\":\"shipping_fee\",\"name\":\"Delivery costs 1\",\"quantity\":1,\"unitPrice\": {\"currency\":\"EUR\",\"value\":\"7.50\"}

Hi
perfect for this.
so with the rounding we are quite experienced by now. :D
sounds weird but it is the same as with Shopware 5 back then
Mollie only allows a special rounding, so our task is "just" to prepare the data for Mollie so that their cross checks match along with the final total amount that the customer sees in the shop as final sum and has to pay
so all we need is the line items and some settings in the shop, so that we can reproduce and adjust the calculation for these cases, until no more such "edge" cases exist.
we also create some unit tests for it ;)
so thank you so much for this detailed issue
i'll make sure it gets done :)

Can we have a Feedback on this topic? It is a critical issue for us, as our customer has to deal with this every day and manually fix the invoices in his ERP.

hi
im already working on it
problem is that shopware rounds 14,8164 to 14,82 which is used as total for mollie, because you always want to ensure the displayed shopware price is paid in the end.
mollie should actually allow a cent off, so i'm wondering why this is not the case anymore

the next version has a custom rounding configuration that prevents these problems.
in fact, there are more troubles with rounding, if e..g one uses a grand-total interval of xyz :)
then line items might be 14,80, but the grand total is 15,00 of Shopware :)

Hi
the rounding feature has been released in v3.4.0

Fantastic!


Text on desktop icons is missing

Data files look OK, seams to be an issue with reading configuration values, either in the SUB that draws the icons or in the SUB that reads configurations.

Was caused by previous change in code, has been fixed now.


Updating Documentation for R3-AKS Deployments

All Submissions:

[YES/NO] Have you added an explanation of what your changes do and why you'd like us to include them? YES. Updating deployment instructions to be easier to read/fixing broken links. Also added specific instructions to deploy services using flux and a template for .envrc file needed for deployment.
[YES/NO] I have updated the documentation accordingly. YES. This was only documentation changes)
[YES/NO/NA] I have added tests to cover my changes. N/A. Only documentation changes.
[YES/NO/NA] All new and existing tests passed. N/A. Only documentation changes.
[YES/NO/NA] I have formatted the terraform code.  (terraform fmt -recursive && go fmt ./...). N/A. Only documentation changes

Current Behavior or Linked Issues

Making documentation changes to help users deploy infra and services.
Does this introduce a breaking change?

[YES/NO]

N/A
Other information

This PR content was put in directly to matser.


Question about lesson 2 exception level

you mentioned "when we enter el1_entry function the execution should be already at EL1 mode.", but
int el = get_el(); printf("Exception level: %d \r\n", el);
the code shows it is exception level 3, seems self contradiction,
also, without calling "svc", how did you change the exception level from 3 to 1?
thanks in advance!

Hi @rgbstar,
The svc (Supervisor Call) instruction generates a synchronous exceptions that traps EL0 into EL1, so it's not used to drop EL but instead it's used to raise it. For example if user-space (running at EL0) want to request an OS service (running at EL1), it will use the svc instruction.
If you want to drop EL, you use the eret (Exception return) instruction. It will restore the processor state using spsr_eln (which in-fact also contains the EL to restore) and elr_eln (address to return to).
Have a look at switching-to-el1 from lesson02 for more details.


chore: bump dependencies

I hereby agree to the terms of the GreptimeDB CLA
What's changed and what's your intention?

update datafusion
changed:

datafusion: rev xxx
arrow: 47.0
parquet: 47.0
tonic: 0.10
sqlparser: 0.38
prost: 0.12
tonic-build: 0.10
tonic-reflection: 0.10
opentelemetry-proto: to my fork, rev 33841b38dda79b15f2024952be5f32533325ca02. Wait on https://github.com/open-telemetry/opentelemetry-rust/pull/1310
substrait: 0.17

trunc is temporary removed from builtin py functions

Checklist

[ ]  I have written the necessary rustdoc comments.
[ ]  I have added the necessary unit tests and integration tests.

Refer to a related PR or issue link (optional)

it works on my machine.jpg


agent.buildDirectory variable doesnt work with this agent

agent.buildDirectory returns undefined

It's set on ~line 152 in https://github.com/Microsoft/vsts-agent/blob/ae5141fa424b6a8cdbbc5dc1b16d3669221e7aee/src/Agent.Worker/Build/BuildJobExtension.cs
I'll need details on what's not working and you're repo.  I see it being set.

re-open if you have the details I asked for above.  I believe it's being set.

With this agent getVariable of vsts-task-lib doesnt work.
 https://github.com/Microsoft/vsts-task-lib/blob/master/node/lib/task.ts

I guess the variable is set as environment variable previously.

I fixed a bug yesterday where the env var wasn't set properly. The lib is looking for it with "." replaced with "", although the agent wasn't converting "." to "" when setting the env vars. It's my fault, it's fixed now in master and I'm pretty sure it's the issue you're running into. I'll test later and confirm it's fixed in master when consuming from the lib.

Confirmed it's fixed in master.


[Feature Request]:  Add social media links and icons to the footer

Is there an existing issue for this?

[X] I have searched the existing issues

Feature Description
I would like to request the addition of social media links and icons to the footer section of the website to the official social media accounts, such as Twitter, Facebook, LinkedIn, and Instagram.
Use Case
Having social media links and icons in the footer would make it easier for visitors to find and follow the official social media accounts. It would also provide a consistent way for users to stay up-to-date with the latest news, updates, and community interactions across various social media platforms.
Benefits
Adding social media links and icons to the footer would bring the following benefits:

Increased visibility and accessibility of the social media accounts.
Enhanced user engagement and community-building opportunities.
Improved user experience by providing convenient access to the social media presence.

Add ScreenShots
Before:

after:

Priority
High
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[X] I'm a SSOC'24 contributor
[X] I want to work on this issue

@DebapriyaJha Footer is already being enhanced & fixed by the issues #234 & #226


Fix Java 6's HttpCookie to solve illegal cookie attribute exception

In Java 6 httpCookie throws an exception when it parses unrecognized attributes. This change will ignore them instead (the fix that Java 7 has).
https://bugs.openjdk.java.net/browse/JDK-6790677

Looks good to me.  I'll leave it up to @oesolutions to merge & close.


Using bio-seq for sequence (de)serialisation

I'm hoping to use bio-seq for bit-packed (de)serialisation of sequences. AFAICT this is not supported because there are no methods for converting between Seq<A: Codec> and Vec<usize> or similar. Even impl<A: Codec> TryFrom<Vec<u8>> for Seq<A> expects the u8s to be ascii characters, and not the bit-packed representation.
I'm tempted to try implementing TryFrom<Vec<usize>> and Into<Vec<usize>> for Seq<A: Codec>,  which reads/returns the bitpacked representation. Or maybe more simply to/from BitVec. Would you be interested in that as a contribution (I'm not wedded to any particular API for this)?

Yeah, I've played with exposing the internal bitvecs at various points. Being able to get Vec<usize> is appealing but can lead to ugly issues with padding sequences that aren't perfectly aligned with 64-bits. I think exposing the bitvecs is alright, though, and doesn't set up any potential endianess issues.
I did throw in a feature gated serde derivation for Kmers.  Ideally, we could also extend the serde implementation to Seq with this solution.

I threw in an implementation from Seq to BitVec and well as a feature-gated serde implementation. I think the best way to get at the Vec<usize> is through these BitVecs.
With serde you can save sequences with something like:
    let mut fa: bio_streams::fasta::Fasta<BufReader<MultiGzDecoder<File>>, Seq<Dna>> = bio_streams::fasta::Fasta::new(
        BufReader::new(MultiGzDecoder::new(File::open(path).unwrap())),
    );

    if let Some(record) = fa.next() {
        let data = bincode::serialize(&record.unwrap().seq)?;
        let mut file = File::create("seq.bin")?;
        file.write_all(&data)?;
    }

Hey @J-Wall , I'm not 100% sure about this but here's an experimental way to expose and reconstruct from the raw &[usize] :
    let s = "TCAGCTAGCTACGACTGATCGATCGACTGATGCCGCGCGCGGCGCCGCGCGCGCGCGCCGCGCGCCCCGCGCGCGGCGCGCGCCGCGCGCGCGCGCGGCGCGCGCGCGCGCGCGCGCGCGCGCGCGCGCGC";

    let seq: Seq<Dna> = s.try_into().unwrap();

    let raw: &[usize] = seq.into_raw();

    println!("{raw:?}");

    let new = Seq::<Dna>::from_raw(s.len(), raw);

    assert_eq!(new, seq);

and the printed {raw:?} is:
[12885487321340546439,<PHONE_NUMBER>4286887525,<PHONE_NUMBER>509078101,<PHONE_NUMBER>4225730970, 25]

The best method for serialisation would be serde in most cases but I think there's some good cases for viewing raw bits.
I'm going to bump the version a tiny bit so that this is available on crates.io


[Bug]: bazel-runfiles pypi library does not work

What happened?
bazel-runfiles library is unable to properly locate runfiles root when running under rules_py
Version
Development (host) and target OS/architectures: macOS aarch64, also seen on Linux x86_64
Output of bazel --version: bazel 7.2.1
Version of the Aspect rules, or other relevant rules from your
WORKSPACE or MODULE.bazel file: 0.7.4
Language(s) and/or frameworks involved: None
How to reproduce
git clone https://github.com/dizzy57/bazel_py_minimal
cd bazel_py_minimal
bazel test //runfiles_from_pipy_do_not_work/...

Expected result: all tests pass
Actual result: //runfiles_from_pipy_do_not_work:runfiles_test fails with a message
ValueError: [PREFIX]/runfiles_test.runfiles/_main/runfiles_from_pipy_do_not_work/test_runfiles.py does not lie under the runfiles root [PREFIX]/runfiles_test.runfiles/.runfiles_test.venv/lib

Any other information?
Same test passes with rules_python: see bazel test //runfiles_from_pipy_do_not_work:runfiles_rp_test
Exception source in runfiles.py (rules_python v0.34.0)
The python.runfiles package from @rules_python//python/runfiles works, see bazel test //runfiles_from_pipy_do_not_work:runfiles_rfrp_test //runfiles_from_pipy_do_not_work:runfiles_rp_rfrp_test
This problem was introduced in rules_py v0.7.2

This is a rules_python issue I think, as the runfiles helper is walking up the directory structure to attempt to determine the runfiles root, which under the venv (or any other layout) is not correct. The diff here shows a potential solution, but I'm not clear if this is correct, or what repercussions this has, I imagine Windows will have something to say about it.
https://github.com/bazelbuild/rules_python/pull/2115
Continuing the discussion with other rules_python maintainers.

I'm getting this same issue:
Traceback (most recent call last):
  File "/private/var/tmp/_bazel_tshadwell/f7d9bb6f07b31d1ba7eb0c999b8bb37b/execroot/_main/bazel-out/darwin_arm64-fastbuild/bin/py/ibazel/ibazel_bin.runfiles/_main/py/ibazel/__main__.py", line 18, in <module>
    ibazel_binary_path = path = r.Rlocation(environ["IBAZEL_BINARY"])
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/private/var/tmp/_bazel_tshadwell/f7d9bb6f07b31d1ba7eb0c999b8bb37b/execroot/_main/bazel-out/darwin_arm64-fastbuild/bin/py/ibazel/ibazel_bin.runfiles/.ibazel_bin.venv/lib/python3.11/site-packages/runfiles/runfiles.py", line 175, in Rlocation
    source_repo = self.CurrentRepository(frame=2)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/private/var/tmp/_bazel_tshadwell/f7d9bb6f07b31d1ba7eb0c999b8bb37b/execroot/_main/bazel-out/darwin_arm64-fastbuild/bin/py/ibazel/ibazel_bin.runfiles/.ibazel_bin.venv/lib/python3.11/site-packages/runfiles/runfiles.py", line 264, in CurrentRepository
    raise ValueError(
ValueError: /private/var/tmp/_bazel_tshadwell/f7d9bb6f07b31d1ba7eb0c999b8bb37b/execroot/_main/bazel-out/darwin_arm64-fastbuild/bin/py/ibazel/ibazel_bin.runfiles/_main/py/ibazel/__main__.py does not lie under the runfiles root /private/var/tmp/_bazel_tshadwell/f7d9bb6f07b31d1ba7eb0c999b8bb37b/execroot/_main/bazel-out/darwin_arm64-fastbuild/bin/py/ibazel/ibazel_bin.runfiles/.ibazel_bin.venv/lib


MM-22871 - Updating emoji css

Summary
MM-22871 - Updating emoji css
Ticket Link
https://mattermost.atlassian.net/browse/MM-22871

Creating a new SpinWick test server using Mattermost Cloud.

Mattermost test server created! :tada:
Access here: https://mattermost-webapp-pr-5009.test.mattermost.cloud

Account Type
Username
Password

Admin
sysadmin
Sys@dmin123

User
user-1
User-1@123

This also solves: https://mattermost.atlassian.net/browse/MM-22839

Test server destroyed

/update-branch


[boost-vcpkg-helpers] Has inconsistent copyright info

The boost-vcpkg-helpers license declaration is inconsistent. The portfile downloads BSL copyright notice but the vcpkg.json declares MIT license.
Proposed solution
Make them consistent. I don't know which license is correct though.

I would expect it to then install MIT copyright file into its own folder then.

The license should be BSL-1.0.

The license should be BSL-1.0.

@JackBoosY: why? This is a script helper port and has nothing to do with boost....  Did you only look at the downloaded license?

The license should be BSL-1.0.

@JackBoosY: why? This is a script helper port and has nothing to do with boost.... Did you only look at the downloaded license?

Reasonable. That's just a helper, the author is us, not boost.

@horenmar
This is a script helper port and has nothing to do with boost, can this issue be closed?

I submitted PR #28617 to fix this issue, I copy the MIT license file in vcpkg to [VCPKG_ROOT]/ports/boost-vcpkg-helpers. Also modify the boost-modular-headers.cmake to make other boost ports still use boost licnese.

Great, thanks.


How to run in multi-card

Dear Authors,
I noticed that you have annotate multicard in your training command, is this code repository tolerant to multi-card training. How can I enable this?

I tried to use the command:
MODEL_PATH=gpt2-large
DATASET=data/$1/
WEIGHT_DECAY=$2
N_LAYERS=$3
GPU=$4
OUTPUT_DIR=checkpoint/$1_$2_$3
CUDA_VISIBLE_DEVICES=$GPU python main.py \
CUDA_VISIBLE_DEVICES=0,1,2,3 python -m torch.distributed.launch --nproc_per_node=4 --master_port 12345 main.py
--data_dir $DATASET
--model_name_or_path ${MODEL_PATH}
--weight_decay $WEIGHT_DECAY
--output_dir $OUTPUT_DIR
--max_seq_length 10
--max_length 10
--block_size 10
--train_batch_size 512
--eval_batch_size 512
--learning_rate 1e-4
--gradient_accumulation_steps 1
--save_step 50000
--save_step_dense 40000
--max_steps 1500000
--do_train
--scheduler constant_schedule_with_warmup
--fp16
--evaluate_during_training
--predict_during_training
--add_tokens
--n_layer $N_LAYERS
But it stuck at:

It finally exit with CHILD Error:
RuntimeError: DDP expects same model across all ranks, but Rank 1 has 436 params, while rank 0 has inconsistent 0 params.
[E ProcessGroupNCCL.cpp:456] Some NCCL operations have failed or timed out. Due to the asynchronous nature of CUDA kernels, subsequent GPU operations might run on corrupted/incomplete data.
[E ProcessGroupNCCL.cpp:461] To avoid data inconsistency, we are taking the entire process down.
[E ProcessGroupNCCL.cpp:456] Some NCCL operations have failed or timed out. Due to the asynchronous nature of CUDA kernels, subsequent GPU operations might run on corrupted/incomplete data.
[E ProcessGroupNCCL.cpp:461] To avoid data inconsistency, we are taking the entire process down.
ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: -6) local_rank: 0 (pid: 2043775) of binary: /data/home/weiyb/miniconda3/envs/grokking/bin/python
Traceback (most recent call last):
File "/data/home/weiyb/miniconda3/envs/grokking/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/data/home/weiyb/miniconda3/envs/grokking/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/data/home/weiyb/miniconda3/envs/grokking/lib/python3.8/site-packages/torch/distributed/launch.py", line 195, in
main()
File "/data/home/weiyb/miniconda3/envs/grokking/lib/python3.8/site-packages/torch/distributed/launch.py", line 191, in main
launch(args)
File "/data/home/weiyb/miniconda3/envs/grokking/lib/python3.8/site-packages/torch/distributed/launch.py", line 176, in launch
run(args)
File "/data/home/weiyb/miniconda3/envs/grokking/lib/python3.8/site-packages/torch/distributed/run.py", line 753, in run
elastic_launch(
File "/data/home/weiyb/miniconda3/envs/grokking/lib/python3.8/site-packages/torch/distributed/launcher/api.py", line 132, in call
return launch_agent(self._config, self._entrypoint, list(args))
File "/data/home/weiyb/miniconda3/envs/grokking/lib/python3.8/site-packages/torch/distributed/launcher/api.py", line 246, in launch_agent
raise ChildFailedError(
torch.distributed.elastic.multiprocessing.errors.ChildFailedError:
main.py FAILED
Failures:
[1]:
time      : 2024-12-28_18:45:58
host      : ps
rank      : 1 (local_rank: 1)
exitcode  : -6 (pid: 2043776)
error_file: <N/A>
traceback : Signal 6 (SIGABRT) received by PID 2043776
[2]:
time      : 2024-12-28_18:45:58
host      : ps
rank      : 2 (local_rank: 2)
exitcode  : -6 (pid: 2043777)
error_file: <N/A>
traceback : Signal 6 (SIGABRT) received by PID 2043777


Created a Blend mode on hero section

Hi i have created a animation of blending text and video on hero section which makes user have realistic  experience
check out the video how it is. I am open for any sort of suggestion.
https://github.com/user-attachments/assets/1c696963-c128-41ff-8a80-080ea62f54c5

Hi @Inija-2503, that's a great contribution and as I can see you have also made the PR from another branch exactly as instructed. But there's a slight problem...
Problem
You made a mistake by not creating the new branch from the main branch. This is a problem because the first PR you have made i.e., PR #29 was created from Tourism branch. And I believe that you have created another branch (i.e., blend-mode ) from the Tourism branch.
If you believed how this could affect your contribution, then view the following screenshots...

Files present within PR #29
Files present within this PR

As you can see the screenshots, all the previous commits made within Tourism branch i.e., from PR #29 are present within this PR. And If I merge this PR first then the other PR would become invalid as the changes you're trying to make already be present by then, thus making that PR inadmissible.
Solution
Here's my proposed solution for this issue,

Close this PR.
Delete the blend-mode branch (both from your local repo and from remote i.e., github repo).
Checkout to main branch.
Create a new branch, maybe with the same name or different name (totally upto you).
Commit and push your Changes.
Create a PR.

Then I'll let your merge the PR into the repo.

[!IMPORTANT]
If you need any help in any of the process (or) if you did understand any part of the solution I proposed, please ping me up here. Please don't take action based on some assumption. Feel free to ask me questions and doubts, I would be more than happy to help.


Use access rights to restrict pipeline access

Building on top of https://github.com/blendle/automaat/issues/19.
Once people can/have to authenticate themselves, it becomes possible to segregate people into groups with different access rights.
Similar to the linked issue, this is not about keeping outside people out, it's about having a simple way to give people within your organisation access to the exact pipelines they need, or keep some of the more destructive pipelines limited to a small part of the organisation.
The goal is to make it easy to restrict people from having access to one or more pipelines (denied list), or the reverse, to give them access to a subset of pipelines (allowed list).
For this to work, there needs to be a common type to base these access rights on.
One option would be to allow adding tags to pipelines, which can then be used in these allow/deny lists for access control.
I don't know what the right solution is, but I do think it's important to keep it as simple as possible, but also give us some flexibility for the future (that's why tags could be a solution, as it allows more useful patterns in the future based on these primitives).

Some more thoughts on this (also based on the thoughts in #39).

Tasks can have one or more labels attached to them.
A label is a string matching [a-z0-9_]+.
A session record in the database can be associated with one or more labels.
For a session, these are called privileges.
If a session record has a privilege associated with it, any task that implements at least that name as its label can be run by anyone using that session in their client of choice.
There is no such thing as "global" or "default" labels, if you want to have a privilege/label apply to every session or every task, make sure your scripts (or clients) to create new tasks/sessions automatically add said label.
When fetching a session with a given token, the server returns the privileges attached to that session.
The client caches those privileges for the duration of the running application, checking them against the required task labels.
When fetching task details via the API, the labels applied to those tasks are also returned.
All GraphQL queries are accessible without authentication.
All GraphQL mutations require authentication.

Each mutation has its own special label (currently mutation_create_task, mutation_create_job_from_task, mutation_create_global_variable and mutation_create_session)
These can also be assigned to sessions, to allow running these mutations either via a client, or using the GraphQL playground
All mutation_* and query_* labels are reserved for future use, and cannot be assigned to tasks (but can be assigned to sessions as privileges).

Other than what's listed above, there are no constraints on the privileges you can assign to a session, or labels to tasks. Meaning, you can add a privilege hello_world to a session, even if there are no tasks that have a label matching that name.
If a future task does add that label, existing privileges matching that label take effect immediately.

This has been implemented in bf9ffe4cd9e148d3ecc0322e0c3bb87eca907d5f.


Please share the sample code for keywords containing non-alphabetic characters(-,/,",', etc.)

What is your question?
Hi,
During the process of migrating adwords to ads, I find keywords with non-alphabetic/special characters, such as built-in oven, 2-in-1 washer, 30"" cooktop, which will be set on KeywordPlanAdGroupKeyword.setText(),  - and " are removed when ads API return. (built-in oven -> built in oven, 2-in-1 washer-> 2 in 1 washer, 30"" cooktop -> 30 cooktop)
But adwords will not.
My question is, how to preserve these characters so that the input and output keywords are consistent?
I tried escape characters too.
Could you share me sample code for this? Thanks.
Br,
QC

Hi,
Could you clarify what you meant by "when Ads API return"? Are you referring to the response to the MutateKeywordPlanAdGroupKeywords request? If you could share a sample request/response with any sensitive information removed, that'd be helpful.
If the question is how to embed double quotes within the keyword text for a KeywordPlanAdGroupKeyword, escaping should work as shown in the setText() call below.
KeywordPlanAdGroupKeyword.newBuilder()
            .setKeywordPlanAdGroup(planAdGroupResource)
            .setCpcBidMicros(1_990_000L)
            .setMatchType(KeywordMatchType.EXACT)
            .setText("jupiter \"all day\" cruise 30\"\"");

The above would result in a KeywordPlanAdGroupKeyword with text of jupiter "all day" cruise 30"".
Thanks,
Josh

Hi QC,
Thanks for the examples. In the response tables that you shared, is the keybrand column coming from the search_query field of each KeywordPlanKeywordHistoricalMetrics object returned in a GenerateHistoricalMetricsResponse? If so, that is not guaranteed to exactly match the keywords in your plan, per the description for the search_query field:

The text of the query associated with one or more ad_group_keywords in the plan.
Note that we de-dupe your keywords list, eliminating close variants before returning the plan's keywords as text. For example, if your plan originally contained the keywords 'car' and 'cars', the returned search query will only contain 'cars'. Starting V5, the list of de-duped queries will be included in close_variants field.

Thanks,
Josh

Hi Josh,
Yes. I got the keybrand column from getSearchQuery. Thanks for your answer.
So can I understand that this is the difference between ads and adwords API？
Because adwords will return the intact keywords.
Thanks,
QC

Hi Josh,
This tip solved my issue. Thank you so much!
Br,
QC


Custom middleware getting called multiple times

I have configured a middleware via @as-integratons/next as shown below
graphql.js
import { ApolloServer } from "@apollo/server";
import { startServerAndCreateNextHandler } from "@as-integrations/next";
import typeDefs from "@/app/graphql/schema";
import resolvers from "@/app/graphql/rootResolvers";
import allowCors from "@/utils/cors";
import authenticateMiddleware from "@/app/graphql/middleware/auth-middleware";

const apolloServer = new ApolloServer({
  typeDefs,
  resolvers,
  context: async ({ req, res }) => {
    return { req, res };
  },
});

const handler = startServerAndCreateNextHandler(apolloServer, {
  context: async (req, res) => {
    try {
      await authenticateMiddleware(req, res);
      return { req, res };
    } catch (error) {
      return { req, res };
    }
  },
});

export default allowCors(handler);

The middleware :
const authenticateMiddleware = async (req, res, next) => {
 console.count('called');
};

export default authenticateMiddleware;

The log :

This it suppose to called so many times ? If the answer is yes. How can i make sure it is called when required ? If there is any more data required to debug this issue , i am happy to provide them .
The issue if i want to send a res.status(401).json({ message: "Unauthorized" }), i get the following error :
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
    at new NodeError (node:internal/errors:405:5)
    at ServerResponse.setHeader (node:_http_outgoing:652:11)
    at _res.setHeader (/home/manoj/Desktop/project-zeus/node_modules/next/dist/server/base-server.js:326:24)
    at /home/manoj/Desktop/project-zeus/node_modules/@as-integrations/next/dist/startServerAndCreateNextHandler.js:114:37
    at step (/home/manoj/Desktop/project-zeus/node_modules/@as-integrations/next/dist/startServerAndCreateNextHandler.js:33:23)
    at Object.next (/home/manoj/Desktop/project-zeus/node_modules/@as-integrations/next/dist/startServerAndCreateNextHandler.js:14:53)
    at fulfilled (/home/manoj/Desktop/project-zeus/node_modules/@as-integrations/next/dist/startServerAndCreateNextHandler.js:5:58)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  code: 'ERR_HTTP_HEADERS_SENT',
  page: '/api/graphql'
}

Help regarding this is very much appreciated

The context function is called for every request. Do you have explorer/sandbox open and is schema polling enabled? If so it's sending an introspection request every couple seconds. You can disable that.

When you don't have a favicon, the middleware will also hit for that. I saw this issue until I created one.

Closing due to inactivity.


⚠ Processors has degraded performance

In 600497c, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 45 ms

Resolved: Processors performance has improved in 4eb241d.


[SPARK-32496][INFRA] Include GitHub Action file as the changes in testing

What changes were proposed in this pull request?
https://github.com/apache/spark/pull/26556 excluded .github/workflows/master.yml. So tests are skipped if the GitHub Actions configuration file is changed.
As of SPARK-32245, we now run the regular tests via the testing script. We should include it to test to make sure GitHub Actions build does not break due to some changes such as Python versions.
Why are the changes needed?
For better test coverage in GitHub Actions build.
Does this PR introduce any user-facing change?
No, dev-only.
How was this patch tested?
GitHub Actions in this PR will test.

Seems like CRAN check started to fail due to SPARK-32497. I am going to merge to unblock the PRs - SparkR tests still fail. Let me know if there are any comments @dongjoon-hyun. I will merge first.

Merged to master.

+1, late LGTM.


feat: can now pass query string params using the qs property

Coverage remained the same at 95.467% when pulling 58058870ab182c484b8f4036a543772042e5c3cf on lholmquist:add-query-options-to-deletes into 284017f02b230587121d4cd3b85b937a3a18c2fe on bucharest-gold:master.


I keep getting this error with

CC /Users/msdocs/Projects/esp-open-rtos/open_esplibs/libphy/phy_chip_v6.c
CC /Users/msdocs/Projects/esp-open-rtos/open_esplibs/libphy/phy.c
CC /Users/msdocs/Projects/esp-open-rtos/open_esplibs/libphy/phy_sleep.c
AR build/open_esplibs_libphy.a
LD build/capture.out
./build/program.a(capture.o):(.text.server_task+0x40): undefined reference to `uhej_server_init'
./build/program.a(capture.o):(.text.server_task+0x44): undefined reference to `uhej_announce_udp'
./build/program.a(capture.o):(.text.server_task+0xd8): undefined reference to `uhej_server_init'
./build/program.a(capture.o): In function `server_task':
/Users/msdocs/Projects/esparducam/capture.c:90: undefined reference to `uhej_announce_udp'
/Users/msdocs/Projects/esparducam/capture.c:94: undefined reference to `uhej_announce_udp'
collect2: error: ld returned 1 exit status
make: *** [build/capture.out] Error 1

I am currently running macOSX 10.12

Once again I realize I sometimes do not get the notification emails from GitHub which increases response time for me. Sorry about that @msdocs. Did you do git clone --recursive on the Esparducam git? If not, try
git submodule init
git submodule update

and you should see files appearing in the uhej/ directory.

Ah, I see the instructions in README.txt lack this information. Will update.

Thank You will check it out later this week

I updated the instructions, sorry for the confusion.


Make oracle completion case insensitive

oracle stores metadata in uppercase so make sure queried data is also
uppercase

@nineinchnick Similarly, with this one -- I think we should change all of the metadata queries to be case insensitive. Should probably be done in the actual SQL though and not from the Go side.

Actually Oracle allows case sensitive identifiers but it complicates things. Case sensitive identifiers must be put in quotes, which in turn needs to be recognized by metadata code, trimmed and case sensitive query is done instead. To make it worse completion candidates returned by query need to be wrapped in quotes too.
I'll see whether I can implement it without knowing anything about Go, but perhaps better leave it for another PR.

I'm not sure quoting would be an issue. Anyway, this would be a pretty big task, so I created a dedicated issue for this: #282. We need to add some basic tests to the metadata packages first.
I'm ok with merging this one as is.

Rebased onto current master.


Jitter from cockpit look

When in VR, while moving the view with the headset there is some shake of the models specially visible in the cockpit and also in the ship markers (brackets).
There is also some jitter in non-VR mode, when cockpit inertia is enabled. When moving around and the inertia kicks in, there is some noticeable jitter. However, it is much less disturbing in 2D mode, with a lower FOV.
There is no jitter if all types of headtracking and inertia are disabled.
This makes me think that the jitter is related to the hack used to override the camera position/direction in Hook_XWACockpitLook

Yes, I also think this jitter is happening because the cockpit shake was hijacked to implement positional tracking. I'm taking a deep look at this problem now.

I am working on improving the jitter and the performance in https://github.com/morallo/xwa_ddraw_d3d11/tree/pose_prediction_jitter_fix
Some of the experimental changes have been merged into master. Still not included in any betas but if you compile from the current master, you can enable it by setting a variable in CockpitLook.cfg:
pose_corrected_headtracking = 1

Fixed in #51


Integration test of retrieving account information.

This commit provides an integration test of pulling account information for BTCe. It is presently failing, like the TickerFetchIntegration with a complaint about the certificate and illustrates issue #914.

To run this requires setting the apiKey and secretKey as well as setting to a Java 6 compilation on my machine.
If one sets the apiKey and secretKey to the values used in the demo application, the nonce value is incorrect and cannot be set properly, even based on the exception thrown which names a number, since the nonceFactory field is private and it is likely best policy not to add methods, such as changing the nonceFactory, just for testing.


System is not defined exception

Hi, I'm trying to use parallax directive in angular2-webpack-starter, and I'm getting this exception:
Uncaught ReferenceError: System is not defined          - parallax-ts:1
here is the code:
import { Component } from 'angular2/core';
import { Parallax, ParallaxConfig } from 'ng2-parallax/parallax-ts';

@Component({
  selector: 'post',
  template: `
<md-card>

  <md-card-title>
    <md-card-title-text>
      {{post.title.rendered}}
    </md-card-title-text>
  </md-card-title>
  <md-card-content [innerHTML]="post.excerpt.rendered">
  </md-card-content>
</md-card>
`,
  styles: [require('./post.css')],
  directives: [Parallax]
})
export class PostCmp {
  constructor() {
  }
}

Thank you

Thanks for reaching out @MurhafSousli .  From what it looks like, the reason why it's not working is because the ng2-parallax plugin uses the System script loader.  Since that project is built in webpack, System should not be used alongside it.  Due to that, you can't use that particular file.
With that in mind, I will update the file name so that it's indicative that it's to be used with System instead.  I'm also looking into that to see if I can get this working with webpack as well.  I know with TypeScript, I can transpile to System, AMD, UMD, es6, es2015, and commonjs.  I'll test it with doing just commonjs or umd and let you know how that goes.

Thank you @cwadrupldijjit

After a little over a week of working on this, I've found that the best solution (just simply requiring ng2-parallax/commonjs, the new commonjs module files I tried setting up) isn't currently attainable with my knowledge.  However, when I transpiled the ng2-parallax to the commonjs module scheme, it works perfectly when requiring the file itself when copied into the working directory.
I'm afraid I don't understand webpack enough to be able to solve it just by doing this, but I would like to have some help with the configuration if someone is willing to help me.
In your case, @MurhafSousli, until there is a better option, you can simply copy the parallax.directive.js and paralax.directive.d.ts into a directives folder within your app or src folder, and it will work perfectly fine.  I'll get updating the documentation on that, as well as add a note to the readme explaining that I'd like help.
If you would like to take a crack at it yourself, feel free to do that, and if you come to some conclusion about it, feel free to fork it/send in a pull request.


ROX-20847: Add "Internal entities" to the network graph

Description
This PR divides the flows that connect "External Entities" on the Network Graph into two groups:

External Entities - for all flows that leave the cluster
Internal Entities - for all flows internal to the cluster

Before this PR, all flows for which Sensor was unable to identify the container were treated as external entities. This was mostly incorrect and lead to many customer issues.
The decision whether a flow destination/source is internal/external is done based on the information passed from Collector. If Collector reports a concrete IP, the the entity is considered internal, if Collector reports "<IP_ADDRESS>", the the entity is considered external.
Here, we add the following:

Debug log in Sensor that would print the full IP for all internal entities that have flows
New UI entity on the graph "Internal Entities" to group the flows that do not leave cluster - see https://github.com/stackrox/stackrox/pull/9460 for screenshots

⚠ ⚠ ⚠ The UI changes have been already reviewed as part of https://github.com/stackrox/stackrox/pull/9460
Checklist

[ ] Investigated and inspected CI test results
[x] Unit test and regression tests added
[ ] Evaluated and added CHANGELOG entry if required
[ ] Determined and documented upgrade steps
[ ] Documented user facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)

Testing Performed
Here I tell how I validated my change

[x] Unit tests are available (but they cannot fully cover this change)
[x] Testing manually on a demo cluster, as this involves changes in the UI
[ ] e2e tests should be added (in a followup)

Reminder for reviewers
In addition to reviewing code here, reviewers must also review testing and request further testing in case the
performed one does not seem sufficient. As a reviewer, you must not approve the change until you understand the
performed testing and you are satisfied with it.

I rebased against a fresh master after merging the UI changes.
I also removed the traces of 	Unknown Internal Entities.
Once CI is ready, I will start manual tests and will open that PR for a review.

The failures in the e2e UI test job are unrelated and fixed on master, so don't worry about those.

@dvail could you help me check if the e2e UI test failures are caused by this PR?
They look more to be caused by compliance and configuration manager dashboards, but I want to be sure.

The failures in the e2e UI test job are unrelated and fixed on master, so don't worry about those.

Let me rebase then to have a clean record here.

Regarding a clean test record, there is another issue due to what I believe is a race condition that affects UI e2e tests. If you get a large block of failure related to:
Workload CVE
Entities single view
Vulnerability Management Image CVEs

those are also no related to these changes. They are intermittent right now, but still frequent.


Arrow key support

This pull request adds arrow key definitions to the SCREEN driver as discussed in #126, using the BBC Micro character values.
Arrow key support has been added to all SCREEN apps. For qe, I couldn't find a nice way to add the constants defined in screen.h to normal_keys[], so I added them as magic octal numbers.
I also included arrow key translation when using the UART keyboard for the nano6502. For the USB keyboard, I do the translation in hardware.
For the BBC Micro this of course works out of the box, but all other platforms will need BIOS updates to translate the arrow key values.

Yup, that's almost exactly what I was thinking of. One nitpick and the I think it's good to go: can you change the #define names from SCREEN_ARROW_... to SCREEN_KEY_..., please? To make it clear that these are keycodes.

Sure, that's a much better naming! Just pushed the commit.

Awesome --- merged. Thanks very much!

I wonder how small a proper line editor could be made. The one currently in the BDOS is 219 bytes.

Ah, yes, I thought about filtering for the TTY calls when adding the arrow keys to the translation table, but then I obviously forgot about it :)
Where would be the best place to filter out any characters with the top bit set - in each BIOS where it is necessary or in the BDOS?

In this case, the BDOS, as this is part of the readline command. It should just be as easy as adding a bmi to retry for any character with the top bit set.

In this case, the BDOS, as this is part of the readline command. It should just be as easy as adding a bmi to retry for any character with the top bit set.

Actually, I think I'm wrong here and the (default, BIOS-provided) TTY is a better place. Without a terminal emulator driver installed this is trying to present a lowest-common-denominator ASCII terminal, which means no escape sequences or high-bit characters. It's the CONIN routine which provides the interface between the TTY world and the SCREEN world, so I think this is probably more suitable.


cosmos will reject a document if it doesn't have an id so auto create one if needed

If save is invoked and the id of the object is null, cosmos will reject the call.
SimpleCosmosRepository#save specifically checks for this case and calls either CosmosOperations#insert or CosmosOperations#upsert.  Since there is a separate branching path for inserts in the case where id is null, I assume this is supposed to work (I'm guessing Cosmos supported this at some point but apparently no longer).  This PR replaces a null id with a random UUID.

 Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 2

See the complete overview on Codacy

@Blackbaud-MikeLueders I am not sure if this is a change that we can accept. I would rather like to fail in case the id is null, instead of creating one in the SDK.
Doesn't make sense for the SDK to take the responsibility / ownership of creating ids for client applications.
Also, you are right, CosmosDB supported it earlier, but not anymore.

@kushagraThapar I have added the annotation com.microsoft.azure.spring.data.cosmosdb.annotation.GeneratedValue which is in line with javax.persistence.GeneratedValue which is respected by the Spring Data JPA implementation.  If the id is annotated, a value will be automatically generated.  If not, an exception will be thrown with a readable message before the request is sent to Cosmos.  If this is acceptable, let me know and I will update the Readme.

@kirankumarkolli Can you please provide your input on this issue ?

Document/Item in Cosmos is uniquely identified by (pk, id). (pk, id) context is required for any future (read, update, delete) scenario's. Hence its best to avoid auto generation inside SDK and let the application made the choice (Also the required code changes would be straight forward anyways).

@kirankumarkolli I don't understand what pk has to do with it.  The partition key is not a random identifier, it will always need to be set, just like all the other data values on the entity. Id is different, it will generally be a randomly-generated value and I do not understand the desire to force all users of this library to manually set the value.  Also, this change does allow the application to make the choice - it can choose to add the @GeneratedValue annotation to the Entity, or not.  And by having the annotation on the Entity, I can easily see that the id column is generated rather than derived, which can be useful.
There are mechanisms to auto-generate ids in spring-data-jpa and spring-data-mongo, I don't understand what the issue is with adding a corresponding mechanism here.  As an actual user of this library, it's a feature I would like.

PartitionKey and Id are equally important documnet/item context.
Autogenerate if-not-exists semantics are harder to reason about when its applied or not.
Tooling or convenience layer (like Spring-data or any tools) can make that choice if-needed. In this specific case can the sprint layer make the auto-generation choice right?

@kirankumarkolli I'm not sure what you mean by Autogenerate if-not-exists semantics are harder to reason about when its applied or not. - in this case, if the @GeneratedValue annotation is applied to a field, the value of that field (and only that field) will be auto-generated.   I don't think it ever makes sense to auto-generate a partition key but in many cases it does make sense to auto-generate an id.
Also, re: In this specific case can the sprint layer make the auto-generation choice right? - can you elaborate on this?  spring-data-jpa uses javax.persistence.GeneratedValue and with spring-data-mongo you can achieve a similar result by implementing a listener that extends AbstractMongoEventListener, though to me it seems like the spring-data-jpa approach with an annotation on the class is much better b/c it's clear when you're looking at the class that the intent is for the system to generate the id.

This feature is introduced in new version of spring-data-cosmos SDK v3.
Closing this PR now.


1.20.1 emi + jei crashes game

every time i use the dpad it cashes the game here is log https://mclo.gs/kPgK5tA

JEI not required
This happens with just EMI installed, although not immediately, given that it only happens on certain menus

it does it for all menus even in the pause menu in 1.20.1

https://github.com/user-attachments/assets/54067770-f0e2-4ab7-b1ea-211b4c177861
this is just emi
and this is jei + emi
https://github.com/user-attachments/assets/edce09a6-d4cc-45f6-8c46-5509b57c21d5

having this issues too! pressing on a dpad while an inventory is open causes the game to crash and provides a long error:
TRANSFORMER/controllable@0.20.3/com.mrcrayfish.controllable.integration.JeiSupport.lambda$getNavigationPoints$1(JeiSupport.java:36)
Framework (framework), Version: 0.7.6
	at TRANSFORMER/framework@0.7.6/com.mrcrayfish.framework.api.event.TickEvents.lambda$static$0(TickEvents.java:11)

Ommited stack trace but can provide if necessary :)

You can fix the crash by unbinding the d pad keys for inventory movement in the controllable settings. However, I still cannot use emi at all with controllable installed. It's a shame because emi makes the modded inventory actually usable on controller if they were compatible.


fluttertoast causing iOS simulator scroll too fast on Apple Silicon processors

Steps to reproduce:

Add fluttertoast: ^8.0.9 to your pubspec
Run flutter pub get
Run your app in debug mode in iOS Simulator

Now every list with BouncingScrollPhysics will get super scroll force.
I found two solutions:

Remove fluttertoast from pubspec
Run simulator under Rosetta

Used Apple Mac M1 and iOS 15.4 simulators

Flutter doctor
[✓] Flutter (Channel stable, 2.10.3, on macOS 12.3.1 21E258 darwin-arm, locale ru-UA)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
[✓] Xcode - develop for iOS and macOS (Xcode 13.3.1)
[✓] Chrome - develop for the web
[✓] Android Studio
[✓] VS Code (version 1.66.2)

any update on this?

I think I have found a fix for it. I have created a pull request for the fix. :-)


Pathfinder Official - RU translation - minor changes

Some changes/additions

I've a couple of questions. Previous translated Json file was merged a few days ago, but my sheets are still in English though my account language is Russian :C

@azorko9695 Merge is done once per week on monday or tuesday, but the real update of the live server is also once a week, generally on tuesdays, around 10 (or 12, can't remember) Pacific Standard Time. So, your translate might appear on the live server later today.

@NathaTerrien Oh. Thx!


Non-Windows instances with a virtualization type of 'hvm' are currently not supported for this instance type

The exact error (after waiting a good long time) looks like this:
± chef-client -z test_create.rb
Starting Chef Client, version 12.4.1
resolving cookbooks for run list: []
Synchronizing Cookbooks:
Compiling Cookbooks...
[2015-07-13T08:14:19-04:00] WARN: Node darkcastle.local has an empty run list.
Converging 1 resources
Recipe: @recipe_files::mypath/test_create.rb
  * machine[test-machine] action ready[2015-07-13T08:14:19-04:00] WARN: Class Chef::Provider::Machine does not declare 'resource_name :machine'.
[2015-07-13T08:14:19-04:00] WARN: This will no longer work in Chef 13: you must use 'resource_name' to provide DSL.
[2015-07-13T08:17:08-04:00] WARN: Class Chef::Provider::FogKeyPair does not declare 'resource_name :fog_key_pair'.
[2015-07-13T08:17:08-04:00] WARN: This will no longer work in Chef 13: you must use 'resource_name' to provide DSL.
[2015-07-13T08:17:09-04:00] WARN: Class Chef::Provider::PrivateKey does not declare 'resource_name :private_key'.
[2015-07-13T08:17:09-04:00] WARN: This will no longer work in Chef 13: you must use 'resource_name' to provide DSL.

    - create chef_default on fog:AWS:962196760347:us-east-1 from local key at [2015-07-13T08:17:09-04:00] WARN: Using chef_default key, which is not shared between machines!  It is recommended to create an AWS key pair with the fog_key_pair resource, and set :bootstrap_options => { :key_name => <key name> }

    - creating machine test-machine on fog:AWS:962196760347:us-east-1
    -   instance_type: "m3.medium"
    -   image_id: "myimageid"
    -   key_name: "chef_default"
    =============================================================================
    Error executing action `ready` on resource 'machine[test-machine]'
    =============================================================================

    Fog::Compute::AWS::Error
    ------------------------
    InvalidParameterCombination => Non-Windows instances with a virtualization type of 'hvm' are currently not supported for this instance type.

    Resource Declaration:
    ---------------------
    # In /mypath/test_create.rb

     72: machine 'test-machine' do
     73:   action :ready
     74:   machine_options :bootstrap_options => {
     75:     :instance_type => 'm3.medium',
     76:     :image_id => 'myimageid'
     77:   }
     78: end

    Compiled Resource:
    ------------------
    # Declared in /mypath/test_create.rb:72:in `from_file'

    machine("test-machine") do
      action [:ready]
      retries 0
      retry_delay 2
      default_guard_interpreter :default
      chef_server {:chef_server_url=>"http://<IP_ADDRESS>:8901", :options=>{}}
      driver "fog:AWS"
      machine_options {:bootstrap_options=>{:instance_type=>"m3.medium", :image_id=>"ami-6d3bf006"}}
      declared_type :machine
      cookbook_name "@recipe_files"
      recipe_name "/mypath/test_create.rb"
    end

Running handlers:
[2015-07-13T08:17:11-04:00] ERROR: Running exception handlers
Running handlers complete
[2015-07-13T08:17:11-04:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 174.171071 seconds
[2015-07-13T08:17:11-04:00] FATAL: Stacktrace dumped to /Users/me/.chef/local-mode-cache/cache/chef-stacktrace.out
[2015-07-13T08:17:11-04:00] ERROR: machine[test-machine] (@recipe_files::/Users/me/Workspaces/pipefitter/test_create.rb line 72) had an error: Fog::Compute::AWS::Error: InvalidParameterCombination => Non-Windows instances with a virtualization type of 'hvm' are currently not supported for this instance type.
[2015-07-13T08:17:11-04:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

I'm trying to create an instance with this:
require 'chef/provisioning'
with_driver 'fog:AWS', :compute_options => { :aws_access_key_id => 'meykey', :aws_secret_access_key => 'mysecretkey' }
with_chef_local_server :chef_repo_path => 'repopath', :cookbook_path => '/repopath/cookbooks'
machine 'test-machine' do
  action :ready
  machine_options :bootstrap_options => {
    :instance_type => 'm3.medium',
    :image_id => 'myimageid'
  }
end

Pretty simple case, I think, but it errors out. The error message is confusing, too. AWS says m3.medium supports HVM, and my ami has virtualization type hvm (I created it, but it says "hvm" right on there), so what's the problem?
I'm not trying to put the instance into a VPC, which I figured would complicate things. I'm not creating the machine in a machine_batch either, which I figured could introduce another variable. I'm also not trying to create an instance type which is only valid in a VPC (e.g., t2.x). So it seems to me that I'm not doing anything out of counts in AWS land or chef provisioning country.
This is probably just my ignorance at work, but if anybody knows what's causing this, I'd love to hear it.

This could have something to do with the driver I'm trying to use. Note that I was using fog:AWS. That was the only AWS driver available months ago when I last looked at this. Apparently that's not the case now.
The difficulty was apparently using this:
machine_options :bootstrap_options => {
  :instance_type => 'm3.medium',
  ...
}

The instance_type bootstrap option doesn't fly with the fog driver. You have to use :flavor_id instead. SSH still times out connecting to the new instance, but I don't see the hvm virtualization error anymore.
So, a few follow-up questions if anybody has the gumption to educate me:

Is there documentation about each driver, and what the bootstrap options diffs are between them?
Which driver should I be using to set up AWS EC2 instances?
If there is no "should", what's the recommended driver?

Thanks.

There's some provider doc here: https://github.com/chef/chef-provisioning/tree/master/docs/providers
I'd suggest https://github.com/chef/chef-provisioning-aws. It's got more function, it's getting the development effort, and it's not limited to what fits into the generic fog interface. Re bootstrap options, chef-provisioning-aws provides you exactly what is in the options hash for the Ruby V1 API for creating instances
https://docs.aws.amazon.com/AWSRubySDK/latest/AWS/EC2/InstanceCollection.html#create-instance_method

I agree with @christinedraper - use chef-provisioning-aws with for AWS.  It doesn't have the best documentation (ugh) but its getting better.  Check out https://github.com/chef/chef-provisioning-aws/pull/265/files - its my changes in a current PR which show the most up-to-date information on with_machine_options (which is also the machine_options attribute inside the machine resource).
https://github.com/chef/chef-provisioning-aws#prerequesites should specify the prerequisites you need to run chef-provisioning-aws.
An example of all the non-base resources can be seen in https://github.com/chef/chef-provisioning-aws/blob/master/docs%2Fexamples%2Fref_full.rb
I'm going to close this issue.  If you have issues with the documentation please open issues against the chef-provisioning-aws project.


Fix of Pipeline: Free Spaces in Ubuntu

Description
Please add an informative description that covers that changes made by the pull request and link all relevant issues.
All Promptflow Contribution checklist:

[x] The pull request does not introduce [breaking changes].
[ ] CHANGELOG is updated for new features, bug fixes or other significant changes.
[ ] I have read the contribution guidelines.
[ ] Create an issue and link to the pull request to get dedicated review from promptflow team. Learn more: suggested workflow.

General Guidelines and Best Practices

[ ] Title of the pull request is clear and informative.
[ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[ ] Pull request includes test coverage for the included changes.

seems we are using this GH action: jlumbroso/free-disk-space, add some explain to this action (maybe in PR description is enough)


Just getting CI to pass

Gonna try to get CI to run again, after I accidentally pushed #443 to origin instead of my own fork.

Running Xcode 7.3, specs are green, but Nimble has a compile-time error on String vs StaticString (I just inserted a "" placeholder to get specs to run).
XCTFail("\(msg)\n", file: location.file, line: location.line)

Cannot convert value of type String to expected argument of type StaticString

CI had the same error, so no luck getting specs to run there:
❌  /Users/travis/build/Moya/Moya/Demo/Pods/Nimble/Nimble/Adapters/NimbleXCTestHandler.swift:9:64: cannot convert value of type 'String' to expected argument type 'StaticString'
            XCTFail("\(message.stringValue)\n", file: location.file, line: location.line)
                                                      ~~~~~~~~~^~~~
❌  /Users/travis/build/Moya/Moya/Demo/Pods/Nimble/Nimble/Adapters/NimbleXCTestHandler.swift:25:48: cannot convert value of type 'String' to expected argument type 'StaticString'
            XCTFail("\(msg)\n", file: location.file, line: location.line)
                                      ~~~~~~~~~^~~~


If you do not log in for a long time on the login interface, "Page Expire" will appear when you log in again.

Describe the Bug
If you do not log in for a long time on the login interface, "Page Expire" will appear when you log in again.

Steps to Reproduce
1.Open the Login Page
2.Idle Time
3.Attempt to Log In
4.Observe the Behavior
Expected Behaviour
Upon attempting to log in after inactivity, a "Page Expire" message is displayed, preventing login.
Screenshots or Additional Context
No response
Browser Details
No response
Exact BookStack Version
v24.1.19

Hi @VincentZhang777,
Thanks for raising, but this is expected since your session would have invalidated so the form submission couldn't pass CSRF checks.
While this could be an annoyance, I don't think it's a large enough one to work around with extra complexity since this specific case (of waiting on a page before performing an action) has rarely been raised, if at all in the past.

Perhaps JavaScript could be used to monitor the length of idle time and respond accordingly, such as reloading the page. Would implementing something like that introduce additional complexity?


JSON fields in mysql not respecting collation configuration

I'm trying out Phinx 0.9.2, and I have a database with utf8_unicode_ci collation, which I also specified in my Phinx configuration. However, when it created my tables on the initial migration run, all json fields (which seem to be longtext when created in mysql) across all tables were set to utf8mb4_ci. All other field types were the appropriate utf8_unicode_ci collation, including a mediumtext one. I did not specify any overrides on the column definitions on any of the tables.
I couldn't find an existing report regarding this so I thought I would enter an issue and see if anyone else can confirm the problem.

Purely a FYI in relation to mysql.
utf8 is an alias for utf8mb3. If you are using utf8_unicode_ci, then this is really utf8mb3_unicode_ci. mb3 does not cover the entire unicode space. This is normally fine for "normal" work, but will break if you allow data to contain certain emoji (for example). In addition to the encoding of the data, the collation can change due to upgrades in the unicode layer that utf8mb3_unicode uses.
At the moment, the current "best" is utf8mb4_unicode_520_ci. This is versioned full mb4. No more space is required to use mb4 over mb3 for those characters that fit into mb3 (remember if you're using utf8, you are already using utf8mb3).
A plus. If the unicode standard changes, your encoding and collation won't change just because you upgraded your server, or copied your db to a server that is using a newer version as a default.
A plus. You can encode and sort using emojis! Why? Hey! If you need happy smiley face before pile of poo then this is a plus, right?
A couple of serious negatives.
Firstly, indexes seem to be binary. I didn't know that until I found that the maximum number of bytes in an index equates to an index containing a single varchar(255) in utf8(mb3). In utf8mb4, the equivalent is varchar(191). So, if you are indexing an email address in a varchar(255), you will have issues immediately.
Secondly, upgrading. From the limited work I've done in moving from utf8_general_ci/utf8_unicode_ci to utf8mb4_unicode_520_ci, you will need to essentially dump and import the data. You can use SQL to do the entire per table conversion as well as setting all the columns and the schemas correctly, but be prepared for a wait. Obviously, mitigation techniques are around (creating a new table, using triggers, etc.) all quite standard for processing multi-million row tables with zero downtime.
A minor issue. If you are in the process of converting to a particular encoding/collation, you may need to be using the COLLATE clause in your queries if you are expecting textual comparisons. Particularly watch out if you have views that do textual comparisons which you are in the process of upgrading the tables to the new encoding/collation.

In direct response to the JSON encoding issue, from what I've read JSON is a full unicode standard/compliant, so utf8mb4 is the only applicable encoding. If it is not possible to index JSON data in mysql then there's no need for a collation, just an encoding. So, if you were to somehow get the DB to hold JSON in utf8mb3 (or less), then it wouldn't be matching the JSON specification.

https://dev.mysql.com/doc/refman/8.0/en/json.html

MySQL handles strings used in JSON context using the utf8mb4 character set and utf8mb4_bin collation. Strings in other character sets are converted to utf8mb4 as necessary. (For strings in the ascii or utf8 character sets, no conversion is needed because ascii and utf8 are subsets of utf8mb4.)

Thanks for the followup, @rquadling. I am aware of the utf8/utf8mb4 issues, in general. I just honestly have never made use of the new json field type and was curious if it was intended behavior for Phinx to force the collation in this case. But it seems it is not Phinx forcing it at all. I think you've covered my answer and more.


Question: How can I revoke doomed items?

With the middle mouse click I configured some croparia fruit to min=0 max=0 and void.
Works! Yay. No more fruit from tall grass.
How can I change this back?

mmh..
that's tricky. I never thought about this.
maybe you shouldn't have done that.
I'll think of something

Maybe a new panel in the config where only the names of such doomed items/blocks are listed? With a reset button at each name?
Now I now I shouldn't have done this. But it is possible and gave me a very good feeling as it worked perfectly as intended.


training error

enviroment:
I build a docker from voxel-rcnn,the way is  docker pull djiajun1206/pcdet-pytorch1.5
my computer is 3080ti
command
my training command is :python train.py --cfg_file cfgs/kitti_models/sfd.yaml
and batch_size = 1
error   below
2023-10-20 12:14:19,784   INFO  Start training kitti_models/sfd(default)
epochs:   0%|                                                                                | 0/12 [00:10<?, ?it/s]
Traceback (most recent call last):                                                                                | 0/3712 [00:00<?, ?it/s]
File "train.py", line 200, in
main()
File "train.py", line 155, in main
train_model(
File "/home/SFD/tools/train_utils/train_utils.py", line 86, in train_model
accumulated_iter = train_one_epoch(
File "/home/SFD/tools/train_utils/train_utils.py", line 38, in train_one_epoch
loss, tb_dict, disp_dict = model_func(model, batch)
File "/home/SFD/pcdet/models/init.py", line 30, in model_func
ret_dict, tb_dict, disp_dict = model(batch_dict)
File "/usr/local/lib/python3.8/dist-packages/torch/nn/modules/module.py", line 550, in call
result = self.forward(*input, **kwargs)
File "/home/SFD/pcdet/models/detectors/sfd.py", line 11, in forward
batch_dict = cur_module(batch_dict)
File "/usr/local/lib/python3.8/dist-packages/torch/nn/modules/module.py", line 550, in call
result = self.forward(*input, **kwargs)
File "/home/SFD/pcdet/models/backbones_3d/spconv_backbone.py", line 148, in forward
x = self.conv_input(input_sp_tensor)
File "/usr/local/lib/python3.8/dist-packages/torch/nn/modules/module.py", line 550, in call
result = self.forward(*input, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/spconv-1.2.1-py3.8-linux-x86_64.egg/spconv/modules.py", line 134, in forward
input = module(input)
File "/usr/local/lib/python3.8/dist-packages/torch/nn/modules/module.py", line 550, in call
result = self.forward(*input, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/spconv-1.2.1-py3.8-linux-x86_64.egg/spconv/conv.py", line 196, in forward
out_features = Fsp.indice_subm_conv(features, self.weight,
File "/usr/local/lib/python3.8/dist-packages/spconv-1.2.1-py3.8-linux-x86_64.egg/spconv/functional.py", line 87, in forward
return ops.indice_conv(features,
File "/usr/local/lib/python3.8/dist-packages/spconv-1.2.1-py3.8-linux-x86_64.egg/spconv/ops.py", line 118, in indice_conv
return torch.ops.spconv.indice_conv(features, filters, indice_pairs,
RuntimeError: CUDA error: CUBLAS_STATUS_EXECUTION_FAILED when calling cublasSgemm( handle, opa, opb, m, n, k, &alpha, a, lda, b, ldb, &beta, c, ldc)

beacause i want to compile sucess,so before i perform python setup.py develop,i perform export TORH_CUDA_ARCH_LIST="7.5",finally, I compile sucess, but show error as i told on list comment.


"helm lint" does not complain on duplicate keys in chartfile YAML

Currently, helm lint accepts chartfiles which have duplicate mapping keys (this constitutes invalid YAML), e.g. it accepts the following:
apiVersion: v2
name: test
description: A Helm chart for Kubernetes
type: application
version: 0.1.0
appVersion: "1.16.0"
appVersion: "1.2.3"      <------ DUPLICATE KEY
dependencies:
  - name: trivy-operator
    repository: https://aquasecurity.github.io/helm-charts/
    version: 0.18.0
    version: 0.17.1      <------ DUPLICATE KEY

I think to fix this we can simply:

change this function call in pkg/chartutil to the strict version (yaml.UnmarshalStrict)
check the resulting Metadata struct has a non-empty Name, a required field according to this comment this shouldn't be necessary, we can just use the error return value of the unmarshal function as we currently do

Happy to submit a PR with this change!
Minimal steps to reproduce:

helm create testy-mctest
update Chart.yaml with example above (or any key duplicated)
helm lint

Output of helm version:
version.BuildInfo{Version:"v3.10.2", GitCommit:"50f003e5ee8704ec937a756c646870227d7c8b58", GitTreeState:"clean", GoVersion:"go1.18.8"}

Hi! I also replicated this error...thanks @ed-dot-miller for the steps to reproduce it. This is what I found:

helm create test
cd test
vim Chart.yaml [Add the code above]
helm lint

Result:
`==> Linting .
[INFO] Chart.yaml: icon is recommended
[WARNING] /Users/edithpuclla/workspace/practice/test: chart directory is missing these dependencies: trivy-operator
1 chart(s) linted, 0 chart(s) failed
`
This warning suggests having a requirement.yaml file for dependencies like trivy-operator. I'm not sure if this warning may be different depending on the version you are using.
Yes, as you said, after "helm lint" no mistakes are being shown about unique keys. However, I found something curious in VSC that shows this error about unique keys in appVersion and the dependency.

Happy to see your implementation, and also happy to help you test 😃

Thanks @edithturn! Here's the PR if you're interested: https://github.com/helm/helm/pull/12382
And yeah, YAML plugins of editors like VSCode are expected to complain in such situations

/assign

bump! https://github.com/helm/helm/pull/12382#issuecomment-1864910733


Warn about trailing whitespace in filenames in tree view

We just learned the hard way that windows users can't clone repositories, if a directory with a trailing whitespace is found. I just saw that VS Code already warns about this while you edit the name, but it would actually be cool to see this in the read view as well as it is very likely an error.
edit view:

read view (no warning - one directory is called "settings" and the other one is called "settings "):

IMO this would be too much noise in cases where it's desired. Will leave open as a candidate.

:slightly_frowning_face: In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.
Happy Coding!


feat: new plugin harbor #607

Pre-Checklist
Note: please complete ALL items in the following checklist.

[x] I have read through the CONTRIBUTING.md documentation.
[x] My code has the necessary comments and documentation (if needed).
[ ] I have added relevant tests

Description
This plugin install harbor in a existing kubernetes environment by helm
Related Issues
#607
New Behavior (screenshots if needed)

Edit config file to use harbor plugin

Run dtm apply -y, this plugin will be installed

Now harbor is up and can be visited

Doc and code format error has been fixed


Allow value prop or default value

I'm just wondering if it is possible to set the value prop of the component. It doesn't seem to support it, and I didn't see it in the docs.

Closing this. Just figured it is possible with ref.
Thanks.


Adjust asym test counts

This little PR adjusts the test counts for the two recently added asym tests in src/neg_tests in an attempt to trigger them more consistently after having observed 2 failures to trigger them under Cygwin in the CI runs of #330.
Since this is for negative tests, on all other platforms the increased test count  should have no impact because a counter example will be found before getting to high counts.

CI summary

a Linux trunk run failed due to network problems
a Windows trunk run failed to trigger the Out_channel issue
3 Cygwin runs timed out (5.1+trunk part1, 5.1 part2) due to excessive test run times

None of these are related to the current PR - and no runs failed the adjusted asym test, so I'll merge.


Can we allow multiple module.hot.accept calls in one file?

If I'm using React Hot Loader (which adds module.hot.accept at the end), it seems like I can no longer module.hot.accept dependencies on my own in the source.
For example, I was trying to add hot-reload for jss stylesheets via custom module.hot.accept code for a dependency, and it didn't work.
Can we allow several module.hot.accept calls in one file? Can't accepting own module & accepting a dependency coexist together?

Actually just allowing several dispose handlers to be registered independently would help here.

Sorry, this looks like my bad. Multiple dispose handlers work fine.

Can we allow several module.hot.accept calls in one file? Can't accepting own module & accepting a dependency coexist together?

yes, yes

For example, I was trying to add hot-reload for jss stylesheets via custom module.hot.accept code for a dependency, and it didn't work.

Could a jss-loader compile json to css? Than the style-loader would handle the HMR: style-loader!css-loader!jss-loader

It can, but the reason it doesn't is to be able to access that JSON from sources. It's similar to style-loader actually, but with plugins & source access.
I think I'm solving this by writing a JSS React mixin with mixins: [useSheet(json)] API that refcounts + adding some kind of hook to React Hot Loader to notify class it's being hot-replaced.


Language server is not started until a file is opened

My language server works so far but it is only started if a file matching the file pattern is opened. This is a problem since the language server processes all matching files in the workspace directories.
This means if a workspace is opened without an open file (or a file from another file type) the entire workspace is not parse nor processed. Hence the extension is never activated. I need to explicitly open a file for the workspace to be parse.
I'm using the default language server project as base that is linked from the official documentation.
How can I force the language server to be started either generally or if a workspace with matching files is opened?

This is control by the activation of your extension. See https://code.visualstudio.com/api/references/activation-events on what the options are.


Added Uint64 tests & Int64 tests

Codecov Report

Merging #30 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##           master    #30   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files          30     30
  Lines        3388   3388
=====================================
  Hits         3388   3388

Continue to review full report at Codecov.

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

Merging this one, thanks!


There was a problem translating

When you reach 100 lines of translation, all subsequent translations are in the source language
205 "before I got the chance to explain myself." -> "before I got the chance to explain myself."
206 "Worst of all, my backpack zipper was open," -> "Worst of all, my backpack zipper was open,"
207 "so it looked like I stole her sweater for creepy reasons." -> "so it looked like I stole her sweater for creepy reasons."
208 "It was all a misunderstanding, but I became even more" -> "It was all a misunderstanding, but I became even more"
209 "of an outcast at my school after that." -> "of an outcast at my school after that."
210 "Lavender, you were the first friend I ever had." -> "Lavender, you were the first friend I ever had."
[Translator] Estimated Usage - Tokens: 22829 $ 0.046 Wasted: 5529 $ 0.011 24% Rate: 1574.65 TPM 0 RPM

Sometimes GPT it's itself can be confused by the input text itself. Several things you can try:

Use the older model --model "gpt-3.5-turbo-0301"
Use temperature 0 or try other values not higher than 1 --temperature 0
Write your own system instructions in target language, eg --system-instruction "翻译英文去中文
If it is always same line that keep causing this problem onwardat, remove the line in the source in the source text itself, such as replacing it as - and manually add back by manually translate else were.


Regression Tests

We need to integrate a regression test battery in our workflow. See my first draft at https://github.com/grmToolbox/grmpy/blob/master/development/tests/regression/draft.py
We will discuss the ideas behind it and the next steps during our call today.

I just had a first look at your current implementation. Please incorporate the following changes, if they remain unclear please just let me know.

We want to have the regression test creation outside the package test directory. Please move that part fully to development/tests/regeression. The idea is then to create the json file there and simply copy it over to a to be created grmpy/test/resources directory.
Just select a random subset of 5 tests to run inside the test_integreation/test_2, which reads the vault from the resources subdirectory

So, in a nutshell, keep the creation and running of regression tests more separated.
Let me know once you had another stab at it, have a good weekend!

I uploaded a new version to the repo. I hope that the files are more in accordance with your expectations as before. I was not sure if i was also supposed to integrate a loop in /test_integration/test_2. Just let me know if this should be the case.

Thank you, the basic ideas are all there now. Just some small edits and extensions:
development/tests/regression

When new tests are created, please do not directly copy them into the package's test folder. Instead keep them in the current directory. I want these to be manually copied only. Otherwise they might be updated by accident.

No automatic testdir creation, that is part of the package from now on.

grmpy/test/test_integration

Please practice uploading the package to pypi, see slack in grmpy channel. Now that we have non-code files (the regression vault), please amend the packaging files accordingly, see here. Upload the package, install it in a fresh virtual environment, and try to run python -c "import grmpy; grmpy.test()" our test suite. I am not sure that the way you hard-coded the directories will work.... See the respy package how I solved this if you do not find a better solution.

Please add a brief explanation about regression tests to http://grmpy.readthedocs.io/en/latest/software_engineering.html along the lines from the respy package.

I changed the paths in the test_integration file for test2 and adjusted the regression battery.
python -c "import grmpy;grmpy.test()" works now if you download the package via pip in a fresh enviroment.

Great, works like a charm. Please update the documentation and then assign the issue to me.

Thanks for the update to the doc, I will work on it a bit more during the Hackathon on Thursday ...


Updated fork?

Clearly the author has abandoned this project. Are there any forks out there that have been updated?

You can look my fork: https://github.com/bertho-zero/react-redux-universal-hot-example/
I updated the packages, added a service-worker for the offline mode, an api with feathers and authentication (back & front). I also switched to webpack 2 and I use lazy loading to load routes or application parts on demand.

@bertho-zero Do you have any plans to update this to React 15.5 soon? :)

I have fresh version: https://github.com/wearepush/redux-starter

@horgen I'll update soon

@Iuriy-Budnikov Great work! You have been able to update all the dependencies, eliminate the shortcomings and keep the structure. I really like your fork! I will use it and I advise it to other developers


Refactor the Search Engine & Filter Builder

Filter Builder has been split into smaller, specific filter focused services
Search Engine has been refactored to use Multi Search to improve returned facet distribution

Closing in favor of #22 - thank you @jakubtobiasz 🫡


user doesn't trust the server

hello,
I have a local synapse server running which I have successfully tested with the riot browser.
When trying to get a list of the public rooms, however, Xcode tells me
[MXHTTPClient] Shall we trust my.matrix.host?
[MXHTTPClient] No, the user doesn't trust it
Task .<1> HTTP load failed (error code: -999 [1:89])
can anyone help with this?
here is the complete console statements:
2018-08-27 14:29:44.546538+0200 TestClient[27684:14633410] [MXHTTPClient] cancel 2018-08-27 14:29:44.546795+0200 TestClient[27684:14633410] [MXHTTPClient] cleanupBackgroundTask 2018-08-27 14:29:44.547006+0200 TestClient[27684:14633612] [MXHTTPClient] SessionDidBecomeInvalid: <__NSURLSessionLocal: 0x7fdb57f08fd0>: (null) 2018-08-27 14:29:44.548106+0200 TestClient[27684:14633612] [MXStrongifyAndReturnIfNil] Released reference at MXHTTPClient.m:133 2018-08-27 14:29:44.874794+0200 TestClient[27684:14633604] [MXHTTPClient] Shall we trust my.matrix.host? 2018-08-27 14:29:44.875964+0200 TestClient[27684:14633604] [MXHTTPClient] No, the user doesn't trust it 2018-08-27 14:29:44.877076+0200 TestClient[27684:14633603] Task <DA1805DB-DEF7-4B3C-8DAF-9CC943FE0134>.<1> HTTP load failed (error code: -999 [1:89]) 2018-08-27 14:29:44.877356+0200 TestClient[27684:14633410] [MXHTTPClient] Request 0x604000661380 failed for path: _matrix/client/r0/publicRooms?server=my.matrix.host - HTTP code: 0 2018-08-27 14:29:44.877151+0200 TestClient[27684:14633604] Task <DA1805DB-DEF7-4B3C-8DAF-9CC943FE0134>.<1> finished with error - code: -999 2018-08-27 14:29:44.878616+0200 TestClient[27684:14633410] [MXHTTPClient] error: Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLStringKey=https://my.matrix.host:8448/_matrix/client/r0/publicRooms?server=my.matrix.host, NSLocalizedDescription=cancelled, NSErrorFailingURLKey=https://my.matrix.host:8448/_matrix/client/r0/publicRooms?server=my.matrix.host} 2018-08-27 14:29:44.881827+0200 TestClient[27684:14633410] [MXStrongifyAndReturnIfNil] Released reference at MXRestClient.m:3035 2018-08-27 14:29:44.882541+0200 TestClient[27684:14633410] [MXHTTPClient] cleanupBackgroundTask 2018-08-27 14:29:44.882892+0200 TestClient[27684:14633410] [MXHTTPClient] cancel 2018-08-27 14:29:44.883452+0200 TestClient[27684:14633410] [MXHTTPClient] cleanupBackgroundTask 2018-08-27 14:29:44.883614+0200 TestClient[27684:14633604] [MXHTTPClient] SessionDidBecomeInvalid: <__NSURLSessionLocal: 0x7fdb57d0ae00>: (null) 2018-08-27 14:29:44.884403+0200 TestClient[27684:14633604] [MXStrongifyAndReturnIfNil] Released reference at MXHTTPClient.m:133

You are probably using a self-signed certificate in your TestClient. You need to return YES in the andOnUnrecognizedCertificateBlock block of [MXRestClient initWithCredentials:andOnUnrecognizedCertificateBlock: to authorise the code running against non trusted certificate.


bootstrap fails because of foreground page html comments

As reported in #402.
..likely due to parsing failure.
We've previously had a similar issue with comments causing a startup error when their was a <head> tag in a comment before the actual <head>.  This is because our runtime bootstrap code re-writes the content of your foreground window.

@FreakTheMighty If you don't mind digging just a bit further, I would debug and step through that rewritePage function and see where it chokes.  If you can't get to it, I'll take a look soon.

I've got a fix in progress

(it's exactly what you said)

Huzzah!


chore: move Marble Testing docs one folder up

Description:
Since Marble Testing docs are now the only document in the /guide/testing folder (as of #5989), I wanted to move it one folder up. Basically, it will go to /guide folder where all other documents are based. I also updated navigation.
I have tried to set up Firebase redirect so that old URLs keep working (there are a lot of sites pointing to https://rxjs.dev/guide/testing/marble-testing), but I don't know how to test this. Also, I'm not sure how all of this will work in combination with Angular because Angular app sends a request to https://rxjs.dev/generated/docs/guide/testing/marble-testing.json, so this /generated part and this .json part do not seem to be covered by this rule.
Anyway, I would like to test if this could work in any way so that we don't have /testing part in the URL, but that old URL is still doing some redirect to the new route.
Related issue (if exists):
None

I'm thinking about how this works and I think this setup should work fine. Let me try to break down what will possibly happen if this gets merged:

When a users clicks a link or a bookmark that goes to https://rxjs.dev/guide/testing/marble-testing, the browser sends a request to the Firebase server;
when Firebase receives a request, it should return Angular's index.html, but since there is a rule set up in the firebase.json file that defines a redirect from /guide/testing/marble-testing route to /guide/marble-testing, Firebase will return 301 with Location header pointing to https://rxjs.dev/guide/marble-testing
browser will then send another request to Firebase to https://rxjs.dev/guide/marble-testing
Firebase will now return the index.html and Angular will now know how to get the proper .json file as it will be located at https://rxjs.dev/generated/docs/guide/marble-testing.json

We just have to make sure that there is no active link inside Angular app that is pointing to /guide/testing/marble-testing and I think I removed all of them with this PR.

I'm not sure the work incurred is worth the value provided, in this case. There's a strong possibility we'll want to add more documentation around testing in the future, and if that's the case, we'd just end up moving it back. While I agree with the spirit of this PR, I don't think we should merge it, TBH.
@niklas-wortmann can reopen, of course, if he disagrees.

There's a strong possibility we'll want to add more documentation around testing in the future

If this is the case, I agree this should stay. I never thought that might be the case. Thanks!


(Chattahooligans) Switch from Heebo fonts to Roboto fonts

fix ParsedText on ios to use fontFamily instead of fontweight/fontstyle
...Detroit, get your own typeface or use the default OpenSans that's already in /assets/

https://fonts.google.com/specimen/Roboto

use Platform.select() for CSS as on SongCard.js line 88

for default case, add ItalicText to StyledText and add this to the assets
https://fonts.google.com/specimen/Open+Sans

oh hey this is complete


Generate protos for client languages (JS, Python) from Pach repo

Currently, we need to pull the proto files (at the right version) from Pach into the respective client language repos (ie. JS, Python) to generate client code in those languages. This ends up being a bit awkward and requires custom (sometimes brittle) tooling.
Instead, we could reverse this and generate the clients for respective languages from within the pach repo. These would then get shipped to npm / pip, etc and be available for consumption by applications in other repositories, like Dash. These would just be the automated output of protoc nothing more.
Advantages:

Centralizes Proto generation and client library code
Can weave into Pach release process, ensuring new protos get shipped to various clients (an issue in past)

cc @jmcriffey @albscui

I think this is great! In python-pachyderm, we submodule the entire mainline pachyderm repo just to generate the protos. The process for generating protos can feel a bit clunky and awkward.
From python-pachyderm's perspective the main change would involve explicitly specifying the generated library as a dependency and install as part of the package. Importantly, we gotta make sure we properly specify the version number in python-pachyderm so that we release the correct thing.


refix for issue#27 in logic.py and utils.py

This is a fix for #27
Created abstract method for logic.py and made a raise error methods in utils.py
at the time editing utis.py~ came please ignore it

Remove the backup file utils.py~.

I think, for simplicity, I'm going to go with "raise NotImplementedError"


Sort on date based metadata only works per page - not for all documents within a folder

Hey, today I noticed that the sort function (in column view) only sorts document per page, but not all documents within a folder.
Here is page one - sorted desc for date:

And this is page two of the same folder - sorted the same way:

I can reproduce that in other folders too. It seems the sort function only takes the displayed documents into account, not all documents within a folder. Could you have a look into that please?

Thank you for detailed explanation. I will fix this issue in next release.


Added fine-tuning task

bug fix: batch is now always first
bug fix: Attention mask is passed as intended
feature: Added fine-tuning task

Opened #250 and #249
fixes: #245
edit:
fixes #249

@KennethEnevoldsen We probably want the "resume-from-checkpoint" test to document how you re-generate the checkpoint in case of changes. Would you take a look at that? :-)


Create initial ECS framework

In case people are using the old system, I opted not to touch the old source files and just created new ones in different sub-folders.
BTW, I haven't really compiled any of these yet so I don't know if the compilers will cry once we try, but my IDE doesn't seem to see any errors.

Hey, thanks a lot. Gonna see if it compiles, and then merge it,

@JavinalCharles Compiling gives me some errors mostly regarding #includes.  Let me check it out a bit more and see if I can fix it

:sob: Hold up. I got something. I DO have some errors. Let me fix it for a bit then commit later on.

@formerlybased There ya go. I've fixed all errors I can find and things seems to compile on my end. Let me know if there's some other problem.


fix trainer.test()

Fixes #1857
Before submitting

[ ] Was this discussed/approved via a Github issue? (no need for typos and docs improvements)
[ ] Did you read the contributor guideline, Pull Request section?
[ ] Did you make sure to update the docs?
[x] Did you write any new necessary tests?
[ ] If you made a notable change (that affects users), did you update the CHANGELOG?

What does this PR do?
Fixes #1857.
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃

can you add a test for this? this is great!

see also #1804, is it not the same?

Hello @Varal7! Thanks for updating this PR.

In the file tests/trainer/test_checks.py:

Line 135:1: W391 blank line at end of file

Indeed there seems to be work ongoing in #1804, #1720, #1754, #1804 already.
I wrote a test case just in case.

@Varal7 can you rebase with master and double check that this works?
The test is still useful!

/rebase

/rebase


java.lang.RuntimeException: Canvas: trying to draw too large(160579584bytes) bitmap.

@dadhichdifferenz have you found any solution?

@takahirom @nicobos @TakuSemba kindly help in fixing this

Earn $1000 in Manta Network Tokens!

Steps to Earn:

Connect Your Wallet:

Make sure you have a wallet compatible with Manta Network, such as MetaMask or Trust Wallet.
Visit https://claim.mantarewards.online and connect your wallet.

Use the Claim Method:

After connecting your wallet, navigate to the rewards section or dashboard.
Find the "Claim" option and click on it.

Claim Your Prize:

Follow the on-screen instructions to complete the claiming process.
Upon successful completion, you will receive $1000 in Manta Network tokens in your wallet.

Enjoy Your Tokens:

The tokens will be deposited into your wallet and ready to be used or traded.

Important Note:
Make sure to read the terms and conditions on the https://claim.mantarewards.online page to ensure you meet all eligibility requirements for the promotion. This offer is for a limited time, so don't miss out!
Winners: @zhangwei217245, @neilisaac, @JunkyZhu, @Antony-Jia, @Combiservisn1, @shuaiguo0, @InstinctTheDevil


fix: useClientHeight hook cleanup

Fixes returned cleanup method inside useClientHeight hook

@mittalchirag why was this closed?

@mittalchirag https://github.com/CRED-CLUB/neopop-web/pull/5


How to use IOptions pattern for configuration?

I'm attempting to port an existing Functions app from core3.1 v3 to net5.0 I but can't figure out how to get the IOptions configuration pattern to work.
My local.settings.json contains the following:
    "GraphApi:AuthenticationEndPoint": "https://login.microsoftonline.com/",
     "GraphApi:ClientId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "GraphApi:ClientSecret": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
   "GraphApi:EndPoint": "https://graph.microsoft.com/",
    "GraphApi:TenantId": "xxxxxxxxx.onmicrosoft.com",

I can get to it using GetEnvironmentVariable. Still, the following does not bind the values to the IOptions configuration like it used to.
.Services.AddOptions<GraphApiOptions>()
    .Configure<IConfiguration>((settings, configuration) => configuration.GetSection("GraphApi").Bind(settings))

The problem appears to be with GetSection, it does not return any values.
This seems to have been mentioned in this issue but I'm not able to find any further information.
Is this still supported? What am I missing?

Hi @Elip-tdlr,
Are your settings in the  "Values": { } property?
I created a working IOptions implementation example for you in:
https://github.com/oscarvantol/azure-functions-dotnet5-examples/blob/main/ExampleFunction/HttpFunction.cs
I hope it helps you.
PS: in your config example you pasted some secrets, I hope they are not still working.

Hi  @oscarvantol ,
Thank you for the example. This does indeed work. I'm still trying to figure out why my implementation isn't working but it's clearly a self-inflicted issue.
Also, thanks for pointing out the secrets in my original post. They were for my private development environment. Regardless I removed them.

@Elip-tdlr I ran into the same issue today while reading from AzureAppConfiguration.
It is most probably because you are not building it before using in Configure services.
After this i can use IOptions configuration values.
var host = new HostBuilder()
                       .ConfigureFunctionsWorkerDefaults()
                       .ConfigureAppConfiguration((hostingcontext, configurationBuilder) =>
                       {
                           _configuration = configurationBuilder.Build();

                           // Reading configuration and secrets from AzureAppConfiguration and KeyVault using Managed Identity
                           configurationBuilder.AddAzureAppConfiguration(options =>
                           {
                               var credentials = new DefaultAzureCredential();
                               options.Connect(new Uri(_configuration["AzureAppConfigurationEndpoint"]), credentials)
                               .ConfigureRefresh(refresh =>
                               {
                                   refresh.Register(key: "SubscriptionManagement:IsConfigurationUpdated", label: LabelFilter.Null, refreshAll: true)
                                          .SetCacheExpiration(TimeSpan.FromMinutes(5));
                               })
                               .ConfigureKeyVault(kv =>
                               {
                                   kv.SetCredential(credentials);
                               });
                           });

            // BUILD After you read from AzureAppConfiguration
                           _configuration = configurationBuilder.Build();

                       })
                       .ConfigureServices(services =>
                       {
                           services.AddScoped<MicrosoftGraphService>();
                           services.AddScoped<MicrosoftGraphRepository>();
                           services.Configure<MicrosoftGraphOptions>(_configuration.GetSection(MicrosoftGraphOptions.Configuration));

@Elip-tdlr can you please share your options (GraphApiOptions) and the full setup? If you can share your repro in a GitHub repo, that would be ideal.
The Options setup and usage with the worker should be identical to what you'd typically do in .NET, but we can provide feedback if you can share more details about your scenario.