Error when trying to deploy

error[E0658]: use of unstable library feature 'lazy_cell'
 --> /Users/milan/.cargo/git/checkouts/climb-e6def3c0ff530d2f/94b4c98/packages/layer-climb-address/src/key.rs:7:25
  |
7 | use std::{str::FromStr, sync::LazyLock};
  |                         ^^^^^^^^^^^^^^
  |
  = note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information

error[E0658]: use of unstable library feature 'lazy_cell'
  --> /Users/milan/.cargo/git/checkouts/climb-e6def3c0ff530d2f/94b4c98/packages/layer-climb-address/src/key.rs:12:29
   |
12 | pub static COSMOS_HUB_PATH: LazyLock<DerivationPath> =
   |                             ^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information

error[E0658]: use of unstable library feature 'lazy_cell'
  --> /Users/milan/.cargo/git/checkouts/climb-e6def3c0ff530d2f/94b4c98/packages/layer-climb-address/src/key.rs:13:5
   |
13 |     LazyLock::new(|| DerivationPath::from_str("m/44'/118'/0'/0/0").unwrap());
   |     ^^^^^^^^
   |
   = note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information

error[E0658]: use of unstable library feature 'lazy_cell'
  --> /Users/milan/.cargo/git/checkouts/climb-e6def3c0ff530d2f/94b4c98/packages/layer-climb-address/src/key.rs:13:5
   |
13 |     LazyLock::new(|| DerivationPath::from_str("m/44'/118'/0'/0/0").unwrap());
   |     ^^^^^^^^^^^^^
   |
   = note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information

For more information about this error, try `rustc --explain E0658`.
error: could not compile `layer-climb-address` (lib) due to 4 previous errors
warning: build failed, waiting for other jobs to finish...

I'm no rust dev so I might did something wrong. Followed instructions from here: https://github.com/Lay3rLabs/avs-toolkit/tree/main/tools/deploy

Please add your rust version here? rustc —version
rustup update stable
may fix this. But good feedback for our future docs site if this is what is needed

Worked, was on 1.78. Also kinda confusing, .env file needs to be in project root.


using valid instagram id

Fixes #133.

I signed it!
2016-04-20 15:31 GMT+01:00 googlebot<EMAIL_ADDRESS>
Thanks for your pull request. It looks like this may be your first
contribution to a Google open source project. Before we can look at your
pull request, you'll need to sign a Contributor License Agreement (CLA).
[image: :memo:] Please visit https://cla.developers.google.com/
https://cla.developers.google.com/ to sign.
Once you've signed, please reply here (e.g. I signed it!) and we'll
verify. Thanks.

If you've already signed a CLA, it's possible we don't have your
GitHub username or you're using a different email address. Check your
existing CLA data https://cla.developers.google.com/clas and verify
that your email is set on your git commits
https://help.github.com/articles/setting-your-email-in-git/.
If you signed the CLA as a corporation, please let us know the
company's name.

—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/ampproject/amp-by-example/pull/135#issuecomment-212448702

--
Chiara Chiappini

LGTM. Thanks for the fast response.


adding and embedding a privacy manifest

Hi r0ml -
Saw this package roll past, and your name as "owner" caught my eye. I appreciated insights you shared a dozen or so years ago at some tech conference - likely one of the O'Reilly open source ones - and thought I'd offer this up as a very belated thank you.
Apple's getting picky about having privacy manifests, and code signing, for any binary frameworks that are flowing into the App Store (and possibly Notarization). I worked out the PITA setup on how to embed such a thing with some help from DTS, and thought this package would benefit from the same.
The manifest I'm adding (and embedding in postbuild.sh) is just barebones, but I believe it's reasonably correct. I don't believe there's any captured data when using OpenCV, and I don't think it uses any of the system APIs that Apple's getting cranky about. Still, worth noting that I didn't do any deep dive to verify correctness of those assertions.
Cheers,
-- joe

Thanks!  This is super helpful.


Duck does not change the size of the player, so he cannot avoid bullets.

When player ducks, its height is still the same as when he was standing. That should be changed, so he can then duck under enemy bullets.
This link should be usefull: http://www.html5gamedevs.com/topic/8176-change-body-size-when-the-game-is-run/

Switch to texture atlas should fix the problem:
http://phaser.io/examples/v2/loader/load-texture-atlas

I had a problem with texture atlas, now I am manually changing height in player class in every animation. I should discuss why it is a problem.


Automation Isn't allowing send files to Azure Storage

Set-AzStorageBlobContent : This request is not authorized to perform this operation. HTTP Status Code: 403 - HTTP Error Message: This request is not authorized to perform this operation. ErrorCode: AuthorizationFailure ErrorMessage: This request is not authorized to perform this operation. RequestId: 083b2101-a01e-0005-0ae1-449f71000000 Time: Mon, 02 Dec 2024 17:38:54 GMT At C:\usr\src\PSModules\AzureResourceInventory\AzureResourceInventory.psm1:342 char:17 + ... Set-AzStorageBlobContent -File $File -Container $StorageC ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [Set-AzStorageBlobContent], StorageException + FullyQualifiedErrorId : StorageException,Microsoft.WindowsAzure.Commands.Storage.Blob.SetAzureBlobContentCommand
I gave the automation account reader at the MG and Storage Blob data contributor and contributor at the Storage Account Level.

Hello,
Are you using the Runtime Environments or the traditional Environments?
What Powershell Version are you using?

Runtime Environments ARI_3_5_9
Powershell 5.1
8 attached packages

The container is already created?
What command line are you adding to the runbook?


add support for specifying location of package.json for npm installation step

From discussion in #2
.Package(DirectoryPath path)
.Package(FilePath path)

Don't you think that another name than Package would be more suitable. What I have done now is a method called .FromPath(string).
Example: Npm.Install(settings => settings.FromPath("path_to_package_json"));
Then you could do something like:
Npm.Install(settings => settings.FromPath("path_to_package_json").Package("gulp"));
Which then installs gulp from the path given. What do you think?

Just understanding how this needs to work and looking at the npm install docs.
npm install needs to be executed in the directory containing package.json, you cant do npm install ./other_dir/package.json.  In this case the addin current directory will need to be altered for the npm process during execution to support this?
Is this how you are implementing the .FromPath() setting?
I would also suggest that you the option takes a DirectoryPath instead of a string.  Cake has implicit conversions from string to DirectoryPath and the method arguments intent will be more descriptive.

Yeah this is a tricky one...
Currently I am doing exactly what you're saying - changing the directory during execution and then changing it back. I don't know if thats optimal or if it even fits in this module.

Is there an example of how to change working dir? I can't seem to find one in the docs for CAKE.

@andymac4182: I have a fix for this in a fork which I am using for different projects. As it is not officially supported by npm itself it is a work around to adjust current directory before the command is executed. I can open a PR if @Philo don't mind?

That would be great if you could even publish the branch. We have our files a few levels deep in the repo below the cake file so this would be a big help.

I'll look into that tomorrow!

@andymac4182: Here you have my branch: https://github.com/nengberg/cake-npm/tree/feature/custom-path-for-npm-install
This allow us to specify Npm.Install(settings => settings.FromPath("../another-path-to-package-json"));

Hi,
Would love to see this change being merged soon!

If @nengberg can open a pull request for his update I can look at getting it merged

I have updated Cake.Npm to support specifying the working directory for tool execution:

The Npm cake alias now supports the .FromPath(DirectoryPath) to set the
working directory for the subsequent npm commands
.FromPath(DirectoryPath) must be the first action after Npm.
Adds support for chaining npm commands, see usage.cake for example

 Npm.FromPath("./usage")
   .Install(settings => settings.Package("gulp").Globally())
   .Install(settings => settings.Package("another-package"))
   .RunScript(...);

The update has been released to nuget as a prerelease package initially, the existing usage patterns all remain so will be no issues with backwards compatibility however would like to get some feedback from users before pushing the release out as v0.7.0
The prerelease version can be tested using the below addin syntax
#addin nuget:?package=Cake.Npm&prerelease

Hopefully this will also address #8 and #9

That seems like a nice solution! I tried to use the prerelease just to verify that my build still works as expected but I'm getting this: Error: System.MissingMethodException: Method not found: 'Cake.Core.Tooling.IToolLocator Cake.Core.ICakeContext.get_Tools()'.

@nengberg, you will need to ensure that you have also updated to cake 0.13.0.  Check/delete your tools directory and ensure you are using the latest bootstrapper from https://github.com/cake-build/resources.

Thanks @Philo. It works like a charm :)

I'll update the readme, but I'm happy to ignore adding tests for the working directory setup, as that is a feature coming from Cake itself, Cake.Npm is just overriding a method from the Tool base class and that is only being accessed within the RunProcess method.

Fair enough!


Question: Is it possible to change a render target's frame buffer format mid-program?

I'm trying to improve a program that can run different classic adventure games, each having their own color format(s) under which they run. Some of the more graphically-intensive games that have a 16-bit native color format (namely RGB565) run slowly on the 3DS because they're being converted up to RGBA8 so they can be passed to the render target.
I can't just change the program to run in a 16-bit color format because some of the games have a native 32-bit color format, so I think the best solution would be to change the render target's color buffer appropriately when a game is started. Is this even possible to do with citro3d? If so, do you have any suggestions on how I should go about it? I've been trying on my own, but I've not had any luck.
Here's the backend source for reference, and here is what I've done so far: ballm4788/scummvm@08e955719a8eab293231406fd08042b62712d617. Most of the relevant code is in "osystem-graphics.cpp," "sprite.h," and "sprite.cpp." "OSystem_3DS::initGraphics" is called during startup, and "OSystem_3DS::initSize" is called when loading up a game.
In what I've done so far, everything works fine with games that are non-16-bit or can adapt to 32-bit, but attempting to start up a 16-bit game (in my case, I've been using Riven for testing), a black screen shows, but the 3DS doesn't crash. The only way to get back to the 3DS home screen at that point is to hold the power button until the 3DS turns off and then turn it back on again.

Wouldn't C3D_RenderTargetDelete and creating a new one be sufficient for your use-case? As long as it happens outside of C3D_Frame... It's what I'm doing, at least.

While @asiekierka provided a workaround, I feel like that is somehow not right. With the advent of wide mode, I think it would be worthwhile to look into this again and provide a way to alias the same region of memory for multiple rendertargets with different formats. I can't guarantee a timeframe in which the necessary design/work will be done, though.

I ended up working around this with help a long time ago. @fincs were you still looking into this, or can I close this issue?


use of checkers on Integration test

Part of #16756
Use c.Assert instead of condition judgement in
integration-cli/docker_cli_start_test.go
Signed-off-by: Zhang Wei<EMAIL_ADDRESS>

@vdemeester updated per your suggestion. thank you! :smile:

Any progress on this?

LGTM 🐟

