DiplEd - issue in the display or in the encoding?

Checking the situation in DHARMA_DiplEdKutaraManavaManchesterB2.xml
Is a <subst>missing or do I need to add conditions in the code?

Another example in Zaki's : <add place="below" rend="mark">ki</add>

for the case in DHARMA_DiplEdKutaraManavaManchesterB2.xml, there are indeed deletions being made in the sublinear additions. this photo shows what the scribe was doing.

the TEI encoding is:
 <subst>lavan a<add place="below">halavan a</add></subst>kon amama:liṁ <subst>hīka: <add place="below">ṅahika,</add></subst>,
this expresses the correct meaning, in my opinion. I am adding @danbalogh so he can check whether the EGD foresees such cases.
@ajaniak : for Zaki's case, could you contact him?

I agree with the encoding. Display should be possible to implement with the deletion markers inside the addition markers. The EGD does not explicitly cater for such cases, and I myself think doing so would be a needless complication. It does say (§4.4.1) that "the contents of this element [i.e. <add>] may include additional markup, e.g. for reading difficulties" and indeed, any element I can think of could occur within an <add>, for instance, <g> or <supplied>; even <add> or another layer of <subst> might potentially occur within <add>. All of these should be displayed normally, within the markers for addition.


Ramneek/write once

I think using a function that does all the checks and caching logic is better than using a decorator.
The decorator would work nicely with the function for the GET command, but for HGET, HMGET there is a mismatch b/w what is being cached(the whole hashmap) and what is being requested (hashmap[key]).
Another reason is that I don't think decorators naturally fit in the use case which requires working with specific arguments passed to the base function. We need to convert args to kwargs to use this reliably.

@codenet changed prefix -> suffix here.
https://github.com/codenet/popper/pull/221 can also be merged now.


[KeyVault] - Use RBAC for permissions

What

Remove access permissions from ARM template
Switch to RBAC based permission model for KV

Why
Due to a recent permission that was added on the service side, our nightly tests
started failing as the ARM template has not been updated with the new
permission. Instead of adding the permissions, Heath noticed that we can switch
to RBAC roles now and avoid having to chase these things are they're added.
This commit just ports that over to Azure SDK for JS.

/azp run js - keyvault-keys - tests


User Snippest

VSCode Version: Insiders
OS Version: win10

Steps to Reproduce:

i found markdown.json, didn't work when i try to set a personally snippest

Does this issue occur when all extensions are disabled?: Yes/No

I don't understand your problem.
Please explain with reproducible steps.


Update mailsy extension

Description

Added Logout feature to log out of the account.
Removed the Refresh feature.

Screencast

Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed outside of the metadata folder

Could you look into the conflicts here @BalliAsghar

Done


TELEWORK: change supervisorName field to reorder the name

User Story
As an employee and supervisor I expect the supervisor/manager name should be in the format "Stella Archer" instead of "Archer,Stella".
Task

[ ] Change the order of the name components in the supervisorName field as we did with the employee field.

Acceptance Criteria

[ ]  The name will appear in the order "Stella Archer".

@DonMoffatt We need to ask ODS to send us the supervisor's first and last name separately so we can merge them on our backend and send it over to forms. Currently, we are receiving the full name.
Do you know who the right person to ask is?

@T854236 Could you and Justin address what Iman said above? "We need to ask ODS to send us the supervisor's first and last name separately so we can merge them on our backend and send it over to forms. Currently, we are receiving the full name."

@DonMoffatt @iman-jamali-fw
We can split the full name to first and last name with similar logic you have Don.  How do you want to handle middle name?  If we use simple split, it will be part of the first name.

@DonMoffatt @iman-jamali-fw
We can split the full name to first and last name with similar logic you have Don. How do you want to handle middle name? If we use simple split, it will be part of the first name.

I think that's fine: e.g. my full name is John Donald Moffatt, so if you want to write it that way, that's fine. Note that on the employee name side we use whatever the person normally goes by, rather than strictly first name (my name appears as "Don Moffatt" rather than "John Moffatt"). That would be ideal, but if you can write it either as "John Moffatt" or "John Donald Moffatt" I think users would be satisfied.  If you have a choice of the latter two options, I would prefer "John Moffatt".

@DonMoffatt should we then use the existing supervisor_name as the full name but following the format suggested instead of with the comma?

The name for the field is supervisorName but yes, if you could make it look like "Stella Archer" that would save me some trouble in updating Camunda.

@DonMoffatt  Changes complete against supervisor_name in the API endpoint.  I believe that is mapped to supervisorName in Camunda.

This looks good - thanks! I will move it to review and have @Stella-Archer  look it tomorrow before we close it.

