fix(ddb): replace old update method which returns mutated type

Issue #, if available: this is required to allow for proper testing (and merging) of GALI-1738
Description of changes:
I added a new method to DynamoDBService that calls the existing update() method as well as execute() to send the update command and applies proper formatting to the response. I also refactored the old uses of ddb.update() to ddb.updateExecuteAndFormat().
Checklist:

[x] Have you written new tests for your core changes, as applicable?

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

The non-blocking comments here I am going to revisit when I have downtime. I want to merge this in now.


set use_mission_control when querying for routes

https://api.lightning.community/#queryroutes

If set to true, edge probabilities from mission control will be used to get the optimal route.

Do we want to always set this to true or should the user be given the option?

imo that's so low level that we don't want to expose it to the user. just always use_mission_control when estimating fees.


[MINOR][SQL] Remove unnecessary method & related error classes in QueryCompilationErrors & QueryExecutionErrors

What changes were proposed in this pull request?
The pr aims to remove unnecessary method & related error classes in QueryCompilationErrors & QueryExecutionErrors.
Why are the changes needed?
Eliminate redundant method and make the code cleaner.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Pass GA.

cc @MaxGekk

Can one of the admins verify this patch?

Merged to master.


setDirection doesn't work

Hi,
Pretty nice lib. I try to use the setDirection to initialize the StickySwitch right but for me doesn't work. Do i have to do anything else?
I use setDirectiom(StickySwitcj.Direction.RIGHT)  inside onCreate to initialize it.
Thanks

@michaelprimez
Thanks for using this library
I think direction variable is changed but animation is not started.
So i'm released new version.
version code : 0.0.5
Change Log

Start animation when call setDirection.

Todo

When using setDirection, we will add the ability to choose whether to animate.

Thanks ! 👍

It works now, thanks


Implement the pending passes page for admin

Hello Contributors!!
In this task you are supposed to implement the pending passes page for admin according to the UI design provided in the Figma link.
STEPS TO FOLLOW:
1. Fork this repository and clone it into your local system.
2. Go to client > component. Then create a new folder named "PendingPasses_Admin"
3. Add your code in that folder.
In case of any query feel free to reach out to us.
YOU HAVE 48HOURS TO COMPLETE THE TASK.
Screenshot of the page to be implemented has been attached for your reference.

claim

claim


Add new Estonian QR codes to test data

How is it possible that this pull request gets merged even if the checks are failing?


[FEAT] Please do not send a message about the no position or no animation