@cpuguy83 updated per your suggestion, thank you! :)

Sorry, added a few more places where we need output, I know some of them you didn't touch, but would be super helpful if you could add those in.
Thanks!

All right, I will do this.

@cpuguy83 updated. :)

LGTM


Settings not read from [isort] section in setup.cfg

Could be really nice if config was read from [isort] section so pytest-isort read the same settings as isorton the command line.

Oh, it's because it's looking for setup.cfg next to the test file which in my case is in a subfolder. I wonder if it could be made to look for setup.cfg from where pytestwas run.

Interesting bit. Personally, I use editorconfig to configure isort. Does this problem still exist? If yes, we should try to fix that.

I can confirm the isort.cfg from project root was ignored. I could workaround by adding a section to my tox.ini which was parsed as expected.

I double checked the docs, the config should be named ".isort.cfg" (leading dot) - does it work then?

@stephrdev Thank you for taking the time to look into that. You are correct, my bad, .isort.cfg is read as expected :+1:


for  #2187 revise spring-boot-stater configuration api.

Pull Request Test Coverage Report for Build 7571

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

Totals

Change from base Build 7569:
0.0%

Covered Lines:
8651

Relevant Lines:
15836

💛  - Coveralls


feat: Add role API key (BE)

Thanks for submitting a PR! Please check the boxes below:

[x] I have run pre-commit to check linting
[x] I have added information to docs/ if required so people know about the feature!
[x] I have filled in the "Changes" section below?
[x] I have filled in the "How did you test this code" section below?
[x] I have used a Conventional Commit title for this Pull Request

Changes

BE code from https://github.com/Flagsmith/flagsmith/pull/3042

How did you test this code?

Codecov Report
Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (351232f) 95.95% compared to head (8358fd1) 38.92%.
 Consider uploading reports for the commit 71e2437 to get more accurate results

Files
Patch %
Lines

api/api_keys/models.py
62.50%
3 Missing :warning:

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #3346       +/-   ##
===========================================
- Coverage   95.95%   38.92%   -57.03%
===========================================
  Files        1067      997       -70
  Lines       32673    28912     -3761
===========================================
- Hits        31350    11255    -20095
- Misses       1323    17657    +16334

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


Target profile page rewrite: Create RNA and Protein Baseline Expression detail views

Use Cases

As a user of the Platform, I would like to see expression levels for my target of interest in normal tissues or anatomical systems.

As a user of the Platform, I would like to see which experiments listed in Expression Atlas have data for my target of interest.

As a user of the Platform, I would like to see a summary of the data about my target of interest from GTEx.

Detail Views
Summary visualisation when user first loads detail view

Full-size version
Expression Atlas widget view

Full-size version
GTEx widget view

Full-size version
Design and Interaction Notes

Please integrate the tab navigation bar design pattern used in the Gene Tree detail view and Protein Information detail view.

On the Summary tab, please display the following text in Open Targets Grey - #5a5f5f:

Summary of GENE-SYMBOL RNA and protein expression in normal human tissue, based on Human Protein Atlas normal tissue immunohistochemistry, RNA-seq expression data and Expression Atlas data.
Please replace GENE-SYMBOL with the HGNC gene symbol.
Please integrate the existing RNA and protein visualisation library that is displayed in the current version of the Platform.
Please update the library and change the download button from the icon to CSV and put a label beside the button - Download as - so that users are given a visual cue that they can download a CSV file of the underlying data.

On the Expression Atlas tab, please integrate the existing Expression Atlas visualisation widget used in the current version of the Platform.

On the GTEx tab, please display the following text in Open Targets Grey - #5a5f5f:

Baseline expression variation based on GTEx experiments.
Please integrate the existing GTEx visualisation widget used in the current version of the Platform.
Please update the download button from the icon to PNG and put a label beside the button - Download as - so that users are given a visual cue that they can download a PNG of the GTEx summary visualisation.
Design Assets

Full-size mockups
Open Targets brand palette colour codes

One of the use cases for the summary expression information is to show mRNA and protein expression side by side so that it eases comparison. High mRNA expression not necessarily translates into high protein expression and this is relevant for target prioritisation/

@deniseOme, is that use case already addressed with the summary visualisation?

Yes, very much so.
Should it be included in the list at the top?

Okay, good to know. We don't have to include it as it's already been addressed with the existing visualisation. What I've created aren't use cases per se. Rather, it's the expected functionality that we're replicating in the like-for-like rewrite.

@andrewhercules could you check if the implementation fits the specs? It looks good to me

Yes, looks good to me, although will want to update the colours once we have a theme in place.
I will close the ticket for now.


[BUG] 0.27版本下使用知识库问答会出现"API通信错误"

使用模型为百川2-13B，依赖已经全部安装，服务正常启动
1、使用LLM问答正常

2、使用知识库问答出现API通信错误

3、配置文件如下

需要看后台日志，麻烦提供一下后台日志报错

