Laravel Fixer

This pull request includes changes and recommendations for crafting your Laravel application. These are based on the Laravel documentation and widely adopted practices within the community.
Before merging, you need to:

Checkout the shift-24998 branch
Review all comments for additional changes
Thoroughly test your application

Don't hesitate to send your feedback to<EMAIL_ADDRESS>or share on Twitter.

:warning: The following files reference Laravel facades through the global namespace. For example, you're referencing \DB or importing use DB. Instead import Illuminate\Support\Facades\DB and reference DB.
While global references are allowed through aliases, you should import the facade explicitly. This can improve clarity not only for developers, but static analysis used by your IDE.

[ ] app/Http/Controllers/Admin/AvailableCourseCrudController.php
[ ] app/Http/Controllers/Admin/ConfigCrudController.php
[ ] app/Http/Controllers/Admin/EventCrudController.php
[ ] app/Http/Controllers/SetupController.php
[ ] app/Models/Course.php
[ ] app/Models/Room.php
[ ] app/Providers/AppServiceProvider.php

:warning: Shift detected Eloquent calls in the following views. You should keep views from interacting directly with your models by passing the necessary data from the controller.

[ ] resources/views/reports/external.blade.php
[ ] resources/views/reports/internal.blade.php

:warning: The following classes do not extend the standard Laravel Model and Controller class. This may add complexity which makes your application harder to upgrade. Often a trait can be used instead of inheritance. You should review the following classes:

[ ] app/Http/Controllers/Admin/AvailableCourseCrudController.php
[ ] app/Http/Controllers/Admin/BookCrudController.php
[ ] app/Http/Controllers/Admin/CampusCrudController.php
[ ] app/Http/Controllers/Admin/CommentCrudController.php
[ ] app/Http/Controllers/Admin/ConfigCrudController.php
[ ] app/Http/Controllers/Admin/CouponCrudController.php
[ ] app/Http/Controllers/Admin/CourseCrudController.php
[ ] app/Http/Controllers/Admin/CourseEvaluationCrudController.php
[ ] app/Http/Controllers/Admin/DiscountCrudController.php
[ ] app/Http/Controllers/Admin/EnrollmentCrudController.php
[ ] app/Http/Controllers/Admin/EvaluationTypeCrudController.php
[ ] app/Http/Controllers/Admin/EventCrudController.php
[ ] app/Http/Controllers/Admin/ExternalCourseCrudController.php
[ ] app/Http/Controllers/Admin/FeeCrudController.php
[ ] app/Http/Controllers/Admin/GradeTypeCrudController.php
[ ] app/Http/Controllers/Admin/LeadTypeCrudController.php
[ ] app/Http/Controllers/Admin/LeaveCrudController.php
[ ] app/Http/Controllers/Admin/LevelCrudController.php
[ ] app/Http/Controllers/Admin/PaymentmethodCrudController.php
[ ] app/Http/Controllers/Admin/PeriodCrudController.php
[ ] app/Http/Controllers/Admin/RemoteEventCrudController.php
[ ] app/Http/Controllers/Admin/ResultCrudController.php
[ ] app/Http/Controllers/Admin/ResultTypeCrudController.php
[ ] app/Http/Controllers/Admin/RhythmCrudController.php
[ ] app/Http/Controllers/Admin/RoomCrudController.php
[ ] app/Http/Controllers/Admin/SkillCrudController.php
[ ] app/Http/Controllers/Admin/SkillScaleCrudController.php
[ ] app/Http/Controllers/Admin/SkillTypeCrudController.php
[ ] app/Http/Controllers/Admin/StudentCrudController.php
[ ] app/Http/Controllers/Admin/TeacherCrudController.php
[ ] app/Http/Controllers/Admin/UserCrudController.php
[ ] app/Http/Controllers/Admin/YearCrudController.php
[ ] app/Http/Controllers/Auth/MyAccountController.php
[ ] app/Http/Controllers/Auth/RegisterController.php
[ ] app/Models/BackpackUser.php
[ ] app/Models/ExternalCourse.php

:information_source: Laravel recommends you only use env() within configuration files and use config() everywhere else.
Shift converted env uses within your application to use config and moved these options to the settings.php configuration file. You should review these new options for any overlap with existing options.

:warning: The following controllers contain actions outside of the 7 resource actions (index, create, store, show, edit, update, destroy). For more details, review the docs or watch Cruddy by Design to see if you can rework these into resource controllers.

[ ] app/Http/Controllers/Admin/AvailableCourseCrudController.php
[ ] app/Http/Controllers/Admin/BookCrudController.php
[ ] app/Http/Controllers/Admin/CampusCrudController.php
[ ] app/Http/Controllers/Admin/CommentCrudController.php
[ ] app/Http/Controllers/Admin/ConfigCrudController.php
[ ] app/Http/Controllers/Admin/CouponCrudController.php
[ ] app/Http/Controllers/Admin/CourseCrudController.php
[ ] app/Http/Controllers/Admin/CourseEvaluationCrudController.php
[ ] app/Http/Controllers/Admin/DiscountCrudController.php
[ ] app/Http/Controllers/Admin/EnrollmentCrudController.php
[ ] app/Http/Controllers/Admin/EvaluationTypeCrudController.php
[ ] app/Http/Controllers/Admin/EventCrudController.php
[ ] app/Http/Controllers/Admin/ExternalCourseCrudController.php
[ ] app/Http/Controllers/Admin/FeeCrudController.php
[ ] app/Http/Controllers/Admin/GradeTypeCrudController.php
[ ] app/Http/Controllers/Admin/LeadTypeCrudController.php
[ ] app/Http/Controllers/Admin/LeaveCrudController.php
[ ] app/Http/Controllers/Admin/LevelCrudController.php
[ ] app/Http/Controllers/Admin/PaymentmethodCrudController.php
[ ] app/Http/Controllers/Admin/PeriodCrudController.php
[ ] app/Http/Controllers/Admin/RemoteEventCrudController.php
[ ] app/Http/Controllers/Admin/ResultCrudController.php
[ ] app/Http/Controllers/Admin/ResultTypeCrudController.php
[ ] app/Http/Controllers/Admin/RhythmCrudController.php
[ ] app/Http/Controllers/Admin/RoomCrudController.php
[ ] app/Http/Controllers/Admin/SkillCrudController.php
[ ] app/Http/Controllers/Admin/SkillScaleCrudController.php
[ ] app/Http/Controllers/Admin/SkillTypeCrudController.php
[ ] app/Http/Controllers/Admin/StudentCrudController.php
[ ] app/Http/Controllers/Admin/TeacherCrudController.php
[ ] app/Http/Controllers/Admin/UserCrudController.php
[ ] app/Http/Controllers/Admin/YearCrudController.php
[ ] app/Http/Controllers/AttendanceController.php
[ ] app/Http/Controllers/Auth/MyAccountController.php
[ ] app/Http/Controllers/CommentController.php
[ ] app/Http/Controllers/ConfigController.php
[ ] app/Http/Controllers/ContactController.php
[ ] app/Http/Controllers/CourseController.php
[ ] app/Http/Controllers/CourseSkillController.php
[ ] app/Http/Controllers/CourseTimeController.php
[ ] app/Http/Controllers/EnrollmentController.php
[ ] app/Http/Controllers/EventController.php
[ ] app/Http/Controllers/GradeController.php
[ ] app/Http/Controllers/HRController.php
[ ] app/Http/Controllers/HomeController.php
[ ] app/Http/Controllers/Language.php
[ ] app/Http/Controllers/LeadStatusController.php
[ ] app/Http/Controllers/PhoneNumberController.php
[ ] app/Http/Controllers/ReportController.php
[ ] app/Http/Controllers/TeacherController.php

:x: PHP syntax errors were detected after running your Shift. Often these are simply differences between the PHP version of Shift and your project. Occasionally they are misplaced lines.
You can check the PHP syntax by running php -l on the following files:

[ ] app/Http/Middleware/RoleMiddleware.php
[ ] app/Http/Middleware/SetLocale.php


Add input and output size functions

This PR adds a generic interfacce for input and output sizes for layers.
A followup PR in Lux will do concrete implementations for the layers.

Bump the project toml and we are good to go.


[APIM-4.0.0] API Product creation is not importing nested referenced schema

Description
When an API swagger has nested schema references and if an API Product is created using API resources, those nested schema are not available in the generated API Product swagger.
Steps to Reproduce

Create and publish an API with a swagger having nested schema.
Create an API Product including the resources that use nested schema.
Go to the Resources section of the API Product from the publisher.
An error will be displayed mentioning the reference does not exist.

Affected Component
APIM
Version
4.0.0
Environment Details (with versions)
No response
Relevant Log Output
No response
Related Issues
No response
Suggested Labels
No response

Fixed in master with https://github.com/wso2/carbon-apimgt/pull/10583


Unsupported Proposals on Phase1 and Phase2 interface configuration

Hi, Looking at the Ansible Network Modules documentation on phase1 and phase2 interface configuration, the only choices are null and DES only! No 3DES or AES Flavors on any phase1 and phase2 proposals are supported. Please advise on how I can make it work with those settings. Thank you

hi @shariaty59
the full list of supported proposal algorithms are:
                                         "null-md5", "null-sha1", "null-sha256",
                                         "null-sha384", "null-sha512", "des-null",
                                         "des-md5", "des-sha1", "des-sha256",
                                         "des-sha384", "des-sha512", "3des-null",
                                         "3des-md5", "3des-sha1", "3des-sha256",
                                         "3des-sha384", "3des-sha512", "aes128-null",
                                         "aes128-md5", "aes128-sha1", "aes128-sha256",
                                         "aes128-sha384", "aes128-sha512", "aes128gcm",
                                         "aes192-null", "aes192-md5", "aes192-sha1",
                                         "aes192-sha256", "aes192-sha384", "aes192-sha512",
                                         "aes256-null", "aes256-md5", "aes256-sha1",
                                         "aes256-sha256", "aes256-sha384", "aes256-sha512",
                                         "aes256gcm", "chacha20poly1305", "aria128-null",
                                         "aria128-md5", "aria128-sha1", "aria128-sha256",
                                         "aria128-sha384", "aria128-sha512", "aria192-null",
                                         "aria192-md5", "aria192-sha1", "aria192-sha256",
                                         "aria192-sha384", "aria192-sha512", "aria256-null",
                                         "aria256-md5", "aria256-sha1", "aria256-sha256",
                                         "aria256-sha384", "aria256-sha512", "seed-null",
                                         "seed-md5", "seed-sha1", "seed-sha256",
                                         "seed-sha384", "seed-sha512"

there is already support for phase2 in ansible upstream(devel branch), alas, no support for phase1(merging a patch is not quickly accepted these days).
if you have to use other proposals with phase2, simply installing ansible from devel branch source can work it around.
we will support all supported proposals in Ansible Galaxy in the future.
please let us know how urgent your demand is.
thanks,

@chillancezen I can manually change the proposals and wait for the next version. right now we are on ansible 2.9.0. How can I follow the news on when this is out and what version I should upgrade my ansible to once introduced?
ansible 2.9.0
  config file = None
  configured module search path = ['/home/ashariaty/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.6/site-packages/ansible
  executable location = /usr/local/bin/ansible
  python version = 3.6.8 (default, Aug  7 2019, 17:28:10) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]