I do not want to use the position attributes because it can`t adapt the multi monitors,I just use hyprland rule to make a scratchpad at the center

Having position: "5% 5%" and size: "90% 90%" (for instance) can do the job as well and is supported... anyway, if this is working on multi-screens I'll remove the warning.

I did some tests and it's okayish with multi-screens...

Thank you, the same need for #56 and look forward to packaging it into aur

Then it's already available/ released :)


$schema value should end with '#'

Current json schema contains invalid schema reference, it should and with '#'

This is predefined value for draft-04 schema, as described in https://tools.ietf.org/html/draft-zyp-json-schema-04#section-6


update: nvidia-drivers

Name: nvidia-drivers
CVEs: CVE-2023-25515, CVE-2023-25516
CVSSs: 7.6, 7.1
Action Needed: update to >= 525.125.06
Summary:

CVE-2023-25515: NVIDIA GPU Display Driver for Windows and Linux contains a vulnerability where unexpected untrusted data is parsed, which may lead to code execution, denial of service, escalation of privileges, data tampering, or information disclosure.
CVE-2023-25516: NVIDIA GPU Display Driver for Linux contains a vulnerability in the kernel mode layer, where an unprivileged user can cause an integer overflow, which may lead to information disclosure and denial of service.

refmap.gentoo: https://bugs.gentoo.org/909226

PR: https://github.com/flatcar/scripts/pull/1121

Done in https://github.com/flatcar/scripts/pull/1121.


eltwise multiply op broadcast not working

Currently only multiplies first dim of tensor, expected to do broadcast to all dims
Example: shapes: ((1, 32, 11, 64), (1, 1, 11, 64)) , ((1, 8, 11, 64), (1, 1, 11, 64))
module @Multiply attributes {tt.system_desc = #tt.system_desc<[{arch = <wormhole_b0>, grid = 8x8, l1_size = 1499136, num_dram_channels = 12, dram_channel_size =<PHONE_NUMBER>, noc_l1_address_align_bytes = 16, pcie_address_align_bytes = 32, noc_dram_address_align_bytes = 32, l1_unreserved_base = 1024, erisc_l1_unreserved_base = 1024, dram_unreserved_base = 1024, dram_unreserved_end =<PHONE_NUMBER>, physical_cores = {worker = [ 0x0,  0x1,  0x2,  0x3,  0x4,  0x5,  0x6,  0x7,  1x0,  1x1,  1x2,  1x3,  1x4,  1x5,  1x6,  1x7,  2x0,  2x1,  2x2,  2x3,  2x4,  2x5,  2x6,  2x7,  3x0,  3x1,  3x2,  3x3,  3x4,  3x5,  3x6,  3x7,  4x0,  4x1,  4x2,  4x3,  4x4,  4x5,  4x6,  4x7,  5x0,  5x1,  5x2,  5x3,  5x4,  5x5,  5x6,  5x7,  6x0,  6x1,  6x2,  6x3,  6x4,  6x5,  6x6,  6x7,  7x0,  7x1,  7x2,  7x3,  7x4,  7x5,  7x6,  7x7] dram = [ 8x0,  9x0,  10x0,  8x1,  9x1,  10x1,  8x2,  9x2,  10x2,  8x3,  9x3,  10x3]}, supported_data_types = [<f32>, <f16>, <bf16>, <bfp_f8>, <bfp_bf8>, <bfp_f4>, <bfp_bf4>, <bfp_f2>, <bfp_bf2>, <u32>, <u16>, <u8>], supported_tile_sizes = [ 4x16,  16x16,  32x16,  4x32,  16x32,  32x32], num_cbs = 32}], [0], [3 : i32], [ 0x0x0x0]>} {
  func.func @forward(%arg0: tensor<1x32x11x64xf32> {ttir.name = "x"}, %arg1: tensor<1x1x11x64xf32> {ttir.name = "y"}) -> (tensor<1x32x11x64xf32> {ttir.name = "Multiply.output_multiply_0"}) {
    %0 = tensor.empty() : tensor<1x32x11x64xf32>
    %1 = "ttir.multiply"(%arg0, %arg1, %0) <{operandSegmentSizes = array<i32: 2, 1>, operand_constraints = [#tt.operand_constraint<dram|l1|scalar|tile|none|interleaved|single_bank|height_sharded|width_sharded|block_sharded|any_layout|any_device|any_device_tile|l1_block_sharded>, #tt.operand_constraint<dram|l1|scalar|tile|none|interleaved|single_bank|height_sharded|width_sharded|block_sharded|any_layout|any_device|any_device_tile|l1_block_sharded>, #tt.operand_constraint<dram|l1|scalar|tile|none|interleaved|single_bank|height_sharded|width_sharded|block_sharded|any_layout|any_device|any_device_tile|l1_block_sharded>]}> : (tensor<1x32x11x64xf32>, tensor<1x1x11x64xf32>, tensor<1x32x11x64xf32>) -> tensor<1x32x11x64xf32>
    return %1 : tensor<1x32x11x64xf32>
  }
}

Seems to work now.


Add simple sanity check for auth token when handling pending sign in

The method handlePendingSignIn could check whether the auth token was correctly extracted from the intent.data

Test for starts with "ey"

Highlight in the documentation that extracting the authToken from intent.data depends on the specific app.

Fixed by #149

The solution is to test in debug mode only whether the token can be decoded.


MARS IPFS 1.1 Goal - CIDs and more

fixes #270

@enoldev ready for review. I added the goals in the json and added some deep tags


Fix broken link in README.md for Voice Assistant

Good catch. I will remove the en-us in a separate PR to follow (since I do this edits from GitHub and it does not look like it allows me to do another commit to this PR).
From: Jarno Hakulinen<EMAIL_ADDRESS>Sent: Thursday, March 19, 2020 2:12 PM
To: Azure-Samples/cognitive-services-speech-sdk<EMAIL_ADDRESS>Cc: Darren Cohen<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [Azure-Samples/cognitive-services-speech-sdk] Fix broken link in README.md for Voice Assistant (#557)
@jhakulin approved this pull request.
[:shipit:]
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure-Samples%2Fcognitive-services-speech-sdk%2Fpull%2F557%23pullrequestreview-378096786&data=02|01|dcohen%40microsoft.com|4624341814d346a6966308d7cc4a27a5|72f988bf86f141af91ab2d7cd011db47|1|0|637202491172195918&sdata=invP1j0ViM6q%2FcLD7b%2BIczIpE5H2RC7G%2Bt%2F%2FoBn%2FadI%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJMYQXHPWZ4BBWAXM6CGAULRIKDBXANCNFSM4LPMST3Q&data=02|01|dcohen%40microsoft.com|4624341814d346a6966308d7cc4a27a5|72f988bf86f141af91ab2d7cd011db47|1|0|637202491172205911&sdata=kLfXzLoZ1cjmL6fNXToFwXRY5%2FuF2SwlfY8FzCIQDvA%3D&reserved=0.


Added brew cask cleanup.

you should also add 'brew cleanup'

Yup! brew cleanup is already there.

Whoops, I meant brew prune 😁
-- Zakaria Ridouh
On Tue, Aug 16, 2016 at 11:47 AM -0700, "Jason Safaiyeh"<EMAIL_ADDRESS>wrote:
Yup! brew cleanup is already there.
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/guarinogabriel/Mac-CLI/pull/96#issuecomment-240199630

Nice suggestion, just added.


Add link to mdast-util-inject

Inserted it in alpha order by the package name, since they already seemed to be ordered that way.

Closing in favor of rebased version #108


Duplicate identifier "Register"

Check existing issues

[X] I checked there isn't already an issue for the bug I encountered.

Describe the bug
The document says that the type of merged config is like this:
declare module "wagmi" {
interface Register {
config: typeof config
}
}
It was working before, but now it gives an error：
Duplicate identifier "Register". ts(2300)
index.d.ts(77, 692): "Register" is also declared here.
Then I noticed that Register is defined as a type in the new version. How should I declare the type of config now? I don’t want to introduce it in the hook every time.
Link to Minimal Reproducible Example
No response
Steps To Reproduce
No response
What Wagmi package(s) are you using?
wagmi
Wagmi Version
2.10.2
Viem Version
2.x
TypeScript Version
5.4.3
Anything else?
No response

could reproduce it with typescript@rc: https://github.com/dalechyn/wagmi-register-type-issue


edx.org retired users issue

Description
There are some retired users dropping out of int__edxorg__mitx_users due to their username and email being marked as<EMAIL_ADDRESS>in either mitx_person_course or email_opt_in.
Currently int__edxorg__mitx_users is generated based on their records in both mitx_person_course, mitx_user_info_combo, and email_opt_in (for the latest email). However when a user is marked as retired in edxorg, their email and username are replaced by hash value, and it causes user removed from int__edxorg__mitx_users because their username and email can no longer be matched between 3 sources tables
As we inner join int__edxorg__mitx_users in the enrollments and certificates, these removed user enrollments and certificates are also dropped from our models due to this behavior.
Expected Behavior
Retired users should remain in int__edxorg__mitx_users marked as is_active = false or some indication that user is retired. They should not be dropped from the user table, and their enrollments and certificates should remain in the corresponding models
Actual Behavior
Retired users are removed from int__edxorg__mitx_users, their enrollments and certificates no longer exist

Talking to Jon about retired users, the data inconsistency must have to do with synchronization,  email_opt_in table is refreshed frequently, mitx_user_info_combo and person_course are refreshed less frequently, username and email are not in sync between these 3 tables, we would expect to see them retired from all 3 tables eventually. In short, we still need a way to not drop retired users because of data inconsistency

didn't add is_active to edxorg users as there aren't solid ways to determine if users are active or not based on data in mitx_user_info_combo and emal_opt_in. Users who are marked as retired__user_xxxretired.invalid are retired by edx, but for courses that are super old, IRx doesn't reprocess those data, so these rows would remain the same and not marked as retired in their username.
Other than that, https://github.com/mitodl/ol-data-platform/pull/689 addresses the issue where newly retired users drop out of the edxorg user table.


ASC assignment2

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)
  added code to Auto MPG dataset - Linear regression

What did you learn from the changes you have made?
data visualization, data split, fit the linear regression model, predict on test data(RMSPE)

Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
How were these changes tested?
A reference to a related issue in your repository (if applicable)
Checklist

[ ] I can confirm that my changes are working as intended

A2: Incomplete
Q2(i) - Can you please identify which od the plots are positive, negative or no association
Q4- RMSE is wrong value. I would first, Predict on the test dataset then calculate the RMSE and lastly display via print function

A2: Complete
Q4 I would utilize mean_squared_error instead of np.mean and no longer need to divide by y_test


allow new Makie version

I guess the coverage decrease is expected, since it's kinda hard to test different package versions -.- I did run the tests locally for the previous makie version though...

Uhm...

I guess this is just github being buggy..Looking at the file, it looks all correct :D

Yeah, and the percy/CI tests think it's correct, which is what I care about!!


How to config multiple route rules to one service?

alibaba/dubbo#1059

Sorry, because this issue was raised very early, we have closed it temporarily. You can verify whether this problem still exists in the latest code of the develop branch. If this problem still exists, please reopen it at any time.


Add moonbeam deployment

RPC endpoints for verification:

1285 (Moonriver): https://rpc.moonriver.moonbeam.network
1287 (Moonbase Alpha): https://rpc.testnet.moonbeam.network

Hi @rmeissner , do we have the contracts verified on etherscan? to be sure if the scripts:
yarn hardhat --network <network> etherscan-verify yarn hardhat --network <network> local-verify

were executed. Thanks.


Remove names h

Proposed changes
#4944
Types of changes
What types of changes does your code introduce to Doris?
Put an x in the boxes that apply

[] Bugfix (non-breaking change which fixes an issue)
[] New feature (non-breaking change which adds functionality)
[] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[] Documentation Update (if none of the other choices apply)
[x] Code refactor (Modify the code structure, format the code, etc...)

Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

[x] I have create an issue on (Fix #ISSUE), and have described the bug/feature there in detail
[x] Compiling and unit tests pass locally with my changes
[] I have added tests that prove my fix is effective or that my feature works
[] If this change need a document change, I have updated the document
[] Any dependent changes have been merged

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

PTAL @kangkaisen @imay @morningman

@sduzh Thanks for your work!

Unit tests failed in the latest master branch @morningman

Unit tests failed in the latest master branch @morningman

Fixed yesterday


[Question] How can I get nuget of the latest code

Last nuget release is of 5 Aug.Is there any way I can get nightly build nuget of the latest dev branch.I really would light to test this on VS preview 17.1

ah got it from fuget


review SparkCLR for deprecated API in 1.6.0

Review deprecated API at https://spark.apache.org/docs/1.6.0/api/java/deprecated-list.html and update SparkCLR API.

Thanks to @adamante and his contribution https://github.com/Microsoft/Mobius/issues/312
Reviewed https://spark.apache.org/docs/1.6.1/api/java/deprecated-list.html also and confirmed that no other changes are needed to address deprecation in 1.6.0 and 1.6.1


OLS3 vs OLS4 - API differences

OLS3
Facet fields available per default:
https://semanticlookup.zbmed.de/ols/api/search?q=data
OLS4 legacy
No facet fields (also no facet fields with parameter facetField):
https://www.ebi.ac.uk/ols4/api/search?q=data
http://ols4.qa.km.k8s.zbmed.de/ols4/api/search?q=data
OLS4
Facet fields not available per default, only with parameters (search also as parameter):
https://www.ebi.ac.uk/ols4/api/v2/entities?search=diabetes&size=10&page=0
https://www.ebi.ac.uk/ols4/api/v2/entities?search=diabetes&size=10&page=0&facetFields=ontologyId+type

Related topics:
https://github.com/EBISPOT/ols4/issues/645
https://github.com/EBISPOT/ols4/issues/650

related also to https://github.com/EBISPOT/ols4/issues/613


drush: build with php73

Motivation for this change
when drush is wrapped with php 7.4, it complains with a deprecation warning, that swallows all legit output:
> drush uli
Deprecated function: Array and string offset access syntax with curly braces is   [error]
 deprecated in include_once() (line 20 of
/var/www/…/htdocs/includes/file.phar.inc).

This happens on a fully up2date Drupal 7 installation.
Use php7.3 when invoking drush.
Also, fix some buildInputs / nativeBuildInputs.
Things done

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

[x] 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/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Thanks @etu!
php still is php 7.3 on 20.03, so no backport to 20.03 needed.


Tarefa 02 - DCT2302 - 2024.1 - Teste de Unidade Luís #318

Link para os testes
Controllers
User Story Employee
User Story Sale
User Story Manager
User Story Product
Services
User Story Employee (Apenas alguns testes)
User Story Manager


Look into CompactSize MAX_SIZE

In Bitcoin Core there is a MAX_SIZE variable 0x0200_0000 that we are not using.
Look into if we should be using/enforcing this limit. The thing that has confused me is that MAX_SIZE fits in a u32 so why does CompactSize have the 0xFF initial byte and 9 byte encoding for u64s.
Discovered while hacking on #3259

Yeah, it's very strange. This constant has been around since the days of Satoshi. In the BU/2x schism it was widely interpreted as a "32 meg maximum blocksize" which is incorrect on its face (the size of a block in bytes is never constrained by a compactsize encoding, though maybe in the p2p layer there are some limits) and also just a weird thing for people to think. If you are gonna hardfork you can change anything you want.
In 2021 the compactsize decoding logic was changed to allow bypassing the limit (because they started to reuse the compactsize encoding for non-size things like node service flags). So we may want to copy that logic as well.

to fix your trouble check this fix, i see it in another issue,
https://github.com/aravinda-gamage/x86_64-win64-ranlib/releases/tag/fix
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

to fix your trouble check this fix, i see it in another issue,
https://github.com/Jostino/RimWorld-it/releases/tag/fix
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

Sounds like we should have both verifying and non-verifying methods.

I emailed the dev mailing list and CC'd you guys, I don't know if I'm subscribed or able to send emails there after the switch to google groups though - I haven't been reading the list since then.

I can confirm that I see your message.

Because of the CC or because its on the list?

One thing that annoys me though it probably cannot be solved cleanly is that we can produce invalid values (too large when serialized). Restricting to u32 on deserialization side makes things so much easier though.

@Kixunil this is true across the board -- you can also produce transactions whose size exceeds 2^64, and then if you try to PSBT-serialize, say, that you'll go over the existing limit adding the length prefix.
With a 32-bit number this becomes more realistic in that you'll be able to do it on commodity hardware. But the code path is there nonetheless.

Yes, I'm aware of that. I'm mainly pointing out it's annoying. So we either allow producing invalid stuff in some cases or end up with an API that's horrible in some way.

Yep. I propose allowing the production of invalid stuff specifically where "invalid" means "too big somehow".


Monoprice stitch doesn't take OTA

I tried to use tuya-convert on a RasPi 3B+ to OTA flash the Monoprice Stitch light switch, however the switch never responds to smartconfig.
I ended up opening it up and soldering on some wires.  I thought you may be interested in taking a look at the firmware which is available here.

Thanks for your firmware backup, excellent!

Happy to share that support for HTTPS firmware is in the works #279


feat: add getCustodiedPortfolios to Identity.portfolios

:tada: This PR is included in version 2.0.0-alpha.38 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.0.0-beta.1 :tada:
The release is available on:

npm package (@beta dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


hl2sb's lua seems to be broken

I am trying to install a mod into a hl2 mod based off hl2sb but the lua seems to be broken
https://www.mediafire.com/file/kgwhvfg6b1zu0jo/Counter_Strike_1.6_SWEPs_By_BartG.7z/file

These look like they were actually produced by my team years ago. Can you give us stack traces? I'm happy to help solve this one. It should be quick.

I resolved it by rebuilding the 2006 version

I got this issue while building
Severity	Code	Description	Project	File	Line	Suppression State	Details
Error	LNK2019	unresolved external symbol "void __cdecl ResetEntityFactoryDatabase(void)" (?ResetEntityFactoryDatabase@@YAXXZ) referenced in function "void __cdecl luasrc_shutdown(void)" (?luasrc_shutdown@@YAXXZ)	Server (HL2MP)	C:\Users\hp\Downloads\src\csbox\csbox\game\server\luamanager.obj	1
Error (active)	E0992	command-line error: invalid macro definition: PROJECTDIR=C:\Users\hp\Downloads\src\csbox\csbox\game\server	Server (HL2MP)	C:\Users\hp\Downloads\src\csbox\csbox\game\shared\luamanager.cpp	1
Error	LNK2019	unresolved external symbol "void __cdecl RegisterScriptedTrigger(char const *)" (?RegisterScriptedTrigger@@YAXPBD@Z) referenced in function "void __cdecl luasrc_LoadEntities(char const *)" (?luasrc_LoadEntities@@YAXPBD@Z)	Server (HL2MP)	C:\Users\hp\Downloads\src\csbox\csbox\game\server\luamanager.obj	1
Error	LNK2019	unresolved external symbol "void __cdecl ResetTriggerFactoryDatabase(void)" (?ResetTriggerFactoryDatabase@@YAXXZ) referenced in function "void __cdecl luasrc_shutdown(void)" (?luasrc_shutdown@@YAXXZ)	Server (HL2MP)	C:\Users\hp\Downloads\src\csbox\csbox\game\server\luamanager.obj	1
Error	LNK2019	unresolved external symbol "void __cdecl RegisterScriptedEntity(char const *)" (?RegisterScriptedEntity@@YAXPBD@Z) referenced in function "void __cdecl luasrc_LoadEntities(char const *)" (?luasrc_LoadEntities@@YAXPBD@Z)	Server (HL2MP)	C:\Users\hp\Downloads\src\csbox\csbox\game\server\luamanager.obj	1
Error	LNK2019	unresolved external symbol "void __cdecl RegisterScriptedWeapon(char const *)" (?RegisterScriptedWeapon@@YAXPBD@Z) referenced in function "void __cdecl luasrc_LoadWeapons(char const *)" (?luasrc_LoadWeapons@@YAXPBD@Z)	Server (HL2MP)	C:\Users\hp\Downloads\src\csbox\csbox\game\server\luamanager.obj	1
Error	LNK2019	unresolved external symbol "void __cdecl ResetWeaponFactoryDatabase(void)" (?ResetWeaponFactoryDatabase@@YAXXZ) referenced in function "void __cdecl luasrc_shutdown(void)" (?luasrc_shutdown@@YAXXZ)	Server (HL2MP)	C:\Users\hp\Downloads\src\csbox\csbox\game\server\luamanager.obj	1
Error	LNK2019	unresolved external symbol "void __cdecl luasrc_openlibs(struct lua_State *)" (?luasrc_openlibs@@YAXPAUlua_State@@@Z) referenced in function "void __cdecl luasrc_init(void)" (?luasrc_init@@YAXXZ)	Server (HL2MP)	C:\Users\hp\Downloads\src\csbox\csbox\game\server\luamanager.obj	1
Error	LNK2019	unresolved external symbol "void __cdecl lcf_open(struct lua_State *)" (?lcf_open@@YAXPAUlua_State@@@Z) referenced in function "void __cdecl luasrc_init(void)" (?luasrc_init@@YAXXZ)	Server (HL2MP)	C:\Users\hp\Downloads\src\csbox\csbox\game\server\luamanager.obj	1
Error	LNK2019	unresolved external symbol "void __cdecl lcf_close(struct lua_State *)" (?lcf_close@@YAXPAUlua_State@@@Z) referenced in function "void __cdecl luasrc_shutdown(void)" (?luasrc_shutdown@@YAXXZ)	Server (HL2MP)	C:\Users\hp\Downloads\src\csbox\csbox\game\server\luamanager.obj	1
Error	LNK1120	9 unresolved externals	Server (HL2MP)	C:\Users\hp\Downloads\src\csbox\csbox\game\server\Debug_mod_hl2mp\server.dll	1

You are missing these functions.


now we throw a proper exception with correct information when enum value types are not consistent

Description
Add your description here!
Checklist
To ensure a quick review and merge, please ensure:

[ ] The PR has a understandable title and description explaining the why and what.
[ ] The PR is opened in draft if not ready for review yet.

If opened in draft, please allocate sufficient time (24 hours) after moving out of draft for review

[ ] The branch is recent enough to not have merge conflicts upon creation.

Ready to Land?

[ ] Build is completely green

Submissions with test failures require tracking issue and approval of a CODEOWNER

[ ] At least one +1 review by a CODEOWNER
[ ] All -1 reviews are confirmed resolved by the reviewer

Override/Marking reviews stale must be discussed with CODEOWNERS first

Can we use a template function to verify value type?

I think this is only a temporary solution, TCGC will update according to their discussion - but either way, in a short future, we no longer need this validation any more, because they are either forbidding it or allowing it by specify the value type to an union


Fix flex footer

A static footer wasn't rendering properly with flex columns due to the width being calculated incorrectly and at the wrong time.  This makes things a little clearer in terms of what totalWidth actually means (it's the full visible width of the table) and makes it work more nicely with the target flex width.

Should fix #48


Format of the cars as a variable

The string produced by each car should be defined by some kind of template which would be possible to override via env variable. For example I would like to have each car in the following format:
{space}{icon}{space}{text}{space}

With the current setup, I have to override the icon and the separator env vars to include the spaces.

Personally, I don't see a need to add more complexity to the code. Spaces for me for example is not needed, BUT if some characters or some user's personal taste dictates it otherwise, it only requires a good documentation and intuition to know only the existing variables are needed to be tweaked.

Fair enough. But there are certain situations where there is no such variable to use to insert a space where I need it. For example if my train is composed by cars context dir. How can I configure the context train to start with a space? Currently it's not possible and the only way how to achieve it is to change the Sprintf("%s@%s", ...) to have an extra space at the beginning. If the formatting string would be as a variable, or even better if it would be like a template {space}{user}@{host}{space}, it would allow me to configure whatever I want.

@jtyr thanks for pointing that edge case out, now I completely understand your point. Let me give your template suggestion a few days in the back of my head. Since I am still learning Go I have not yet looked at it's template lib. I will get back when I have a proposal of some sort.

Please take your time. This feature should be well thought through. We probably still need some kind of variables to influence the parts of the template. If we take the example from above ({space}{user}@{host}{space}), it would probably be good to have variables for the {user} and {host} where each of them would be a subtemplate. Meaning that {user} would actually be {user_login;white+b:black} or it could also be {user_comment;white+b:black} or even {user_id;white+b:black}. Similarly the {host} could be {host_short;green:white} or {host_fqdn;green:white} or even {host_ipv4;green:white}. The color could be like another variable {host_ipv4;{context_paint}} so you can change the color for all elements with one variable.
It looks a bit overcomplicated but something like that would be really powerful and useful.

@gregf please take a look at this discussion. It could drive the next step for breaking apart the Context car.

Or perhaps even the list of cars could be like a template:
{status}{context}{dir}{git}{prompt}

where for example {context} would be:
{space}{user}@{host}{space}

where {host} would be:
{host_short;{context_paint}}

where {context_paint} would be:
green+b:white

Now, this much of complication sounds the alarms in my head. This could start a snowball effect pretty quickly. Right now it's just a small amount you put in the examples but in general you are inventing a templating system. Which could be good in a web dev situation, but this is just simple text and parsing such templates takes time and introduces lag.
I only wish to add as little control as possible and don't wish to save the world.
Obviously the task here is first to be able to add spaces to surround the info text.
Second and optional task could be to rearrange some components within the text of a car. The {space}, probably a {symbol} and a {text} variable should do it. This could tell how to structure text, still let us identify what to colour (the "how" is in env vars already and their format is fine).

I'm looking into how we could use the built in text templating of Go https://golang.org/pkg/text/template/.
My first idea that the {{space}} and other variables could be used as "published" ones and like building blocks, the user could even rearrange text within the car, even put multiple instances of the info text, e.g. put an icon at the front and at the back of the info text :)
Though, I am still thinking about how much more logic needs to be added for painting them separately.

I really like the idea of using go templates to format the prompt.

This will be trickier I guess. E.g. the dir car has more to configure as the path separators, the path directories are moving parts too that can have optional spaces in between.
I myself really feel to need some good solution to this too, cramping multibyte chars are really annoying, like the train just crashed into a wall and got squeezed a bit.

I would say that the only proper templating can help with this problem. Define a list of keywords which can be used in the car template and on the render time just simply replace all the keywords with their value.

I have looked into Go's template library. It offers so much that one could expect from a real template library. For us, it is only the variable substitution part that matters.  In Python, a plain str.format would do ;)
So, I will upgrade the standard/existing Cars to expose their information blocks and icons. Then the user can override it's printed form by using it's predefined names, Go template style.
e.g.:
the Time car could expose it's icon and printed text (time).
There are only 3 rules to follow:

exposed names start with a dot, because they will internally be bundled within a struct
exposed names start with capital letter, because the struct needs to expose them and everything is exposed (aka public) in Go if it is capitalised
exposed names are enclosed in {{ and }} as they are the Go template system's chosen delimiters

{{.Icon}} : the icon of the car
{{.Time}} : the information this car exposes
Then one could surround the car's output text with spaces to her liking:
{{.Icon}} {{.Time}}
Note the spaces between and at the beginning and end.
So the user can put those variables anywhere, EVEN leave one out. Which leads me to another question: should the more flexible template string take over e.g. the ICON_SHOW env vars?

I think that each of the template strings (e.g. {{.Icon}}) should be represented by a variable (e.g. BULLETTRAIN_CAR_TIME_SYMBOL_ICON). The only exception is the generated text (e.g. {{.Time }}).

Sorry @jtyr I don't really understand what you are suggesting and what is it's source of idea.
Just to be clear, that .Icon variable will still hold the painted version of the defined icon, be it from the env variable or the default built in one. These template variables are only defining their place, nothing more.

My imagination was that the format of the train will bi in an env variable:
BULLETTRAIN_CAR_TIME_FORMAT=" {{.Icon}} {{.Time}} "

And that we can influence the template strings via another variables:
BULLETTRAIN_CAR_TIME_ICON="@"

There is no env var for .Time as that's the value generated by the train.

Yes @jtyr  that's how I wanted to describe it as you just did, thanks! :) I feel a bit taxed in the past few weeks, that's why am a little slower too lately.
I also felt that the examples would be enough to describe this feature and is very much ready to see it in action (code). Since I am dogfooding it 24/7, I test the implementation's UX too. I'll get back to you when I have something to report, and my plan is to create a v0.7 very soon to at least showcase the improvements.
In a few weeks, I am going to showcase it on a few meetups here in Dublin 😀

Well, I have started to work on this in a separate branch and now I have run into an issue with colouring. The issue here is that the current colour algorithm is not capable of "nesting". I have found github.com/logrusorgru/aurora to support just that and now am looking into it to adapt that feature.

If nesting is not supported then you must kind of simulate the nesting. The algorithm is not that difficult. You just need to store coloring values into a FILO buffer, then close the current coloring (when a new color is requested), start the new coloring and when the new coloring ends, you restore the original coloring from the buffer and continue.

@jtyr the context car is already broken apart to user and host. In a closed PR. Needs some cleanup though but I believe master has them.

@jtyr the context car is already broken apart to user and host. In a closed PR. Needs some cleanup though but I believe master has them.

@jtyr so that idea is nice, it's just not that simple as I also have to figure out a really good interface, Sprintf preferably to support this. Aldo note filo may not be a throw in and work vector, edge cases like multiple embeds next to each other also have to work. The store and restore approach is similar that came to my mind though. My subconscious will figure this out :stuck_out_tongue:

I would build a tree of the elements and then the processing of it should be easy enough.

I have prototyped it in Python for your inspiration:
#!/usr/bin/python

import re

class Car:
    fg = {
        'default': 39,
        'black': 30,
        'red': 31,
        'green': 32,
        'yellow': 33,
        'blue': 34,
        'magenta': 35,
        'cyan': 36,
        'white': 97,
    }
    bg = {
        'default': 49,
        'black': 40,
        'red': 41,
        'green': 42,
        'yellow': 43,
        'blue': 44,
        'magenta': 45,
        'cyan': 46,
        'white': 107,
    }

    def __init__(self, model, format):
        self.model = model
        self.format = format

    def format_string(self):
        pattern = re.compile('{{\s*(\w+)\s*}}')
        text = ("%s%s%s" % (
            self._color_start('root'), self.format, self._color_end()))

        # Allow element nesting to the depth of 10
        for n in range(10):
            match = pattern.search(text)

            if match:
                text = pattern.sub(self._elemrepl, text)
            else:
                break

        return text

    def _elemrepl(self, matchobj):
        if matchobj.group(1) not in self.model:
            return matchobj.group(0)

        return ("%s%s%s%s" % (
            self._color_end(),
            self._color_start(matchobj.group(1)),
            self._color_end(),
            self._color_start('root')))

    def _color_start(self, element):
        e = self.model[element]

        return ('\x1b[%s;%sm%s' % (
                self._get_fg(e['fg']),
                self._get_bg(e['bg']),
                e['text'] if 'text' in e else ''))

    def _color_end(self):
        return '\x1b[0m'

    def _get_fg(self, name):
        return self.fg[name]

    def _get_bg(self, name):
        return self.bg[name]

def main():
    time_car_model = {
        'root': {
            'bg': 'blue',
            'fg': 'default'
        },
        'Icon': {
            'bg': 'green',
            'fg': 'red',
            'text': '@'
        },
        'DateTime': {
            'bg': 'blue',
            'fg': 'white',
            'text': '{{ Date }} {{ Time }}'
        },
        'Date': {
            'bg': 'blue',
            'fg': 'magenta',
            'text': 'Thu Sep 20'
        },
        'Time': {
            'bg': 'blue',
            'fg': 'white',
            'text': '21:22:23'
        }
    }
    #time_car_format = " x {{ Icon }} {{ Time }} {{ Unknown }} "
    #time_car_format = " x {{ Icon }} {{ Date }} {{ Unknown }} "
    time_car_format = " x {{ Icon }} {{ DateTime }} {{ Unknown }} "
    time_car = Car(time_car_model, time_car_format)

    print(time_car.format_string())

if __name__ == '__main__':
    main()

It could be that the templates and colours eventually end up something as @jtyr suggest the first time. :) Though I am looking into very similar implementations like https://pypi.python.org/pypi/blessings/ and get some already working ideas. It's be nice to have it integrated with solutions like https://github.com/valyala/fasttemplate to gain more speed ;)

My first iteration will be more explicit as I find too many edge cases to cover with the "intelligent" colouring template. The idea for now is try to use Go template's function call syntax to make explicit colouring readable. Will write some examples later.

So with using templates I think such a string could be still functional and readable:
The delimiters now configured to be [ and ].
[.Icon | c ]["some text here" | c "blue:white"][.Info | c]
In this setup, the c is the colour function exposed to the template and it's optional parameter is the colour override. The default colour should be the colour defined for the car itself, that's used when the function c does not have a parameter.
The end user may have to type a little bit more, though I don't think that it's cryptic or anyone with just a little shell knowledge or templating background would not be able to comprehend what are the components.
Currently the separator takes the car's default colour and uses that to colour itself. That default colour is also useful to still be set on an env variable level to keep the default colour parameter off from the template AND not having to change the current separator colour logic.
The above template string version is only one of the supported forms of Go's text/template package.

How do I override only the colour or the icon symbol if I'm fine with the rest of the car format?

The icon is still an external info to the template, it's env var is used.
I want a single possie way to do anything here. Your point is valid, how should the colours be overwritten. I feel bad to have env vars for colours and override them elsewhere in the template. Maybe the default colours should be built into the template in this case.
Less env vars, bit longer template to look at, more explicit, less magic.
My concern raised again to be able to easily figure out the car's colour if it would be only in the template.
What if we still define colours in the env vars and use separate template functions to colour variables.
c for car's colour, cs for car symbol's and ci for car info's colour. The template still could only be used for repositioning and colouring would be told by the user for everything and we won't need weird logic to figure them out.

I run into a slight problem I didn't think through: how would I describe an icon symbol with spaces around it?

Alright so it makes sense, there needs to be a second function to be used in the pipeline:
[.Icon | printf "%s " | cs ][" some text here " | c ][.Info | ci]
printf is a mapping to fmt.Printf and acts accordingly. Here we have to use this approach to be able to tell what extra chars to add to the same colouring.
If we would not use this approach, there is a less elegant way too:
[.Icon | cs ][" " | cs][" some text here " | c ][.Info | ci]
Though both are valid, I feel there is more mind juggling to the second one.

It doesn't look right. If I cannot configure each bit via env var then I will be forced to redefine the whole template for each car. What if I want to change only one thing? How do I keep in sync with the upstream default template? What people will do is to wrap this nice and fast golang thing into bash and do their magic there which then looses the advantage of even having it written in golang.

You don't even need to use Go templates to make the templating. Have a look at my Python code where I'm parsing the formatting string myself. The only thing which is needed to add is to read the model values from env vars. Simple, fast and variable solution.

You still define the colours and symbols in env vars. The template is for you to tell where to put which element and what colours to apply to which element.
Please put examples where you feel my last suggestion may falter. Also be reminded that you wanted to see templates in the first place, which I think is a good idea to support every out of the ordinary setup :)

I only want to change icon symbol of icon color. How do I do it without having to define whole car template string?

I think I was not too clear at first, let me explain:
.Icon is an exposed variable holding the default or the symbol defined in the env var, so you are still controlling what symbol appears through the env var. Nothing changed.
cs is an exposed function, wrapping the colour setup defined by default or coming from the env var. Nothing changed.
You don't have to change the default template IF you are fine how it arranges the parts themselves.
Is it clearer now? Ask more questions if needed, we have to be on the same line :)

I'm dogfooding this solution now, and evaluate the usability too.

Works very well to be honest. I need to do some benchmarks and see if the other library makes it faster without changing the syntax.

OK. So if the symbol as well as the colour of it is as a variable, then why do we need to have that function in the formatting string? It seems to me like unnecessary complication.
Otherwise if you want to add a space behind the icon symbol, which will have the same colour like the symbol, you can add it into the env var instead of re-defining the template.
Let's consider another example. I want to add space at the beginnig of the car, between the Icon and the Info and I want it to have the colour of the car itself. In your formatting it would look like this:
CAR_FORMAT='[" " | c ][.Icon | cs ][" " | c ][.Info | ci ]'

In a variation of the formatting from my Python example (simply using [ .. ] instead of  {{ ... }}) it would look like this:
CAR_FORMAT=' [ Icon ] [ Info ]'

Much simpler. No need to use any functions for colouring.
Just thinking - in your formatting string, do you need to use template for a string of the car colour? Couldn't you simply use just the following?
CAR_FORMAT=' [.Icon | cs ] [.Info | ci ]'

But even so, the colour function is unnecessary, I think.

I am merely using what is at my disposal without reinventing the wheel. This is the closest we can get without inventing our own template system and need to rewrite the existing logic how colour setup is drawn for the separators. Right now I don't have to do any hard text parsing, edge case detection and craziness. Go has a great template system which is very much like what you already find out in the wild.
The flaw I have encountered in such design:
CAR_FORMAT=' [ Icon ] [ Info ]'
is that when you define the Icon, how do you know what colour is the presiding space and the one that stands in between it and the Info? That is where the expressiveness of the pipeline comes in, it unquestionably tells what to colour.

I think what you didn't consider is that the car also has a colour, but to apply that colour over the whole -already subcoloured- text is very difficult task. Breaking the text apart again and putting them together...nah, unnecessary programming task.

It's not that difficult. Check the Python example. It does everything you just mentioned (parsing, splitting car colouring, ...). Do you want me to rewrite it in Go so you can just include it? ;o)

Sorry but what you did in the Python example is not that close how the current Go implementation works. There are some other factors I already taken care of, like calculating the next separator's colour.
By all means, I'd be happy to learn more tricks by reading a cool implementation in Python/Go that uses the same colour format strings and operates with env vars, and you showcase 2-3 cars in action with your idea.

Challenge accepted: https://github.com/jtyr/python_bullet_train

I see you are really into this @jtyr :grinning:. Let me know when it's ready to have a look and describe your settings for me to copy paste and observe it in action. I am truly giving it the base idea a thought and will experiment with it.

Just reading through the comments and once you suggested a colour template setup yourself:
{host_short;{context_paint}}
and that is very close to what the Go templates do.

It's ready. What do you think I was doing till 4am? ;o)
Install it like this:
git clone https://github.com/jtyr/python_bullet_train.git
cd python_bullet_train
PROMPT='$('$(pwd)'/python_bullet_train.py $?)'

Then you can start experimenting with it:
### Test the Status car
false
true
### Test the Dir car
cd /
cd ~
cd /usr/bin
### Test Sign car
sudo su -
exit
### Test Time car
# Set 12h format
export PBT_CAR_TIME_TIME_FORMAT="%I:%M:%S %p"
# Change background color of the all car
export PBT_CAR_TIME_BG=yellow
# Change color of Date part
export PBT_CAR_TIME_DATE_FG=black
# Reset the color of the Date part
unset PBT_CAR_TIME_DATE_FG
# Reset the background color of all Time car
unset export PBT_CAR_TIME_BG
# Remove the Date part from the car
export PBT_CAR_TIME_FORMAT=" {{ Time }} "
# Reset the format of the car
unset PBT_CAR_TIME_FORMAT
### Train
# Remove the Time car from the train
export PBT_CARS="Status, Hostname, Dir, Sign"
# Reset the original train
unset PBT_CARS

Have a look inside the pbt/cars/*.py for all possible variables you can use. The latency of the implementation is not as great as if it would be written in Go (perhaps compiling the Python script into a binary would help, let me find out), but the template interface is quite nice and powerful.

Thanks @jtyr  I'll have a look at it soon. I don't care about performance, that was not the goal. I care to see how you'd implement a better usable template setup with correct colour management and learn as much as I can from it.

@jtyr I have played around it, broke it 😆
All in all I got the picture how you thought this through, I'll give it a round and will try to experiment with it.
Handling multibyte chars is also part of the harder problems to figure out, where these chars overlap to the next char space and a space needs to be added. That is not acceptable since the template idea as it will lead to 2 places where positioning is done. The symbol variables should only hold the symbol(s) itself and no spacing (positioning) characters, that is the task of the template.
That regexp is the only thing I will try to play with and try to align the colours still. Thanks for sharing it 👍

How did you break it? ;o)

I have been thinking about this template thing the past week and came to the following conclusion:
I will keep using the Go template and keep the "simpler" idea in my backlog. It could turn out to be YAGNI and when it does I'll use this idea to simplify.


USB Not working after updating to 11.3.1

My USB 3 ports (USB A and USB Type C) is not working after updating to mac os 11.3.1. I tried to fix the USBinjectall kext and it's still not working. pls help

Disable the XhciPortLimit save me from this issue.

It's working Thx

Into OpenCore Config.

Doesnt work for me, hault error on boot


⚠ Bofrost.lu has degraded performance

In e3990b3, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1110 ms

Resolved: Bofrost.lu performance has improved in b5bd730 after 6 minutes.


Fix crash with balls/skittles memory access [AUTOZIP]

Fix WorldModel::clear behavior

Download:
Environment: QT=5.12, ARCH=32, CONFIGURATION=release, QTIFW=C:\Qt\Tools\QtInstallerFramework\3.1
trik-studio-master-i686-auto.zip


ansible-lint should not work on ansible playbooks or roles

Information
VIM version
version 8.1 centos7.5
Operating System:
centos7.5
What went wrong
ansible-lint should not work on ansible playbooks or roles,my vimrc config is
let g:ale_linters = {
\   'python': ['pylint'],
\   'ansible': ['ansible-lint'],
}
and python check is ok but ansible not work
my step1:
ansible-lint /tmp/vim.yml
Syntax Error while loading YAML.
expected , but found ''
The error appears to have been in '/tmp/vim.yml': line 8, column 6, I also set let g:ale_completion_enabled = 1
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: nidaye
 lineinfile:
 ^ here

But use vim open it,There is no prompt to open the file!!!!

Finally,I find the ale  doesn't detect syntax changes in real time Why？？

I find this report hard to understand. Where is your sample file? What are the expected and actual results?
BTW, I found that you have to tell VIM that your file is an ansible file or it will use yaml filetype instead. You can combine them with :set ft=ansible.yaml.

I have set filetype=ansible.yaml  my yaml config is error  but ale no warning why？

You should include the output of :ALEInfo, like the issue template says. Then people can have a look at what output your command returned, and what was run.

this is my aleinfo:

I don't think ale's support for ansible is very good,and My ale can't detect syntax changes in python and anble in real time

Include the output of :ALEInfo so others can see if there's any output from the linter which ALE isn't parsing.

yes,you also can my project  include my config for vimrc https://github.com/Hello-Linux/Ansible-VIM-IDE/commit/26fb5ede2346c97ac82839af8b08eaf984515ef3

ansible-lint check some errors but ale show nothing why?

so I think the ale is not working for ansible

Hopefully this problem can be fixed later,My project is currently quoting him, and the other thing you don't pay attention to is that this ale isn't being detected in real time

Haven't you solved it yet?

Haven't you? I don't tend to work on individual linters too much. I tend to leave that to contributors. I mostly work on the core of ALE itself.

ok

I think this is a duplicate of #1814 .

Agreed, @nkakouros these should be collapsed into one so the conversation can focus:
https://github.com/dense-analysis/ale/issues/2171
https://github.com/dense-analysis/ale/issues/1814
https://github.com/dense-analysis/ale/issues/1832
Since you're suggesting to keep 1814, I'll comment there.

I'll close this and move the discussion to #1814.


Find a way to dedup checkNotAGitRepo etc test tasks

Aggrevated by sbt 1 dropping its Process API: #39.


Addition of hard dependency on Nuxt adds 100+ additional dependencies

Describe the bug
The new dependency on @nuxt/kit in 0.23 added an additional 108 dependencies to this package.
In 0.22.12, when I add this package to my project it brings in 18 dependencies.
In 0.23.0+, when I add this package to my project it brings in 126 dependencies.
It would be much appreciated if this could be changed to an optional peer dependency instead of a hard dependency. Thank you!
Reproduction
npm i unplugin-vue-components@latest -D, observe output
System Info
System:
    OS: Windows 10 10.0.19044
    CPU: (12) x64 Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
    Memory: 2.80 GB / 15.71 GB
  Binaries:
    Node: 18.14.2 - ~\Desktop\node-v18.14.2-win-x64\node.EXE
    npm: 9.5.0 - ~\Desktop\node-v18.14.2-win-x64\npm.CMD
  Browsers:
    Chrome: 110.0.5481.177
    Edge: Spartan (44.19041.1266.0), Chromium (108.0.1462.46)
    Internet Explorer: 11.0.19041.1566

Used Package Manager
npm
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guide.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
[X] The provided reproduction is a minimal reproducible of the bug.

same observations, the nuxt/kit hard dependancie is overkill.


Observer for PWInbox unreadMessagesCount doesn't seem to update when app is in background

Hi, I'm developing an app with the Inbox UI. The app displays a button with a badge showing the unread messages. Therefore I register as an observer for unread messages:
PWInbox.addObserverForUnreadMessagesCount
I have discovered that the number of unread messages is updated correctly as long as the app is in the foreground. However, if the app is in the background and I send a new pushmessage to the inbox, the number of unread messages is not updated until I open the Inbox.
Is there any possibility to update the count of unread messages after the app becomes active again?

@michael-seiler,
Could you please specify where and how exactly you register the observer in your code? Also, please let us know which version of Pushwoosh SDK is used and whether you use our default InboxUI solution or if you are developing your custom UI.

@wfhm ,
the versions of the Pushwoosh sdk that we use (from Podfile.lock):

Pushwoosh (5.23.1):

Pushwoosh/Core (= 5.23.1)
Pushwoosh/Core (5.23.1)
PushwooshInboxUI (5.23.1):

Pushwoosh (~> 5.16)

The code is registered in the menuBar, when initially loaded:
        PWInbox.addObserverForUnreadMessagesCount { [unowned self] (count) in
            self.setInboxLabelCount(Int(count))
        }

        PWInbox.unreadMessagesCount { [unowned self] (count, error) in
            self.setInboxLabelCount(count)
        }

We use the default InboxUI. We subclass PWIInboxViewController so that we can control the display of the navigationbar in our ViewController class.
Do this information answer your questions? Please contact me if you need further information.
Thanks, Michael

@michael-seiler,
Thanks, please let me pull some time to check it.

I have the same issue. Is there any progress with it?
Thanks, Mikhail

Fixed with 6.0.3


Confusing InvalidConstructorReturnType message when template isn't specified

I was trying to use a closure as a custom constructor, and it gave me an InvalidConstructorReturnType exception even though its return signature definitely specifies an existing class. When debugging I discovered that it was being thrown here, and $returnType was an UnresolvableType with the message:
"The type `[my type]` for return type of method `[my closure constructor]` could not be resolved: No generic was assigned to the template(s) `T` for the class `[my type]`."

It would be great if the InvalidConstructorReturnType message could be improved to account for cases where the class does exist but there is a template left unspecified.

Hi @AndrolGenhald, thanks for the report. The issue has been fixed with #347 and will be part of the next release. 😉


#3391 - Match trailing slash on root to how root was configured.

Fixes #3391 - Allow developers to control whether a trailing-slash should be included or not.

Is there anything I can do to help move this forward?
I believe this change maintains backwards compatibility and includes a full set of tests, so it should be a low-risk include.

@kdickerson Sorry for the long silence. I have recently adopted Backbone maintainership (see #4244) and will give your PR high priority.

Thanks @kdickerson. Would you like to adjust the branch yourself or shall I do it? As far as I'm concerned, this can stay within the same PR.

I can do it.  I'll see if I can get it done today.

Pushed an update after rebasing onto master.  Maintains existing behavior unless keepRootSlash is passed as an option to History.start().  keepRootSlash opts into new behavior which always matches the trailing slash to how it was configured by the root option.

The keepRootSlash option switches the behavior to always respect whether root ends with a slash or not (perhaps it should be respectRootSlash instead).  That is _keepRootSlash indicates we should respect the value passed for root and _wantsRootSlash indicates that the passed value for root ends in a slash.  So we have at least 3 states we need to track: legacy mode, new-behavior and root ends in slash, new-behavior and root does not end in slash.  I don't see a way to account for all three states without both variables.
The problem, specifically, is that the legacy behavior is not "always remove a trailing slash."  It sometimes removes it and sometimes adds it (if root is set to an empty string).  So we have to know if we're operating in legacy mode or new mode otherwise we can't do the right thing when root is set to an empty string.  We could make the new mode mean "always use a trailing slash" but then there's still no way to get the behavior of "never use a trailing slash."
So it seemed like a better option to make the new mode mean "respect the developer's decision about the trailing slash."
I changed the name of two of the existing tests to improve the naming since several tests had the same name and tested different things.  Including one of which tested the exact opposite of the name (name said "No trailing slash on root" and then tests that it has a trailing slash).
I believe the only functionality I changed in an existing test was to add a trailing slash to root to cover the legacy case that trailing slashes are dropped.  Unfortunately, the way the diff is being parsed makes that hard to see. I roll those changes back and instead add another test that covers the legacy behavior that removes trailing slashes.  I'll be able to get to it tomorrow.

The keepRootSlash option switches the behavior to always respect whether root ends with a slash or not (perhaps it should be respectRootSlash instead). That is _keepRootSlash indicates we should respect the value passed for root and _wantsRootSlash indicates that the passed value for root ends in a slash. So we have at least 3 states we need to track: legacy mode, new-behavior and root ends in slash, new-behavior and root does not end in slash. I don't see a way to account for all three states without both variables.

I disagree that the third case should be accounted for. The logic in Backbone.history heavy relies on root starting and ending with a slash. #3391 is a complaint about the slash being present in the root but being stripped when the fragment is empty. You need only one variable to keep track of whether the user wants this or not.

The problem, specifically, is that the legacy behavior is not "always remove a trailing slash." It sometimes removes it and sometimes adds it (if root is set to an empty string).

No, this is a misunderstanding. The slash is added back if the rootPath becomes empty because root is '/' and we strip the final slash. root is never set to an empty string; the start method enforces that it starts and ends with a slash on line 1863. The adding back is to ensure that we retain a leading slash in the degenerate case that this is also the trailing slash.

So we have to know if we're operating in legacy mode or new mode otherwise we can't do the right thing when root is set to an empty string.

What, according to you, is "the right thing" when the root is an empty string?

We could make the new mode mean "always use a trailing slash"

Right, this is what I expected you to implement.

but then there's still no way to get the behavior of "never use a trailing slash."

Why do you want a "never use a trailing slash" mode?

So it seemed like a better option to make the new mode mean "respect the developer's decision about the trailing slash."

If that is the intent, I agree that _respectRootSlash or _freezeRootSlash or something like that would be a more appropriate name for _keepRootSlash. However, I am not convinced that this is a good idea. Saying farewell to the assumption that root begins and ends with a slash seems like opening a big can of worms.

I changed the name of two of the existing tests to improve the naming since several tests had the same name and tested different things. Including one of which tested the exact opposite of the name (name said "No trailing slash on root" and then tests that it has a trailing slash).

This is also a misunderstanding. In those two tests, the user has not set a trailing slash on root (in the first, by not setting a root at all, in the second by setting it to 'root'). Hence "no trailing slash on root". The test verifies that Backbone.history still behaves in a sane way in that case, which includes implicitly adding leading and trailing slashes under the hood.

I believe the only functionality I changed in an existing test was to add a trailing slash to root to cover the legacy case that trailing slashes are dropped. Unfortunately, the way the diff is being parsed makes that hard to see.

I could see that you only added assertions to the end of that test, but that still changes the meaning of the test.

I can roll those changes back

Yes, please do. Please, never change existing tests, unless you can prove (in the strongest sense of that word) that they are wrong.

and instead add another test that covers the legacy behavior that removes trailing slashes.

Maybe, but let us focus on getting the assumptions right first.

the start method enforces that it starts and ends with a slash on line 1863.

Ah, I had missed that.
I dislike code which force changes input to something else.  In this case it resulted in #2656 due to users expecting the code to respect their configured value (and have no trailing slash).  And the response to #2656 to always removing trailing slashes led to #3391 because other users also expected the code to respect their configured values (and have a trailing slash).  Too bad the original response to #2656 wasn't to respect the configured value rather than to switch the behavior from slash to no slash.
I realized my current version was colored by my original implementation which attempted to maintain as much backwards compatibility as possible using only the value provided for root.  The new implementation doesn't need to care about that and we do only need to track "no trailing slash mode" (which is what the existing implementation does with the leading slash understanding in place) or "trailing slash mode" without caring what is passed since the existing code already ignores what's passed as it relates to leading/trailing slashes.
Knowing that start already ignores the slashing of root should significantly simplify the tests since many of them don't need to exist as they don't actually test anything unique.
I'll get these changes pushed out later today.

I wouldn't say that start ignores the user's preferences; I would rather frame it as normalizing the root. This is somewhat necessary because Backbone needs to work with the reality of how window.location works. Among other things, this means that the leading slash really needs to be there, even if the user doesn't like it. Also, once you glue two paths together, there's going to have to be a slash in between, so at some point, Backbone would have to add that slash if the user didn't provide it.
That said, I agree that there have been many unfortunate changes in the past (see also #4266). In the case of Backbone.history, I think the end result is still quite sensible, but sometimes, we have to put up with serious stupidity only because removing it would be a breaking change. The best (worst) example of this that I know, is the crazy comparison semantic in Underscore's _.min and _.max (you may need to expand hidden comments and hit enter again in the browser's address bar in order to see that particular comment).

Knowing that start already ignores the slashing of root should significantly simplify the tests since many of them don't need to exist as they don't actually test anything unique.

Do you mean the existing tests or your own tests? In the first case, the tests likely originated in a period when the implementation didn't have all the subtleties that it has today. They should probably still be preserved in order to prevent regressions, but if you tell me which tests you think could be removed, I'll consider it.

I'll get these changes pushed out later today.

Great, thanks!

Can help but wonder if I saw the normalization of the slashes when I wrote the original commit since this is basically the same as that.  I chose the option name trailingSlash since I felt keepSlash was misleading unless one knows the value for root will be normalized (which I don't see in the documentation, and should probably be added).  keepSlash sounds like if there's a slash it will stay, but doesn't, to me, suggest that a slash will always be used.
So I think the semantics of trailingSlash which defaults to false works to indicate there will never be trailing slashes or there will always be trailing slashes.

FYI, I didn't add any documentation because CONTRIBUTING.md says:

In your pull request, do not add documentation...

I'll update the documentation.

Good point! That remark refers to the annotated source code, but I totally agree it makes a different impression. I'll create an issue for it, now that you remind me of it.


Allow specification of dropdown-search for custom columns in tables

Often custom attributes of entries have categorical values and it would be more usable if they could be searched and filtered using a dropdown-list of available values.

Note that the subset of values displayed might be dependent on the value selected in another dropdown-list. Specifically (for example):
IF "Part of speech" = "Noun" THEN display "Masc", "Fem" and "Proper"
IF "Part of speech" = "Verb" THEN display "Trans", "Intrans", "Caus1" and "Caus2"

I see that this would be desirable, but I don't think I'll implement it. It basically means you'd have to run the query before you can populate the user interface. This would destroy the whole point of using asynchronous requests to retrieve the data. It also wouldn't work with paging; i.e. you'd have to retrieve all results matching a set of filters, because you wouldn't want to only limit the choices in the dropdown lists to values on a particular page of results.


[14.0] Various RESP backports

https://issues.redhat.com/browse/ISPN-14501
https://issues.redhat.com/browse/ISPN-14544
https://issues.redhat.com/browse/ISPN-14578
https://issues.redhat.com/browse/ISPN-14579
https://issues.redhat.com/browse/ISPN-14580
https://issues.redhat.com/browse/ISPN-14504
https://issues.redhat.com/browse/ISPN-14585
https://issues.redhat.com/browse/ISPN-14583
https://issues.redhat.com/browse/ISPN-14689
https://issues.redhat.com/browse/ISPN-14720

Merged, thanks


Website needs a footer

for additional links such as but not limited to:

copyright
links to resources such as the planner and transfer docs
link to club rules
more social media links (yt, linkedin, potentially medium)
links to clubs general feedback form (https://forms.gle/jaYbdo6KWbGFvJJG8)

See some of the following for inspiration:

https://ubccsss.org/
https://nwhacks.io/

MVP done, just needs cleanup

Will be done sometime this week

fyi you can add commits to github issues by putting the issue number in the commit


Path in state 1 to 3 should transform into grass path when a shovel is used

Similar to #8, you should be able to transform paths with a decent amount of grass (state 1 to 3) into vanilla grass paths: https://minecraft.fandom.com/wiki/Grass_Path

Thanks for reporting this !

Could there be a config option to always make this possible?
In vanilla minecraft you can also make path from dirt, not only grass - it's kinda annoying currency I have to remove and re-place auto-path blocks

ATM there is an option to transform path automatically to vanilla path block.


Sonoff integration toggles on / Off every 15 seconds

Hi there,
My sonoff has started to go on / offline every 15 seconds.
Error messages in log are:

 await self.cloud.send(device, params, timeout=0)

File "/config/custom_components/sonoff/core/ewelink/cloud.py", line 473, in send
"selfApikey": self.auth["user"]["apikey"]```

