invalid JSON: invalid character '\n' in string literal when using Kotlin variable in string

What happened?
When I try to include a variable in a Kotlin string, Pulumi reports a problem with the resource saying:
Diagnostics:
  aws:s3:BucketPolicy (b4b-Dev-website-policy):
    error: aws:s3/bucketPolicy:BucketPolicy resource 'b4b-Dev-website-policy' has a problem: "policy" contains an invalid JSON: invalid character '\n' in string literal. Examine values at 'b4b-Dev-website-policy.policy'.

The code for the bucket policy is:
val bucketPolicy = bucketPolicy("b4b-${env.name}-website-policy") {
        args {
            bucket(source.id)
            policy("{\"Version\": \"2012-10-17\", \"Statement\": [{ \"Sid\": \"PublicReadGetObject\", \"Effect\": \"Allow\", \"Principal\": \"*\", \"Action\": \"s3:GetObject\", \"Resource\": \"${source.arn}/*\" }]}") // ktlint-disable max-line-length
        }
    }

Expected Behavior
I would have expected I could include a variable within a string that describes the bucket policy. Without being able to do that, I'm not sure how I can supply the bucket arn as part of the policy.
Steps to reproduce
Use the code above to add a policy to an S3 bucket. If I remove the variable, the code will work fine. If I use " + source.arn +", I get the same error about a \n in the json.
Output of pulumi about
CLI
Version      3.78.1
Go Version   go1.20.7
Go Compiler  gc
Plugins
NAME  VERSION
aws   5.42.0
java  unknown
Host
OS       darwin
Version  13.4.1
Arch     arm64
This project is written in java: executable='/usr/bin/java' version='openjdk 19 2022-09-20
OpenJDK Runtime Environment (build 19+36-2238)
OpenJDK 64-Bit Server VM (build 19+36-2238, mixed mode, sharing)' java='/usr/bin/java' javac='19' maven='Apache Maven 3.9.0 (9b58d2bad23a66be161c4664ef21ce219c2c8584)'
Current Stack: donkittle/dmseer-infra/dev
Found no resources associated with dev
Found no pending operations associated with dev
Backend
Name           pulumi.com
URL            https://app.pulumi.com/dkittle
User           dkittle
Organizations  dkittle, donkittle
No dependencies found
Pulumi locates its logs in /var/folders/_1/bfwdf3td0xdd3ntzws9r8mtw0000gn/T/ by default
Additional context
I am using Kotlin with these dependencies:
    implementation("com.pulumi:pulumi:0.9.4")
    implementation("org.virtuslab:pulumi-aws-kotlin:<IP_ADDRESS>")
    implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
    implementation("org.jetbrains.kotlin:kotlin-reflect")

Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

Hi there @dkittle from what I see in the example code above is that you are using source.arn directly as part of a string literal. I believe source.arn is of type Output<string> which means that you cannot use it as a value directly, instead you use its value from an applyValue call as follows.
val bucketPolicyJson = source.arn.applyValue(fun(arn: String): String {
    return "{\"Version\": \"2012-10-17\", \"Statement\": [{ \"Sid\": \"PublicReadGetObject\", \"Effect\": \"Allow\", \"Principal\": \"*\", \"Action\": \"s3:GetObject\", \"Resource\": \"${arn}/*\" }]}";
})

val bucketPolicy = bucketPolicy("b4b-${env.name}-website-policy") {
    args {
        bucket(source.id)
        policy(bucketPolicyJson)
    }
}

Can you give this a try?


matrix-synapse: 1.38.1 -> 1.39.0

(cherry picked from commit 2044dcf1bb36206027624f7531cfe45545e4f36c)

Motivation for this change
Backport of https://github.com/NixOS/nixpkgs/pull/130808
Did not backport the maintainer list change
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Relase notes)

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

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 132002 at b784cafa run on aarch64-linux 1

2 packages built successfully:

matrix-synapse
matrix-synapse-plugins.matrix-synapse-mjolnir-antispam


Analyzer fuzz crash: wrong number of type arguments supplied

typedef F3<X> = Function<T>();
class A<T> extends A<F3<Z, R>> {}

Note: this crash only occurs in summary1 which is soon to be replaced with summary2, making this lower priority.
Invalid argument(s): Wrong number of type arguments supplied
#0      GenericTypeAliasElementImpl.doInstantiate (package:analyzer/src/dart/element/element.dart:6092:7)
#1      GenericTypeAliasElementForLink.buildType (package:analyzer/src/summary/link.dart:3461:44)
#2      CompilationUnitElementForLink.resolveTypeRef (package:analyzer/src/summary/link.dart:1471:24)
#3      CompilationUnitElementForLink.resolveTypeRef.getTypeArgument (package:analyzer/src/summary/link.dart:1459:18)
#4      new List.generate (dart:core/list.dart:163:28)
#5      ClassElementForLink_Class.buildType (package:analyzer/src/summary/link.dart:868:15)
#6      CompilationUnitElementForLink.resolveTypeRef (package:analyzer/src/summary/link.dart:1471:24)
#7      CompilationUnitElementForLink.resolveTypeRef.getTypeArgument (package:analyzer/src/summary/link.dart:1459:18)
#8      new List.generate (dart:core/list.dart:163:28)
#9      ClassElementForLink_Class.buildType (package:analyzer/src/summary/link.dart:868:15)
#10     CompilationUnitElementForLink.resolveTypeRef (package:analyzer/src/summary/link.dart:1471:24)

This has been previously reported by users, e.g. https://github.com/dart-lang/sdk/issues/36213

Summary1 is no longer. Closing as obsolete.


@RichardLitt: Add bag from April 2017

Time to give this thing an update!

This has now been added. All that's left:

[ ] Knolling image
[ ] Overall description (and a place to put that)
[ ] Write-ups of all of the items.


[NEW FEATURE] Global routing table need or not to be send

What feature would you like to be included in Luos?
In many case, a node don't need to receive and store the global routing, for exemple if there is only driver services in the node.
Now, we have to design ram message buffer to the size of global RTB in the product! it's necessary, just to accept message at detection time even if you only have one service in a node and after this phase all the space in the message buffer is useless.
Solution :

Add in node structure a bit field with information on the node.
one of them must indicate if the node need to receive the global RTB

struct attribute((packed))
{     // NODE mode entry
struct attribute((packed))
{
uint16_t node_id : 12;  // Node id
uint16_t certified : 4; // True if the node have a certificate
};
uint16_t port_table[(MAX_ALIAS_SIZE + 2 + 2 + sizeof(uint8_t) - 2) / 2]; // Node link table
uint8_t Node_Info//Mask of flag information
};

In the mask field of Node_Info come from a define in node_config.h

At the of of a detection instead of sending the global routing table to all the node, the node who start the detction parse the global routing and the Node_Info bit field of each node to send or not the global routing table to the other node.

This way no need to filtering a spécial command in the reception just need to no send a global routing!

Fixed in luos_engine 2.6.0


CA: Corrupted Gauntlet GM (50 kc)

🐛 Bug Report
Checking for 150 KC instead of 50 KC

Thank you - fixed here https://github.com/oldschoolgg/oldschoolbot/pull/5259


TaskManager: finish dockerization and add to ECS

Basic instance should be added to run in ECS, single plugins handled in upcoming issues

Since communication via the the ALB was not feasable, ITM and Goobi are now running in the same ECS service with linked containers on one instance. This appears to be working fine so far and will be tested further. Changes have now been pushed to https://github.com/wellcometrust/workflow/tree/add_itm_task

Communication from Goobi to the ITM is working without problems and tasks are starting. This issue can be closed when the code is merged to master together with the shellserver changes probably.

