测试用例跑不下去

Running test : API.get_douyin_profile_liked_videos()
Traceback (most recent call last):
File "D:\PycharmProjects\pythonProject\venv\lib\site-packages\tenacity_asyncio.py", line 51, in call
result = await fn(*args, **kwargs)
File "D:\PycharmProjects\pythonProject\venv\lib\site-packages\tikhub\api.py", line 294, in get_douyin_profile_liked_videos
aweme_list.extend(response.get('aweme_list'))
TypeError: 'NoneType' object is not iterable
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "D:\PycharmProjects\pythonProject\TikTok\douyin\Main.py", line 82, in
asyncio.run(async_test())
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 642, in run_until_complete
return future.result()
File "D:\PycharmProjects\pythonProject\TikTok\douyin\Main.py", line 68, in async_test
aweme_list = await api.get_douyin_profile_liked_videos(douyin_user_url, 20)
File "D:\PycharmProjects\pythonProject\venv\lib\site-packages\tenacity_asyncio.py", line 86, in async_wrapped
return await fn(*args, **kwargs)
File "D:\PycharmProjects\pythonProject\venv\lib\site-packages\tenacity_asyncio.py", line 48, in call
do = self.iter(retry_state=retry_state)
File "D:\PycharmProjects\pythonProject\venv\lib\site-packages\tenacity_init_.py", line 363, in iter
raise retry_exc from fut.exception()
tenacity.RetryError: RetryError[<Future at 0x1ada879d8e0 state=finished raised TypeError>]

由于服务器现在不是很稳定导致的，已经在着手修复了。


Tidy up code before publishing!

CodeClimate is not loving this repo right now... https://codeclimate.com/github/nelsonic/learn-hapi

We need to tidy up before re-publishing the tutorial!

I don't think its possible to make code climate happy... and... its seriously annoying how long it takes them to sync with the latest commit! :disappointed:


EOFError: end of file reached on groups API