´´´Logger: custom_components.sonoff.core.ewelink.cloud
Kilde: custom_components/sonoff/core/ewelink/cloud.py:576
integration: Sonoff (dokumentation, problemer)
Første forekomst: 05.46.17 (259 forekomster)
Senest logget: 08.25.40

You logged in from another place´´´

Logger: custom_components.sonoff.core.ewelink.cloud
Kilde: custom_components/sonoff/core/ewelink/cloud.py:607
integration: Sonoff (dokumentation, problemer)
Første forekomst: 05.46.00 (305 forekomster)
Senest logget: 08.25.36
Cloud ERROR: {'error': 400, 'deviceid': 'ab100000a9', 'apikey': '74ca39b6-f663-40d1-89ee-
home-assistant_2024-07-11T06-25-59.044Z.log
730b4ad6e3b5', 'sequence': '1720679015826', 'uid': '74ca39b6-f663-40d1-89ee-730b4ad6e3b5'}
Cloud ERROR: {'error': 400, 'deviceid': 'ab100000a9', 'apikey': '74ca39b6-f663-40d1-89ee-730b4ad6e3b5', 'sequence': '1720679020827', 'uid': '74ca39b6-f663-40d1-89ee-730b4ad6e3b5'}
Cloud ERROR: {'error': 400, 'deviceid': 'ab100000a9', 'apikey': '74ca39b6-f663-40d1-89ee-730b4ad6e3b5', 'sequence': '1720679025829', 'uid': '74ca39b6-f663-40d1-89ee-730b4ad6e3b5'}
Cloud ERROR: {'error': 400, 'deviceid': 'ab100000a9', 'apikey': '74ca39b6-f663-40d1-89ee-730b4ad6e3b5', 'sequence': '1720679130830', 'uid': '74ca39b6-f663-40d1-89ee-730b4ad6e3b5'}
Cloud ERROR: {'error': 400, 'deviceid': 'ab100000a9', 'apikey': '74ca39b6-f663-40d1-89ee-730b4ad6e3b5', 'sequence': '1720679135832', 'uid': '74ca39b6-f663-40d1-89ee-730b4ad6e3b5'}````
Setup:
I have two HA instances running, one for each home, Sonoff is setup with two homes, and each home is defined in the Sonoff setup.
Both instances show same error, with "you logged in from another device". However besides the Sonoff HA integration on the two HA systems, no other login are performed.
The 400 error is for the SPM 4relay, that reports an Api error, but since that is only on one of the systems, I has disregarded this error.
Any idea what can cause this.

Hi there
I add the specific Sonoff log here, to make sure you have all debug information
Marinus
home-assistant_sonoff_2024-07-12T06-12-42.036Z.log

Hello,
Same here. one minute sonoff devices are connected to wifi, the other minute the network indicator is flashing. when i reload sonoff integraton in home assistant all devices are connected again, but after while still the same issue. ewelink app shows devices are offline and the other minute online, somehow sonoff integration/home assistant makes the devices become offline.
Dan

Hello,
Same here. one minute sonoff devices are connected to wifi, the other minute the network indicator is flashing. when i reload sonoff integraton in home assistant all devices are connected again, but after while still the same issue. ewelink app shows devices are offline and the other minute online, somehow sonoff integration/home assistant makes the devices become offline.
Dan

Hi Dan,
our issue is different. Devices are online all the time in eweling, but in HA, they toggle on/off every 15 seconds. Sonoff integration has been online for more than a year, on two different HA installations, both having same issue, last 1-2 weeks.
Marinus

So. You just "logged in from another place". Just like the error message says.
You using same login/pass in another software. Maybe another hass/addon/smarthome soft/etc.
https://github.com/AlexxIT/SonoffLAN?tab=readme-ov-file#configuration


How to use node packages?

How to use node packages so I can use the fs package for example? I keep getting errors like "require is not defined".
When using rollup-plugin-node-builtins then I get an error that __dirname is not defined.

Hello I have the same issue trying to use electron-store package. I get this "require is not defined" error and I am not experienced enough to figure out how to call this.
Thanks for helping
Regards


Eraser cannot be scheduled on tainted nodes

What steps did you take and what happened:
We are using taints on our node pools. After deployment of eraser via bicep, the eraser pods are failing to schedule on any of our node pools with the following error:

It appears that the eraser pod default tolerations are not working to enable it to be scheduled on tainted nodes.

What did you expect to happen:
I would expect the eraser pods to schedule successfully on all nodes, as per this previous closed issue.
Anything else you would like to add:
Environment:

Eraser version: mcr.microsoft.com/oss/eraser/eraser-manager:v1.1.0
Kubernetes version: (use kubectl version): 1.26.3
Deployed via bicep (AKS security profile config):

@sarahecraddock previous issue was for the worker pods, looks like this is controller pod.
this looks like an AKS specific issue. @jiashun0011 does AKS need to add this toleration to the addon?

Closing this since this an AKS addon-specific issue, not OSS. Please open an issue in https://github.com/azure/aks


Implement DPI detection for mobile

We use SDL_GetDisplayDPI with success on the desktop, but this appears to currently be unimplemented on iOS and Android.
Either we can try to find a way to add this to SDL, and contribute it back, or make a workaround and implement support ourselves.
Either way, this is important information to have :smile:

Done :smile:


Added means to register custom artifact types #175

This implements the changes proposed in https://github.com/ForensicArtifacts/artifacts/pull/173 with interface functions.

This change is

Review status: 0 of 5 files reviewed at latest revision, 4 unresolved discussions.

.style.yapf, line 31 [r1] (raw file):
Previously, destijl (Greg) wrote…
> lets just remove this completely and use --style chromium.

Done.

artifacts/registry.py, line 37 [r1] (raw file):
Previously, destijl (Greg) wrote…
> it seems odd that the registry is creating these objects. The registry should just return the correct class and the caller can create it. Call this "GetSourceTypeClass".

The idea would be have this as a source type factory.

artifacts/registry.py, line 174 [r1] (raw file):
Previously, destijl (Greg) wrote…
> Think it would be better to get rid of this and just call
>
> ```
>
> for source_type_class in DEFAULT_SOURCE_TYPES:
>
>  cls.register
>
> ```
>
>
>
> in ```__init__```. Otherwise callers need to create the object and call this method with the private class variable?

this is a class method so invocation would be
ArtifactDefinitionsRegistry.RegisterSourceTypes(...)
no need for instantiation of RegisterSourceTypes().

Comments from Reviewable

@destijl not sure but it looks like reviewable is messing up the reply inside github.

Review status: 0 of 5 files reviewed at latest revision, 6 unresolved discussions.

artifacts/registry.py, line 37 [r1] (raw file):
Previously, joachimmetz (Joachim Metz) wrote…
> The idea would be have this as a source type factory.

This just seems like a weird mix of roles that doesn't really save any code. It should just be a registry. As is it's a registry and a factory for only a subtype of artifact, but not artifacts themselves. Artifacts are created in a completely different module by a different class.

artifacts/registry.py, line 81 [r1] (raw file):
Previously, destijl (Greg) wrote…
> having a deregister without a register is confusing. Perhaps the better approach is to have
>
>
>
> DEFAULT_TYPE_CLASSES
>
>
>
> and in ```__init__``` call a register method that registers them into the class dict.
>
>
>
> Oh my bad, there is a register...I'll keep reading.

we should put register and deregister next to each other. I think logical grouping is more important than strict alphabetical.

artifacts/registry.py, line 174 [r1] (raw file):
Previously, joachimmetz (Joachim Metz) wrote…
> this is a class method so invocation would be
> ArtifactDefinitionsRegistry.RegisterSourceTypes(...)
>
> no need for instantiation of RegisterSourceTypes().
>

I missed that these were class methods on the first pass. Since this class has a mix of methods that are very different: source type registration (class level) and artifact registration (object level) I think those should be grouped together rather than be sprinkled through the class in alphabetical order. It may even make more sense to split the source type registry into a different class.

tests/registry_test.py, line 46 [r2] (raw file):

  """Tests for the artifact definitions registry."""

  # pylint: disable=protected-access

just add a GetSourceTypes method and call len on it rather than doing this.

tests/registry_test.py, line 116 [r2] (raw file):

    with self.assertRaises(KeyError):
      registry.ArtifactDefinitionsRegistry.RegisterSourceType(TestSourceType)

break these into separate tests with descriptive names.
testRegisteringRaisesWhenAlreadyRegistered

Comments from Reviewable

Review status: 0 of 5 files reviewed at latest revision, 6 unresolved discussions.

artifacts/registry.py, line 37 [r1] (raw file):
Previously, destijl (Greg) wrote…
> This just seems like a weird mix of roles that doesn't really save any code. It should just be a registry. As is it's a registry and a factory for only a subtype of artifact, but not artifacts themselves. Artifacts are created in a completely different module by a different class.

ack moved to source type factory

artifacts/registry.py, line 81 [r1] (raw file):
Previously, destijl (Greg) wrote…
> we should put register and deregister next to each other. I think logical grouping is more important than strict alphabetical.

ack

artifacts/registry.py, line 174 [r1] (raw file):
Previously, destijl (Greg) wrote…
> I missed that these were class methods on the first pass. Since this class has a mix of methods that are very different: source type registration (class level) and artifact registration (object level) I think those should be grouped together rather than be sprinkled through the class in alphabetical order. It may even make more sense to split the source type registry into a different class.

ack

tests/registry_test.py, line 46 [r2] (raw file):
Previously, destijl (Greg) wrote…
> just add a GetSourceTypes method and call len on it rather than doing this.

ack

tests/registry_test.py, line 116 [r2] (raw file):
Previously, destijl (Greg) wrote…
> break these into separate tests with descriptive names.
>
> testRegisteringRaisesWhenAlreadyRegistered

ack

Comments from Reviewable

Reviewed 4 of 5 files at r1, 1 of 1 files at r2, 5 of 5 files at r3.
Review status: all files reviewed at latest revision, 6 unresolved discussions.

Comments from Reviewable


fix: Updated all Glitch URLs used to import/remix a GitHub repo

Closes #36834

@scissorsneedfoodtoo I checked out this PR locally and notice there are still 61 places in various challenges where the url needs to be changed.  I just searched for https://glitch.com/#!/import/ within VS Code and found them.  If you want, I can add another commit to capture these other 61 urls which need to be changed or you can do the same.  Just let me know.

@RandellDawson, thank you for catching that. I was originally searching for the phrase "Start this project on Glitch", but searching for the original url I can see all the files I missed.
I'll work on updating all of the ones I missed in English. Do you think we should update all the other languages here, or submit those changes as separate PRs?

Do you think we should update all the other languages here, or submit those changes as separate PRs?

They can come in a separate PR.
Is this good to go?

@RandellDawson LGTM

@RandellDawson LGTM

You speaking to yourself 😄 ?

@raisedadead It was early.

Thank you again for your thorough reviews, @RandellDawson.


portrait or landscape video

objective
create vertical (portrait) video
ffmpeg command
ffmpeg -h

-s size             set frame size (WxH or abbreviation)

kalstar.py
'-s', '1920x1080',
try to change into
'-s', '1080x1920',
result
still get the horizontal (landscape) video
expected result
get the vertical (portrait) video
suggestion
nice to have video w x h parameter so that user can create vertical or horizontal video
best regards

This feature would require to start stellarium in windowed mode or bring it into windows mode post start. Stellarium would need to provide a way to control this which it does not. Since that functionality is not supported by stellarium i cannot do anything within the bounds of a reasonable implementation.

I reopened the issue. It might actually be a good idea to have such a feature although I'm not sure how to make this happen at the moment. Portrait orientation would be much better suited for distributing videos over social media channels aimed at smartphones.

you got that right in purpose to publish it on ig, tiktok or utube short,
currently solve it with moviepy
e.g.
pip install -U moviepy
from moviepy.editor import VideoFileClip
video_clip = VideoFileClip("kalstar_stellarium_without_audio.mp4")

# edtv vertical = 720 x 576
# hd vertical = 1920 x 1080
# 4k vertical = 3840 x 2160
# 8k vertical = 7680 x 4320
height = 3840
width = 2160

video_resized = video_clip.resize(height = height)

video_croped = video_resized.crop(x_center = height / 2, # or width / 2, depend on the resolution choice
                                  y_center = height / 2,
                                  width = width, height = height)

video_croped .write_videofile('ig.mp4', fps = 60)

the problem here is
crop generated video focus on the center,
so
above code remove the label information
about place
and
date time
on video,
perhaps you have better idea
how to put information label about place and date time in portrait video
thanks and best regards

In general there is a way to start stellarium in windowed mode and use a resolution that is portrait mode. However there is one big drawback. Stellarium will not let me create a window whose size exceeds the screen resolution. Therefore any portrait mode window would be limited to 1080 pixel height on a 1920x1080 display.  Would that even be usefull for your video?

I can probably fix it. But it will probably only work with GNOME and possibly on windows if you want Full-HD vertical video. Here is an example:
https://github.com/beltoforion/stellarium-to-video/assets/2202567/baee9422-7594-4fc3-a7c0-fe4562d6a518
I will see wether i can make it work on windows too and then push the modification to the master branch.

great, thanks
usually re processing again all of kalstar output video (resize to 4k, and add sound)
before upload to soc med
so it doesnet matter, whatever video shape (w, h) kalstar generated
suggestion for windows user,
just use it on wsl (windows subsidiary linux)
then you free to go from windows users
best regards

It is implemented. Use the -wsz 1080x1920 option (stellarium window size)  in combination with -sz 1080x1920 (mpeg video resolution)


Detection issue with heterogenous cards

Describe the bug
Burn only lists one card with WGPU when both AMD and NVIDIA cards are installed.
7800XT and 2080Ti
To Reproduce
Modify Mnist example with WGPU to use card 1 instead of card 0.
Burn stops stating only one card is detected (the AMD one in my case).
Expected behavior
Burn starts the example using the NVIDIA card.
Desktop

OS: Ubuntu 22.04
Browser: Not relevant
Version: Latest git: 59d41bd

Additional context
Have two cards installed in order to perform tests easily.
Running the NVIDIA card alone works as expected.

Sorry for the late response, didn't notice this issue.
Just to make sure I understand this correctly, your AMD card is not being detected for WGPU?
Do you know if it is detected by vulkan? Maybe something is missing for your AMD card 🤔

No problem. In fact only the AMD card is detected. The NVIDIA one is not.

Burn stops stating only one card is detected (the AMD one in my case).

Whoops, I read that the other way around 😅 Thanks for clarifying.
You said you modified the example to specify which device to use. Do you have the code example? And perhaps the full error trace could also help identify the issue.

I run the mnist example with only a single tweak:
line 47: let device = WgpuDevice::DiscreteGPU(1);
The related error is : "No Discrete device found, adapters [...]"
It only lists the AMD one.

Ahh ok and in the adapters listed in the error message the CUDA device is not listed.
When you say you can use the card with cuda dedicated code, do you mean that it works with Burn using something else?
If not, it could be that vulkan does not detect the device. You could check with vulkan tools (e.g., vkinfo or vkcube) in that case to see if it is a wgpu issue or vulkan issue.

Thanks for your response. I checked and it seems that for some reason the nvidia icd file was missing.
Everything works properly now.
Thanks a lot!


twttr.txt.extractMentions split's dot character

twttr.txt.extractMentions split's dot character
example @my.name
expected : [my.name]
but got [my]

I do not believe that Twitter handles can contain dot characters, so this would be expected behaviour.

Correct.


H5f threw exception

Hi @LiorBanai !
I am facing an issue while trying to run the code on my M2 machine.
Does it suppose to work? Any tip?

recorder.mpco.zip

Hi @Marco-Pellegrino
looking at the HDF.PInvoke supported frameworks it should work https://www.nuget.org/packages/HDF.PInvoke.1.10/
are you compiling it in AnyCPU or x64/32. Since it is native AnyCPU won't work..

Can you run any of the unit tests in x64 and see if they work?

Interestin fact.
PureHDF run without any problem

PureHDF has no dependency on Pinvoke C++. If you only need reading then PureHDF is the library to go with :)