ERROR:    Exception in ASGI application
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/uvicorn/protocols/http/httptools_impl.py", line 426, in run_asgi
result = await app(  # type: ignore[func-returns-value]
File "/usr/local/lib/python3.10/dist-packages/uvicorn/middleware/proxy_headers.py", line 84, in call
return await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/fastapi/applications.py", line 1106, in call
await super().call(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/applications.py", line 122, in call
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/errors.py", line 184, in call
raise exc
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/errors.py", line 162, in call
await self.app(scope, receive, _send)
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/exceptions.py", line 79, in call
raise exc
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "/usr/local/lib/python3.10/dist-packages/fastapi/middleware/asyncexitstack.py", line 20, in call
raise e
File "/usr/local/lib/python3.10/dist-packages/fastapi/middleware/asyncexitstack.py", line 17, in call
await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 718, in call
await route.handle(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 276, in handle
await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 69, in app
await response(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/responses.py", line 270, in call
async with anyio.create_task_group() as task_group:
File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 597, in aexit
raise exceptions[0]
File "/usr/local/lib/python3.10/dist-packages/starlette/responses.py", line 273, in wrap
await func()
File "/usr/local/lib/python3.10/dist-packages/starlette/responses.py", line 262, in stream_response
async for chunk in self.body_iterator:
File "/langchain-chatchat/server/chat/knowledge_base_chat.py", line 52, in knowledge_base_chat_iterator
model = get_ChatOpenAI(
File "/langchain-chatchat/server/utils.py", line 46, in get_ChatOpenAI
model = ChatOpenAI(
File "/usr/local/lib/python3.10/dist-packages/langchain/load/serializable.py", line 97, in init
super().init(**kwargs)
File "pydantic/main.py", line 341, in pydantic.main.BaseModel.init
pydantic.error_wrappers.ValidationError: 1 validation error for ChatOpenAI
root
Did not find openai_api_key, please add an environment variable OPENAI_API_KEY which contains it, or pass  openai_api_key as a named parameter. (type=value_error)
2023-11-17 08:35:39,853 - _client.py[line:1013] - INFO: HTTP Request: POST http://<IP_ADDRESS>:7861/chat/knowledge_base_chat "HTTP/1.1 200 OK"
2023-11-17 08:35:39,854 - utils.py[line:187] - ERROR: RemoteProtocolError: API通信遇到错误：peer closed connection without sending complete message body (incomplete chunked read)

一样一样的.....
Traceback (most recent call last):
File "/root/Langchain-Chatchat/lib/python3.10/site-packages/uvicorn/protocols/http/httptools_impl.py", line 426, in run_asgi
result = await app(  # type: ignore[func-returns-value]
File "/root/Langchain-Chatchat/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in call
return await self.app(scope, receive, send)
File "/root/Langchain-Chatchat/lib/python3.10/site-packages/fastapi/applications.py", line 1115, in call
await super().call(scope, receive, send)
File "/root/Langchain-Chatchat/lib/python3.10/site-packages/starlette/applications.py", line 122, in call
await self.middleware_stack(scope, receive, send)
File "/root/Langchain-Chatchat/lib/python3.10/site-packages/starlette/middleware/errors.py", line 184, in call
raise exc
File "/root/Langchain-Chatchat/lib/python3.10/site-packages/starlette/middleware/errors.py", line 162, in call
await self.app(scope, receive, _send)
File "/root/Langchain-Chatchat/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 79, in call
raise exc
File "/root/Langchain-Chatchat/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "/root/Langchain-Chatchat/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in call
raise e
File "/root/Langchain-Chatchat/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in call
await self.app(scope, receive, send)
File "/root/Langchain-Chatchat/lib/python3.10/site-packages/starlette/routing.py", line 718, in call
await route.handle(scope, receive, send)
File "/root/Langchain-Chatchat/lib/python3.10/site-packages/starlette/routing.py", line 276, in handle
await self.app(scope, receive, send)
File "/root/Langchain-Chatchat/lib/python3.10/site-packages/starlette/routing.py", line 69, in app
await response(scope, receive, send)
File "/root/Langchain-Chatchat/lib/python3.10/site-packages/starlette/responses.py", line 270, in call
async with anyio.create_task_group() as task_group:
File "/root/Langchain-Chatchat/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 597, in aexit
raise exceptions[0]
File "/root/Langchain-Chatchat/lib/python3.10/site-packages/starlette/responses.py", line 273, in wrap
await func()
File "/root/Langchain-Chatchat/lib/python3.10/site-packages/starlette/responses.py", line 262, in stream_response
async for chunk in self.body_iterator:
File "/media/RAID5-2Data/Gpt/Langchain-Chatchat/server/chat/knowledge_base_chat.py", line 79, in knowledge_base_chat_iterator
filename = Path(doc.metadata["source"]).resolve().relative_to(doc_path)
File "/root/Langchain-Chatchat/lib/python3.10/pathlib.py", line 818, in relative_to
raise ValueError("{!r} is not in the subpath of {!r}"
ValueError: '/media/RAID5-2Data/Gpt/Langchain-Chatchat/zts.txt' is not in the subpath of '/media/RAID5-2Data/Gpt/Langchain-Chatchat/knowledge_base/2246/content' OR one path is relative and the other is absolute.
2023-11-18 22:57:54,882 - utils.py[line:187] - ERROR: RemoteProtocolError: API通信遇到错误：peer closed connection without sending complete message body (incomplete chunked read)
2023-11-18 22:57:54 | INFO | stdout | INFO:     <IP_ADDRESS>:50060 - "POST /v1/chat/completions HTTP/1.1" 200 OK
2023-11-18 22:57:55,058 - util.py[line:67] - INFO: message='OpenAI API response' path=http://<IP_ADDRESS>:20000/v1/chat/completions processing_ms=None request_id=None response_code=200
2023-11-18 22:57:55 | INFO | httpx | HTTP Request: POST http://<IP_ADDRESS>:20002/worker_generate_stream "HTTP/1.1 200 OK"
{'base_url': 'http://<IP_ADDRESS>:7861', 'timeout': 300.0, 'proxies': {'all://<IP_ADDRESS>': None, 'all://localhost': None, 'http://<IP_ADDRESS>': None, 'http://<IP_ADDRESS>': None, 'http://': None, 'https://': None, 'all://': None}}

地址不对，检查一下文件还在不在

ValueError: '/media/RAID5-2Data/Gpt/Langchain-Chatchat/zts.txt' is not in the subpath of '/media/RAID5-2Data/Gpt/Langchain-Chatchat/knowledge_base/2246/content' OR one path is relative and the other is absolute.

地址不对，检查一下文件还在不在

实际我也觉得奇怪，新传的文件knowledge_base/2246/content中是有的，为啥会提示在根目录中没有。这匪夷所思！及时我复制一份到根目录中，一样有提示API错误！查看了数据库与项目向量处理都成功的。
我这是建立本地库，环境是新建立的，PYTHON用的是3.10，
存储等：
"pg": {
"connection_uri": "postgresql://postgres:postgres@<IP_ADDRESS>:5432/langchain1",
SQLALCHEMY_DATABASE_URI = "postgresql://postgres:postgres@<IP_ADDRESS>:5432/langchain1"
默认向量库/全文检索引擎类型。可选：faiss, milvus(离线) & zilliz(在线), pgvector,全文检索引擎es
DEFAULT_VS_TYPE = "pg"

我解决了，你先看看用的是什么LLM模型 需要在模型配置的文件中配置上APIKEY 然后在重启下服务就好了 APIKEY的目录是 congfigs 下面的model_config.py


Drowning casues a bug

when the drown timer is at 0 and you jump on a teleporter exactly when you drown all collision breaks

exactly when you drown

So are you saying this doesn't occur unless you do a frame perfect jump onto the teleporter or is there a window of time?

I meant before you drown

it happens at this teleporter oh and there is a window of time

This does produce some very strange behavior... but at the very least the drown timer can be reset for the teleport.

Fixed in pull request

@NeonSRB2 what do you mean fixed the bug is still there

@NeonSRB2 what do you mean fixed the bug is still there

You likely did not sync your repository with the base engine repository. If you cloned the repository, then it will not synchronize. I'd suggest making a workflow with this action in a workflow if you host your repository on GitHub.


Use env variable for unit test verbose mode

What type of PR is this?

Uncomment only one  /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:

/kind feature

What does does this PR do / why we need it:
Enabling verbose mode for unit test run. Helps to debugging the unit test failure
Which issue(s) this PR fixes:
Fixes #? NA
How to test changes / Special notes to the reviewer:
UNIT_TEST_VERBOSE_MODE=-v make test

/test v4.1-integration-e2e-benchmark

I would suggest that we use either UNIT_TEST_VERBOSE_MODE=true or UNIT_TEST_ARGS=-v because UNIT_TEST_VERBOSE_MODE=-v feels a bit confusing

I would suggest that we use either UNIT_TEST_VERBOSE_MODE=true or UNIT_TEST_ARGS=-v because UNIT_TEST_VERBOSE_MODE=-v feels a bit confusing

@kadel @girishramnani https://github.com/openshift/odo/pull/2572/files#r377582865

/approve

/test v4.3-integration-e2e-benchmark

Looks good to me
/lgtm


How to run a query between two dates using the GenericRepository class

How do I use the GenericRepository class to run a query between 2 dates. For example “WHERE datefield > startDate AND datefield < endDate

We have updated the JPA Query By Example API doc... please check
Please read https://github.com/jaxio/jpa-query-by-example


Even if you upgrade to Azure AD Connect 2.0, SQL Server 2012 is still used

I upgraded using the in-place upgrade procedure, but the operating DB was SQL Server 2012. SQL Server 2019 is installed but the instance is not started.
This event occurs when using LocalDB.
Please publish the procedure for using LocalDB of SQL Server 2019.

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

ID: cf9169c8-ec81-9342-c93e-963647d70c6c
Version Independent ID: 0ea93b27-477a-84e5-3d93-6707f5b9cb88
Content: Azure AD Connect: Upgrade from a previous version
Content Source: articles/active-directory/hybrid/how-to-upgrade-previous-version.md
Service: active-directory
Sub-service: hybrid
GitHub Login: @billmath
Microsoft Alias: billmath

@TomoharuMisawa Thank you for your feedback. We will investigate and update the thread further.


Interview with Noria’s creator: a promising dataflow research database implemented in Rust

https://www.notamonadtutorial.com/interview-with-norias-creator-a-promising-dataflow-database-implemented-in-rust/

How does Noria compare to other software like a relational database, in memory key-value stores, MapReduce systems like Spark, stream processing like Storm or timely data flow?

Users of Noria can change the running dataflow at any time without downtime. If a new SQL query is issued that the system has not seen before, it adapts the running dataflow on the fly to incorporate the operators from the new query. The adaptation also knows to re-use existing operators where possible to produce an overall more efficient dataflow than what you would get if you just ran each query as its own dataflow program.
Noria supports partial materialization. Existing dataflow systems that support materialization are usually either:

windowed (i.e., they only reflect “recent” updates): cannot get all the results for a query.
fully materialized (i.e., all results are always stored and maintained): waste resources on results that your application does not care around. You need the ability to evict from your cache.

Noria can translate SQL queries into efficient dataflow and adapts the running system to them. The other systems do not generally support this.

The Noria paper states that it can scale to 5x higher load than a hand optimised MySQL database. How does it manage to do that?

The primary reason for this is Noria’s view materialization. When you issue a query to MySQL, the system has to execute that query to produce the query’s results. In Noria on the other hand, an application query effectively turns into a hashmap lookup in the common case, which is very fast.
Noria’s reads have very little synchronization overhead, whereas MySQL includes a lot of machinery to support full-fledged transactions (which Noria does not support). Part of the trick here is Noria’s use of a neat little datastructure called an evmap (for “eventual map”; named for its support for eventual consistency). It allows reads and writes to proceed entirely in parallel with very little overhead by having reads and writes go to different hashmaps, and then occasionally atomically switching between them.

What is the relationship between Noria’s paper, the Differential dataflow paper and Naiad: a timely dataflow system?

Differential dataflow, timely dataflow, and its implementation in Naiad is one of the hallmark systems in the dataflow community. Most papers in this area relate to timely dataflow in one way or another.
Noria implements an incremental dataflow model, but trys to solve for a different use-case, and therefore arrives at different solutions.

Timely established a model for incrementally executing dataflow programs that include iteration and cycles with strong guarantees about consistency through a sophisticated timestamp tracking scheme. Noria does not support iteration or cycles, and is eventually consistent.
Timely largely targets arbitrary batch computations over a large, interconnected dataset where reads are less frequent than just observing the “output” of the computation. Noria targets read-heavy applications where repeated and similar queries are common, and where the queries change over time.

Missing features of Noria

Engineering things Noria doesn’t support

Joins whose join condition is not a single column equality; ORDER BY without a limit; CASE statements; LIKE conditions; and of course the SOUNDEX operator. There are also patterns that we support, but that we believe could be optimized further, such as multi-way joins and multiple aggregations in a single query.

Production-ready features that Noria should have

Checkpointing of materialized views.  This would be equivalent to a full cache purge. An external system could heat the cache, but it’d be better if Noria internally kept some form of snapshot to aid in this process.
Entirely-restarted Fault tolerance. When a machine failure results in related parts of the dataflow being blown away entirely restarted.
Noria currently requires ownership of its base storage. If you have an existing data store that you’d like to keep using, you’d have to feed changes to that data to Noria, and Noria would store it a second time. Need engineering efforts with respect to consistency of upqueries.

When would you avoid using Noria?

Have no well-defined working set. Constantly issuing entirely new queries make materializations useless and add unnecessary overhead.
Noria will work fine within a fairly high write throughput rather than extremely high write thoughput applications.


Development: Add quiz exercise drop location e2e test

Checklist
General

[x] This is a small issue that I tested locally and was confirmed by another developer on a test server.
[x] Language: I followed the guidelines for inclusive, diversity-sensitive, and appreciative language.
[x] I chose a title conforming to the naming conventions for pull requests.

Motivation and Context

There are no e2e test checks that generated drop locations are in the correct place on the canvas.
Description

This PR adds an e2e test for the drag & drop quiz exercise drop locations.
Review Progress

Code Review

[ ] Review 1
[ ] Review 2

Codecov Report

Merging #6429 (d2ec65c) into develop (8dc3ea3) will decrease coverage by 4.41%.
The diff coverage is n/a.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #6429      +/-   ##
=============================================
- Coverage      84.84%   80.43%   -4.41%
- Complexity     13005    13006       +1
=============================================
  Files           1073     2318    +1245
  Lines          42056    89046   +46990
  Branches        4398    13165    +8767
=============================================
+ Hits           35681    71626   +35945
- Misses          3934     9600    +5666
- Partials        2441     7820    +5379

see 1246 files with indirect coverage changes

Flag
Coverage Δ

client
76.48% <ø> (?)

server
84.84% <ø> (+<0.01%)
:arrow_up:

Continue to review full report in Codecov by Sentry.

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


Setting a CDN for easier offline use and avoid hitting other servers

One can set font per element but when having dozens it can grow verbose. defaultFontURL can be modified directly also, as for now it relies on a Google server which might not be GDPR compliant. Yet it would be convenient to be able to set a default font for all <a-troika-text> elements.
Same idea as https://github.com/aframevr/aframe/issues/5119 so at least creating this issue as a form of documentation.

Hello! In my team we have a similar need, so I created a pull request (https://github.com/lojjic/aframe-troika-text/pull/80) that exposes the unicodeFontsURL property of the unicode-fonts-resolver package, used by troika-three-text under the hood.

Any chance to merge this?


Implement computed attributes

Here is implementation.
Structure are very similar to Attribute Aliases. ComputedAttributes are linked to device. Manager and api.resource almost copy.
ComputedAttribute model has following fields:
id
deviceId
expression - JEXL expression to compute
attribute - name of attribute, where result will be placed
type - is type to which result will be cast (number/boolean/string)
Manager is always working, but processing itself can be disabled (in case of performance issues)
I placed ComputedAttributesHandler after CopyAttributes and before Events handlers.
Also I've moved CopyAttributesHandler to processing package.

Looks like done. Replaced commit.
Implemented the same permissions model as for geofences.
Everything named just attribute except ComputedAttributesHandler
Added field description to model.

Looks good, merged.

Thanks. Web part is almost ready. Will send a PR after weekend.
I'm thinking over some way of testing expressions. For example some API point that accept attribute entity and whole position object or just deviceId and used lastPosition for compute.

Good idea, but I guess we can start without testing API and add it later.

I just thought.
If "Device Readonly" user link/unlink geofence to device it can not influence on device object, data from device or other users who have access to the device.
But!
If "Device Readonly" user link/unlink ComputedAttribute to a device, it will influence on data from the device, for example alarm can be blocked at all, or ignition status overridden.
I think that it is not what we and users wait from "Device Readonly" user.
I would suggest disable access to ComputedAttributes for "Device Readonly" users. What do you think?

Not sure. Main reason for using "Device Readonly" is restricting user to specific devices. I think use case is usually that companies sell their devices and provide tracking service and they don't want people to add any other devices or modifying device id or anything like that. They still want people to be able to use all features, so allowing computed attributes might be a good idea. What do you think?

There are some sensible attributes, that should not be overridden by not very trusted user ("Device Readonly") for example fuel, totalDistance. Such "not-very-trusted" user can steal fuel or something.
May be we will not allow compute some list of such sensible attributes?

The point is that user owns the device, so he should be able to do anything he wants. The only thing we want to restrict is basically creating new devices and editing unique id, so that he can't use the service with some unauthorised devices. It also makes sense to disable removing, so he can't accidentally remove device and not able to add it back. Maybe we should even allow editing device except unique id.

I got your point and agree with you from the point of view of service provider. But if we look at it from the point of company manager, he might want restrict manipulation incoming data from devices.
But OK, lets see if will be some feature requests about it.

I think for that case we can use full readonly. Those are two main real use cases.

Now I'm try to solve another problem.
position object can be modified inside the JEXL script, any fields. (just call setter in script)
I see the simplest solution is pass the clone of position. I tried to use org.apache.commons.lang.SerializationUtils.clone(). It works, but a bit decreases the performance about 10 positions less in 5 seconds ( 380 -> 370)
Also it looks not very good, make Position Serializable and clone every attribute in loop.
Another option I tried is https://commons.apache.org/proper/commons-jexl/javadocs/apidocs-2.1/org/apache/commons/jexl2/introspection/Uberspect.html just not allow call setters, and some other methods like add, put etc. This solution does not influence on performance. But there might still be some methods that allow modify the position object.
Any ideas appreciated.

I was thinking about making it easier to write the expression. I don't like that you need to call position.getXxx. It would be nice if you could just use attribute directly. Do you think it's possible to just pass all the attributes directly into the expressionContext? This way we will be able to write something like adc1 * 0.1 + 10 directly. This will also solve the problem of modifying the position because we just won't pass the full position object. What do you think?

Now it is possible to use position.attributes.adc1 directly. I would not limit context to attributes only, It will limit the flexibility, some position fields might be useful for scripting, like speed, valid, protocol, xxxTime.
But ... It might be the solution...
Map all fields and attributes as separate variables... The only problem might be is intersection of position field names and attributes names ...


Catch the event when there is no message for the subscribed topic

After waking from periodic sleep, my sensor contact broker. If there is some message for the subscribed topic, callback is called, and it act accordingly. This is working fine.
I want the sensor to go to sleep again if there is no message for it.
My question is how can I catch the event when there is no message for the subscribed topic so that I could make it to go to sleep?

You would have to implement a timeout so if no message arrives within, say 10 seconds, then go back to sleep.
There is nothing built into this library to help you do that.

Thanks a lot man. That WAS quick. I am obliged!!


Test to see if 4176 still happens

So #4176 doesnt happen, but we got a test failure that looks like another version of #4438.


reversed order of coordinates representing  holes

Reversed order of coordinates representing holes to conform with geojson right hand rule

Tests need updating - otherwise approved


Support custom types as ABI-defined function output

Currently we support custom types as inputs to ABI-defined functions, meaning the SDK's abigen! will generate Rust structs whose functions can take custom types that are also generated by the abigen!. This covers most of the cases, but there are cases where the output of an ABI-defined function is also a custom struct, i.e:
let custom_input = MyStruct::new();
let my_custom_output: CustomOutput = MyCustomContract.do_something(custom_input);

In this case, the SDK already supports the generation and manipulation of MyStruct as an input, but not the creation of CustomOutput struct, that's only defined as the output of a function.
This is a relatively straightforward task, as we have to do something similar to what we already do for the custom types for the input (see expand_function_arguments() in functions_gen.rs ) for the output as well, in functions_gen.rs:
/// Expands the output of a function, i.e. what comes after `->` in a function
/// signature.
fn expand_fn_outputs(outputs: &[Property]) -> Result<TokenStream, Error> {
    // TODO: future, support struct outputs
    match outputs.len() {
        0 => Ok(quote! { () }),
        1 => expand_type(&parse_param(&outputs[0])?),
        _ => {
            let types = outputs
                .iter()
                .map(|param| expand_type(&parse_param(param)?))
                .collect::<Result<Vec<_>, Error>>()?;
            Ok(quote! { (#( #types ),*) })
        }
    }
}

☝ This is where we need to extend to support outputs with custom types.

Closed by https://github.com/FuelLabs/fuels-rs/pull/24


Terminal not available when debugging with vscode open /dev/tty: device not configured

I ran a minimal example successfully in a MacOS terminal, but when trying to debug it in vscode's integrated terminal, Screen.Init() fails.
I've stepped in many levels but it keeps going deep, at some point it tries to open the file /dev/tty and fails with

open /dev/tty: device not configured

Is there any workaround for this to make it work?

I'm not aware of one... probably you need to connect via delve or something to an application that is started from a normal environment.

You can add  "console": "integratedTerminal" to your launch configuration and this will allow you to debug tcell app. Other terminal like external might also work.
{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "main",
            "type": "go",
            "request": "launch",
            "mode": "auto",
            "program": "${workspaceFolder}/console_app/.",
            "console": "integratedTerminal"
        }
    ]
}


Can't connect to influxDB 2.0

Hi i tried to config the unpoller settings file. I tried it with password and token but none of them works.
There is always an error called
2023/12/07 14:13:26 [ERROR] influxdb.Write(points): {"code":"unauthorized","message":"Unauthorized"}
this is my config file
`[influxdb]
disable = false
InfluxDB does not require auth by default, so the user/password are probably unimportant.
url  = "http://<IP_ADDRESS>:8086"
user = "admin"
Password for InfluxDB user (above).
If the password provided here begins with file:// then the password is read in from
the file path that follows the file:// prefix. ex: file:///etc/influxdb/passwd.file
pass = "cviIsiLTW6dKY0m3iu9VxWn8jSwIgRoe6-sY7b-F9JtF1Oht76upt2JSV81dx2yn-8lQjaJ-Z-KKc-DObP3Oig=="
Be sure to create this database. See the InfluxDB Wiki page for more info.
db = "unifi"
If your InfluxDB uses a valid SSL cert, set this to true.
verify_ssl = false
The UniFi Controller only updates traffic stats about every 30 seconds.
Setting this to something lower may lead to "zeros" in your data.
If you're getting zeros now, set this to "1m"
interval = "30s"
Record data for disabled or down (unlinked) switch ports.
dead_ports = false
`
Any ideas ? the db (bucket) is created

While I didn't get this error specifically, I did infer from reading the code that you can just set it to output to infludbv2 using something like:
[influxdb]
  disable = false
  url  = "http://<IP_ADDRESS>:8086"
  auth_token = ""
  org = ""
  bucket = ""

It is a documentation deficiency and I wasn't exactly sure how to address it.
#456 shows the change being made, and the output plugin README.md shows an example in YAML.  However, the configuration documentation mentions this example configuration file which is TOML.
Not being a regular developer of Go programs, the configuration structure changes from the PR sure seemed like it could "just work" to shove the data into the up.conf's [influxdb] section, and happily it did.
Is just adding a few lines to the sample config the right answer?  Happy to open a PR for that if you like.  And is it worth writing down somewhere that up.conf could be a TOML, YAML, JSON, or even XML file?  Or is that not intended as a first-class feature to maintain?  Or is that not even a true conclusion to have drawn?

Surely the "auth_token" ensures that access is authenticated?  I didn't mean to suggest that an empty string worked as the value.  I had to fill in the token I generated.

ah yeah, auth_token triggers the v2 client usage for influx v2. Their authentication standards changed during v2 and their go client expects an authentication token.


Marking a resource as offline or changing labels from pipelines

What feature do you want to see added?
We have to handle cases where the lockable resources can become offline for various reasons. An interesting one, is when the lockable resource is a device and the pipeline discovers that the pipeline is not working as expected. We would like to be able to mark the lockable resource as "offline";
We would also like a way for a pipeline to be able to retrieve all "offline" lockable resources, so that we can script jobs that might be able to heal or bring back a lockable resource online.
This could be achieved in many ways - my two favourites are

Implementing an "offline" attribute that can be set or filtered on
Implementing an action that would allow us to change the labels dynamically and adding the possibility to select lockable resources with a combination of include and exclude labels

My personal preference would be (2) since it may also prove useful for other cases, while an offline mode (1) would be very specific to my needs.
I can submit a PR for this, but before I would like feedback on the preferred option (maybe something I haven't thought of?)
Upstream changes
No response

Given recent work on resource properties, wouldn't some definition of health be a good use for that mechanism, without imposing the change on all sorts and users of lockable resources?
Note that not all lockable resources represent actual devices, services, etc. that might be broken and fixed (many do, though).
FWIW, my approach to this was to have script-detected locks (not label/name based), so we know which resources are usable the moment we try to use them. This was helped by the cached-results support (per #171) to not become the only work the Jenkins controller does as a tight infinite loop when we run out of resources, and by separately coded regularly running jobs to detect unavailable resources so they would be "stolen" by a "Holder of broken things", as well as un-reserved from it when they become online. In that approach, the "offline" property could take place of that "Holder of broken things" reservation, but the rest of complexity I think remains on the end-users of the plugin?
At best, we could integrate the manipulation of such "offline" flag with the scripted detection of resources, so that does not have to be coded twice (in a job that wants the resource, and in the job that tracks their health), e.g. by returning not just a true/false verdict about whether this job wants this resource arbitrarily, but also more values about whether we saw this resource as dead or alive during the check.

The strategy you describe does sound interesting - stealing the lock for extraordinary measures (troubleshooting / healing) does seem like a good approach.
I don't dislike the idea of testing the lock as it is being taken (script-detected), although it seems to introduce a lot of complexity in our pipeline. I will try it out.
I'm also not too keen on adding new fields to the locks - you are right, not everyone uses them as resources that can be unhealthy, so adding a status might bloat the plugin for others.
What if:

I could bring up to date https://github.com/jenkinsci/lockable-resources-plugin/pull/110 and adjust it so that the exclusion filter would be on both the resource name or a label
I add a custom step to add/remove labels on a lock

With these two things, I could

exclude locks with the label "offline"
tag a lock as "offline" when I detect it (as I use it, or through a job that checks periodically)
filter on "offline" periodically to find locks that are offline to attempt to heal them
remove the "offline" tag on a lock when it's online again

These two features (exclusion filter + add/remove lock step) would not add business specific bloat to the lockable resources and still allow me to implement what I'm after.
Let me know if that sounds reasonable - I would start by bringing https://github.com/jenkinsci/lockable-resources-plugin/pull/110 up to date (with additional support for labels)

Hello, I would love to see this suggestion implemented:

Implementing an action that would allow us to change the labels dynamically and adding the possibility to select lockable resources with a combination of include and exclude labels

I think most Jenkins users are used to manipulate combinations of labels when it comes to agent selection, and I think re-using the same kind of syntax/functionality to select a resources would be great. Actually I can't think of any other solution to my use cases, where we have labels describing different axis, and we can to lock resources accepting some combinations of these axis, for example: location_USA && board_version_2 && !model_ARMv8
Unless you have a suggestion for me? By the way, is there a way to exploit the groovy: based scripts in locks in pipelines ? I don't see how to use this, and there's no documentation...


Automate screenshot generation

Perhaps we should use some tool like ansi-to-svg or ansifilter to automatically generate the screenshot for the README. It's currently out of date!

So this kind of works:
cargo run --example emit 2>&1 | ansifilter --svg --encoding utf8 -o test.svg

But it seems to be outputting unbalanced tags in the SVG. I'm guessing this is to do with how ansifilter is interpreting the resets sent from termcolor.

Ok, so it seems #96 fixes the woes with ansifilter!


Fix alert for failing health check

Description
The deploy on 5/26 ran into a bug in the data initialization code. This caused the training environment to get stuck in a crash loop. Since this was not caught by our staging deployment slot (separate issue). We should migrate this slack alert to open an incident on Pager duty instead
Proposed solution
Recreate the availability alert in terraform such that it opens a low priority incident in pager duty. Find the old alert in Azure and remove it
Additional context
Alert is slack https://usds.slack.com/archives/C01FPLGB0VD/p1622050998009200

Health checks a in prime-simple-report-global Application Insights
It appears that there are also email alerts that have been manually created and should be removed. https://usds.slack.com/archives/C01FPLGB0VD/p1622698506114200

Health check alert IDs from my email:
Demo | 10113ed6-0dce-48a5-9892-7c85aa0fc1f3
Prod | d6951aed-508e-4d35-8cfc-27a12dd5827d

It looks like the old alerts are no longer part of our TF configuration, so we can just delete them from the console once the new ones are in place.

This has been deployed to all envs, so the old ping alerts have been removed.


entrypoint variable made public

Hello!
With a recent commit in openai gym (openai/gym@dc91f43) the entry_point variable was changed from private to public, thus breaking baselines/baselines/run.py script.
Updating baselines/run.py in lines 35 and 129 from
env_type = env._entry_point.split(':')[0].split('.')[-1]
to
env_type = env.entry_point.split(':')[0].split('.')[-1]
fixes this problem. I hope, this can be useful.
Best regards,
Nico Bach

I think the requirements for gym should also be changed to 0.14.0 at least.
https://github.com/openai/baselines/blob/0182fe1877e95b2ef0a82747c20bed1523fb5a3f/setup.py#L34


[Feature] Optimize serialization of TableSchema

Search before asking

[X] I searched in the issues and found nothing similar.

Motivation
Now the serialization of TableSchema is more violent, once it is determined that there are watermark or calculated columns, is to turn all schema into options stuffed into.
We should only serialize watermark and calculated columns.
Solution
No response
Anything else?
No response
Are you willing to submit a PR?

[ ] I'm willing to submit a PR!

I'm interested in this. May I have the ticket?

@hililiwei Sorry for late response. This issue is solved by https://github.com/apache/incubator-paimon/pull/1041


Fix gridEngine (resolves #213)

Added maxDisk to the gridEngineBatchSystem constructor
replaced undefined values in str with self.values
Fixed typo (curline -> currline)
Added disk to issueBatchJob and self.checkResourceRequest
maxWait not defined in killBatchJobs method, replaced with standard killedJobsQueue.get()
Added shutdown method to gridEngine
Replaced getFromQueueSafely with standard .get() call
Changed "p=str(cpu)" to specify cores to:  ["-pe", "smp", str(cpu)]
CPU only accepts integers. Since TOIL handles floats, the values supplied to cpu will be rounded up.
Added debug messages for logging.
Added explanatory docstring for overridden shutdown() (+19 squashed commits)

Can one of the admins verify this patch?

Jenkins, test this please.

Jenkins, test this please.

I rebased, resolved the conflicts and modified the commit message. Also amended commit with the removal of those two debug statements. Then force-pushed.
But I still have a few more comments which I will make as line notes.

Jenkins, test this please.


SLURM job crashes if Conda is not installed

Environment

Covalent version: 0.220.0
Covalent-Slurm plugin version: 0.12.1
Python version: Python 3.9.16
Operating system: Ubuntu

What is happening?
Note: this one is motivated by some "getting started" snags by a colleague of mine, @rwexler.
https://github.com/AgnostiqHQ/covalent-slurm-plugin/blob/bcf2049b61da4e9ddc1d507ef9b56562569d9d84/covalent_slurm_plugin/slurm.py#L337-L346
Because of this line, there is currently no way to use the plugin if you aren't using conda. There are many situations in which the user may not want to use an Anaconda environment. For instance, maybe the user is loading an HPC-hosted Python module, which they've installed packages with via pip. They would have to load the module in their prerun_commands but otherwise shouldn't be required to use conda.
How can we reproduce the issue?
Submit a job without conda in the PATH.
What should happen?
Covalent should support running with Python in the PATH but not necessarily relying on Conda.
Any suggestions?
Only add the conda-related lines if conda_env is not False.

@arosen93 thank you for this ! this is an side effect of initial versions of covalent being only installable from conda due to few non python dependencies. But that's not the case now, I assume everything should work sans conda check. @wjcunningham7 can you confirm this?


Allow multiple response handling with concurrency

[x] I've read, understood, and done my best to follow the *CONTRIBUTING guidelines.

Problem
In the past, a common pattern used for debugging looks like this:
AF.request("url").responseDecodable(of: CodableValue.self) { response in
  [handle response, normal app code]
}
.responseString { response in print(response.value!) }

Note the trailing responseString, which would perform my normal response handling code but also print out the raw string from the server to the console. This is very useful when first implementing an API, so you can take the actual output from the server and read it, paste it into a linter, etc. When everything is working, you just comment out that last line. Then if something stops working, uncomment that line temporarily and you'll see the output again.
Feature Request
In the new concurrency model, the code looks like this:
let outputValue = try await AF.request("url").serializingDecodable(CodableValue.self).value
[handle response, normal app code]

I see there is a serializingString function but it appears by using it, that would cause the request to run twice, which isn't desired.
Value to Alamofire
This was a really useful function in Alamofire and it would be great to utilize it still while taking advantage of the new features of concurrency.

You can already do this, as the DataTask producers are attached like the closure serializers, you just can't chain them together.
let request = AF.request(...)
let jsonTask = request.serializingDecodable(CodableValue.self)
let stringTask = request.serializingString()

Then you can await their properties like normal. You could even use async let to capture them both:
async let decodableResponse = jsonTask.response
async let stringResponse = stringTask.response

print(await (decodableResponse, stringResponse))

I see, when reading the documentation it wasn't clear to me that the request wouldn't run more than once. The example that shows something like this implies this method is used to run multiple requests in parallel, however that doesn't reuse the original request.
If I put together a PR that adds this example you gave to the documentation, would that be considered?

Can you point out what you thought implied a request might be run more than once?

Sure. The documentation doesn't contain the exact example you gave, where you create one request then multiple tasks. It contains an example where a single task is awaited multiple times for the value, response and result, and it contains this example:

Like all Swift Concurrency APIs, these awaitable properties can be used to await multiple requests issued in parallel. For example:
async let first = AF.request(...).serializingDecodable(TestResponse.self).response
async let second = AF.request(...).serializingString().response
async let third = AF.request(...).serializingData().response

// Later...

// Produces (DataResponse<TestResponse, AFError>, DataResponse<String, AFError>,  DataResponse<Data, AFError>)
// when all requests are complete.
let responses = await (first, second, third)

Alamofire's concurrency APIs can also be used with other builtin concurrency constructs like Task and TaskGroup.

This was an example showing how to run 3 separate requests at the same time, and waiting for all 3 to return before continuing.

Right. What implied the same request would run multiple times?

Also note that the closure response handlers can also be used just like the tasks.
let request = AF.request(...)
request.responseString { response in
  //...
}
request.responseDecodable(of: SomeType.self) { response in
  //...
}

I mean, if I had to document everything that particular APIs didn't do, I'd never stop writing.
What would be your suggestion to improve it?

Simply to include the original example you gave in response - if you create a single request you can create and await multiple tasks to handle the result as many times as you need, but the request only runs one time regardless of the number of tasks created from it.

Would this work?

Yes I think that's quite good. I noticed something that may be a typo, and just left it as a comment.
Thanks for your help!


How to use MAVSDK in separated scripts?

I am having a issue when a running a telemetry script and then a mission script.
Sometimes the scripts execute perfectly. But occasionally the mission script stay stuck in the message:
Connected to mavsdk_server!

MAVSDK support separated connections?
telemetry.py
#!/usr/bin/env python3

import asyncio
from mavsdk import System
import json

async def run():
    # Init the drone
    drone = System()
    await drone.connect(system_address="udp://:14540")

    async for state in drone.core.connection_state():
        if state.is_connected:
            print(f"Drone discovered with UUID: {state.uuid}")
            break

    # Start the tasks
    asyncio.ensure_future(print_battery(drone))
    asyncio.ensure_future(print_gps_info(drone))
    asyncio.ensure_future(print_in_air(drone))
    asyncio.ensure_future(print_position(drone))

async def print_battery(drone):
    async for battery in drone.telemetry.battery():
        print(f"Battery: {battery.remaining_percent}")

async def print_gps_info(drone):
    async for gps_info in drone.telemetry.gps_info():
        print(f"GPS info: {gps_info}")

async def print_in_air(drone):
    async for in_air in drone.telemetry.in_air():
        print(f"In air: {in_air}")

async def print_position(drone):

    data = {"position": {}}

    async for position in drone.telemetry.position():
        data["position"]["latitudeDeg"] = position.latitude_deg
        data["position"]["longitudeDeg"] = position.longitude_deg
        data["position"]["absoluteAltitude"] = position.absolute_altitude_m
        data["position"]["relativeAltitude"] = position.relative_altitude_m

        json_data = json.dumps(data)
        print(json_data)

if __name__ == "__main__":
    # Start the main function
    asyncio.ensure_future(run())

    # Runs the event loop until the program is canceled with e.g. CTRL-C
    asyncio.get_event_loop().run_forever()

mission.py
#!/usr/bin/env python3

import asyncio

from mavsdk import System
from mavsdk.mission import MissionItem, MissionPlan

async def run():

    drone = System()
    await drone.connect(system_address="udp://:14540")

    async for state in drone.core.connection_state():
        if state.is_connected:
            print(f"Drone discovered with UUID: {state.uuid}")
            break

    running_tasks = []
    termination_task = asyncio.ensure_future(observe_is_in_air(drone, running_tasks))

    await drone.mission.clear_mission()
    await drone.action.set_takeoff_altitude(20)
    await drone.action.arm()
    await drone.action.takeoff()
    await asyncio.sleep(20)
    await drone.action.transition_to_fixedwing()
    await drone.action.goto_location(-5.842418, -35.197584, 20, float("nan"))
    await asyncio.sleep(45 * 1)
    await drone.action.return_to_launch()
    # await drone.gimbal.set_roi_location(-5.842418, -35.197584, 490)
    # await drone.action.transition_to_multicopter()
    # await drone.action.land()

    await termination_task

async def observe_is_in_air(drone, running_tasks):
    """ Monitors whether the drone is flying or not and
   returns after landing """

    was_in_air = False

    async for is_in_air in drone.telemetry.in_air():
        if is_in_air:
            was_in_air = is_in_air

        if was_in_air and not is_in_air:
            for task in running_tasks:
                task.cancel()
                try:
                    await task
                except asyncio.CancelledError:
                    pass
            await asyncio.get_event_loop().shutdown_asyncgens()

            return

if __name__ == "__main__":
    loop = asyncio.get_event_loop()
    loop.run_until_complete(run())

MAVSDK support separated connections?

No, that's a limitation in MAVSDK-C++: when you subscribe to a callback in MAVSDK-C++, you actually replace the older callback. Which means that if you subscribe twice to mavsdk_server, only the most recent callback stays.
The solution would be to change the behavior in MAVSDK-C++, such that you can subscribe more than once.

OK! Thanks for the explanation! :)


Tailwind error: slider-txt-rtl class does not exist

Error message
The `slider-txt-rtl` class does not exist. If `slider-txt-rtl` is a custom class, make sure it is defined within a `@layer` directive.

Dependencies:
"@vueform/slider": "^2.0.9",
"vue": "^3.2.25",

Dev dependencies
"autoprefixer": "^10.4.2",
"postcss": "^8.4.6",
"sass": "^1.51.0",
"tailwindcss": "^3.0.18",
"typescript": "^4.5.4",
"vite": "^2.9.0",

Error only exist when using tailwind.scss import. It's not error when using classes directly.

Same issue, I'm using vue 2 and css

Same issue here using Vue 3

Thanks for reporting - fixed in 2.1.6.


Feature/doc management page

Context
We need to be able to add, view and delete documents that have been saved. This is being done on a dedicated page using a FileField django model field.
Changes proposed in this pull request

Enabled functionality on the /documents/ page

Guidance to review

Run the app locally, try to add a file, check that it is shown on the view page
Attempt to remove a document

Relevant links
https://technologyprogramme.atlassian.net/jira/software/projects/REDBOX/boards/409?assignee=712020%3Aef73792a-97e3-43d0-9992-3e9d55feb555&selectedIssue=REDBOX-77
Things to check

[ ] I have added any new ENV vars in all deployed environments
[ ] I have tested any code added or changed
[ ] I have run integration tests

This works locally, but not yet on dev due to duplicate s3 code and difficulty testing. This should probably be its own PR now though and the dev work can be done in another one as it's a fair sized rework - it might make this PR quite large


implemented topk for intTensor

This pull request resolves issue #1242 in PySyft . This pull request is the OpenMined portion of the implementation. See the pull request  OpenMined/PySyft/pull/1317  for the PySyft portion
Fixes #1242 in PySyft
Type of change

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

How Has This Been Tested?

[x] Created and ran unit tests in unity
[x] Created and ran integration tests in Openmined/integration
[x] Created an example in Openmined/notebooks/tests/Test Tensor Function Implementation.ipynb

Test Configuration:

CPU: iMac (21.5-inch, Mid 2011)  2.8 GHz Intel Core i7
GPU: AMD Radeon HD 6770M 512 MB
PySyft Version: 0.1.0
Unity Version: 2017.3.0f3
OpenMined Unity App Version: Latest

Checklist:

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

It misses sorting based on dimension
# Example. shape 2x2
data = [[3,7],[4,2]]

# Exacted behaviour as pytorch
if dim = 0:
  result = [[4,7],[3,2]]
if dim = 1:
  result = [[4,2],[7,3]]

# current behaviour
if dim = 0:
  result = [[2,3],[4,7]]
if dim = 1:
  result = [[2,3],[4,7]]

any idea how to implement it?


discussion on commits failing due to invalid line code

When I comment in a commit with lab mr discussion --commit <sha> but in a line surrounding the actual code touched by the change I receive the following error:
2021/12/06 17:09:19 ERROR: note_common.go:108: POST https://gitlab.com/api/v4/projects/20363472/merge_requests/680/discussions: 400 {message: 400 Bad request - Note {:line_code=>["can't be blank", "must be a valid line code"]}}

For instance, the commit is:
newfile: Makefile oldfile: Makefile
     @@ -1,3 +1,4 @@
   1 +# #test
1  2  # SPDX-License-Identifier: GPL-2.0
2  3  VERSION = 4
3  4  PATCHLEVEL = 18

If I add a comment after VERSION = 4 the mentioned error happens.
@prarit is it expected? Is there a "valid scope" that the user is allowed to comment?

That's interesting.  So you attempted to comment on, for example, line 3?

Hmm ... I never tried it :) Let me try a few things.  I would have thought that should work given that line is technically part of the change.

yeah this is some weirdness in the gitlab API - when commenting on context lines we need to pass two line numbers, the old and the new one. The fix below should work:
BTW I never realized that commenting on lines was already possible like this.
Sadly we have a misconfiguration at work that prevents us from using URL-encoded paths like user%2frepo, which is why I'm not using lab. In my scripts I have a workaround that uses the numeric project ID instead..
diff --git a/cmd/note_common.go b/cmd/note_common.go
index 9b64962..dc66b60 100644
--- a/cmd/note_common.go
+++ b/cmd/note_common.go
@@ -94,11 +94,9 @@ func noteRunFn(cmd *cobra.Command, args []string) {
 	createNote(rn, isMR, int(idNum), msgs, filename, linebreak, commit, true)
 }

-func createCommitNote(rn string, mrID int, sha string, newFile string, oldFile string, oldline int, newline int, comment string, block bool) {
-	linetype := "old"
+func createCommitNote(rn string, mrID int, sha string, newFile string, oldFile string, linetype string, oldline int, newline int, comment string, block bool) {
 	line := oldline
 	if oldline == -1 {
-		linetype = "new"
 		line = newline
 	}

@@ -149,11 +147,12 @@ func createCommitComments(project string, mrID int, commit string, body string,
 	oldfile := ""
 	oldLineNum := -1
 	newLineNum := -1
+	lineType := ""
 	comments := ""
 	for scanner.Scan() {
 		if strings.HasPrefix(scanner.Text(), "| newfile:") {
 			if comments != "" {
-				createCommitNote(project, mrID, commit, newfile, oldfile, oldLineNum, newLineNum, comments, block)
+				createCommitNote(project, mrID, commit, newfile, oldfile, lineType, oldLineNum, newLineNum, comments, block)
 				comments = ""
 			}
 			// read filename
@@ -166,34 +165,30 @@ func createCommitComments(project string, mrID int, commit string, body string,
 			}
 		} else if strings.HasPrefix(scanner.Text(), "|") {
 			if comments != "" {
-				createCommitNote(project, mrID, commit, newfile, oldfile, oldLineNum, newLineNum, comments, block)
+				createCommitNote(project, mrID, commit, newfile, oldfile, lineType, oldLineNum, newLineNum, comments, block)
 				comments = ""
 			}
 			// read line numbers
-			fs := strings.Split(scanner.Text(), " ")
-
-			oldLineNum = -1
-			newLineNum = -1
-			for _, f := range fs {
-				if f == "" || f == "|" || f == "@@" {
-					continue
+			fs := strings.Fields(scanner.Text())
+			if len(fs) < 3 {
+				continue
+			}
+			var err error
+			oldLineNum, err = strconv.Atoi(fs[1])
+			if err != nil {
+				continue
+			}
+			newLineNum, err = strconv.Atoi(fs[2])
+			if err != nil {
+				panic(err)
+			}
+			lineType = "context"
+			if len(fs) > 3 {
+				if strings.HasPrefix(fs[3], "-") {
+					lineType = "old"
 				}
-				val, err := strconv.Atoi(f)
-				if err != nil {
-					// NaN
-					if strings.HasPrefix(f, "+") {
-						newLineNum = oldLineNum
-						oldLineNum = -1
-					}
-					break
-				} else {
-					// Number
-					if oldLineNum == -1 {
-						oldLineNum = val
-					} else {
-						newLineNum = val
-						break
-					}
+				if strings.HasPrefix(fs[3], "+") {
+					lineType = "new"
 				}
 			}
 		} else {
diff --git a/internal/gitlab/gitlab.go b/internal/gitlab/gitlab.go
index 55f7483..13c2be0 100644
--- a/internal/gitlab/gitlab.go
+++ b/internal/gitlab/gitlab.go
@@ -1760,9 +1760,10 @@ func CreateMergeRequestCommitDiscussion(projID string, id int, sha string, newFi
 		PositionType: "text",
 	}

-	if linetype == "new" {
+	if linetype == "new" || linetype == "context" {
 		position.NewLine = line
-	} else {
+	}
+	if linetype == "old" || linetype == "context" {
 		position.OldLine = line
 	}

@krobelus don't you want to open a PR with this fix?
Otherwise I'll have to steal your solution :smile:

Yeah please go ahead and steal it. I'll open a PR next time.

Needs a bit of massaging.  I get some panics and failures.  Looking at it now.

I looked at this and realized it was very similar to my first attempt at writing a parser for the diff.  This doesn't work :( because you can have a diff file like:

| newfile: Makefile oldfile: Makefile
|        @@ -5,6 +5,8 @@ SUBLEVEL = 0
|  5   5  EXTRAVERSION =
|  6   6  NAME = Merciless Moray
|  7   7
|      8 +# space
|      9 +
|  8  10  #
|  9  11  # DRM backport version
| 10  12  #

+			fs := strings.Fields(scanner.Text())
+			if len(fs) < 3 {
+				continue
+			}
+			var err error
+			oldLineNum, err = strconv.Atoi(fs[1])
+			if err != nil {
+				continue
+			}
+			newLineNum, err = strconv.Atoi(fs[2])
+			if err != nil {
+				panic(err)
+			}

|  5   5  EXTRAVERSION =
|  6   6  NAME = Merciless Moray

TBH this format looks a bit overly explicit. Why not use the standard diff format, and compute the various line numbers on the fly?
Feels like we are exposing implementation details that the user doesn't care about.

I want it to match the webUI output which shows those line numbers.  In any case I'm fixing your changeset now.  I think I have an easy way forward.

I want it to match the webUI output which shows those line numbers. In any case I'm fixing your changeset now. I think I have an easy way forward.

Oh, I was doing that too :) will leave it to you.

TBH this format looks a bit too explicit. Why not use the standard diff format, and compute the various line numbers on the fly? Feels like we are exposing implementation details that the user doesn't care about.

As @prarit said, it's not really implementation detail, but trying to match webui diff style. One problem with the usual diff format is identifying comments in between lines: it would require some education from users to enclose their comments with empty lines or use another special char to indicate that line isn't part of the actual diff, but a comment.. this type of situations. The | at the beginning of the line helps in this aspect, unless he decides to use this same char at the beginning of his comment, but then he's really trying to break things.

Fixed by #771


Adding e2e tests

https://github.com/G-Research/armada/issues/1071
Enable Integration Tests in make-e2e-tests for python client

I am going to look into how I can remove the sleeps as I do think that could be a potential issue in a CI.


failed to recover from reboot.

Hi ,
When trying to run the reboot script : ansible-playbook playbooks/reboot-hosts.yml
everything looks ok :
PLAY RECAP ********************************************************************
wait for host boot ----------------------------------------------------- 90.27s
set consul maintenance enable ------------------------------------------- 4.40s
wait for consul to listen ----------------------------------------------- 3.66s
reboot host ------------------------------------------------------------- 2.49s
set consul maintenance disable ------------------------------------------ 1.23s
shali-control-01           : ok=5    changed=3    unreachable=0    failed=0
shali-control-02           : ok=5    changed=3    unreachable=0    failed=0
shali-control-03           : ok=5    changed=3    unreachable=0    failed=0
shali-edge-01              : ok=5    changed=3    unreachable=0    failed=0
shali-edge-02              : ok=5    changed=3    unreachable=0    failed=0
shali-worker-001           : ok=5    changed=3    unreachable=0    failed=0
shali-worker-002           : ok=5    changed=3    unreachable=0    failed=0
shali-worker-003           : ok=5    changed=3    unreachable=0    failed=0
looking at mantl UI , it seems as it's in critical state (top-right it marked as critical)
looking at mesos, it seems as if it has no resources (No master is currently leading ...
):
I0307 09:34:18.661811  3272 contender.cpp:149] Joining the ZK group
I0307 09:34:28.397053  3283 recover.cpp:111] Unable to finish the recover protocol in 10secs, retrying
The marathon , and chronos appears as critical with no ability to access their UI (in marathon : Problem accessing /. Reason:
Could not determine the current leader)
I'm running on CCS .
some information on my setup :
I'm using the following versions :
Mantl 1.0.3-RC1
terraform : v0.6.11
Python 2.7.11
ansible 1.9.4

terraform on aws generates instances with public ips.  If you reboot the instance, you get a new public ip.  The public ips should be converted to elastic ips to survive reboot.

possible related to https://github.com/CiscoCloud/mantl/issues/538 as well?
I tried inserting the "aws_eip" line in aws.tf, but strangely it only worked for the -01 edge, control and worker nodes.  I'm very new to terraform, but how is my block different from the "aws_volume_attachment" below the instances block (which does mound /dev/xvdh to all instances)
resource "aws_eip" "eip" {
    instance = "${element(aws_instance.instance.*.id, count.index)}"
    vpc = true
}

resource "aws_instance" "instance" {
  ami = "${var.source_ami}"
  instance_type = "${var.ec2_type}"
  count = "${var.count}"
  vpc_security_group_ids = [ "${split(",", var.security_group_ids)}"]
  key_name = "${var.ssh_key_pair}"
  associate_public_ip_address = true
  subnet_id = "${element(split(",", var.vpc_subnet_ids), count.index)}"
  iam_instance_profile = "${var.iam_profile}"
  root_block_device {
    delete_on_termination = true
    volume_size = "${var.ebs_volume_size}"
  }

  tags {
    Name = "${var.short_name}-${var.role}-${format("%02d", count.index+1)}"
    sshUser = "${var.ssh_username}"
    role = "${var.role}"
    dc = "${var.datacenter}"
  }
}

resource "aws_volume_attachment" "instance-lvm-attachment" {
  count = "${var.count}"
  device_name = "xvdh"
  instance_id = "${element(aws_instance.instance.*.id, count.index)}"
  volume_id = "${element(aws_ebs_volume.ebs.*.id, count.index)}"
  force_detach = true
}

@darKoram @kbroughton It's not necessary to use eips, you can just run terraform refresh.

I just merged #1815, which should fix the root of this problem. I'm going to close issue for now; reopen if that PR didn't help. Thanks, all!


Question about Weighted Stack

Hi, first of all I would like to say thank you for this lib, I like it very much.
I wondering, if its possible to make an improvement to Weighted Stack, to add them ability to place some self sized subviews along with those with weights. For example if i pass -1 or 0 weight, it would mean that this view should have its own size.
You can say that its possible to place such views just outside this stack, but there are some cases for example  when i have a collection of generic views and i dont know their type and order.
I dont ask you to do it, i just trying to figure out how to solve this by myself without performance issues, may be you could give me some advice
Thank you again

Thanks for showing your appreciation!
What you're trying to achieve is either really simple or more tricky. For example, if you can use an HStack with a WeightedHStack embedded within. This way the Text views will have their own size.

However, if what you are trying to achieve is this:
WeightedHStack(spacing: 0) {
    Color.blue

    Text("Hello, World")

    Color.red
}

Then I'd need to improve WeightedHStackLayout to support that.

I think, I have a bit more tricky case:

Some real world example of how I guess I would use it:


Crash on fabric/quilt 1.19.2

https://paste.atlauncher.com/view/e160e63e-9916-430f-bb53-59fb0ca0d6b6

The latest build on cf/modrinth(waiting for approval) should cover this one, thanks!


Update the language codes

The Klingon language codes are incorrect. It should be "tlh-Latn" for Klingon with the Latin alphabet and "tlh-Piqd" for pIqaD.

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

ID: 3452c464-0135-aaab-5e96-a88f3144e378
Version Independent ID: 3816f475-bf5f-b5b4-9458-5cc70e93d55e
Content: Language support - Translator - Azure Cognitive Services
Content Source: articles/cognitive-services/Translator/language-support.md
Service: cognitive-services
Sub-service: translator-text
GitHub Login: @swmachan
Microsoft Alias: swmachan

@MartinLaplante - Thanks for pointing this out. We will update the documentation.

@MartinLaplante - The documentation is now updated. Thanks again for pointing this out.
#please-close


Add PvP Kill Sounds plugin

Play custom sounds when you kill another player or get a killstreak in PvP.
More details in the repo README.

The way you've included your sound resources is not correct; when shipped as a jar, this plugin will not load the default sounds. See: https://github.com/runelite/plugin-hub#plugin-resources. (You should be able to create a shadow jar for your plugin, move that jar to any directory, and have it load the sound resources from the jar, rather than from your filesystem)
We're not comfortable distributing some of the more aggressive sounds ("get fucked", "eat shit and die" primarily), please remove and/or replace them as needed. Thanks!

@Nightfirecat I removed the profane sounds (https://github.com/slyt/kill-sounds/commit/eb8263b946fd157d2b21bd0918baebc30588abbd). I'm still figuring out how to generate a shadow jar.
For some reason I was hit with a botting temp ban last night when I booted up my client to work on this. When I first loaded the client I was warned that it was out of date. I wasn't sure how to update it in the context of developing my addon. Could an out out of date client have caused my account to be flagged? I'm scared to continue developing this due to the threat of a perma ban on my 20+ year old account...

I reached out on Discord for help but nobody seemed to know what could be the cause of the ban and people were understandably suspicious in thinking that I actually botting. So now my goal is the understand the Java build process in more detail and replicate a ban with my build environment on a junk account. Hopefully I can shed some light on the situation to prevent future novice developers from getting false bans.

Sorry for the late response, I've been quite busy this past month. You should be able to follow the steps below to generate a shadow jar:

Add the following line to your plugins block in build.gradle:
id "com.github.johnrengelman.shadow" version "6.1.0"

Add this block elsewhere in the file, changing the Main-Class to your plugin's test:
shadowJar {
 from sourceSets.test.output
 configurations = [project.configurations.testRuntimeClasspath]
 manifest {
 attributes "Main-Class": "com.example.ExamplePluginTest"
 }
}

Then run ./gradlew shadowJar and a runnable jar will appear in build/libs/*-all.jar. You can run the jar with java -jar -ea jarName.jar

@slyt are you still hoping for a review on this plugin?

Closing this PR due to inactivity, please feel free to re-open it later if you plan to make the needed changes.


Write to disk from clients

IN PROGRESS
Updated docker-compose.yml to mount shared volume between container and host for writing data.

Requires modification to server tests and introduction of new client tests.
An existing, tested method is calling the method to write to disk... This is causing tests to fail it is not permitted to write to /data, which would be root on one's personal machine.

The mock method tests the process of the clients writing to disk. All tests scenarios now pass as expected


Add typings

Very nice library! May it be possible to add TypeScript typings into this project or to @types/socket.io-file-client to have autocomplete and type checking?

@rico345100 I added a PR :)

Sorry for the late reply, I was quite busy and totally forget about this. I just checked your PR and everything is ok, except you replaced the anonymous functions with arrow functions, which will break old javascript compatibility. This would be okay for the modern JS developers who using web bundlers or transpilers, however, this module was designed to support the classic way to load script, with

Sorry for the late reply, I was quite busy and totally forget about this. I just checked your PR and everything is ok, except you replaced the anonymous functions with arrow functions, which will break old javascript compatibility. This would be okay for the modern JS developers who using web bundlers or transpilers, however, this module was designed to support the classic way to load script, with

I reverted the change in a new PR since I deleted the other branch.

I reverted the change in a new PR since I deleted the other branch.


Typo

URL: https://docs.rust-embedded.org/discovery/microbit/04-meet-your-hardware/terminology.html
Wrong: "However"
Correct: "How ever"

Thank for the careful read. The correct usage of "however" vs "how ever" is complicated. However, based on my research both "however you want'  and "how ever you want" are acceptable English, with the former preferred. Here's one link: https://ludwig.guru/s/however+you+want .

Cool, I'm spanish... Good to know and improve my level.
Good day


Kitsu auto tracking using Tokyo Ghoul

Steps to reproduce

Turn on auto tracking for kitsu

Expected behavior
Not doing anything or choosing the correct title
Actual behavior
It instead tracks Tokyo Ghoul and doesn't allow you to manually change it
Crash logs
No response
Neko version
2.10.2
Android version
Android 13
Device
Pixel 4a
Other details
No response
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
[X] I have written a short but informative title.
[X] I have tried the troubleshooting guide.
[X] I have updated the app to the newest version Latest.
[X] I have filled out all of the requested information in this form.

I've had the auto track thing happen once, no clue why its always tokyo ghoul.  You can however still click the name in the tracker to search.   Do you happen to know what manga this happened on (if its all for you can you at least provide one i can test with)

I just tried again and managed to reproduce it on soulless duchess. Though it happened quite a lot before, mainly on manwha as far as I could tell. I also couldn't change or remove(there is no little x) auto trackers an hour ago, now it seems to have started to work again so that I can at least change it. Before it would just immediately change it back to Tokyo ghoul.
Get Outlook for Androidhttps://aka.ms/AAb9ysg

From: Carlos @.>
Sent: Tuesday, August 23, 2022 3:05:10 PM
To: CarlosEsco/Neko @.>
Cc: sedorr @.>; Author @.>
Subject: Re: [CarlosEsco/Neko] Kitsu auto tracking using Tokyo Ghoul (Issue #1086)
I've had the auto track thing happen once, no clue why its always tokyo ghoul. You can however still click the name in the tracker to search. Do you happen to know what manga this happened on (if its all for you can you at least provide one i can test with)
—
Reply to this email directly, view it on GitHubhttps://github.com/CarlosEsco/Neko/issues/1086#issuecomment-1224047101, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIK5U2SJTVOXTO6SRI3NPJDV2TEANANCNFSM57K627HQ.
You are receiving this because you authored the thread.Message ID: @.***>

I just tried again and managed to reproduce it on soulless duchess and.SSS-Class Suicide Hunter. Though it happened quite a lot before, mainly on manwha as far as I could tell. I also couldn't change or remove(there is no little x) auto trackers an hour ago, now it seems to have started to work again so that I can at least change it. Before it would just immediately change it back to Tokyo ghoul.

2.10.3


Added support for linter feedback enable/disable and output path for …

Summary by Bito
This PR adds support for enabling/disabling linter feedback and specifying an output path in the CRA tool. It updates configuration properties and scripts to handle new parameters for linter feedback and custom rules. The changes primarily affect the configuration file and PowerShell/shell scripts used to run the CRA.

Unit tests added: False

Estimated effort to review (1-5, lower is better): 2

Code Review Agent Run Status

Limitations and other issues: ❌ Failure - The AI Code Review Agent skipped reviewing this change because it is configured to exclude certain pull requests based on the source/target branch or the pull request status. You can change the settings here, or contact the agent instance creator at<EMAIL_ADDRESS>

/review

AI Code Review is in progress (usually takes <3 minutes unless it's a very large PR).

Code Review Agent Run Status

Limitations and other issues: ❌ Failure - The AI Code Review Agent skipped reviewing this change because it is configured to exclude certain pull requests based on the source/target branch or the pull request status. You can change the settings here, or contact the agent instance creator at<EMAIL_ADDRESS>

Code Review Agent Run Status

Limitations and other issues: ❌ Failure - The AI Code Review Agent skipped reviewing this change because it is configured to exclude certain pull requests based on the source/target branch or the pull request status. You can change the settings here, or contact the agent instance creator at<EMAIL_ADDRESS>


Convert swr to react query

What does this pull request do? Explain your changes. (required)

Specific updates (required)

-

How did you test each of these updates (required)

Does this pull request close any open issues?

Screenshots (optional):

Checklist:

[ ] I have read the CONTRIBUTING document.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have added tests to cover my changes.

@emilianoyaryura looks like this line is breaking the build.

@emilianoyaryura based on our sprint check in:

[ ] revert back to radio buttons
[ ] default to Active state

@emilianoyaryura is this ready to merge once you fix the build?

@emilianoyaryura I noticed when you navigate from the home page to the streams page, the streams page is displaying the results from the home page (only five). Only when you refresh does displays the correct amount (20). Can you look into this?


[ChatLlama] Train Actor with llama-7b model Error initializing torch.distributed using env:// rendezvous:

When I train actor model with llama-7b, I got this:
Current device used :cuda
local_rank: -1 world_size: -1
Traceback (most recent call last):
File "artifacts/main.py", line 50, in
actor_trainer = ActorTrainer(config.actor)
File "/home/zhoux/anaconda3/envs/py38/lib/python3.8/site-packages/chatllama/rlhf/actor.py", line 313, in init
self.actor = ActorModel(config)
File "/home/zhoux/anaconda3/envs/py38/lib/python3.8/site-packages/chatllama/rlhf/actor.py", line 57, in init
local_rank, world_size = setup_model_parallel()
File "/home/zhoux/anaconda3/envs/py38/lib/python3.8/site-packages/chatllama/llama_model.py", line 551, in setup_model_parallel
torch.distributed.init_process_group("nccl")
File "/home/zhoux/anaconda3/envs/py38/lib/python3.8/site-packages/torch/distributed/distributed_c10d.py", line 888, in init_process_group
store, rank, world_size = next(rendezvous_iterator)
File "/home/zhoux/anaconda3/envs/py38/lib/python3.8/site-packages/torch/distributed/rendezvous.py", line 235, in _env_rendezvous_handler
rank = int(_get_env_or_raise("RANK"))
File "/home/zhoux/anaconda3/envs/py38/lib/python3.8/site-packages/torch/distributed/rendezvous.py", line 220, in _get_env_or_raise
raise _env_error(env_var)
ValueError: Error initializing torch.distributed using env:// rendezvous: environment variable RANK expected, but not set
my config.yaml is as below:
trainer_config:
learning rates
actor_lr: 0.00001
critic_lr: 0.00001
PPO Hyperparameters
actor_eps_clip: 0.2
critic_eps_clip: 0.2
beta_s: 0.02
path to examples to be sampled (training dataset) see rlhf_dataset.json
examples_path: "./datasets/rlhf_training_data.json"
number of episodes and generation performed for each episode
in the train() method
num_episodes: 5
max_timesteps: 1
number of timesteps after which the learn() method is called
(to update the weights)
update_timesteps: 1
number of example sampled at each timestep
num_examples: 8
batch and epochs for the training
batch_size: 1
epochs: 1
number of learning steps (i.e. learn()) after which a checkpoint is saved
checkpoint_steps: 5
checkpoint_name: null
actor_config:
model: "llama-7B"
model_folder: "/home/zhoux/models/actor_model"
tokenizer_path: "/home/zhoux/models/actor_tokenizer"
train_dataset_path: "./datasets/actor_training_data.json"
validation_dataset_path: null
froze model embedding during training
froze_embeddings: True
use fairscale layers to build the model instead of vanilla pytorch
use_fairscale: False
max sequence length for the actor (i.e. prompt + completion) it depends on
the model used.
max_sequence_length: 1500
max tokens generated by the actor (completion only)
max_tokens: 2048
minimum number of tokens generated by the actor
min_tokens: 100
additional prompt tokens to be used for template or as safety
additonal_prompt_tokens: 20
temperature for the actor
temperature: 0.5
batch_size: 1
number iteration after print
iteration_per_print: 1
lr: 0.000009
epochs: 2
number of backpropagation after saving the checkpoints
checkpoint_steps:<PHONE_NUMBER>0
number of checkpoints to keep while removing the older
(keep memory consumption of checkpoints reasonable)
n_checkpoints_to_keep: 5
here specify the name of the actor checkpoint from which resume
during actor training. If null load the last one.
checkpoint_name: null
deepspeed settings
deepspeed_enable: False
deepspeed_config_path: "./artifacts/config/ds_config.json"
accelerate settings
accelerate_enable: False

Hi @balcklive, Thanks for reaching out!
When starting a distributed training, the instances need to have the RANK environment variable set. It seems to be missing in your setup! If you are using llama 7b, you will need at least more than one GPU, in which case it would be recommended to configure your setup and config.yaml for distributed training (DeepSpeed's, Accelerate). If you choose llama as your model, the method to initialise the process group will always be called, because it's expecting at least more than one GPU. We know that at the moment this type of training requires a bit of experience and involvement from whoever is using the repo, and would like to improve this experience to make things smoother.
To remove the error when using a single GPU you can just comment the line 58 in actor.py
local_rank, world_size = setup_model_parallel()
We are currently working on having some flag in the config.yaml to manage this type of behaviour.

OK, thank you for your reply, I will close this issue with your answer.
Now I changed a machine with 8 GPUs, when I train this:
torchrun --nproc_per_node 8 artifacts/main.py artifacts/config/config.yaml --type REWARD
It can normaly run, but only one GPU is used.
when I train this
torchrun --nproc_per_node 8 artifacts/main.py artifacts/config/config.yaml --type ACTOR
I still got the this error:
AssertionError: Loading a checkpoint for MP=0 but world size is 8
Traceback (most recent call last):
File "artifacts/main.py", line 50, in
actor_trainer = ActorTrainer(config.actor)
File "/home/ubuntu/.local/lib/python3.8/site-packages/chatllama/rlhf/actor.py", line 314, in init
self.actor = ActorModel(config)
File "/home/ubuntu/.local/lib/python3.8/site-packages/chatllama/rlhf/actor.py", line 61, in init
self.model, self.tokenizer = load_model(
File "/home/ubuntu/.local/lib/python3.8/site-packages/chatllama/llama_model.py", line 625, in load_model
checkpoint, params = load_checkpoints(ckpt_dir, local_rank, world_size)
File "/home/ubuntu/.local/lib/python3.8/site-packages/chatllama/llama_model.py", line 603, in load_checkpoints
assert world_size == len(checkpoints), (
I also tried accelerator and deepspeed, it got the same result.
Is there any way that I can run with mutiGPUs easily?

"I still got the this error:
AssertionError: Loading a checkpoint for MP=0 but world size is 8"
Me,too. Have you make it correct?


[FIX] Setting use_compression on resampling wfs

Addresses #878 partially

I'll go ahead given the low risk of merging and the high interest of releasing today.


New release 0.8.1 breaks use of different PagerDuty API host

Describe the bug
The new release 0.8.1 that deprecates the proxy configuration in favor of using a backend plugin to make calls to the PagerDuty REST API does not offer the possibility to change the server base URL. Calls to the european server https://api.eu.pagerduty.com are not possible anymore.
Expected behavior
The possibility in the configuration to change the API server.

Thanks for reporting this @pcgqueiroz.
While the plugin continues to work it introduces additional latency if your PagerDuty instance is running in Europe for sure. I'll look into this with high priority and add support for an override like we already have for the events url.

@pcgqueiroz This should be fixed now. Please upgrade to the latest version of the packages and follow the docs on how to configure/override the base REST API url.
latest versions

Frontend (0.9.2)
Backend (0.4.3)
Common (0.1.1)