add zsh completion function

It would be great if you could include this completion function for zsh. There's already one for bash. I've also patched the Makefile to install it into $(datadir)/zsh/site-functions which is typically a directory in which zsh will find it provided that it is named with an initial underscore. Thanks

I've updated the commit to cover changes following the 0.33 release

Thanks!


Forbidden Error !

I just tried few settings in Search-guard. Here some question I have,
searchguard.actionrequestfilter.readonly.allowed_actions: ["indices:data/read/", "monitor", "indices:admin/get"]
searchguard.actionrequestfilter.readonly.forbidden_actions: ["cluster:", "indices:admin/", "indices:data/write"]
You can see,
"indices:admin/*" is enabled in forbidden section
"indices:admin/get" is enabled in allowed_actions.
Here, Forbidden section take precedence which is executed first. So I tried to bypass admin/get request like below,
searchguard.actionrequestfilter.readonly.allowed_actions: ["indices:data/read/", "monitor" ]
searchguard.actionrequestfilter.readonly.forbidden_actions: ["cluster:", "indices:admin/", "indices:data/write"]
searchguard.actionrequestfilter.testonly.allowed_actions: ["indices:admin/get"]
ACL config :
{
"Comment": "Demo ACL",
"users": ["demo"],
"indices": ["demo-*"],
"filters_bypass": ["actionrequestfilter.testonly"],
"filters_execute": ["actionrequestfilter.readonly"]
}
But, this too comes with 403 forbidden error.

Hi
I think that error will come according to your default configuration in your index,Please once change your default configuration with different possibilities and try it out

Auto close this issue because it refers to Search Guard 1 which is decommissioned now. For details pls. see https://github.com/floragunncom/search-guard-attic/wiki . If this issue is still valid for Search Guard 2 (for elasticsearch 2.x) feel free to reopen it (or to file a new one). Pls. do not longer report issues for Search Guard 1 (for elasticsearch 1.x). We sincerely apologize for the inconvenience this may have caused. Thanks for contributing!


White backgrounds are hard on the eyes

Try green/white/gray text on a black background.
This will break all your CSS and most of your apps.
BUT, on well, I guess. It's worth trying.

Start with this, and fix all the things it breaks:
html {
 font-size:100%;
 overflow-y:scroll;
 -webkit-text-size-adjust:100%;
 -ms-text-size-adjust:100%;
 background-color:#111;
 color:#999
}

In particular, headings and topics tags will all be borked.

Is there some way to do this for the blog, but not for the apps? Because all those silly little apps are really where I would lose a lot of time fiddling with CSS.

Okay, we're not doing a night mode.  The whole site will just be night mode all the time.
Things left to do:

fix my GitHub user icon at the bottom
fix the Dr Who checklist


Make it easy to import and use in other python modules

I wanted to build on top of the work being done here (specially since diarization is coming soon) and I had to copy paste the transformers code into my code rather than
from insanely_fast_whisper import pipe

pipe(...)

Or maybe
from insanely_fast_whisper import build_pipe

pipe = build_pipe("large-v3", ...)
pip(...)

Can we get initial support for lib use?

I'm not opposed to the idea. But I would let @patrick91 weigh in here!

I think https://github.com/Vaibhavs10/insanely-fast-whisper/pull/42 is a good example where lib use would come in handy.

@chamini2 I don't have time to implement it this week, but happy to review any PRs 😊


Add New simulator to dev tools & whole dev tools cleanup (Waiting on 1.5.1)

All Commands below were added & repo now passes flake8, mypy & black.
Draft will be removed once easily testable via main branch.

[x] Add All Commands listed below
Start ( Simulation (Start through daemon) )
Stop ( -r for restart)
Farm ( x number of blocks, default 1, transaction block, default true)
Autofarm., (On, Off) Will farm block when transaction is in mempool
Create ( Configure Sim Chain) in chia root file, full setup wizard, Create new key prompt, start with -s )
Status ( keychain info, other blockchain info, key info):
Revert ( Num blocks, default 1)

[x] Make whole repository pass flake8, mypy & black

[x] https://github.com/Chia-Network/chia-blockchain/pull/12072

[x]  https://github.com/Chia-Network/chia-blockchain/pull/12549

[x] https://github.com/Chia-Network/chia-blockchain/pull/12521

[ ] Chia 1.51 Release

all non directly sim related changes are being moved into another pr.

Sorry for the force push, easiest way to resolve conflicts

Docker might be moved to a new repo depending on workflow requirements

Docker might be moved to a new repo depending on workflow requirements

docker was moved

ci


Fixed maximum width of timeline

First of all: Thanks for Utterances. Its exactly what I need for my blog. :+1:
There is just one single line of code that's bugging me a little bit:
https://github.com/utterance/utterances/blob/7c518a05a4522c03d3841ec16d7ec8d2f3081eb0/src/_timeline.scss#L2
It would be great if the width css rule of the timeline class could be unset with an additional script tag parameter (or be set to 100% by default).
With kind regards,
Philip Trauner

hi @PhilipTrauner - the 760px value was chosen to match github's style. If you open the dev tools while on this page and execute the following code you should see 760px:
window.getComputedStyle(document.querySelector('.discussion-timeline')).width

I think this width was chosen to optimize cpl for reading.

I get that replicating the GitHub style is what you are going for, but wouldn't it make more sense to just set the max-width of the timeline to 100% and then let the user set their own desired width in the .utterances class? The default width could still be set to 760px this way, while allowing the utterances timeline to scale properly when paired with content that makes use of more horizontal screen real estate.


Added CryptoBonusMiles (CBM) token

CryptoBonusMiles (CBM) token is a reward point token for Aeron (ARN) sub-project.
Functionality as described here: https://medium.com/@aeronaero/aeron-explains-cryptobonusmiles-a-universal-bonus-miles-platform-with-loyalty-multi-wallet-468cbfdb3366
website
https://cryptobonusmiles.com; https://aeron.aero
telegram
https://t.me/aeronaero
support email address
<EMAIL_ADDRESS>


Detect funcs implementing defined interface

If one does golint go/ast, the vast majority of the warnings are of the form:
exported method *.Pos should have comment or be unexported
exported method *.End should have comment or be unexported

All of these methods implement Node.Pos and Node.End, which do have documentation.
I hit a very similar issue in a package of mine. As a developer, to fix these golint warnings I would basically just repeat the same godoc line for every single implementation without any changes, which doesn't make much sense.
What I suggest is that golint (and perhaps even godoc too?) notice if functions are implementing an exported interface defined in the same package, and reuse its godoc as a fallback if the implementation has none.
This would only work if there is exactly one exported interface that matches the function name and signature in the same package, so if two interfaces were to define Pos() Pos, then golint would warn about all its implementations again.
Perhaps in the broader context this does not make sense, as implementations of interfaces might not always want to share the same godoc as a fallback. So maybe this isn't a good general rule. But the current state seems sort of broken to me.

I agree: repeating same docs in all implementations is dull.
Maybe this is a godoc issue: to inherit docs from the interface definition to all the implementations.
In Java is is solved quite elegant: you just put {@inheritDoc} tag and you have javadoc from the interface method in an implementation.
That's what godoc doesn't have, but should have I think.

When I said perhaps even godoc too in the original issue, I meant that two solutions come to mind:

golint does this change, but godoc doesn't. This is assuming that the user understands e.g. what Pos() means from reading the interface definition. This is also the less intrusive change, as no godoc pages would change.
Both change. An advantage is that things would stay consistent and that godoc would get this also fixed, if it is seen as an issue rather than something avoided by design.

It is especially annoying for ADT-like interfaces.
go/ast.Node is one of this kind.
Suppose you have interface Object which has dozens of implementations,
each should implement Type() method.
Should I really write Type returns underlying Object type everywhere?

Don't know if this is feasable, but if it hard to detect if a method should not require a doc string during lint because it implements some interface, maybe one could make it explicit by looking for compile-time checks within the same package.
E.g. If one find:
// Dog can Bark.
type Dog interface {
    Bark() string
}

// Compile-time checks.
var (
    _ Dog = Affenpinscher{}
)

// Affenpinscher is a type of dog.
type Affenpinscher struct {}

func (dog Affenpinscher) Bark() string {
    return "Wooof!"
}


Add android_riscv64 to BUILD.bazel

Downstream projects that process the Bazel file were failing as the recent introduction of the 'android_riscv64' target did not have a corresponding config_setting.

For review: @malfet (please let me know if there's a more reasonable way of requesting reviews, I'm not familiar with how to do so other then '@'-ing you on each PR.
FYI: @davidben

@prashanthswami can you please mention what downstream dependencies you are referring to?
And what is the current plan for the repo releases? I.e. I assumed almost nobody should rely on trunk, but rather on tagged versions

I'll have to take a closer look internally, but in this particular case, it was XNNPACK (https://github.com/google/XNNPACK). As some folks were pulling that library they were also implicitly pulling in a new version of cpuinfo. Their build system was Bazel, so they got caught on my error when processing the file.
I guess to that point - you mention that we should be relying on tagged versions, but there's no tags or releases on this project, are there? When I look at the main page of this repo, I only see 1 branch - 0 tags - no releases.

@prashanthswami are you on PyTorch slack? Let's discuss how this project can go forward, as I don't think I have a bandwidth to be a dedicated reviewer of all the PRs that might come, and I would appreciate help setting up CI so that one does not need to ask for reformatting changes all the time

I am not! But I have just now made a request for access.

@prashanthswami hmm, I don't see it yet. Should I send an invitation to an email from this PR?

Yes, that would be great - for reference in case I filled out the wrong link, I used this form from the Pytorch dev site: https://docs.google.com/forms/d/e/1FAIpQLSeADnUNW36fjKjYzyHDOzEB_abKQE9b6gqqW9NXse6O0MWh0A/viewform

Following up here - I noticed that I didn't get an email confirming that I submitted an invitation request, so I redid it. This time I got one, so perhaps I missed hitting submit? (Or maybe didn't flag 'send me a copy of responses').