Thank you @T854236 ! this is great!
I was wondering if you can do the same change for the name field. We merged the first and last name on our backend under a new name (displayName). This caused some issues, since we need to change the name of that field in a few places in Camunda and form scripts (haven't done that yet). Can you please change the format of name similar to what you did for the supervisor's name?
@DonMoffatt This would make the form workflow runs as before, we just need to change the API name of Employee Name back to name.

Thank you @T854236 ! this is great! I was wondering if you can do the same change for the name field. We merged the first and last name on our backend under a new name (displayName). This caused some issues, since we need to change the name of that field in a few places in Camunda and form scripts (haven't done that yet). Can you please change the format of name similar to what you did for the supervisor's name?
@DonMoffatt This would make the form workflow runs as before, we just need to change the API name of Employee Name back to name.

I updated the Camunda workflow to use displayName and uploaded it a short time ago. @iman-jamali-fw  Should I change it back to "name"? In any case, email still isn't working (I am not being sent a copy of my submission).

I will hold off and leave it as displayName unless otherwise directed. It would be easy enough to swap "name" back in, however. I am also concerned about introducing versioning issues with the workflow if others are updating it for other reasons. I am more concerned about why I didn't receive an email, however.

@iman-jamali-fw @DonMoffatt
Same logic applied to the name column in DEV.  Please review.

@iman-jamali-fw @DonMoffatt
Same logic applied to the name column in DEV. Please review.

Thanks @T854236 - should I change the field back to "name" on both the form and workflow? Easily done - just let me know.

Great! Thank you @T854236
@DonMoffatt Yes please change it back to "name" on the form and workflow. It should then work on DEV and TEST.
Once everything was OK please let @T854236 know to make the same change for PROD. Thank you

I've made the changes and the fields fill correctly (yay!) but I still don't get a copy.

Thank you @DonMoffatt
I'll look into it and update you.

@DonMoffatt Workflow works again on DEV.
The cause of the issue was that Telework had no workflow assigned to it. This probably happened after the form was updated.

@iman-jamali-fw  That would do it!

works great thanks!


Back icon cannot be set for the header

Displaying the back "arrow" icon in the header seems to be automatic functionality on iOS, but on Android this needs to be done explicitly on the toolbar when using a plain Activity subclass.
@gliechtenstein not sure how this should be handled jason syntax wise to keep compatibility with iOS?

Actually this should more correctly be referring to the "up affordance" per Android documentation on navigation

I didn't implement this originally because I think Android's global back button is somewhat equivalent to this feature, and trying to think of a compatible way to express this on ios and android was too much of a headache (not just initially but things like this may introduce unexpected edge cases, which we may need to come back and fix in convoluted ways)
Plus, I think most Android users are familiar with using the global back button anyway, which is why I just left this as is for now.
But if you have a compelling reason for adding this despite this, please feel free to share. Or if you have a good idea on a JSON spec for this without any headache, that's totally welcome too.

I agree with @gliechtenstein on this point. On Android, the global back button seems enough.


Feature/login

@al-the-x  Here is our new repo... We lost some code when refactoring our file tree, which made us migrate to this repo.
So, we were trying to Login with the Petowner button and being redirected to the Owner's page.
In order to redirect the Petsitter to the sitter's page, we used the $state.go('client') in the Factory and it works well.
Now, we are trying to use the $state.go or even the $transitionTo inside the 'OwnerBtnCtrl'  to redirect the Owner to Owner's page. But it won't work... We can get it work if we write the login function inside the Controller and use the $state.go('owner') . However, based on what I have heard, the login function should be inside a Factory. If it does need to be inside a Factory, how could we redirect the Owner to his page after importing the Auth.login inside the Controller? Any help would be appreciated.

Hmmmm... But I'm thinking that if owner only has one page, and he will only read that page. Perhaps, it shouldn't be a problem to have owner logging in with a Controller? Does it make sense?

@al-the-x This is the only use for it at the moment, as per Logan's suggestion.  We're still a little fuzzy on the whole onAuth thing though. We have read through the firebase documentation but we haven't had much luck.  Do you have any suggestions for other resources that may help us?

I think you're getting tripped up in the complexity of that Auth service. I can tell exactly where that code originated. You might have an easier time seeing your way out by re-implementing that as a single big procedure... Diagram it. Figure out what it's doing. Then figure out what you need.

Remember that Authentication and Authorization are separate concerns. Figuring out who someone is -- their Facebook identity, for example -- comes first. Then identify them as a Sitter or an Owner, logically. You might collapse that into a single step in the User Interface, but your code should still take those individual steps in that order.


Internal error : Unsupported data type in hasher

Describe the bug
while running the below SQL, I hit this internal error
Error running remote query: status: Internal, message: "Internal error reading points from database 844910ece80be8bc_3c0bd4c89186ca89:  Internal error executing plan: Arrow error: External error: Arrow error: External error: Arrow error: External error: Execution error: Internal error: Unsupported data type in hasher. This was likely caused by a bug in DataFusion's code and we would welcome that you file an bug report in our issue tracker", details: [], metadata: MetadataMap { headers: {"content-type": "application/grpc", "date": "Tue, 03 Aug 2021 18:55:08 GMT"} }
To Reproduce
SQL:
SELECT Row_number()
OVER (
partition BY Date_trunc('minute', time), bucket_id, partition_id
ORDER BY time DESC)    AS rn,
gauge,
Date_trunc('minute', time) AS time_bucket,
env
FROM   storage_usage_bucket_cardinality
WHERE  Cast(time AS BIGINT) > Cast(Now() AS BIGINT) - 5 * 60 *<PHONE_NUMBER>
AND time <= Now();
Description of table storage_usage_bucket_cardinality
+---------------+--------------+----------------------------------+--------------+-----------------------------+-------------+
| table_catalog | table_schema | table_name                       | column_name  | data_type                   | is_nullable |
+---------------+--------------+----------------------------------+--------------+-----------------------------+-------------+
| public        | iox          | storage_usage_bucket_cardinality | bucket_id    | Dictionary(Int32, Utf8)     | YES         |
| public        | iox          | storage_usage_bucket_cardinality | env          | Dictionary(Int32, Utf8)     | YES         |
| public        | iox          | storage_usage_bucket_cardinality | gauge        | Float64                     | YES         |
| public        | iox          | storage_usage_bucket_cardinality | host         | Dictionary(Int32, Utf8)     | YES         |
| public        | iox          | storage_usage_bucket_cardinality | hostname     | Dictionary(Int32, Utf8)     | YES         |
| public        | iox          | storage_usage_bucket_cardinality | node_id      | Dictionary(Int32, Utf8)     | YES         |
| public        | iox          | storage_usage_bucket_cardinality | nodename     | Dictionary(Int32, Utf8)     | YES         |
| public        | iox          | storage_usage_bucket_cardinality | org_id       | Dictionary(Int32, Utf8)     | YES         |
| public        | iox          | storage_usage_bucket_cardinality | partition_id | Dictionary(Int32, Utf8)     | YES         |
| public        | iox          | storage_usage_bucket_cardinality | role         | Dictionary(Int32, Utf8)     | YES         |
| public        | iox          | storage_usage_bucket_cardinality | time         | Timestamp(Nanosecond, None) | NO          |
| public        | iox          | storage_usage_bucket_cardinality | url          | Dictionary(Int32, Utf8)     | YES         |
+---------------+--------------+----------------------------------+--------------+-----------------------------+-------------+

Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Add any other context about the problem here.

The error message could be improved.
I think it's trying to hash the dictionaries bucket_id and partition_id which misses.an implementation.
There is a PR over here from @alamb to support this.
https://github.com/apache/arrow-datafusion/pull/812

I will figure this one out

Here is a reproducer:
diff --git a/datafusion/tests/sql.rs b/datafusion/tests/sql.rs
index 379cad623..4b8f75191 100644
--- a/datafusion/tests/sql.rs
+++ b/datafusion/tests/sql.rs
@@ -3219,9 +3219,17 @@ async fn query_on_string_dictionary() -> Result<()> {
     let expected = vec![vec!["NULL", "1"], vec!["one", "1"], vec!["three", "1"]];
     assert_eq!(expected, actual);

+    // window functions
+    let sql = "SELECT d1, row_number() OVER (partition by d1) FROM test";
+    let mut actual = execute(&mut ctx, sql).await;
+    actual.sort();
+    let expected = vec![vec!["NULL", "1"], vec!["one", "1"], vec!["three", "1"]];
+    assert_eq!(expected, actual);
+
     Ok(())
 }

+
 #[tokio::test]
 async fn query_without_from() -> Result<()> {
     // Test for SELECT <expression> without FROM.

Fails with:
thread 'query_on_string_dictionary' panicked at 'Executing physical plan for 'SELECT d1, row_number() OVER (partition by d1) FROM test': ProjectionExec { expr: [(Column { name: "d1", index: 1 }, "d1"), (Column { name: "ROW_NUMBER() PARTITION BY [#test.d1]", index: 0 }, "ROW_NUMBER()")], schema: Schema { fields: [Field { name: "d1", data_type: Dictionary(Int32, Utf8), nullable: true, dict_id: 0, dict_is_ordered: false, metadata: None }, Field { name: "ROW_NUMBER()", data_type: UInt64, nullable: false, dict_id: 0, dict_is_ordered: false, metadata: None }], metadata: {} }, input: WindowAggExec { input: RepartitionExec { input: SortExec { input: CoalescePartitionsExec { input: CoalesceBatchesExec { input: RepartitionExec { input: RepartitionExec { input: partitions: [...]schema: Schema { fields: [Field { name: "d1", data_type: Dictionary(Int32, Utf8), nullable: true, dict_id: 0, dict_is_ordered: false, metadata: None }], metadata: {} }projection: Some([0]), partitioning: RoundRobinBatch(16), channels: Mutex { data: {} }, metrics: RepartitionMetrics { fetch_nanos: SQLMetric { value: 0, metric_type: TimeNanos }, repart_nanos: SQLMetric { value: 0, metric_type: TimeNanos }, send_nanos: SQLMetric { value: 0, metric_type: TimeNanos } } }, partitioning: Hash([Column { name: "d1", index: 0 }], 16), channels: Mutex { data: {} }, metrics: RepartitionMetrics { fetch_nanos: SQLMetric { value: 0, metric_type: TimeNanos }, repart_nanos: SQLMetric { value: 0, metric_type: TimeNanos }, send_nanos: SQLMetric { value: 0, metric_type: TimeNanos } } }, target_batch_size: 4096 } }, expr: [PhysicalSortExpr { expr: Column { name: "d1", index: 0 }, options: SortOptions { descending: false, nulls_first: true } }], output_rows: SQLMetric { value: 0, metric_type: Counter }, sort_time_nanos: SQLMetric { value: 0, metric_type: TimeNanos }, preserve_partitioning: false }, partitioning: RoundRobinBatch(16), channels: Mutex { data: {} }, metrics: RepartitionMetrics { fetch_nanos: SQLMetric { value: 0, metric_type: TimeNanos }, repart_nanos: SQLMetric { value: 0, metric_type: TimeNanos }, send_nanos: SQLMetric { value: 0, metric_type: TimeNanos } } }, window_expr: [BuiltInWindowExpr { fun: RowNumber, expr: RowNumber { name: "ROW_NUMBER()" }, partition_by: [Column { name: "d1", index: 0 }], order_by: [], window_frame: None }], schema: Schema { fields: [Field { name: "ROW_NUMBER()", data_type: UInt64, nullable: false, dict_id: 0, dict_is_ordered: false, metadata: None }, Field { name: "d1", data_type: Dictionary(Int32, Utf8), nullable: true, dict_id: 0, dict_is_ordered: false, metadata: None }], metadata: {} }, input_schema: Schema { fields: [Field { name: "d1", data_type: Dictionary(Int32, Utf8), nullable: true, dict_id: 0, dict_is_ordered: false, metadata: None }], metadata: {} } } }: ArrowError(ExternalError(ArrowError(ExternalError(ArrowError(ExternalError(Execution("Internal error: Unsupported data type in hasher. This was likely caused by a bug in DataFusion's code and we would welcome that you file an bug report in our issue tracker")))))))', datafusion/tests/sql.rs:2642:39

I confirmed that the test passes with the changes in https://github.com/apache/arrow-datafusion/pull/812. I will merge #812 as is and then add a specific test in a follow on


TypeErrorImpl (Unexpected null value.) Flutter Web

New Issue Checklist

[ ] I have searched for a similar issue in the project and found none

Issue Info

Info
Value

Platform Name
flutter / web

Platform Version
Flutter 3.0.4 (Stable), Dart 2.17.5

Dio Version
4.0.6

Android Studio / Xcode Version
e.g. Android Studio 2021.1

Repro rate
e.g. all the time (100%)

Issue Description and Steps
I created a new project for flutter web. I am hitting the API and this is the response I am getting. TypeErrorImpl (Unexpected null value.). and Dio error stack trace is this.
"C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/patch/core_patch.dart 963:28   get current
packages/dio/src/dio_mixin.dart 473:35                                                                            fetch
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 84:54   runBody
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 123:5   _async
packages/dio/src/dio_mixin.dart 472:31                                                                            fetch
packages/dio/src/dio_mixin.dart 468:12                                                                            request
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 84:54   runBody
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 123:5   _async
packages/dio/src/dio_mixin.dart 438:33                                                                            request
packages/dio/src/dio_mixin.dart 91:12                                                                             post
packages/cj_projects_web/src/services/auth.service.dart 13:33                                                     logIn
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 84:54   runBody
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 123:5   _async
packages/cj_projects_web/src/services/auth.service.dart 11:29                                                     logIn
packages/cj_projects_web/src/providers/auth.provider.dart 20:35                                                   logIn
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 84:54   runBody
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 123:5   _async
packages/cj_projects_web/src/providers/auth.provider.dart 19:22                                                   logIn
packages/cj_projects_web/src/screens/login_screen.dart 126:7                                                      [_handleLogin]
packages/flutter/src/material/ink_well.dart 1005:21                                                               [_handleTap]
packages/flutter/src/material/ink_well.dart 775:5                                                                 [_simulateTap]
packages/flutter/src/widgets/actions.dart 534:39                                                                  invoke
packages/flutter/src/widgets/actions.dart 1500:21                                                                 invoke
packages/flutter/src/widgets/actions.dart 573:20                                                                  invokeAction
packages/flutter/src/widgets/shortcuts.dart 755:36                                                                handleKeypress
packages/flutter/src/widgets/shortcuts.dart 956:20                                                                [_handleOnKey]
packages/flutter/src/widgets/focus_manager.dart 1687:25                                                           [_handleKeyMessage]
packages/flutter/src/services/hardware_keyboard.dart 828:16                                                       [_dispatchKeyMessage]
packages/flutter/src/services/hardware_keyboard.dart 875:73                                                       handleRawKeyMessage
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 84:54   runBody
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 123:5   _async
packages/flutter/src/services/hardware_keyboard.dart 854:51                                                       handleRawKeyMessage
packages/flutter/src/services/platform_channel.dart 77:49
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 84:54   runBody
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 123:5   _async
packages/flutter/src/services/platform_channel.dart 76:58
packages/flutter/src/services/binding.dart 380:35
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 84:54   runBody
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 123:5   _async
packages/flutter/src/services/binding.dart 377:98
C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/_engine/engine/platform_dispatcher.dart 1121:13  invoke2
C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/ui/channel_buffers.dart 25:12                    invoke
C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/ui/channel_buffers.dart 65:7                     push
C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/ui/channel_buffers.dart 130:16                   push
C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/_engine/engine/platform_dispatcher.dart 305:25   invokeOnPlatformMessage
C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/_engine/engine/keyboard.dart 130:39              [_handleHtmlEvent]
C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/_engine/engine/keyboard.dart 32:7                "
I have already tried:
lowering the version to 4.0.4
removing time out from Dio initialization.
disabling firewall ( just because I saw this somewhere. )
Migrated from flutter stable to master and back again.
ran flutter pub clean a bench of times.
Kindly help!!! I'll paste the flutter doctor as well just in case.
[√] Flutter (Channel stable, 3.0.4, on Microsoft Windows [Version 10.0.22000.739], locale en-US)
• Flutter version 3.0.4 at D:\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 85684f9300 (8 days ago), 2022-06-30 13:22:47 -0700    • Engine revision 6ba2af10bb
• Dart version 2.17.5
• DevTools version 2.12.2
[√] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
• Android SDK at C:\Users\hp\AppData\Local\Android\sdk
• Platform android-32, build-tools 32.1.0-rc1
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[!] Visual Studio - develop for Windows (Visual Studio Community 2022 17.0.6)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.0.32126.317
X Visual Studio is missing necessary components. Please re-run the Visual Studio installer for the "Desktop development with C++"
workload, and include these components:
MSVC v142 - VS 2019 C++ x64/x86 build tools
- If there are multiple build tool versions available, install the latest
C++ CMake tools for Windows
Windows 10 SDK
[√] Android Studio (version 2021.1)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)
[√] VS Code (version 1.68.1)
• VS Code at C:\Users\hp\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.44.0
[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.22000.739]
• Chrome (web)      • chrome  • web-javascript • Google Chrome 103.0.5060.114
• Edge (web)        • edge    • web-javascript • Microsoft Edge 103.0.1264.44
[√] HTTP Host Availability
• All required HTTP hosts are available
! Doctor found issues in 1 category.
Also.. this is my debug console at the time.. I can't figure out what is wrong with this?
Error: Expected a value of type 'String', but got one of type 'Null'
at Object.throw_ [as throw] (http://localhost:65467/dart_sdk.js:5080:11)
at Object.castError (http://localhost:65467/dart_sdk.js:5039:15)
at Object.cast [as as] (http://localhost:65467/dart_sdk.js:5356:17)
at String.as (http://localhost:65467/dart_sdk.js:46240:19)
at auth$46service.AuthService.new.logIn (http://localhost:65467/packages/cj_projects_web/src/services/auth.service.dart.lib.js:36:47)
at logIn.throw ()
at http://localhost:65467/dart_sdk.js:40646:38
at _RootZone.runBinary (http://localhost:65467/dart_sdk.js:40515:59)
at _FutureListener.thenAwait.handleError (http://localhost:65467/dart_sdk.js:35449:33)
at handleError (http://localhost:65467/dart_sdk.js:36015:51)
at _Future._propagateToListeners (http://localhost:65467/dart_sdk.js:36041:17)
at [_completeError] (http://localhost:65467/dart_sdk.js:35878:23)
at [_completeError] (http://localhost:65467/dart_sdk.js:35358:36)
at _SyncCompleter.new.completeError (http://localhost:65467/dart_sdk.js:35282:29)
at onError (http://localhost:65467/dart_sdk.js:35122:49)
at _RootZone.runBinary (http://localhost:65467/dart_sdk.js:40515:59)
at _FutureListener.then.handleError (http://localhost:65467/dart_sdk.js:35449:33)
at handleError (http://localhost:65467/dart_sdk.js:36015:51)
at _Future._propagateToListeners (http://localhost:65467/dart_sdk.js:36041:17)
at [_completeError] (http://localhost:65467/dart_sdk.js:35878:23)
at Object._completeWithErrorCallback (http://localhost:65467/dart_sdk.js:40748:27)
at http://localhost:65467/dart_sdk.js:34910:21
at internalCallback (http://localhost:65467/dart_sdk.js:26685:11)

i have same problem,


support multiple roles

Similar to marathon, chronos should support running each job with a specified role.
This would be useful to restrict resources for some nodes to a specific role pin jobs onto them.
Constraints allow these kind of things only, if all frameworks understand how to handle them.

+1


Cannot compile on Raspbian (on Raspberry Pi 3) with MuPDF from Git sources

I'm trying to compile on a Raspberry Pi 3 with Raspbian (with all updates as of today).
In place of MuPDF I used the checked out Git sources (from git://git.ghostscript.com/mupdf.git) as of today.
Not sure if I SHOULD use an officially released source tarball?
Anyway, I'm now seeing this error:

Making all in cups...
Making all in proxy...
Making all in server...
Making all in tools...
Compiling ipptransform.c...
ipptransform.c: In function ‘xform_document’:
ipptransform.c:2081:12: error: too few arguments to function ‘fz_new_pixmap’
   pixmap = fz_new_pixmap(context, cs, (int)ras.header.cupsWidth, (int)ras.band_height);
            ^
In file included from /usr/local/include/mupdf/fitz.h:35:0,
                 from ipptransform.c:26:
/usr/local/include/mupdf/fitz/pixmap.h:51:12: note: declared here
 fz_pixmap *fz_new_pixmap(fz_context *ctx, fz_colorspace *cs, int w, int h, int alpha);
            ^
ipptransform.c:2086:40: error: passing argument 2 of ‘fz_new_draw_device’ from incompatible pointer type [-Werror]
   device = fz_new_draw_device(context, pixmap);
                                        ^
In file included from /usr/local/include/mupdf/fitz.h:46:0,
                 from ipptransform.c:26:
/usr/local/include/mupdf/fitz/device.h:344:12: note: expected ‘const struct fz_matrix *’ but argument is of type ‘struct fz_pixmap *’
 fz_device *fz_new_draw_device(fz_context *ctx, const fz_matrix *transform, fz_pixmap *dest);
            ^
ipptransform.c:2086:12: error: too few arguments to function ‘fz_new_draw_device’
   device = fz_new_draw_device(context, pixmap);
            ^
In file included from /usr/local/include/mupdf/fitz.h:46:0,
                 from ipptransform.c:26:
/usr/local/include/mupdf/fitz/device.h:344:12: note: declared here
 fz_device *fz_new_draw_device(fz_context *ctx, const fz_matrix *transform, fz_pixmap *dest);
            ^
ipptransform.c: At top level:
cc1: error: unrecognized command line option "-Wno-tautological-compare" [-Werror]
cc1: all warnings being treated as errors
../Makedefs:138: recipe for target 'ipptransform.o' failed
make[1]: *** [ipptransform.o] Error 1
Makefile:30: recipe for target 'all' failed
make: *** [all] Error 1

The Git sources are really a pre-release version of 2.0, which is not source compatible... Stick with 1.9a for now until they update the version number that I can detect...


[Blog] Add 2023 Observability Predictions blog

adding 2023 observability predictions blog
Co-authored-by: Paul Stefanski<EMAIL_ADDRESS>co-authored-by: Diogenese Topper<EMAIL_ADDRESS>

@dtopdontstop please sign the CLA so we can start reviewing.

@svrnm thanks, completed now

Preview: https://deploy-preview-2149--opentelemetry.netlify.app/blog/2023/2023-observability-predictions/

First off, thank you for offering to contribute this blog post. I want to acknowledge the work here, and I do agree with it ideologically.
However, I don't feel comfortable with this post here. The title and content is something that I'd really only want to see from the OTel Governance Committee if it were to land on the website/blog.
I think the post as-written is too "business"-y if that makes sense, declaring winners and losers, but the OTel project just isn't focused on things like that. While we're trying to develop an open standard, we're not officially trying to defeat anyone or anything, and the content of the post gives me competitive and unwelcoming vibes.
Lastly, Observability is a larger topic than just instrumentation. A comprehensive prediction post for Observability would have to include other things like data visualization tools, database technologies for storing and querying data, AIOps techniques, Observability data pipeline technology, alerting systems, and more. I think that extends far beyond the purview of the project today, so on that basis alone I'd probably not want to have this posted.

@cartermp I appreciate the feedback and can certainly understand the sentiment. I'll close this one out. Thanks for review and feedback @svrnm @chalin


prevent json.loads error when the json string contains single quote

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.zhanyu seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

Thank you for the submission @bnuzhanyu! 🙂 This change actually has the potential to break a lot of things so I want to be super cautious with the deployment and testing of this. Any chance you can create a Python example with a use case you had in which the json.loads failed? String serialization is a bit challenging in Python, and it's very finicky to get right, especially in a remote setting, as it is with Argo, which performs a json.loads operation.

@flaviuvadan
Thanks for the reply. Here is my example.
from hera.input import InputFrom
from hera.task import Task
from hera.workflow import Workflow
from hera.workflow_service import WorkflowService

def context_config():
    import json, sys
    day = '2022-04-01'
    job_config = {
        "sql": f"select * from table where day='{day}'"
    }
    json.dump([{'context' : job_config}], sys.stdout)

def sql(context):
    print(context['sql'])

def start():
    ws = WorkflowService('localhost:xxx', verify_ssl=False, token=get_sa_token(service_account="default", namespace="argo"))
    w = Workflow('cv-train-flow', ws, namespace='argo')
    tasks = []
    ctx_task_name = 'ctx-gen'
    ctx_gen = Task(ctx_task_name, context_config)
    tasks.append(ctx_gen)
    sql_task = Task('sql', sql, input_from=InputFrom(name=ctx_task_name, parameters=['context']))
    tasks.append(sql_task)

    ctx_gen.next(sql_task)
    w.add_tasks(*tasks)
    w.create()

start()

And got error:
  File "/argo/staging/script", line 2
    context = json.loads('{"sql":"select * from table where day='2022-04-01'"}')
                                                                    ^
SyntaxError: invalid syntax
Error: exit status 1

json.dump / dumps will change \ to \, and " to " ,
no matter how many \ added , it won't help.
like
f"select * from table where day=\'{day}\'"
f"select * from table where day=\\'{day}\\'"
f"select * from table where day=\\\'{day}\\\'"
f"select * from table where day=\\\\'{day}\\\\'"
f'select * from table where day="{day}"'

all of them got failed.

@bnuzhanyu I did some testing against a cluster and everything looks good to me 🙂 Thank you for catching this error and submitting the PR. Any chance you know exactly why the serialization/deserialization fails in this case? I am aware that json.dumps will add the escape character \ but I wonder what's the reasoning? Is it because of the way strings are encoded as strings and wrapper with other quotes, which necessitates escaping the internal quotes of the dumped string?

@bnuzhanyu I did some testing against a cluster and everything looks good to me 🙂 Thank you for catching this error and submitting the PR. I will approve and merge after a question, if you do know the answer.
Any chance you know exactly why the serialization/deserialization fails in this case? I am aware that json.dumps will add the escape character \ but I wonder what's the reasoning? Is it because of the way strings are encoded as strings and wrapper with other quotes, which necessitates escaping the internal quotes of the dumped string?

json.dumps will not add the escape for ' ,  and the  produced python code will mistake for sth like '{"x":"a'a"}'. Also, my change will fail if the string has ''', I think the best way is to replace ' to \' ahead, cause ' would only appear in a key or a string value inside a jsonstring.

Need to bump the VERSION and add a CHANGELOG entry so a new version is published and the change is captured. I think it should be 2.9.1.

Would this done by me or you guys will do it ?

Need to bump the VERSION and add a CHANGELOG entry so a new version is published and the change is captured. I think it should be 2.9.1.

Would this done by me or you guys will do it ?

By you! 🙂 you can certainly skip this step but if we don't update the version in this PR then a new version of Hera will not be published immediately for you to access the bug fix.


Add Single Stake and Unstake Functionality

With the standard of Staking individually / NFT, please add this functionality to cover the universal staking function
Thanks @ilmoi !

The functionality exists in this repo already. You simply need to change the calls to rust to return instructions and then send all the transactions at the same time

Hey, I wanted to leave this here to help people struggling with this issue.
Here's an example of creating a transaction instruction for un-staking that wraps un-staking, ends cooldown and retrieves rewards into one transaction.
  async unstakeNfts(
    bank: any,
    vault: PublicKey,
    farm: PublicKey,
    rewardAMint: PublicKey,
    rewardBMint: PublicKey
  ) {
    const trxInstructions = [];

    const [farmer, farmerBump] = await findFarmerPDA(
      farm,
      this.wallet.publicKey
    );
    const [farmAuth, farmAuthBump] = await findFarmAuthorityPDA(farm);

    const [farmTreasury, farmTreasuryBump] = await findFarmTreasuryPDA(farm);

    const [potA, potABump] = await findRewardsPotPDA(farm, rewardAMint);
    const [potB, potBBump] = await findRewardsPotPDA(farm, rewardBMint);
    const rewardADestination = await this.findATA(
      rewardAMint,
      this.wallet.publicKey
    );
    const rewardBDestination = await this.findATA(
      rewardBMint,
      this.wallet.publicKey
    );

    const endStakingInst = this.farmProgram.instruction.unstake(
      farmAuthBump,
      farmTreasuryBump,
      farmerBump,
      false,
      {
        accounts: {
          farm,
          farmer,
          farmTreasury,
          identity: this.wallet.publicKey,
          bank,
          vault,
          farmAuthority: farmAuth,
          gemBank: this.bankProgram.programId,
          systemProgram: web3.SystemProgram.programId,
        },
        signers: [this.wallet.publicKey] as any,
      }
    );

    const rewardsInst = this.farmProgram.instruction.claim(
      farmAuthBump,
      farmerBump,
      potABump,
      potBBump,
      {
        accounts: {
          farm,
          farmAuthority: farmAuth,
          farmer,
          identity: this.wallet.publicKey,
          rewardAPot: potA,
          rewardAMint,
          rewardADestination,
          rewardBPot: potB,
          rewardBMint,
          rewardBDestination,
          tokenProgram: TOKEN_PROGRAM_ID,
          associatedTokenProgram: ASSOCIATED_TOKEN_PROGRAM_ID,
          systemProgram: web3.SystemProgram.programId,
          rent: web3.SYSVAR_RENT_PUBKEY,
        },
        signers: [this.wallet.publicKey] as any[],
      }
    );
    trxInstructions.push(endStakingInst);
    trxInstructions.push(endStakingInst);
    trxInstructions.push(rewardsInst);

    return new Transaction().add(...trxInstructions);
  }

The code above returns instructions all you need to do is call sendTransaction(instructions, connection, options) and you should be good to go :)

hi i am using above code to buy-pass cool-down functionality but compiler shows errors and it seems that this code is written using class component. can anyone tell me in which file or where should i add this code.


Ionic docs mention Modal option 'showBackdrop' that is not implemented and should be

Ionic version:
Ionic 3.x
I'm submitting a ...
bug report / feature request
Current behavior:
In the ionic docs, while creating a modal, we can submit modalOptions. One of these options is a boolean "showBackdrop" (https://ionicframework.com/docs/api/components/modal/ModalController/).
If I put "showBackdrop" to false, it still shows the backdrop.
Expected behavior:
I would like to see a modal, without a backdrop, that still enables me to interact with anything "behind" the modal.
Steps to reproduce:
http://plnkr.co/edit/Ksf3MpDPB1TqcCVjHWcL?p=preview
Related code:
let modal = this.modalCtrl.create(HomePage, {}, {
        showBackdrop: false
      });

Other information:
Ionic info:
cli packages: (C:\Users\iwant\AppData\Roaming\npm\node_modules)

    @ionic/cli-utils  : 1.9.2
    ionic (Ionic CLI) : 3.9.2

global packages:

    Cordova CLI : not installed

local packages:

    @ionic/app-scripts : 2.1.3
    Cordova Platforms  : none
    Ionic Framework    : ionic-angular 3.6.0

System:

    Android SDK Tools : 26.0.1
    Node              : v7.10.0
    npm               : 4.2.0
    OS                : Windows 10

Hello! Thank you for opening an issue with us!
We will look into this
Thank you for using Ionic

Any progress on this issue?

This is currently scheduled as something that will be looked at after the initial v4 release.

Looks like the class backdrop-hide is correctly applied to the ion-backdrop element however it doesn't have any effect.  As a temporary fix, you can place the following in global.scss:
ion-backdrop.backdrop-hide {
    opacity: 0 !important;
}

It also seems like showBackdrop: true does not show the backdrop for some platforms, particularly iPhone X.


Sync upstream

What this PR does / why we need it:
ingress-nginx 0.25.0 is released https://github.com/kubernetes/ingress-nginx/releases/tag/nginx-0.25.0
This PR syncs the upstream.
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
Special notes for your reviewer:
@Shopify/edgescale

There's some linting issue, the fix is at https://github.com/kubernetes/ingress-nginx/pull/4286. I'll resync once that gets merged.

Upstream has moved to Prow since last sync. Instead of working on making Travis work I'll focus on getting our internal build system integrated and merge this without CI.


Fix blob URLs after elements manipulation while uploading

Summary
This will fix the happy path (element was manipulated but the resource uploaded successfully) for the given issue.
Failure case is still evaluated.
Relevant Technical Choices

To-do

User-facing changes

Testing Instructions

I think we should merge this ASAP and do a follow-up PR with failure case improvements since in most cases upload will succeed.


[type: feature] Add tracing-opentelemetry plugin in shenyu-agent

// Describe your PR here; eg. Fixes #issueNo

Make sure that:

[ ] You have read the contribution guidelines.
[ ] You submit test cases (unit or integration tests) that back your changes.
[ ] Your local test passed mvn clean install -Dmaven.javadoc.skip=true.

Codecov Report

Merging #2694 (257e9ae) into master (96eca76) will decrease coverage by 0.63%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #2694      +/-   ##
============================================
- Coverage     60.24%   59.60%   -0.64%
+ Complexity     4390     4351      -39
============================================
  Files           679      679
  Lines         19467    19464       -3
  Branches       1725     1724       -1
============================================
- Hits          11728    11602     -126
- Misses         6757     6891     +134
+ Partials        982      971      -11

Impacted Files
Coverage Δ

...ache/shenyu/plugin/grpc/cache/GrpcClientCache.java
68.75% <0.00%> (-31.25%)
:arrow_down:

...n/alibaba/dubbo/cache/AlibabaDubboConfigCache.java
43.75% <0.00%> (-31.25%)
:arrow_down:

...gin/apache/dubbo/cache/ApacheDubboConfigCache.java
43.03% <0.00%> (-29.12%)
:arrow_down:

...che/shenyu/sync/data/http/HttpSyncDataService.java
61.38% <0.00%> (-19.81%)
:arrow_down:

...henyu/plugin/grpc/resolver/ShenyuNameResolver.java
44.68% <0.00%> (-18.09%)
:arrow_down:

...a/org/apache/shenyu/common/utils/VersionUtils.java
67.85% <0.00%> (-10.72%)
:arrow_down:

...apache/shenyu/admin/utils/ShenyuDictH2Trigger.java
63.63% <0.00%> (-9.10%)
:arrow_down:

...ache/shenyu/admin/utils/PluginHandleH2Trigger.java
63.63% <0.00%> (-9.10%)
:arrow_down:

.../apache/shenyu/admin/model/dto/BatchCommonDTO.java
50.00% <0.00%> (-7.15%)
:arrow_down:

...apache/shenyu/admin/model/dto/AuthPathWarpDTO.java
57.14% <0.00%> (-7.15%)
:arrow_down:

... and 28 more

Continue to review full report at Codecov.

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


USB Tethering Crashes the Display Window

Environment
OS: Windows 10 20H2 19042.746
scrcpy version: 1.17
Installation method: Windows release (scrcpy-win64-v1.17.zip)
Device model: Lenovo A2010-a
Android version: Android Lollipop 5.1
Describe the bug
scrcpy display window crashes as soon as I enable USB tethering through Android Settings.
INFO: scrcpy 1.17 <https://github.com/Genymobile/scrcpy>
C:\Program Files\scrcpy\scrcpy-server: 1 file pushed, 0 skipped. 44.7 MB/s (34930 bytes in 0.001s)
[server] INFO: Device: LENOVO Lenovo A2010-a (Android 5.1)
INFO: Renderer: direct3d
INFO: Initial texture: 480x848

That disconnects adb. If you run for example adb shell in a separate terminal, enabling USB tethering should also terminate it.

That disconnects adb. If you run for example adb shell in a separate terminal, enabling USB tethering should also terminate it.

Confirmed, scrcpy display window will work again if I restart scrcpy even with USB tethering.

Confirmed, scrcpy display window will work again if I restart scrcpy even with USB tethering.


How to skip packing some project (OSOE-574)

Hello,
I'm using scripts from this repository  , and it works great.
But I have a problem, when I have some sample projects, how do I set them not to be packaged
Jira issue

Hi! Can you please elaborate on what you don't want packaged? Can you show an example repository?

And which workflow/action are you using from this project?
If it's publish-nuget, then note that if there are multiple projects in the repo, then it needs a solution file; it'll try to publish all projects from that. You can remove projects you don't want to publish from that solution (you can specify which solution to use in the workflow, so you can have a separate one), or you can configure <IsPackable>false</IsPackable> in the csproj.

yes ,here  https://github.com/EasyOC/EasyOC.Modules
Originally it also contained a sample Web project, but I set it not to be packaged (I forget the name of that property), and the workflow gave me an error
But today we found that we still need to integrate a Web project to test other modules

or you can configure false in the csproj.

That seems to be the choice. Thank you. Let me add it again

Did it fix the issue?

Hi @Piedone ， It works fine , after when I add <IsPackable>false</IsPackable>  in my project file
thank you!
I have another  question , Dose the release version number  must be numeric only?

Hi @hyzx86, we're happy that the suggested solution works for you.
For better searchability and trackability of open issues, I would ask you to re-post your question on the version number in a new issue, and close this one since it has been answered with success. This will help other users find answers to their questions faster.
Thank you!

Hi @hyzx86, we're happy that the suggested solution works for you.
For better searchability and trackability of open issues, I would ask you to re-post your question on the version number in a new issue, and close this one since it has been answered with success. This will help other users find answers to their questions faster.
Thank you!

I'm not sure if this is an Issue with the release script or nuget, I've opened an issue
https://github.com/Lombiq/GitHub-Actions/issues/213


Add variants of opt2 algorithms for tsp

It is possible to reduce opt2 operations by checking pairs of big lengths first, because they are more common to switch.

Kinda implemented in small random tsp


fix: Replace Chaos reference in README.md with Strata

README.md contained a reference to Chaos. This was the only reference I could find (using the regex [^<|/|"|']Chaos) that wasn't code-related. Changing all the panel names (e.g. ChaosSettingsSlider) is a much bigger refactor and takes a ton of C++ work.
Checks

[x] I have thoroughly tested all of the code I have modified/added/removed to ensure something else did not break
[x] I have followed semantic commit messages e.g. feat: Add foo, chore: Update bar, etc...
[x] My branch has a clear history of changes that can be easy to follow when being reviewed commit-by-commit
[x] My branch is functionally complete; the only changes to be done will be those potentially requested in code review
[x] All changes requested in review have been fixuped into my original commits.
[x] Fully tokenized all my strings (no hardcoded English strings!!) and supplied bulk JSON strings below

Go to bed


Disable merging a WIP Pull request

This PR fixes #4453
The idea behind this pull request is that when the TITLE  of the pull requests starts with [wip] or wip:, then the nobody can merge that pull request until the "wip" indicator is removed from the title

[x] Disable the ability to merge when the PR contains the given prefixes in the UI
[x] Disable the ability to merge when the PR contains the given prefixes in the API
[x] Write tests
[x] Find a way to inject settings in js
[x] Add documentation

Codecov Report

Merging #4529 into master will decrease coverage by 0.01%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master    #4529      +/-   ##
==========================================
- Coverage    20.2%   20.18%   -0.02%
==========================================
  Files         156      156
  Lines       31140    31169      +29
==========================================
  Hits         6292     6292
- Misses      23890    23919      +29
  Partials      958      958

Impacted Files
Coverage Δ

models/pull.go
16.79% <0%> (-0.38%)
:arrow_down:

routers/api/v1/repo/pull.go
0% <0%> (ø)
:arrow_up:

routers/repo/pull.go
0% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

I added some tests + a helper under the PR title input to add WIP: in one click :-)

Do you guys can help me about the documentation ? I can't decide where to put a paragraph on that feature. Should I document it at all ?

Dealing with "Work In Progress" pull requests
Marking a pull request as being a work in progress will prevent that pull request from being accidentally merged. To mark a pull request as being a work in progress, you must prefix its title by WIP: or [WIP] (case insensitive)

@JulienTant I think you can add a new page under usage named pull request and put a section there.

LGTM

I decided to try everything one last time & found a bug, that I fixed: the link bellow the title bar (see bellow) was not working because of a refactoring I made on names :/ This is now fix!

I also remove the useless quote as requested by @lafriks


How can change header content dynamically?

The content of Header (eg.title) is assigned by like:
static navigationOptions = (navigation) => {
        return {
            title: '首页'
            />
        }
    }

if the content of the title comes from redux, how I can achieve this?
Sorry for my poor english

Use navigation.setParams() from the component lifecycle methods or an event callback. This may trigger a re-render. Set your title in the navigationOptions to navigation.state.params.title. Unfortunately if this title change is as a result of an API call, it will be slow to update, would be better if you knew the title ahead of time.

You can set params in the navigate() call, which then can be used in the header. An example of this can be found here: https://reactnavigation.org/docs/navigators/stack#RouteConfigs

@koenpunt if first screen is Container Component and it‘s title comes from redux, Does it mean I must use navigation.setParams() in lifecycle method and may trigger re-render.

Since you can't add the title in the navigate() call, I might suggest adding a new screen called LoadingScreen. This could display a loading status, infinite spinner, logo, etc until the Redux store updates. Upon componentWillReceiveProps() with your hydrated store, you could navigate() to your next screen with title param and populate the page with the loaded state.

I was thinking about how to handle this myself since my first screen has a few fetches and lots of images to load. I think a loading screen or splash logo is an acceptable solution for a first screen. Doesn't have to be fancy. Perhaps a color background with the App name in big bold text. Your total number of API calls and data will dictate the type ofbloading screen you can show.

@FullstackJack The answer is useful in most of scene and can solve my solution thought it bypass the core of problem.I don’t know why react-navigation designed the navigationOptions as a static function.In my view, if in lifecycle method react-navigation provide us interface(or callback),we may not face this problem

I have a similar problem with i18n of titles. We are using yahoo/react-intl which passes the i18n machinery via React's context. They provide components that abstract this away.
But there's no way to access the context from navigationOptions, so I can't get at the intl object to set the title as a string. I've got most of the way there with this:
navigationOptions: () => ({
  headerTitle: <FormattedMessage id="title" />
})

But then I lose out on all the features that the default header provides, like the default text styling and the width adjustment: https://github.com/react-community/react-navigation/blob/ff99d6ec0a2d7a62adfd8d1e6a3c906fcedf294a/src/views/Header.js#L87-L113:

I have the same problem with tab labels too. The assumption in Header._renderTitleComponent – that if headerTitle is anything other than a string, then use it instead of <HeaderTitle> – is what causes the difficulty. I can remove that check and set titleString = headerTitle and my translated text is rendered fine, with all the default styling:

Ok, so I solved my problem by wrapping the top level navigator in injectIntl, and then passing the intl object via screenProps:
const App = injectIntl(({ intl }) => <TopNavigator screenProps={{intl}} />

Then intl becomes available in navigationOptions:
class Screen extends Component {
    static navigationOptions = ({ screenProps: { intl }}) => ({
      title: intl.formatMessage({ id: "title" })
  });
  ...
}

screenProps seem to get passed all the way down through child navigators too.

@bodhi thanks, that helped!

Thanks to bodhi's idea, I use the code following:
class AppWithNavigationState extends Component {

    static contextTypes = {
	intl: intlShape
    }

    static propTypes = {
	dispatch: PropTypes.any.isRequired,
	nav: PropTypes.any.isRequired,
    }

    render() {
	let { intl } = this.context
	return (
	    <AppNavigator
		navigation={addNavigationHelpers({
		    dispatch: this.props.dispatch,
		    state: this.props.nav,
                })}
		screenProps={{intl}}
	    />
	)
    }
}

const homeScreenStack = StackNavigator(
    {
	home: {
	    screen: Screens.Home,
	},
    },
    {
	navigationOptions: ({ navigation, screenProps }) => {
	    const { intl } = screenProps
            ...
            return { /* navigationOptions object */
                title: title: intl.formatMessage(homeScreen.headerTitle)
                ...
            }
	}
    }
)


Update to winit 0.29

It brings a lot of fixes, specially to the wasm backend.
So it's a priority bump for web apps that use egui.
A few that i am aware are:
resize fixes
firefox pointers/mouse scroll issues
fixes to window animation loop

Winit 0.29 also fixes some major issues with international keyboards. There are entire characters you can't send to egui like ':' on Italian layouts.


Custom gutter/margin paint events

Is there a way to perform custom gutter/margin paint? Or place custom markers?
The use case would be for breakpoints and "lines with compiled code" (same as blue dots in Delphi)

There is a property Marks which can be used for custom markers but I have to admit that I haven't test it at all.

Thanks, seems to work fine so far I tested.


New Command: Yammer get message

This command will return a message from Yammer.
yammer message get --id
messageid (requied): returns the message with the specified message id
br,
Patrick

Nice suggestion. Let's wait with implementing this command, until we have yammer message list so that you know what ID to pass in this command. Otherwise, I'm afraid this command wouldn't be used much.

@waldekmastykarz I would like to continue with this command

@plamber I've moved this to "In Progress" for you...


[Feature Request] YAML and Code Block Syntax Highlighting

Context :

Front Matter is added to .md files by Jekyll and many other services

Request :

Render with Syntax Highlighting for

YAML in FrontMatter
And Code Blocks

Images:
Left Side Source File
Right Side Rendered View
How it is looks in Obsidian

How it is looks in NPP

Issue

Without proper syntax highlighting it breaks the format for YAML
The code blocks are hard to read

I used highlight.js but it doesn't work in NPP, it can only be converted to html and read in Chrome.😒

Possible solution is to use Markdig extension markdown-colorcode which uses ColorCode-Universal.
Seems pretty simple to just add to the pipeline in 'nppMarkdownPanel\MarkdigWrapper\MarkdigMarkdownGenerator.cs'
27:         public string ConvertToHtml(string markDownText, string filepath)
28:         {
29:             var pipeline = new MarkdownPipelineBuilder()
30:                 .UseAdvancedExtensions()
+                   .UseColorCode()
31:                 .UsePreciseSourceLocation()
32:                 .Build();

Then just having to figure out how to include in the build and distribute the proper assemblies.
Cheers.

That sounds straightforward.
I will add the ColorCode lib for the next release.

This feature is now partly implemented in version 0.7.0.
Fenced code blocks will be highlighted.

becomes:

The markdig extension https://github.com/RichardSlater/Markdig.SyntaxHighlighting is being used.
The parsing of the Frontmatter block (with YAML) needs more investigation.
By default markdig will remove that block from the output, when using new MarkdownPipelineBuilder().UseYamlFrontMatter().
Maybe it can be converted to a standard "code block", but that has to be implemented.

In version 0.7.1
YAML Frontmatter blocks are rendered as standard code blocks (no syntax highlighting yet).

closing this issue in favor of a new issue, concerning the support of further languages


I could not use this cmd function

I apologize for bothering you so often
Now how to use this cmd???
<MathQuill bind:latex autofocus={true} />

Absolutely! I never added any documentation on the command, but you need to bind the self element to call the function there (e.g:
<script>
  let quill; // now you can do quill.cmd()
</script>

<MathQuill bind:this={quill} bind:latex autofocus={true} />

Absolutely! I never added any documentation on the command, but you need to bind the self element to call the function there, e.g:
<script>
  let quill; // now you can do quill.cmd()
</script>

<MathQuill bind:this={quill} bind:latex autofocus={true} />

thanks a lot
This worked


Copper chelate

Dear ChEBI curators,
I am looking for the compound: Copper chelate
Ref: https://pubchem.ncbi.nlm.nih.gov/compound/Copper-chelate
Does it exist in ChEBI in different name? if not.  Could you please add it.
Regards

We don't have this term in ChEBI since Copper chelate is a vague name. Any compound containing a ligand bonded to a central copper atom would be classified as a copper chelate. The structure shown in pubchem is just one example. The closest match we have in ChEBI is chelator (CHEBI:38161). If you want, i can create a new entry called copper chelator but this would not have a structure associated with the entry.

Thank you for your quick reply. Yes please add a new entry for copper chelate.

Does ''capsular polysaccharide'' compound also a vague name?
Ref: https://pubchem.ncbi.nlm.nih.gov/compound/Capsular-polysaccharides-K87

capsular polysaccharides is a class of compounds so doesn't have a definitive structure. I have now created 2 ChEBI entries:
capcular polysaccharide (CHEBI:3379)
copper chelator (CHEBI:166831)
These entries should be searchable on the ChEBI website by tomorrow. Thanks


Add asynchronous slf4j Brave SpanCollector for logging purposes

AsyncSlf4jLoggingSpanCollector collects spans and asynchronously logs to an slf4j logger at INFO level.
See pending upstream PR https://github.com/openzipkin/brave/pull/226

is it not sufficient to just have an async logger? (or is the problem that there's still blocking time on slf4j rendering spans into log strings?)

going to close this for now, think @uschi2000's branch has us covered


Add support for clock skew when checking access token expiry

By standard JWT deliver an expiration date with resolution in seconds. This is used to set the field expiration of type java.util.Date in DefaultOAuth2AccessToken.
The DefaultOAuth2AccessToken (2.2.1.RELEASE) methods in question are realized as follows:
	public boolean isExpired() {
		return expiration != null && expiration.before(new Date());
	}

	public int getExpiresIn() {
		return expiration != null ? Long.valueOf((expiration.getTime() - System.currentTimeMillis()) / 1000L)
				.intValue() : 0;
	}

As new Date() generates a current time representation in milliseconds and this is not truncated to second values, the calculation of "isExpired" returns false for 999ms longer, than getExpiresIn() returns 0.
Example: Given expiration is at 10s = 10000ms and currentTimeMillis is 9001ms.
getExpiresIn = (10000 - 9001)/1000 = 999/1000 = 0
isExpired = 10000 before 9001 = 10000 < 9001 = false
Expected: isExpired() == (getExpiresIn() == 0)
This actually leads to real bug behavior. For example: org.springframework.security.oauth2.client.OAuth2RestTemplate#getAccessToken() uses OAuth2AccessToken#isExpired() to decide, whether to acquire a fresh token or to use the existing token. For almost one second, this will definitly lead to a an unauthorized request, if the server side actually validates seconds correctly. This is a behavior we actually observe in communication between a Spring-based client and a WSO2 secured server.

@jgrandja This fix is not working in conjunction with AccessTokenProviderChain.
In our project the clock skew has no effect as there is an additional expiry check in AccessTokenProviderChain where it does not take the clock skew into account (see https://github.com/spring-projects/spring-security-oauth/blob/master/spring-security-oauth2/src/main/java/org/springframework/security/oauth2/client/token/AccessTokenProviderChain.java#L107). So, although OAuth2RestTemplate triggers refresh already 30s before actual expiration, the refresh is still not executed in AccessTokenProviderChain where the token is still considered valid.

Thanks for the report @akloeber. Would you be interested in submitting a fix for this?
Alternatively, as a workaround, you can override the default use of AccessTokenProviderChain and supply a custom OAuth2RestTemplate.setAccessTokenProvider().

@jgrandja Yes definitely, I will prepare a PR to fix this issue.

@jgrandja I just added PR https://github.com/spring-projects/spring-security-oauth/pull/1910


Adds MIT license

Fixes #1
Unless I have misread things it looks like we are heading down the MIT route for licensing.
This license represents my proposal that we use MIT, rather than DBAD or other. I suggest that we discuss this on Monday in IRC and if no-one has any major objections we can merge. If there are objections I suggest that you get a move on and add them to this issue: phpoxford/spires-irc#1

:+1:


Fixed version testing and expanded activity testing

Version LRS async testing has been fixed for 1.0.2. New versions require updates in only two places now: the TinCan.versions() function and the test for it. All the basic version testing should update automatically. TinCanTestCfg has not been updated to 1.0.2.
Also, the full functionality of activities is now tested.

@brianjmiller The Travis build is failing on a test that passes in node and the browser. The weird bit is the test is receiving a 404 with a statement attached, and it is expecting a not found... not sure why this problem exists, and it seems like a much larger problem than I can tackle today.


Implements servant-client for PAB NewAPI

Implements servant-client for NewAPI for PAB.
I think it can be useful to PAB-users. Instead of writing clients by hand we can reuse servant-client.
Also make a small change to API. Text was used in place of ContractInstanceId.
But it's very easy to derive ToHttpApiData for it. So it's better to use  more type-restricted version with ContractInstanceId.

Yes, but it  makes it more self-documenting. Because Text can be anything. And also those instances are used in that package. I mean for other types. I haven't changed cabal file deps. it was already there.

LGTM, but the API was changed recently so the types may need to be updated.
In the long run we could use something like Servant.API.Generic

LGTM, but the API was changed recently so the types may need to be updated.
In the long run we could use something like Servant.API.Generic

Should I update for the Conflicts? If I update will you approve it?

@anton-k - Yes I think in general it'd be great to have this for calling the API; for example it would make my code over here much nicer; so please do have a go at resolving the conflicts :) Thanks!

Yes I'll approve it, just one more thing re.

Text was used in place of ContractInstanceId.

This was done deliberately because of the purescript client, which is auto-generated. It can only deal with basic types such as Text and Integer in the routes. (That's also why we have the type parameter for wallet ID).
So you could either leave it as it is (in which case we also don't need the new instance in plutus-contract), or add a type parameter for the type of contract instance ID.

@anton-k Just a note: to fix the issue on CI, please run nix-shell shell.nix --run updateMaterialized.

I've tried to rebase my branch on tip of the master, but when trying to build it I get:
Building library for plutus-metatheory-<IP_ADDRESS>..

<no location info>: warning: [-Wmissing-home-modules]
    These modules are needed for compilation but not listed in your .cabal file's other-modules:
        MAlonzo.Code.Agda.Builtin.Coinduction
        MAlonzo.Code.Agda.Builtin.Size
        MAlonzo.Code.Codata.Colist
        MAlonzo.Code.Codata.Conat
        MAlonzo.Code.Codata.Cowriter
        MAlonzo.Code.Codata.Delay
        MAlonzo.Code.Codata.Musical.Colist
        MAlonzo.Code.Codata.Musical.Conat
        MAlonzo.Code.Codata.Stream
        MAlonzo.Code.Codata.Thunk
        MAlonzo.Code.Data.BoundedVec
        MAlonzo.Code.Data.BoundedVec.Inefficient
        MAlonzo.Code.Relation.Binary.Construct.FromRel
        MAlonzo.Code.Relation.Binary.Reasoning.Base.Partial
        MAlonzo.Code.Relation.Binary.Reasoning.PartialSetoid
[  2 of 207] Compiling MAlonzo.Code.Data.Sign.Base ( src/MAlonzo/Code/Data/Sign/Base.hs, /home/anton/dev/mlabs/anton-k-fork/plutus/dist-newstyle/build/x86_64-linux/ghc-<IP_ADDRESS>10212/plutus-metatheory-<IP_ADDRESS>/build/MAlonzo/Code/Data/Sign/Base.o, /home/anton/dev/mlabs/anton-k-fork/plutus/dist-newstyle/build/x86_64-linux/ghc-<IP_ADDRESS>10212/plutus-metatheory-<IP_ADDRESS>/build/MAlonzo/Code/Data/Sign/Base.dyn_o ) [MAlonzo.RTE changed]

src/MAlonzo/Code/Data/Sign/Base.hs:7:60: error:
    Module ‘MAlonzo.RTE’ does not export ‘eqFloat’
  |
7 |                     quotInt, remInt, geqInt, ltInt, eqInt, eqFloat, add64, sub64,
  |                                                            ^^^^^^^
cabal: Failed to build cardano-ledger-alonzo-<IP_ADDRESS> (which is required by
exe:sync-client from plutus-pab-<IP_ADDRESS>, exe:tx-inject from plutus-pab-<IP_ADDRESS>
and others). The failure occurred during the configure step.
Failed to build plutus-metatheory-<IP_ADDRESS>.

Sounds like you need to clear out plutus-metatheory, but you can also just ignore that. Probably don't run cabal build all unless you want to wait a long time anyway :)

Ok, what is a recommended way to check that everything works fine after update?

If you're working on the PAB, cabal test plutus-pab is probably good, and the CI will catch anything else.

When I build for a single plutus-pab, which is affected by PR, I get:
[nix-shell:~/dev/mlabs/anton-k-fork/plutus]$ cabal new-build plutus-pab
Build profile: -w ghc-<IP_ADDRESS>10212 -O1
In order, the following will be built (use -v for more details):
 - cardano-ledger-alonzo-<IP_ADDRESS> (lib) (first run)
 - ouroboros-consensus-shelley-<IP_ADDRESS> (lib) (first run)
 - ouroboros-consensus-cardano-<IP_ADDRESS> (lib) (first run)
 - cardano-api-1.27.0 (lib) (first run)
 - plutus-ledger-<IP_ADDRESS> (lib) (configuration changed)
 - cardano-node-1.27.0 (lib) (configuration changed)
 - cardano-cli-1.27.0 (lib) (configuration changed)
 - plutus-chain-index-<IP_ADDRESS> (lib) (configuration changed)
 - cardano-node-1.27.0 (exe:cardano-node) (configuration changed)
 - cardano-cli-1.27.0 (exe:cardano-cli) (configuration changed)
 - plutus-contract-<IP_ADDRESS> (lib) (configuration changed)
 - playground-common-<IP_ADDRESS> (lib) (configuration changed)
 - plutus-use-cases-<IP_ADDRESS> (lib) (configuration changed)
 - plutus-pab-<IP_ADDRESS> (lib) (configuration changed)
 - plutus-pab-<IP_ADDRESS> (exe:tx-inject) (configuration changed)
 - plutus-pab-<IP_ADDRESS> (exe:sync-client) (first run)
 - plutus-pab-<IP_ADDRESS> (exe:plutus-uniswap) (configuration changed)
 - plutus-pab-<IP_ADDRESS> (exe:plutus-pab-test-psgenerator) (configuration changed)
 - plutus-pab-<IP_ADDRESS> (test:plutus-pab-test-light) (configuration changed)
 - plutus-pab-<IP_ADDRESS> (test:plutus-pab-test-full) (configuration changed)
 - plutus-pab-<IP_ADDRESS> (exe:plutus-pab-setup) (first run)
 - plutus-pab-<IP_ADDRESS> (exe:plutus-pab-examples) (first run)
Configuring library for cardano-ledger-alonzo-<IP_ADDRESS>..
cabal: Encountered missing or private dependencies:
plutus-core, plutus-tx

cabal: Failed to build cardano-ledger-alonzo-<IP_ADDRESS> (which is required by
exe:sync-client from plutus-pab-<IP_ADDRESS>, exe:tx-inject from plutus-pab-<IP_ADDRESS>
and others). The failure occurred during the configure step.

With cabal test plutus-pab I get the same error.

Sometimes cabal gets confused with the source-repository-packages lately. You may just have to do a cabal clean, annoyingly.

Sometimes cabal gets confused with the source-repository-packages lately. You may just have to do a cabal clean, annoyingly.

Thanks for help, that fixed it

Ok, I have updated the PR

I hope @j-mueller won't mind!
@anton-k thanks a lot!


Update for rootless jailbreak compatibility

Dopamine has been released and is out of beta. Some tweaks can be updated for compatibility, but they have dependency on libcscolorpicker.
Can this be updated for Dopamine jailbreak compatibility?

It works with Dopamie it’s just a simple packaging / compilation change that needs made. Maybe he’s waiting to update it so it can be built for either rootful or rootless so it doesn’t break compatibility.  I’m not the best at complex makefiles or bash scripts but I know it’s possible to keep everything under the same project umbrella.
If it’s ok with you, I forked the repo and just made a couple commits to get a working rootless deb that people can use for dependent tweaks.   If there’s any issue lmk and I’ll take it down ASAP.

How can I install your repo in Sileo? @Tweaker177


[0.40.0] "export native" doesn't export .dll's (Windows)

When exporting a game on Windows in 0.40.0 (Pre-Release), the native .dll's are not exported automatically. This results in the user having to manually copy and paste the .dll's from the original TIC-80 download next to the executable to get it to work.

yes, I should copy dlls too

added Browse for Folder dialog to save all the game files
done on .40


Object Model Refactoring and Repository Organization

This resolves #112 and implements the switch from a relational model to an object model.
Many changes to the specification files, including the schema, were made for the PR, but all changes are cosmetic and do not change the content or structure of a WZDx GeoJSON document.
Major changes
It is imperative to review the actual changes to the files to cover all the changes that were made, though at a high level, the following major changes were made:

Removed the data-tables directory and files
Created an objects directory to house all data entities (objects) and within it a markdown file for each object to replace the data-tables. Most of the entities line up directly from table to object (e.g. lanestable toLaneobject), but there are some objects that did not exist as a table (e.g. for theWZDxFeedroot object andRoadEventFeature RoadEventcontainer). For the latter, the schema already defined these objects. Theobjectsdirectory contents now directly matches up with the object definitions in thedefinitions` section of the schema.
Renamed all object and enumerated type definitions in the schema from snake_case to PascalCase, to better follow object/type naming conventions
Renamed all enumerated type files to follow the PascalCase naming convention
Used the same formatting and section names within all objects and enumerated types

Remaining work
The last item remaining before this can move out of draft status is removing the ERD and replacing it with an object diagram (and updating the READMEs it is referenced in). If @chuehlien or @DeraldDudley could do this, again with drawio, that would be great. If not, let me know.

Added some minor comments for typos/file renaming. Can approve the PR once those are addressed.

Thank you for reviewing. I made all the changes/fixes you noted.
Before we can merge we need to change the ERD into an object diagram. @chuehlien are you able to do this? I can review if so.

Thanks, @j-d-b ! I've updated the ERD into an object diagram and tagged you as a reviewer in PR https://github.com/usdot-jpo-ode/jpo-wzdx/pull/143


Azure VMware Solution: Some Info on Shared Responsibility Matrix is not correct

Where the information is in correct?
Link: https://learn.microsoft.com/en-us/azure/azure-vmware/introduction#azure-vmware-solution-responsibility-matrix---microsoft-vs-customer
What is incorrect: The shared responsibility matrix table says following are also supported by Microsot.
Virtual Machines
Guest OS
Application
Thank you very much,
Bhaskar
Azure documentation issue guidance
Thanks for opening an issue in the Azure technical documentation repository.
We use GitHub issues as the primary channel for customer and community feedback about the Azure documentation.
Creating an issue
We prefer that you create documentation feedback issues using the Feedback link on the published article - the feedback control on the doc page creates an issue that contains all the article details so you can focus on the feedback part.
You can also create a feedback issue here in the repo. If you do this, please make sure your issue lists:

[ ] The relevant Azure service or technology.
[ ] A link to the published documentation article that you have feedback about.
[ ] Clear, specific feedback that the author can act on.

Pull requests and article contributions
If you know the change that is needed in an article, we encourage you to submit the changes directly using a pull request. If the change is large, or if you want to contribute an entire article, follow these guidelines:

[ ] Don't surprise us with a big pull request or a pull request with a new article! Submit an issue that describes the details of the proposed large change or new article.
[ ] Include the service or technology area.

We'll route the issue to the appropriate content team for review and discussion.
Tech support and product feedback
If you would like to contact Microsoft about other things, such as product feedback or tech support, please review these guidelines:

If you need technical support using Azure, the paid and free support options are described here: https://azure.microsoft.com/support/options/.

Each article in the Azure technical documentation contains a product feedback button - it's best to submit product feedback directly from a relevant article. Otherwise, you can submit product feedback for most Azure products in the following product feedback forum: https://feedback.azure.com/d365community/forum/79b1327d-d925-ec11-b6e6-000d3a4f06a4.

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 105d2793-f7c4-4d57-2827-6bbe908a8c51
Version Independent ID: 9c3189b4-f792-9723-2de8-47da40d00c20
Content: Introduction - Azure VMware Solution
Content Source: articles/azure-vmware/introduction.md
Service: azure-vmware
GitHub Login: @jjaygbay1
Microsoft Alias: jacobjaygbay

@bhaskarbsingh
Thanks for your feedback! We will investigate and update as appropriate.

@bhaskarbsingh
Thank you for bringing this to our attention.
I've delegated this to content author, who will review it and offer their insightful opinions.


gnu-utility module should not override shell builtins

As per title, the gnu-utility module should not create alias functions for commands that exist as GNU binaries, but also as ZSH builtins, such as kill and which, since that behaviors does not exist in the original systems nor in a GNU-native system such as Linux.

I would need a list of shell built-ins to correct that behavior.
Installing GNU Coreutils on BSD and using this module is more of a novelty item.

]]>

It's not necessary to keep a list, it can be checked at run time in the
$builtins associative array. I'm actually using it in OS X.
Em seg, 13 de mar de 2017 11:52, Sorin Ionescu<EMAIL_ADDRESS>escreveu:

I would need a list of shell built-ins to correct that behavior.
Installing GNU Coreutils on BSD and using this module is more of a novelty
item.

]]>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/sorin-ionescu/prezto/issues/1263#issuecomment-286130767,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAtnTndwYFY6g3D_0DSU_KpUX4nLFxwSks5rlVgtgaJpZM4MapAo
.


remove http:// in the url form

remove http:// in the url form if we have just a non encrypted http connection (for beauty and better readableness purposes
or is it better if we make in the config.php such setting?

1st is just not necessary plus I would like to avoid putting too much PHP code inside the templates.
2nd would make SSL proxies less secure, it should load https version of url_form.js on SSL proxies and http version on non-SSL proxies to reduce CPU on php-proxy.com side. Having // automatically loads the right version.

to second: i don't know about that fact :)
but why is the js file on another server and not like the proxy files on the side of the user-server?

The idea was to put most of the proxifying/parsing logic inside one global js file so if YouTube decides to change their layout, a update could be deployed immediately by just updating this one js file instead of forcing everyone to go back to php-proxy.com and download a new proxy version like they would have to do now with Glype.


Create Backup of all resources and then restore the backup of only pods(include single resource)

Issue/Feature Description:
Test Case Precondition:

Kahu project installed in given name-space (test-kahu)
All below pods should be up and running:
a. backup service
b. Meta service with nfs provider
c. nfs-server
Metadata location is created already
Namespace test-ns is created and contains some of the kubernetes resources
Test Case steps:
Create below backup CR using kubectl command
(use kubectl create -f <backup.yaml>)
apiVersion: kahu.io/v1
kind: Backup
metadata:
name: backup-Kahu-0001
spec:
includeNamespaces: [test-ns]
metadataLocation: nfs
Use kubectl describe backup  -n test-kahu
Get inside nfs server pod and check for the content inside mount path given
(use command kubectl exec -ti  -n test-kahu /bin/sh)
Create a restore CR on new namespace (restore-ns)
apiVersion: kahu.io/v1
kind: Restore
metadata:
name: restore-Kahu-0001
Spec:
backupName: backup-Kahu-0001
includeResources:

name:
kind: Pod
isRegex: true
namespaceMapping:
test-ns : restore-ns
Expected Result:

In step 2,
a) Verify that backup stage is Finished and State is Completed
b) Verify the resource list in status shows all the required resources
In step 3, verify that
a) tar file is created with name of backup
b) After untar file, All resources in the namespace test-ns are backuped.
In step4, verify that
a) Only pods from the Backed up resources are up in new namespace restore-ns
Why this issue to fixed / feature is needed(give scenarios or use cases):
This is a testcase which is to automated to make sure deployment is properly backed up and
restored
How to reproduce, in case of a bug:
Other Notes / Environment Information: (Please give the env information, log link or any
useful information for this issue)

@sushanthakumar
@kalaiselvikks76


Sammy Lee - [DS-Unit-4-Sprint-1-Tree-Ensembles]

Baseline Submission:
https://github.com/LambdaSchool/DS-Unit-4-Sprint-1-Tree-Ensembles/blob/fffa384b84e15ad39f5d08e63f44fad32406213b/ds1-tree-ensembles/Lending_Club_Submission_1.ipynb

RandomForestClassifier:
https://github.com/LambdaSchool/DS-Unit-4-Sprint-1-Tree-Ensembles/blob/5f7ed0027fffaa481000c146e5962af7bf53adba/ds1-tree-ensembles/Lending_Club_Submission_2.ipynb

Interpretable  Machine Learning (Reproduced Ryan Herr's lesson):
https://github.com/LambdaSchool/DS-Unit-4-Sprint-1-Tree-Ensembles/blob/b30a8d39016adacb887b3161dd7508667af90059/ds1-tree-ensembles/Interpretable Machine Learning.ipynb

Well done on getting your Kaggle competition score all the way to the .70s! Yours is officially among the top three scores in our team! 🏆Thanks for all the great work this week, Sammy!
T.


Add Currency (Symbol)

Currency name:
Symbol:
Website:
Theme color:
Logo (SVG format):

Hello @Michiru1265 please correctly fill the request, this one and the two others are empty.


sudo: amdgpu-uninstall: command not found

Trying to get rocm working for something ai related, I'm on ubuntu 22.10, ran these commands

sudo apt-get update
wget https://repo.radeon.com/amdgpu-install/5.4.3/ubuntu/jammy/amdgpu-install_5.4.50403-1_all.deb
sudo apt-get install ./amdgpu-install_5.4.50403-1_all.deb

At the end it puts "download is performed unsandboxed as root as file"
But when I check it says I have it installed

I'm trying to remove it for troubleshooting with "sudo amdgpu-uninstall --rocmrelease=5.4.3" but it says "sudo: amdgpu-uninstall: command not found"
Why is that?

Perhaps it's not in PATH which is the variable the shell interpreter checks for binary files to run. Could you please try to run the command without sudo?
Please also show us your $PATH variable: echo $PATH.

I usually don't install like this so I cannot check but in another issue, someone mentioned that it is actually. https://github.com/RadeonOpenCompute/ROCm/issues/1908#issuecomment-1435957473
sudo amdgpu-install --uninstall

Perhaps it's not in the PATH which is the variable the shell interpreter checks for binary files to run. Could you please try to run the command without sudo? Please also show us your $PATH variable: echo $PATH.
You could try searching for the command in the folder /opt.

I usually don't install like this so I cannot check but in another issue, someone mentioned that it is actually. #1908 (comment)
sudo amdgpu-install --uninstall

This one works, prompts me to remove the 15gb of stuff, thanks!

Reopening to ensure this is included in our documentation.

@MathiasMagnus  is this still valid, can you assign to someone to check?

Some of the release packages didn't include amdgpu-uninstall. The Packaging guys (@Mystro256 is on the other repos but not this one) can check if it got legacied or whatever. But "amdgpu-install --uninstall" will always be present.

We don't wget unsandboxed anymore in the docs, neither do we document the use of the removed utility and use amdgpu-install --uninstall
@Enferlain Do these address your concern?

Internal ticket has been created to updated documentation. Thanks!

Documentation here now points to the correct command "sudo amdgpu-install --uninstall".


Replace WAF classic by WAF V2 managed rule groups

Objective
Replace WAF classic rules (which was deprecated and obsolete) by WAF V2 managed rule groups.
The cost of implementation of managed rules are way cheaper compared to custom rules and they cover already most part of the web apps scenarios like common attacks, SQL injection, PHP and Linux vulnerabilities, etc.
Current status
The terraform code is ready for review and the default configuration enables only the Core Rule Set (a.k.a Common Rules) but we can activate additional groups in the default deployment, the user also has the ability of selecting additional groups via input variable.
Core Rule Set = AWSManagedRulesCommonRuleSet
Two new input variables were included to enable the WAF deployment and select the groups that must be implemented in the Web ACL, both of the variables have default values assigned. The WAF deployment is disabled by default.
The code in the waf.tf file was completed replaced and an output variable called alb_cloudfront_key was deleted since it wasn't used anymore and it was part of the original content from WAF classic resources.
Improvements
At the moment we provide the ability of selecting different managed groups but in the future we could explore the option of excluding specific rules of a group using the statement exclude_rules.

@adenot @arthurbdiniz @brunodasilvalenga This PR is now ready to merge, could you please review? Thanks.

@adenot @arthurbdiniz @brunodasilvalenga This PR is now ready to merge, could you please review? Thanks.

@arthurbdiniz I couldn't find a way to fix the issue with terraform fmt reported by the lint validator, could you please have a look before the merge? Thanks in advance.

@arthurbdiniz I couldn't find a way to fix the issue with terraform fmt reported by the lint validator, could you please have a look before the merge? Thanks in advance.

@arthurbdiniz I couldn't find a way to fix the issue with terraform fmt reported by the lint validator, could you please have a look before the merge? Thanks in advance.

Sure @sohflp, the problem was reported inside example/ecs-cluster.tf file.
From terraform version 0.13 there is no need to keep parentheses and quotation marks for variables.
This way to fix this lint it was necessary to change:
# from
"${local.workspace["cluster_name"]}"

# to
local.workspace["cluster_name"]

@arthurbdiniz I couldn't find a way to fix the issue with terraform fmt reported by the lint validator, could you please have a look before the merge? Thanks in advance.

Sure @sohflp, the problem was reported inside example/ecs-cluster.tf file.
From terraform version 0.13 there is no need to keep parentheses and quotation marks for variables.
This way to fix this lint it was necessary to change:
# from
"${local.workspace["cluster_name"]}"

# to
local.workspace["cluster_name"]


Strange results.

Thanks for your good work.
But, when I try to use your library, this makes

strange results.
I loaded the image using openCV and made it pytorch tensor which range is [0.,1.]
Is the default is un-trained model?
I followed this example below:
import torch
import torch_enhance
increase resolution by factor of 2 (e.g. 128x128 -> 256x256)
model = torch_enhance.models.SRResNet(scale_factor=2, channels=3)
lr = torch.randn(1, 3, 128, 128)
sr = model(x) # [1, 3, 256, 256] ->  model(my_img)

The default models are randomly initialized (untrained) so this is expected functionality.

@isaaccorley
thank you. Do you have a plan to upload pertained model weights?

Yes, I'm working on a branch to which adds pretrained weights but don't have a time of completion for you.

@isaaccorley
I see. I hope you to update the pre-trained weights someday  :)
thank you!


Enable knowledge of standardized results in PaC to support decisions on non-failing PipelineTasks

In situations where there are many related tasks in a single PipelineRun, I want to be able to have all tasks run "successfully" so that the entire pipeline will be run even if some tasks are not strictly successful. While it makes sense to have some PipelineRuns actually fail (for example, if an artifact build fails), there are other types of tasks that might successfully run while also reporting issues (for example, test or vulnerability scans). In addition to formalizing on a result name, we can also formalize on the minimum data reported in these results so that PaC would be able to return consistent data.
While there would be a standard definition for PaC, Tekton/PaC should not strictly enforce the fields to enable further extension of the result types by tasks as needed.
Proposal for standardizing on test-type tasks
Tekton result
TEKTON_TEST_RESULT
Required fields

result - ENUM containing values SUCCESS, FAILURE, WARNING, SKIPPED or ERROR
successes - the number of successes returned in a test
failures - the number of failures returned in a test
warnings - the number of warnings returned in a test

Expected handling

result value(s)
GitHub status conclusion value

SUCCESS
success

SKIPPED
skipped

FAILURE, ERROR
failure

WARNING
neutral

Sample output
{
    "result": "SUCCESS",
    "timestamp": "1649843611",
    "successes": 16,
    "note": "An example of an extra field ignored by PaC",
    "failures": 0,
    "warnings": 0
}

Proposal for standardizing on vulnerability scan-type results
Tekton result
TEKTON_SCAN_RESULT
Required fields
Following the convention of security ratings: https://access.redhat.com/security/updates/classification/, the following results should be supported

critical
high
medium
low

Expected handling
PaC should return the result of the most severe non-zero result in the Checks table.
In order to enable users to change the Checks conclusion based on the presence of vulnerabilities, PaC can enable a customization for a minimum_allowed_scan_result. If this parameter is specified, then a maximum result at or below the configured value would correspond to a conclusion of success and any value above would correspond to a conclusion of failure. If no value is set, all results would return a conclusion of neutral.
Sample output
{
  "critical": 0,
  "high": 1,
  "medium": 1,
  "low":0
}

Would be handled with a maximum result of high.

I have a bit misunderstood your query when discussing this on slack offline...
So you want to have more granularity from a pipelinerun status on the reported GitHub status instead of just a Failure/Success?
I think you are looking at this from a security POV (and a RHT one) but I rather have something that applies in a generic way.
What about an annotations on a PipelineRun which let the user control specify a github checks status:
success skipped failure neutral
and that decision power will be held to a finally task controlled by the user to output the github status....
On your side you can implement the mapping as you described from the task results to a github status and pac will just respect it...
(we can even add a custom message to pass thru in the checks tab for added information )

That is roughly what I am trying to do, yes. I understand the desire to generalize the approach from a PAC perspective. With this approach, would PAC be performing the mapping back to GitHub statuses or would that happen by the task itself as part of the identified status result? If PAC is performing this mapping, what will the mapping look like? Would there be an expected key in a JSON result to indicate whether there is a pass/fail? Looking again at the original proposal, PAC would only need to be concerned about the result key:

result - ENUM containing values SUCCESS, FAILURE, WARNING, SKIPPED, or ERROR

The other proposed ones would be unnecessary.
As Pipelines are composed of heterogenous task definitions, all tasks might not have the same "types" of results like I indicated in the original post. If I ant to adhere to a specific API for task result formats to improve interoperability, I might need multiple types of results. The success/test-like and quality/scan-like results are only the two immediate cases that come to mind, but I imagine that there can be others.
One possible way to reduce this previous concern from PAC's perspective is to enable an annotation as suggested to be a list where any of the configured results can be used to report the status and if multiple are reported, the first on the list would take precedence. If none are detected then the fallback would be for the pipeline/task's ultimate status (or the current behavior).


Add Subsets of a String to Java

Description
Added Recursive implementation for the problem of printing all the subsets of a string in Java.
Fixes #316
Please delete options that are not relevant

[x] New feature (non-breaking change which adds functionality)

Checklist:

[x] I have read the contribution guidelines before making this PR.
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented in my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation (Language folder or any other readme instructed to)
[x] My changes generates no new warnings

Code looks good, but use of stringbuilder is advised for string operations in java. :)

Alright @YashSaxena9  will switch to StringBuilder


Possible reallocation of size zero (leading to impl.-spec. behavior)

Via scan-build:
linenoise.c:578:17: warning: Call to 'realloc' has an allocation size of 0 bytes
    char *new = realloc(ab->b,ab->len+len);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~

Is this a duplicate of #25?  It looks the same to me, but I may be missing something.

@cxw42 yes, closing.


[Feature Request]:  Add Contributor Page accessible from Footer

Is there an existing issue for this?

[X] I have searched the existing issues

Feature Description
Description:
To recognize and acknowledge the individuals who have contributed to this project, we need to implement a Contributor Page. This page will highlight the contributors and their respective roles and contributions, fostering community engagement.
Tasks:

Create Contributor Page:

Develop a layout for the Contributor Page that lists all contributors, including their names, roles, and brief descriptions of their contributions.
Implement the frontend components necessary to display the contributors' information effectively.

Add Footer Link:

Insert a link in the footer that directs users to the Contributor Page.
The footer link should be clearly labeled (e.g., "Contributors") for easy navigation.

Demo
https://github.com/user-attachments/assets/3c250732-253e-4219-8b07-9bd6ebc22954
Note: This is demo and I will be using UI and context of DecenTrade for the page
Use Case

View Contributors: Users can view a list of all contributors to understand who has contributed to the project.
Access Contributor Details: Users can click on contributor names to view more information about their roles and contributions.

Benefits
No response
Priority
High
Record

[X] I agree to follow this project's Code of Conduct
[ ] I'm a WOB contributor
[X] I want to work on this issue
[X] I'm willing to provide further clarification or assistance if needed.

assign me under gssoc-ext

Gentle Reminder 🚨🚨
GSSoC-Ext 24 is going to complete in 2 Days. '
Complete your assigned Issues and PR reviews before time to get Points on Leaderboard. '
It was a great experience working with you all, Don't forget to ⭐ star the Repo (only 12 with 62 forks 💔) .
Thanks💗 for your valuable contributions!

Gentle Reminder 🚨🚨
PA and Mentor nominations have been started for GSSoC-Ext 2k24. '
Do share your experiences and connect on Socials. '
It was a great experience working with you all
Thanks💗 for your valuable contributions!