As the communication has not been working bi-directionally using docker links, a switch has been made to a new infrastructure (https://github.com/wellcometrust/workflow/pull/59). When everything is up and running we need to re-test end to end and the ticket can be closed.

Can this be closed now?

Works as expected and an example workflow is available as Sample_workflow_jpeg-conversion


Automated Package Upgrade

:tada: This PR is included in version 5.0.349 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Revert "Add -prefix-serialized-debugging-options"

Reverts apple/swift#39138
This is causing a failure on Windows: https://ci-external.swift.org/job/oss-swift-windows-x86_64-vs2019/6659/consoleText

@swift-ci please smoke test

CC: @drodriguez

/cc @rmaz

Sorry about that. Is Windows CI not part of "please test" these days? I have to be explicit?

It is, but it doesn't always trigger, so you should explicitly check for it.  @shahmishal might be able to identify why it didn't trigger.

Merging to unblock other PRs that are failing on this.


Updated values.py for honda civic

Description [Dashcam Mode: Car Unrecognized]
Verification [Added new ecu fw versions and now able to engage openpilot]
VAlues from my car's recorded drive:
ecu = programmedFuelInjection = 416944369 = 18da10f1 - 37805-5AG-Q710\x00\x00
ecu = transmission = 416947953 = 18da1ef1 - 28101-5CG-A320\x00\x00
ecu = fwdRadar = 416985329 = 18daB0F1 = 36161-TED-Q320\x00\x00
ecu = vsa = 416950513 = 18da28F1 = 57114-TEA-Q220\x00\x00
ecu = eps = 416952561 = 18da30F1 = 39990-TEA-T020\x00\x00
ecu = srs = 416961521 = 18da53F1 = 77959-TEA-Q820\x00\x00
ecu = combinationMeter = 416964849 = 18da60F1 = 78109-TED-Q510\x00\x00
ecu = gateway = 417001457 = 18daeff1 = 38897-TBA-A020\x00\x00

What is your dongle id? I'd like to quickly verify the values.

Merged the PR. Will be shipped with v0.8.1, or you can switch to the nightly build on the master-ci branch

Awesome!
Not sure how to do that so I guess I'll just wait for 8.1?
Get Outlook for Androidhttps://aka.ms/ghei36

From: Willem Melching<EMAIL_ADDRESS>Sent: Tuesday, December 15, 2020 12:17:27 AM
To: commaai/openpilot<EMAIL_ADDRESS>Cc: DreZee669<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [commaai/openpilot] Updated values.py for honda civic (#2752)
Merged the PR. Will be shipped with v0.8.1, or you can switch to the nightly build on the master-ci branch
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcommaai%2Fopenpilot%2Fpull%2F2752%23issuecomment-744433148&data=04|01||ebe1382214cb4b4c72bd08d8a0329aa2|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637435486482881219|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=YRVLbP7iHCvRg4J5xrUMsPKXB2pz%2BHKwwXbux1hQ4E8%3D&reserved=0, or unsubscribehttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAR2CK2U74VM5WUHEOV5IQRLSUYF6PANCNFSM4UXV5VVA&data=04|01||ebe1382214cb4b4c72bd08d8a0329aa2|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637435486482881219|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=EasUaLQFWCrJazXxdMsfQ52V9d7QGYrKhaMfnG9GDiE%3D&reserved=0.


nix eval failed while indexing

❯ rippkgs-index nixpkgs
evaluated registry in 309.7863 seconds
thread 'main' panicked at src/bin/index/main.rs:198:9:
`nix eval` failed:
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Let me know how I can get more info to help you debug.

Which commit of nixpkgs is on your NIX_PATH?

NIX_PATH is unset. I did find a .git-revision file for nixpkgs, maybe that's the one?
❯ echo $NIX_PATH

❯ cat ~/.nix-defexpr/channels/nixpkgs/.git-revision
144133c526040a5140e89366ff72ac2d387e9bbb


Fixing Tiger Test

This reverts the change that broke the Tiger test.

@Shkyrocket: Is this a replacement for my PR? Shall I close it?

@Shkyrockett :
On a second look, your revert also reverts the very nice performance improvement for path rendering by @LightningDragon. While the call to PointCount seems unavoidable, I would keep copying the path points (see #294).

after merging #294 tiger.png seems to work. can you confirm? if yes i'll close this issue.

Yep, the check for whether there are any points seems to mitigate the access violation.


The underlying compression routine could not be loaded correctly

Hello
not sure if anyone is using this method
Binary.Compress(Somedata, Compression.GZip)
Running the query in Visual Studio 2017, error appears (a more descriptive error in the logs)
Something about
Unabel to load DLL 'mashupcompression.dll': The specified module could not be found.
Everything else seems to work fine.
Something not installed correctly or maybe I missed something?

I think I may have found an answer.
Looking at post
https://github.com/microsoft/DataConnectors/issues/100
Will need to run more tests before I provide my findings.

This is what I found...
The file "mashupcompression.dll" was missing from the extension folder used by Visual Studio.
I've located this file when I installed PowerBI Desktop App at the following location
"C:\Program Files (x86)\Microsoft Power BI Desktop\bin"
Note that I am using the x86 version of the DLL, because in Visual Studio 2017, I am running the project as x86 platform option. I have not tested if the x64 version of the DLL would would with the "Any CPU" platform option in Visual Studio 2017.
The Visual Studio extension folders are normally located here, where "username" is the account name you log onto your PC (Windows 7)
C:\Users"username"\AppData\Local\Microsoft\VisualStudio\
An easy way to locate the correct extension folder is to search for the following file "Microsoft.Data.Mashup.dll" under the VisualStudio folders.
Normally the DLLs are located under the "Dependencies" folder.
Once located, copy the "mashupcompression.dll" file into these "Dependencies" folders (if you have more than 1 version of Visual Studio installed.
Hope this helps.

@mattmasson, it looks like neither this DLL nor the OleDbInterop DLL are being incorporated into the VSIX. I've filed bug 200048 in our internal tracker.


IndexError: Invalid key: 28 is out of bounds for size 0

IndexError                                Traceback (most recent call last)
[<ipython-input-17-3435b262f1ae>](https://localhost:8080/#) in <cell line: 1>()
----> 1 trainer.train()

11 frames
[/usr/local/lib/python3.10/dist-packages/datasets/formatting/formatting.py](https://localhost:8080/#) in _check_valid_index_key(key, size)
    524     if isinstance(key, int):
    525         if (key < 0 and key + size < 0) or (key >= size):
--> 526             raise IndexError(f"Invalid key: {key} is out of bounds for size {size}")
    527         return
    528     elif isinstance(key, slice):

IndexError: Invalid key: 28 is out of bounds for size 0
despite the fact that I have downloaded the latest version of the library, I still get this error.
Can someone please help me?

Hi @serino28
Thanks for the issue, can you provide more details on how you get the issue, ideally with a reproducible handy snippet to better help you?

Hi @serino28 Thanks for the issue, can you provide more details on how you get the issue, ideally with a reproducible handy snippet to better help you?
Sure, I am trying to fine-tune a falcon 7b-instruct using my own dataset.
When I try to call trainer.train() I get this error.
I attach the relevant code:

`from peft import LoraConfig
lora_alpha = 16
lora_dropout = 0.1
lora_r = 64
peft_config = LoraConfig(
lora_alpha=lora_alpha,
lora_dropout=lora_dropout,
r=lora_r,
bias="none",
task_type="RWForCausalLM",
target_modules=[
"query_key_value",
"dense",
"dense_h_to_4h",
"dense_4h_to_h",
]
)
from transformers import TrainingArguments
output_dir = "./results_prova2"
per_device_train_batch_size = 4
gradient_accumulation_steps = 4
optim = "paged_adamw_32bit"
save_steps = 10
logging_steps = 10
learning_rate = 2e-4
max_grad_norm = 0.3
max_steps = 3
warmup_ratio = 0.03
lr_scheduler_type = "constant"
training_arguments = TrainingArguments(
output_dir=output_dir,
per_device_train_batch_size=per_device_train_batch_size,
gradient_accumulation_steps=gradient_accumulation_steps,
optim=optim,
save_steps=save_steps,
logging_steps=logging_steps,
learning_rate=learning_rate,
fp16=True,
max_grad_norm=max_grad_norm,
max_steps=max_steps,
warmup_ratio=warmup_ratio,
group_by_length=True,
lr_scheduler_type=lr_scheduler_type,
)
from trl import SFTTrainer
max_seq_length = 512
trainer = SFTTrainer(
model=model,
train_dataset=data,
peft_config=peft_config,
dataset_text_field="text",
max_seq_length=max_seq_length,
tokenizer=tokenizer,
args=training_arguments,
)
for name, module in trainer.model.named_modules():
if "norm" in name:
module = module.to(torch.float32)
trainer.train()
`

HI @serino28
Do you still face the same issue? I think the problem is on the way you create the dataset, can you share how you create your dataset?

Closing, feel free to re-open if you need help!


This traces can not be accessed due to the LFS quota limit

Hi, when i try to download the random delay traces, it occurs that "batch response: This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access." Can you reslove this problem ?
alternative : https://help.github.com/en/github/managing-large-files/removing-files-from-git-large-file-storage

Should work now, I extended the quota.

thanks


[SER-4017] Added estimated delivery date to response object.

Looks like the tests are passing with php 5.6 so we should be good? Don't think they have ever passed with php 5.5 since I didn't touch any OnTrac files and thats one of the tests that failed. The code that uses the estimated delivery date is in symfony, this code just initializes it.

Tests are failing

@alvinnguyenHL if we are going to stop support for PHP 5.5 we'll need to document that in our changelog, have a new release and update Travis to not test for PHP 5.5.

Jira ticket - https://jira.hautelook.net/browse/SER-4410


CDPS-775: Removing zone id from timestamps to make it easier for frontend to consume

Codecov Report
Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 83.50%. Comparing base (cf4170f) to head (44b837c).

Files
Patch %
Lines

.../hmpps/prisonperson/config/OpenApiConfiguration.kt
0.00%
1 Missing :warning:

Additional details and impacted files
@@            Coverage Diff            @@
##               main      #61   +/-   ##
=========================================
  Coverage     83.50%   83.50%
  Complexity      383      383
=========================================
  Files            59       59
  Lines          1158     1158
  Branches        113      113
=========================================
  Hits            967      967
  Misses          119      119
  Partials         72       72

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Idea: "Lite" mode flag

Only includes the essentials
Could also be a console GUI where the user picks which features to include. All should be checked as default:
Ideas to be possible to exclude:

Translations
Electron

Electron is not installed now as default and translations are removed for now. Closing this


Map midi message to mouse wheel

In order control knob parameters in ProTools and other DAWs that are not able to midi map controls, the mouse automation could be enhanced to send mouse wheel actions on incoming midi messages.

This is hard to realize as midi values have a defined range, while the mouse wheel has none.


Use cinc omnibus-toolchain for RHEL-10

Signed-off-by: Lance Albertson<EMAIL_ADDRESS>Description
Describe what this change achieves
Issues Resolved
List any existing issues this PR resolves
Check List

[ ] A summary of changes made is included in the CHANGELOG under ## Unreleased
[ ] New functionality includes testing.
[ ] New functionality has been documented in the README if applicable.

Released as: 1.2.1

Mint be worth testing this on stream 10?


Changed default behaviour for skip_special_tokens and add_special_tokens

Changes made in both CLI and API. API changes will directly affect how optimum-intel converts tokenizers as it doesn't override defaults. Keep old options for the CLI part for backward compatibility.

Please, create PR to releases/2024/2

build_jenkins


Board rotation offsets - Bug in matrix multiplication?

The SENS_BOARD_*_OFF parameters for fine-tuning the board rotation are multiplied by the rough board rotation in two in different ways (in board frame vs aircraft body frame) in different parts of the code:
accelerometer_calibration.cpp (line 433):
	/* combine board rotation with offset rotation */
	board_rotation = board_rotation_offset * board_rotation;

sensors.cpp (line 859):
_board_rotation = _board_rotation * board_rotation_offset;

Which one should it be?

The first one looks better in my opinion. It's true that rotation matrix multiplication does not commute.
I guess the large board rotation should be before the fine tuning.

I concur:
If board_rotation transforms from board_frame to body_frame1 and
board_rotation_offset transforms from body_frame1 to body_frame2
then (board_rotation_offset * board_rotation) transforms from board_frame to body_frame2.
In that case, the rotation offsets are measured from body_frame1 to body_frame2, which I think is the way they are intended.

@tumbili Could you please resolve this? Thanks!

Fixed via #2197


Add cooldown for regeneration

Adding a 30 second cooldown after regenerating.

Cooldown should not start unless they regenerated (i.e. if raised).
If they regenerated from SoL, the cooldown would be applied.

Should we be tagging the 'corpse' with the regeneration source?

There is no display indicating the cooldown, should there be one?

Can/should we display the cooldown countdown?
Should we send them a message when they can regen again?
Should we have some sort of item in the inventory like other spells?

Other thought: should they have to do something to reactivate regen (like crouching for the 30 seconds), raher than a straight cooldown?

I don't believe seed of life can't be cast on a regenerating body, and it ignores the cooldown tag. Therefor SoL and regeneration should not conflict.
I agree that having a visible cooldown would be better. I was looking at rewriting the cooldown system to use item durability instead of item swapping. However, that's a lot to do before the next quest. If you want to look into that, I would greatly appreciate it.
For now I think sending them a message that their regeneration is back will be sufficient.
I like the Idea of using sneaktime as the "cooldown." It's a built in scoreboard, so it should be easy enough to prepare. However, it is also being used as a way to pick up/drop bodies, so there might be some conflict there.
FYI, tick speed in minecraft is 20 ticks per second, so a cooldown of 300 ticks is 15 seconds, not 30.

I don't believe seed of life can't be cast on a regenerating body, and it ignores the cooldown tag. Therefor SoL and regeneration should not conflict.

Right, but the person dies while regeneration is on cooldown they could be raised with SoL, right?

Yep, as long as the "corpse" is not already regenerating, SoL can raise it.

I like the Idea of using sneaktime as the "cooldown." It's a built in scoreboard, so it should be easy enough to prepare. However, it is also being used as a way to pick up/drop bodies, so there might be some conflict there.

What about needing to hold a Regeneration spell item for 10 seconds to 're-cast' the spell instead of a generic cooldown? I like the idea of them having to do something active to get back the regeneration -- mostly just to re-enforce that the cooldown exists.

I implemented a spell focus to 'recast' Regeneration (has to be selected for the timer to tick down).
I looked into using item durability as a cooldown visual, but I couldn't find a way to set the durability of items in a player's inventory (Minecraft considers it changing players' data and disallows it).

Looks good! I ran into the same problem with player data, but I thought i had seen someone do that before. I'll keep looking, I think this looks good, so I'll merge the branch.

but I thought i had seen someone do that before

It looked like there might once have been a loophole (setting data via /execute store)... but I couldn't get it to work, so I figured the loophole probably got fixed somewhere along the way).


Add flag to cache libcc downloads

Will need a follow up PR to electron to allow usage of this, basically you can optionally cache libcc downloads to a folder on your machine.  Means that when you switch branch you won't have to redownload stuff.

Would it make sense to give unique local names to already downloaded libcc archives to avoid redownload?

Would it make sense to give unique local names to already downloaded libcc archives to avoid redownload?

What do you mean, all libcc downloads are stored at {commit}-{filename} so they won't redownload 🤔

What do you mean, all libcc downloads are stored at {commit}-{filename} so they won't redownload 🤔

@MarshallOfSound
Sorry, I didn't read your changes as carefully as I should have.
That's exactly what you're doing.


Update Go to v1.21.6

Similar to:

https://gitlab.cee.redhat.com/cnf/cnf-gotests/-/merge_requests/657
https://github.com/openshift-kni/eco-gosystem/pull/64

Can you please provide some input as to why you need to update the go version of the project? This infra project is used by a large number of groups working on various openshift components so we are typically only updating if there is justification to. Additionally, our main branches are currently inline with OCP release-4.15 which is currently using go 1.20


Fix issue #5236 : The function has been tested in an online php Compiler

Hello, by testing my solution in a online compiler i confirm you that the function that  i coded can find the smallest three elements, so i added this file program/program/find-the-smallest-three-elements-in-an-array.
Thank you for reviewing and merging this PR !
Closes #5236

You're welcome !


Include a progress bar indicator while fitting ellipsoids

Describe the bug
In ellipsoid factor, it would be helpful for the user to get some idea of progress by a progress bar indicator. This is complicated by ellipsoid fitting being performed within a ParallelStream:
QuickEllipsoid[] skeletonSeededEllipsoids = skeletonPoints.parallelStream().map(sp -> medialOptimisation.calculate(pixels, sp)).filter(Objects::nonNull).toArray(QuickEllipsoid[]::new);

Which makes it difficult to extract the current position within the array of skeleton points on which  parallelStream() is working.
One solution proposed by @rimadoma is to (if I understand it correctly) drop an AtomicInteger into the fitting logic, which is then used by a progress bar updater:
final AtomicInteger progress = new AtomicInteger();
...
stream.parallel().peek(x -> {
 statusService.showProgress(progress.getAndIncrement(), max);
}).forEach(x -> ...);

Expected behavior
The progress bar smoothly updates as ellipsoid fitting continues.
Context
EF1 used the Multithreader to run in threads and so had an AtomicInteger readily available to each thread to update the status bar. (Note the redundant counter.getAndAdd(), when ai.get() would do).
	final AtomicInteger ai = new AtomicInteger(0);
	final AtomicInteger counter = new AtomicInteger(0);
	final Thread[] threads = Multithreader.newThreads();
	for (int thread = 0; thread < threads.length; thread++) {
		threads[thread] = new Thread(new Runnable() {
			public void run() {
				for (int i = ai.getAndAdd(skipRatio); i < nPoints; i = ai.getAndAdd(skipRatio)) {
						ellipsoids[i] = optimiseEllipsoid(imp, pixels, skeletonPoints[i], unitVectors, i);
					IJ.showProgress(counter.getAndAdd(skipRatio), nPoints);
					IJ.showStatus("Optimising ellipsoids...");
				}
			}
		});
	}
	Multithreader.startAndJoin(threads);

Closed with bonej-7.0.1


Transactional Guarantees with Background Work Queueing

The current state of the fhir server reveals a crucial gap in transactional guarantees between resource updates and the background work queueing mechanism. This exposes the system and clients to potential data inconsistencies.
The problem can be seen in the api servers fhir repo where if the writeToDatabase call succeeds but addBackgroundJobs fails for some reason (transient BullMQ issue or server crash for example), clients will miss subscriptions, resource downloads, and/or cron registration.
https://github.com/medplum/medplum/blob/bba064a5b5d30cf22e4d1b79a232306ed1edef35/packages/server/src/fhir/repo.ts#L510-L515
Proposed Solution
To mitigate this issue, the implementation of the transactional outbox pattern is recommended. This pattern not only strengthens transactional guarantees but also introduces the capability of retrying background job queueing, despite the low-probability failures.
High-level Implementation Details
Event Table Introduction
The proposed solution involves the creation of a new events table. This table would encompass the following fields:

id: Uniquely identifies each event.
timestamp: Records the time when the event occurred.
type|name: Facilitates routing the event to the appropriate handler in the processor.
data: Contains event data, ideally limited to resource references.
request|correlation_id: Links the event to the corresponding request responsible for the mutation. This linkage supports the creation of a logger that binds asynchronous operations related to the same mutation.
successful_handlers: Lists the handlers successfully processed to prevent redundant execution.
errors: Captures information about encountered errors during event processing.
backoff_until: Specifies when to retry processing the event in case of an error.
processed_at: Timestamp indicating when the event was successfully processed.

ResourceSaved
A ResourceSaved event will be transactionally persisted alongside a resource creation or update.
Event Processor and Handler(s)
The solution introduces an event processor capable of running either in-process or as an out-of-process job. This processor checks for unprocessed events in the events table on a set interval and runs the events through their respective handlers (a predefined map using keys as event type/name). The handler(s) are responsible for background job queuing using the BullMQ queueing system. The processor updates the events based on handler completion results. The processor should be capable of scaling horizontally without concern of duplicate event processing.
For each background job that requires queuing, the ResourceSaved event will have a corresponding 'handler.' These handlers must utilize the addBulk method to guarantee atomic queueing in BullMQ. Alternatively, a single handler could be used and addBulk can be called to guarantee atomic queueing of all background jobs at once (subscriptions, downloads, and crons). The important part here is that the jobs are atomically queued.
Considerations and Drawbacks
Despite the benefits offered by transactional outbox, it is important to acknowledge the drawbacks, including:

High level of reliance on the event processor properly updating the events on success to prevent duplicate handler invocations. Specifying custom job ids would entirely mitigate this concern, assuming removeOnComplete is not enabled. https://docs.bullmq.io/guide/jobs/job-ids.
Increased latency between resource persistence and background execution. Impact based on event processor tick interval.
Increased storage requirements due to the introduction of the new events table.
Increased bandwidth usage and database load from the event processor.
Reduced code flow clarity.

Nevertheless, the advantages of improved transactional guarantees and enhanced data consistency significantly outweigh these drawbacks IMO.

Looked a bit more into this and I ended up throwing together a library that implements a generic transactional outbox event processor https://github.com/dillonstreator/txob as well as a client adapter for pg https://github.com/dillonstreator/txob/blob/main/src/pg/client.ts
I also put together a simple example http server application that uses this library to showcase transactionally persisting events along with another database entity and processing arbitrary lists of independent side effects asynchronously https://github.com/dillonstreator/txob/blob/main/examples/pg/index.ts
Curious to see what thoughts are on all of this.


Cant open the shift and tab thing

It wont let me open it up and every time i try to open it it js wont

and i cant change the color of my roblox back

Roblox has rolled out the 64-bit update completely now, so ReShade does not work anymore.


Capture dependency download issues in Sentry

Test plan
Just adding a sentry callback to error handlers

Current dependencies on/for this PR:

main

PR #1786   👈

This stack of pull requests is managed by Graphite.

@abeatrix Haha yeah we don't automatically send all uncaught exceptions to Sentry (remember when we debugged the autocomplete issue in the beginning where a generic onUncaughtErrors callback caused so much headache?) so we have to resort to manual uploading


Locale - Added norwegian (bokmål) language strings

Added norwegian (bokmål) language strings, based on the present strings in the english sv-SE section.

Duplicate of #27520

cc @michaldudak to follow-up on your previous question


Fix for custom compression codec

I tried to use lzo compression with secor but it always failed with null pointer exception because it did not find the set codec even if it was on the classpath.
I checked it and it is because it was not added to the CompressionCodecFactory's configuration.
Due to this ccf.getCodecByClassName won't give back the set compression codec (except if it is gzip which is set by default) as it won't be in the hashmap (codecsByName) where it tries to find the set codec.
With the modification I did in the pull request lzo compression worked fine for us.

Thanks for fixing, @treff7es


Agones helm repo

We could setup a chart repository to streamline installation.
See:
https://github.com/kubernetes/helm/blob/master/docs/chart_repository.md
Possible options :

Google Cloud Storage.
Github pages.

Once this is done installation step would be:
helm repo add agones our_repo_url
helm install agones/agones

Ooh! I love this idea - I need to read up on this, but maybe this will also make installing dev versions of Agones easier as well.
We have the domain agones.dev - we can likely do a charts.agones.dev or something similar.

I ‘m thinking to add a google cloud storage bucket ´agones-charts’ with a backend (load balancer) to redirect https://agones.dev/helm.
Then we add all previous releases to the bucket. We also add a step to push a release( helm package + gcs copy) in the release make target.
Finally we should update the release and installation process documentation, the later should be
´´´
helm repo add agones https://agones.dev/helm
helm install agones/agones
´´´
That should install the latest version (user can also see the list of version using ´helm repo list’)
Question: does agones/agones feels right ?

I wonder if we even need the load balancer. I already run an app-engine app at agones.dev - so we could just modify that to serve out of the GCS bucket.
Maybe through: https://github.com/google/weasel even?

This is ready to test see my branch:
https://github.com/Kuqd/agones/commit/af17eedcc16388ee78642b847f1aad0a7c1d06c1
I've added 3 targets (one to package the chart, one push and one to push a specific version).
Once this is tested I would update doc and do-release target.

@Kuqd - Just to confirm - I need to create a redirect from agones.dev/chart/stable to https://storage.googleapis.com/agones-chart/ ?

yes please !

@Kuqd I've setup a redirect from http://agones.dev/chart/stable to https://storage.googleapis.com/agones-chart/
I don't know if I'll need to redirect certain file requests, I've just done the singular path. Let me know how testing goes.

everything under the bucket should be curlable such as
curl https://agones.dev/chart/stable/index.yaml
curl https://agones.dev/chart/stable/agones-0.2.0.tgz

Try now :smile:

We're all set:
helm repo add agones https://agones.dev/chart/stable/
"agones" has been added to your repositories
 helm search agones
NAME            CHART VERSION   APP VERSION     DESCRIPTION
agones/agones   0.4.0           0.4.0           a library for hosting, running and scaling dedi...

Awweessome. So what are next steps? Documentation?

I have updated the documentation but repo doesn't work anymore. I wanted to add info on how to install a specific release.

Do I need to make any additional changes to make it so the repo works?

hum it works on my work station but not at home ... I will investigate


win+words and winkeyup to run instead of a shortcut.

Summary of the new feature/enhancement
just press win and type a word to quick run instead of shortcut and running.

Proposed technical implementation details (optional)
I already have everything and wox,so i need a different quickrun than other common quickrun.

Closing this in favor of https://github.com/microsoft/PowerToys/issues/5207


Add missing changelog entries (since mid 2018)

Please check if the PR https://github.com/zalando/restful-api-guidelines/pull/632 introduces changes which are relevant to the Zally project.

No changes are required.


Removing illegal keyword cascade from dropping user

Hi, thanks for the contribution.
Could you provide an example terraform code where the CASCADE is causing problems? The queries are based on spec available in AWS docs https://docs.aws.amazon.com/redshift/latest/dg/r_ALTER_DEFAULT_PRIVILEGES.html where the cascade is listed as valid.
With a reproducible example, I will be able to contact AWS support to discuss the potential problems.

I just wrote the query in a sql client and I get
SQL Error [500310] [0LP01]: [Amazon](500310) Invalid operation: Cascade behavior is not supported.;
Here is the screenshot:

and sorry for the PR without description, this was actually a mistake, it was supposed to be pointing to my fork. my bad.

My cluster version is 1.0.34272

Hey @vitoravancini, as an update on the issue - I've got a confirmation from AWS support that they were able to reproduce the problem and will be looking deeper whether it is just a documentation error or something else. I will wait with actions on this PR until got more information from them.

Allright, that makes sense. I'm using my for for now, it's working nicely for me.
Thank you for your provider by the way

Hey @vitoravancini, I finally have an update from AWS. AWS Redshift recently released a Role-based Access Control(RBAC) feature, which simplifies the managing of security privileges with Amazon Redshift.
RBAC doesn't support the CASCADE parameter when modifying privileges by using REVOKE and ALTER DEFAULT PRIVILEGES.
It is now also removed from the documentation pages.
Since the CASCADE keyword is also used with groups I will create a new PR with all the necessary changes that will supersede this. Thank you for your contribution.

As noted, this has been superseded by #47.


Don't kill the entire CLI when some import fails

Whenever something was wrong with any of the many services which registered CLI entry points, the entire lymph command line interface stopped working. This got annoying (and will get worse over time as more services are added).
This PR is a proposal for a fix of this situation.

Please remove FailedToLoadCommand, logging the exception is sufficient.


ADBDEV-3747: initial implemention of arenadata_toolkit extension

arenadata_toolkit: initial implementation of extension
This patch provides initial version of arenadata_toolkit extension to simplify versioning of arenadata_toolkit objects (and work with them) at adb-bundle. What was done:

added arenadata_toolkit--1.0 script, which creates toolkit schema and provides functinon to create toolkit tables (extension doesn't create them due to problems with handling AO tables at extension)
added initiall version of arenadata_toolkit.c for further development
changed builing process of gpdb to enable build of this extension

Here are some reminders before you submit the pull request

[ ] Add tests for the change
[ ] Document changes
[ ] Communicate in the mailing list if needed
[ ] Pass make installcheck
[ ] Review a PR in return to support the community

When updating, shouldn't we somehow make sure that we are attaching to the extension exactly the objects and with the exact structure that the extension expects?

Just in case, you should explicitly specify the type for all tables, so that it doesn’t look like a diskquota.

Do we need to save the contents of any extension tables when backing up/restoring?

How about optimizing the columns with the names of the database, schema, tables: instead of the text type, use the name type?

Squashed


Warn only for unreliable zipkin tests

Change zipkin error to log message for flaky tests

This partially addresses #5323

@mandarjog: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-pilot-e2e-envoyv2-v1alpha3.sh
ae9e9fe135d3facd232fab000651046f9b51fd07
link
/test istio-pilot-e2e-envoyv2-v1alpha3

prow/e2e-bookInfoTests-v1alpha3.sh
ae9e9fe135d3facd232fab000651046f9b51fd07
link
/test e2e-bookInfo-envoyv2-v1alpha3

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: mandarjog, nmittler
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

tests/OWNERS [mandarjog]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

PR disables a flakey test. The 2 remaining failures are infra/capacity related.


Login details

When you are using connectUsingPassword how do you know if your credentials are ok or not?

GitHub gitHub = GitHub.connectUsingPassword(...)
if(!gitHub.isCredentialValid()) { /* panic */ }


API: @Connection with @Auth returns null

I have an field level auth on a Connection, that always returns null.
Removing the auth lets me get all data. Using a wrong auth returns me an auth error, but with the correct user i neither get the data nor an error.
The auth on the users field works perfectly.
 While we investigate a fix, can you see if adding an owner: String field to both of your models solves the problem?

We have updated our documentation to include instructions on how to handle this case: https://aws-amplify.github.io/docs/cli-toolchain/graphql#owner-authorization
We are still working on a more intuitive long-term solution but for now you should specify 'create' permissions in your owner auth rule to ensure that an owner is always stored with the record. If you only want certain roles to be able to create entities, but want owners to perform other operations, then you will need to ensure that when those other roles create the entity that they specify an owner for it.


New Version Set "subtitles width" to 100%

I was noticing that I couldn't interact with the video anywhere adjacent to the subtitles. Then realized this setting was set to 100% somehow (on both edge and chromium). This should definitely be defaulted to "auto" since that works flawlessly for me and I assume most users.
100% vs "auto" cant pause the video on 100%

Also opening this issue for if people notice this and come to open an issue. Just click the "x" in subtitle width in "subtitle appearence" and it fixes this specific issue.

Default will be changed back to 'auto' in 1.5.0.


Add prettier / remove prettier from eslint config

This might be more appropriate for 10up-toolkit. I believe we should use prettier for formatting and not part of linting. I am proposing the following changes

Add a prettier config to the root of wp-scaffold. The current config baked into the eslint-config can be used
Add a npm command format to format the code
Add format to run with husky/lint-staged on commit
(future: add generic job configs for gitlab ci/github actions/circleci) that'll run this as a job with --check
remove the duplicate .editorconfig in the theme and the mu-plugin

The reason I am proposing this change is that we can currently only formatting JS files. The formatting should be applied to all files in the repo that match the prettierconfig and the .editorconfig. Currently the repo does not match the editorconfig in a lot of files and that would be resolved by running prettier as it will use the prettier config and the editor config. This will fix the formatting in non JS files such as JSON, MD, etc.

Opened an issue in the 10up-toolkit repo. This would be a big change and can add up to the confusion folks aready have when  dealing with eslint/prettier.

I feel like this could potentially make things less confusing. Prettier can be explained as the tool that only formats your code and Eslint is the tool that tells you when you have a potential code smell. Thanks for opening the toolkit issue. We can close this one


Revert Chrome Refresh 2023 or keep it avoidable

This is a feature request about handling Chrome Refresh 2023 in the future.
Google started to introduce a UI refresh, starting from M115. The change is called "Chrome Refresh 2023". There are many bug reports, UX issues and negative feedback about this change and Google seems to be stubborn enough not to pay attention and force it upon all of its users, like they did with DirectWrite, however this change has already received even more negative feedback. With M125 release, Google is expiring (and later removing) the flags that can disalbe the changes of Chrome Refresh 2023.
Chrome Refresh 2023 is already in latest Thorium (now: 122.0.6261.132) as it's based on M122 but the feature is turned off by default via flags. From a desktop user point of view it's an anti-feature that ruins the classic desktop experience (with mouse and keyboard), wastes vertical real estate, replaces icons to colorless unrecognizable ones. These changes are even visually incompatible with a conventional desktop.
My suggestions are the following, whichever is easier to implement.

Completely remove Chrome Refresh 2023 and keep the old looks.

Keep flags related to Chrome Refresh 2023 so Thorium users can turn them on/off.
Introduce a configuration option under Settings > Appearance to turn on/off the whole (or parts of this) UI change.

Chrome Refresh 2023 flags

#chrome-refresh-2023 Chrome Refresh 2023
#chrome-refresh-2023-ntb Chrome Refresh 2023 New Tab Button
#chrome-refresh-2023-top-chrome-font Chrome Refresh 2023 Top Chrome Font Style
#chrome-webui-refresh-2023 Chrome WebUI Refresh 2023
#customize-chrome-side-panel Customize Chrome Side Panel
This may not be necessary. It's about a bug that if you don't turn this flag to Disabled, Chrome Refresh 2023 flags are all ignored. See: https://issues.chromium.org/issues/330756862

Issues
Issues related to Chrome Refresh 2023, from the Chromium Bug Tracker.

https://issues.chromium.org/issues/335553327
https://issues.chromium.org/issues/332574933
https://issues.chromium.org/issues/332081796
https://issues.chromium.org/issues/330842283
https://issues.chromium.org/issues/330743875
https://issues.chromium.org/issues/330753883
https://issues.chromium.org/issues/330589210
https://issues.chromium.org/issues/330443177
https://issues.chromium.org/issues/330373923
https://issues.chromium.org/issues/329953462
https://issues.chromium.org/issues/327022941
https://issues.chromium.org/issues/41490387
https://issues.chromium.org/issues/40947720

Negative user feedback
Negative feedback from mostly advanced users who suffered a UX degradation because of Chrome Refresh 2023.

https://support.google.com/chrome/thread/269780757
https://support.google.com/chrome/thread/269812926
https://support.google.com/chrome/thread/269774466
https://support.google.com/chrome/thread/269868881
https://support.google.com/chrome/thread/269982965
https://support.google.com/chrome/thread/269956094
https://support.google.com/chrome/thread/269946774
https://support.google.com/chrome/thread/269800018
https://www.reddit.com/r/chrome/comments/1c5jgmu/icons_in_chrome_tabs_are_misplaced/
https://www.reddit.com/r/chrome/comments/1c695ef/how_to_get_tab_favicons_back_to_normal/
https://www.reddit.com/r/chrome/comments/1c5zvnx/disabled_chrome_refresh_2023_and_customize_chrome/
https://www.reddit.com/r/chrome/comments/1c5xeja/broken_icon_placements_after_update_how_to_fix/
https://www.reddit.com/r/chrome/comments/1c6ette/why_are_my_tab_icons_higher_up_than_normal/

@highbaser Already did it!

https://github.com/Alex313031/thorium/issues/644#issuecomment-2073935659

@Alex313031, how did you do it? I ask because, per https://github.com/electron/electron/issues/42262#issuecomment-2544981851, I presume you had to diverge from upstream Chromium?

@RokeJulianLockhart Yes, and in fact I noticed the annoying menus and other CR23 bullcrap that has made its way into Electron. Fixing it would be very easy. Especially the menus. Just four files, a couple of lines.
And well, there is a large patch called Thorium-2024.patch in the //other dir of this repo that restores alot of the pre-cr23 UI.


add error page for failed authentication

create error html page and change store.auth and index.js to accomidate it.


Update OkReplay and use mediator instead of inheritance

Less inheritance - fairy born

This PR was released with 0.22.1


Roadmap for Profiler for Inter Agent Conversations

We want to allow AutoGen developers to analyze the run time performance of multi-agent conversations.
### Roadmap
- [ ] https://github.com/microsoft/autogen/pull/1023
- [ ] Make it easy to profile every agent using garbage collector module
- [ ] Implement a Guidance-based structured labeling utility
- [ ] Add auto-state discovery

@gagb - please review. are these still valid for 0.4? will you be continuing these in 0.2? if not please close.

closing as stale, please reopen if you disagree @gagb


Incorrectly root namespaces on demangled methods

Describe the bug
Some demangled methods have the wrong root namespace. This is most notable on overloaded operators.
To Reproduce
Steps to reproduce the behavior:

Demangle _ZNSolsEPFRSoS_E
See result of >::operator<<(std--basic_ostream<char,std--char_traits<char>>&(*)(std::basic_ostream<char,std::char_traits<char> &)

Expected behavior
_ZNSolsEPFRSoS_E should be demangled to std::basic_ostream<char, std::char_traits<char> >::operator<<(std::basic_ostream<char, std::char_traits<char> >& (*)(std::basic_ostream<char, std::char_traits<char> >&))
Environment (please complete the following information):

OS: Microsoft Windows [Version 10.0.18363.720]
Java Version: 13.0.2
Ghidra Version: 9.2

Additional context
@dragonmacher I know a lot of work was recently done in the ghidra.app.util.demangler package, just making a note of this.

I will investigate.

Fixed in #c1a148298862e3ae2fa418149423ba26311dd11c


Excluding certain photos from your widgets

Describe your idea
When you scan a folder, it will add all the photos in that folder, but what if you didn't want certain photos in the app but not want to outright delete them? Why not have an option to exclude and maybe even delete?
Describe how you think it could work
You go to my widgets, view/edit, then you hold down on one or more photos to select an option to exclude, and maybe even more options! like maybe a delete to outright delete it, and or maybe a share button!
Additional context
No response

Thanks for submitting this idea @Fuoxden, excluding certain photos from the widget can definitely work so I'll consider that for an upcoming update. However, the app doesn't have permission (or the intention) to work as a file manager so permanently deleting the photo from your file system won't be an option.

Okey! That's fine, I didn't expect deleting files to be an option or even intention, I am happy that Excluding photos is being considered :)

Hi @Fuoxden, this feature will be included in the next app release. Thanks for your suggestion, I'll leave this issue open until a version that contains the change is released.

Can't wait! :]

Hi @Fuoxden, this feature is included in version 1.19.0, released today. Thanks for your suggestion!

Wooo! Thank you for considering and Implementing my suggestion!


MAINT: Cython code maintenance

Optimizing the Cython code for size and fixing buglets along the way. Should reduce the installation footprint by at least a few hundred kB and give some marginal speedups.

Everything else in this PR looks good to me.

@richardtsai you may be interested in seeing the fixes to _vq and _hierarchy. The intc vs int32 in particular (see https://github.com/scikit-learn/scikit-learn/wiki/C-integer-types:-the-missing-manual)

@larsmans what do you think about adding your C integer guide in a more visible place like the Numpy user guide? It's a very helpful piece of text.

Okay, in it goes. Thanks @larsmans!

looks good. BTW, it seems that cluster lacks a proper benchmark. Maybe we should have one so that we can track these kinds of optimization more easily.

Indeed. Ideally we'd like to have benchmarks for all important functionality, and we're moving towards requiring benchmarks for major performance improvements (but not for small optimizations like the ones in this PR).


Added includeRootDirectory logic.

Enables zipping of directory contents, i.e. not including root directory in zip.
Equivalent to user cd'ing into directory and zipping.
Functionality left as default, but logic is now there to enable above by either toggling boolean, or modifying other functions to enable toggling per call.
Also, expandDirectoryFilePath function comment changed. It's not a recursive function :)

Thanks @peterboni - this is a great improvement.


[5.3] fix paginate parameter $colunms is not working

$colunms is not passed to the getCountForPagination() function, resulting distinct count can't work.

Tests?

This was already suggested many times before, but in fact the current behaviour is already correct.

sorry I'm not very familiar to this project, could you tell me why is that correct?


update sbt version

sbt 1.4.2 has changes which break IntelliJ integration (https://youtrack.jetbrains.com/issue/SCL-18393)
it's fixed in 1.4.3

thank you!


stdlib: add a build-script option --enable-array-cow-checks to enable compilation of COW checks.

And set this option in various presets for buildbots.
Don't enable the checks by default because when linking against the OS library (which does not support COW checking) it will result in unresolved symbol errors.
So far it was handled by an availability checks against 9999 (which was a hack), but this does not work anymore.
Note, all this is only relevant for assert builds of the stdlib.
rdar://83673798

@swift-ci smoke test

@swift-ci smoke test

Hi @eeckstein -- this broke a couple tests on my Linux box, namely stdlib/String.swift and stdlib/SequenceType.swift.gyb. Is that expected? Should I just add the new REQUIRES flag to those tests?

No, this is not expected. How do those test fail? And which build configuration are you using?

A "unified build" on Linux (Fedora 34 x86-64), i.e. no build-script and swift is built concurrently with llvm/clang/lldb/etc.
SequenceType fails like so:
[ RUN      ] Sequence.elementsEqual/WhereElementIsEquatable
stderr>>> Swift/x86_64-unknown-linux-gnu.swiftinterface:511: Fatal error
stderr>>> CRASHED: SIGILL
the test crashed unexpectedly
[     FAIL ] Sequence.elementsEqual/WhereElementIsEquatable
[ RUN      ] Sequence.elementsEqual/Predicate
stderr>>> Swift/x86_64-unknown-linux-gnu.swiftinterface:511: Fatal error
stderr>>> CRASHED: SIGILL
the test crashed unexpectedly
[     FAIL ] Sequence.elementsEqual/Predicate
[ RUN      ] Sequence.lexicographicallyPrecedes(_:)/WhereElementIsComparable
stderr>>> Swift/x86_64-unknown-linux-gnu.swiftinterface:511: Fatal error
stderr>>> CRASHED: SIGILL
the test crashed unexpectedly
[     FAIL ] Sequence.lexicographicallyPrecedes(_:)/WhereElementIsComparable
[ RUN      ] Sequence.lexicographicallyPrecedes(_:)/Predicate
stderr>>> Swift/x86_64-unknown-linux-gnu.swiftinterface:511: Fatal error
stderr>>> CRASHED: SIGILL
the test crashed unexpectedly
[     FAIL ] Sequence.lexicographicallyPrecedes(_:)/Predicate

And String.swift fails like so:
[ RUN      ] StringTests.UnicodeScalarViewReplace
stderr>>> Swift/Array.swift:1081: Fatal error
stderr>>> Current stack trace:
stderr>>> 0    libswiftCore.so                    0x00007ffff7ed94f0 swift_reportError + 53
stderr>>> 1    libswiftCore.so                    0x00007ffff7f60ea0 _swift_stdlib_reportFatalErrorInFile + 113
stderr>>> 2    libswiftCore.so                    0x00007ffff7c20520 <unavailable> + 2573600
stderr>>> 3    libswiftCore.so                    0x00007ffff7c202c1 <unavailable> + 2572993
stderr>>> 4    libswiftCore.so                    0x00007ffff7c2007e <unavailable> + 2572414
stderr>>> 5    libswiftCore.so                    0x00007ffff7c1fac0 _assertionFailure(_:_:file:line:flags:) + 331
stderr>>> 6    libswiftCore.so                    0x00007ffff7c1fe5c <unavailable> + 2571868
stderr>>> 7    libswiftCore.so                    0x00007ffff7c05525 <unavailable> + 2463013
stderr>>> 8    libswiftCore.so                    0x00007ffff7c08907 <unavailable> + 2476295
stderr>>> 9    libswiftCore.so                    0x00007ffff7da38d0 String.UnicodeScalarView.replaceSubrange<A>(_:with:) + 349
stderr>>> 10   libswiftCore.so                    0x00007ffff7da3c41 <unavailable> + 4160577
stderr>>> 11   libswiftCore.so                    0x00007ffff7da3c11 <unavailable> + 4160529
stderr>>> 12   libswiftStdlibCollectionUnittest.so 0x00007ffff77263e0 checkRangeReplaceable<A, B>(_:_:) + 2440
stderr>>> 13   String                             0x0000555555582d4c <unavailable> + 191820
stderr>>> 14   libswiftStdlibUnittest.so          0x00007ffff763ca33 <unavailable> + 264755
stderr>>> 15   libswiftStdlibUnittest.so          0x00007ffff763be01 <unavailable> + 261633
stderr>>> 16   libswiftStdlibUnittest.so          0x00007ffff7644cc0 runAllTests() + 607
stderr>>> 17   String                             0x0000555555569b2a <unavailable> + 88874
stderr>>> 18   libc.so.6                          0x00007ffff73d2aa0 __libc_start_main + 213
stderr>>> 19   String                             0x000055555556008e <unavailable> + 49294
stderr>>> CRASHED: SIGILL
the test crashed unexpectedly
[     FAIL ] StringTests.UnicodeScalarViewReplace

Both tests don't enable cow checking at runtime (with  %enable-cow-checking in the RUN line). Also, if you are not compiling with --enable-array-cow-checks those checks are disabled at compile time.
I don't have an explanation for those failures.

Weird. Passing -DSWIFT_ENABLE_ARRAY_COW_CHECKS=TRUE to cmake makes the problem go away, so that seems consistent with these two tests actually requiring COW checks.

CC: @gottesmm @edymtt @drexin
This new option belongs in stdlib/CMakeLists.txt as the option impacts the build of the standard library, not the compiler AFAICT.  Could you please move the option?


Alter spacing on elemental editor

Currently the designs indicate some more compact padding for blocks (see below). The styling needs to be updated to more accurately follow the designs
Current:

Designs:

Style guide:

+1 I've update the issue to just include images.

Updated style guide
https://invis.io/EBNLPGJY76G
Complete blocks style guide
Blocks: https://invis.io/T7NLP7WP3K4
Layout blocks: https://invis.io/BNNLP87VQJU

Closed in #315


MTSDK-96 Add Autostart event.

Add AutostartRequest model to send to the Shyrka.
Map Autostart (Presence) event to ConversationAutostart event.

Jenkins had a successful build.


Remove redundant logging

In this PR we remove overly large and redundant logging of .desc files lookup.
This problem is a blocker since Travis cannot build core-java with --debug option in Gradle—the log size is over 4 MB.

@armiol, PTAL.


[ru] Second set of terms for Russian localization

Description
This PR adds a second set of localized Russian terms.
In total, 14 terms were translated from English and 2 Russian-specific terms were added.
Checklist before opening this PR (put x in the checkboxes)

[x] This PR does not contain plagiarism

don’t copy other people’s work unless you are quoting and contributing it to them.

[x] I have signed off on all commits

signing off (ex: git commit -s) is to affirm that commits comply DCO. If you are working locally, you could add an alias to your gitconfig by running git config --global alias.ci "commit -s".

@shurup please review this one as well 😇

Based on our recent Slack discussion, closing this in favour of a bunch of separate PRs with each of them adding one term.


Duplicate data is stored in when transferring from csv records to mongodb

Describe the bug
Duplicate data is stored when transferring from csv records to MongoDB whenever the csv file is updated
To Reproduce

Expected behavior
As I used ```follow_inodes true`` command to avoid log duplication by log rotation. it still is getting the same error
Your Environment

Fluentd or td-agent version: td-agent .11.1`
Operating system: mac os catalina
Kernel version: 10.15.6

Your Configuration
<!-- <source>
  @type tail
  path  /var/log/pmta_logs/pmta.*/acct*
  pos_file /var/log/pmta_logs/pmta.pos
  tag mtag.pmta
  follow_inodes true
  <parse>
    @type csv
    keys type, timeLogged, name , class , subject
    time_key timeLogged
  </parse>
</source>

<match mtag.pmta>
  @type mongo
  database smtp
  collection temp
  user jonas
  password 123456
</match>
 -->

Your Error Log
<!-- Write your **ALL** error log here -->

Additional context

follow_inode is supported since v1.12.0: https://github.com/fluent/fluentd/blob/master/CHANGELOG.md#release-v1120---20210105
Please upgrade your fluentd to latest.

follow_inode is supported since v1.12.0: https://github.com/fluent/fluentd/blob/master/CHANGELOG.md#release-v1120---20210105
Please upgrade your fluentd to latest version.
i updated my td-agent with command yum update td-agent but version 1.11.5 got installed instead of 1.12


Swipe Gesture BUG

I use the menú and works perfectly but if i try add gesture swipe in a subview in the center ViewController (contentAreaController) this gesture doesn´t work, but if I create a view controller without this menu works correctly.

+1 for this, trying to implement a swipe to delete feature on a UITableView and the menu control is blocking the swipe, will only come up with delete option 1 in every 20 or so swipes, is there any way around this yet? Many thanks!

I'll try to look into this issue this week.

@jdehlin - Hi Jack, did you manage to look into this yet?
Many thanks.
Conrad

Sorry for the delay. Looked at it for a bit and no simple solution popped out. Investigating it some more.

I had similar issue with my UITableView (a feature for reordering UITableView rows stopped working). My workaround is to disable SidebarController temporarily in this specific subview (property SidebarController.Disabled). This works fine in my case, because in my design the menu should be available only from the app home page anyway. I guess the issue must be related to a gesture recognizer allowing to drag the menu in view from the edge of the screen. It would be nice to have a property for disabling this feature. In my app I prefer having only a button for showing/hiding the menu. It is also quite alarming if the feature has this kind of side effects to the actual app.

Closing as resolved by #60


New GTK theme - Albatross from Shimmer Project

http://shimmerproject.org/our-projects/albatross/

Travis built, thanks


git clone git://github.com/fyookball/electrum.git creates electrum directory

in the README's Getting Started, this command: git clone git://github.com/fyookball/electrum.git
creates electrum directory
should be: git clone git://github.com/fyookball/electrum.git electronCash
to avoid confusion

renaming the repo isn't something i was planning on doing as it referenced in build scripts and other places potentially. thank you for the suggestion though.


Delete: Missing functionality - FOR INVESTIGATION, GROOMING AND DECOMPOSITION

At the moment JDI Dark cannot add ContentType depend on request type automatically. AS WA specified @ContentType was added in service layer for the request (deleteSupportsStringBody test)
There is no possibility to set request params in the request, only via queryParams (bodyHamcrestMatcherWithoutKey test)
no dark methods to check body – only via assertThat() and ValidatableResponse RestAssured methods
Common: RestResponse doRequest do not throw full stack trace

Contact w/ @BelAn97 for implementation details
Expected:

Implement proposed functionality that eliminates up mentioned disadvantages
Cover with tests
Add an article into documentation

done by Yulia


ElixirLS v0.17.1 in VSCode significantly changes token scopes, affecting syntax highlighting

Environment

Elixir & Erlang versions (elixir --version): Elixir v1.14.5, Erlang/OTP 25
Elixir Language Server version: v0.17.1
Operating system: macOS Ventura 13.2.1
Editor or IDE name (e.g. Emacs/VSCode): VSCode
Editor Plugin/LSP Client name and version: ElixirLS v0.17.1

Current behavior
The latest release of ElixirLS for VSCode seems to remove a number of token scopes for Elixir, which in turn significantly changes the appearance of multiple syntax highlighting themes. The example below shows the following cases:

Differentiation between module definition + module alias usage has disappeared
Identification of module attributes as distinct entities has disappeared

I am the author of the Dracula At Night VSCode theme, and the examples below use this theme. However, I've verified that this issue affects other popular themes as well (e.g. Cobalt2).

<= v0.17.0
v0.17.1

Expected behavior
Consistent token scopes and syntax highlighting across versions.

Yes, there has been some changes aiming to correct issues in the grammar

Differentiation between module definition + module alias usage has disappeared

Should there be difference? In elixir AST both are the same.
note {:__aliases__, [line: _], [:Other, :Asdf]} in
iex(4)> Code.string_to_quoted("""
...(4)> defmodule Other.Asdf do
...(4)>   def a do
...(4)>     Other.Asdf.asd()
...(4)>   end
...(4)> end
...(4)> """)
{:ok,
 {:defmodule, [line: 1],
  [
    {:__aliases__, [line: 1], [:Other, :Asdf]},
    [
      do: {:def, [line: 2],
       [
         {:a, [line: 2], nil},
         [
           do: {{:., [line: 3],
             [{:__aliases__, [line: 3], [:Other, :Asdf]}, :asd]}, [line: 3], []}
         ]
       ]}
    ]
  ]}}

anyway, the difference is still there
usage in module is marked with scope meta.module.elixir

other usages does not have that scope

Identification of module attributes as distinct entities has disappeared

Do you mean that the scope has changed from variable.other.readwrite.module.elixir to more standard variable.other.constant.elixir? There were no entity.name. scope on module attributes.

Expected behavior Consistent token scopes and syntax highlighting across versions.

I cannot evolve the grammar without making some changes

Thanks for the fast response @lukaszsamson!
Also, thanks for clarifying both of the items I highlighted. The decision to highlight module alias definitions vs usages differently is definitely a choice I've made with my theme, however one that is a common across other themes. Regarding the module attribute change, I seem to have misread the change in scopes and see that there's still a distinction there I can use to highlight those attributes as desired.
Lastly, while I understand the desire to make the grammar here more correct, to me these updates feel like a breaking change that went unannounced in a patch version release. At the very least it would be helpful in the future if such changes were documented and part of a minor (not patch) release.
In addition, I would advocate for considering significant changes in the token identification grammar as a breaking change in the future. There are thousands of users of this VSCode plugin who are suddenly experiencing a drastic change in appearance of Elixir code across multiple themes as a result of this update. And for those who aren't theme maintainers they may be searching in confusion to understand why this happened (i.e. is this the theme they use? is it their VSCode version? is it the LS plugin?).

The question now is if the current rules allow you to make your theme work as you wish or do you need some changes? Which areas could be improved?

Lastly, while I understand the desire to make the grammar here more correct, to me these updates feel like a breaking change that went unannounced in a patch version release. At the very least it would be helpful in the future if such changes were documented and part of a minor (not patch) release.

I understand that it can be frustrating, especially given that some of the changes was unintended (https://github.com/elixir-lsp/vscode-elixir-ls/issues/382). Grammar changes was mentioned in v0.17.0 and v0.17.1 release notes
https://github.com/elixir-lsp/vscode-elixir-ls/blob/master/CHANGELOG.md. Besides 0.x in SemVer does not guarantee no breaking changes.

In addition, I would advocate for considering significant changes in the token identification grammar as a breaking change in the future

Thanks. I now know that more cere is needed here. I'm afraid there will be more changes in the future. Elixir is notoriously difficult to parse with textmate grammars and LSP symantic tokens seem to be the solution


Elli mit shelly Pro3EM charge currents und charge voltages outdated

Describe the bug
seit dem letzten Update auf 131.8 (vorher 131.7) funktioniert evcc nur noch den Fehlermeldungen: Elli mit shellyPro3EM charge currents: outdated und charge voltages: outdated. Es wird geladen, aber keine Leistungen mehr angezeigt/gespeichert. Der Umbau auf Shelly Pro 3EM lief nun schon mindestens 4 Versionen.
Steps to reproduce

mit 131.7 läuft evcc
mit 131.8 tritt der Fehler auf

...
Configuration details
# open evcc at http://evcc.local:7070
network:
  schema: http
  host: evcc.local # .local suffix announces the hostname on MDNS
  port: 7070

log: error
levels:
  cache: error

# unique installation id
plant: *****

interval: 10s # control cycle interval

meters:
- type: template
  template: tasmota
  usage: grid
  host: <IP_ADDRESS>
  user: *****
  password: *****
  name: my_grid
- type: template
  template: sonnenbatterie
  usage: pv
  host: <IP_ADDRESS>
  port: 8080
  name: my_pv
- type: template
  template: sonnenbatterie
  usage: battery
  host: <IP_ADDRESS>
  port: 8080
  name: my_battery
  token: *****
  capacity: 11 # Akkukapazität in kWh
  chargepower: 7000 # Ladeleistung für Netzladen in W (optional)
- type: template
  name: Mobilladegerat_Pwr
  template: shelly-1pm
  user: *****
  password: *****
  usage: charge
  host: <IP_ADDRESS>
- name: wallbox1
  type: custom
  power:
      source: mqtt
      topic: shellypro3em-fce8c0d84070/status/em:0
      jq: .total_act_power
  currents:
    - source: mqtt
      topic: shellypro3em-fce8c0d84070/status/em:0
      jq: .c_current
      timeout: 60s
    - source: mqtt
      topic: shellypro3em-fce8c0d84070/status/em:0
      jq: .b_current
      timeout: 60s
    - source: mqtt
      topic: shellypro3em-fce8c0d84070/status/em:0
      jq: .a_current
      timeout: 60s
  powers:
    - source: mqtt
      topic: shellypro3em-fce8c0d84070/status/em:0
      jq: .c_act_power
      timeout: 60s
    - source: mqtt
      topic: shellypro3em-fce8c0d84070/status/em:0
      jq: .b_act_power
      timeout: 60s
    - source: mqtt
      topic: shellypro3em-fce8c0d84070/status/em:0
      jq: .a_act_power
      timeout: 60s
  voltages:
    - source: mqtt
      topic: shellypro3em-fce8c0d84070/status/em:0
      jq: .c_voltage
      timeout: 60s
    - source: mqtt
      topic: shellypro3em-fce8c0d84070/status/em:0
      jq: .b_voltage
      timeout: 60s
    - source: mqtt
      topic: shellypro3em-fce8c0d84070/status/em:0
      jq: .a_voltage
      timeout: 60s

chargers:
- name: wallbox
  type: template
  template: ellipro
  ski: 136C 5261 EDEF B7E6 9D4B 8472 F4A5 64B9 4852 9F20
  ip: <IP_ADDRESS>

- name: Mobilladegeraet
  type: template
  template: shelly
  host: <IP_ADDRESS>
  standbypower: 5
  user: *****
  password: *****

vehicles:
- type: template
  template: id
  title: Id5
  user: *****
  password: *****
  vin: *****
  capacity: 77
  timeout: 10s
  name: ev1

loadpoints:
- title: Elli
  charger: wallbox
  vehicle: ev1 # Referenz auf Standardfahrzeug
  meter: wallbox1
  mode: pv

- title: mobil
  charger: Mobilladegeraet
  meter: Mobilladegerat_Pwr
  mode: off

mqtt:
  broker: <IP_ADDRESS>:1887 #Instanz mqtt 1 im iobroker Elli Wallbox und shell                                                                                y Ladeblock
  topic: evcc
  clientid: foo
  user: *****
  password: *****

tariffs:
  currency: EUR
  grid:
    type: fixed
    price: 0.38

  feedin:
    type: fixed
    price: 0.082

site:
  - title: **********
    meters:
      grid: my_grid # eigene Zählerwerte
      pv: my_pv
      battery: my_battery
    residualPower: 100

eebus:
  certificate:
      private: |
          -----BEGIN EC PRIVATE KEY-----
          MHcCAQEEIL0mhWia5hk/EDBVPMXzsK+G2ScD58mnFybVMre1i3WCoAoGCCqGSM49
          AwEHoUQDQgAEb0t9jj7FWNin99dLvJfrqtbryKXcqbHML0erDTZ1uIAIMhrpvtI8
          eeLDq9JIMbQqCvMs1Hpzp9do6qxEJrH8GQ==
          -----END EC PRIVATE KEY-----
      public: |
          -----BEGIN CERTIFICATE-----
          MIIBhzCCAS2gAwIBAgIBATAKBggqhkjOPQQDAjAzMQswCQYDVQQGEwJERTENMAsG
          A1UEChMERVZDQzEVMBMGA1UEAwwMRVZDQ19IRU1TXzAxMB4XDTIyMTAzMTA5MzQx
          MFoXDTMyMTAyODA5MzQxMFowMzELMAkGA1UEBhMCREUxDTALBgNVBAoTBEVWQ0Mx
          FTATBgNVBAMMDEVWQ0NfSEVNU18wMTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IA
          BG9LfY4+xVjYp/fXS7yX66rW68il3KmxzC9Hqw02dbiACDIa6b7SPHniw6vSSDG0
          KgrzLNR6c6fXaOqsRCax/BmjMjAwMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYE
          FCNlU4HENAR0BV4oWM6B8o8QrM9UMAoGCCqGSM49BAMCA0gAMEUCIQDE9HHTldX/
          N2CSc9SxXT0qsUKYehin6OiebycLNUEfkwIgQIhWCZH1CaNmCLK0ClxEqzrfx2Xo
          ougJGx5M07FNtqE=
          -----END CERTIFICATE-----

</details>
Version: `0.131.7`

Log details
[site  ] DEBUG 2024/12/02 19:54:21 battery soc: 30%
[site  ] DEBUG 2024/12/02 19:54:21 battery power: -1W
[site  ] DEBUG 2024/12/02 19:54:21 grid power: 732W
[site  ] DEBUG 2024/12/02 19:54:21 battery has priority at soc 30% (< 100%)
[site  ] DEBUG 2024/12/02 19:54:21 site power: 832W
[lp-2  ] DEBUG 2024/12/02 19:54:21 charge total import: 0.083kWh
[lp-2  ] DEBUG 2024/12/02 19:54:21 charger status: A
[site  ] DEBUG 2024/12/02 19:54:30 ----
[lp-1  ] DEBUG 2024/12/02 19:54:30 charge power: 3W
[lp-2  ] DEBUG 2024/12/02 19:54:30 charge power: 0W
[lp-1  ] ERROR 2024/12/02 19:54:30 charge currents: outdated
[my_pv ] TRACE 2024/12/02 19:54:30 GET http://<IP_ADDRESS>:8080/api/v1/status
[my_battery] TRACE 2024/12/02 19:54:30 GET http://<IP_ADDRESS>:8080/api/v1/status
[my_battery] TRACE 2024/12/02 19:54:30 {"BackupBuffer":"30","BatteryCharging":false,"BatteryDischarging":false,"Consumption_Avg":711,"Consumption_W":719,"Fac":50.02199935913086,"FlowConsumptionBattery":false,"FlowConsumptionGrid":true,"FlowConsumptionProduction":true,"FlowGridBattery":false,"FlowProductionBattery":false,"FlowProductionGrid":false,"GridFeedIn_W":-715,"IsSystemInstalled":1,"OperatingMode":"2","Pac_total_W":0,"Production_W":4,"RSOC":36,"RemainingCapacity_Wh":9112,"SystemStatus":"OnGrid","Timestamp":"2024-12-02 19:54:30","USOC":30,"Uac":231,"Ubat":207,"dischargeNotAllowed":false,"generator_autostart":false,"NVM_REINIT_STATUS":0}
[my_battery] TRACE 2024/12/02 19:54:30 GET http://<IP_ADDRESS>:8080/api/v1/status
[my_pv ] TRACE 2024/12/02 19:54:30 {"BackupBuffer":"30","BatteryCharging":false,"BatteryDischarging":false,"Consumption_Avg":711,"Consumption_W":719,"Fac":50.02199935913086,"FlowConsumptionBattery":false,"FlowConsumptionGrid":true,"FlowConsumptionProduction":true,"FlowGridBattery":false,"FlowProductionBattery":false,"FlowProductionGrid":false,"GridFeedIn_W":-715,"IsSystemInstalled":1,"OperatingMode":"2","Pac_total_W":0,"Production_W":4,"RSOC":36,"RemainingCapacity_Wh":9112,"SystemStatus":"OnGrid","Timestamp":"2024-12-02 19:54:30","USOC":30,"Uac":231,"Ubat":207,"dischargeNotAllowed":false,"generator_autostart":false,"NVM_REINIT_STATUS":0}
[site  ] DEBUG 2024/12/02 19:54:30 pv power: 4W
[site  ] DEBUG 2024/12/02 19:54:30 grid power: 766W
[my_battery] TRACE 2024/12/02 19:54:30 {"BackupBuffer":"30","BatteryCharging":false,"BatteryDischarging":false,"Consumption_Avg":711,"Consumption_W":719,"Fac":50.02199935913086,"FlowConsumptionBattery":false,"FlowConsumptionGrid":true,"FlowConsumptionProduction":true,"FlowGridBattery":false,"FlowProductionBattery":false,"FlowProductionGrid":false,"GridFeedIn_W":-715,"IsSystemInstalled":1,"OperatingMode":"2","Pac_total_W":0,"Production_W":4,"RSOC":36,"RemainingCapacity_Wh":9112,"SystemStatus":"OnGrid","Timestamp":"2024-12-02 19:54:30","USOC":30,"Uac":231,"Ubat":207,"dischargeNotAllowed":false,"generator_autostart":false,"NVM_REINIT_STATUS":0}
[site  ] DEBUG 2024/12/02 19:54:30 battery soc: 30%
[site  ] DEBUG 2024/12/02 19:54:30 battery power: 0W
[site  ] DEBUG 2024/12/02 19:54:30 site power: 866W
[lp-1  ] ERROR 2024/12/02 19:54:30 charge voltages: outdated
[lp-1  ] DEBUG 2024/12/02 19:54:30 charger status: A
[site  ] DEBUG 2024/12/02 19:54:40 ----
[lp-1  ] DEBUG 2024/12/02 19:54:40 charge power: 3W
[lp-2  ] DEBUG 2024/12/02 19:54:40 charge power: 0W
[lp-1  ] ERROR 2024/12/02 19:54:40 charge currents: outdated
[my_pv ] TRACE 2024/12/02 19:54:40 GET http://<IP_ADDRESS>:8080/api/v1/status
[my_battery] TRACE 2024/12/02 19:54:40 GET http://<IP_ADDRESS>:8080/api/v1/status
[site  ] DEBUG 2024/12/02 19:54:40 grid power: 740W
[my_battery] TRACE 2024/12/02 19:54:40 {"BackupBuffer":"30","BatteryCharging":false,"BatteryDischarging":false,"Consumption_Avg":709,"Consumption_W":692,"Fac":50.01300048828125,"FlowConsumptionBattery":false,"FlowConsumptionGrid":true,"FlowConsumptionProduction":true,"FlowGridBattery":false,"FlowProductionBattery":false,"FlowProductionGrid":false,"GridFeedIn_W":-687,"IsSystemInstalled":1,"OperatingMode":"2","Pac_total_W":0,"Production_W":5,"RSOC":36,"RemainingCapacity_Wh":9112,"SystemStatus":"OnGrid","Timestamp":"2024-12-02 19:54:40","USOC":30,"Uac":231,"Ubat":207,"dischargeNotAllowed":false,"generator_autostart":false,"NVM_REINIT_STATUS":0}
[my_battery] TRACE 2024/12/02 19:54:40 GET http://<IP_ADDRESS>:8080/api/v1/status
[my_pv ] TRACE 2024/12/02 19:54:40 {"BackupBuffer":"30","BatteryCharging":false,"BatteryDischarging":false,"Consumption_Avg":709,"Consumption_W":692,"Fac":50.01300048828125,"FlowConsumptionBattery":false,"FlowConsumptionGrid":true,"FlowConsumptionProduction":true,"FlowGridBattery":false,"FlowProductionBattery":false,"FlowProductionGrid":false,"GridFeedIn_W":-687,"IsSystemInstalled":1,"OperatingMode":"2","Pac_total_W":0,"Production_W":5,"RSOC":36,"RemainingCapacity_Wh":9112,"SystemStatus":"OnGrid","Timestamp":"2024-12-02 19:54:40","USOC":30,"Uac":231,"Ubat":207,"dischargeNotAllowed":false,"generator_autostart":false,"NVM_REINIT_STATUS":0}
[site  ] DEBUG 2024/12/02 19:54:40 pv power: 5W
[my_battery] TRACE 2024/12/02 19:54:41 {"BackupBuffer":"30","BatteryCharging":false,"BatteryDischarging":false,"Consumption_Avg":709,"Consumption_W":692,"Fac":50.01300048828125,"FlowConsumptionBattery":false,"FlowConsumptionGrid":true,"FlowConsumptionProduction":true,"FlowGridBattery":false,"FlowProductionBattery":false,"FlowProductionGrid":false,"GridFeedIn_W":-687,"IsSystemInstalled":1,"OperatingMode":"2","Pac_total_W":0,"Production_W":5,"RSOC":36,"RemainingCapacity_Wh":9112,"SystemStatus":"OnGrid","Timestamp":"2024-12-02 19:54:40","USOC":30,"Uac":231,"Ubat":207,"dischargeNotAllowed":false,"generator_autostart":false,"NVM_REINIT_STATUS":0}
[site  ] DEBUG 2024/12/02 19:54:41 battery soc: 30%
[site  ] DEBUG 2024/12/02 19:54:41 battery power: 0W
[site  ] DEBUG 2024/12/02 19:54:41 site power: 840W
[lp-2  ] DEBUG 2024/12/02 19:54:41 charge total import: 0.083kWh
[lp-2  ] DEBUG 2024/12/02 19:54:41 charger status: A
[site  ] DEBUG 2024/12/02 19:54:50 ----
[lp-1  ] DEBUG 2024/12/02 19:54:50 charge power: 3W
[lp-2  ] DEBUG 2024/12/02 19:54:50 charge power: 0W
[lp-1  ] ERROR 2024/12/02 19:54:50 charge currents: outdated
[my_battery] TRACE 2024/12/02 19:54:50 GET http://<IP_ADDRESS>:8080/api/v1/status
[my_pv ] TRACE 2024/12/02 19:54:50 GET http://<IP_ADDRESS>:8080/api/v1/status
[my_pv ] TRACE 2024/12/02 19:54:50 {"BackupBuffer":"30","BatteryCharging":false,"BatteryDischarging":false,"Consumption_Avg":707,"Consumption_W":701,"Fac":50.018001556396484,"FlowConsumptionBattery":false,"FlowConsumptionGrid":true,"FlowConsumptionProduction":true,"FlowGridBattery":false,"FlowProductionBattery":false,"FlowProductionGrid":false,"GridFeedIn_W":-685,"IsSystemInstalled":1,"OperatingMode":"2","Pac_total_W":0,"Production_W":17,"RSOC":36,"RemainingCapacity_Wh":9112,"SystemStatus":"OnGrid","Timestamp":"2024-12-02 19:54:50","USOC":30,"Uac":231,"Ubat":207,"dischargeNotAllowed":false,"generator_autostart":false,"NVM_REINIT_STATUS":0}
[site  ] DEBUG 2024/12/02 19:54:50 pv power: 17W
[my_battery] TRACE 2024/12/02 19:54:50 {"BackupBuffer":"30","BatteryCharging":false,"BatteryDischarging":false,"Consumption_Avg":707,"Consumption_W":701,"Fac":50.018001556396484,"FlowConsumptionBattery":false,"FlowConsumptionGrid":true,"FlowConsumptionProduction":true,"FlowGridBattery":false,"FlowProductionBattery":false,"FlowProductionGrid":false,"GridFeedIn_W":-685,"IsSystemInstalled":1,"OperatingMode":"2","Pac_total_W":0,"Production_W":17,"RSOC":36,"RemainingCapacity_Wh":9112,"SystemStatus":"OnGrid","Timestamp":"2024-12-02 19:54:50","USOC":30,"Uac":231,"Ubat":207,"dischargeNotAllowed":false,"generator_autostart":false,"NVM_REINIT_STATUS":0}
[site  ] DEBUG 2024/12/02 19:54:50 grid power: 749W
[my_battery] TRACE 2024/12/02 19:54:50 GET http://<IP_ADDRESS>:8080/api/v1/status
[my_battery] TRACE 2024/12/02 19:54:50 {"BackupBuffer":"30","BatteryCharging":false,"BatteryDischarging":false,"Consumption_Avg":707,"Consumption_W":701,"Fac":50.018001556396484,"FlowConsumptionBattery":false,"FlowConsumptionGrid":true,"FlowConsumptionProduction":true,"FlowGridBattery":false,"FlowProductionBattery":false,"FlowProductionGrid":false,"GridFeedIn_W":-685,"IsSystemInstalled":1,"OperatingMode":"2","Pac_total_W":0,"Production_W":17,"RSOC":36,"RemainingCapacity_Wh":9112,"SystemStatus":"OnGrid","Timestamp":"2024-12-02 19:54:50","USOC":30,"Uac":231,"Ubat":207,"dischargeNotAllowed":false,"generator_autostart":false,"NVM_REINIT_STATUS":0}
[site  ] DEBUG 2024/12/02 19:54:50 battery soc: 30%
[site  ] DEBUG 2024/12/02 19:54:50 battery power: 0W
[site  ] DEBUG 2024/12/02 19:54:50 site power: 849W
[lp-1  ] ERROR 2024/12/02 19:54:50 charge voltages: outdated
[lp-1  ] DEBUG 2024/12/02 19:54:50 charger status: A

What type of operating system are you running?


How to clear sketch-module-web-view's localStorage

Hello!
I'm having trouble figuring out how to clear the localStorage with use of my sketch-module-web-view. I was wondering if anyone was able to successfully clear their cache.  Not sure if I am missing something but I was unable to find any helpful methods to clear the cache. Any help would be greatly appreciated! Thanks ahead of time!

you mean clearing when you don't have a webview opened? I don't think you can. If you do have one open, you can clear it with localStorage.clear()

either when it is open or closed, just anyway to clear it in general, but I was able to clear the cache manually with a separate application that I had developed previously to simply clear local storage.


Handle relative urls for user

set asset to '/' by default
config('app.asset_url')

Prevent dev to do the following for each route
route('home', absolute: false)

Implementation problem:

laravel export crawler detect by default APP_URL as internal and skip all other urls, so if we put different base host the site is not crawled

Possible solution:

set APP_URL to the final website url & start the crawling in from the local server url (127.0.1:8000) (the export LocalClient uses laravel kernel for each request not a real HTTP requesst)


[FEATURE] show call logs in minutes and MB rather than seconds and bytes

Is your feature request related to a problem? Please describe.
The current call logs output shows the calls in seconds and bytes transferred. (line 733 in android_handler.py). This is okay for a very short call of a few seconds, but for anything over a minute the numbers become quite large for readability ("lasted for 2467 seconds with 14943115 bytes transferred")
Describe the solution you'd like
Show the calls in minutes and megabytes.
e.g. "lasted for 41:07 minutes with 14.250 MB transferred"

Implemented in 8fcd50d & 8ffa8cf.

Released in 0.10.5.


Cannot install any packages

Describe the bug
"winget failed to install"
To Reproduce
Try install package
Expected behavior
Screenshots

Additional context

Same problem here- Fresh Install Windows 11 Pro

Same here. This issue needs a lot more attention

Same problem here.
Though it was due to my recent "installation" of AtlasOs (https://atlasos.net/) over my current win11...
Winget was reinstalled with winutil previously.
if you need more debug info please let me know. :-)

this should now work on fresh win11 installs with broken winget commit f39deab55595aafb73665ea5510ddda569b036a7

Unfortunately, it still doesn't work.
Checking if Winget is Installed...
Winget v1.6.3482

Winget up-to-date
Winget Already Installed
===========================================
--      Winget failed to install        ---
===========================================

still doesn't work., Same problem here- Fresh Install Windows 11 Pro

Even github is weird, I tried to clone the repo based on the main branch and it states that the version is from 2024.02.03

oof i'm not alone, i forgot to mention it doesn't work on my fresh install of win 11 with latest updates AND Win 10 latest updates too. On my Win10 it worked just days ago and then errors for both.

I also had this problem on two successive installs of a Win11 23H2 ISO install. The handy "install winget" button in winutil resolved it, but obviously this is something that should work out of the box.

Same problems, tried to reinstall winget in config but it did not work. Can't install packages.

Same problems here as well on windows 11

Edition	Windows 11 Home
Version	23H2
Installed on	2/7/2024
OS build	22631.3085
Experience  Windows Feature Experience Pack 1000.22684.1000.0

ISO was cleaned using this tools MicroWin utility
Also same issue using the "install selected" button, but no issue with the "upgrade all" and "get installed" functions. I have tried to use the reinstall winget option and it re installs winget as shown in the attached log but unlike some people this did not fix the issue.
choco.summary.log
chocolatey.log

 Same problems, tried to reinstall winget in config but it did not work. Can't install packages.

Have you tested it after seeing this error? It looks like chocolatey worked but winget could be throwing a bad error. Winget is working fine on my system but I don't remember seeing this error.

reverted to past patch since people were having issues with winget commit c842584cfe2b2368bff57dba281d6715793a682f

reverted to past patch since people were having issues with winget commit c842584cfe2b2368bff57dba281d6715793a682f

Thanks Chris

I fixed my problem :) I deactivated Windows defender real-time protection in the security dashboard and it did the trick. :P

Not working yet.

Not working yet.

What's not working yet? Be specific.

Works for me

Not working yet.

What's not working yet? Be specific.
Same issue detailed by many people in this tread. Chris posted he had reverted to a patch, and I wrote: Not working yet.
The Scrips keep failing with these messages:

Winget up-to-date
Winget Already Installed
-- Winget failed to install ---
Chocolatey v2.2.2
Enabled allowGlobalConfirmation
Checking if Winget is Installed...
Winget not detected
Running Alternative Installer and Direct Installing
Winget Installed

Not working yet.

What's not working yet? Be specific.
Same issue detailed by many people in this tread. Chris posted he had reverted to a patch, and I wrote: Not working yet.
The Scrips keep failing with these messages:

Winget up-to-date
Winget Already Installed
-- Winget failed to install ---
Chocolatey v2.2.2 Enabled allowGlobalConfirmation Checking if Winget is Installed... Winget not detected Running Alternative Installer and Direct Installing Winget Installed

This is actually a different problem. Clicking Reinstall Winget from Config should get you going.

Not working yet.

What's not working yet? Be specific.
Same issue detailed by many people in this tread. Chris posted he had reverted to a patch, and I wrote: Not working yet.
The Scrips keep failing with these messages:

Winget up-to-date
Winget Already Installed
-- Winget failed to install ---
Chocolatey v2.2.2 Enabled allowGlobalConfirmation Checking if Winget is Installed... Winget not detected Running Alternative Installer and Direct Installing Winget Installed

This is actually a different problem. Clicking Reinstall Winget from Config should get you going.

Before posting this issue, I had reinstalled Winget, even went back to a clean windows setup, but the script keeps failing. Now I am testing it on a different PC but no luck.

Not working yet.

What's not working yet? Be specific.
Same issue detailed by many people in this tread. Chris posted he had reverted to a patch, and I wrote: Not working yet.
The Scrips keep failing with these messages:

Winget up-to-date
Winget Already Installed
-- Winget failed to install ---
Chocolatey v2.2.2 Enabled allowGlobalConfirmation Checking if Winget is Installed... Winget not detected Running Alternative Installer and Direct Installing Winget Installed

This is actually a different problem. Clicking Reinstall Winget from Config should get you going.

I already had done that before posti g this issue. I had tried many scenaries but no luck. Now I am testing it on a fresh windows setup and it shows same errors.

I've found that the script works ok on computers where is had been run before last week. I am running it without problem in my personal laptop where it was setup long time ago. So, it seems  the issue is happening only on fresh installs.

thx a lot chris, that fixed it

I am still having issues:
"The current system configuration does not support the installation of this package.", is the error message I keep on getting.

Tidal is displayed, but am having issues with Chrome and Teams, too.
I am using a fresh install of Windows 11 23H2

I had this issue since yesterday and came across this thread. I have tried a couple of times using the WinGet Reinstall from the Config tab.
I just now tried using WinGet Reinstall again, but am still receiving the same error as above.
What can I do to resolve this?

Ok it's working again for now on win10.

 Same problems, tried to reinstall winget in config but it did not work. Can't install packages.

Have you tested it after seeing this error? It looks like chocolatey worked but winget could be throwing a bad error. Winget is working fine on my system but I don't remember seeing this error.

yes and it worked fine


Spacing on the text below

Thanks Joleaf for the previous answer, also needed to ask how do I make spacing for the text below as I tried to space after an email text but it could not be shown.
Example:
Event
Hi (name), how are you, Best Regards
Expected
Hi (name),
How are you
Best Regards,

Hello so is this doable?

The Mail To API does not support HTML tags, just simple "newline" characters. Unfortunately, only one line is then rendered.
A future version may be based on a library that supports multiple new lines.


Added ThresholdBar chart

ThresholdBar chart added. Colours bars based on threshold value.

ThresholdBar chart added. Colours bars based on threshold value.

This can be achieved more simply via, https://github.com/jordibruin/Swift-Charts-Examples/pull/50


Add option to access Bluetooth addresses on macOS

This doesn't seem to work. I opened a discussion in https://github.com/hbldh/bleak/discussions/1260 to figure out on which macOS versions it does work.

It does work on my macOS 13.2.1 system, it seems I botched my Python environment with the OS upgrades. Merging this, but it's still unclear on which macOS versions this would work.


Fix ' characters written to config.mts

probably best to have a 	generic make_safe_for_config function which escapes this stuff...

seems to be working now.


Build fails, Debian ARM

Hello,
I am trying to build sparsebundlefs on Debian ARM.  When I initiate make I first get an error in which I am suggested to the following flag to my compile flags: -D_FILE_OFFSET_BITS=64.  Without understanding what this really means, I went ahead and added it.
The progress seems slightly better, however the compile still fails with the following;
g++ sparsebundlefs.cpp -o sparsebundlefs -Wall -O2 -g -D_FILE_OFFSET_BITS=64 -march=native  -Wl,-rpath= -DFUSE_USE_VERSION=26
sparsebundlefs.cpp: In function ‘int sparsebundle_read_buf_process_band(const char*, size_t, off_t, void*)’:
sparsebundlefs.cpp:251:110: warning: narrowing conversion of ‘read’ from ‘ssize_t {aka int}’ to ‘size_t {aka unsigned int}’ inside { } is ill-formed in C++11 [-Wnarrowing]
         fuse_buf buffer = { read, fuse_buf_flags(FUSE_BUF_IS_FD | FUSE_BUF_FD_SEEK), 0, band_file_fd, offset };
                                                                                ^
sparsebundlefs.cpp: In function ‘int sparsebundle_read_buf(const char*, fuse_bufvec**, size_t, off_t, fuse_file_info*)’:
sparsebundlefs.cpp:297:46: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘rlim_t {aka long long unsigned int}’ inside { } is ill-formed in C++11 [-Wnarrowing]
     static struct rlimit fd_limit = { -1, -1 };
                                              ^
sparsebundlefs.cpp:297:46: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘rlim_t {aka long long unsigned int}’ inside { } is ill-formed in C++11 [-Wnarrowing]
/tmp/ccqj0Wii.o: In function `sparsebundle_open':
/volume1/backup/torarnv-sparsebundlefs-81b080c/sparsebundlefs.cpp:92: undefined reference to `fuse_get_context'
/volume1/backup/torarnv-sparsebundlefs-81b080c/sparsebundlefs.cpp:94: undefined reference to `fuse_get_context'
/volume1/backup/torarnv-sparsebundlefs-81b080c/sparsebundlefs.cpp:94: undefined reference to `fuse_get_context'
/tmp/ccqj0Wii.o: In function `sparsebundle_getattr':
/volume1/backup/torarnv-sparsebundlefs-81b080c/sparsebundlefs.cpp:48: undefined reference to `fuse_get_context'
/volume1/backup/torarnv-sparsebundlefs-81b080c/sparsebundlefs.cpp:57: undefined reference to `fuse_get_context'
/tmp/ccqj0Wii.o:/volume1/backup/torarnv-sparsebundlefs-81b080c/sparsebundlefs.cpp:111: more undefined references to `fuse_get_context' follow
/tmp/ccqj0Wii.o: In function `main':
/volume1/backup/torarnv-sparsebundlefs-81b080c/sparsebundlefs.cpp:395: undefined reference to `fuse_opt_parse'
/volume1/backup/torarnv-sparsebundlefs-81b080c/sparsebundlefs.cpp:396: undefined reference to `fuse_opt_add_arg'
/volume1/backup/torarnv-sparsebundlefs-81b080c/sparsebundlefs.cpp:454: undefined reference to `fuse_main_real'

After this I am afraid I am stuck and not sure what is next.  What would be the next step?
Thanks!

I was lacking pkgconfig
apt-get install pkg-config

Ah, I'm glad you solved it!


Introduction of OpenTick?

Could you provide a description of what open tick can achieve?
What are the features it provides on top of FoundationDB?
Thanks,

https://www.v2ex.com/t/513282

Thanks for sharing the article!
The articles says Tick implements a subset of CQL. Can you elaborate on which specific query Tick supports and which it does not support?

type Ast struct {
Select *AstSelect "SELECT" @@
Insert *AstInsert | "INSERT" @@
Create *AstCreate | "CREATE" @@
Drop   *AstDrop   | "DROP" @@
Delete *AstDelete | "DELETE" @@
}
type AstDrop struct {
Table    *AstTableName "TABLE" @@
Database *string       | "DATABASE" @Ident
}
type AstCreate struct {
Table    *AstCreateTable    "TABLE" @@
Database *AstCreateDatabase | "DATABASE" @@
}
type AstDelete struct {
Table *AstTableName  "FROM" @@
Where *AstExpression ["WHERE" @@]
}
type AstCreateDatabase struct {
IfNotExists *string [@("IF" "NOT" "EXISTS")]
Name        *string @Ident
}
type AstCreateTable struct {
IfNotExists *string       [@("IF" "NOT" "EXISTS")]
Name        *AstTableName @@
Cols        []AstTypeDef  "(" @@ {"," @@} ")"
}
type AstTypeDef struct {
Key  []string "PRIMARY" "KEY" "(" @Ident {"," @Ident} ")"
Name *string  | @Ident
Type *string  @{"BIGINT" | "TINYINT" | "SMALLINT" | "INT"  | "DOUBLE" | "FLOAT" | "TIMESTAMP" | "BOOLEAN" | "TEXT"}
}
type AstInsert struct {
Table  *AstTableName "INTO" @@
Cols   []string      "(" @Ident {"," @Ident} ")"
Values []AstValue    "VALUES" "(" @@ {"," @@} ")"
}


Aerial Screen Saver for MacBook Pro

Is there a way to have an option to display the city/country name for each slide while the screensaver is  playing?

Duplicate of #58.