Utilize Chrome Custom Tabs Feature

I think it could be useful to utilize the new Chrome Custom Tabs that has come out for the in app browser. Some benefits:

Uses a Chrome instance, so logins and such will be used in the app.
Will still look like a normal WebView within the app
Can pre-load URLs. I think a good use case for this would be when a user reads the comments, they could pre-load the URL

Just an idea.

Thanks for this @Nemisis. It's a great idea indeed!

Solved!


Add UDEV rules for the Lego USB IR Tower

Added a UDEV rule for the Lego USB IR Tower. An IR tower is required for interacting with the Mindstorms RCX, Spybotics, Scout, and Microscout PBricks and all Power Functions devices.

Thanks!

Glad to help! :)


fix magma_maintained server download path

Building https://github.com/itzg/docker-minecraft-server/actions/runs/7340208477

This is only true for 1.12.2. PR broke for all other versions having FORGE_VERSION in the download url


Shorter representation of protobuf Map in output

Currently gWhisper does not know anything about maps, it reads and writes them as repeated messages with key and value members.
It would be nice to detect maps and format them in a shorter format. e.g.
key -> value

Thanks for implementing @taojunli


Function calling?

OpenAI models now support what is called function calling.
const usageInfo = new GPTTokens({
    model   : 'gpt-3.5-turbo-16k-0613,
    messages,
    funcitons,
});

Is there a chance that this library is going to support it? If no can you please let me know how should I get # of tokens for the functions. Thank you.

Yes, this library will support it in v1.2.0，During this time I'm developing and testing

@Cainier while you develop it can you give me a clue how can I do it by myself?

Who still wondering how to do that there is a snippet of code that you can run once when server is started to get real usage of tokens by functions.
void (async () => {
  const result = await createCompletion({
    model: MODEL,
    messages: [{ content: '', role: 'user' }],
    stream: false,
    functionCall: 'auto',
    temperature: 0,
  });

  console.log('result', result.fullResponse?.usage?.prompt_tokens);
})();

Yes, this library will support it in v1.2.0，During this time I'm developing and testing

How's it going?

I added it in 1.2.0, Using the npm package openai-chat-tokens
https://hmarr.com/blog/counting-openai-tokens/
But it has not been rigorously tested
you can use it in v1.2.0 like this
import { GPTTokens } from 'gpt-tokens'

const usageInfo = new GPTTokens({
    model   : 'gpt-3.5-turbo-1106',
    messages: [
        { role: 'user', content: 'What\'s the weather like in San Francisco and Paris?' },
    ],
    tools   : [
        {
            type    : 'function',
            function: {
                name       : 'get_current_weather',
                description: 'Get the current weather in a given location',
                parameters : {
                    type      : 'object',
                    properties: {
                        location: {
                            type       : 'string',
                            description: 'The city and state, e.g. San Francisco, CA',
                        },
                        unit    : {
                            type: 'string',
                            enum: ['celsius', 'fahrenheit'],
                        },
                    },
                    required  : ['location'],
                },
            },
        },
    ]
})

console.info('Used tokens: ', usageInfo.usedTokens)
console.info('Used USD: ',    usageInfo.usedUSD)


Issue with PGMORL logging global_step

It does not appear that the "global_step" variable is iterated in the training loop.  Should it be incremented by the sum of copied_agents.global_step each iteration.
On completion of a run I am unable to generate eum vs global step plots as there is only one global_step data point (with global step value = 0).

Hi,
If I remember correctly, global_step is incremented by MOPPO.

Hi @adamcallaghan0,
I just ran some experiments with PGMORL, it seems you are right. I'll try to fix it along with the gymnasium 1.0 migration

Thank you!  In the meantime I have implemented a minor fix on my end to change the warmup block in the train function to:

and slightly further down -

This appears to be working correctly now.

I have a concern with this right now:
self.__train_all_agents trains for all agents in the population (usually 6).
So I think we should increment by self.steps_per_iteration * self.nums_envs * len(self.agents)
Now I have to double-check this but it seems that the implementation has been bugged so far, and performances are even worse than what we reported so far.

Here is what I have so far:
https://github.com/LucasAlegre/morl-baselines/blob/chore/update-gymnasium-1.0/morl_baselines/multi_policy/pgmorl/pgmorl.py#L510

hmm this is still generating some very weird plots of step vs global step on wandb...

You can join here: https://discord.gg/ygmkfnBvKA easier to talk


[Pytest] Tests not being discovered due to pytest_report hook

Type: Bug
Behaviour
After updating VS Code, VS Code Pytest is no longer discovering tests. Running Pytest on the terminal works as expected and tests are found correctly.
Expected vs. Actual
When running on ssh terminal, within Conda environment:
(kedro_dataiku) xxxxxx@xxxxxx:/ace/src/project_ace$ pytest --disable-warnings --collect-only
================================================= test session starts ==================================================
platform linux -- Python 3.7.16, pytest-3.10.1, py-1.10.0, pluggy-0.13.1
rootdir: /ace/src, inifile:
plugins: dash-1.19.0, anyio-2.2.0, typeguard-2.13.3, mock-1.13.0, cov-2.9.0
collected 1071 items

Output of VS Code after failing to discover tests:
2023-12-13 23:32:55.024 [info] > conda run -n kedro_dataiku --no-capture-output python ~/.vscode-server/extensions/ms-python.python-2023.22.0/pythonFiles/get_output_via_markers.py -m pytest -p vscode_pytest --collect-only
2023-12-13 23:32:55.024 [info] cwd: ./src/project_ace
2023-12-13 23:32:55.907 [info] >>>PYTHON-EXEC-OUTPUT

2023-12-13 23:32:56.172 [info] <<<PYTHON-EXEC-OUTPUT

2023-12-13 23:32:56.172 [error] Traceback (most recent call last):
  File "/home/xxxxx/.vscode-server/extensions/ms-python.python-2023.22.0/pythonFiles/get_output_via_markers.py", line 23, in <module>
    runpy.run_module(moduleName, run_name="__main__", alter_sys=True)
  File "/home/xxxxx/.conda/envs/kedro_dataiku/lib/python3.7/runpy.py", line 205, in run_module
    return _run_module_code(code, init_globals, run_name, mod_spec)
  File "/home/xxxxx/.conda/envs/kedro_dataiku/lib/python3.7/runpy.py", line 96, in _run_module_code

2023-12-13 23:32:56.172 [error]     mod_name, mod_spec, pkg_name, script_name)
  File "/home/xxxxx/.conda/envs/kedro_dataiku/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/xxxxx/.conda/envs/kedro_dataiku/lib/python3.7/site-packages/pytest.py", line 91, in <module>
    raise SystemExit(pytest.main())
  File "/home/xxxxx/.conda/envs/kedro_dataiku/lib/python3.7/site-packages/_pytest/config/__init__.py", line 58, in main

2023-12-13 23:32:56.172 [error]     config = _prepareconfig(args, plugins)
  File "/home/xxxxx/.conda/envs/kedro_dataiku/lib/python3.7/site-packages/_pytest/config/__init__.py", line 196, in _prepareconfig

2023-12-13 23:32:56.172 [error]     pluginmanager=pluginmanager, args=args
  File "/home/xxxxx/.conda/envs/kedro_dataiku/lib/python3.7/site-packages/pluggy/hooks.py", line 286, in __call__

2023-12-13 23:32:56.172 [error]     return self._hookexec(self, self.get_hookimpls(), kwargs)

2023-12-13 23:32:56.172 [error]   File "/home/xxxxx/.conda/envs/kedro_dataiku/lib/python3.7/site-packages/pluggy/manager.py", line 93, in _hookexec

2023-12-13 23:32:56.172 [error]     return self._inner_hookexec(hook, methods, kwargs)
  File "/home/xxxxx/.conda/envs/kedro_dataiku/lib/python3.7/site-packages/pluggy/manager.py", line 87, in <lambda>

2023-12-13 23:32:56.172 [error]     firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
  File "/home/xxxxx/.conda/envs/kedro_dataiku/lib/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall

2023-12-13 23:32:56.172 [error]     gen.send(outcome)
  File "/home/xxxxx/.conda/envs/kedro_dataiku/lib/python3.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse

2023-12-13 23:32:56.172 [error]     config = outcome.get_result()
  File "/home/xxxxx/.conda/envs/kedro_dataiku/lib/python3.7/site-packages/pluggy/callers.py", line 80, in get_result

2023-12-13 23:32:56.172 [error]     raise ex[1].with_traceback(ex[2])
  File "/home/xxxxx/.conda/envs/kedro_dataiku/lib/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall

2023-12-13 23:32:56.172 [error]     res = hook_impl.function(*args)
  File "/home/xxxxx/.conda/envs/kedro_dataiku/lib/python3.7/site-packages/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse

2023-12-13 23:32:56.173 [error]     self.parse(args)
  File "/home/xxxxx/.conda/envs/kedro_dataiku/lib/python3.7/site-packages/_pytest/config/__init__.py", line 845, in parse

2023-12-13 23:32:56.173 [error]     self._preparse(args, addopts=addopts)
  File "/home/xxxxx/.conda/envs/kedro_dataiku/lib/python3.7/site-packages/_pytest/config/__init__.py", line 795, in _preparse

2023-12-13 23:32:56.173 [error]     self.pluginmanager.consider_preparse(args)
  File "/home/xxxxx/.conda/envs/kedro_dataiku/lib/python3.7/site-packages/_pytest/config/__init__.py", line 475, in consider_preparse

2023-12-13 23:32:56.173 [error]     self.consider_pluginarg(opt2)
  File "/home/xxxxx/.conda/envs/kedro_dataiku/lib/python3.7/site-packages/_pytest/config/__init__.py", line 489, in consider_pluginarg

2023-12-13 23:32:56.173 [error]     self.import_plugin(arg)
  File "/home/xxxxx/.conda/envs/kedro_dataiku/lib/python3.7/site-packages/_pytest/config/__init__.py", line 537, in import_plugin

2023-12-13 23:32:56.173 [error]     self.register(mod, modname)
  File "/home/xxxxx/.conda/envs/kedro_dataiku/lib/python3.7/site-packages/_pytest/config/__init__.py", line 306, in register
    ret = super(PytestPluginManager, self).register(plugin, name)
  File "/home/xxxxx/.conda/envs/kedro_dataiku/lib/python3.7/site-packages/pluggy/manager.py", line 126, in register

2023-12-13 23:32:56.173 [error]     self._verify_hook(hook, hookimpl)
  File "/home/xxxxx/.conda/envs/kedro_dataiku/lib/python3.7/site-packages/pluggy/manager.py", line 261, in _verify_hook

2023-12-13 23:32:56.173 [error]     notinspec,
pluggy.manager.PluginValidationError: Plugin 'vscode_pytest' for hook 'pytest_report_teststatus'
hookimpl definition: pytest_report_teststatus(report, config)
Argument(s) {'config'} are declared in the hookimpl but can not be found in the hookspec

Steps to reproduce:

Configure tests with Pytest
Refresh test discovery

Diagnostic data

Python version (& distribution if applicable, e.g. Anaconda): 3.7.16
Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Conda
Value of the python.languageServer setting: Pylance

Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)

XXX

User Settings

condaPath: "<placeholder>"

languageServer: "Pylance"

testing
• cwd: "<placeholder>"
• pytestEnabled: true

Extension version: 2023.22.1
VS Code version: Code 1.85.1 (0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2, 2023-12-13T09:49:37.021Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Remote OS version: Linux x64 3.10.0-1160.99.1.el7.x86_64
Remote OS version: Linux x64 3.10.0-1160.99.1.el7.x86_64

System Info

Item
Value

CPUs
12th Gen Intel(R) Core(TM) i7-12850HX (24 x 2419)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
undefined

Memory (System)
63.67GB (40.83GB free)

Process Argv
--crash-reporter-id d642995a-15db-49b9-871b-7574d0bace4e

Screen Reader
no

VM
0%

Item
Value

Remote
SSH: ace

OS
Linux x64 3.10.0-1160.99.1.el7.x86_64

CPUs
Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz (48 x 2899)

Memory (System)
371.81GB (297.91GB free)

VM
0%

Item
Value

Remote
Container dataiku-base-ace-lbarcelo (reverent_saha) @ ace

OS
Linux x64 3.10.0-1160.99.1.el7.x86_64

CPUs
Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz (48 x 2899)

Memory (System)
371.81GB (297.91GB free)

VM
0%

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vsdfh931:30280409
vshan820:30294714
vstes263:30335439
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30410667
py29gd2263:30899288
vsclangdf:30486550
c4g48928:30535728
dsvsc012:30540252
azure-dev_surveyone:30548225
282f8724:30602487
89544117:30613380
vscrp:30673768
showlangstatbar:30737416
0bi6i642:30917235
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
welcomedialog:30910333
pythonnosmt12:30797651
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
dsvsc013:30795093
dsvsc014:30804076
dsvsc015:30845448
pythontestfixt:30902429
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
pythontbext0:30879054
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
aa_t_chat:30882232

Hi! From my understanding what this error message {'config'} are declared in the hookimpl but can not be found in the hookspec is saying is that the config argument is in misalignment. Specifically that the vscode-pytest plugin implementation of pytest_report_teststatus has argument {'config'}  but not in the hookspec or the definition outlines what parameters this function should accept.
Referring to pytest documentation here, it shows that config is defined as an argument.
I am seeing from your stdout that your version are Python 3.7.16, pytest-3.10.1, py-1.10.0, pluggy-0.13.1. Pytest is not on version 7.4.3 and Python 3.7 is at end of life so could you try updating both of those because this is likely the problem. Thanks

Hello,
I'm encountering the same bug (also python 3.7 but cannot upgrade the version since this is for a maintenance branch of a product and that's where dev-containers are useful !)
2023-12-15 09:04:21.566 [info] Experiment 'pythonRecommendTensorboardExtcf' is active
2023-12-15 09:04:21.566 [info] Experiment 'pythonREPLSmartSend' is active
2023-12-15 09:04:21.566 [info] Experiment 'pythonTestAdapter' is active
2023-12-15 09:04:21.566 [info] Default formatter is set to null for workspace /workspaces/wab
2023-12-15 09:04:21.566 [info] Test server listening.
2023-12-15 09:04:21.566 [info] Python interpreter path: /usr/bin/python3
2023-12-15 09:04:32.633 [info] Starting Pylance language server.
2023-12-15 09:04:50.285 [info] Discover tests for workspace name: wab - uri: /workspaces/wab
2023-12-15 09:04:50.285 [info] Running discovery for pytest using the new test adapter.
2023-12-15 09:04:50.286 [info] All environment variables set for pytest discovery for workspace /workspaces/wab: {"PYTHONPATH":"/home/dev/.vscode-server/extensions/ms-python.python-2023.22.1/pythonFiles:srcbuilt:src[...],"VSCODE_AGENT_FOLDER":"/home/dev/.vscode-server","SHELL":"/bin/bash","PWD":"/vscode/vscode-server/bin/linux-x64/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2","VSCODE_HANDLES_SIGPIPE":"true","VSCODE_AMD_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_NLS_CONFIG":"{\"locale\":\"en\",\"osLocale\":\"en\",\"availableLanguages\":{}}","REMOTE_CONTAINERS_IPC":"/tmp/vscode-remote-containers-ipc-6dc7686f-cb87-4d92-b5fc-e93baef610d2.sock",[...],"REMOTE_CONTAINERS_SOCKETS":"[\"/tmp/vscode-ssh-auth-6dc7686f-cb87-4d92-b5fc-e93baef610d2.sock\",\"/tmp/.X11-unix/X1\"]","TEST_UUID":"2089bcb5-b3e5-433d-a2ba-c27f3960589f","TEST_PORT":"36053"}

2023-12-15 09:04:50.416 [info] > /usr/bin/python3 -m pytest -p vscode_pytest --collect-only -s --import-mode=append --disable-warnings
2023-12-15 09:04:50.417 [info] cwd: .
2023-12-15 09:04:51.022 [error] Traceback (most recent call last):

2023-12-15 09:04:51.022 [error]   File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main

2023-12-15 09:04:51.022 [error]
2023-12-15 09:04:51.022 [error] "__main__", mod_spec)
2023-12-15 09:04:51.022 [error]

2023-12-15 09:04:51.023 [error]   File "/usr/lib/python3.7/runpy.py", line 85, in _run_code

2023-12-15 09:04:51.023 [error]
2023-12-15 09:04:51.030 [error] exec(code, run_globals)
2023-12-15 09:04:51.030 [error]

2023-12-15 09:04:51.030 [error]   File "/usr/lib/python3/dist-packages/pytest.py", line 91, in <module>

2023-12-15 09:04:51.031 [error]
2023-12-15 09:04:51.039 [error] raise SystemExit(pytest.main())

This is probably related to "Experiment 'pythonTestAdapter' is active" ? Anyway it would be nice to have a fix other than "upgrade the python version" if possible ;-)

I can also confirm that setting "python.experiments.optOutFrom": [ "pythonTestAdapter" ] fixes the issue

I can also confirm that setting "python.experiments.optOutFrom": [ "pythonTestAdapter" ] fixes the issue

same here(with no obvious error in python output, though). for platform darwin -- Python 3.7.17, pytest-7.4.3, pluggy-1.2.0 environment opting out from pythonTestAdapter helped to discover tests in Vscode Testing section. (make sure to put that in user settings, not workspace settings and reload the VSCode to respect new settings)
Before (and after) that running pytest  --collect-only in the terminal had the expected output, so it was the testing UI only that did not pick up discovered tests.

@peacefulseeker, are you no longer seeing the same error regarding using python 3.7? If you are not please create a new issue with your project structure and logs so I can better assist, thanks!

@vanackere in terms of a fix you can also pin the python extension version which is compatible with 3.7:
Hello! For the python extension we follow python.org and their schedule on which version we support. Here is their supported versions, https://devguide.python.org/versions/, and 3.7 has reached end of life for support. This means new releases of our extension will be compatible back to 3.8 as of now. As a work around, you can pin the version of the python extension which still worked for you with 3.7. You can see in the release notes of v2023.18.0 we dropped Python 3.7 support https://github.com/microsoft/vscode-python/releases so the previous version might be the best version to pin.

@peacefulseeker, are you no longer seeing the same error regarding using python 3.7? If you are not please create a new issue with your project structure and logs so I can better assist, thanks!

Yes, the issue is gone(for pytest) after I've opted out from pythonTestAdapter experiment, in particular, put the "python.experiments.optOutFrom": [ "pythonTestAdapter" ] in the settings.json

Are you able to get it working still in the experiment? We will soon switch to fully using the rewrite as our testing infrastructure which will disable the use of the experiment opt out as a work around.

@eleanorjboyd : thanks for the hint, we'll try to pin the version in devcontainer.json
My only fear with that approach is that the pinned extension might stop working with future version of VSCode, which will also be a problem for lot of other users working on legacy code base. For exemple Python 3.7 was the default python version on Debian 10 (end-of-life too... but on which one of our products has still a stable supported branch that we must maintain for several more years). How long can we be certain that the pinned extension will still be functional ? If there is a risk that the older extension would stop working, perhaps Microsoft could consider publishing a "Legacy" python extension that would still allow to work with older unsupported versions of python ?