Yes.
I only need to read the data.
Looks like that I will need to learn a little bit PureHDF and convert some of my previous code.
Thanks a lot @LiorBanai :)

I'm having the same issue. I'm trying to use Tensorflow.NET in Unity and getting this error:
DllNotFoundException: hdf5 assembly:<unknown assembly> type:<unknown type> member:(null)
HDF.PInvoke.H5F..cctor () (at /home/appveyor/projects/hdf-pinvoke-1-10/submodules/HDF.PInvoke/HDF5/H5Fpublic.cs:41)
Rethrow as TypeInitializationException: The type initializer for 'HDF.PInvoke.H5F' threw an exception.
HDF5CSharp.Hdf5.OpenFile (System.String filename, System.Boolean readOnly, System.Boolean attemptShortPath) (at <a573135056b64eceaab6f7dd4003494c>:0)
Tensorflow.Keras.Engine.Model.load_weights (System.String filepath, System.Boolean by_name, System.Boolean skip_mismatch, System.Object options) (at <3504e8007fee496baf2c8fdd9578867a>:0)
Slay.Crepe.BuildAndLoadModel (Slay.Crepe+ModelCapacity capacity) (at Assets/Scripts/Sound/AI/Crepe.cs:78)
Slay.Crepe.Start () (at Assets/Scripts/Sound/AI/Crepe.cs:13)