I am running into this error when calling the groups API. The request is make with a private token for a self hosted client. I'd appreciate if you can help me with it or point me in the right direction.
EOFError: end of file reached
from /usr/local/lib/ruby/2.7.0/net/protocol.rb:225:in `rbuf_fill'

Calling the API endpoint via curl returns an empty list ([]). Could this be an issue with handling an edge case of 0 groups?


Dayjs locales don't work

Months are not translating in DatePicker and Calendar.
Need to turn on Locales for DatePicker and Calendar.

@SvyatovetsD, if you are talking about month/year selector. I think that project has been generated with the previous generator. Now generator doesn't generate a header with a month/year selector.

@HegelPro Could you please check the attached project. It should be using the latests versions, but from the screenshot it seems that it doesn't.

Need to add dayjs locale to the generated project:
import "dayjs/locale/ru";
Now backend doesn't add info about locales to projectModel.json(exist the issue for this). Locales for dayjs aren't added automatically during frontend generating, because don't have info for it in projectModel.json.

For test locales in Calendar, you need to import redefined for dayjs Calendar component from @haulmont/jmix-react-antd package.
import {Calendar} from "@haulmont/jmix-react-antd";


@DedicatedServerOnly and @ClientOnly remove entire class when applied to method member

I noticed the new features added via commit 0678cdffae455be758b8a8617f8327974410e753, deprecating the @Environment annotation and replacing it with @DedicatedServerOnly and @ClientOnly.
In some test code I've been poking with, I had two methods that I updated to use the new code, but during startup my mixin that uses the class threw a ClassNotFoundException during startup.
Here's a simplified example:
class ServerObserver {
  @DedicatedServerOnly  // replacing @Environment(EnvType.SERVER)
  public void is_dedicated_server_environment() {}
  @ClientOnly  // replacing @Environment(EnvType.CLIENT)
  public void is_client_environment() {}
}

I can verify that it only failed when applied against a method by converting the example to fields.  This loaded fine:
class ServerObserver {
  @DedicatedServerOnly
  public boolean is_dedicated_server_environment = true;
  @ClientOnly
  public boolean is_client_environment = true;
}

I believe somehow the QuiltEnvironmentAnnotationVisitor is marking the whole class for removal when the annotation is applied against a method, but I have yet to determine why that would be happening.

Erm, it's also possible that it's crashing while trying to remove methods - as opposed to intentionally stripping the class. In particular 0.17.5 actually had a bug where the lambda stripping functionality always crashed when it tried to apply - so if you're still using 0.17.5 can you try updating to 0.17.6-beta.1?

I just tried updating to 0.17.6-beta.1 with the same results.  Just to verify, updating gradle/libs.versions.toml and rebuilding is all that's required, correct?  The logs still show 0.17.5 so maybe I skipped a step.
Anyway, here's the log: https://mclo.gs/X5Zbzey

oops wrong button

I just tried updating to 0.17.6-beta.1 with the same results.  Just to verify, updating gradle/libs.versions.toml and rebuilding is all that's required, correct?  The logs still show 0.17.5 so maybe I skipped a step.
Anyway, here's the log: https://mclo.gs/X5Zbzey

Thanks! After looking at the mixin error it looks like it might have logged an error when it tried to load the class - so can you upload a log instead sorry?

Erm, if you're based off the template repository then yes, updatuing gradle/libs.versions.toml, rebuilding, and potentially refreshing the project in your IDE (I only know if this is necessary in eclipse sorry) should be enough to change the quilt-loader version.

Sorry if I wasn't clear, what I posted was the log from the client startup.  There wasn't a proper crash report generated.
The line [11:25:24] [main/WARN] (Quilt Loader/Mixin) Error loading class: net/jandastroy/testmod/ServerObserver (java.lang.IllegalArgumentException: Unsupported api 0) suggests to me that the entire class was just refused to load, and it spirals out of control from there.
Going a bit further with my testing (juggling kids sick at home as well lol) I removed the @DedicatedServerOnly method and it boots fine on the client but experiences the same crash on the server (spiraling out of control after Unsupported api 0).
Server log: https://mclo.gs/r0YULKx

Oh, I'm very sorry: I should have noticed that! (java.lang.IllegalArgumentException: Unsupported api 0) was in the first log - and that's the exact bug that was fixed in 0.17.6-beta.1 - so if you can figure out how to update your loader version then that will fix the problem.

Okay, latest test ran with 0.17.6-beta.1 properly.  Unfortunately, still the same error when a method is flagged for the opposite side.
Server Log - https://mclo.gs/Zi1pNgR
I made a git clone of quilt-loader to see if I can look deeper at why it only fails with methods but not fields overwritten, but I haven't quite figured out how to run a local edit yet.

It turns out I didn't actually fix this bug in 0.17.6-beta.1, but instead 0.17.6-beta.2. I should have paid closer attention to what the actual latest version was, sorry :/

Confirmed fixed in 0.17.6-beta.2.  Thanks for the help sorting that out, glad to see it working!


Login Credential is made

New Feature

Login Credential

Describe the changes you've made
Added an Authentication Process
Describe if there is any unusual behavior of my code(Write NA if there isn't)
NA
Checklist:

[x] My code follows the style guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented on my code, particularly in hard-to-understand areas.
[x] I have made corresponding changes to the documentation.
[x] New and existing unit tests pass locally with my changes.

Screenshots

Please add this feature @urvashi-code1255

@diptendunandi Resolve conflicts first

Hey @diptendunandi Any updates on this PR?

Hey @diptendunandi Any updates on this PR?

I will do it on Wednesday.  Sorry for the inconvenience

I will do it on Wednesday. Sorry for the inconvenience

Hey @diptendunandi Any updates on this PR?

Hey, @diptendunandi Any updates?

After 17 th March for sure. Due to exam I can not focus in it. Sorry for that

@diptendunandi ?


Defender threat hunt .csv file failing to parse in WDAC wizard - Not Date format Issue

Hello, I'm receiving the error message "The wizard could not parse any Advanced Hunting events from the CSV file(s)" when trying to parse mde advanced hunting events to policy in the wizard.
I see there is a similar issue which is caused by the incorrect date format when exporting from Advanced Hunting. I though this was the issue originally as the date format is different. However I have run the PS script FixTimestam.ps1 to set the time format correctly but I still get the same error and no events are parsed.
I'm using the latest version of the wizard <IP_ADDRESS>.  I've uploaded a sample file that is failing.
AH-Fixed.csv
Any idea why this is failing to import?
Thanks for your help.

Hello. There is only one event in this csv, and it is a signature event (SigningInformation a.k.a 3089). Without a corresponding audit or block event, the Wizard is correctly not finding any events to display.
Can you share an example with more events?

Hello, thanks getting back to me.
I've had another look at the file and extracted a group of audit events and have attached the sample file. Are these the correct events?
AHQ-Fixed-Audit.csv

Hi @carlitog, I found the issue with the events. Your policy ID (Apr 23, 2024 10:00:00 AM) contains a comma, and is interestingly not wrapped in quotes like I would expect ("Apr 23, 2024 10:00:00 AM"). The parsing engine splits this into 2 distinct fields causing more than the expected number of fields causing parsing failure.
There are 2 temp workarounds you can follow:

Remove the comma in the policy ID
Add quotes around the policy ID containing the comma

I have never seen examples where fields with commas are not present, so I think I will defer a code change here.

Thank you for the explanation.
It was the date issue all along - I just didn't realize there are 2 date columns in the extract. Only one of them had been updated to the correct format.
I have now updated both fields to the correct format and the wizard now recognizes the csv.
Thanks!


updated nav and edited ps overview page. removed link to release note…

…s as well as support page  and added a submenu instead that will show a dropdown to submit a ticket or go to community forums

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):
Types of changes

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

Checklist:

[ ] I have signed the Adobe Open Source CLA.
[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

Looks good to me.

👍


zabbixapi version

I think we need to support zabbixapi version 2.4.x for zabbix 2.4 with ruby 1.9.3, and version 3 with ruby 2 for zabbix 3.*. Any remarks?

Ruby 1.9 and Zabbix 2.4 are both EOL at this point. There is Zabbix 2.2 LTS which we should probably still support until it drops later this year, but that could be maintained on the zabbixapi 2.2.x branch.
Also mentioned in #64

json 2.0 was merged into master and a 3.0.x version is being cut for zabbixapi


intermitent telemetry test failure

it looks like there are a couple of telemetry tests that fail from time to time
 ❯ src/common/telemetry.test.ts (3) 1486ms
   × telemetry calls fetch with event body 1081ms
   ✓ telemetry does not submit events if telemetry is disabled
   × telemetry throws if event is submitted after kill 393ms

at a first pass, it looks like there may be some parallelism/concurrency occurring or some cleaning up that is not occurring, causing 1 of the telemetry calls to be counted under one test, and therefore also be missing under the original.
 FAIL  src/common/telemetry.test.ts > telemetry calls fetch with event body
AssertionError: expected "spy" to be called 1 times, but got 0 times
 ❯ src/common/telemetry.test.ts:51:20
     49|   await telemetry.kill();
     50|
     51|   expect(fetchSpy).toHaveBeenCalledTimes(1);
       |                    ^
     52|
     53|   const fetchUrl = fetchSpy.mock.calls[0][0];

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/3]⎯

 FAIL  src/common/telemetry.test.ts > telemetry throws if event is submitted after kill
AssertionError: expected "spy" to be called 5 times, but got 6 times
 ❯ src/common/telemetry.test.ts:99:20
     97|   await telemetry.kill();
     98|
     99|   expect(fetchSpy).toHaveBeenCalledTimes(5);
       |                    ^
    100|
    101|   telemetry.record({

Yes, I've seen this in our Windows CI runs. Are you seeing this locally, and if so on what OS?

Merged an attempted fix here (https://github.com/ponder-sh/ponder/commit/02b43eb7af9d89bd63f7682dc3d9df57faf7e37a) - will revisit if there are still failures.

still seeing this issue @0xOlias https://github.com/ponder-sh/ponder/actions/runs/10871242113/job/30164818814?pr=1085#step:6:63 i just checked the git log. this pr has already been rebased on top of that commit


[BUG] Misuse of technical IDs when creating entities

Is this a possible security vulnerability?

[X] This is NOT a possible security vulnerability

Describe the bug
Implementations of operations that create new entities, for example in PolarisAdminService, must always generate a new technical ID and not use an externally provided one.
Many places in the code base so something like this:
  public PolarisEntity createCatalog(PolarisEntity entity) {
---
    long id =
        entity.getId() <= 0
            ? metaStoreManager.generateNewEntityId(getCurrentPolarisContext()).getId()
            : entity.getId();
...
    PolarisEntity polarisEntity =
        new PolarisEntity.Builder(entity)
            .setId(id)
            .setCreateTimestamp(System.currentTimeMillis())
            .build();
...

The above pattern is error prone and can easily lead to issues like ID collisions later on.
Such implementation must really ensure that

the passed in ID is either not present or a not-present value (0)
the ID of the new entity must always be generated

@snazy to be honest, I don't see the use case to use an external ID. I agree that the ID should be always generated:
.setId(metaStoreManager.generateNewEntityId(getCurrentPolarisContext()).getId())

and ignore the ID coming from the "new" entitiy.


gui: add support for tapminiscript on bitbox02

This PR is build on top of #1357, with few adds:

get the version from bitbox device
check the version for taproot support
copy tap_script_signs & tap_key_sig if present in the pruned psbt after signature

Tested spending by internal key & taptree w/ differents setups

Note: taproot-policies have been merged in bitbox-api but they do not yet released a new crate version.
@benma do you plan to release a new version of the crate or we should release on top of your  GH master branch?

Note: taproot-policies have been merged in bitbox-api but they do not yet released a new crate version.
@benma do you plan to release a new version of the crate or we should release on top of your GH master branch?

I published https://crates.io/crates/bitbox-api v0.6.0 which includes the necessary changes.

rebased on master, so now uses async-hwi 0.24.0

@edouardparis did you also test using multiple inputs but using same xpub in both primary and recovery to see if the filtering works? The BitBox only signs for one keypath per input, and the one it picks from the PSBT is arbitary so it could go wrong if for one input it signs for the primary and for the second input it signs for the secondary keypath.

Thanks for the reminder, I just tested it with the two inputs and the decaying multisig that has xpub in both paths and it works as expected. The PR also do not touch the previous logic of removing misleading bip32 derivation.


Where's the SRC...?

I am trying to optimize my solution with this library. I am finding BulkImportAsync is taking a ridiculous amount of memory (2GB memory in utilization when processing just 16MB of data) and I want to step through to see whether my code needs to change, or whether I could contribute optimizations to CosmosDB.BulkExecutor. All I can find is this repo on github though, which just includes examples. Please help!

Presently, we do not plan to open source the BulkExecutor library as it contains "under the hood" implementation details. In addition, while the library does perform pre-processing steps prior to ingestion, it should not be utilizing 2GB of memory for 16MB of documents. Feel free to reach out to<EMAIL_ADDRESS>and I can help walk through your setup.

https://github.com/Azure/azure-cosmos-dotnet-v2/issues/675


Fixes Issue #4024, unable to open private tab using keyboard shortcut from a PDF tab

@bsclifton
Fix brave/browser-laptop#4024
Test Plan:

Build  and load the pdf extension
Run webpack: npm run watch
Run Brave: npm run start
Open any pdf: http://unec.edu.az/application/uploads/2014/12/pdf-sample.pdf
To open a new private tab: Press Ctrl + Shift + P
Result: Launches a new private tab.

Reviewer Checklist:

[ ] Request a security/privacy review as needed if one was not already requested.

Tests

[ ] Adequate test coverage exists to prevent regressions
[ ] Tests should be independent and work correctly when run individually or as a suite ref
[ ] New files have MPL2 license header

@diracdeltas were you able to check this one out?


Homework 2

created java maven package for StudentUtil
created java maven package for Sentiment Analyzer
created java maven package for API Parser

drift Video Link: https://video.drift.com/v/abzaMHZhEJtMQxLhezuPx0RrEEtL0t9VjtayRAxD2YTNg/

Metric
Value

alert_status
:white_check_mark: OK

bugs
0

code_smells
27

reliability_rating
A (0 Bugs)Note: A being best, E being worst

security_rating
A (0 Vulnerabilities)Note: A being best, E being worst

vulnerabilities
0


Update specify label names

Hi, I updated specify labels of kubectl get commands.
Please review it if you would like.

Thanks for your contribution. It has been addressed here: https://github.com/kubevault/docs/pull/176

Thanks for your contribution. It has been addressed here: https://github.com/kubevault/docs/pull/176


Question: how to make route parameter required?

Hi!
I want to create a route like this:
path: "/article/:slug"
Where the slug is required. My directory structure is:
/pages
---/article
------/_slug.vue

and the nuxt generates:
path: "/article/:slug?"
For every situation like this I create a workaround with index.vue inside pages/article with content:
<script>
  export default {
    fetch ({error}) {
      error({statusCode: 404})
    }
  }
</script>

Could I do this easier without creating error index?
And how about a path like this?
/search/:page/:query
Thanks!

Hi @awronski,
You can use validate props in your articles/_slug.vue file to check if route.params.slug exists.
https://nuxtjs.org/api/pages-validate
About /search/:page/:query:
/pages
---/search
------/_page
---------/_query.vue

@alexchopin
I know about a validation. But I do not want to write extra code, this is what nuxt is all about.
Could we add a path syntax for required parameters, like '@'.
Now
/pages/search/_page/_query.vue generates path: "/search/:page?/:query?"
New, required params:
/pages/search/<EMAIL_ADDRESS>would generate path: "/search/:page/:query"
As a extra thing new directory convention would show what params are required without reading the source code.

HI @awronski
Actually the _ does not make it always optional, futhermore, the @ is not authorized as a filename.
The validate method does the job.
Keep in mind that you can extendRoutes  to update the regexp associated to each route :+1:

@Atinux
So how is it working? When _ is making optional and when is not.
For me the generated route.js is always optional (if there is no index file)
Yes, I know I can extended routes I am using it right now. I just wan to make a nuxt cleaner.
I know that you have more important things on your mind but generating flexible routes is really, really useful. If I make a PR would you accept it for this functionality? I can set any character as a mark as you like :)


Installing addons using hatch breaks Odoo installation

Not sure is this because of #12 because I have applied some patches from there however the issue still persists.
Steps to reproduce
Build image
Install Odoo from source in venv using git

Dockerfile
pyproject.toml

Build is completed successfully with no issues.
Run container
Run container using docker-compose.yml
Expected behaviour

Postgres is up and running
Odoo is up and running

Current behaviour

Postgres is up and running
Odoo fails with error:

db-1   | 2024-06-04 20:53:01.438 UTC [59] LOG:  database system was shut down at 2024-06-04 20:53:01 UTC
db-1   | 2024-06-04 20:53:01.440 UTC [1] LOG:  database system is ready to accept connections
web-1  | Traceback (most recent call last):
web-1  |   File "/opt/odoo-venv/bin/odoo", line 8, in <module>
web-1  |     odoo.cli.main()
web-1  | AttributeError: module 'odoo' has no attribute 'cli'
web-1 exited with code 1

Notes
Same image runs fine if extra addons are not installed:
Steps to reproduce

Remove the part that installs third party addons using hatch-odoo
Rebuild the image
Run container

Result

Postgres is runnig
Odoo is running, all functions are working fine

Here are all the files used for build.

I released a fix for #12. Can you try again using https://github.com/acsone/hatch-odoo/blob/main/tests/data/project6/pyproject.toml as a template for your pyproject.toml?
If it persists, can you show me the result of python -c "import odoo; print(odoo.addons.__path__)".

Thank you very much @sbidoul !
Actually looks like it's not a hatch issue because after the update it's still the same error.
Here is the output if the command you mentioned:
0.583 AttributeError: module 'odoo' has no attribute 'addons'

Can you print odoo.__path__ and sys.path?
You may have more than one odoo directory in sys.path that contain a __init__.py.

Here is the output:
#25 [web 21/21] RUN python -c "import sys,odoo; print(odoo.__path__); print(sys.path)"
#25 0.152 + python -c 'import sys,odoo; print(odoo.__path__); print(sys.path)'
#25 0.245 _NamespacePath(['/opt/odoo-venv/lib/python3.10/site-packages/odoo', '/opt/extra-addons/build/__editable_odoo_addons__/odoo'])
#25 0.245 ['', '/usr/local/lib/python310.zip', '/usr/local/lib/python3.10', '/usr/local/lib/python3.10/lib-dynload', '/opt/odoo-venv/lib/python3.10/site-packages', '/opt/extra-addons/build/__editable_odoo_addons__']

Look like /opt/extra-addons/build/__editable_odoo_addons__/odoo is being added when third party addons are installed

Hm you have odoo in site-packages although you installed odoo in editable mode. That's not normal. What's in there?

Yup, really weird...
26 0.114 + ls -lha /opt/odoo-venv/lib/python3.10/site-packages/odoo
#26 0.139 total 12K
#26 0.139 drwxr-xr-x 3 root root 4.0K Jun  5 17:15 .
#26 0.139 drwxr-xr-x 1 root root 4.0K Jun  5 17:15 ..
#26 0.139 drwxr-xr-x 3 root root 4.0K Jun  5 17:15 addons

Wow!
#26 0.225 + ls -lha /opt/odoo-venv/lib/python3.10/site-packages/odoo/addons
#26 0.256 total 12K
#26 0.256 drwxr-xr-x  3 root root 4.0K Jun  5 17:15 .
#26 0.256 drwxr-xr-x  3 root root 4.0K Jun  5 17:15 ..
#26 0.256 drwxr-xr-x 15 root root 4.0K Jun  5 17:15 queue_job

That's normal. I suppose queue_job is a dependency (the only one?) of the addons you installed with hatch-odoo.
The question is: where did your Odoo install go?

Ok, I found the cause. You are hitting an Odoo / setuptools compatibility issue.
If you transform your odoo installation command to  pip install --no-cache-dir -e /opt/odoo --config-setting=editable-mode=compat, it works. https://github.com/odoo/odoo/pull/44001

Great! Thank you very much @sbidoul 👍
Everything is working as expected now. However this should be definitely solved at the Odoo level.


Replace chalk with the more popular TypeScript tests

chalk tests broke recently with no change on BCI side

https://github.com/SUSE/BCI-tests/actions/runs/6658547337/job/18095692767
the failure is gone again


Cookies

Add a utility for cookies.
Also return the return value for accessDenied to allow hanging a route.

:+1: nice! Most likely needs the cookie domain set explicitly as mentioned in the comments.


Base update_os on availability of package managers instead on os name

It would save a lot of if statements.

Something like this:
function requirement_os {
    # checking whether supported operating system (based on the available package manager) is installed
    # modern rhel based distributions
    if [ "$(command -v dnf)" ]; then
        OS='rhel-modern'
    # old rhel based distributions
    elif [ "$(command -v yum)" ]; then
        OS='rhel-old'
    # debian based distributions
    elif [ "$(command -v apt-get)" ]; then
        OS='debian'
    elif [ "$(command -v apk)" ]; then
        OS='alpine'
    else
        error_os_not_supported
    fi
}

In addition, the script needs to know the service manager as well:
function requirement_os {
    # check whether supported operating system is installed and populate relevant variables
    # gather package manager
    # modern rhel based distributions
    if [ "$(command -v dnf)" ]; then
        PACKAGE_MANAGER='dnf'
        OS='rhel-modern'
    # old rhel based distributions
    elif [ "$(command -v yum)" ]; then
        PACKAGE_MANAGER='yum'
        OS='rhel-old'
    # debian based distributions
    elif [ "$(command -v apt-get)" ]; then
        PACKAGE_MANAGER='apt-get'
        OS='debian'
    # alpine based distributions
    elif [ "$(command -v apk)" ]; then
        PACKAGE_MANAGER='apk'
        OS='alpine'
    else
        error_os_not_supported
    fi

    # gather service manager
    # modern systemctl
    if [ "$(command -v systemctl)" ]; then
        SERVICE_MANAGER='systemctl'
    # old service
    elif [ "$(command -v service)" ]; then
        SERVICE_MANAGER='service'
    # alpine based distributions
    elif [ "$(command -v rc-service)" ]; then
        SERVICE_MANAGER='openrc'
    else
        error_os_not_supported
    fi
}

Fixed in https://github.com/nozel-org/serverbot/commit/e2e9869e49e496f9fab4d318067d947cbab31df8


Component/snackbar

Snackbar component lifted from NGD. Same as VPM and Model-Manager.
closes #57

What are your thoughts about including snackbar context in here as well as I mentioned in https://github.com/IPG-Automotive-UK/react-ui/issues/57? It would provide an example and would also be exactly what we would use in each of our apps where we only want to create one snackbar and then call it from multiple places. At the moment I think we have exactly the same Snackbar context used in VPM & MM.

Component itself looks fine.


Ensuring 1-to-1 match of seal closing method with bundles

This disallows assignments to the same UTXO with conflicting closing methods (tapret+opret) since one type of them will be lost. However this fixes a potential attack where opret and tapret anchors are both present committing to different bundles inside the same witness transaction

Closing in favor of #230 #231 #232 #233


A somewhat unrelated question.一个稍显无关的问题

Your work is excellent, and I've learned a lot from you.
The quality of your dataset is also very high, and I've accomplished a lot based on your dataset. Thank you ：)
I'd like to ask, for SAR images in SAR2Opt dataset, if I want to perform denoising, edge detection, texture extraction, and so on, are there any recommended methods? If so, could you please let me know?

Glad to hear our work is useful to your research.
For SAR image denoising, if utilized in pre-processing, we usually use some simple traditional image processing methods, such as mean-value filter, median filter etc. The edge and texture detection can be handled with Sobel operator or Laplacian operator.
In addition, there have been many deep learning-based methods for SAR image processing, especially diffusion-based methods. But I haven't tried these algorithms yet... : p

Glad to hear our work is useful to your research.
For SAR image denoising, if utilized in pre-processing, we usually use some simple traditional image processing methods, such as mean-value filter, median filter etc. The edge and texture detection can be handled with Sobel operator or Laplacian operator.
In addition, there have been many deep learning-based methods for SAR image processing, especially diffusion-based methods. But I haven't tried these algorithms yet... : p

Thank you for your reply! Your advice is useful and I will consider it.
By the way, Are you still studying on this? And I feel a little confused about the training of GAN. Can you share some useful hyperparameter you thought, or you have shown them in this repo code :>?
Best wishes :) Happy everyday and live smooth!

Yes u r right, the convergence of GAN model is truly a bit difficult.  In the comparison, we followed the most of the parameter settings of official implementations to maintain the generation quality in the comparison. You can check the settings in '../option/train_options.py' or the parsers in 'main.py'.
And unfortunately, I'm not working on the image translation anymore, instead I'm moving on to Change Detection and Self-supervised Learning in RS images...
Best wishes :)

Yes u r right, the convergence of GAN model is truly a bit difficult. In the comparison, we followed the most of the parameter settings of official implementations to maintain the generation quality in the comparison. You can check the settings in '../option/train_options.py' or the parsers in 'main.py'.
And unfortunately, I'm not working on the image translation anymore, instead I'm moving on to Change Detection and Self-supervised Learning in RS images... Best wishes :)

Thank you for your replying! Hope you will make more achievements!
Best wishes! :)


systemd: remote journal requires gnutls to accept --trust

Description of changes
The systemd-journal-gatewayd test fails because of this.
See https://github.com/systemd/systemd/blob/ec0bc263d7d250d4029e8ffe7e3a888c12453331/src/journal-remote/journal-gatewayd.c#L1046-L1062
An alternative would be to either introduce a new option to selectively enable gnutls for those who need it (and for our VM test), but that's also not great in terms of discoverability.
I added a second commit to use LoadCredentials to make the secrets available to the service instead of needing to set file system permissions to give access to the systemd-journal-gateway user. This might also in the future allow us to set DynamicUser = true for this service.

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

urgh I really don't want to link systemd with gnutls. I want upstream to fix the migration to openssl for all component instead.

@arianvp is there already an upstream issue about it? Maybe we can link to here for context.

I just stumbled upon this too. I think we should definitely have an upstream issue about this.

selectively enable gnutls for those who need it (and for our VM test)

I like this. I would not have thought that withRemote would link with gnutls.


Update splendo-prerelease-common

Update origin repo splendo-prerelease-common branch.

@nbransby @michaelprichardson Same here, update for splendo-prerelease-common.


Remove experimental constrain_avoidance from NavigationRegion2D

Removes experimental constrain_avoidance feature from NavigationRegion2D.
This was added in Godot 4.1 with the avoidance rework in an attempt to automate the placement of static avoidance obstacles around NavigationRegion2D.
This feature already had a strong experimental tag so removing it should not come unexpected for users. It clearly told everyone to not use or rely on it for a real project because a lot of its issues where already known back then.
experimental="When enabled, agents are known to get stuck on the navigation polygon corners and edges, especially at a high frame rate. Not recommended for use in production at this stage."
The reason why it was even added is, at that time it looked like some of the issues could be reasonably solved in the future and that the general userbase could manage the limitations better. Both did not happen.
There are multiple reasons why this experimental  feature failed and / or why it should be removed.

Main reason, the feature never worked, it gets agents stuck on the navmesh edges easily.
Attempting to mitigate this would require adding edge margins. Basically to implement a custom version of navmesh baking just for this feature, not at all worth the effort.

Main reason, the feature never worked, navmesh outline order is just too brittle and unreliable.
Because the avoidance pushback was based on the (hand-drawn) navmesh outlines a single wrong interpreted outline caused the entire user world to break. Happened way to often on more complex navmeshes.

Even if the feature worked, it could only work with a single region.
Having more than just a single region is common for nearly all projects but the constrain made it impossible for agents to cross into other regions. So basically any more evolved project had to auto-stop using this feature and / or start to juggle avoidance layers which was horrendous.

Even if the feature worked, it had unscaleable bad performance.
The typical 2D navmesh in user projects is badly optimized and the feature added an obstacle point for every single navmesh vertex. This was just too much, a static avoidance obstacle edge is far more costly than a navmesh edge. Attempting to mitigate this would require adding an edge simplification just for this feature, again, not at all worth the effort.

Even if the feature worked, it only existed in 2D and only on a node with no actual server support.
It also created the wrong user expectations that navmesh and avoidance are connected and violated the separation of concerns between them.

Even if the feature worked, it makes the required refactors for the navmap and the avoidance spaces extra difficult because a region is stuck with both.

Even if the feature worked, it adds a lot of boilerplate code and properties on the NavigationRegion2D for a niche feature.

Thanks!


Skipping brotli tests that are failing in VS.

Filed an issue: https://github.com/dotnet/corefxlab/issues/1611
cc @Vedin, @shiftylogic, @KrzysztofCwalina

@shiftylogic, good to go?


Feature/absolute numbers

@jordi12100 changes, tests passing and also remove component support

Awesome, thanks!


Open Docs and vite in different ports

When I start both of them in a console, they both open in localhost:3000.
I want to have them in different ports by default and that means changing for example de docusaurus port to another one different than 3000.

I want to have them always in the same port, and that means changing for example de docusaurus port to another one different than 3000.

I'm sorry but i don't get it. So do you want to keep both of docusarus and vite run on the same port? Or do you want them to run on different port?

I want to have them always in the same port, and that means changing for example de docusaurus port to another one different than 3000.

I'm sorry but i don't get it. So do you want to keep both of docusarus and vite run on the same port? Or do you want them to run on different port?

Sorry I didn’t explain myself. Different ports of course! 😅

😀 Okay, thanks for the clarity, I have opened the pull request #16 , thank you for the review as this is my first contribution to public repo 🙏🏽


train with other detectrors

hello
as you mentioned in your paper, it is possible to use any detector to train with your model.
how can I do it?
I mean how to train yolo with your method?
thank you

You can refer to how I did for FCOS, and Faster RCNN in this code base and extend it to whichever you want.

thanks
could you please refer me a link to help me?
I dont know how to start.
steps I should go, any usefull link, or any thing usefull?


[SPARK-21915][ML][PySpark] Model 1 and Model 2 ParamMaps Missing

@dongjoon-hyun @HyukjinKwon
Error in PySpark example code:
/examples/src/main/python/ml/estimator_transformer_param_example.py
The original Scala code says
println("Model 2 was fit using parameters: " + model2.parent.extractParamMap)
The parent is lr
There is no method for accessing parent as is done in Scala.
This code has been tested in Python, and returns values consistent with Scala
What changes were proposed in this pull request?
Proposing to call the lr variable instead of model1 or model2
How was this patch tested?
This patch was tested with Spark 2.1.0 comparing the Scala and PySpark results. Pyspark returns nothing at present for those two print lines.
The output for model2 in PySpark should be
{Param(parent='LogisticRegression_4187be538f744d5a9090', name='tol', doc='the convergence tolerance for iterative algorithms (>= 0).'): 1e-06,
Param(parent='LogisticRegression_4187be538f744d5a9090', name='elasticNetParam', doc='the ElasticNet mixing parameter, in range [0, 1]. For alpha = 0, the penalty is an L2 penalty. For alpha = 1, it is an L1 penalty.'): 0.0,
Param(parent='LogisticRegression_4187be538f744d5a9090', name='predictionCol', doc='prediction column name.'): 'prediction',
Param(parent='LogisticRegression_4187be538f744d5a9090', name='featuresCol', doc='features column name.'): 'features',
Param(parent='LogisticRegression_4187be538f744d5a9090', name='labelCol', doc='label column name.'): 'label',
Param(parent='LogisticRegression_4187be538f744d5a9090', name='probabilityCol', doc='Column name for predicted class conditional probabilities. Note: Not all models output well-calibrated probability estimates! These probabilities should be treated as confidences, not precise probabilities.'): 'myProbability',
Param(parent='LogisticRegression_4187be538f744d5a9090', name='rawPredictionCol', doc='raw prediction (a.k.a. confidence) column name.'): 'rawPrediction',
Param(parent='LogisticRegression_4187be538f744d5a9090', name='family', doc='The name of family which is a description of the label distribution to be used in the model. Supported options: auto, binomial, multinomial'): 'auto',
Param(parent='LogisticRegression_4187be538f744d5a9090', name='fitIntercept', doc='whether to fit an intercept term.'): True,
Param(parent='LogisticRegression_4187be538f744d5a9090', name='threshold', doc='Threshold in binary classification prediction, in range [0, 1]. If threshold and thresholds are both set, they must match.e.g. if threshold is p, then thresholds must be equal to [1-p, p].'): 0.55,
Param(parent='LogisticRegression_4187be538f744d5a9090', name='aggregationDepth', doc='suggested depth for treeAggregate (>= 2).'): 2,
Param(parent='LogisticRegression_4187be538f744d5a9090', name='maxIter', doc='max number of iterations (>= 0).'): 30,
Param(parent='LogisticRegression_4187be538f744d5a9090', name='regParam', doc='regularization parameter (>= 0).'): 0.1,
Param(parent='LogisticRegression_4187be538f744d5a9090', name='standardization', doc='whether to standardize the training features before fitting the model.'): True}
Please review http://spark.apache.org/contributing.html before opening a pull request.

Can one of the admins verify this patch?

Test build #3914 has started for PR 19152 at commit a2ccb8a.

Test build #3914 has finished for PR 19152 at commit a2ccb8a.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged to 2.2

@srowen  -- may I close this pull request?

@marktab You should close merged PR. Thanks!


update: Attempt on adding discord webhook logging support to Betterteams [BETA]

Please keep in mind
This is a beta feature so if you happen to find any bugs please report them in the issues tab or the support discord.

What about a bot token option too?


confusing use of cwd

I need some clafification. I am doing the following
Directory
/dir1/dir2/dir3/
├── readme.md
└── file

when preforming tar -cf asset.tar -C /dir1/dir2/dir3 . it will produce:
/asset/
├── readme.md
└── file

however  the following code wit tar
tar.c({cwd: '/dir1/dir2/dir3', file: 'asset.tar'}, ['/dir1/dir2/dir3'], function (err) {
  console.log('done');
});

will produce:
/dir1/dir2/dir3/
├── readme.md
└── file

How do i create an archive without any of the paths?

sorry, just saw my problem. fixed below
tar.c({cwd: '/dir1/dir2/dir3', file: 'asset.tar'}, ['.'], function (err) {
  console.log('done');
});


mul and from optimizations

mul is ~30% faster
from_little_endian / from_big_endian is ~80% faster

before:
test u128_mul      ... bench:     151,032 ns/iter (+/- 32,331)
test u256_from_be  ... bench:          57 ns/iter (+/- 0)
test u256_from_le  ... bench:           51 ns/iter (+/- 1)
test u256_full_mul ... bench:     228,725 ns/iter (+/- 30,183)
test u256_mul      ... bench:     123,390 ns/iter (+/- 32,967)

after:
test u128_mul      ... bench:      98,213 ns/iter (+/- 13,330)
test u256_from_be  ... bench:          13 ns/iter (+/- 0)
test u256_from_le  ... bench:           7 ns/iter (+/- 0)
test u256_full_mul ... bench:     199,849 ns/iter (+/- 19,195)
test u256_mul      ... bench:     105,883 ns/iter (+/- 14,433)

pleasereview @NikVolf / @Vurich

Wow, this is awesome, thanks!

sure, done


Special Light control

I am using a six button steamdeck and have assigned the 1st 3 buttons as below.  Its then auto assigns the remaining 3 buttons as
0% 10% and 30% brightness.  Is it possible to add brightness controls to special_type_data: as 0% 50% and 100% would be far more useful.
Thanks in advance
  special_type: light-control
  special_type_data:
    colors:
      - "#FF0000" # red
      - "#FFFEFA" # white
    color_temp_kelvin:
      - 2096

That's a great suggestion and a should be a simple change. Any one willing to try? 😄

I wish I had the skills to help.

I am using a six button steamdeck and have assigned the 1st 3 buttons as below. Its then auto assigns the remaining 3 buttons as
0% 10% and 30% brightness. Is it possible to add brightness controls to special_type_data: as 0% 50% and 100% would be far more useful.
Thanks in advance

First of all, thank you so much for creating such a useful tool! I am also a user of a "six-button streamdeck," and the discussion on brightness management would be extremely helpful to me.
I'm also curious about the possibility of having a "hold button" option in the future.
Thank you again for your hard work.


How well does uFuzzy support CJK, stopwords, stemmers?

Recently Zola static site generator got the ability to output the search index into a json format that is compatible with Fuse.js because it is a json format I was thinking it would likely also be compatible with uFuzzy.
https://github.com/getzola/zola/pull/2507
https://www.getzola.org/documentation/content/search/#fuse
There is a discussion about adding additional searches to Zola here:
https://github.com/getzola/zola/issues/1849
I am planning to try out any search libraries that look promising that will accept a json based index as input, but ones that support CJK, stopwords, stemmers are a plus!
Currently in the Abridge theme for Zola I support elasticlunr as the default and it handles other languages by loading additional js files for those languages as needed, you can see them all in this directory starting with lunr.languagecode:
https://github.com/Jieiku/abridge/tree/master/static/js

uFuzzy is a clever regexp compiler, not a fulltext search engine. it does not do any kind of processing of the haystack or needle, so any kind of stopword removal and stemming have to be done outside of uFuzzy.
uFuzzy supports CJK by using unicode regexps and supports diacritics by providing a util function to strip them (uFuzzy.latinize()).

Thank you, that very clearly explains what I was wanting to know! Nevertheless your benchmarks and readme page are still very useful and I may just find a use for ufuzzy someplace else in the future, Thanks!


question on FracMinHash comparison with Minimzer+MinHash

Hi Jim,
I need to compare FracMinHash with Minimizer + MinHash to see their Jaccard estimation accuracy. The key step in both is the sketch size for MinHash and FracMinHash: FracMinHash is in the original space (sequence) while Minimizer MinHash is in the minimizer space (much smaller, sampling density is only 1/(2+w), where w is the minimizer window size, so for 3000 bp fragment for example, total number of minimizer kmers is only several hundred). Apparently, minimizer MinHash sketch size can be only several hundred (200-500 in practise in fastANI) while for FracMinHash, since we did not sample, if using the same sketch size 200, there is no way it can be as accurate as Minmizer MinHash, but if we use a larger sketch size, like 1000+ for the original sequence space in FracMinHash, it is then not a fair comparison since minimizer itself is somehow a sketching step like MinHash to extract minimum hash value in a window. That is we are comparing 2 sketching algorithms with just one sketching algorithm. It is very difficult to determine theoretically what is the equivalent sketch size in Minimizer+MinHash all together so that we can use the same size for FracMinHash to compare. I think we need to prove first that the equivalent sketch size in Minimizer+MinHash is bounded by some range then we can use the same sketch size for FracMinHash. Do you have any idea on this topic? Or it is clear that there is a theoretical analysis that one is better than the other if use the same sketch size.
Thank you,
Jianshu

Hi Jianshu,
I believe you're asking about how to exactly compare minimizers vs fracminhash? I think just setting both to the same density should be okay... but they do have different properties. Interesting discussion... I don't have any additional thoughts.
Thanks,
Jim