@chillancezen Hi, Please advise at what ansible version all proposals will be supported. Thank you

Please advise at what ansible version all proposals will be supported. Thank you

We will be releasing full fledged Galaxy FortiOS soon,  I will keep you updated.
thanks,
Link


Add support for specifiyng an error code with a Diagnostic

Small change to codespan-reporting that adds a new code field to the Diagnostic struct.  It is emitted in the same style as the Rust compiler.

Nice, I like it!


Disable SCALE_LR in CvT

NaN's are produced in CvT model at large number of devices (>64 GPUs) due to the scaling LR. This PR disables the scaling LR by default for benchmark purposes.
Previously we reduced the overall LR to alleviate this issue https://github.com/facebookresearch/FAMBench/commit/58f68431660fd84d1b7fdcaa4b6925dc12fb3bd3 but large learning rate still becomes an issue when the world size is large.

LGTM


WIP: docs(git): Add Branch and Commit Content

Missing context for how branches should be named and how commits should be formatted

Add branch naming  and commit formatting information

All these changes have been incorporated into the main branch.


PSMove Config Tool crashes after cursor leaves window at manual color selection

Video: https://we.tl/t-lWs1BmvlLg

Can you try this and see if it fixes the issue?
PSMoveConfigTool.zip

Now opening the tracker settings just throws a message "Waiting for server response..."
Was done on a different computer with a fresh install of Windows to confirm this is not just my PC.
Video: https://we.tl/t-yeqEtzC9tC

Sorry, forgot, you need the updated PSMS too, try these
__DEV.zip

That fixed it. Thanks for your work on this project 👍


Can you make headers having default values optional?

Hello,
Can you make headers having default values optional? As an example, in the readme, the default value for x-tls-client-timeout is mentioned as 30 then it should take value 30 when we do not pass it explicitly? So that it reduces the hassle to pass those headers every time?
Also, can we let the library (tls-client) decide the values of x-tls-header-order and x-tls-pseudo-header-order headers if we do not pass them?

Hi,
I can make it pass default values for some of the options, but you should always add the header order yourself as it matters for tls fingerprinting

@LandonGrey9 However, i added default values for the majority, please check v1.2.4.
Thank you.


[Net] master - Removed blocking network address resolution in connect_to_host in websockets

Master pr for https://github.com/godotengine/godot/pull/53243 (untested)

fixes https://github.com/godotengine/godot/issues/53265 for websocket clients


Update add_p to add_x

-Updated add_p to be more general
-Updated respective diagrams

Codecov Report

Merging #259 (e1b0472) into master (5ee240d) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #259   +/-   ##
=========================================
  Coverage     79.09%   79.09%
  Complexity     1005     1005
=========================================
  Files           119      119
  Lines          3033     3033
  Branches        412      412
=========================================
  Hits           2399     2399
  Misses          513      513
  Partials        121      121

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 5ee240d...e1b0472. Read the comment docs.


Add option to aggregate and download

Add a download button to get the data for the current view.

@ash001j Is it OK to close this now?

Yep, cheers :)


Make keygen consistent and secure accross both engines

Fixes #136 and some outstanding TODOs. Uses blst_keygen for the BLST engine and a custom implementation of the CFRG spec for Arkworks. Finally allows us to compare the outputs of both engines.

Codecov Report

Merging #148 (0661bba) into master (26f7a05) will increase coverage by 0.11%.
The diff coverage is 90.90%.

:exclamation: Current head 0661bba differs from pull request most recent head e35a4f0. Consider uploading reports for the commit e35a4f0 to get more accurate results

Additional details and impacted files

@@            Coverage Diff             @@
##           master     #148      +/-   ##
==========================================
+ Coverage   52.59%   52.71%   +0.11%
==========================================
  Files          51       51
  Lines       11729    11767      +38
==========================================
+ Hits         6169     6203      +34
- Misses       5560     5564       +4

Flag
Coverage Δ