Any idea what I might be doing wrong?


"instposhsshdev" download script doesn't work now that the PSD1 is under .\Release

iex (New-Object Net.WebClient).DownloadString("https://gist.github.com/darkoperator/6152630/raw/c67de4f7cd780ba367cccbc2593f38d18ce6df89/instposhsshdev")
This unzips the master, yet the psd1 file is buried in a subdirectory.
I can do a PR to fix later.

I need to remove that people should be installing from the gallery


Organize the example/ folder

There are lots of examples in https://github.com/rochacbruno/dynaconf/tree/master/example
And those apps are set to run on travis by:
https://github.com/rochacbruno/dynaconf/blob/d08284fa050d71647db55c56f6c9a218494f90bb/Makefile#L3-L33
We need to organize the examples by feature having a better tree like:
frameworks/...
   .../flask..
   .../django
merge/
   .../merge
   .../dynaconf_merge
formats/
   .../toml
   ../yaml
includes/..
etc/...

I want  to  add some more changes  required for this issue:

The example folder should be renamed to functional_tests
The ~Makefile~ should not be used anymore to execute those tests

IT will be a script  run.sh on  that same folder  that will traverse and for each subfolder find a test.sh and run  it.
Should be  a SH because it deals with environment variables
At the end the run.sh will output a simple report
The azure-pipelines should also be updated for the windows tests (we can have a special run.windows.bat


Cleanup

Some misc cleanup including adding a .gitignore entry and updating some of the grad division URLs.

thank you!


Fibaro RGBW 441 switch has no color wheel in HA (missing Multilevel Switch value IDs for endpoint 0)

Is your problem within Home Assistant (Core or Z-Wave JS Integration)?
YES, BUT a Home Assistant developer has told me to come here
Is your problem within ZWaveJS2MQTT?
NO, my problem is NOT within ZWaveJS2MQTT
Checklist

[X] I have checked the troubleshooting section and my problem is not described there.

[X] I have read the changelog and my problem was not mentioned there.

Describe the bug
What causes the bug?
Configuration file is missing compat flag
What do you observe?
No color wheel in HA
What did you expect to happen?
Have a entity with a color wheel
Steps to reproduce the behavior:
Add fibaro FGRGBW (version 441) to your system
Solution:
Add:
,"compat": {
                 // This device supports RGBW control on the root endpoint
		"preserveRootApplicationCCValueIDs": true 	}
to the file devices/0x010f/fgrgbw.json
For corrrect file and tests, see also:
#home-assistant/core/issues/47888
Device information
Manufacturer:  Fibaro
Model name:  FGRGBW
Node ID in your network: 7
How are you using node-zwave-js?

[X] zwavejs2mqtt Docker image (latest)
[ ] zwavejs2mqtt Docker image (dev)
[ ] zwavejs2mqtt Docker manually built (please specify branches)
[ ] ioBroker.zwave2 adapter (please specify version)
[ ] HomeAssistant zwave_js integration  (please specify version)
[ ] pkg
[ ] node-red-contrib-zwave-js (please specify version, double click node to find out)
[ ] Manually built from GitHub (please specify branch)
[ ] Other (please describe)

Which branches or versions?
version:
node-zwave-js branch: 7.10.1
zwavejs2mqtt branch: 5.2.1
Did you change anything?
no
If yes, what did you change?
Solution described above
Did this work before?
Yes (please describe)
If yes, where did it work?
Worked in old Zwave integration
Attach Driver Logfile
Fixed by adding correct file (see also https://github.com/home-assistant/core/issues/47888)
2021-07-05T18:12:00.629Z CNTRLR [Node 007] User-provided device config loaded

@zwave-js-bot add compat flag to 0x010f:0x0900:0x1000:0.0
// This device exposes the RGBW control on the root endpoint
"preserveRootApplicationCCValueIDs": true

Should be fixed in today's nightly config or the next official release.
You'll need to re-interview the device probably.

Does this also fix the 442 device?

Does this also fix the 442 device?
No, the update is for the 441. For me, the 442 is working as it should be, so that must be another problem.

For me not solved unfortunately. At least apparently.
All updated and rebooted, new entity is discovered (supporting RGBw, but it's unavailable and any call to light.turn_on fail)

zwave_dump.zip

For me not solved unfortunately. At least apparently.
All updated and rebooted, new entity is discovered (supporting RGBw, but it's unavailable and any call to light.turn_on fail)

zwave_dump.zip

For me it's ok with latest releases (zwave-js 7.12 and HA 2021.7.2), either without doing a node re-interview.

For me not solved unfortunately. At least apparently.
All updated and rebooted, new entity is discovered (supporting RGBw, but it's unavailable and any call to light.turn_on fail)
For me it's ok with latest releases (zwave-js 7.12 and HA 2021.7.2), either without doing a node re-interview.
You have to turn on the light first to get the color wheel

Sure I know I have to turn on.. but the RGBw entity is shown as unavailable and any try to turn on fail.
The other entity works and turn on the device (without the color control).
This is driving me crazy.
Can you show my your fibaro params?
If your works.. mine must works 🤐

No way. I removed the integration, deleted the entities, rebooted, done all of this many times.. but same result.
All the endpoints are discovered.. but the RGBw one is not responding. I want to cry.
When it say that is unavailable without showing the palette, anyway, moving the slider change the brightness!! 🥴😫

Not at home, so did not yet got the possibility to test. Will let you know as soon as I have.
Extreme79 @.***> schreef op 17 juli 2021 15:58:07 CEST:

No way. I removed the integration, deleted the entities, rebooted, done
all of this many times.. but same result.>
All the endpoints are discovered.. but the RGBw one is not responding.
I want to cry.>
When it say that is unavailable without showing the palette, anyway,
moving the slider change the brightness!! 🥴😫>

-- >
You are receiving this because you authored the thread.>
Reply to this email directly or view it on GitHub:>
https://github.com/zwave-js/node-zwave-js/issues/2981#issuecomment-881903559

--
Verstuurd vanaf mijn Android apparaat met K-9 Mail. Excuseer mijn beknoptheid.

@Extreme79, tested it today. Removed my additional config file so that I'm, using the one from the latest zwave-js-mqtt now. For me it works. Unfortunately, I have to little knowledge on the exact working of the zwave to help you on why your endpoint stays unavailable.

I'll try again when I'll be back to home.
It's so strange, I' starting to suspect that something is messing in assistant registry but I'm unsure, I probably need someone expert in home assistant.


Update repositories.txt

edited

@ArduinoBot

Hello @DefHam140. The automated system here only operates on open pull requests. Since this pull request is closed, the bot won't pay any more attention to it.
But this human is happy to provide assistance. Was there something you needed from the bot?


[Bug]: Placement issues in vertical stake.

https://user-images.githubusercontent.com/890915/211354696-154bdeb5-ca8b-4a05-9b66-66db53ada464.mp4

Mobile breakpoint has been reduced to 450px, so this issue should be fixed. It can still be experienced on mobile viewport, but that is expected right now.


Consolidate Code used between Mobile and Desktop Libraries

Fixes #127

In the green now:

The lines remaining are indeed duplicates but I can not find a way to simplify this down further for now. This is due to the need to create a pathway to the shared code and the shared doc code lines.


Move columns not working well on touch devices

In grids with huge horizontal scroll the moved columns ar e not getting repositioned correctly. I am working on this issue.

Hi,
I am now working to fix this up.

I was trying to use touchEvents (touchstart, touchmove and touchend/ touchcancel). Strange but fact is that touchend after touchmove is not well supported by most of touch devices.
http://stackoverflow.com/questions/11314185/multiple-touches-touchend-event-fired-only-when-a-touchmove-occurs
I am not very sure how can we implement this feature on touch devices. @PaulL1 any suggestion ?

Absolutely no idea.  :-)  I do know that we need to be careful that just because devices support touch events doesn't mean that they don't also have a mouse - we have a few issues with laptops that are touch enabled but people are trying to use a mouse on them and it's not working.
I think if we're going to try to do this on touch devices we need to write down what semantics we want for each of the touch events on a header.  Because we're trying to do sort, menu open and drag all at the same time, and I'm not sure there's enough touch events to do all of them.

The issue appears to be that different devices are firing different events, but yes its true that our column headers have a lot of events to handle.
@swalters once suggested to implement move columns differently. I am not very sure might be we can come up with a better design for move columns. I have time these days to do any changes or fix issues.

Might be in our docs/ tutorials we can mentions which features will/ will not work with touch devices.

@jpuri, I think #3142 will fix this.  At least it does on my iPad, not sure about other touch enabled devices.  Do you want to test it out?

I think this is resolved.  Closing.


Sidemav changes

Summary

Adding changes to SideNav component to meet AS use cases.

Change List (commits, features, bugs, etc)

made changes to Header.jsx to remove console log and to fix header along with sidenav
changed SideNav to allow for passing along extra props and dictate the elements being rendered.

Related Issues

Closes IBM/carbon-addons-iot-react#183

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.38.0 :tada:
The release is available on npm package (@release-1.x dist-tag)
Your semantic-release bot :package::rocket: