[trytond] Drop support for Trytond<6.0.0

Problem Statement
Support for old 5.0.X LTS series ceased on November 2023. Previous versions weren't even LTS and are plain legacy.
Solution Brainstorm
Most of the Tryton community won't be interested in any trytond<6.0.0 support, so just drop it on sentry-sdk 2.0!
This is also an opportunity to drop back-compatibility boilerplate for trytond<5.4 error handlers and simplify the tox dependency matrix due to modern werkzeug incompatibility in old trytond versions.

See

https://github.com/getsentry/sentry-python/pull/2652#discussion_r1455887468
https://github.com/getsentry/sentry-python/pull/2652#discussion_r1455884823

Tryton release process spec: https://discuss.tryton.org/t/release-process/395

Hey @n1ngu, thanks for bringing this up. In general we try to support even legacy versions of libraries/frameworks/Python itself for as long as it makes sense (you've probably noticed we still support Python 2.7, for instance). There obviously comes a point where it stops making sense because the ecosystem has largely moved on -- we'll evaluate if this applies to (at least some) old Trytond versions.

Closing because we decided to support Triton 4.6+ in version 2.0 of the SDK.

Curious: is the decision based on actual usage by Sentry users in that Tryton series that also keep their SDK updated?


Give meaningful names to GlobalEndpointManager and ClientTelemetry threads

Description
Several executor threads are called pool-1-thread-12 or such.  This PR gives a meaningful name to the thread.
Before:

After:

All SDK Contribution checklist:

[x] The pull request does not introduce [breaking changes]
[x] CHANGELOG is updated for new features, bug fixes or other significant changes.
[x] I have read the contribution guidelines.

General Guidelines and Best Practices

[x] Title of the pull request is clear and informative.
[x] There are a small number of commits, each of which have an informative message.

Testing Guidelines

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

@microsoft-github-policy-service agree company="Microsoft"


ci: Error: undefined local variable or method 'span' for Memoized::Finite.class

In src/memoized/policy.cr:13:63
 13 | record Finite, span : Time::Span, max : Time = Pretty.now + span do
                                                                  ^---
Error: undefined local variable or method 'span' for Memoized::Finite.class

It appears to be just a regression in 0.35.0, so I think it will work in the next version.
See: https://github.com/crystal-lang/crystal/issues/9584

Fixed by e81d4bec1dfcb2ceb3527e8f2ec273317082be8c


No documentation for LiveView

Or if there is any, could you please share it here? Thank you.

I am not aware of any. You could try starting to write some or even just list the things that you think should be in such a document.

should we move this to cardano-tutorials?

Considering that it is part of the logs, ideally, it should be documented into the Official Documentation that Rob is coordinating.

tracked in CAD-1149


Import Spatial Data to PostgreSQL

Brief Summary:
This article will give readers a detailed manner in which they can setup a spatial database and load the database with spatial data. The database I will be using is postgreSQL and I will be using Qgis to load it with spatial data.
Key Takeaways:
What are the 3-5 most important things the reader should understand or be able to do after reading this article?

How to setup postgreSQL and enable postgis.
How to load qgis with spatial data.
How to import the spatial data to postgreSQL.
How to view the data in pgAdmin4

References:
N/A

@iank-m
@LordGhostX
(Good afternoon and thank you for your article submission to the EngEd program -  our program is under a process of being streamlined.)
Thank you for your topic suggestion. Per the recent message posted in our EngEd Slack channel, we are pausing acceptance of new articles until further notice while we work through the backlog of submitted drafts. We will notify you when we are ready to accept new topic suggestions. Thank you for your patience.

Good afternoon, are you accepting new articles yet?


Bug report: commands in the overview not sorted alphabetically

Priority
(Low) Something is a little off
Description
Commands in the overview are not sorted alphabetically
Steps to reproduce
Run m365
Expected results
Commands sorted alphabetically on command name
Actual results

Diagnostics
No response
CLI for Microsoft 365 version
Latest from main
nodejs version
v18
Operating system (environment)
macOS
Shell
zsh
cli doctor
No response
Additional Info
No response

Good catch. I'm not sure if this was the case before? If not I think it's more an enhancement instead of a bug no?

I'd say it's a bug because for commands inside command groups, commands are sorted and that's what you'd reasonably expect. Only the root group isn't sorted oddly enough.


Update ServiceRequestPreview.svelte

updating the preview image so it's not smashed or skewed

On the left is the existing app, which "squashes" the image to make it fit
On the right is this PR, which vertically and horizontally centers the image


This package doesn't works if included as package

If trying to use as a package I get TypeError: Cannot read property 'addLayer' of undefined
node_modules/react-leaflet-multi-options-polyline/node_modules/react-leaflet/es/MapLayer.js:40
I'd guess the important part here is the path... The error is from the 2.0.1 react-leaflet defined as a dependancy on the package, not the 2.2.1 I' m using on my project.
Copy pasting the component only to my project and importing that instead works.
Maybe change the version to >=2.0.1 < 3.0 on package.json?

Hello @jounisuo , I made a patch(v2.0.2), where I updated all dependencies and resolved some security vulnerabilities. Can you test with the new version and see if the problem is resolved? Thanks.


Use AccessExclusiveLock for truncating Babelfish catalogs

Description
When truncating certain Babelfish catalogs, we use the
heap_truncate_one_rel function which expects the caller to hold the
AccessExclusiveLock on the catalog.
This commit updates the lock used for opening/closing the catalog from
RowExclusiveLock to AccessExclusiveLock.
Task: BABEL-5439
Signed-off-by: Sharu Goel<EMAIL_ADDRESS>Check List

[X] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is under the terms of the Apache 2.0 and PostgreSQL licenses, and grant any person obtaining a copy of the contribution permission to relicense all or a portion of my contribution to the PostgreSQL License solely to contribute all or a portion of my contribution to the PostgreSQL open source project.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>2
Details

4 of 4 (100.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 74.734%

Totals

Change from base Build<PHONE_NUMBER>2:
0.0%

Covered Lines:
46397

Relevant Lines:
62083

💛  - Coveralls


Bug in MudTextField using the mask.

Bug type
Component
Component name
MudTextField
What happened?
The component has a delay when typing.
The pointer is also changing position.
Expected behavior
Let it work as it works without the mask
Reproduction link
https://checkout.p4x.srv.br/?tt=0053A2F6-4C4A-4BE9-81A3-B1AB0E3C5086
Reproduction steps
Just type in all fields on the screen
Relevant log output
No response
Version (bug)
6.1.4
Version (working)
No response
What browsers are you seeing the problem on?
Microsoft Edge
On what operating system are you experiencing the issue?
Windows
Pull Request

[ ] I would like to do a Pull Request

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Same is happening to me, which makes masked input virtually unusable.

I too have this issue (v6.1.7).  I currently use the workaround (jQuery.mask plugin) of @agcavaleiro.

Same issue with v6.2.1 and Blazor Server.  :-(

I'm experiencing this issue too, and I'm not sure if this suggestion will be helpful. However, I've observed that when retrieving the key and code from the KeyboardEventArgs, it returns an empty string or "Undefined".

I ran into this today, any plans of fixing it?

I ran into this today, any plans of fixing it?

No, because it's impossible to fix it on BSS unless js implantation will be used and our policy doesn't allow to use 3rd party libs, making an own decent JS masking solution is a whole new project. See https://github.com/MudBlazor/MudBlazor/issues/6280#issuecomment-1417358537 and https://github.com/MudBlazor/MudBlazor/issues/4469#issuecomment-1257689889


visualize.py  has bugs

my environment:
python                      3.6
pytorch                     1.10.2          py3.6_cuda11.1_cudnn8.0.5_0
torchsparse              1.4.0
torchpack                 0.3.1
when I run the command python visualize.py ,it prompts the following error：
Traceback (most recent call last):
File "visualize.py", line 230, in
feed_dict = process_point_cloud(pc, label)
File "visualize.py", line 39, in process_point_cloud
return_inv=True)
TypeError: sparse_quantize() got an unexpected keyword argument 'return_inv'
So I went to check the function sparse_quantize in/home/wxy/anaconda3/envs/spvnas/lib/python3.6/site-packages/torchsparse/utils/quantize.py,and I change the parameter return_inv to return_inverse in visualize.py.
but it still prompts errors as follows:
Traceback (most recent call last):
File "visualize.py", line 230, in
feed_dict = process_point_cloud(pc, label)
File "visualize.py", line 39, in process_point_cloud
return_inverse=True)
TypeError: sparse_quantize() takes from 1 to 2 positional arguments but 3 positional arguments (and 2 keyword-only arguments) were given
I also refer to https://github.com/mit-han-lab/spvnas/pull/87#issue-1195526345,still haven't solved the problem.
Hope you can give me some help, any help is much appreciated！

You could refer to this https://github.com/mit-han-lab/spvnas/pull/87, which should fix this bug.

@Jaywxy
Did you solve this problem?
I have the same error in File "visualize.py"
TypeError: sparse_quantize() takes from 1 to 2 positional arguments but 3 positional arguments (and 2 keyword-only arguments) were given.
I copy the code in (#87), but it's still have error.
Hope anyone can help me about this, thanks!!


chore(ui): change user page search variable name to userSearchTerm

Describe your changes :

I worked on changing the search variable for users and changed it to userSearchTerm, because the name was conflicting with the global search.
Closes #10390

Type of change :

[x] Improvement

Frontend Preview (Screenshots) :
https://user-images.githubusercontent.com/59080942/224322272-a105c6ff-37a5-47ac-9923-542de9484082.mov
https://user-images.githubusercontent.com/59080942/224326059-86b16385-69fd-4b69-9616-b428751f3846.mov

Checklist:

[x] I have read the CONTRIBUTING document.
[x] I have commented on my code, particularly in hard-to-understand areas.
[x] I have added tests that prove my fix is effective or that my feature works.
[x] All new and existing tests passed.

Reviewers
@open-metadata/ui

Can you also post the video for the admin page?

@ShaileshParmar11 , Done.


Add Monday message scheduling option when "tomorrow" is Saturday or Sunday

When "tomorrow" is Saturday or Sunday, we should add a "Monday at 9:00 AM" option to the "Schedule message" modal, just above "Custom time".

@amanagr  @karlstolley Would one of you be up for taking this one? It's a release goal, but not required for the first beta.

Sure, I think I can take this one on. I'll assign myself, but happy to discuss if @amanagr wants it.
One question to clarify: the "Monday at 9:00 AM" option is in addition to the "Tomorrow" items? Or a replacement?

In addition. Thanks!

One more question: should this item appear only on Fridays, or would it be useful for it to appear on Saturdays, possibly even Sundays, too?


Create tasks through a separate window

Possibility to create tasks with Mindbug in the background in a separate window.

Separate window to create tasks is now implemented.
See https://github.com/alexanderwe/Mindbug/commit/539a8558ac2ddd7c73ad5d33699a7a986a6f4e5a


Is it possible to exchange item positions when moved horizontally?

I have a compact layout. When I drag an item over another one right next to it, the latter is forced to move to the next row. Is it possible to swap their positions instead?

@dhamet70  Are you looking for something like this
https://vue-ts-responsive-grid-layout.winnem.tech/examples/15-example
Click on the horizontalShift checkbox

@dhamet70 Are you looking for something like this https:vue-ts-responsive-grid-layout.winnem.tech/examples/15-example
Click on the horizontalShift checkbox

This is the feature I need! I noticed that this is a Vue 3 library, but I have to work with Vue 2. It seems you are the author of this library. Do you have any plans to migrate it to Vue 2?

BTW, when directly opening https://vue-ts-responsive-grid-layout.winnem.tech/examples/15-example, I get a 404 page with the message: 'Not Found. The requested URL was not found on this server.' However, when accessed through the homepage and then opening the examples page, it works just fine. It seems there's an issue with the routing on your website.

Hi Tony, I have no plans to make a 2.0 version.
Sorry for that.
Regards
Geirr
On Thu, 26 Oct 2023 at 05:09, Tony Yan @.***> wrote:

@dhamet70 https://github.com/dhamet70 Are you looking for something
like this
https:vue-ts-responsive-grid-layout.winnem.tech/examples/15-example
Click on the horizontalShift checkbox
This is the feature I need! I noticed that this is a Vue 3 library, but I
have to work with Vue 2. It seems you are the author of this library. Do
you have any plans to migrate it to Vue 2?
—
Reply to this email directly, view it on GitHub
https://github.com/jbaysolutions/vue-grid-layout/issues/743#issuecomment-1780346074,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABRBD4CBCQFB2CILVHOFBS3YBHH5XAVCNFSM6AAAAAAUKYYT4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBQGM2DMMBXGQ
.
You are receiving this because you commented.Message ID:
@.***>

Hi Tony.
This is coming from the vitepress config.
It will be fixed in the next update.
Regards
Geirr
On Thu, 26 Oct 2023 at 08:41, Tony Yan @.***> wrote:

BTW, when directly opening
https://vue-ts-responsive-grid-layout.winnem.tech/examples/15-example, I
get a 404 page with the message: 'Not Found. The requested URL was not
found on this server.' However, when accessed through the homepage and then
opening the examples page, it works just fine. It seems there's an issue
with the routing on your website.
—
Reply to this email directly, view it on GitHub
https://github.com/jbaysolutions/vue-grid-layout/issues/743#issuecomment-1780504634,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABRBD4FZYYZLB7RHIYIYQI3YBIAZXAVCNFSM6AAAAAAUKYYT4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBQGUYDINRTGQ
.
You are receiving this because you commented.Message ID:
@.***>

Is there any way to do this using Vue-Grid-Layout?

It's possible, after looking at the differences between the two components.
I can do it but I have a problem installing vue-grid-layout on my local
machine to develop,
can you please send me some instructions to install the project properly ?
 Dominique HAMET

Le lun. 2 sept. 2024 à 05:38, iAgriEugene @.***> a
écrit :

Is there any way to do this using Vue-Grid-Layout?
—
Reply to this email directly, view it on GitHub
https://github.com/jbaysolutions/vue-grid-layout/issues/743#issuecomment-2323750452,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AES73FFH4UPDD2JLRDXECTDZUPMTVAVCNFSM6AAAAABNPPESZOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRTG42TANBVGI
.
You are receiving this because you were mentioned.Message ID:
@.***>

Turns out it is possible! Somebody wrote some code to do this: https://github.com/jbaysolutions/vue-grid-layout/issues/604
moveEvent: function (i, newX, newY) { 	var p; 	for (p = 0; p < this.layout.length; p++) { 	//Horizontal swapping 	if ( 		newX >= this.layout[p]["x"] && 		newX < this.layout[p]["x"] + this.layout[p]["w"] && 		this.layout[i]["y"] == this.layout[p]["y"] && 		i != this.layout[p]["i"] 	) { 		let initialX = this.layout[i]["x"]; 		let finalX = this.layout[p]["x"]; 		this.layout[i]["x"] = finalX; 		this.layout[p]["x"] = initialX; 	} 	//Vertical swapping 	if ( 		newY >= this.layout[p]["y"] && 		newY < this.layout[p]["y"] + 1 && 		this.layout[i]["x"] == this.layout[p]["x"] && 		i != this.layout[p]["i"] 	) { 		let initialY = this.layout[i]["y"]; 		let finalY = this.layout[p]["y"]; 		this.layout[i]["y"] = finalY; 		this.layout[p]["y"] = initialY; 	} }


libstatistics_collector: 1.0.0-3 in 'foxy/distribution.yaml' [bloom]

Increasing version of package(s) in repository libstatistics_collector to 1.0.0-3:

upstream repository: https://github.com/ros-tooling/libstatistics_collector.git
release repository: https://github.com/ros-tooling/libstatistics_collector-release.git
distro file: foxy/distribution.yaml
bloom version: 0.9.7
previous version for package: 1.0.0-2

libstatistics_collector
* Bump actions versions (#14 <https://github.com/ros-tooling/libstatistics_collector/issues/14>)
  * Bump actions versions
  * Use upload-artifact v1
* Bump setup-ros to 0.0.20 (#10 <https://github.com/ros-tooling/libstatistics_collector/issues/10>)
  0.0.20 is also installing numpy which currently
  prevents the CI runs from succeeding.
* Log workflow results to CloudWatch (#11 <https://github.com/ros-tooling/libstatistics_collector/issues/11>)
* Add repo activity workflow (#12 <https://github.com/ros-tooling/libstatistics_collector/issues/12>)
* export targets in a addition to include directories / libraries (#8 <https://github.com/ros-tooling/libstatistics_collector/issues/8>)
* Fix windows warning (#6 <https://github.com/ros-tooling/libstatistics_collector/issues/6>)
* Apply windows vibility fix changes (#5 <https://github.com/ros-tooling/libstatistics_collector/issues/5>)
  * Apply windows vibility fix changes
  * Add test fixes
  * Add ament_cmake_ros dependency
  * Alphasort CmakeLists.txt
  * Alphasort package.xml
  * Alphasort collector.hpp
  * Add quotes in cmake
* Fix README test badge (#4 <https://github.com/ros-tooling/libstatistics_collector/issues/4>)
  * Fix README test badge
  * Fix bracket
* Fix license format and add linter actions (#3 <https://github.com/ros-tooling/libstatistics_collector/issues/3>)
* Update GH Actions badge
* Move libstatistics_collector folder from system_metrics_collector (#2 <https://github.com/ros-tooling/libstatistics_collector/issues/2>)
  * Moved libstatistics_collector folder from system_metrics_collector
  * Address review comments
  * Add actions, reflect changes in statistics_msgs
  * Add CONTRIBUTING.md
  Co-authored-by: Prajakta Gokhale<EMAIL_ADDRESS>* Initial commit
* Contributors: Devin Bonnie, Dirk Thomas, Emerson Knapp, Prajakta Gokhale, Thomas Moulard

We should tag a new version to get the latest changes (post 1.0.0). See https://github.com/ros-tooling/libstatistics_collector/issues/13#issuecomment-634841435


Include all Open Digital and analog IO to configuration and MQTT protocol

Hello,
Might it be possible that you can add all open I/O of the Wemos to the mqtt protocol and can they be configured via website to
-input
-output
-dht sensor protocol
So you can individually use the hasp for other purposes as well.
Thanks

Hello,
if you are searching for an universal Firmware for ESP which is configurable over web and support a lot of devices OOTB maybe ESPEasy or Tasmota is the way you want to go.

@miloit It's relatively easy to add your own code to publish the value of the A0 pin to MQTT.
I added a LDR (and neopixels) to the HASP to check the ambient light level in the room where the HASP is deployed.
You can see the code that publishes the LDR value here:
https://github.com/kquinsland/HASwitchPlate/blob/add-neopixels/Arduino_Sketch/HASwitchPlate/HASwitchPlate.ino#L2994
But if you're looking for more 'generic' sensor support, Tasmota and ESPHome are much better alternatives!

Closing as this repo is not being maintained.  Check here for the updated project!


Grammar fixes

oh wait I screwed up the italics formatting

The first sentence contains a dangling modifier, for the phrase 'distributed under the MIT License' is a description targeting YKPS Tools and not YKPS, thus moved as a conjunction to the defining of YKPS Tools
Keep the singular and plural forms consistent (technically YKPS Tools is a package name, and therefore should be singular despite the seemingly plural form; therefore, such additions follow the rules of names such as mathematics and statistics and therefore should be singular) to Grammar fixes


[incubator/sparkoperator] fixes #16678

fixes & closes #16678

What this PR does / why we need it:
Which issue this PR fixes
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

fixes #

Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/chart])

/lgtm
/approve

/ok-to-test


Updated ONNX version

Updating onnx package to version 1.17 to fix a discovered vulnerability

@kozlov721 I think there might be an issue with the #55 if we are to move to 1.17 version.


Change link_to_remove_association to a button

Hi! I'd very much like to have a button in place of a link for the remove association action. The link-as-button doesn't link anywhere and it does an action. It should probably be a button by default, or at least possible to make into a button.
I did find a stack overflow question about it, but nesting a button inside a link is pretty wonky.
Is this possible, or could you make it possible? Thanks!

So the question is how to style the link as a button (I added an answer to the SO question you linked to), right? You can just style the link using the button-classes, as follows:
    = link_to_remove_association 'X', f, class: 'btn btn-default btn-lg'

Or do you need another reason why the link has to be a html button?

My issue is with the behaviour and accessibility. It can be styled in any way, that's easy, but users expect a button to behave like a button and not like a link. (You can open a link in a new tab, it has a context menu and keyboard interactions are different between butrons and links) So the element should be a ’’.

Here's a pretty great in depth article about the issue. https://marcysutton.com/links-vs-buttons-in-modern-web-applications/

Ok, the SO question confused me ;) I understand the purist approach to the HTML. I guess I am showing my age in preferring links because they used to be much easier to style.
At the moment it is not possible to generate a button, I/we/someone should add the button_to_{add|remove}_association which should not be too hard at all. I cannot promise anything soon, as lately I have not had a lot of free time/incentive/motivation to really work on cocoon.

I do remember the times, but yeah, I was always a purist. :)

I actually have a real use case now. We're doing a billing form that needs to be disabled before the user has done some authentication stuff. So the form is inside a fieldset that has a disabled attribute. That automatically makes all form elements inside disabled (including buttons), but links work as usual, so the add/remove row links still work, but they should be disabled.

Haha yes, good use case indeed. Maybe a bit contrived and imho also easy to work-around (which are probably already doing).
Anyway, you got me inspired to look a little further. I imagined I would be easy to just replace link_to with button_to and we would be done, but that is not the case. You cannot use button_to inside a form (as it will create a button wrapped in a form to POST by default).
But just using button_tag with type: 'button' should do the trick. Mmmmmm ok.
Let me see if I can find some time.

I've created a pull request for this. Changed the text links to buttons and updated the specs.

The annoying thing about the <button> element is often times browsers incorporate their own styling that can't be overridden; this is particularly evident when using flexbox (see: https://bugzilla.mozilla.org/show_bug.cgi?id=984869) at the least, I would suggest keeping link_to for those who prefer a simple a tag and adding the option to generate a button element instead.

Any update on this ?


Release 0.11.1

@heremaps-bot retest this please

This is a dummy PR to get a release candidate build. Don't merge it.


Inconsistent folder name casing

Bug Report or Feature Request (mark with an x)

[x] bug report -> please search issues before submitting
[ ] feature request

Versions.

macOS Sierra
@angular/cli: 1.0.0-rc.2
node: 7.4.0
os: darwin x64
@angular/common: 2.4.9
@angular/compiler: 2.4.9
@angular/core: 2.4.9
@angular/forms: 2.4.9
@angular/http: 2.4.9
@angular/platform-browser: 2.4.9
@angular/platform-browser-dynamic: 2.4.9
@angular/router: 3.4.9
@angular/cli: 1.0.0-rc.2
@angular/compiler-cli: 2.4.9
Repro steps.

ng new
ng g m exampleName
ng g c exampleName/anotherExample
The log given by the failure.

$ ng g m exampleName
installing module
create src/app/example-name/example-name.module.ts
$ ng g c exampleName/anotherExample
installing component
create src/app/exampleName/another-example/another-example.component.css
create src/app/exampleName/another-example/another-example.component.html
create src/app/exampleName/another-example/another-example.component.spec.ts
create src/app/exampleName/another-example/another-example.component.ts
update src/app/app.module.ts
(Emphasis on exampleName and example-name)
Desired functionality.

I would expect the directory names to be consistent (Both exampleName or example-name) instead of differing
Mention any other details that might be useful.

The implementation of this behavior will only occur if the directory to be created does not already exist. So in the example above if src/app/exampleName already existed the case would not change.


WIP help-docs: Add 'Mastering the compose box' article.

Adds an article for more advanced techniques and workflows for the compose box and documents the new 'Go to conversation' button.
Fixes #21959.
@alya - I feel like this first round is a rough draft to make sure I'm on the right track. And in case we can think of any other workflows / techniques we'd like to add when creating this article.
Screenshots and screen captures:

Self-review checklist

[x] Self-reviewed the changes for clarity and maintainability
(variable names, code reuse, readability, etc.).

Communicate decisions, questions, and potential concerns.

[ ] Explains differences from previous plans (e.g., issue description).
[ ] Highlights technical choices and bugs encountered.
[ ] Calls out remaining decisions and concerns.
[ ] Automated tests verify logic where appropriate.

Individual commits are ready for review (see commit discipline).

[x] Each commit is a coherent idea.
[ ] Commit message(s) explain reasoning and motivation for changes.

Completed manual review and testing of the following:

[x] Visual appearance of the changes.
[ ] Responsiveness and internationalization.
[ ] Strings and tooltips.
[ ] End-to-end functionality of buttons, interactions and flows.
[ ] Corner cases, error conditions, and easily imagined bugs.

Cool, thanks! This looks pretty good; I'll probably fiddle with the text a bit.
Just to check, is the CTRL/CMD part of the shortcut properly conditioned on the user's system, as it is on https://zulip.com/help/keyboard-shortcuts?

Just to check, is the CTRL/CMD part of the shortcut properly conditioned on the user's system, as it is on https://zulip.com/help/keyboard-shortcuts?

@alya - Good question and I don't know. There are a number of help center documentation pages where we use Ctrl ...  in the markdown file to show a keyboard shortcut (e.g. https://zulip.com/help/configure-default-view). But there is one instance (https://zulip.com/help/private-messages) where we specify in the text Cmd ... for Mac.
I don't have my Mac here with me to check those pages, but if they don't update the text for the operating system, then this new article will not either.
And if we don't update the text, then we need to fix those other help center pages as well as this one. And if we do, then we need to fix the help center documentation for private messages.

You can use git grep has_mac_keyboard  to find the code for the Mac rewriting of keyboard help, and just change it to return true unconditionally to test it on a non-Mac.

Thanks @timabbott - that's really helpful!
Confirmed that the text updates for Mac keyboard shortcuts. Will do a quick fix PR for the private messages help center documentation.

Screenshot for Mac keyboard shortcut text:

Closing in favor of https://github.com/zulip/zulip/pull/22173.


Function calling with a response mime type: 'application/json' is unsupported, gemini-1.5-pro-latest/'gemini-1.5-pro-latest

Description of the bug:
I’m encountering an issue with the gemini-1.5-flash model from the google.generativeai package when trying to generate content with a response MIME type set to application/json. According to the documentation, this MIME type should be supported, but I’m receiving the following error:
google.api_core.exceptions.InvalidArgument: 400 Function calling with a response mime type: 'application/json' is unsupported
Note: The reason I am supplying schema as text in prompt is coz flash does not support it.
Code Example
from google.generativeai import GenerativeModel

def get_products():
    return {
        "product_name": "laptop",
        "price": 20000,
        "permalink": "#link",
        "image_link": "#image"
    }

model = GenerativeModel('gemini-1.5-flash-latest',
                        tools=[get_products],
                        generation_config={"response_mime_type": "application/json"})

system_instruction = """
You are a helpful e-commerce assistant. When responding, use the following formats:
1. Normal Response: {"type": "message", "data": str}
2. Product Response: {"type": "products", "data": list[{"product_name": str, "price": int, "permalink": str, "image_link": str}]}
"""

model.generate_content(system_instruction)

Use Case:
I am working on an e-commerce assistant that needs to generate responses in specific formats. Here’s a brief overview of my use case:
System Instruction:
I want to set up the assistant with a system instruction that defines how it should format responses. The assistant should handle two types of responses:
Normal Responses: Simple text responses with a message type.
Product Responses: Structured JSON responses with a list of products.
Normal Response:
{
  "type": "message",
  "data": "How can I help you?"
}

Products Response:
{
  "type": "products",
  "data": [
    {
      "product_name": "samsung",
      "price": 20000,
      "permalink": "#link1",
      "image_link": "#image1"
    },
    {
      "product_name": "iphone",
      "price": 100000,
      "permalink": "#link2",
      "image_link": "#image2"
    }
  ]
}

Questions

Is there an alternative way to format responses in JSON using the gemini-1.5-flash/pro model?
Are there any updates or workarounds for handling structured JSON responses with this model?

Thank you for your assistance!

Hi @sahill3
The gemini-1.5-flash model you're using doesn't currently support returning JSON responses when calling functions. You can refer to this doc.
There are two ways to supply a schema to the model:

As text in the prompt. This approach works with both Gemini 1.5 Flash and Gemini 1.5 Pro.
As a structured schema supplied through model configuration. This approach works with Gemini 1.5 Pro but not Gemini 1.5 Flash.

So, either go with the first approach or try to use a different model (For example, the gemini-1.5-pro).

Interesting, I've never tried to combine these two features.
It seems that you can't do them both at the same time.
So maybe you have three options:

If you have a clear sequence of states you need to go through you can force a function call (function_calling_mode=ANY), then use a different model object and ask for the next step with response_mime_type=application/json.

You could define all three responses as functions and instead of parsing json, parse the function objects it returns.

You could define all three messages as JSON and reply with the product list when the model says {"get_products": {}}.


How to install ambari 2.7 + dolphin scheduler 1.3.3

How to install ambari 2.7 + dolphin scheduler 1.3.3? At present, the official documents support ambari 2.5, and only ambari 2.7 + dolphin scheduler 1.3.0 is used to query other information. However, the two versions of dolphin scheduler ambari interface are inconsistent
1.3.0

1.3.3 there is no above step

you can refer the README doc: https://github.com/apache/incubator-dolphinscheduler/tree/1.3.3-release/ambari_plugin


AUTOSCALER not AUTOSCALING

This change is

Reassigning to @thockin since @lavalamp isn't available

OK to merge


Add test cases for ApplicationStartListener

Fixes #805

Codecov Report

Merging #904 (cf242b2) into master (3cd9266) will increase coverage by 0.02%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #904      +/-   ##
============================================
+ Coverage     76.30%   76.33%   +0.02%
- Complexity     1859     1862       +3
============================================
  Files           308      308
  Lines          6976     6976
  Branches        791      791
============================================
+ Hits           5323     5325       +2
+ Misses         1250     1248       -2
  Partials        403      403

Impacted Files
Coverage Δ
Complexity Δ

.../java/org/dromara/soul/common/utils/UUIDUtils.java
87.50% <0.00%> (+6.25%)
13.00% <0.00%> (+1.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 3cd9266...cf242b2. Read the comment docs.


[BUG] Can't compile wash-cli on arm mac

Running cargo install wash-cli results in a compilation error:
To Reproduce
Steps to reproduce the behavior:

Run command cargo install wash-cli
See error

    |
102 |         let mut builder = CtlClientBuilder::new(nc)
    |                           --------------------- ^^ expected `Client`, found `async_nats::Client`
    |                           |
    |                           arguments to this function are incorrect
    |
    = note: `async_nats::Client` and `Client` have similar names, but are actually distinct types
note: `async_nats::Client` is defined in crate `async_nats`
   --> .../async-nats-0.31.0/src/client.rs:50:1
    |
50  | pub struct Client {
    | ^^^^^^^^^^^^^^^^^
note: `Client` is defined in crate `async_nats`
   --> .../async-nats-0.33.0/src/client.rs:52:1
    |
52  | pub struct Client {
    | ^^^^^^^^^^^^^^^^^
    = note: perhaps two different versions of crate `async_nats` are being used?

Expected behavior
Successful installation of wash-cli
**Environment (please complete the following information) **

OS: MacOS Sonoma
Shell: zsh

Additional context
2 versions of async_nats are compiled during the installation:

async-nats v0.31.0
async-nats v0.33.0

Hey @zshehov, thank you for report, until #1042 is merged, you should be able to install wash-cli via:
cargo install wash-cli --git https://github.com/rvolosatovs/wasmcloud --branch fix/update-wadm

Or use our binary releases

Hey @zshehov would you mind posting the output of cargo tree here?
The workaround noted by @rvolosatovs above should work to get you moving (please let us know if it doesn't), but I'm curious exactly which dependency is causing async_nats 0.33 to be pulled in.

Actually, let's keep this one open until we have a new release

Hey, thanks for the quick reaction guys, that's awesome!

@zshehov This should be fixed now: cargo install wash-cli should successfully install v0.24.0. Thanks for the report and your patience!


Increase CPU of context-box and mongodb to help prevent initial crashlooping

We've had some reports of context-box crashlooping forever during startup.
I believe this is a very cheap and quick way to help prevent this.
Jas will open a more proper issue that'll address resource requests/limits of all the pods with more closer attention.
Note that we can check resource usage metrics in the cloud console.

Hi @MiroslavRepka, unfortunately no, we have no proof this'll get fix it forever.
I just think this is a good thing to do whether it truly helps or not.
And the chances are good :)

I'm just wondering how to get the right numbers for CPU limits. I've just watched the current CI pipeline with kubectl top and context-box doesn't need that much of CPU


Internals refactoring branch on top of 0.17.0 release

@digitalextremist - let me know once you're done with renaming files/classes. There's stuff like the InternalPool reappearing (in internals), uuid appearing twice, registry, etc.
I don't mind the rebasing that much - just that there will be extra confusion if we both go about fixing the same issues (and in different ways).
E.g., I'm currently implementing Celluloid::Reaper for complex/extensible shutdown logic (it will let you close a few Celluloid issues and is designed to be used by Supervisor trees to shutdown their actors), the (Internal)Pool is now working again (but before these recent renames), and I'm removing Supervisors from non-supervisor tests (to help you with the Supervisor refactoring/extracting).
And there are still some issues with tests failing every now and then - and I need a "stable base" to properly track down whether the issues are related to tests, interpreters or bad bugs/races in Celluloid.
Just giving you a heads up so we don't get in each others way.
If I find any "major" stuff, I'll put those on a separate branch - so you can merge it into 0.17.x without the baggage of experimental/development stuff you won't need.
Keep up the great work!

@e2 I'll be done renaming today most likely, then I'll signal. The issues to resolve for #420 are a little weird. I'm aware of the mess/duplication. Thanks for fixing that Yield error. That in and of itself brought a lot of sanity back to the prerelease home-stretch.
Would Reaper be a Group subclass? The name connotes garbage collection to me, maybe you're looking more toward Shutdown or that sort of name?
What do you think about extracting Probe into a gem?

@digitalextremist - I want it to be a separate class simply because it can be more easily tested (and extended). Basically, it's a ActorSystem#shutdown reimplementation, though it has a lot in common with the new (Internal)Pool shutdown as well - so in a way, it is related to Group.
But I'd keep it separate, because it shouldn't share state with any other class - it needs to be thoroughly tested. The last thing I'd want is to have to setup the full Celluloid stack for coverage on every 'if' condition, and then loads of code to avoid raciness and flakyness.
Also, I'd like to keep it as isolated from everything else as possible - because I doubt the initial design will survive the needs people will have. (If we tie it to other classes it will be hard to fix without breaking compatibility, etc.). It's also noticeably slower, because it e.g. actually allows actors to process TerminationRequests (instead of politely telling them to terminate and then immediately murdering them anyway).
Also, existing code should be "disabled" to some extent. Things like "kill" and "join" should either go through the Reaper, or be unavailable - due to deadlocks for example. (The only reason you don't get deadlocks on MRI during shutdown is because the whole method is wrapped in a Timeout block).
I'd put it in internals, e.g. Celluloid::Internals::Reaper - unless you have a better idea/suggestion for a name.

Thanks for fixing that Yield error.

I'm happy I got to add a test for such a critical path. I'm more worried about the Probe tests, because they could be a bad bug lurking in Celluloid - something worth squashing before the release.

What do you think about extracting Probe into a gem?

I think tracing should be implemented. Probe isn't that good, since the events fired don't provide much info. Also Probe is kind of married to Celluloid ATM, because of the $CELLULOID_MONITORING at critical places.
Tracing would solve both the Probe and debugging needs at the same time (and it would allow refactoring out logging calls from deep within Celluloid). It would also allow easier debugging of production apps, where you can't really just change the log level and browse through megabytes of logs (and mostly containing "dangerously suspending" warnings I guess...).
But that's far off. Overall, Probe is probably not worth extracting out. It's not that heavy, but it's deeply hooked in, with now capability in Celluloid to turn it into a seamless "plugin".
Probe has 3 problems, really:

the events have no info (e.g. :actor_named without saying what the new registry name is)
problematic, complex and flaky tests (hard to debug partially because of 1)
shutdown sequence (I don't know if it's even possible to set it up so there's no crash - that's where I think the Reaper combined with a supervision tree would solve the problem)


Command's UniqueID not implemented

The UnqiueID in struct "Command" is never used or passed back as part of the "CommandResponse" struct.

Resolved in commit 119826c725f92cb76ae9997b35a024f576497290 within the go-ari-proxy repo.


Fixing datmo --version or datmo -v or datmo

On ubuntu,
ubuntu@ip-172-31-24-161:~/datmo$ datmo -v
usage:

        datmo COMMAND [SUBCOMMANDS] ARGS

        Datmo is a command line utility to enable tracking of data science projects.
        It uses many of the tools you are already familiar with and combines them into a snapshot
        which allows you to keep track of 5 components at once

        1) Source Code
        2) Dependency Environment
        3) Large Files
        4) Configurations
        5) Metrics

        command:

datmo: error: too few arguments

PR opened: #81


Could non-string data supplied to send() result in an exception?

I am sending data to a browser JS SPA, and in one of my send calls, I had a bug. On a ConnectionInterface variable called $conn, I essentially did this:
$conn->send(['message' => 'Useful stuff', ]);

The error there of course is that an array was passed when I should have supplied a string. Could an is_string() test be supplied here, and an exception thrown if it is not a string? I agree the bug was entirely my doing, but a proper exception may have saved some dev time here.
As it stands it just raises notices and warnings:
[12-Aug-2017 11:34:47 UTC] PHP Warning:  strlen() expects parameter 1 to be string, array given in /var/www/controller/vendor/cboden/ratchet/src/Ratchet/WebSocket/Version/RFC6455/Frame.php on line 76
[12-Aug-2017 11:34:47 UTC] PHP Notice:  Array to string conversion in /var/www/controller/vendor/cboden/ratchet/src/Ratchet/WebSocket/Version/RFC6455/Frame.php on line 90

I'm not a fan of doing this type of check. As you said the API is clearly defined and to start putting type checks where a type is specified where is the line drawn?
Given the API docs this is something an IDE should catch.
This isn't helpful right now but I plan on updating Ratchet to PHP7 for 0.5 which will have strict type interfaces.

Fair enough. My use case was buried in a queue, where it was easy to ignore the generated warnings/notices. Probably need some more unit/functional tests.... :smile_cat:


Langchain Steam don't throw Error correctly with HttpResponse

I'm using LangChain to implement the basic chat feature, and I just follow the doc to write the code as below:

const model = new ChatOpenAI({
  configuration: { baseURL: process.env.OPENAI_PROXY_URL },
  maxRetries: 0,
  modelKwargs: params,
  streaming: true,
});

const parser = new HttpResponseOutputParser();
const msgs = mapToLangChainMessages(messages);

const stream = await model.pipe(parser).stream(msgs);

return new Response(stream);

And if user fill the correct api and no net work error. This code can work.
But for the production, I need to handle lot of error case,like openai biz error(apikey not correct, no balance and so on), network error(timeout).
I have try with code below:

  try {
    const parser = new HttpResponseOutputParser();
    const msgs = mapToLangChainMessages(messages);

    const stream = await model.pipe(parser).stream(msgs);

    return new Response(stream);
  } catch (error) {
    // Check if the error is an OpenAI APIError
    if (error instanceof OpenAI.APIError) {
      let errorResult: any;

      // if error is definitely OpenAI APIError, there will be an error object
      if (error.error) {
        errorResult = error.error;
      }
      // Or if there is a cause, we use error cause
      // This often happened when there is a bug of the `openai` package.
      else if (error.cause) {
        errorResult = error.cause;
      }
      // if there is no other request error, the error object is a Response like object
      else {
        errorResult = { headers: error.headers, stack: error.stack, status: error.status };
      }

      // track the error at server side
      console.error(errorResult);

      return createErrorResponse(ChatErrorType.OpenAIBizError, {
        error: errorResult,
      });
    }

    // track the non-openai error
    console.error(error);

    // return as a GatewayTimeout error
    return createErrorResponse(ChatErrorType.InternalServerError, {
      // endpoint: desensitizedEndpoint,
      error: JSON.stringify(error),
    });
  }

But it don't work. the stream don't throw Error correctly, just exit with error.
here are the console output:
 ✓ Compiled /api/openai/chat in 620ms (411 modules)
Error: aborted
    at connResetException (node:internal/errors:721:14)
    at abortIncoming (node:_http_server:793:17)
    at socketOnClose (node:_http_server:787:3)
    at Socket.emit (node:events:526:35)
    at TCP.<anonymous> (node:net:337:12)
    at TCP.callbackTrampoline (node:internal/async_hooks:130:17) {
  code: 'ECONNRESET'
}
 ⨯ uncaughtException: Error: aborted
    at connResetException (node:internal/errors:721:14)
    at abortIncoming (node:_http_server:793:17)
    at socketOnClose (node:_http_server:787:3)
    at Socket.emit (node:events:526:35)
    at TCP.<anonymous> (node:net:337:12)
    at TCP.callbackTrampoline (node:internal/async_hooks:130:17) {
  code: 'ECONNRESET'
}
 ⨯ uncaughtException: Error: aborted
    at connResetException (node:internal/errors:721:14)
    at abortIncoming (node:_http_server:793:17)
    at socketOnClose (node:_http_server:787:3)
    at Socket.emit (node:events:526:35)
    at TCP.<anonymous> (node:net:337:12)
    at TCP.callbackTrampoline (node:internal/async_hooks:130:17) {
  code: 'ECONNRESET'
}
 ⨯ Error: failed to pipe response
    at pipeToNodeResponse (/Users/arvinxx/CodeProjects/LobeHub/lobe-chat/node_modules/.pnpm/next@14.0.4_@babel+core@7.23.2_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/server/pipe-readable.js:111:15)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async DevServer.runEdgeFunction (/Users/arvinxx/CodeProjects/LobeHub/lobe-chat/node_modules/.pnpm/next@14.0.4_@babel+core@7.23.2_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/server/next-server.js:1221:13)
    at async NextNodeServer.handleCatchallRenderRequest (/Users/arvinxx/CodeProjects/LobeHub/lobe-chat/node_modules/.pnpm/next@14.0.4_@babel+core@7.23.2_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/server/next-server.js:242:37)
    at async DevServer.handleRequestImpl (/Users/arvinxx/CodeProjects/LobeHub/lobe-chat/node_modules/.pnpm/next@14.0.4_@babel+core@7.23.2_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/server/base-server.js:805:17) {
  [cause]: AuthenticationError: 401 无效的令牌 (request id:<PHONE_NUMBER>0512732507949IEfpBVw2)
      at APIError.generate (webpack-internal:///(rsc)/./node_modules/.pnpm/openai@4.24.1/node_modules/openai/error.mjs:57:20)
      at OpenAI.makeStatusError (webpack-internal:///(rsc)/./node_modules/.pnpm/openai@4.24.1/node_modules/openai/core.mjs:293:65)
      at OpenAI.makeRequest (webpack-internal:///(rsc)/./node_modules/.pnpm/openai@4.24.1/node_modules/openai/core.mjs:337:30)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async eval (webpack-internal:///(rsc)/./node_modules/.pnpm/@langchain+openai@0.0.10/node_modules/@langchain/openai/dist/chat_models.js:618:29)
      at async RetryOperation.eval [as _fn] (webpack-internal:///(rsc)/./node_modules/.pnpm/p-retry@4.6.2/node_modules/p-retry/index.js:40:25) {
    status: 401,
    headers: {
      connection: 'keep-alive',
      'content-length': '108',
      'content-type': 'application/json; charset=utf-8',
      date: 'Sun, 14 Jan 2024 15:05:12 GMT',
      server: 'nginx/1.18.0 (Ubuntu)',
      'x-oneapi-request-id': '20240114230512732507949IEfpBVw2'
    },
    error: {
      message: '无效的令牌 (request id:<PHONE_NUMBER>0512732507949IEfpBVw2)',
      type: 'one_api_error'
    },
    code: undefined,
    param: undefined,
    type: 'one_api_error',
    attemptNumber: 1,
    retriesLeft: 0
  }
}
 ○ Compiling /_error ...
Error: aborted
    at connResetException (node:internal/errors:721:14)
    at abortIncoming (node:_http_server:793:17)
    at socketOnClose (node:_http_server:787:3)
    at Socket.emit (node:events:526:35)
    at TCP.<anonymous> (node:net:337:12)
    at TCP.callbackTrampoline (node:internal/async_hooks:130:17) {
  code: 'ECONNRESET'
}
 ⨯ uncaughtException: Error: aborted
    at connResetException (node:internal/errors:721:14)
    at abortIncoming (node:_http_server:793:17)
    at socketOnClose (node:_http_server:787:3)
    at Socket.emit (node:events:526:35)
    at TCP.<anonymous> (node:net:337:12)
    at TCP.callbackTrampoline (node:internal/async_hooks:130:17) {
  code: 'ECONNRESET'
}
 ⨯ uncaughtException: Error: aborted
    at connResetException (node:internal/errors:721:14)
    at abortIncoming (node:_http_server:793:17)
    at socketOnClose (node:_http_server:787:3)
    at Socket.emit (node:events:526:35)
    at TCP.<anonymous> (node:net:337:12)
    at TCP.callbackTrampoline (node:internal/async_hooks:130:17) {
  code: 'ECONNRESET'
}
 ⨯ Error: failed to pipe response
    at pipeToNodeResponse (/Users/arvinxx/CodeProjects/LobeHub/lobe-chat/node_modules/.pnpm/next@14.0.4_@babel+core@7.23.2_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/server/pipe-readable.js:111:15)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async DevServer.runEdgeFunction (/Users/arvinxx/CodeProjects/LobeHub/lobe-chat/node_modules/.pnpm/next@14.0.4_@babel+core@7.23.2_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/server/next-server.js:1221:13)
    at async NextNodeServer.handleCatchallRenderRequest (/Users/arvinxx/CodeProjects/LobeHub/lobe-chat/node_modules/.pnpm/next@14.0.4_@babel+core@7.23.2_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/server/next-server.js:242:37)
    at async DevServer.handleRequestImpl (/Users/arvinxx/CodeProjects/LobeHub/lobe-chat/node_modules/.pnpm/next@14.0.4_@babel+core@7.23.2_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/server/base-server.js:805:17) {
  [cause]: AuthenticationError: 401 无效的令牌 (request id:<PHONE_NUMBER>0512964215553ZWLOBnko)
      at APIError.generate (webpack-internal:///(rsc)/./node_modules/.pnpm/openai@4.24.1/node_modules/openai/error.mjs:57:20)
      at OpenAI.makeStatusError (webpack-internal:///(rsc)/./node_modules/.pnpm/openai@4.24.1/node_modules/openai/core.mjs:293:65)
      at OpenAI.makeRequest (webpack-internal:///(rsc)/./node_modules/.pnpm/openai@4.24.1/node_modules/openai/core.mjs:337:30)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async eval (webpack-internal:///(rsc)/./node_modules/.pnpm/@langchain+openai@0.0.10/node_modules/@langchain/openai/dist/chat_models.js:618:29)
      at async RetryOperation.eval [as _fn] (webpack-internal:///(rsc)/./node_modules/.pnpm/p-retry@4.6.2/node_modules/p-retry/index.js:40:25) {
    status: 401,
    headers: {
      connection: 'keep-alive',
      'content-length': '108',
      'content-type': 'application/json; charset=utf-8',
      date: 'Sun, 14 Jan 2024 15:05:12 GMT',
      server: 'nginx/1.18.0 (Ubuntu)',
      'x-oneapi-request-id': '20240114230512964215553ZWLOBnko'
    },
    error: {
      message: '无效的令牌 (request id:<PHONE_NUMBER>0512964215553ZWLOBnko)',
      type: 'one_api_error'
    },
    code: undefined,
    param: undefined,
    type: 'one_api_error',
    attemptNumber: 1,
    retriesLeft: 0
  }
}

@jacoblee93  can you help me？

Stream error handling is tricky since the error starts after days starts streaming over http and you can't change the initial response code.
I don't think there's a standard generalizable way to handle this other than wrapping the stream yourself and passing an error packet or something. Let me know if you have thoughts!

But with openai it can work correctly. You can check here:
https://sdk.vercel.ai/docs/guides/providers/openai#guide-handling-errors
And I use this method in LobeChat

Ah I see, yeah if the error happens on initial connection we could look into a way to have the error throw on initial stream start.
Will look into it and see if I can come up with something smoother.

@jacoblee93 waiting for it. I'm considering to refactor LobeChat's chat api with langchain to support more complex user scene. This error handler is a must.

I have opened a draft PR with the general gist - basically you need to wait for the first chunk before passing the stream to the response object. Still working on the form factor

This is live in @langchain/core 0.0.17 - you can use it if you update your package resolutions/overrides to that version:
https://github.com/langchain-ai/langchainjs/pull/4088

@jacoblee93 I have tried and it seems work well. I will continue to test it. Thanks for your great work!

Here is the next problem we meet: https://github.com/langchain-ai/langchainjs/issues/4095


[etcd] Update etcdctl sysconfig with ENDPOINTS flag

This was added to https://github.com/kubic-project/salt/pull/622


transition example does not work with the latest version of react.

I'have downloaded, this example
https://codesandbox.io/embed/morr206pv8
and updated the dependencies to the latest version and the transition is not happening, here is a sanbox:
https://codesandbox.io/s/14zxwz9234

sorry, it wasn't updated. i'm still in the process of updating them. it's fixed now: https://codesandbox.io/embed/morr206pv8

all examples are updated now.

thanks


File based SDS

proof of concept only

@howardjohn: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

unit-tests_istio
06de84d2c70bf708301f87dc30a2bb8af416a537
link
/test unit-tests_istio

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


build: behold the power of Nix

Pardon the title, I couldn't help myself :sweat_smile:
This PR is opened to gather opinions and is not fully ready for a release, it could be finished in this branch or with follow-up PRs (allowing others to chip in and get familiar with it). Not all required decisions have been made, none are final.
We might want to have a call to go over the changes and maybe give an intro to Nix.
I learned a whole lot about Nix by putting this PR together, and I still feel like I am only scratching the surface.
Motivation
Provide a build system and development environment where C dependencies and compilers are easy to use, without having to think about them.
Changes

Add Nix builds for:

BPF program
Agent
C libraries with frame pointer and debug info
Docker image

Vendor Go modules for the Nix build, otherwise a vendorSha256 hash needs to be maintained (hard to automate) (Renovate supports go mod vendor)
Cache builds with Cachix, including intermediary builds like libraries and (cross-)compilers
Use nixos-unstable branch of nixpkgs for latest packages (rolling release)
Use nix flake to pin nixpkgs revision (experimental Nix code packages)
Replace nix-shell by nix develop (part of experimental commands working with Nix flakes)
Roughly update GitHub workflows to use Nix
Remove Goreleaser, libbpf Git submodule, Dockerfiles
Add containerized Nix development environment
Update CONTRIBUTING.md

Context
Closes #1304
Closes #568
With further work, could solve #709
Pros and Cons
Cons

New language / new paradigm for many: functional programming
Very limited access to Git metadata (NixOS/nix#7201), no VCS data available during build (for source code reproducibility)

Need another tool to handle things like VERSION file and release notes (e.g. googleapis/release-please)

Can feel invasive to install on local system for a single project (but there is a container image, and other usages are worth checking out imho: home-manager, nix-darwin, NixOS)
Go build cache is not re-used between Nix builds, so it is slower than a barebone go build. To iterate faster during development, the later can be used in a Nix shell.

Pros

Each build happens in its own sandbox, no configuration overlap between packages (e.g. agent, bpf program, libbpf)
Simple cross-compilation (once you know how to :sweat_smile:)
Easy to override existing packages (e.g. eflutils, glibc, libbpf, zlib)
Rich and up-to-date set of packages
Reproducible builds
Build cache usable in CI and for local development
Has a Jsonnet-feel to it (lazy evaluation, all expressions need to return a value...)
Strong and growing community (Discourse, Matrix, GitHub)
NixOS Testing framework: supports virtualization and different kernels
Integration with direnv: load Nix shell into your regular shell.

Documentation

https://nixos.org/guides/nix-pills/
https://nixos.org/guides/nix-pills/basics-of-language.html
https://nixos.org/guides/nix-language.html
https://nixos.org/manual/nixpkgs/stable/#chap-stdenv
https://nixos.org/manual/nixpkgs/stable/#chap-cross
https://nixos.org/manual/nixpkgs/stable/#sec-language-go
https://nixos.org/manual/nixpkgs/stable/#sec-pkgs-dockerTools
https://nixos.org/manual/nixos/stable/index.html#sec-nixos-tests
https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-flake.html
https://search.nixos.org/packages
https://cachix.org

Further work

Move more logic out of Makefiles/scripts/GH workflows into Nix
Remove/Reduce dependence on nix develop in GH workflows
Run Go tests from Nix
Restructure jobs into a single workflow to maximize use of Nix cache
Investigate pre-commit integration with Nix: cachix/pre-commit-hooks.nix

A shim Makefile might be more welcoming initially.

Using Makefile like a Nix command cheat sheet? Yes, I had it in mind, definitely a good idea

On thing I'm sure of is we shouldn't vendor the go dependencies to the repo. Unless we need to modify the vendored packages, we shouldn't vendor. Or we shouldn't check them in the version control system. Go modules already give us reproducible builds as the go. mod file records the exact versions and commits hashes of your dependencies, which the go tool will respect and follow. vendoring bloats the repo and it makes changesets unreadable (as we can see in this PR). If this is technically needed, let's just not check them into the version control system.

I do not like vendoring either, but it is required by buildGoModule and Nix (with flake) will only use checked-in files for the build, the alternative is to set vendorHash/vendorSha256 and its update process is:

Change the current hash for a fake one in the file, otherwise the previous dependencies may be reused (so we first need to know we are going to invalidate the dependencies)
Run the build (wait for a while until it fails)
Grab the expected hash from the error output (human readable more than machine readable)
Update the file with the new hash

vendorHash: is the hash of the output of the intermediate fetcher derivation. vendorHash can also take null as an input. When null is used as a value, rather than fetching the dependencies and vendoring them, we use the vendoring included within the source repo. If you’d like to not have to update this field on dependency changes, run go mod vendor in your source repo and set vendorHash = null;

https://nixos.org/manual/nixpkgs/stable/#ssec-language-go
There are discussions in nixpkgs about it, this one seems to be the lengthiest: NixOS/nixpkgs#84826
An alternative that can also be investigated is the gomod2nix community module. But it requires to maintain a gomod2nix.toml file in parallel to go.mod, which will not be covered by automation like Renovate. :disappointed:
A very insightful read about all this: https://www.tweag.io/blog/2021-03-04-gomod2nix/

Using Makefile like a Nix command cheat sheet? Yes, I had it in mind, definitely a good idea

❤

I do not like vendoring either, but it is required by buildGoModule and Nix (with flake) will only use checked-in files for the build, the alternative is to set vendorHash/vendorSha256 and its update process is:

Change the current hash for a fake one in the file, otherwise the previous dependencies may be reused (so we first need to know we are going to invalidate the dependencies)
Run the build (wait for a while until it fails)
Grab the expected hash from the error output (human readable more than machine readable)
Update the file with the new hash

vendorHash: is the hash of the output of the intermediate fetcher derivation. vendorHash can also take null as an input. When null is used as a value, rather than fetching the dependencies and vendoring them, we use the vendoring included within the source repo. If you’d like to not have to update this field on dependency changes, run go mod vendor in your source repo and set vendorHash = null;

https://nixos.org/manual/nixpkgs/stable/#ssec-language-go
There are discussions in nixpkgs about it, this one seems to be the lengthiest: NixOS/nixpkgs#84826
An alternative that can also be investigated is the gomod2nix community module. But it requires to maintain a gomod2nix.toml file in parallel to go.mod, which will not be covered by automation like Renovate. 😞 A very insightful read about all this: https://www.tweag.io/blog/2021-03-04-gomod2nix/

Thanks a lot for all the references. I'm gonna check them.

This should be able to be significantly simplified with the recent re-base onto the Otel profiler I would imagine...

the alternative is to set vendorHash/vendorSha256 and its update process is

@maxbrunet The update process isn't that bad, you can use nix-update for instance to do this in a single command (you will also need to update your vendor dir with a command, so it shouldn't differ in the amount of manual work needed, but it'll save you 1.7M lines of code). We run this script via task runner/our CI to keep the vendorHash up to date: https://github.com/edgelesssys/contrast/blob/55e6fb096a9fb3f028c93c07f21baa46473c23eb/packages/scripts.nix#L19-L50


Aboat compiling Culane evaluation tools

I always get the following error when I want to compile the evaluation tools using "make" command
#############################
CXX src/counter.cpp
In file included from include/lane_compare.hpp:4,
from include/counter.hpp:4,
from src/counter.cpp:8:
include/spline.hpp:6:10: fatal error: opencv2/core.hpp: No such file or directory
6 | #include <opencv2/core.hpp>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:40: build/src/counter.o] Error 1
#################################
Although the Opencv C++ requirements are reinstalled, the mentioned error has always been raised.
Is there any solution to this error?

I seems you don't install opencv.
Make sure you have installed the opencv sudo apt-get install libopencv-dev.
You may find the opencv in /usr/include. Check it.

Thank you for your answer @Turoad.
the mentioned command installs the latest version of Opencv (Opencv4). Additionally, the command saves Opencv files in "/user/include/opencv4", so the compiling processes encounter the above error.
To solve the problem, I've copied the content of "/user/include/opencv4" directory to "/user/include" and also I've replaced lines 1 to 16 of "lane_compare.hpp" with the following lines.
`#ifndef LANE_COMPARE_HPP
#define LANE_COMPARE_HPP
#include "spline.hpp"
#include
#include
#include <opencv2/core/version.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc.hpp>
using namespace cv;
using namespace std;`

I have not tested building with opencv4.
Have you solved the problem? If not, you may try opencv3.

Yes.
My previous comment is the solution to the problem.

Congratulation, I will close this issue first.

sudo apt-get install libopencv-dev``/usr/include

谢谢你的回答。
上述命令安装最新版本的 Opencv （Opencv4）。此外，该命令将 Opencv lib 文件复制到“/user/include/opencv4”中，因此编译过程会遇到上述错误。
为了解决这个问题，我已将“/user/include/opencv4”目录的内容复制到“/user/include”，并将“lane_compare.hpp”的第 7 行替换为以下行。


[docs] Directory selection dialog filter array

https://github.com/tauri-apps/tauri/blob/13c2fc1ffe93163ec5ab0521fffe936e4f2b8077/tooling/api/src/dialog.ts#L45-L75
Hi all,
Both line 49 and 68 use the DialogFilter as an array property. Is this intended? If so, the example given in the documentation is incorrect.

Yes they both use DialogFilter[] and yes the examples are therefore wrong (missing array). Thanks!

@vedant-z the documentation is automatically generated, see #4424 for the fix for this particular case.
Thanks guys for reporting it!


Nuxt-child not waiting for parent asyncData to finish

Versions

nuxt: 2.15.7
node: 12.20.1

Reproduction
https://github.com/justinwride/nuxt-child-asyncdata-bug
Steps to reproduce
Start the Nuxt project in included repo and navigate to http://localhost:3000/child
What is Expected?
The NuxtChild page should show the correct data from the store inserted by the parent component in asyncData.
I expect that the asyncData in the parent component will finish and be available to NuxtChild before NuxtChild is rendered.
What is actually happening?

TypeError: Cannot read property 'id' of null

The NuxtChild component does not have access to the data in the store inserted by the parent component.

We are approaching the Nuxt 2 EOL date (June 30, 2024) - see this article for more information. This is advance warning that I'm going to close this issue then, as it's currently marked as a Nuxt 2 related bug.
If it's a critical or security issue, please do comment and let me know, in case it is possible to address it before the EOL date.
If it's a an issue you think is relevant for Nuxt 3, please feel free to open a fresh issue (or just comment here so I can update labels, etc.). 🙏
Thank you for your understanding and for your contribution to Nuxt. ❤

It's the day, at last. Nuxt 2 is now marked end-of-life.
My apologies we never got round to resolving this bug in the 2.x branch, but we do have to draw a line somewhere. Again, if you think this is still relevant for Nuxt going forward, please feel free to open a fresh issue (or just comment here so I can update labels, etc.). 🙏


100% CPU usage on arm build

Describe the bug
If I run rathole as server on a t4g.small instance on AWS, the rathole process consumes 100% CPU on one core of the machine (50%).
To Reproduce
Steps to reproduce the behavior:
Configuration
Configuration used to reproduce the behavior:

Configuration of systemd service.

❯ cat /etc/systemd/system/rathole.service
[Unit]
Description=Rathole Server Service
After=network.target

[Service]
Type=simple
#DynamicUser=yes
Restart=on-failure
RestartSec=5s
ExecStart=/usr/local/bin/rathole -s /etc/rathole/rathole.toml
LimitNOFILE=1048576

[Install]
WantedBy=multi-user.target

config file

❯ cat /etc/rathole/rathole.toml
# server.toml
[server]
bind_addr = "<IP_ADDRESS>:2333"
default_token = "SECRET_IS_SAFE"

[server.services.homelab_ssh]
bind_addr = "<IP_ADDRESS>:3332"

[server.services.homelab_rdp]
bind_addr = "<IP_ADDRESS>:3333"

[server.services.homelab_http]
bind_addr = "<IP_ADDRESS>:80"

[server.services.homelab_https]
bind_addr = "<IP_ADDRESS>:443"

Logs

No special logs to show 100% CPU usage
Environment:

OS:
rathole --version output:

Rathole version

rathole
Build Timestamp:     2022-11-30T03:55:10.183120441Z
Build Version:       0.4.7
Commit SHA:          Some("ee5c7b4a770ef6c5b7ab5b21c1ee2c2f0a74f4f7")
Commit Date:         Some("2022-11-30T03:49:01Z")
Commit Branch:       Some("detached HEAD")
cargo Target Triple: arm-unknown-linux-musleabihf
cargo Profile:       release
cargo Features:      base64,client,default,hot_reload,noise,notify,server,snowstorm,tls,tokio_native_tls

I tried with rathole-arm-unknown-linux-musleabi as well. But it was exact same issue

CPU architecture:

❯ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.1 LTS"
❯ uname -a
Linux ip-172-31-22-66 5.15.0-1026-aws #30-Ubuntu SMP Wed Nov 23 17:01:09 UTC 2022 aarch64 aarch64
aarch64 GNU/Linux

Have you tried building from the source instead of using the release?

I have found the same issue on Oracle cloud arm ampere. Building from source solved it as suggested.

I believe this has been resolved by upgrading upx

I tried this again today after a long time with latest 0.5.0 release and CPU usage is still at 100%
/reopen

Have you tried building from the source instead of using the release?

I finally bit the bullet and built it on AWS gravitron machine and the built binary worked like a charm. No CPU slices to notice at all.


wrong order of arguments

https://github.com/lucidrains/ETSformer-pytorch/blob/2e0d465576c15fc8d84c4673f93fdd71d45b799c/etsformer_pytorch/etsformer_pytorch.py#L327
you pass latents on wrong order to Level module:
according to forward method first should be growth and then seasonal

@inspirit https://github.com/lucidrains/ETSformer-pytorch/commit/86ba87c13580d15dc0671bbd83a0f04d52391bf6 thank you!


[AVM Module Issue]: Landing Zone Subscription Vending - avm/ptn/lz/sub-vending

Check for previous/existing GitHub issues

[X] I have checked for previous/existing GitHub issues

Issue Type?
Feature Request
Module Name
avm/ptn/lz/sub-vending
(Optional) Module Version
No response
Description
Hi Jack,
With every landing zone deployment we also deploy a PIM role. is this something we can implement in lz-sub-vending as well?
This makes the roleassignment we deploy with the landing zone a little bit more secure.
ref: assign-azure-privileged-identity-management-roles-using-bicep
(Optional) Correlation Id
No response

Hey @Dylan-Prins,
great ask and one we already had on the backlog pre AVM: https://github.com/Azure/bicep-lz-vending/issues/35
We will indeed get this done as well as constrained delegation for RBAC

Nice! Should have checked the other repo first... sorry for that

Hey @jtracey93, keep in mind that the GH Bot will continue adding comments as long as the issue is opened and the Needs: Triage label is present 😉


simplify SharedView.max_allowed

Saw some code that looked more complex than it needed to be, and simplified it.  :-)

Yeah agree this is cleaner, thanks!


Why is try_digest deprecated in v1.2?

Hey there, thank you for contributing and maintaining this crate!
In the new release of v1.2 it seems that the try_digest function was deprecated. As far as I can tell, this is the only sync function that can return a Result type. I think it would be useful to keep this function in the crate so users can choose to use async / sync versions.

@Mossaka Okay, I will revoke this deprecated declaration in the next version.

Please use:
sha256 = "1.2.2"

Thank you! 🙏


Add CI to check for gofmt, lint and docs

Automate checking for common things to ensure PRs are conformant.

Closing in favour of #6


feat: Deprecate eth_ endpoints from beerus-rpc

Feature Request
Describe the Feature Request

After discussion exposing eth_ endpoints through Beerus is not useful for the end user, but very useful for verification of data internally to Beerus, hence removal of the exposure of eth_ endpoints
Describe Preferred Solution

Remove eth_ endpoints from beerus-rpc
Describe Alternatives

Related Code

Additional Context

Discussed at the CC this week, we are keeping them. :+1:


[Feature Request] Plex Support

I would like to see if we could add support for using Plex playlists for playing music with the bot.

Seconded

thirded

If Plex is being added Jellyfin support would also be nice.

I'd also love for this to be a feature as I primarily use Plex for my music

@Bunkham Funny that you replied to this today because I was literally looking at the Plex API earlier and also at some of the wiki for this bot.  This feature will never be added since it requires a separate API key for Plex.  I'm considering branching the current code and seeing if I can add it myself since it doesn't seem like it should be too difficult.

@Bunkham Funny that you replied to this today because I was literally looking at the Plex API earlier and also at some of the wiki for this bot. This feature will never be added since it requires a separate API key for Plex. I'm considering branching the current code and seeing if I can add it myself since it doesn't seem like it should be too difficult.

I WANT THIS. Please update if you get it working.

Would also like this feature.


Migrating to rails credentials from secrets

Ticket
https://unep-wcmc.codebasehq.com/projects/icca-registry-website/tickets/29
This is the more secure and up-to-date way of managing secrets - using credentials instead and in particular, production will require a master key to decrypt credentials.yml.enc to make it readable.
Master key is in LastPass.
Best to merge this in after all the preceding PRs have been merged in - wasn't able to test this locally.

Looks good to me. Now you have two options:

manually upload the master.key file to the server (staging and prod)
add to the .env file RAILS_MASTER_KEY=mast_key_value so you don't need to upload other files to the server

I couldn't actually test this locally because I deleted bower, as well as migrating all the JavaScript away - does it work then?


Path refactor in import statements of message components

Added concise path locations to components in the same folder

Nice. Short and to the point.


Update doc color and plots

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 96.58%. Comparing base (72b25e3) to head (423ebeb).
Report is 3 commits behind head on main.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #74   +/-   ##
=======================================
  Coverage   96.58%   96.58%
=======================================
  Files          22       22
  Lines        1697     1697
=======================================
  Hits         1639     1639
  Misses         58       58

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


[Storybook Update] Add simplified Try ChatComposite story to use fakeAdapter

What

Add 'Try Chat Composite' story that uses fakeAdapter instead of needing token from AzureCommunication Token
Updated bot messages to make more sense for the example context
Make Show ParticipantsPane working for Basic Example
Minor typo fix for aria label for Participant Pane

Why

Currently it's a bit complex for Contoso to get started requiring tokens to see the ChatComposite in action, changing basic example to use FakeAdapter to remove this friction
https://skype.visualstudio.com/SPOOL/_workitems/edit/2626713
How Tested

Tested on Mac Chrome and Safari
Process & policy checklist

[ ] I have updated the project documentation to reflect my changes if necessary.
[ ] I have read the CONTRIBUTING documentation.

Is this a breaking change?

[ ] This change causes current functionality to break.

This is a fairly old topic, I like that we use fake adapter to make playground easier to try out, but this playground is also a good place to allow user to take their first step to see how everything works together, otherwise it would be hard to demonstrate relationship between tokens to an active session
And also lots of people use this as a validation app to connect back to their own app, removing this option would force developers to implement a whole app to try the real ACS services.
So the idea here is to keep both option - if someone wants to have a quick try, they could use fake adapter, but we will still allow them to connect to our service directly
BTW, if I remember it correct, this work items was targeting on removing the need of connection string, we've resolved it by asking for a token, so we are almost good on this one already - but I think it would be nice we can add fake adapter as an addition to the playground

Sorry wasn't aware of the history for this ticket, updated the PR to be a separate page

Just tried it out and this is awesome!
I wonder, instead of its own story, how do folks feel about this being in the primary doc instead of the static image?

We could prepopulate it with some fun messages and avatar images like in the static screenshot

Just tried it out and this is awesome!
I wonder, instead of its own story, how do folks feel about this being in the primary doc instead of the static image?
We could prepopulate it with some fun messages and avatar images like in the static screenshot

I like that Idea! And maybe the message could include some aka.ms links and message with image screenshot to walk developer through how to do certain things, but I think that can be a new feature task to revamp existing storybook pages (maybe working with PM for that)

Just tried it out and this is awesome!
I wonder, instead of its own story, how do folks feel about this being in the primary doc instead of the static image?
We could prepopulate it with some fun messages and avatar images like in the static screenshot

this is a GREAT idea!!

LGTM! Can you get a sign off from PM on this PR as it changes the doc? I'd like their opinion whether this new page differs enough from basic sample to be clear to users

@ddematheu2 can you sign off on this?

LGTM! Can you get a sign off from PM on this PR as it changes the doc? I'd like their opinion whether this new page differs enough from basic sample to be clear to users

Confirmed with David, he is good to go with these changes


Fix declaration of authorhsip when at-university is true

When at-university is set to true, the authors must not  have a company attribute.
However, the declaration-of-authorship.typ expected a author.company for sorting the authors, even though this sorting would not be used when at-university was set to true.

Hi there, I created a new PR in the typst-packages repo 🔥
I'm still confused about how I missed that problem, but thanks a lot for pointing it out 🙏🏻


[Feature request] support for nvim-dap

Hello.
Thanks for this amazing plugin! Works great for me.
However, one missing feature is being able to debug tests. I use neovim and it would be nice to be able to debug tests with nvim-dap.
From what I see, it works with vimspector though, so the request is to add support for nvim-dap too.

I don't personally use neovim or nvim-dap so I won't be adding that integration. But if you submit a PR I'll be happy to merge it.

Hey. I'm thinking now, how would I do that? It's made in lua, which is I guess not supported by vim. Should I make a separate plugin for test debugging?

That's a valid approach, but I suspect lua plugins can still be called from vimscript. I think this might be more of a question for the nvim-dap team, I really don't know. If it's a matter of including a lua file or two in OmniSharp-vim, that's fine.


Outliernicer

Outliernicer replaces outliers with missing and calls DateValNNer to replace these missings with nearest neighbors (default to 1 symmetric unit)

closes issue #19


Implement Get all admins/users endpoint (Admins)

Description:
This issue involves implementing an API to Get all admins & users. The endpoint should allow Admin to make a GET request to {{baseUrl}}/api/admin/users.
{
    "profiles": [
        {
            "created_at": "2023-06-29T09:15:00Z",
            "updated_at": "2023-06-30T16:45:00Z",
            "primary_email"<EMAIL_ADDRESS>            "contact_email"<EMAIL_ADDRESS>            "first_name": "John",
            "last_name": "Doe",
            "image_url": "https://example.com/mentor_profile_image.jpg",
            "linkedin_url": "https://www.linkedin.com/in/johndoe",
            "type": "ADMIN",
            "uuid": "12345678-1234-5678-1234-567812345678"
        },
        {
            "created_at": "2023-06-29T09:45:00Z",
            "updated_at": "2023-06-30T14:15:00Z",
            "primary_email"<EMAIL_ADDRESS>            "contact_email"<EMAIL_ADDRESS>            "first_name": "Sarah",
            "last_name": "Johnson",
            "image_url": "https://example.com/mentee_profile_image.jpg",
            "linkedin_url": "https://www.linkedin.com/in/sarahjohnson",
            "type": "ADMIN",
            "uuid": "98765432-2345-6789-2345-678923456789"
        },
        {
            "created_at": "2023-06-24T08:45:00Z",
            "updated_at": "2023-06-29T16:15:00Z",
            "primary_email"<EMAIL_ADDRESS>            "contact_email"<EMAIL_ADDRESS>            "first_name": "Jane",
            "last_name": "Smith",
            "image_url": "https://example.com/mentor2_profile_image.jpg",
            "linkedin_url": "https://www.linkedin.com/in/janesmith",
            "type": "DEFAULT",
            "uuid": "87654321-4321-8765-4321-876543218765"
        },
        {
            "created_at": "2023-06-24T09:15:00Z",
            "updated_at": "2023-06-29T13:45:00Z",
            "primary_email"<EMAIL_ADDRESS>            "contact_email"<EMAIL_ADDRESS>            "first_name": "Michael",
            "last_name": "Smith",
            "image_url": "https://example.com/mentee2_profile_image.jpg",
            "linkedin_url": "https://www.linkedin.com/in/michaelsmith",
            "type": "DEFAULT",
            "uuid": "67891234-3456-7890-3456-789034567890"
        }
    ]
}

Tasks:

Create a controller for the /controllers/admin endpoint in the backend (create the route platform if not created).
Parse and validate the request body to ensure it matches the expected format.
Implement appropriate error handling and response status codes for different scenarios (e.g., validation errors, database errors).
Write unit tests to validate the functionality and correctness of the endpoint.

API documentation: https://documenter.getpostman.com/view/27421496/2s93m1a4ac#8744a3ee-970f-489a-853d-8b23fdee8de3
ER diagram: https://drive.google.com/file/d/11KMgdNu2mSAm0Ner8UsSPQpZJS8QNqYc/view
Acceptance Criteria:

The profile API endpoint /controllers/admin is implemented via a GET request.
The request body is properly parsed and validated for the required format.
Appropriate error handling is implemented, providing meaningful error messages and correct response status codes.
Unit tests are written to validate the functionality and correctness of the endpoint.

Additional Information:
No
Related Dependencies or References:
No

can i  work on this?

can i work on this?

Sure


Render #tag in pages with HTML anchor, not just span, for accessibility

Current behaviour
When I write a #meta tag in a Page body, it's rendered as a nice "blobby" hashtag link. That link directs me to http://localhost:3000/%F0%9F%93%8C%20meta when I click on it with my pointer.
However, I'm not a mouse / pointer user - I interact with my browser via the keyboard. When that hashtag is rendered it appears to just be a <span> (I assume affected by some magic Javascript to make it clickable).
Here's a screenshot of a #meta tag in the page and the inspector showing it as a <span> below:

Other links on the Page, such as those using [ ]() and [[ ]] notation are rendered with <a ...> HTML anchors and are easily followable with my keyboard interface.
Expected (requested) behaviour
Please can #meta style tags in Pages be rendered in an HTML anchor <a ...> so that they're easily discoverable and followable for non-pointer users. 🙏🏻

@jamescooke changes were merged into main (this is the PR if interested) that I think should address this. If you want to give it a spin in the nightly builds or after the next release and let me know how you feel about them I can update as needed or mark this as done. Furthermore if you see any other issues or places that accessability can be improved further keep creating tickets and feel free to tag me as I'd like to make sure that SB works well for screen readers too!


Issue With deleting files

files being edited or written will not get deleted after you changed their names unless you save them first

The cause of this issue is that the code responsible for generating the key for the encryption method should be exactly 16 bytes (128 bits)
and the way That the program generates the key is based on your password
if it's 16 characters long it will use the password
less than 16 it will add a fixed string to the password so it's 16 characters long
more than that it will cut the string so it's 16 characters long
(Code):
if (Password.Length == 16) key = Password;
             else if (Password.Length > 16)
            {
                int extraCH = Password.Length - 16;
                key = Password.Remove(0, extraCH);
            }
            else
            {
                string SixteenByteKey = "ParsaKH__ArashHA";
                int NeededCH = 16 - Password.Length;
                key = Password += (SixteenByteKey.Substring(0, NeededCH));
            }
Do you see where the problem is?
Not all characters are 1 byte
this program uses UTF-8  Encoding protocol So basically, it can use up to 4 bytes
While the program always accounts for 1-byte characters
I'll fix the issue by tomorrow

Fixed!


furyagent configure openvpn-client output

Hi team!
I am using furyagent configure openvpn-client to create ovpn profiles. I would like to have the ovpn profile as a file instead of getting printed in the console. This makes easier the usage of this cli.
What do you think?

The ovpn profile can be created by redirecting the output to a new file:
furyagent configure openvpn-client > my-profile.ovpn
Anyway, we have to think about implementing a -o, --output flag for the command


chore(vue-app): use warn only for mismatched deps

Types of changes

[ ] Bug fix (a non-breaking change which fixes an issue)
[ ] New feature (a non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Description

Checklist:

[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly. (PR: #)
[ ] I have added tests to cover my changes (if not applicable, please state why)
[ ] All new and existing tests are passing.

Codecov Report

Merging #5723 into dev will decrease coverage by 0.04%.
The diff coverage is 100%.

@@            Coverage Diff            @@
##              dev   #5723      +/-   ##
=========================================
- Coverage   95.65%   95.6%   -0.05%
=========================================
  Files          82      82
  Lines        2669    2662       -7
  Branches      684     683       -1
=========================================
- Hits         2553    2545       -8
- Misses         97      98       +1
  Partials       19      19

Impacted Files
Coverage Δ

packages/builder/src/builder.js
100% <100%> (ø)
:arrow_up:

packages/vue-renderer/src/renderer.js
93.49% <0%> (-0.82%)
: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 121d481...05933a0. Read the comment docs.

Codecov Report

Merging #5723 into dev will decrease coverage by 0.04%.
The diff coverage is 100%.

@@            Coverage Diff            @@
##              dev   #5723      +/-   ##
=========================================
- Coverage   95.65%   95.6%   -0.05%
=========================================
  Files          82      82
  Lines        2669    2662       -7
  Branches      684     683       -1
=========================================
- Hits         2553    2545       -8
- Misses         97      98       +1
  Partials       19      19

Impacted Files
Coverage Δ

packages/builder/src/builder.js
100% <100%> (ø)
:arrow_up:

packages/vue-renderer/src/renderer.js
93.49% <0%> (-0.82%)
: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 121d481...05933a0. Read the comment docs.


Deployments page returns 401 errors (OSIO#3290)

May not be directly linked to the issue, but returning
errors result in a response status code with a 0 value.
Signed-off-by: Xavier Coulon<EMAIL_ADDRESS>

Ike Plugins (test-keeper)
Thank you @xcoulon for this contribution!

It appears that no tests have been added or updated in this PR.
Automated tests give us confidence in shipping reliable software. Please add some as part of this change.
If you are an admin or the reviewer of this PR and you are sure that no test is needed then you can use the command /ok-without-tests as a comment to make the status green.
Your plugin configuration is stored in the file.

@xcoulon snapshot fabric8-wit image is available for testing.  docker pull docker.io/fabric8/fabric8-wit:SNAPSHOT-PR-2045-2

/ok-without-tests


put_public_access_block marked as unimplemented for s3

In http://docs.getmoto.org/en/latest/docs/services/s3.html, put_public_access_block is marked as unimplemented.  get_public_access_block and delete_public_access_block are marked as implemented.
I notice that all three are marked as implemented for s3control.  (If I understand correctly, S3Control.Client.put_public_access_block is for setting account-wide restrictions, whereas S3.Client.put_public_access_block is for per-bucket restrictions.)
According to CHANGELOG.md, all three methods were implemented for both s3 and s3control in version 1.3.16.

Good catch @bemoody - I'll raise a PR for this shortly


Error from graph_handler

Thanks for the great work and for sharing the codes.
I am trying to reproduce your single model results. Following the steps you have described, I tried:
python -m basic.cli --mode train --noload --len_opt --cluster

Everything worked fine till 4% of training, then I got the following error from graph_handler:
File "basic/main.py", line 117, in _train
graph_handler.add_summaries(e_train.summaries, global_step)
AttributeError: 'int' object has no attribute 'summaries'

It looks like it is from TF, not sure, any ideas how I can resolve this?
Thanks!
Hamid

The source of problem was that I was trying it with Python 2.7.
Used Python 3.5 and the problem resolved.
Closing this issue now!

Hi,
Just a comment. If one wants to use Python 2.7, apart from other minor fixes, there's one important thing to take note. There is a bug (under Python 2.7) in the method get_batches of file basic/read_data.py. Instead of:
num_epochs = int(math.ceil(num_batches / num_batches_per_epoch))

It should be:
num_epochs = int(math.ceil(float(num_batches) / num_batches_per_epoch))

This will make sure num_epochs=1 when num_batches < num_batches_per_epoch.
-Thang

Hi Thang,
Thanks for sharing this fix.
Were you able to regenerate the results using Python 2.7 after resolving this bug? I was able to regenerate them using Python 3.5 but not Python 2.7.
Thanks!
Hamid

Hi Hamid,
I'll share with you later once I got everything solved. When you say, you can regenerate using Python 3.5. Does it mean the below code will give you around 77% F1 for single model?
python -m basic.cli --mode train --noload --len_opt --cluster
python -m basic.cli --len_opt --cluster

-Thang

Hi Thang,
Very good, thanks!
Above commands gave me 74.6% F1 for single model. But this is not official F1 as they have explained it is their own scoring system. When I used official evaluator as:
python squad/evaluate-v1.1.py $HOME/data/squad/dev-v1.1.json out/basic/00/answer/test-020000.json

I got ~ 76.4% F1 for single model which is pretty close to the official one that is reported.
Thanks!
Hamid

Hi Hamid,
Do you happen to know if you still get similar results with Python 3 when using either Tensorflow 0.12 or smaller batch sizes? I obtained ~ 68% F1 with Python3, Tensorflow 0.12, batch size 40.
Thanks,
-Thang

Hi Thang,
My tensorflow version is 0.12.0. I used default batch size which is 60 I guess. Why you decreased it to 40, because of GPU memory? If your GPU memory is around 12 G it should work fine with batch size 60. The whole training will be finished less than one day. But if you decrease batch size, I guess you might need to fine tune hyper-params again, e.g., I do not know if they normalize step size w.r.t batch size in their code, etc. I did not do any fine tuning though.
Hope this helps you.
Hamid

Thanks for the info, Hamid! Good to know that you can reproduce with TF 0.12.0. Yes, it was due to memory since I was testing quickly on a local GTX1080 with 8G of memory.

Hi Hamid,
I confirmed that I can reproduce your results 74.7% F1 (with their own unofficial evaluation) using the default settings. (Earlier, I was preprocessing the data using Python 2 which might have cause some problems).
Thanks!
-Thang

Thanks for the update and glad to hear that you got the same result.
Thanks!
Hamid

Hi Thang,
I am trying to resume training from an specific step using something like:
python -m basic.cli --mode train --load True --load_step 17000 --len_opt --cluster --batch_size 40 --run_id 8

but it either starts from step 0 or gives an error. I checked the "save" folder, there is a TF checkpoint but I do not want to re-train from last epoch but from an intermediate epoch. Have you done this? If yes, can you please share the code snippet?
Other files there are in the format, e.g., "basic-17000.meta", "basic-17000.index", "basic-17000.data-00000-of-00001".
Thanks!
Hamid

Resolved!


No response after   upload file !

Ubuntu 16.04
docker  18.09
no response? I chose a .csv file ，and did not upload successful ,I use docker .
and my data1.csv like this ,i don't know how to upload the data ,i want do a NER annotation。

duplicate post in #323.


GUI: Error when clicking on a broken HTML NFT

I have a broken NFT that shows the following alert whenever I click on it:

After the alert is shown, the detail screen is displayed.

Example NFT minting command to repro: chia wallet nft mint -i 3 -u "https://thisanimedoesnotexist.ai/slider.html?seed=00876" -nh d8a07e2d912da45aa1989f75fb2fe81d3b616c6c0fb2ac3b5eb2578b149fd738

Fixed by https://github.com/Chia-Network/chia-blockchain-gui/pull/1038


ImportError: libcupti.so.11.7: cannot open shared object file: No such file or directory

we are trying to test out jax on GPU.
got this error first: No GPU/TPU found, falling back to CPU. (Set TF_CPP_MIN_LOG_LEVEL=0 and rerun for more info.)
after doing this:
pip install --upgrade "jax[cuda11_pip]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
we now get this:
ImportError: libcupti.so.11.7: cannot open shared object file: No such file or directory
nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Tue_May__3_18:49:52_PDT_2022
Cuda compilation tools, release 11.7, V11.7.64
Build cuda_11.7.r11.7/compiler.31294372_0
any ideas what is missing?
we are testing this on Ubuntu 20.04

I got cuda-cupti package for Fedora. It came with the cuda 11-7 install from the nvidia website.

yeah i thought so too and i found it but no matter i do, it doesnt seem to see it

Oh, I also had to set some environment in .bashrc to get it to recognise.
export CUDA_HOME=/usr/local/cuda
export LIBRARY_PATH="${CUDA_HOME}/lib64"
export C_INCLUDE_PATH="${CUDA_HOME}/include"

got it, that works.  8-)

Just install pip install transformers[torch]

I downgraded torch to 2.0.0 and its fixed

Can confirm: downgrading to 2.0.0 solves the issue.


ENH: add proxy for jlab

Something is still wrong with the queueserver proxy.

I'm going to self-merge this to keep it moving.


zlib.error: Error -3 while decompressing data: invalid block type

I have followed Steps 1-10. but when i try too run the command it returns the following error everytime

This is the command I ran
python fix-host-save.py "C:\Users\Dr.Schark\Desktop\UESaveEditor\uesave.exe" "C:\Users\Dr.Schark\Desktop\Temporary\06DFC218474097059AD13CBDAB185A3D" E9681AA2000000000000000000000000<PHONE_NUMBER>0000000000000000000001

issue is fixed... somehow, I just repeated all the steps again from the start after a friend insisted might have made a mistake somewhere and it worked.