test
52.71% <90.90%> (+0.11%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

crypto/src/engine/blst/mod.rs
95.59% <ø> (-0.02%)
:arrow_down:

crypto/src/engine/arkworks/mod.rs
88.95% <82.60%> (-1.05%)
:arrow_down:

crypto/src/engine/blst/scalar.rs
100.00% <100.00%> (ø)

crypto/src/engine/both.rs
100.00% <100.00%> (ø)

crypto/src/engine/mod.rs
100.00% <100.00%> (ø)

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 26f7a05...e35a4f0. Read the comment docs.


how to connect to  Hive using the thrift protocol

I wonder how to connect to hive installed on my machine and create HiveDB/Tables  using the thrift protocol, rather than creating them locally (metastore) in the project

@MohamedRagabAnas I believe you should be able to do this as per usual with your SparkSession, and then wrap this in a CAPSSession using the CAPSSession.create() call.
I have no particular expertise on Hive or Thrift, but the general model we take is that we try to just extend the capabilities that you get with Apache Spark itself, so if this is something you know how to do with standard Spark my best advice is to try that with CAPS as well.

Yes, Done Thank You very much @Mats-SX

Please, @Mats-SX  could you tell me how to generate the graph from the created already tables and views in hive, rather than dropping the database and recreating the DDL again ?!
Thanks in advance for your support and help

@MohamedRagabAnas There are essentially two ways of achieving this. The most sophisticated is to use the SQLPropertyGraphDataSource. You can read our manual on how to use and configure it here: https://neo4j.com/docs/morpheus-user-guide/preview/caps/backends/sql/
You'll be using Graph DDL, which is a language we've invented to map a graph from a SQL system (table-based database (abstraction)). To not repeat everything from the manual, what you'll need to do is roughly:

Define element types (abstract nodes and relationships)
Define node and relationship types
Define a graph type (consisting of the above)
Map a graph instance from SQL tables (in your case Hive)

I also recommend reading the CensusHiveExample which seems to match your use case fairly well (as far as I've understood).

@MohamedRagabAnas I'm closing this as settled. If you still have issues with this, please just comment and we can reopen the issue.


feat: allow _destroy as a property

The _destroy: true property is used as a special key in monolith/ruby-on-rails APIs to indicate that the sub-record should be destroyed so we should allow this specific exception.
We have a ton of "eslint-disable" comments related to this in our repos.

📦 Published PR as canary version: Canary Versions

:sparkles: Test out this PR locally via:
npm install<EMAIL_ADDRESS># or
yarn add<EMAIL_ADDRESS>

:rocket: PR was released in<EMAIL_ADDRESS>:rocket:


Update docker-plugin url

Current url for docker-plugin generates a 404, presumably because the hardcoded build id was cleaned up. This fix updates the plugin's url to the last pinned build.

@rthoward Don't care about tests. I need to fix them or move from Travis to CircleCI.


Improve speed of hard-coded url check for linter and fix span highlighting

This fix is predicated on the idea that the full set of diagnostics after a compile can be cached; the semantic model is recreated for each compile.
Contributing a feature
Fixes #3636
Fixes #3646

[x] I have opened a new issue for the proposal, or commented on an existing one, and ensured that the Bicep maintainers are good with the design of the feature being implemented
[x] I have included "Fixes #{issue_number}" in the PR description, so GitHub can link to the issue and close it when the PR is merged
[x] I have appropriate test coverage of my new feature

        public override void VisitStringSyntax(StringSyntax syntax)

Btw, should we also utilize a string length check to avoid doing a deeper regex check? For example, a string like "foo" will never match the refex for management.azure.com, but it's much cheaper to run.

Refers to: src/Bicep.Core/Analyzers/Linter/Rules/NoHardcodedEnvironmentUrlsRule.cs:92 in 4b0a300. [](commit_id = 4b0a300fc4f7f4455b2d1afe09d42fbc7803926d, deletion_comment = False)


Remove --from-env flag from site deploy

Command should always go from test to live or dev to test.
See #463

I like the answer on #463 - closing this issue as a dupe.


scintilla QueryContinueDrag event not firing?

I am trying to detect when a drag operation has been cancelled when the user presses the Esc key.  However, the scintilla QueryContinueDrag doesn't appear to fire when the Esc key is pressed.

ScintillaNET has a bumpy history with drag and drop. Search the issues list and code commits for possible insights.
This will take some time to investigate....

Update: I still haven't had time to look at all the issues related to drag and drop. Issue #256 is related to this.

Thanks for letting me know,
Karl

Karl Lam

Technical Director
Micro-Robotics Ltd
Registered Office: 135 Ditton Walk, Cambridge CB5 8QB.
Tel: 01223 523100. Fax: 01223 524242.
Registered in England No. 03983610
VAT No. GB 393 2883 17
www.microrobotics.co.uk
On 31/07/2016 04:21, jacobslusser
wrote:
  Update: I still haven't had time to look at all the issues
    related to drag and drop. Issue #256
    is related to this.
  —
    You are receiving this because you authored the thread.
    Reply to this email directly, view
      it on GitHub, or mute
      the thread.

Hi, could the native drag drop be manually turned on? I do need the drag & drop feature within Scintilla.

Did you try the workaround described in issue #256 regarding removing the call to NativeMethods.RevokeDragDrop(Handle);?

Thanks for replying.
I did that and recompiled my own version eventually.
I think the textual drag&drop could be a common feature and most developer will like to have it. And dropping other stuff from outside of the control might be less likely required feature. We'd better leave the default drag&drop support on.


mvn clean package出现错误“Failed to run task: 'yarn install' failed”

[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.8.0:yarn (yarn install) on project lineage-server-start: Failed to run task: 'yarn install' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [Help 1]

can you provide more detailed log? ( add -e at the end the mvn command


metal3 pod crash on baremetal 4.16.0-0.okd-scos-2024-08-21-155613

Describe the bug
metal3 pod in CrashLoopBackoff due to failure in metal3-ironic-inspector. Seems very similar to bug described in OCPBUGS-32304
Version
4.16.0-0.okd-scos-2024-08-21-155613 baremetal ipi
How reproducible
It's happened on two clusters I've set up since 4.16.0-0.okd-scos-2024-08-21-155613 became available.
Log bundle
+ CONFIG=/etc/ironic-inspector/ironic-inspector.conf
+ export IRONIC_INSPECTOR_ENABLE_DISCOVERY=false
+ IRONIC_INSPECTOR_ENABLE_DISCOVERY=false
+ export INSPECTOR_REVERSE_PROXY_SETUP=true
+ INSPECTOR_REVERSE_PROXY_SETUP=true
+ . /bin/tls-common.sh
++ export IRONIC_CERT_FILE=/certs/ironic/tls.crt
++ IRONIC_CERT_FILE=/certs/ironic/tls.crt
++ export IRONIC_KEY_FILE=/certs/ironic/tls.key
++ IRONIC_KEY_FILE=/certs/ironic/tls.key
++ export IRONIC_CACERT_FILE=/certs/ca/ironic/tls.crt
++ IRONIC_CACERT_FILE=/certs/ca/ironic/tls.crt
++ export IRONIC_INSECURE=true
++ IRONIC_INSECURE=true
++ export 'IRONIC_SSL_PROTOCOL=-ALL +TLSv1.2 +TLSv1.3'
++ IRONIC_SSL_PROTOCOL='-ALL +TLSv1.2 +TLSv1.3'
++ export 'IPXE_SSL_PROTOCOL=-ALL +TLSv1.2 +TLSv1.3'
++ IPXE_SSL_PROTOCOL='-ALL +TLSv1.2 +TLSv1.3'
++ export IRONIC_VMEDIA_SSL_PROTOCOL=ALL
++ IRONIC_VMEDIA_SSL_PROTOCOL=ALL
++ export IRONIC_INSPECTOR_CERT_FILE=/certs/ironic-inspector/tls.crt
++ IRONIC_INSPECTOR_CERT_FILE=/certs/ironic-inspector/tls.crt
++ export IRONIC_INSPECTOR_KEY_FILE=/certs/ironic-inspector/tls.key
++ IRONIC_INSPECTOR_KEY_FILE=/certs/ironic-inspector/tls.key
++ export IRONIC_INSPECTOR_CACERT_FILE=/certs/ca/ironic-inspector/tls.crt
++ IRONIC_INSPECTOR_CACERT_FILE=/certs/ca/ironic-inspector/tls.crt
++ export IRONIC_INSPECTOR_INSECURE=true
++ IRONIC_INSPECTOR_INSECURE=true
++ export IRONIC_VMEDIA_CERT_FILE=/certs/vmedia/tls.crt
++ IRONIC_VMEDIA_CERT_FILE=/certs/vmedia/tls.crt
++ export IRONIC_VMEDIA_KEY_FILE=/certs/vmedia/tls.key
++ IRONIC_VMEDIA_KEY_FILE=/certs/vmedia/tls.key
++ export IPXE_CERT_FILE=/certs/ipxe/tls.crt
++ IPXE_CERT_FILE=/certs/ipxe/tls.crt
++ export IPXE_KEY_FILE=/certs/ipxe/tls.key
++ IPXE_KEY_FILE=/certs/ipxe/tls.key
++ export RESTART_CONTAINER_CERTIFICATE_UPDATED=false
++ RESTART_CONTAINER_CERTIFICATE_UPDATED=false
++ export MARIADB_CACERT_FILE=/certs/ca/mariadb/tls.crt
++ MARIADB_CACERT_FILE=/certs/ca/mariadb/tls.crt
++ export IPXE_TLS_PORT=8084
++ IPXE_TLS_PORT=8084
++ mkdir -p /certs/ironic
++ mkdir -p /certs/ironic-inspector
++ mkdir -p /certs/ca/ironic
mkdir: cannot create directory '/certs/ca/ironic': Permission denied

Actually the issue seems to be a little different. 1002 and 1004 aren't the uid and gid of ironic and ironic-inspector in the container image
sh-5.1$ id ironic
uid=997(ironic) gid=995(ironic) groups=995(ironic)
sh-5.1$ id ironic-inspector
uid=996(ironic-inspector) gid=994(ironic-inspector) groups=994(ironic-inspector)
sh-5.1$ ls -lan /certs/ca
total 0
drwxrwsr-x. 2 997 994  6 Jun 11 10:39 .
drwxrwsr-x. 1 997 994 44 Sep 17 19:50 ..
sh-5.1$ id
uid=1002(1002) gid=1004 groups=1004

so the permission errors make sense

I think the issue lies with prepare-image.sh per the image manifest the package list file created for okd is called main-packages-list.okd instead of main-packages-list.ocp

I think I've got the root of the problem figured out and put in https://github.com/openshift/ironic-image/pull/581

A more correct fix would be to backport https://github.com/openshift/cluster-baremetal-operator/pull/430 to 4.16 or at least the part that removes the uid/gid customization. There's no rationale in that PR for the change and I have no access to the red hat jira, so that strongly limits my ability to contribute.

Hello, we will be releasing OKD 4.16 with this as a known issue.
Our intention is that 4.16 will be a pass-thru release, and clusters will proceed immediately to 4.17 where this is fixed

Verified issue doesn't exist on 4.17 (expected, so). Given the issue doesn't appear to have impacted my upgrade to 4.17 and 4.16's status as a pass-thru release I will close this issue.


wrapper.emitted() in composition API do not show context.emit events like documentation say.

I was trying to test events emitted inside a method in setup function when a click button is triggered. The click event was catch by wrapper like expected, but the another event emitted inside the method listened by the click wasn't.
My code for example:

The console.log show only click event:

Am I doing something wrong? Or it is an unexpected behavior?
I'm so sorry for use images, the code pasted do not showed like I expected.
Best regards.

The wrapper represent your "Component" Component and not your "Child" Component. So with wrapper.emitted('search') you receive the events that "Component" emitted and not "Child".
If I am not wrong you can do something like:
const childWrapper = wrapper.findComponent(Child)
expect(childWrapper.emitted('search')).toHaveLength(1)

I would test "Child" in an extra unit test, where i can check for the emitted event.
If you want to test in compination with "Component". Than it would be better to check the result of the event.
So for example:
expect(wrapper.find('span').text()).toBe('Teste')

Hi!
Thanks for your reply! I found other mistake that I was doing. The method in Child that I invoke was mocked with jest.fn() causing the expected event not triggering.
After changing this wrong implementations all tests passed.
Thanks.


Can't login

I'm hosing teldrive locally on my pc. There aren't any errors in the log but I'm stuck on the "Please Wait...":

Okay so what I just did was running teldrive on linux. There it atleast shows an error message:

Okay so what I just did was run teldrive on linux. There it atleast shows an error message:
edit: the hash i entered was wrong, i'll just run teldrive on my raspberry with linux (windows still doesn't work).

yep i just run on windows its stuck Please Wait.. forever

Why closed? I'm also this issue. I run with docker-compose in my ubuntu as server, can login by web browser on Mac, but can not by web browser on my Android.


Dropdownlists are unsorted

It is difficult to find items in drop down lists.

Therefor it should be improved by sorting lists alphabetically.

This issue cannot be solved at the storage layer.
Some of the drop down lists are built as an aggregation of different data sources. That means that even if the original sources are sorted, their aggregation won't be.
Therefore the solution consist on sorting the results as close as the presentation layer as possible.

Currently the UI beans sometimes return a sorted and sometimes an unsorted list (e.g. ReportBean).
In order to provide consistently sorted drop down menus, we should homogenize the treatment of lists.
This behaviour can be achieved either by sorting the data at the end of each Bean call, or client side using Javascript. On this post there is a sample code on how to do this.
What approach to use is an architectural decision that should consider performance impact and implementation effort of each solution.

I consider the approach with client side sorting best suitable in terms of efforts and risk of side effects.
Please contribute the Javascript handler to admUtils.js, but take care of preserving the OSCM layout customization, when using the styleClass attribute as demonstrated in the mentioned sample.

I've created a pull request and will link the issue there
#312

This will be integrated for next release after all tests have passed successfully.

Merged


Missing dist folder '../../dist/orbitdb.js' ?

trying to follow the browser example and it shows the orbitdb,js file is in the subsub dist folder but this folder is missing as part of the orbitdb project...
https://github.com/orbitdb/orbit-db/blob/master/examples/browser/browser.html
is there somewhere I can download orbitdb.js ?

please run npm run build which should create the needed files.
https://github.com/orbitdb/orbit-db/blob/52d68cd690aaa800430200db48a935d8af693e8e/package.json#L81

please run npm run build which should create the needed files.
https://github.com/orbitdb/orbit-db/blob/52d68cd690aaa800430200db48a935d8af693e8e/package.json#L81

I am not using node, is there a built version somewhere?

I am not using node, is there a built version somewhere?

http://ipfs.io/ipfs/QmanAYDoi8UVk2SN85KQAkguoYvGEESwJqTBdEx5iyTLvY/

http://ipfs.io/ipfs/QmanAYDoi8UVk2SN85KQAkguoYvGEESwJqTBdEx5iyTLvY/

works 100% tyvm

works 100% tyvm


Upmerge 1.11.x to master

[trickle] No significant performance differences

[microbenchmarks] No significant performance differences


Audio channels are sometimes reversed

Bevy version
main, 0.8.1
Relevant system information
macOS 12.6
Macbook Pro (M1 Max)
What you did
Modified the audio example to play this sound:
RL.zip

cargo run --example audio --release

What went wrong
This audio file consists of some tones alternating from right->left->right->left.
However, when played with bevy, I hear left->right->left->right
This behavior is not consistent. Without --release, the audio plays in the correct channels.

It seems likely that this is an issue upstream with rodio or cpal.
I found the same behavior in a rodio example. https://github.com/RustAudio/rodio/issues/444
But some naive attempts in cpal didn't produce the same behavior.

Interesting: this was discovered in #6028. Apparently it's a pre-existing issue.


Release v1.0.0-rc3

Codecov Report

Merging #52 into master will decrease coverage by 0.00%.
The diff coverage is 0.00%.

@@             Coverage Diff             @@
##             master     #52      +/-   ##
===========================================
- Coverage      6.22%   6.22%   -0.01%
  Complexity       17      17
===========================================
  Files            16      16
  Lines           915     916       +1
  Branches        122     122
===========================================
  Hits             57      57
- Misses          845     846       +1
  Partials         13      13

Impacted Files
Coverage Δ
Complexity Δ

...rc/main/java/com/webank/wecross/console/Shell.java
0.00% <0.00%> (ø)
0.00 <0.00> (ø)

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 26c2e51...f466c5f. Read the comment docs.


pip dependency requirements version

Could you share your requirements.txt version, such as torch, transformers, flash-attn, cuda version and so on ?

Thank you so much for bringing this to our attention, I added the requirements.txt

I have encountered lots of trobules when installing the flash-attn, but finally get it done.
Here I share my experience to help others:
Environment:
conda

python 3.9
cuda 12.1
transformers==4.38.1
torch==2.2.0 # conda install pytorch==2.2.0  pytorch-cuda=12.1 -c pytorch -c nvidia
packaging

After the above libs are installed, then begin to install the flash-attn, or you'll get lots of error.
run pip install --use-pep517 -U flash-attn --no-build-isolation
This command will install the newest flash-attn version.
flash-attn==2.5.5
That's all.


feat: public network deployments

A helm deploy with --set network.public=true will create a network that may be joined from public internet.

Removing network-all label because they all passed (with the exception of reorg, which got killed with 143 but I have run locally), and I just updated a comment.


Language server does not start when configured with Nvim LSP

Discussed in https://github.com/polarmutex/beancount-language-server/discussions/160

Originally posted by DanielPower May  1, 2022
I've tried the following installations:

1.0.2 from Cargo
1.0.2 from Arch User Repository
1.0.3 installed via nvim-lsp-installer (by modifying their install script, since their parser hasn't been updated for the new file name structure in 1.0.3).

LspInfo shows that the file I have open is of filetype: beancount. And it shows that the language server is executable, and set to autostart. But it does not start. Additionally, if I run LspStart beancount manually, nothing happens.

I'm not aware of any logs that might have any relevant information, but would appreciate it if you have any advice.
Attached is the config I'm passing to lspconfig.

I'm not sure what the journalFile is supposed to refer to. So that could be the problem, since mine is blank. If that needs to be populated, what should I point it to?

This should be fix now based on https://github.com/neovim/nvim-lspconfig/pull/1879 .


Ping improvement

Summary: Rialto server internal threads deadlock detection
Type: Feature
Test Plan: UT and Fullstack
Jira: RIALTO-334

https://jenkins.code.rdkcentral.com/job/github-triggered/39054/ started

https://jenkins.code.rdkcentral.com/job/build-component/77257/ started.

https://jenkinsrdkm.cmf.code.rdkcentral.com/job/github-triggered/5941/ started

https://jenkinsrdkm.cmf.code.rdkcentral.com/job/build-component-platform/9777/ started.

https://jenkins.code.rdkcentral.com/job/github-triggered/39055/ started

https://jenkins.code.rdkcentral.com/job/build-component/77260/ started.

https://jenkinsrdkm.cmf.code.rdkcentral.com/job/github-triggered/5942/ started

https://jenkinsrdkm.cmf.code.rdkcentral.com/job/build-component-platform/9779/ started.

Sanity tests for ['RPI3 Hybrid/MC'] added.
https://jenkinsrdkm.cmf.code.rdkcentral.com/job/test-components-flow/22030/

Sanity tests for ['RPI4 Hybrid'] added.
https://jenkinsrdkm.cmf.code.rdkcentral.com/job/test-components-flow/22029/

Sanity tests for ['RPI3 Hybrid/MC'] added.
https://jenkinsrdkm.cmf.code.rdkcentral.com/job/test-components-flow/22036/

Sanity tests for ['RPI4 Hybrid'] added.
https://jenkinsrdkm.cmf.code.rdkcentral.com/job/test-components-flow/22035/

Sanity tests for ['BCM Reference Refapp2'] added.
https://jenkinsrdkm.cmf.code.rdkcentral.com/job/test-components-flow/22039/


How to Configure Layer 7 reverse proxying using HA proxy and load balancing?

How to Configure Layer 7 reverse proxying using HA proxy and load balancing?
We want to have a single domain name that serves multiple applications, as the http requests can be analyzed to decide which application should receive the traffic.

stack: test/vhosts
version: 0.1.0
services:

  lb:
    image: kontena/lb
    ports:
      - 8888:80

  nginx:
    image: nginx:1-alpine
    links:
      - lb
    environment:
      - KONTENA_LB_VIRTUAL_HOSTS=foo.foobar.com
      - KONTENA_LB_VIRTUAL_PATH=/nginx

  web:
    image: httpd:alpine
    links:
      - lb
    environment:
      - KONTENA_LB_VIRTUAL_HOSTS=foo.foobar.com
      - KONTENA_LB_VIRTUAL_PATH=/apache

Thanks for the quick response. But  we have some different challenge here.
We have three grids like dev, test and prod
client request ->   .dev. .com  -> forward to .dev
.prod. .com  -> forward to .prod
We have one front infra grid.  IP  matched to domain -> .com
Every request first come to infra grid load balancer first.  depending on dev,prod or test  pattern in request forward to corresponding grid.
Below is example of  grid stack.
when user hit  http://whoami.dev..com then from infra front LB should forward request to service running in dev grid.
stack: test/infra
version: 0.1.0
services:
lb_external:
image: kontena/lb:latest
ports:
- 80:80
deploy:
wait_for_port: 80
wait_for_port: 443
affinity:
- label==loadbalancer
health_check:
protocol: http
port: 80
uri: /__health
environment:
- KONTENA_LB_HEALTH_URI=/__health
whomami:
image: jwilder/whoami
stateful: true
environment:
- KONTENA_LB_VIRTUAL_HOSTS=whomami.net
- KONTENA_LB_MODE=http
- KONTENA_LB_BALANCE=roundrobin
- KONTENA_LB_INTERNAL_PORT=8888
links:
- lb_external
ports:
- 8888:8000
we tried with trafik with below config but its not working. Its forwarding request to grid LB. but getting 503 error.
[frontends]
[frontends.frontend1]
backend = "cbrDev"
[frontends.frontend1.routes.whomami]
rule = "HostRegexp:{subdomain:[a-zA-Z]+}.cbr-dev..net"
[backends]
[backends.cbrDev]
[backends.cbrDev.circuitbreaker]
expression = "NetworkErrorRatio() > 0.5"
[backends.cbrDev.servers.server]
url = "http://"
weight = 1

If your dev, test and prod are really separate grids (separate set of nodes) there's no automatic way to do this with Kontena LB. Each Kontena grid operates in isolation and there's currently no way a Kontena LB could be configured to handle traffic to another grid.


fix: unlock callback and buffer for outstanding read when closing port

We typically use a pattern of an async reader process. If that process
is blocked on IO while another process closes the underlying port, the
async reader would not only never return, but would also never be collected.
The osi_read_port callback closed over the process and is locked while
the read is outstanding. Once closed, LibUV will never call its callback
routine which unlocks the Scheme callback and buffer.
The fix unlocks both the Scheme read callback and the read buffer and calls
the read callback with UV_EOF. This allows the Scheme code to process
an end-of-file and any remaining computation including winders.
The order of the read callback and the close callback should not matter.
close-osi-port immediately sets the port-handle to #f, which makes any
subsequent read calls on alternate processes safely fail.

@laqrix, I pushed a commit to fix the automated tests.

I believe the case for write_buffer and write_callback is less necessary.  If you are using Scheme's port abstraction, close-port will induce a flush-output-port. If there is a write outstanding, you are likely to have a multi-threaded race problem.   If we are concerned someone is bypassing the Scheme port abstraction, then I completely agree, but we will need to find a way to test this case at the OSI level.

I changed my mind. We should update write_callback and write_buffer for completeness and correctness. I'm not sure how to handle the testing, but we should try something.

Yes, I think it's a good idea to keep it complete & consistent. For testing, try a pipe to another Swish process that doesn't read its input. Fill the pipe to get a write that doesn't complete. Then close the port and watch the sparks fly!

Take a look at the write-leak mat. Perhaps I missed an obvious path. When I run it, I always get UV_ECANCELED from the write_callback before the close callback fires (at least on Windows and Linux). That matches my expectations at an OS level. Any suggestions to improve the test?

@owaddell found the documentation for libuv's uv_close explicitly states:

In-progress requests, like uv_connect_t or uv_write_t, are cancelled and have their callbacks called asynchronously with status=UV_ECANCELED.

Since uv_close explicitly guarantees that outstanding write callbacks are invoked before the descriptor is closed, should we simply leave the code as is?

I'm a little surprised that libuv doesn't handle outstanding reads the same way.

I was also surprised. I think the asymmetry in the code is unfortunate, but reasonable given the circumstance. Maybe we should add the write-leak test as a regression to make sure the behavior never changes in the future?

Yes, I think it's fine to leave the code asymmetric and to add a write test to verify proper write callback usage when a handle is closed. Thanks!

@burgerrg I added a comment to close_stream_cb explaining the LibUV behavior (and updated the commit comment). I renamed the tests to read-leak and write-leak. My second force push also included a check that the winders ran in the write-leak test.

Thanks for the review!


Changed perceptron model to Multi Layer Perceptron Classifier

Fixes Issue🛠

Closes #5
Description👨💻
Used Muti Layer Perceptron Classifier instead of a single neural network to increase efficiency

Provide the output screenshot or any video of output of these changes @arijitghosal03

Here I have run the code for the perceptron model only, it doesnot creates any conflict with rest of the code and increases accuracy to 45% which with almost 3 times the previously used model

Well Done!! @arijitghosal03 Congrats on making the first good quality PR merged to this project under GSSoC23 🎉🎉


[Bug] using SumS on a ushort[] throws System.InvalidCastException

Code:
                    ushort[] pRowArrayClip = samePool.Rent(countClip);
                    Array.Copy(pRowArrayFull, pRowArrayClip, countClip);
                    double average = pRowArrayClip.SumS();

Exception:
                   System.InvalidCastException : Specified cast is not valid.
                       at JM.LinqFaster.SIMD.LinqFasterSIMD.SumS[T](T[] source)
                       at #########

Should ushort not be supported

not sure, it looks like it should work, I'll investigate

ushort[].Sum() from normal linq does not appear to be supported (And also not in SumF)

What would the expected result be a Double ? Decimal  ????

the result of a sum on ushort should be a ushort, the way it is currently implemented.
which, won't typically be useful!
probably why linq doesn't support it.

ok the problem is that a ushort + a ushort = an int32.
So, this could be supported if instead of using a generic sum method, we made one for each type, and ushort returned an int32 for the sum.
that's a bunch of grunt work though.

output type always the same as input type currently, same as linq.
On Fri, Jul 19, 2019 at 10:11 AM Simon Coghlan<EMAIL_ADDRESS>wrote:

What would the expected result be a Double ? Decimal ????
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/jackmott/LinqFaster/issues/18?email_source=notifications&email_token=ABD3XZR4UZSJLSUCKOXOQ6DQAHKR7A5CNFSM4IFGOQQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2L5IKI#issuecomment-513266729,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABD3XZQONZFFV4QNGDBSTNDQAHKR7ANCNFSM4IFGOQQQ
.

probably why linq doesn't support it.
So this should mean that this implementation not allow it to be used for ushort's, and not allow it to compile (As per linq)

ok the problem is that a ushort + a ushort = an int32.
So, this could be supported if instead of using a generic sum method, we made one for each type, and ushort returned an int32 for the sum.
that's a bunch of grunt work though.

Work done in the pending #20
Convert SumF function into a generic function
Add new managed types (sbyte, byte, short, ushort, int, uint, long, ulong)
Add tests for some of the new types
Add new Benchmark tests


C++ versions less than C++14 are not supported

When  I use command catkin_make_isolated --install --use-ninja, there are some error.
#error "C++ versions less than C++14 are not supported."

Anyone knows,how to deal with this problem?

This is because absl does not support C++ lower than 14


Get database name for Azure Cosmos DB for PostgreSQL

Hi, I'm not being able to find how to get the database name of a PostgreSQL Citus CosmosDB powered database using the js SDK.
I'm able to get information on the cluster or servers via the properties of https://azuresdkdocs.blob.core.windows.net/$web/javascript/azure-arm-cosmosdbforpostgresql/1.0.0-beta.1/classes/CosmosDBForPostgreSQL.html but none of these includes the database name.
thanks in advance!

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

ID: d149e9db-dbe0-8136-12f8-7b1957a02b30
Version Independent ID: 9a40e0b5-378c-58f2-3ec4-3810a6e505c2
Content: CosmosDBForPostgreSQL class
Content Source<EMAIL_ADDRESS>GitHub Login: @VSC-Service-Account

@vanta-cladelpino ,I think you use a wrong package, @azure/arm-postgresql may the correct package you want

Hmmm, I'm talking about Cosmos DB for PostgreSQL, and can fetch all the cluster/nodes information, plus the package has the exact name of the service, so I don't really think thats the case.

@kazrael2119 Hmmm, I'm talking about Cosmos DB for PostgreSQL, and can fetch all the cluster/nodes information, plus the package has the exact name of the service, so I don't really think thats the case.

@vanta-cladelpino  do you mean you want to get the database name which is created when creating a cluster?

If as the above saying is your issue ,after my check , we on portal ,there's a parameter called databaseName

but in sdk , we can not set it and get it.
this is beacuse sdk is generated from swagger , so I think this is a service level issue

Correct, we recently introduced the custom database name in Azure Cosmos DB for PostgreSQL. It can be done only during cluster provisioning. Today this capability is enabled in the Azure portal only. We're working on updating REST APIs with this functionality (that would include GET for DB name). We expect the REST APIs update to be published in the next 6-8 weeks or so. Once REST APIs are updated the change will be brought down to Terraform, Azure SDKs, and Azure CLI.

thanks!!

Correct, we recently introduced the custom database name in Azure Cosmos DB for PostgreSQL. It can be done only during cluster provisioning. Today this capability is enabled in the Azure portal only. We're working on updating REST APIs with this functionality (that would include GET for DB name). We expect the REST APIs update to be published in the next 6-8 weeks or so. Once REST APIs are updated the change will be brought down to Terraform, Azure SDKs, and Azure CLI.

Hi @niklarin , does the feature have been published? this month we have CosmosDBforPostgreSQL release request:https://github.com/Azure/sdk-release-request/issues/4461 , but in the generated code:https://github.com/Azure/azure-sdk-for-js/pull/27007, we haven't contains this feature. If publish is done, I think we can include this feature directly in this release

@kazrael2119 No, not yet. Tentatively the next update for the REST APIs for Azure Cosmos DB for PostgreSQL will be done in October / November and will include quite a few additions including the DB name at provisioning time.

@kazrael2119, please help to check the next release to verify update and then close this item.  Thanks.

@lirenhe please do not open issues related to PgSQL on this repo!


Inference 會切斷 sample

想請問一下為什麼在 Inference的階段 會把一筆資料切成兩個example?
[舉例]
這是原始的一筆資料：
"Haven' t been able to use ir yet, as I' m waiting for the sim card, but its original as I coud see , which is the most important thing. Bought it for my husband, I already have the s6 edge and I love it so , I guess it' ll be much like that. the only bad thing it has, is the battery, , it doesn' t last long , its the only critic I can do. Hear that' s something they solved with the new model, the S7, but I haven' t tried that one yet."
做 Inference之後的結果如下：
[2023-02-28 19:24:32] (2.0.28a0) Example 1: " Haven ' t been able to use ir yet , as I ' m waiting for the <sim card:Negative(confidence:0.689, ref:Negative)> , but its original as I coud see , which is the most important thing . Bought it for my husband , I already have the <s6 edge:Negative(confidence:0.689, ref:Positive)> and I love it so , I guess it ' ll be much like that . the only bad thing it has , is the battery ,
[2023-02-28 19:24:32] (2.0.28a0) Example 2: , I already have the s6 edge and I love it so , I guess it ' ll be much like that . the only bad thing it has , is the <battery:Negative(confidence:0.884, ref:Negative)> , it doesn ' t last long , its the only critic I can do . Hear that ' s something they solved with the new model , the S7 , but I haven ' t tried that one yet . "
是否能把這兩個example合併, 變成如下:
Example 1: " Haven ' t been able to use ir yet , as I ' m waiting for the <sim card:Negative(confidence:0.689, ref:Negative)> , but its original as I coud see , which is the most important thing . Bought it for my husband , I already have the <s6 edge:Negative(confidence:0.689, ref:Positive)> and I love it so , I guess it ' ll be much like that . the only bad thing it has , is the <battery:Negative(confidence:0.884, ref:Negative)> , it doesn ' t last long , its the only critic I can do . Hear that ' s something they solved with the new model , the S7 , but I haven ' t tried that one yet . "

谢谢反馈，我抽时间看看

这是因为模型限制了最大建模长度以提升效率。你可以尝试以下两个方法：

手动限制最长文本
修改模型的最大建模长度: sent_classifier = APC.SentimentClassifier("multilingual", max_seq_len=512)

成功了！非常感謝！

成功了！非常感謝！


First version of omnipath

Hi @deeenes ,
as discussed in https://github.com/saezlab/pypath/issues/159, this is the first version of the python client.
I still haven't implemented all the R functionalities, but we (ping @giovp) think it's important to kick-start this sooner rather than later.
Here's an exampe usage:
import omnipath as op

print(op.__server_version__)
print(op.options)  # controls similar stuff as in R: url, password, number of retries, cache

# op.clear_cache()  # 2 types of caches: file (pickles) and memory (just a dictionary); default is filecache

e = op.requests.Enzsub()
print(e.resources())
df = e.get()
print(df.shape)  # 39201 rows × 7 columns

df = e.get(resources=['SIGNOR'])
print(df.shape) # 7669 rows × 7 columns

i = op.requests.Intercell()
print(i.categories)
print(i.generic_categories)

d = op.interactions.Dorothea()
print(d.resources())
df = d.get(levels='A', types="transcriptional")
print(df.shape)  # 65788 rows × 11 columns

a = op.requests.Annotations()
df = a.get(proteins='Q13976')
print(df.shape)  # 1134 rows × 7 columns

Module structure:

op.constants - constants like type of the query, organism, datasets for interactions, etc.
op.interactions - all interactions should be here (e.g. op.interactions.Dorothea)
op.requests - contains the rest (Annotations, Intercell and Enzsub)

TODOs (high-level):

[ ] discuss which of the missing functionalities should be implemented/dropped (e.g. graph-related stuff)
[ ] converge on how the API shall look (e.g. wrap the existing code in functions so that user only calls 1 function)

TODOs (low-level):

[ ] write tests for already implemented functionalities
[ ] refactor some methods/improve docstring (see TODOs in the code)
[ ] log important stuff (query url, cached file, failures, etc.)
[ ] automatic type conversion - finish this for the rest of the requests + add extra check for bool conversion

Known bugs:

some parameters are not available for certain type of queries (at first, I went for 1-1 correspondence with R, should've gone for what's in https://omnipathdb.org/queries/<Query> instead).

It's getting a bit late, tomorrow I will make an exhaustive list of what has been implemented and what's missing.
Any feedback is more than welcome.

Hi @michalk8 ,
Thank you so much for this great contribution! I just checked it out and run the examples. Very well designed, nice interface and good quality, scalable code. The docstrings are also very thorough. Now I am just merging it and will check more in detail later, if necessary do minor modifications. I am really glad we have already a basic functionality, I think soon this module will be very useful for the public.
Having a list of query parameters is a good first solution (in constants), however a more future proof solution to get the parameters from https://omnipathdb.org/queries/<query_type>. Here you can get the possible values for certain parameters (e.g. resources). Where the value is None any value is acceptable. What we also do in the R package is to map certain synonyms and plural/singular forms as users easily mistake e.g. "resource" vs. "resources" vs. "databases" etc.
Another little thing in the R package is that by default we don't allow the download of annotations without any parameters as it is huge (there is a force option). Sometimes the server even crashes in this case, we have some refactoring to do there.
About DoRothEA levels, level E is not distributed in the web service as it would result huge datasets. At the tf_target datasets one can filter for dorothea_levels, at least the interactions from DoRothEA, so it's a valid parameter.
I also tried to call a.get(proteins='Q13976', format = 'json'). I got a timeout error, unfortunately this happens sometimes, also in the R package we set a higher timeout for Rcurl. Another thing: as I see in the URL all resources are listed. When the user doesn't provide resources, we can just skip the &resources=... part, making it easier for the server.
The current basic functionality is the most important, any extra we can add later according to your and others needs. Maybe one important thing would be the combination of 2 intercell annotation data frames with a network data frame to get a cell-cell communication network. Another nice thing would be to convert a network data frame to an igraph object (of course if you don't need that we or someone else might implement it later).
The todo list sounds very good to me, I think soon we can even publish this module and upload to pip :)
Best,
Denes

@michalk8 also you could add yourselves to setup.py as authors


User/Password authenticated proxies not working.

I can't get authenticated proxies to work. I have tried many things such as the authenticator class but that does not work very smoothly for things such as proxy rotation.
Is there a better way for me use authenticated proxies in Jsoup like I would in apache http? I really love jsoup!

Did you ever get this working? What did you end up doing?

This is implemented in #2046


Make comment admin more moderation friendly

through the admin users should be able to:

list all comments
list all visible comments
list all removed comments
list all comments made by a user
list all comments made on an article

@smn @miltontony @bruskiza
I'm not sure what to do about the flake8 failures here. most of them are for lines that are too long but i can't see how to shorten them without creating a whole bunch of temp vars

@KaitCrawford Thanks for bringing all this work across! :cake:
:+1: (save for my 1 question)

@miltontony I presume I have to write covering tests for all this new admin stuff?

@KaitCrawford no, we generally don't write test for django admin things

@miltontony /gasp :astonished: really? so I guess I just merge it then?


Filter/search support for Pagination

The pagination for getParticipant and getDeployment should support filter/search
We should do pagination on database level

Since we have expectedParticipantData now, we should consider save and access participant information (email, name, etc.,) here, and use Keycloak only for identity management.
This will save a lot of resources and time when processing recruitment/participants related operations.
The process time is expected to reduce significantly for Participants and Deployments page on Portal, and we can keep rely on frontend to do pagination.
If we want stick with Keycloak for managing participant information, we should consider use Group or Claims to query them.


[6.0.2] Fix windows creation of relative symlinks to directories

Explanation: Fixes creation of relative symlinks to directories on Windows to resolve SwiftPM issues
Scope: Fixes a path calculation while creating symlinks to directories
Original PR: https://github.com/swiftlang/swift-foundation/pull/931
Risk: Low - only impacts Windows and the change is heavily tested via unit tests
Testing: Testing done via swift-ci testing and local testing
Reviewer: @iCharlesHu @compnerd

@swift-ci please test

@swift-ci please test Linux platform


Final edits on the documentation

I finally found some time to do some more editing on the rest of the documentation. It should read much smoother now, I didn't change any actual content.

Awesome! Thanks!


iOS 13.4 下 好像没有效果

新升级了 Xcode  Version 11.4  在模拟器 iPhone 11   iOS 13.4 版本上  WXNavigationBar  好像无效了，升级之后才有的，没升级之前是没问题的

It seems a bug of iOS 13.4 when debugging in Xcode 11.4. But it will take effect on next launch.
I will add manually setup in next version

Please update to version 2.0.1. And add following code in AppDelegate
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
    //....
    WXNavigationBar.setup()
}

I also noticed that preferredStatusBarStyle in ViewController will not work when debugging in Xcode 11.4 but worked when not debugging. So I think it's a bug of Xcode 11.4.  And hope it will be fixed in Xcode 11.4.1.

好的，谢谢~


Validate PhEDEX subscriptions setup during assignment

Ivan and Federica just hit an issue in the CMS@Home agent where it complains about a Move subscription to a site that is neither T0 or T1. See log in [1].
So we should validate
*) NonCustodialSubType x NonCustodialSites
*) CustodialSubType x CustodialSites
and fail assignment.
[1]
2017-03-06 08:32:58,963:139628747171584:INFO:PhEDExInjectorPoller:Subscribing: ['/QCD_Pt-40toInf_fwdJet_bwdJet_Tune4C_2p76TeV-pythia8/DMWM_Test-MonteCarlo_eff_CMS_Home_FF_v23-v11/GEN-SIM'] to ['T2_UK_London_Brunel'], with options: Move: y, Custodial: n, Request Only: y
2017-03-06 08:32:59,397:139628747171584:WARNING:Service:The cachefile /data/srv/wmagent/v1.1.0.patch2/install/wmagent/PhEDExInjector/.wmcore_cache/.wmcore_cache_31961/requests/cmsweb-testbed.cern.ch/3827455048720243520_POST_subscribe does not exist and the service at https://cmsweb-testbed.cern.ch/phedex/datasvc/json/prod/subscribe is unavailable - it returned 400 because Bad Request
 with result: cannot request move:  moves to non-T0, non-T1 destinations are not allowed\n

@sidnarayanan can you just confirm this is really not a use-case and indeed it should fail? Thanks


Recent projects list is empty & cd doesn't work on macOS

Hi,
I am using this plugin on my Linux machine as well also on Macbook but on macOS, it doesn't work. I'm not sure if it's happened because I have null-ls installed too but I think it's related only to OS. Same nvim config between two computers.
:lua print(vim.inspect(require('project_nvim.utils.history').get_recent_projects())) gives me empty array {}
I cannot see any projects when I type :Telescope projects
:!pwd is always the same for a project and it doesn't change the root working directory.
I was thinking that's because of structure I have:

packages

UI

package.json
.eslintrc.js

APP

package.json
.eslintrc.js

package.json

Because of that null-ls doesn't work in UI and APP directories because it cannot read config.
Any hints on that? Thank you for such a needed plugin!
NVIM v0.6.0-dev+nightly-882-g93d33ed02
Build type: Release
LuaJIT 2.1.0-beta3
Mac OS X 10.15.7

Ah unfortunate! Glad it's working now :)


feat: Support alter schema swap with

Is your feature request related to a problem? Please describe.
This is useful when users want to manage Blue/Green deployments by dbt.
Users can deploy some mvs on schema a and schema b. Use the following statement to swap them.
ALTER SCHEMA a SWAP WITH b;

Describe the solution you'd like
No response
Describe alternatives you've considered
No response
Additional context
No response

Related to DBT's usage


ISPN-6373 Make sure cache dependency is respected for the ShardIndexM…

…anager
https://issues.jboss.org/browse/ISPN-6373

Looks good so far. I'll pull it in a minute.

Integrated. Thanks @gustavonalle !

Integrated in 8.2.x too.


Simplify the basic details input by using Robotoff predictions

What

[ ] Simplify the basic details input by removing brand and weight fields, and offering Robotoff insight fetching and validation instead (with a fallback)

Mockups

Part of

#1379

@teolemon Doing so with async/background tasks is a bit acrobatic.

One thing we could do first is a brand auto complete/search screen. We don't have a brand taxonomy yet, but there are workarounds.
Also, have you seen the product addition draft proposal in Discussions


FileSystemLoader: {% import foo/test %} fails if there are templates 'foo' and 'foo/test'

Consider the FileSystemLoader([dir1, dir2]), where dir1 containers foo template, while dir2 contains directory foo with file test.
Expected Behavior
The env.get_template('foo/test') should return proper template.
Actual Behavior
The env.get_template('foo/test') raises
-> IOError: [Errno 20] Not a directory: 'dir1/foo/test'
Full Traceback
IOError: [Errno 20] Not a directory: 'dir1/foo/test'
>>> from jinja2 import FileSystemLoader, Environment
>>> loader = FileSystemLoader(['dir1', 'dir2'])
>>> env = Environment(loader=loader)
>>> env.get_template('foo/test')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/usr/lib/python2.7/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/usr/lib/python2.7/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/usr/lib/python2.7/site-packages/jinja2/loaders.py", line 171, in get_source
    f = open_if_exists(filename)
  File "/usr/lib/python2.7/site-packages/jinja2/utils.py", line 154, in open_if_exists
    return open(filename, mode)
IOError: [Errno 20] Not a directory: 'dir1/foo/test'

Your Environment

Python version: any
Jinja version: any

min. example https://github.com/praiskup/jinja-issue-821/blob/master/jinja-test

Interesting.. seems like open_if_exists should check for ENOTDIR as well.

Sounds like a good candidate for PR to fix it (against 2.10-maintenance)

Testcase is needed?


Change warning panel padding and fix text alignment

What is the context of this PR?
Change padding on warning panel for including warning panels in the content of collapsibles
Fixes #747
How to review

Tests pass
Collapsibles containing warning panels are spaced correctly

 Warning panels within collapsible (Adjust spacing)


IEnumerable and ISerializable conflict

If a type implements both ISerializable and IEnumerable the former is ignored. The ISerializable implementation should overwrite any other type inference.

For a workaround using a custom contract resolver, see How to serialize an ISerializable object into SOAP or Json or Xml.

Prioritising ISerializable over IEnumerable would break uses of HashSet<T>, and perhaps other common enumerable types, but that one comes to mind immediately.

I think that using a custom contract resolver is a better approach. I'm closing this issue.

I think that using a custom contract resolver is a better approach. I'm closing this issue.


Fix #6222 InterfaceTypeDescriptor duplicating fields if CreateDefinition called more than once.

Summary of the changes (Less than 80 chars)
Add Definition.Fields.Clear() to InterfaceTypeDescriptor.OnCreateDefinition to match ObjectTypeDescriptor and prevent duplicating fields when CreateDefinition is called multiple times.
Closes #6222

 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.You have signed the CLA already but the status is still pending? Let us recheck it.

Hey @darren-clark thank you for helping with Hot Chocolate!

/azp run


improve doc and tests for positive? and negative?

improve doc and tests for positive? and negative? in section 3.7.3
resolves LiiiLabs/goldfish#127 (although the issue title is about odd? and even?)

weird
(positive? 0.0) => #t ; *** failed ***
; expected result: #f
condition: an-error
something went wrong

; *** checks *** : 26[8](https://github.com/LiiiLabs/goldfish/actions/runs/11754409974/job/32748334690?pr=155#step:9:9) correct, 1 failed. First failed example:

(positive? 0.0) => #t ; *** failed ***
; expected result: #f

duplicated with https://github.com/LiiiLabs/goldfish/commit/0f21546da52f52133f1f388dbf904284ab1c669f


[DOCFIX]Update cn version of docs/_data/table/cn/master-metrics.yml

What changes are proposed in this pull request?
[DOCFIX]Update cn version of docs/_data/table/cn/master-metrics.yml
Why are the changes needed?
The Chinese docs/_data/table/cn/master-metrics.yml doc is problematic: the description of Master.CreateDirectoryOps is wrong.
This PR synchronizes these updates.
Does this PR introduce any user facing changes?
Developers can get to know Alluxio in Chinese easily.

alluxio-bot, merge this please


uv self update should support --dry-run

I want uv to tell me whether it thinks it needs an update, before I actually tell it to update.
The most straightforward pattern for this would seem to be supporting --dry-run (which uv lock already supports).  uv self update doen't currently support that:
$ uv --version
uv 0.5.7 (3ca155ddd 2024-12-06)
$ uv self update --dry-run
error: unexpected argument '--dry-run' found

  tip: to pass '--dry-run' as a value, use '-- --dry-run'

Usage: uv self update [OPTIONS] [TARGET_VERSION]

For more information, try '--help'.
$ uv --dry-run self update
error: unexpected argument '--dry-run' found

Usage: uv [OPTIONS] <COMMAND>

For more information, try '--help'.
$

Possible alternatives:

uv self list-updates (clunky?)
uv self update list (ripe for human error)
uv self update --list (ditto)
uv self list (better, more like uv python list, may need uv self install too? (and maybe uv python update should be a command as well?))
uv self versions (different name, same action as uv self list, no real precedent though)

Makes sense, I honestly thought this existed.

I started looking into this. Unfortunately fetch_release is not public (https://github.com/axodotdev/axoupdater/blob/1ce5efa7b73e16437bc757c6ca21963ddf18fc45/axoupdater/src/release/mod.rs#L91) and is_update_needed only returns a bool (https://github.com/axodotdev/axoupdater/blob/1ce5efa7b73e16437bc757c6ca21963ddf18fc45/axoupdater/src/lib.rs#L302) so we can't say what version we'll update to. But... better than nothing.


Test coverage / OS

The README says that this is tested on Ubuntu 16.04
Is this documentation not up to date, or is the testing outdated?
https://github.com/andreaferretti/neo#1-neo---a-matrix-library

Kind of both ;-) It was originally tested on Ubuntu 16.04 and Mac OS Yosemite, now I have tested it on Ubuntu 20.04 and various Mac OSs up to Monterey. I will update the docs


New type: best

I wanted the ability to extract only one fastq file from each fast5. If a 2D read is available, then that's what I want. If only the template or only the complement read is available, then I'll take what's there. But if both the template and the complement are available (and not the 2D), then I want whichever of the two is better.
I saw the # TODO "best". What is "best"? comments in Fast5File.py, so I see I'm not the first to think of this! In order to choose the best, I used the mean error rate as determined by each read's Phred scores. Whichever read (template or complement) has a lower error rate is considered best. Ties go to template. But if someone can make a case as to why the Phred scores aren't a good way to choose the best read, I'd be keen to hear their reasoning.
I tried to update the code in all relevant places, including the docs. Hope I didn't miss anything!

Merging, thanks!


Prepare full COSMOS shape catalog

So far we have used the bright sample from the shape catalog of Schrabback et al., which already has a very good number density, but we probably want to switch to the full sample, including fainter sources, which goes to higher redshifts.
The thing to do here is to write a notebook doing the following:

[ ] : Loading lensing data
[ ] : Applying any necessary quality cuts
[ ] : Bin ellipticity catalog on map with given pixel size [TBD, depends on simulations]
[ ] : Create map of number of galaxies per pixels as fits file
[ ] : Create binary mask for empty pixels as fits file
[ ] : Create binned ellipticity  maps as fits file

We now have the fits files described above. They were made from the full catalog of Schrabback et al., without galaxies from the bright catalog with redshift measurement problem that were discarded.
Also it turns out that the bright and the faint catalogs have not the same missing data regions. Sometime faint galaxies overlap missing data region of the bright catalog. If this is an issue, we could combine masks in the final binary mask, but we would loose information...


Emitting the "toggle" event

First, great plugin! I love the animations and the ease when it comes to installing it!
But I'd like to call the toggle event myself. This is because I'm trying to make a click on a menu item close the menu while also navigating to the page (using nuxt-link).
I can easily close the menu I've created, but I can't seem to emit the toggle event...
What can I do?

Hi @Aeka123, this feature is working since version 1.1.7. You only need to change the value of the variable you are sending to active prop.
I have something like this:
<tasty-burger-button type="elastic"
  size="m"
  color="#10C64E"
  active-color="#10C64E"
  :active="showMenu"
  @toggle="onBurgerToggled"
/>

And showMenu is a computed variable which is retrieving the value from the state.
...
computed: {
  showMenu() {
    return this.$store.state.header.isOpen;
  },
},
...

but you can also set a variable inside data and set to false/true whenever you need to emit the close/open action

Hi @Aeka123
As @dazuku said you can control the button status with the active prop.
Let if you have problems using it


Missing generation processes, eLCI1 (v1.0)

The following generation processes are missing, despite being referenced by generation mixes:
OFSL - Midcontinent   Independent System Operator, Inc.
OIL - El Paso Electric Company
OTHF - Nevada Power Company
Quantities consumed tend to be quite small <1% of generation mix.
Related to https://github.com/USEPA/ElectricityLCI/issues/77

All these processes are being created now - fixed in pull request #130.


CRAYSAT-1861: Unmount Ceph and s3fs filesystems on ncn-m001 during shutdown

Summary and Scope
Unmount filesystems of type ceph and fuse.s3fs on ncn-m001 when shutting down. Also do the same for any filesystems mounted from RBD devices.
Add an activity check that uses lsof to check if filesystems can be unmounted or if there are active processes using them, and report these to the admin, so they can stop the offending processes as appropriate.
Disable the cron job that automatically mounts Ceph and s3fs filesystems on ncn-m001, so that they won't get remounted before the node is shut down. Re-enable it at the appropriate time during the power on.
Issues and Related PRs

Resolves CRAYSAT-1861
Resolves CRAYSAT-1872

Testing
Tested on:

fanta

Test description:
Minimal testing so far. Just tested the functions on their own to limit system disruption.
Still need to test full-system power down.
Risks and Mitigations
Adds a significant amount of code and output to sat bootsys, so we will want to update the docs, but overall this should be a really positive improvement to the robustness and completeness of the system shutdown automation.
Pull Request Checklist

[x] Version number(s) incremented, if applicable
[x] Copyrights updated
[x] License file intact
[x] Target branch correct
[x] CHANGELOG.md updated
[ ] Testing is appropriate and complete, if applicable
[x] HPC Product Announcement prepared, if applicable

@shivaprasad-metimath, @annapoorna-s-alt , there is still further cleanup and testing I would like to do on this, but since it is a large PR, I wanted to give you both plenty of time to review it.
Here is the testing performed so far on fanta: https://gist.github.com/haasken-hpe/bfc0d8aed96c19cf48cba680e17485c0

Marking this ready for review. I have not yet tested it by actually performing the power off/on of a real Shasta system, but I have thoroughly unit tested it.
Please review, @shivaprasad-metimath and @annapoorna-s-alt.
I will test this tomorrow, or during our meeting on Monday.

Testing was completed on rocket. I ran the full system shutdown procedure with the build of the cray-sat image from this branch. It is far too much testing output to attach to this PR or a gist, so I'll attach the typescripts to the Jira. There were no issues identified with these code changes.


no dub send

Codecov Report

Merging #11 into master will increase coverage by 0.02%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##             master     #11      +/-   ##
===========================================
+ Coverage     27.57%   27.6%   +0.02%
  Complexity      108     108
===========================================
  Files            39      39
  Lines          1048    1047       -1
  Branches         57      57
===========================================
  Hits            289     289
+ Misses          753     752       -1
  Partials          6       6

Impacted Files
Coverage Δ
Complexity Δ

.../fwmt/job_service/service/impl/JobServiceImpl.java
35.63% <100%> (+0.4%)
6 <1> (ø)
:arrow_down:

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 5d8f7b7...36f8e8b. Read the comment docs.


add ffmpeg deinterlace options

Explanation of the changes, problem that they are intended to fix.
This adds deinterlace filter options to the ffmpeg transcode settings. With these settings, interlaced content can be deinterlaced when content is direct played from Plex or played from disk.
The video scan type (progressive, interlaced) is sourced from Plex and added to the stream stats. ffmpeg will then add the deinterlace filter to the complex filter chain if appropriate (stream stats indicate that content is interlaced and a filter has been selected).
All Submissions:

[x] I have read the code of conduct.
[x] I am submitting to the correct base branch

Changes that modify the db structure

[x] Backwards compatibility: Users running the new code using an existing .disquetv folder will not lose their channels / settings.
[x] I've implemented the necessary db migration steps if any.

New features

[x] I understand that the feature may not be accepted if it doesn't fit the upstream app's planned design direction. But that in this case I am encouraged to share this as an available modification other users can use if they want.

Excellent

Excellent


Animated resource made up of tres files does not animate and shows wrong texture and/or breakd tilemaps

Godot version
3.4.2
System information
PopOS
Issue description
Observe the image. This is an animated resource file made up of the blue textures you can see. The frames you can see are themselves .tres files from a large spritesheet.
Instead of showing the animation, the animated resource is simply showing the whole texture and in the tilemap you can see the highlighted images are where the tile should be, but instead these are the first image of the spritesheet, i.e. the tilemap is showing the first 32x32 portion of the sprite. In fact if you look at the animated image, it thinks it really is a 32x32 texture but it's a texture 1400x1400 pixels ;-)
So, there's probably a bug in the .tres rather than tilemap. Is there any solution to this? tbh, every single step I go with using .tres and/or sprite sheets something fails badly in Godot, I dunno if it needs properly looking at...
Using normal .png files for the individual parts of the animated sprite work fine as can be seen by the blue vertical conveyer to the left of the highlighted failed one.

Steps to reproduce
As description. I can create a small sample, but the problem is indicated clearly by the description.
Minimal reproduction project
No response

@chucklepie Please upload a minimal reproduction project to make this easier to troubleshoot.

Possible duplicate of #30295. AtlasTexture in AnimatedTexture is currently not well-supported.
@chucklepie Maybe this is also the same issue as your #57658?

Duplicate of https://github.com/godotengine/godot/issues/30295.

@Calinou thanks. I saw no obvious answers or roadmap in that duplicate and it's been open since over 2 years. I guess this mean it'll never be fixed and I can't use spritesheets in animated resources?

I guess this and the comments mean it'll never be fixed and I can't use spritesheets in animated resources?

No contributor knows how to implement this, so it's unlikely that it will ever be done. This is especially the case as atlases don't save much memory when used for tilemaps compared to seaprate images.

ok, perhaps if it'll never work, something should be done at the front end to stop it...?


Api improvements

Changes tested in graphql-cli already. Mostly renaming to have unified patter for generators and also adding missing types
https://github.com/aerogear/graphback/issues/506

There is no way to verify changes as we simply making some minor type changes


Fix EVP_PKEY_print_private() so that it works with non default providers

At some point in time it was decided that the EC keymanagers ec_export() function would only allow the selection to be both the public + private parts. If just the private element is selected it returns an error. Many openssl commandline apps use EVP_PKEY_print_private() which passes EVP_PKEY_PRIVATE_KEY to the encoder. This selection propagates to encoder_construct_pkey(). For external providers (such as the fips provider this will call the keymanagers export() with the selection set to just the private part.
So we either need to

change the selection in EVP_PKEY_print_private() or
modify the selection used in the export used in
encoder_construct_pkey
Change the ec_export to allow this.

I have chosen 2) but I am not sure if this is the correct thing to do or whether it should conditionally do this when the output_type == 'text'.
Issue was reported by Ilia Okomin (Oracle).

Checklist

[ ] documentation is added or updated
[x] tests are added or updated

@levitte Would appreciate your input..

Remind me, why are we this unusually restrictive in ec_export, compared to, say, in rsa_export?

I wonder is this defect will resolve https://github.com/open-quantum-safe/oqs-provider/issues/569 .
No time to test.

I think where I have applied the fix is probably the best place as it is outside the fips provider boundary. Changing ec_export means all old providers are still broken.

This is a bug fix so it should go to all branches, shouldn't it?

I get "Error printing key" on the old branches (I checked 3.0, 3.1 and 3.2) all get the same error.

The discussion I remember us having in the OTC was related to you cant have private keys without public keys.

Is this still a correct assumption/limitation? I vaguely remember some PQ algorithms being unable to recreate public from private keys and as the goal was to not always have to duplicate the public into the private key just because of this limitation I think this restriction was dropped, but may remember this incorrectly... @t8m @romen: Do you recall this?

Merged to all the active branches. Thank you for your contribution.


Is it safe to Navigator.pushReplacement the user to the main app widget?

Is it safe to Navigator.pushReplacement or Navigator.push the user to the main app widget (MyApp)?

@Python3-8
This issue doesn't seem to describe a bug or a feature request. Please see https://flutter.dev/community for resources,
you may also get some help if you post it on Stack Overflow and if you need help with your code, please see https://www.reddit.com/r/flutterhelp/
Closing, as this isn't an issue with Flutter itself. If you disagree, please write in the comments and I will reopen it.
Thank you


List and Results should support access by IndexSet

Goals
Swift's Array type offers an API to return all indexes in a given IndexSet:
let objects: [Any] = someArray.objects(at: someIndexSet)

Currently, Realm's collection types do not support this API. This is inconvenient because NSTableView extensively uses IndexSet. If I want to translate the selected rows in the table to an Array of objects on which I can act, I can't just pass the IndexSet returned by selectedRowIndexes to the Realm collection. Instead, I must manually loop through the indexes.
Additionally, because IndexSet is heavily optimized for its task, I assume the objects(at:) API is more performant than the naive for-loop approach.
Expected Results
Realm collection types should support accessing objects by IndexSet.
Actual Results
Realm collection types do not support IndexSet.
Steps for others to Reproduce
N/A
Code Sample
N/A
Version of Realm and Tooling
Realm framework version: 10.7.2
Xcode version: 13.0 Beta 1
iOS/OSX version: macOS 11.4
Dependency manager + version: SPM

There isn't really much room for us to do anything significantly faster; skipping some redundant checks might make it 5-10% faster but there isn't a lot of unnecessary overhead to begin with. A convenience helper would be easy to add, though.

The convenience method would make interfacing with NSTableView much nicer, for sure.


Show avatar on message notification

Checklist

[X] I have used the search function to see if someone else has already submitted the same feature request.
[X] I will describe the problem with as much detail as possible.
[X] This issue only contains a request for one single feature, not multiple (related) features.

App version
v6.602
Problem you are trying to solve
There are no avatars showing on message notifications as Gmail app did, can we add this support feature?
Suggested solution
Add setLargeIcon on notification builder:
https://github.com/thundernest/k-9/blob/29d5220995f7281ad0cffe4c776141361dacc35a/app/core/src/main/java/com/fsck/k9/notification/SingleMessageNotificationCreator.kt#L24-L42
Ref: https://developer.android.com/develop/ui/views/notifications/expanded#large-style
Screenshots / Drawings / Technical details
No response

Hi @Goooler i would like to work on this task, do you have a suggestion on which icon to use?

I believe you can ref https://github.com/Goooler/k-9/commit/99e4f3e7bec3fa69b33d7dc5ed8876c764a5d933.

Thanks for the response

Is this issue still available?


js: Always use e.stopPropogate in click handlers.

This PR is to help us find all the places where we may have missed using e.stopPropagation() and e.preventDefault().
Related to the discussion at https://github.com/zulip/zulip/pull/12517,
Have a look at https://github.com/zulip/zulip/search?p=2&q=e.stopPropagation&type=Issues to see why we might need this.
TODO:
actually add e.stopPropagation() wherever needed (automatically)
and validate that nothing gets broken (manual?)
do the same for e.preventDefault()
Testing Plan:
GIFs or Screenshots:
Those links on terminal are clickable.

@YashRE42 thanks for working on this!  We likely have a few click handlers where we intentionally don't do one or the other; those should hopefully all have comments explaining the situation.  If we're using tooling on this, we might want to think about having a specific token appearing in those comments to help the tool know that specific click handler expects to fall through.


Show spoolman infos as device information

Checklist

[X] I have filled out the template to the best of my ability.
[X] This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
[X] This issue is not a duplicate feature request of previous feature requests.

Is your feature request related to a problem? Please describe.
The version information of spoolman endpoint should be visible in devices
Describe the solution you'd like
see above
Describe alternatives you've considered
see above
Additional context
see above

:tada: This issue has been resolved in version 0.2.0-dev.3 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version 0.2.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Unable to set 'size' parameter for terms aggregations

It seems it's not possible to get aggregation like
{     "aggs" : {         "products" : {             "terms" : {                 "field" : "product",                 "size" : 5             }         }     } }
so that elastic always returns maximum 10 buckets.

Found it is done using addParameter method for aggregation.


[BEAM-542] Spark batch interval should be a configuration instead of an interpretation of the Pipeline's windows

Be sure to do all of the following to help us incorporate your contribution
quickly and easily:

[ ] Make sure the PR title is formatted like:
[BEAM-<Jira issue #>] Description of pull request
[ ] Make sure tests pass via mvn clean verify. (Even better, enable
Travis-CI on your fork and ensure the whole test matrix passes).
[ ] Replace <Jira issue #> in the title with the actual Jira issue
number, if there is one.
[ ] If this contribution is large, please file an Apache
Individual Contributor License Agreement.

R: @kennknowles and @jbonofre

Better semantics and less code? Great! LGTM.
The timeout in 1 of 4 of the Travis matrix does not worry me, though I am sad that it still occurred after all our recent attempts to stabilize those tests.


Error: could not connect to ollama app, is it running? on Windows 10

Error: could not connect to ollama app, is it running? on windows 10

log file 👍
time=2024-02-24T14:24:23.004+03:00 level=WARN source=server.go:113 msg="server crash 1 - exit code 2 - respawning"
time=2024-02-24T14:24:23.513+03:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-02-24T14:24:24.208+03:00 level=WARN source=server.go:113 msg="server crash 24 - exit code 2 - respawning"
time=2024-02-24T14:24:24.528+03:00 level=WARN source=server.go:113 msg="server crash 2 - exit code 2 - respawning"
time=2024-02-24T14:24:24.717+03:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-02-24T14:24:25.036+03:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-02-24T14:24:27.039+03:00 level=WARN source=server.go:113 msg="server crash 3 - exit code 2 - respawning"
time=2024-02-24T14:24:27.545+03:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-02-24T14:24:29.295+03:00 level=WARN source=server.go:113 msg="server crash 11 - exit code 2 - respawning"
time=2024-02-24T14:24:29.796+03:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-02-24T14:24:30.556+03:00 level=WARN source=server.go:113 msg="server crash 4 - exit code 2 - respawning"
time=2024-02-24T14:24:30.807+03:00 level=WARN source=server.go:113 msg="server crash 15 - exit code 2 - respawning"
time=2024-02-24T14:24:31.072+03:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-02-24T14:24:31.309+03:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-02-24T14:24:33.097+03:00 level=INFO source=lifecycle.go:87 msg="Waiting for ollama server to shutdown..."
time=2024-02-24T14:24:34.350+03:00 level=INFO source=lifecycle.go:87 msg="Waiting for ollama server to shutdown..."
time=2024-02-24T14:24:35.086+03:00 level=INFO source=lifecycle.go:91 msg="Ollama app exiting"
time=2024-02-24T14:24:36.017+03:00 level=INFO source=lifecycle.go:87 msg="Waiting for ollama server to shutdown..."
time=2024-02-24T14:24:40.805+03:00 level=INFO source=lifecycle.go:91 msg="Ollama app exiting"
time=2024-02-24T14:24:46.324+03:00 level=INFO source=lifecycle.go:91 msg="Ollama app exiting"
time=2024-02-24T14:24:48.722+03:00 level=WARN source=server.go:113 msg="server crash 25 - exit code 2 - respawning"
time=2024-02-24T14:24:49.228+03:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"

time=2024-02-25T17:50:52.780+03:00 level=WARN source=server.go:113 msg="server crash 1 - exit code 2 - respawning"
time=2024-02-25T17:50:53.293+03:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-02-25T17:50:53.451+03:00 level=WARN source=server.go:113 msg="server crash 30 - exit code 2 - respawning"
time=2024-02-25T17:50:53.957+03:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-02-25T17:50:54.308+03:00 level=WARN source=server.go:113 msg="server crash 2 - exit code 2 - respawning"
time=2024-02-25T17:50:54.815+03:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-02-25T17:50:56.822+03:00 level=WARN source=server.go:113 msg="server crash 3 - exit code 2 - respawning"
time=2024-02-25T17:50:57.327+03:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-02-25T17:51:00.328+03:00 level=WARN source=server.go:113 msg="server crash 4 - exit code 2 - respawning"
time=2024-02-25T17:51:00.836+03:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-02-25T17:51:04.841+03:00 level=WARN source=server.go:113 msg="server crash 5 - exit code 2 - respawning"
time=2024-02-25T17:51:05.348+03:00 level=ERROR source=server.go:116 msg="failed to restart server exec: already started"
time=2024-02-25T17:51:10.358+03:00 level=WARN source=server.go:113 msg="server crash 6 - exit code 2 - respawning"

Try this after installing ollama, run
$ ollama serve
let that be there. open another shell and run ollama [commands], as an example:
$ ollama run llama2

Thanks, problem fixed

Thanks, problem fixed

You might have to enable the systemctl service manually, after that the ollama serve should be redundant.
systemctl enable ollama
systemctl start ollama

You might have to enable the systemctl service manually, after that the ollama serve should be redundant.
systemctl enable ollama
systemctl start ollama

I tried this and i am getting this error not sure what it means

└─$ systemctl enable ollama
systemctl start ollama
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down

You started an a windows host with windows backend but your posted error message suggests that you are using the wsl with a linux distribution.
My wild guess is that you use the default distro wich would be Ubuntu LTS. Luckily systemd is supported and can now be activated for your WSL distro: https://learn.microsoft.com/en-us/windows/wsl/systemd
After activating systemd, you should be able to systemctl enable ollama

here just to mention that ollama service has to be launched first (verify that on ubuntu : systemctl status ollama.service) then you can start working with it

Getting this is ollama running right after updating to the latest version of ollama

Try this after installing ollama, run $ ollama serve
let that be there. open another shell and run ollama [commands], as an example: $ ollama run llama2

TY! this worked. Just had to open another shell. TY

You might have to enable the systemctl service manually, after that the ollama serve should be redundant.
systemctl enable ollama
systemctl start ollama

that's not working on mac, also lunchctl wasn't recgonized by the zsh terminal

Mine are listening on specific addresses, it would seem:
netstat -tupln|grep -F :11434
This is what worked for me:
OLLAMA_HOST=my-host:11434 ollama run my-model

So simple problem, just do this, and this will solve this error -
ollama serve


Build MMS on Circleci

Issue #, if available:
Description of changes:
First cut for - MMS builds using CircleCI
This PR contains -

CircleCI config (.circleci/config.yml)
Current CircleCI configuration includes :

1 frontend build job
Followed by 4 parallel execution of test jobs
1 independent model-archiver build & test job
Checkout how the MMS project and build/job configuration looks like on  CircleCI webapp

Scripts (.circleci/scripts/*.sh) triggered from CircleCI Jobs to build and test MMS
Two new testsuites have also been added to validate their integration with CircleCI

newman testsuite (test/*)
postman api tests from pytorch/serve were ported and tweaked to work with mms
performance regression testsuite (performance_regression/*)
[WIP] performance tests with better pass-fail criteria and custom metrics

Docker images (.circleci/images/*)

To avoid redundant dependency installation steps and to save build time, I created my own docker image (with pre-installed dependencies).
These are based off awsdeeplearningteam/mms-build:python* images available on docker hub
Need help moving images from under my(prashantsail) repository in dockerhub to awsdeeplearningteam

Local execution (./run_circleci_tests.py)
Devs can run circleci jobs on their local machine, using this single script

More details are available in the .circleci/README.md
Testing done:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

In the latest commit, added support for build and test across python 2.7 & 3.6 environment.

Please add logs / Link & screenshot of Circle CI report.

@dhanainme
Screenshot

Links

Smoke(triggered per commit)
Nightly

Logs and Results

JOBS
LOGS
RESULTS

Frontend Gradle tests
logs
results

Python Tests
logs
results

API Tests
logs
results

Have review this. This looks good to me.
I ll have this merged tomorrow.


i18n(ko-KR): update from-gatsby.mdx

Description (required)

update from-gatsby.mdx
#9801

Related issues & labels (optional)

Closes #
Suggested label:

Lunaria Status Overview
🌕 This pull request will trigger status changes.

Learn more
By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.
You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

Locale
File
Note

ko
guides/migrate-to-astro/from-gatsby.mdx
Localization changed, will be marked as complete.

Warnings reference

Icon
Description

🔄
The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

Once #9878 is merged, it is expected that all errors in this PR will be resolved.


Bump Dependencies #8850289978

Bumps dependencies for product-is. Link : https://github.com/wso2/product-is/actions/runs/8850289978

 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.You have signed the CLA already but the status is still pending? Let us recheck it.

Same versions updated with https://github.com/wso2/product-is/pull/20286


NIFI-13550 Added additional details regarding the 'Use Starting Row' Strategy to the ExcelReader's additional details.

Summary
NIFI-13550
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking

[x] Apache NiFi Jira issue created

Pull Request Tracking

[x] Pull Request title starts with Apache NiFi Jira issue number, such as NIFI-00000
[x] Pull Request commit message starts with Apache NiFi Jira issue number, as such NIFI-00000

Pull Request Formatting

[x] Pull Request based on current revision of the main branch
[x] Pull Request refers to a feature branch with one commit containing changes

Verification
Please indicate the verification steps performed prior to pull request creation.
Build

[ ] Build completed using mvn clean install -P contrib-check

[ ] JDK 21

Licensing

[ ] New dependencies are compatible with the Apache License 2.0 according to the License Policy
[ ] New dependencies are documented in applicable LICENSE and NOTICE files

Documentation

[x] Documentation formatting appears as expected in rendered files

@exceptionfactory Can the addition of this documentation also please be applied to the 1.x branch?

@exceptionfactory Can the addition of this documentation also please be applied to the 1.x branch? If need be I will create another PR but I thought this would be an easy cherry pick.

@dan-s1 Yes, I was able to backport this particular commit to the support branch.
https://github.com/apache/nifi/commit/6c99f1ed837c6e0b756b08ac646a846d9842d770