Looping in @brettcannon here as he can speak better to the future of our extension and VS Code as it relates to legacy python versions.

How long can we be certain that the pinned extension will still be functional ?

No explicit guarantees, but VS Code itself takes API stability seriously, so there's no specific expectation an older version would stop working.

perhaps Microsoft could consider publishing a "Legacy" python extension that would still allow to work with older unsupported versions of python ?

We implicitly already do that via the ability to install old versions of the extension. Otherwise maintaining support w/ older versions of Python becomes too costly time-wise based on the usage we see of old Python versions.

What is the proper way to pin the version of the extension ?
I've tried putting
"extensions": [
<EMAIL_ADDRESS>
In devcontainer.json but still end up with the latest version.
Also should I also pin ms-python.vscode-pylance to a specific version ?

Are you able to get it working still in the experiment? We will soon switch to fully using the rewrite as our testing infrastructure which will disable the use of the experiment opt-out as a workaround.

No, I was not able.  Makes sense, that at a certain point, the test discovery is expected to be broken
and py3.7 support will be completely dropped, although will still be possible to install previous versions of extensions 👍

@vanackere , you should be able to use Install another version... in a settings dropdown when you click the cogwheel icon in the extensions search view. Then pick the desired version and reload the editor.

@peacefulseeker : manual installation works... but that's not really helpful since we need to ensure in the devcontainer.json file that the correct extension version is actually installed and don't want to require that every engineer in our company has to perform a manual setup each time they have to work on the legacy branch of our product...

What is the proper way to pin the version of the extension ?
I've tried putting
"extensions": [
<EMAIL_ADDRESS>
In devcontainer.json but still end up with the latest version.

If your version of VS Code is too old then you may be hitting https://github.com/microsoft/vscode/issues/63903 , otherwise it should work and you're hitting a bug in either VS Code or the devcontainer extension.

Also should I also pin ms-python.vscode-pylance to a specific version ?

I honestly don't know for your specific case; Pylance has its own compatibility policy. But since they don't execute Python code to function, I suspect they can be more conservative than us.

@lubaroli, please let me know if your issue has been resolved in this discussion and if we can close the issue. thanks

@lubaroli, please let me know if your issue has been resolved in this discussion and if we can close the issue. thanks

Thanks for the quick support @eleanorjboyd, I'm in exactly the same boat as @vanackere, working on legacy systems, but since python 3.7 is reaching EOL, I understand this is not a priority requirement and the issue can be closed. For now I'll pin the devcontainer extension as suggested and hope it is a feasible alternative for as long as it takes us to migrate our system.

@brettcannon  as a follow-up I can confirm that there is a bug that makes extension pinning not work in our case.
I've reduced it to a very small reproducible case and opened an issue at https://github.com/microsoft/vscode-remote-release/issues/9360, I hope this can be prioritized and fixed soon (hopefully before the testing rewrite lands and fully breaks python 3.7 without any possible workaround for us :cold_sweat: )

@karthiknadig looping you in on this as you might have more understanding around the extension pinning

I've reduced it to a very small reproducible case and opened an issue

Thanks for finding that bug. I can't make any promises around prioritizing that issue, but I will see what I can do.

closing as the issue opened on core in regards to extension pinning has been resolved. Thanks!


Command support

Support for "Command": redis-go pukes without command support; it calls and caches command info for all the commands. With Envoy proxy you see errors see this code link: https://github.com/redis/go-redis/blob/master/cluster.go#L1763
Specifically
internal.Logger.Printf(context.TODO(), "getting command info: %s", err)

Going to add hello and client command support as well -keeping it open atm


Removed the schedules scale in lambda function since the auto scaling for ecs is working properly.

@kamoljan I have removed the lambda function which does the scheduled scale in for every ECS service to only 1 task everyday 4am SGT in the morning.
We encountered the issue where all the services will be scaled into only 1 task everyday 4am SGT even for the production environment. Since I have checked the autoscaling for scale in alarm for ECS is working properly, I thought is good to remove this aggressive scale in method and rely on the auto scaling instead.
Thank you.

@wooiliang thank you!


[RFR] Include bind polyfill

bind polyfill is included in test because travis runs PhantomJS that doesn't implement it.
ng-admin should be compatible with browsers that don't support bind, it should be included in the minified build.

function.prototype.build is widely supported. PhantomJS is the only one not supporting it, so I suggest you add the polyfill to your test build.


Mypy cannot find the Coverage type from version 7.2.0

Describe the bug
Mypy complains about not being able to find the Coverage attribute from the coverage module.
To Reproduce
Following the documentation:
import coverage

cov = coverage.Coverage()

and applying mypy leads to the following error:
error: "Module coverage" does not explicitly export attribute "Coverage"  [attr-defined]

However, doing:
import coverage

cov = coverage.control.Coverage()

works fine.
Expected behavior
Mypy should not complain about the type when Coverage objects are used according to the documentation.
Additional context
This problem appeared starting 7.2.0 (using 7.1.0 works fine).

Thanks, clearly I don't fully understand typechecking yet!  I think I've fixed it. Can you install this and give it a try?
pip install<EMAIL_ADDRESS>

This is fixed in c3a3421721788d863012330bc0789b828ce4bcd0.

This is now released as part of coverage 7.2.1.


Why you remove ApplicationUser?

In 2.0 we use to have an ApplicationUser class. I can add some custom fields and create relationship with another classes. Why you remove ApplicationUser class. Any reason?

This can be scaffolded out, and is more obvious in 3.0, so we're treating this as fixed.


Add php linter squizlabs/php_codesniffer

See sanity-php for configuration:

Add phpcs.xml
Update composer.json

Note: I assigned this issue to myself because this will totally change the coding style and all php files. Even though my IDE can automatically fix all style errors, I'll still do it at a later point.

Fixed by https://github.com/robertpainsi/sanity-image-url-php/commit/a2a60c4893744a0ae98017f749975d6ede5cb1db


Verbose SQL CREATE EDGE(console.sh)

OrientDB Version, operating system, or hardware.

v2.2.13

Operating System

[ x] Linux

Expected behavior and
Created edge  ...
##Actual behavior
console.sh running osql-script which shows like in "debug mode".
Created edge 'com.orientechnologies.orient.core.sql.query.OBasicResultSet@111d' in 0.003000 sec(s).
Steps to reproduce the problem
run a script by console.sh that creates an edge like; create edge  from (select ..) to (select ..)

Hi @austx
fixed, it will be available in 2.2.14


Regenerate code for Formrecognizer 2.1_preview3 swagger

Merge once https://github.com/Azure/azure-rest-api-specs/pull/12997 completed

/azp run java - formrecognizer - tests

Closing this, will move this to a feature branch for now.


[STORM-1483] add storm-mongodb connector

Initial commit for code review.

Github shows 1,058 additions, 1,057 deletions not shown for pom.xml but does not show any changes. If there are no changes, you could just revert the pom.xml.

May be not as a part of this PR, but would be good to have a MapState implementation for supporting trident's exactly once semantics. Take a look at RedisMapState, HbaseMapState etc.

I fixed some issues. Work is going on for upsert.
And I will file a new JIRA for the next phase including MongoMapState.

I am no expert on mongodb but overall it looks rather good.  @vesense if you do need a +1 from me to get this in please let me know, The code is simple enough I feel OK with doing it, but I would rather have someone else who knows the DB better then I do lend their support.

@ptgoetz @HeartSaVioR Could you have a chance to take a look?

@revans2 I think we can merge this to master and 1.x branch. What do you think?

+1 the changes look good to me.

+1
I've not used MongoDB in ages, so I'm in the same boat as @revans2. Are there any other committers that are willing to sponsor this so it is maintained moving forward?

What's the status of this PR? which Storm version will include storm-mongodb?

@2new Maybe Storm 1.0.0 or 2.0.0 will include this.(Storm PMC members will make the final decision).
Actually, I hope the 1.0 release can include this.

ping

I filed some follow on JIRAs (STORM-1573 STORM-1607) for the next phase.

@vesense I can sponsor this connector. Please add me as sponsor in README.

+1. Can you please squash additional commits.

@harshach OK. I'll update it right away.

@harshach Done.

ping @harshach

@vesense thanks for the patch. Merged into master. Can you open up the same PR against 1.x-branch as well.

@harshach Done. -> https://github.com/apache/storm/pull/1219


Least Privilege

Can you add to this document regarding least-privilege necessary for the service accounts and user accounts that access SQL Server for Azure DevOps Server (e.g. "The domain account that reaches into SQL Server from Azure DevOps requires backup_admin server permissions and db_reader and db_writer on the database" - or whatever the case may be.)

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

ID: 2a54362f-605d-70f8-1c6d-7814bfb32558
Version Independent ID: 14121450-7c6c-de71-88a2-8fc786fa14a0
Content: Manually install SQL Server - Azure DevOps
Content Source: docs/install/sql-server/install-sql-server.md
Product: devops-server
Technology: tfs-admin
GitHub Login: @aaronhallberg
Microsoft Alias: aaronha

Should reference this document: https://docs.microsoft.com/en-us/azure/devops/server/admin/service-accounts-dependencies?view=azure-devops

Every regulated industry will require that their team at least validates least-privilege requirements after installation.  Those who are using Azure DevOps Server (rather than the Azure service directly) are often working in regulated industries.  Any document that goes through install should at least reference least-privilege documentation somewhere in the main installation article with a link.


POC: build pipelining with -Youtline

Resolves to https://github.com/bazelbuild/rules_scala/issues/877
Step 0: Generate sig jars for scala_library

I'm super excited about this work! 😁
To make sure we're aligned-
The main advantages we're trying to achieve from using this are:

Pipelining/outlining (not sure which is the exact term)- Given B depends on A we can compile B before A's compilation finishes (we just need to wait for A's ijar to be ready).
Better ijar- we have suspected for a long time that the scala ijar support is basic and that ijars are invalidated to easily. Hopefully using this tool by the scala compiler people will show better results.

I think it can be very interesting if we can have stats on the above goals for this feature.

closing as stale, feel free to reopen


Support to embedding Etherpad into tasks and projects - Fixes #727

Adding Etherpad field into Projects > Edit, Tasks > Create, Tasks > Edit
Adding iframe to the Etherpad page(AKA pad) into Project > Summary and Task > Summary

Features:

Etherpad Username as the same of the Kanboard user(and can be modified)

Thanks a lot @SamuelMoraesF :+1:

What is the use case for that?

Some tasks/projects need a draft/collaborative document, and Etherpad is an awesome tool to do it!
Also, Etherpad have a lot of plugins too and can be used to collaborative draw, files management, video/audio chat, slideshows, spreadsheets... an official list are disponible here.
Some examples that can be used with Etherpad support:
Task: Write post to announce the event on our blog (pad with the post content)
Project: Pad to organize meeting resume

:-1:
This is a special use case and not a part for a kanban board.
It also implements external services and this is a no-go!
So, don't add this to the core.

I agree :-1:


JENKINS SETUP ERROR

after installing jenkins im unable to install suggested plugins or selected plugins. getting below error while clicking install suggested plugins

Hi Bhargavi,
Are you installing Jenkins on ubuntu or redhat can you post versions of Linux

Try again to installing the plugins. some times it is happening because network or the jenkins server issue.
if you already done this please close the issue.


How I can verify signature?

Hi, I am trying to make a login system using the keplr wallet.
const txMemo = "Hello World!"; // Here will be some salt from backend
        const signingClient = await SigningStargateClient.offline(
            offlineSigner
        );
        console.log("Address", accounts[0].address)
        const { bodyBytes, signatures } = await signingClient.sign(
            accounts[0].address,
            txMsgs,
            txFee,
            txMemo,
            signerData
          );
          console.log(bodyBytes, signatures);
          console.log(encode(bodyBytes));
          console.log(encode(signatures[0]));

Here is the consol.log output:

So I am getting the encode(signatures[0]) as e1GeuLoC9AssPiXKLhuX3TjCdVRDtbdFypd2ZXpeL5oJiJGihvwAlGyCl2BjBaeqq0W+EmcXtaMfF3PLiy7H7Q==.
How I can verify this signature on the backend?
Backend is written on nodejs.

Pretty much how experimentalAdr36Verify is implemented in https://github.com/cosmos/cosmjs/pull/847


Upgrade from Gulp 4.0.2 to 5.0.0 with Node V20-LTS is missing bundled js files

What were you expecting to happen?
After running Gulp on my project, to have 22 files within the wwwroot/dist/js/bundles folder.
What actually happened?
I only have 19 files.
Please give us a sample of your gulpfile
const {
    src,
    dest,
    series,
    parallel
} = require("gulp");
const gulpif = require("gulp-if");
const babel = require("gulp-babel");
const sourcemaps = require("gulp-sourcemaps");
const concat = require("gulp-concat");
const del = require("del");
const merge = require("merge-stream");
var sass = require("gulp-dart-sass");
const cleanCSS = require('gulp-clean-css');
const babelConfig = require("./babelrc.json");
var flatten = require('gulp-flatten');

const config = require("./bundle.config");

var launch = require('./Properties/launchSettings.json');

const environment = launch.profiles.Backoffice.environmentVariables.ASPNETCORE_ENVIRONMENT || 'Production';

function bundleJs() {
    bundles = config.scripts.bundles
        .filter(item => item.bundleName && item.inputFiles.length > 0)
        .map(item => src(item.inputFiles, { base: "." })
            .pipe(gulpif(environment === 'Development', sourcemaps.init()))
            .pipe(babel(babelConfig))
            .pipe(concat(`bundles/${item.bundleName}`))
            .pipe(gulpif(environment === 'Development', sourcemaps.write(".")))
        .pipe(gulpif(item.flatten, flatten(item.flatten)))
        .pipe(dest(config.scripts.dist)));

    return merge([bundles]);
}

function bundleCss() {
    bundles = config.css.bundles
        .filter(item => item.bundleName && item.inputFiles.length > 0)
        .map(item => src(item.inputFiles, { base: "." })
            .pipe(gulpif(environment === 'Development', sourcemaps.init()))
            .pipe(cleanCSS({
                compatibility: 'ie9',
                level: {
                    1: {
                        specialComments: 0
                    }
                }
            }))
            .pipe(concat(`bundles/${item.bundleName}`))
            .pipe(gulpif(environment === 'Development', sourcemaps.write(".")))
        .pipe(gulpif(item.flatten, flatten(item.flatten)))
        .pipe(dest(config.css.dist)));

    return merge([bundles]);
}

function bundleScss() {
    css = src(config.scss.src)
        .pipe(sourcemaps.init())
        .pipe(sass()).on("error", sass.logError)
        .pipe(sourcemaps.write("."))
        .pipe(dest(config.scss.dest));

    return css;
}

function copyAssets() {
    bundles = config.assets.bundles
        .filter(item => item.inputFiles.length > 0)
        .map(item => src(item.inputFiles, { base: "." })
            .pipe(gulpif(environment === 'Development', sourcemaps.write(".")))
            .pipe(flatten({ includeParents: -1 } ))
            .pipe(dest(config.css.dist)));

    return merge([bundles]);
}

function copyVendors() {
    bundles = config.vendors.bundles
        .filter(item => item.inputFiles.length > 0)
        .map(item => src(item.inputFiles, { base: '.' })
            .pipe(flatten(item.flatten))
            .pipe(dest(`${config.vendors.dist}`)));

    return merge([bundles]);
}

function clean() {
    return del(["./wwwroot/dist/**"]);
};

/* Exposed tasks */

exports.clean = clean;
exports.bundleJs = bundleJs;
exports.bundleCss = bundleCss;
exports.bundleScss = bundleScss;
exports.copyAssets = copyAssets;
exports.copyVendors = copyVendors;

exports.default = series(
    exports.clean,
    exports.bundleScss,
    parallel(exports.bundleJs, exports.bundleCss, exports.copyAssets, exports.copyVendors));

Terminal output / screenshots
C:\Repos\Client-Backoffice\Backoffice> cmd.exe /c gulp -b "C:\Repos\Client-Backoffice\Backoffice" --color --gulpfile "C:/Repos/Client-Backoffice/Backoffice/Gulpfile.js" default
[09:51:05] Using gulpfile C:\Repos\Client-Backoffice\Backoffice\Gulpfile.js
09:51:05] Starting '09:51:05] Starting '[default'...
[clean'...
clean' after [09:51:05] Finished '61 ms
09:51:05] Starting '[bundleScss'...
bundleScss' after [09:51:08] Finished '3.05 s
09:51:08] Starting '09:51:08] Starting '09:51:08] Starting '09:51:08] Starting '[bundleJs'...
[bundleCss'...
[copyAssets'...
[copyVendors'...
WARNING (@babel/preset-env): The `corejs` option only has an effect when the `useBuiltIns` option is not `false`
[09:51:13] Finished 'copyVendors' after 4.46 s
09:51:13] Finished '4.55 s
[bundleCss' after bundleJs' after [09:51:13] Finished '4.65 s
09:51:13] Finished '4.81 s
[copyAssets' after default' after [09:51:13] Finished '7.92 s
Process terminated with code 0.

Please provide the following information:

OS & version [e.g. MacOS Catalina 10.15.4]: Windows
node version (run node -v): 20.14.0
npm version (run npm -v): 10.7.0
gulp version (run gulp -v): 5.0.0

Additional information
Missing application.min.js, application.min.js.map and jquery.vlidation.bundle.min.js

Something similar happened to me. I found out that the package that contained the files had updated its version in my package.lock, and the bundled files location too.

i have the same issue its copy part of files.
its like a no resolved async task

@Svenmarim unfortunately the core team doesn't have the capacity to debug your entire gulpfile. If you can reduce this to a simple case, we'd be more able to help. Otherwise, I can transfer this to a GitHub Discussion for you to get some community support.


Update README.md

Adding LocalNotifications plugin back to list (was temporarily removed by @jamesmontemagno while being revamped).

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot


Cannot use chrome driver

After installing the driver  ,when I open it I cant type anything, and I got the notification ' only local connections are allowed

Can you specify how you install the web driver?

Also I downloaded the  chrome web driver from the link you posted. I cant use that at all. When I try python commandline  and type pip install -r requirements.txt , I get this message : SyntaxError : invalid syntax

A screenshot here.

Okay I solved the problem. But how can I run run.py on Windows machine?

Also solved.  Now script is running in background, viewing all the videos one by one, but the download folder is not created no where. and I guess it is not downloading anything right now.

Check DATA_COURSEDETAILED_LIST_CDN.json see if video links are there.

Unfortunately, all 'downloadable url's are at  null

The scrip

@okyanusatlas How did you make it work on windows 10?

For those who have the issue with Chrome drive. I'm thinking using Headless Chrome to do this will be much better and faster and fewer dependencies to manage.
If you are interested and have a subscription, feel free to recreate a new script and I am happy to review the code for you.


[BUG] Some cursors don't show up while using the 2013 or 2006 cursors.

Acknowledgement of preliminary instructions

[X] I have read the preliminary instructions, and I am certain that my problem has not already been addressed.

What problem did you encounter?
While I use one of these 2 cursors, some don't show up like the rocket launcher crosshair.

Works fine for me. Does it work if you use the default cursor? Also, just to confirm, we're talking about the classic brickbattle rocket launcher used in games like Crossroads, right?

Yes, I just tested it and it works just fine now. Maybe it was my gpu's fault before.


Considering streams for the API

Hi!
Dart has streams, which you might consider for a more composable API design.
Here's one idea:
Instead of:
app.router.get("/", (Request request, Response response) {
    response.status(200).send("Hello World");
  });

Try:
app.router.get("/").listen((Request request) {
    request.response.status(200).send("Hello World");
  });

And of course, once you go streams, you can compose error handling, filtering, etc.
See also https://www.dartlang.org/docs/tutorials/streams/
Cheers!

I'm currently evaluating a different design here, but I'm afraid the similarity to node's express will be lost. Nevertheless I'll investigate that and report possible changes here.

IMO there's more value in delivering a Darty API that is familiar to Node developers, than to completely duplicate Node APIs. Just porting Node's APIs perfectly to Dart is like leaving half of a cake uneaten. :)


chore: Delete unneeded templates

Description
Delete unneeded templates as they don't contribute to the generated code.
Running this command from tools folder to make sure that file generation is kept unchanged:
make clean_client generate_client generate_docs generate_mocks

Link to any related issue(s): CLOUDP-277683
Type of change:

[ ] 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 not work as expected)
[ ] This change requires a documentation update

Required Checklist:

[x] I have signed the MongoDB CLA
[x] I have added tests that prove my fix is effective or that my feature works
[x] I have added any necessary documentation (if appropriate)
[x] I have run make fmt and formatted my code

Further comments

@lantoli As discussed those templates are not used due to format of the OpenAPI - for example enum template.
We had initial approach to have all OpenAPI generator templates in the repository.
OpenAPI generator have templates embedded. Templates we have in the repository override those templates ensuring that we do not have different versions of various template files present.
Some of the templates you have removed are used for testing (like make generate_tests that is very useful for us to verify correctness). Some are not executed because openapi does not have them. Despite removing them OpenAPI generator will still run them but this time completely different version that is not compatible with other templates.
This has potential of regressions and further maintenance challenges.
My personal recommendation is to split removal of the templates to separate PR and have required leftovers from previous PRs merged. WDYT?

@wtrocki yeah, i can split in different PRs.  Also I'm thinking about adding a note in the beginning of the files saying that they're not currently being used instead of deleting them.
Also  I'm thinking about pausing this PR and see first if it's feasible to upgrade generator version, then see if delete/comment unused template files.

at the end I've added a comment instead of deleting templates.


The virtual environment configured in the project does not work

Configuration of my project:
{
	"folders": [
		{
			"path": "."
		}
	],
	"settings": {
		"LSP": {
			"LSP-pylsp": {
				"settings": {
					"pylsp.plugins.jedi.environment": "/Users/thepoy/venvs/spider"
				}
			}
		},
	}
}

Although there is no error or exception thrown, none of the packages in the virtual environment can be prompted or automatically completed.
Virtual environment directory structure:
.
├── bin
├── include
├── lib
│   └── python3.8
│       └── site-packages
└── share

It can be seen that it is a virtual environment generated by python3-venv.

Indeed the project overrides don't work as expected. They will work if you use the pylsp key instead of LSP-pylsp.
I'll see what I can do about that but probably will have to not override the LSP-pylsp name which is currently done so that onlly pylsp is shown in the status bar.

Hi @rchl - I don't believe #32 fixed this. I've confirmed that I can set my virtual environment via the package settings:
// User/LSP-pylsp.sublime-settings
{
    "settings": {
        "pylsp.plugins.jedi.environment": "./.venv/",

However, if I try to set this in the project config, it doesn't seem to be picked up. I've tried both:
    "settings":
    {
        "LSP":
        {
            "pylsp":
            {
                "settings":
                {
                    "pylsp.plugins.jedi.environment": "./.venv/"

and

    "settings":
    {
        "LSP":
        {
            "LSP-pylsp":
            {
                "settings":
                {
                    "pylsp.plugins.jedi.environment": "./.venv/"

Any ideas what I'm missing?

The last example matches expected structure.
Use that last example then open a file where you expect it to work and then run LSP: Troubleshoot server. Feel free to share those results.

LSP: Troubleshoot server doesn't seem to be available on the command palette. I'm guessing this is only available on the ST4 version of LSP? I'm still using ST3 due to some package incompatibilities.
Is there an alternate way to debug this? LSP-pylsp is running, it's just ignoring the project config. e.g., I can set  "pylsp.plugins.pycodestyle.enabled": false, in pylsp's settings and it works, but setting this in the project config has no effect.

You may need to use “lsp-pylsp” instead of “LSP-pylsp” as the key in your .sublime-project. The key is the name of the client configuration, visible as a permanent status in the status bar.

        "LSP": {
            "lsp-pylsp": {

That seems to work. It might be worth mentioning in the docs? I've seen LSP-pylsp and pylsp suggested, but not lsp-pylsp for project settings.
Unfortunately, I'm having other issues with pylsp (e.g, flake8 doesn't always work? it worked once, but now I can't get it to run again?), so I've opted for a combination of sublimelinter-flake8 and lsp-pyright. Thanks for the help though.


improve typography

Proposed changes
Tweaked some typography in sshd article

Deploy preview for modest-edison-79d82e ready!
Built with commit cce221fcda3811aaad95671f16eed5a86ca5eb24
https://deploy-preview-7185--modest-edison-79d82e.netlify.com


googleMap template not loading

Hey guys,
I'm using this package with Meteor <IP_ADDRESS> and I can't manage to display the map.

    {{> googleMap name="awesomeMap" options=mapOptions}}

In my onRendered function:
GoogleMaps.load({
   key: Meteor.settings.public.googleApiKey
});

And the helper
mapOption() {
    if (GoogleMaps.loaded()) {
        // Map initialization options
        return {
            center: new google.maps.LatLng(-37.8136, 144.9631),
            zoom: 8
        };
    }
}

I'm guessing it's because I don't import the googleMap template but how can I do that ?

That code looks fine, without seeing the rest of the project I can't really guess too much. If you like, it would be helpful if you could put the project on github so that we can take a look. See here http://stackoverflow.com/help/mcve

The project is on Github but I switched to Leaflet maps because I could not find a solution.
However, I'm still interesting in using Google Maps and figuring out why this does not work.
I will create a branch as soon as I can and let you take a look, if you have the time of course.
Thank you for your help.

Did you set the css for
 like so:
.map-container {
  width: 800px;
  max-width: 100%;
  height: 500px;
}

-- https://github.com/dburles/meteor-google-maps/blob/master/README.md#usage-overview
Without the height and width set the element will completely collapse and you won't see the map.


Why are all releases "pre-release"?

This is the only repository I have seen that does not have a "latest" release.
The lack of latest release makes it harder to install the latest version programmatically.
In the majority of other repos that provide a release binary, I can do:
$ curl -s https://api.github.com/repos/wagoodman/dive/releases/latest

or more specifically (in my bash scripts):
# Get the latest version
version=$(curl -s https://api.github.com/repos/wagoodman/dive/releases/latest | grep "tag_name" | cut -d : -f 2,3 | tr -d \"\ ,v)

but this trick does not work if there is no latest release...

This is to denote that this is a pre-1.0 release, however, I overlooked that the latest URL would not be available when releasing with the pre-release flag. I think this is useful enough to stop using the pre-release flag before 1.0.

@wagoodman, I think that your interpretation of "pre-release" is different from the most widespread usage of the term in the context of semantic versioning. According to the naming, all the releases that you published so far are proper releases. The fact that those are "pre-1.0" versions/releases is known because all of them start with 0.. Type "pre-release" should be used for versions such as v0.0.0-rc.
Hence, you may use "pre-releases" say a week before "releases", so that users that programmatically retrieve the latest version can test/evaluate it. Other users that retrieve the latest "stable" will not be affected. However, I don't know if the naming of docker images (goreleaser) would need to be fixed to support this.

Thanks for your input, I've made the last available release not a pre-release and removed the prerelease flag from the go releaser config. curl away! :)

Thank you.


Resolve ModuleNotFoundError when using the sim-explorer CLI

ModuleNotFoundError: No module named 'sim_explorer.case'; 'sim_explorer' is not a package

I that related to the same error as found by several other participants: "AssertionError: Unable to create execution from path. Please check if path is correct..." There it turned out that the PyPi version of sim-explorer lags behind the pip install version and therefore newest features where not included when installing from PyPi. We need to check that.

The particular issue solved in this PR was not related to the "from pypi or not from pypi" effect.  I installed sim_explorer directly from source, and the behaviour with respect the issue solved here was same; no difference in between installing from pypi or building from source. It was a second issue on top.

For my own learning: what exactly was the bug and what needs to be remembered to allow the package name as cli name?

I explained the background in a comment directly in sim_explorer/cli/sim_explorer.py.  See changes here in PR #7

Thank you. i did not find that before.


How to set Delivery confirmations or webhook URL for delivery reports.

Where and how do I set the URL to receive Delivery confirmations?
It is not clear reading: https://help.bulkgate.com/docs/en/http-low-level-api-delivery-confirmations-and-incoming-sms.html#delivery-confirmation-parameters

Hello,
you must go to our Portal. And go to left menu:
Modules & APIs > Select your created application  > Delivery reports > URL delivery reports > "+"

Your URL must be available from our portal.


Add favicon to server app

Currently only the client app has the new favicon while the server app has no favicon at all.
Add a favicon to the server app too (it can be the same one from client)

Moved to levechad-frontend/#17


clarification on universal introduction rule

I think I need to make explicit that universal introduction has to replace all instances of the given name with the variable. I think. I want to think a bit more about it but I realized we need to rule out a derivation of forall x Rax from Raa, in cases where a is arbitrary. (Suppose we have forall x Rxx as a premise.)

I corrected this issue.


 re-orders items in complete_info() in insert mode completion

Steps to reproduce
Start Vim using following command.  Completion popup window opens. In the completion menu type <c-n> twice, you'll see the output of complete_info() echoed. It shows the correct order of items (foo, bar, baz). Now type <c-p> to go back one item. The order of items has changed! It echoes baz, bar, foo. The selected field shows the correct index but it does not match the re-ordered list.
vim -Nu NONE -S <(cat <<EOF
    " vim:ts=4:ft=vim
    vim9script
    :set shortmess=I
    :set completeopt=menuone,popup,noinsert,noselect
    :au CompleteChanged * echo complete_info()
    def Items()
        var items = [
            {word: 'foo', menu: 'fmenu', user_data: 'fud'},
            {word: 'bar', menu: 'bmenu', user_data: 'bud'},
            {word: 'baz', menu: 'zmenu', user_data: 'zud'},
        ]
        items->complete(col('.'))
    enddef
    :autocmd TextChangedI <buffer> Items()
EOF
)

Expected behaviour
<c-p> should not reorder items in complete_info().
Version of Vim
9.1
Environment
VIM - Vi IMproved 9.1 (2024 Jan 02, compiled Mar 05 2024 19:39:07)
macOS version - arm64
Included patches: 1-150
Compiled by Homebrew
Huge version without GUI.  Features included (+) or not (-):
+acl               +file_in_path      +mouse_urxvt       -tag_any_white
+arabic            +find_in_path      +mouse_xterm       -tcl
+autocmd           +float             +multi_byte        +termguicolors
+autochdir         +folding           +multi_lang        +terminal
-autoservername    -footer            -mzscheme          +terminfo
-balloon_eval      +fork()            +netbeans_intg     +termresponse
+balloon_eval_term +gettext           +num64             +textobjects
-browse            -hangul_input      +packages          +textprop
++builtin_terms    +iconv             +path_extra        +timers
+byte_offset       +insert_expand     +perl              +title
+channel           +ipv6              +persistent_undo   -toolbar
+cindent           +job               +popupwin          +user_commands
-clientserver      +jumplist          +postscript        +vartabs
+clipboard         +keymap            +printer           +vertsplit
+cmdline_compl     +lambda            +profile           +vim9script
+cmdline_hist      +langmap           -python            +viminfo
+cmdline_info      +libcall           +python3           +virtualedit
+comments          +linebreak         +quickfix          +visual
+conceal           +lispindent        +reltime           +visualextra
+cryptv            +listcmds          +rightleft         +vreplace
+cscope            +localmap          +ruby              +wildignore
+cursorbind        +lua               +scrollbind        +wildmenu
+cursorshape       +menu              +signs             +windows
+dialog_con        +mksession         +smartindent       +writebackup
+diff              +modify_fname      +sodium            -X11
+digraphs          +mouse             +sound             -xattr
-dnd               -mouseshape        +spell             -xfontset
-ebcdic            +mouse_dec         +startuptime       -xim
+emacs_tags        -mouse_gpm         +statusline        -xpm
+eval              -mouse_jsbterm     -sun_workshop      -xsmp
+ex_extra          +mouse_netterm     +syntax            -xterm_clipboard
+extra_search      +mouse_sgr         +tag_binary        -xterm_save
-farsi             -mouse_sysmouse    -tag_old_static
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
  fall-back for $VIM: "/opt/homebrew/share/vim"
Compilation: clang -c -I. -Iproto -DHAVE_CONFIG_H -DMACOS_X -DMACOS_X_DARWIN -g -O2 -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: clang -o vim -lm -lncurses -lsodium -liconv -lintl -framework AppKit -L/opt/homebrew/opt/lua/lib -llua5.4 -mmacosx-version-min=13.6 -fstack-protector-strong -L/opt/homebrew/opt/perl/lib/perl5/5.38/darwin-thread-multi-2level/CORE -lperl<EMAIL_ADDRESS>-lpython3.12 -framework CoreFoundation -lruby.3.3 -L/opt/homebrew/Cellar/ruby/3.3.0/lib

Logs and stack traces
No response

Hm, I suspected, that v9.0.2018  could have been causing it. And git bisect confirms this :(

It is very strange and I wonder why the existing tests did not catch it. The function responsible for it is this one here: https://github.com/vim/vim/blob/0e17f7e97290f81ff55743ab5cdc69ef118be080/src/insexpand.c#L3088-L3110
As you can see, if iterating the list backwards, the items will be added in backwards order to the list, which is obviously wrong. I still don't understand why the tests work however. I tried a few things, but didn't findd a way to fix this yet.

I wrote a test to provoke it. Let me look into this further.

I fixed the bug. I'll send a PR soon.

Should be fixed by https://github.com/vim/vim/pull/14231


Judith/dcos site 244

Description

Urgency

[ ] Blocker
[ ] High
[x] Medium

Requirements

Test all commands and procedures.
Build content locally and test for formatting/links.
Add redirects to dcos-website/redirect-files.
Change all affected versions (e.g. 1.7, 1.8, and 1.9).
See the contribution guidelines.

Looks great, glad we were able to make room for it in the top menu!


[Android] Activity class removed from created .aar file

When I have a property, or a method using the Activity type, and create a .aar file from this. The properties and methods just don't exist in the created .aar file.
public static string Endpoint { get; set; }

public static bool IsSharing { get; set; }

public static Activity Activity { get; set; }

So getters and setters would be created for Endpoint and IsSharing, but Activity doesn't exist.

This also happens if there is a method that accepts Activity as a parameter. It just doesn't create the method at all.

I think this is because we ignore any type from Mono.Android.dll in regular classes. Can you try the same but with a class that inherits from java.lang.Object?

Made a 'Test' class inheriting from Java.Lang.Object and a property using the class and a method using the class were both not created in the .aar file.

@simontocknell it worked for me when I added a test: https://github.com/jonathanpeppers/Embeddinator-4000/commit/ce8f6d604686c09501cd2f1623a444f3dfb39123
Are you missing the [Export] and/or [Register] attributes?
Example here:
https://developer.xamarin.com/guides/cross-platform/dotnet-embedding/getting-started/java/android/#Current_Limitations_on_Android

@jonathanpeppers added a test for this, re-open if still an issue.


Update sejda-pdf-desktop to 2.5.0

After making all changes to the cask:

[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} left no offenses.
[x] The commit message includes the cask’s name and version.

There’s an unrelated commit.

@vitorgalvao i have corrected it


C++: Range analysis not picking up on condition because of implicit casts

Description of the issue
void test(unsigned long count) {
    for (int i = 0; i < count - 2; ++i) {
        sink(i);
    }
}

By looking at the code, we would expect a bound of the form i <= count -3 at the sink call.
However, because of the implicit conversion from int to unsigned long (which is not a safeCast),
the range analysis ignores the condition.
A case should be added to the RA that handles this.

Hi, if count = 0, the loop is entered with i = 0.  In this case, i <= count - 3 evaluates to true as a C expression (due to the conversion), but it doesn't hold as a mathematical expression.

Thanks for the explanation!
So this is actually part of the behaviour that the RA doesn't model under/overflow.
Still, the slightly modified example of
void test19(unsigned long count) {
  if (count < 3) {
    return;
  }
  for (int i = 0; i < count - 2; ++i) {
      sink(i);
  }
}

shows that no "back-porting" of bounds on i (converted to unsigned long) happens to i (non-converted). I think if the RA can prove that count -2 >= 0, (i.e. no underflow occurs), it would be safe to have i <= count - 3.
The only soundness violation would be if the expression on the RHS is count +1 and there's overflow happening, but that is not handled in other parts of the RA, either.

These examples certainly show that handling type conversions is no trivial matter. Indeed it can be a source of security vulnerabilities. In your examples, if an attacker can set count to a sufficiently large number, then i will likely overflow before reaching it and lead to an infinite loop (actually undefined behaviour).


TeamCity Support

Having difficulty making PRIG work under TeamCity (msbuild 2015)
[MSBuild output]   ConnectorTests\ConnectorPrivateTest.cs(4,40): error CS0234: The type or namespace name 'Prig' does not exist in the namespace 'XXXXXXX.YYYY' (are you missing an assembly reference?) [C:\BuildAgent\work\e7ff6effff03f\xxxxx.yyyy.com\Tests\PrigTests\PrigTests.csproj]**
Can PRIG only be run in VS ?

I have never tested Prig in TeamCity, sorry. It seems too expensive for us who are open source developer.
However, Prig supports free CI environment like AppVeyor. The document possibly help you.

TeamCity is totally free as long as you have less than 20 build configurations per server! We use the free version in many projects to take care of building, testing and deploying our code (along with Octopus).
You should really check it out - https://www.jetbrains.com/teamcity/download/

OMG :scream: I have never known that! I will try it and investigate your reporting problem. Thank you for the information!

There are 2 issues actually:

The prig test project won't compile on TC as @ngjermundshaug mentioned
When we generate those assemblies locally (using VS), then commit those assemblies to code repository and reference them via "Add reference" in the prig test project then the whole thing compiles on TC. But another problem is that the test runner in TC does not enable the prig test adapter (or there is no test adapter at all). For this reason the tests are using original implementations instead of stubs. By enabling test adapter I mean clicking this: http://bit.ly/2jon8cz.

So we need a way to let TeamCity replace the implementations with stubs before running the tests. What actually this option in VS ("Enable Test Adapter for ...") does behind the scenes?

We have made it working with following steps:

Prig generated assemblies and Prig native dll (that get installed as nuget packages but are not inthe nuget feed) are committed to code repository and then referenced manually with "Add reference" to proper projects
Installed and registered Prig in VisualStudio which is running on the build agent
Modify UnitTest build step not to use built-in test runner (e.g. VSTest), but instead use a CommandLine step. Reason is that prig needs to do some work before the tests are run. The command:

cd Tests\PrigTests\bin\Release
prig run -process "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" -arguments PrigTests.dll

Run the build and enjoy Prig on TeamCity

Thanks again for making Prig.

I'm temporarily relieved to hear that you made it working :relieved:
One of the things you might notice is that Prig generated assemblies -- we call them Prig Assembly -- are sensitive than you expected. It will break by a trifling matter. For example, applying Windows Update, installing .NET service pack and so on(This is the reason that we decide to generate Prig Assembly on build time). So, when the committed Prig Assembly is not worked, you have to rebuild and commit them again.
Please contact me if there is anything.

Just an added note, I've got prig running on our Jenkins build server. My basic steps are to get tests compiling/running from the commandline first. Once they are running, you should easily be able to adapt to your CI system - especially if it supports the CLI (Powershell/Cmd).
Be sure to reference the wiki for pointers!
https://github.com/urasandesu/Prig/wiki/AppVeyor-Support


v0.9.7 Stage 4 testing PHA00001 does not see "recall" status of a batch with zero quantity

Email from Primoz at 28th July 2022 12:14, Subject: RE: Help on provisioning products and batches RE: PL - FGT - Stage 4 testing - Pfizer

I did recall at the end, and saw the status at WHS screen:

But not the PHA screen…:

I'm not sure this is a bug.... The notification algorithm is designed to message all participants with the product/batch combination in stock. If they do not have it in stock, they are not notified....

So, for now, we will classify this as a won't fix.


[build] Use */milestone/16 tags for meta-ros and meta-ros-webos

Merged to other branches as well:
fc860bda3..92fc415ed  build -> build-next
and tagged as:
build/milestones/16


KijijiApiException: Error: Auth token is invalid. Validation of the authentication token in API request failed.

getting this error when posting a new ad
KijijiApiException: Error: Auth token is invalid. Validation of the authentication token in API request failed.

I believe this means that your login token as expired. I'm guessing that you originally logged in many days ago and have been using the same token ever since.
I've yet to determine how long Kijiji will keep the token active for before they consider it expired, and perhaps implement a way for it to auto refresh the token when it does.
Could you try logging out and then logging back in again to manually refresh the token?

The API key needs to be updated (same issue as the first issue I ever posted)
https://github.com/jackm/kijiji-manager/issues/23
Worked for me

Please update to release v0.1.8


Text change in add account section

"Import them to Hexa"

Verified this issue on dev app v1.9.5(331)


Feat: add stale clean step

Description of your changes
copilot:all

Fixes #
I have:

[ ] Read and followed KubeVela's contribution process.
[ ] Related Docs updated properly. In a new feature or configuration option, an update to the documentation is necessary.
[ ] Run make reviewable to ensure this PR is ready for review.
[ ] Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

Special notes for your reviewer

I don't think we need it for now, thanks for contributions!


Confuse About Unprojection in paper

In Appendix B,Figure 4. Detailed ODIN Architecture Components, "On the Left is the 3D RelPos Attention module which takes as input the depth, camera parameters and feature maps from all views, lifts the features to 3D to get 3D tokens."
1.Could you please show the location of code corresponding to "lifts the features to 3D"? Especially the part of "Depth Maps" and "Feature Maps".
2.Is it the func "get_multiview_xyz" in dataset_mapper_scannet.py?
But "Feature Maps" is not used in it.Maybe I misundertand the meaning.

part of resnet.py also use "project",but it project res to trans.

    # project x
    x2 = self.res_to_trans[name](x)

    # cross view attention
    x2 = self.cross_view_attn[name](
        feature_list=[x2],
        xyz_list=[x_xyz[index]],
        shape=shape[:2],
        multiview_data=mv_data,
        voxelize=self.cfg.INPUT.VOXELIZE
    )[0]

    # project back
    x2 = self.trans_to_res[name](x2)

    # skip connection
    x = x + x2

Thanks for the question!
You were almost there: get_multiview_xyz generates the xyz location for each pixel of the 2D feature maps.


Enhance Qdrant VS  performances by using async embed documents

Description: Since OpenAI supports async embed documents then the Qdrant VS (and other as well but I focus on Qdrant for now) should use it as well to avoid blocking IO when creating embedded data
Dependencies: No
Tag maintainer: @agola11

cc @kacperlukawski

@danhnn Thanks for your contribution. I want to reuse some code in both _aconstruct_instance and _construct_instance. It would be easier to maintain the code.
I still need some time to verify it. The drawback is, not all the embeddings support async API.

landed in #9462, thank you @danhnn and @kacperlukawski!


not able to find way to add new key-value pair and how to initialize i18n with value from mongoDB

Dear Team,
Need help for below points. I am not getting references for below things:

How do we initialize the mongoDB with language data
How to upsert existing key value pair
How i18n in react initializes with the mongoDB data as resource

I followed the readMe and initialized the i18next using nodeJS as below, which created a new table in mongoDB:
i18next.use(Backend).init({
// Backend Options
backend: {
host: 'localhost',
port: 27017,
dbName: 'dy-mde', // Required field
},
})_

Regards,
Prem

@Unknown051 @lamualfa @mobaabid please for your comments

How do we initialize the mongoDB with language data

The initializing process should be done in i18next layer. A backend layer like this library can't do it directly. See https://www.i18next.com/how-to/add-or-load-translations for further information.

How to upsert existing key value pair

You can update the locale data directly via i18next. This Backend plugin with update it automatically.

How i18n in react initializes with the mongoDB data as resource

I am not sure I fully understand this question.
If you mean to use i18next in the React.js application, you can follow this guide https://react.i18next.com/getting-started.
But if you mean the mechanism that i18next use to interact with their backend, the backend will implement some of the abstraction methods that i18next provided before. For further information, you can follow this guide about creating your own plugin https://www.i18next.com/misc/creating-own-plugins#backend.

I followed the readMe and initialized the i18next using nodeJS as below, which created a new table in mongoDB:

Yeah, it's already correct. The collection is still empty because you don't initialize any data using i18next.

@lamualfa thanks for your comments. Please for your inputs to below cases what we have
we have 2 cases to implement

To use mongoDB to store all the translation values and to fetch the value from mongoDB as a source for initializing i18next

similar to below sample code
i18next.use(Backend).use(middleware.LanguageDetector).init({
debug: true,
load: ['ar','en'],
fallbackLng: 'ar',
backend: {
uri: 'mongodb://localhost/test',
collection: 'translations'
},

Providing user an option to add new translation text on runtime. Once we receive the input from user, we need to update the existing key-value pair in mongoDB with the new value received. Once mongoDB is updated with user input. We need to reload the resource for i18n

we believe this can be implemented with the help of 'i18next-node-mongodb-backend-next'

To use mongoDB to store all the translation values and to fetch the value from mongoDB as a source for initializing i18next

You must insert and read the translation data via i18next, not directly into the database. The Backend layer, like this library, doesn't provide any of those features.

Providing user an option to add new translation text on runtime. Once we receive the input from user, we need to update the existing key-value pair in mongoDB with the new value received. Once mongoDB is updated with user input. We need to reload the resource for i18n

Use t method to read the translation data. Use addResource method to add or update the translation data. Use reloadResources to synchronize data between i18next and the database.
References

https://www.i18next.com/overview/api?q=update#t
https://www.i18next.com/overview/api#addresource
https://www.i18next.com/overview/api#reloadresources

@lamualfa thanks for quick response
sorry for more questions, I am trying to understand how I can use i18next-node-mongodb-backend-next
from below point in the readMe
This is a i18next backend to be used Node JS. It will load resources from a MongoDB database with official node mongodb
I understood this package can be used to load data from mongoDB for i18next initialization. Am I right ?

I understood this package can be used to load data from mongoDB for i18next initialization. Am I right ?

Yeah, of course. This library has been officially approved by i18next team.

@lamualfa I am looking for sample to understand how to do the same
can u help me with that ?
thanks,
prem

@lamualfa I am looking for sample to understand how to do the same
can u help me with that ?
thanks,
prem

Try looking these examples https://github.com/lamualfa/i18next-node-mongodb-backend-next/tree/v0.x-examples.

@lamualfa I am going through the examples
will comeback, If I need more info
might trouble you again with questions, sorry for that :)
Regards,
prem


Add Math.floor to ensure that we overwrite indexes.

There is a bug here that Math.floor() was not being called.
The code was overwriting the previous 100 instances but instead
of overwriting them they were inserting floating points keys into
the array as keys turning the array into a dictionary.
When we add endpoints to lb_pool, we loop over the array and just
add the first 100 items, which are the original ones and not the
looping over the dictionary keys we inserted.
r: @Matt-Esch @jakelarkn

👍


How bcbio scale jobs to cluster?

I am quite confused to the memory usage and job assignment to the cluster. In the bcbio_system.yaml file I configured the cores 16G and memory  3G. According to the bcbio document it means that each core will use 3G memory. Meanwhile, does this configuration also specify that each job will use 16 cores? If so, I use the parameter -n 16 bcbio will only run one job even if I have adequate cores and memory in my cluster?  is my understand right?

Thanks for the question, the interaction between the bcbio_system specification and -n is documented here:
http://bcbio-nextgen.readthedocs.io/en/latest/contents/parallel.html#tuning-core-and-memory-usage
In short, the bcbio_system cores and memory specify how many resources to ask for on each machine in the cluster, and -n specifies the total cores to try and allocate. So you're exactly right, if you specify 16 cores in bcbio_system and -n 16 you'll get one job allocated. If you specify -n 32 it'll get two jobs with 16 cores, and so on. Hope this helps.