Module paths are messed up

Description
If the nodeIntegration is enabled via the workaround mentioned in https://github.com/twolfson/karma-electron/issues/38#issuecomment-491510277, it seems to mess up the module paths which leads to modules not being able to be loaded from node_modules.
Precisely, outputting the value of module.paths in the Electron window (via devtools) gives me:
> module.paths
(2) ["C:\Dev\karma-electron-repro\testa…tron\dist\resources\default_app.asar\node_modules", "C:\Dev\karma-electron-repro\testa…node_modules\electron\dist\resources\node_modules"]
0: "C:\Dev\karma-electron-repro\testapp\node_modules\electron\dist\resources\default_app.asar\node_modules"
1: "C:\Dev\karma-electron-repro\testapp\node_modules\electron\dist\resources\node_modules"
length: 2
__proto__: Array(0)

This does not comply with the behaviour of a "directly launched" Electron which also adds the node_modules folder of the directory it is launched from to the module search path.
Essentially, this behaviour leads to modules that are placed in node_modules not being found.
Reproduction

Clone https://github.com/Jusonex/karma-electron-testapp
npm install
Apply require hackfix by adding a require line with the absolute path to the nodeIntegration enable script after https://github.com/twolfson/karma-electron/blob/master/lib/electron-launcher.js#L40-L42
npm test
Open developer tools in the Electron window.
Type require('lodash')
Type module.paths

This is likely caused by the same issue in #40. We need to wrap all files to provide the proper paths for require and module.paths to load against
https://github.com/twolfson/karma-electron/blob/6.1.1/lib/node-integration-iframe.mustache.js#L36
Please see README for setting up preprocessors and client.useIframe
https://github.com/twolfson/karma-electron/tree/6.1.1#getting-started

Can you provide examples of what the expected module.paths should look like for our comparison?

Oh nvm, I thought there was a response on here too. The comment posted earlier should still resolve this https://github.com/twolfson/karma-electron/issues/41#issuecomment-501455073

First of all, thanks for your great work on issue #40.
I migrated the test project to version 6.3.0 and added preprocessors and client.useIframe as you suggested. However, I'm still experiencing the same problem.
You can review all my changes to a default Angular installation here: https://github.com/Jusonex/karma-electron-testapp/compare/ddbab1e...master
I also added a require("sqlite3") line that demonstrates the problem in a more practical manner. Since sqlite3 contains native modules, it has to be loaded as webpack external.

Okay, let's start from the beginning to I fully understand the issue
What is the behavior you're seeing on launch? Are tests running? What's the expected behavior?

What is the behavior you're seeing on launch?

21 06 2019 10:01:44.822:INFO [karma-server]: Karma v4.0.1 server started at http://<IP_ADDRESS>:9876/
21 06 2019 10:01:44.823:INFO [launcher]: Launching browsers CustomElectron with concurrency unlimited
karma-electron: `--show` is now deprecated. Please use `browserWindowOptions.show` instead
21 06 2019 10:01:44.832:INFO [launcher]: Starting browser Electron
21 06 2019 10:01:49.666:WARN [karma]: No captured browser, open http://localhost:9876/
21 06 2019 10:01:49.985:INFO [Electron 5.0.4 (Node 12.0.0)]: Connected on socket CdMl_yYqQ550D6QAAAAA with id 18121251
Electron 5.0.4 (Node 12.0.0) ERROR
  {
    "message": "Uncaught Error: Cannot find module 'sqlite3'\nRequire stack:\n- C:\\Dev\\karma-electron-repro\\testapp\\node_modules\\electron\\dist\\resources\\electron.asar\\renderer\\init.js\nat internal/modules/cjs/loader.js:662:5\n\nundefined",
    "str": "Uncaught Error: Cannot find module 'sqlite3'\nRequire stack:\n- C:\\Dev\\karma-electron-repro\\testapp\\node_modules\\electron\\dist\\resources\\electron.asar\\renderer\\init.js\nat internal/modules/cjs/loader.js:662:5\n\nundefined"
  }

Are tests running?

No, because it errors before tests are executed.

What's the expected behavior?

I expect the error message to not appear and tests run successfully. In ng serve mode, using modules from the node_modules folder works perfectly fine (assuming webpack externals are set up correctly, but that's unrelated to this issue).

Ah, okay. It sounds like that could be us but it could also be a configuration error or a missing plugin
The repo has too much content for me to quickly and easily verify that the issue is karma-electron. Can you create a minimal version which only has karma-electron, your testing framework (e.g. jasmine), and is reproducing the error?


Diffuser Issue

Hi!
While I'm running run_dataset_caching.py, the following error occurs:
Traceback (most recent call last):
  File "/root/projects/E2E/nuplan-devkit/nuplan/planning/utils/multithreading/ray_execution.py", line 117, in ray_map
    results = _ray_map_items(task, *item_lists, log_dir=log_dir)
  File "/root/projects/E2E/nuplan-devkit/nuplan/planning/utils/multithreading/ray_execution.py", line 100, in _ray_map_items
    for object_id, output in tqdm(_ray_object_iterator(object_ids), total=len(object_ids), desc='Ray objects'):
  File "/high_perf_store/surround-view/cqm/envs/diffusiondrive/lib/python3.9/site-packages/tqdm/std.py", line 1181, in __iter__
    for obj in iterable:
  File "/root/projects/E2E/nuplan-devkit/nuplan/planning/utils/multithreading/ray_execution.py", line 28, in _ray_object_iterator
    yield next_id, ray.get(next_id)
  File "/high_perf_store/surround-view/cqm/envs/diffusiondrive/lib/python3.9/site-packages/ray/_private/auto_init_hook.py", line 21, in auto_init_wrapper
    return fn(*args, **kwargs)
  File "/high_perf_store/surround-view/cqm/envs/diffusiondrive/lib/python3.9/site-packages/ray/_private/client_mode_hook.py", line 103, in wrapper
    return func(*args, **kwargs)
  File "/high_perf_store/surround-view/cqm/envs/diffusiondrive/lib/python3.9/site-packages/ray/_private/worker.py", line 2755, in get
    values, debugger_breakpoint = worker.get_objects(object_refs, timeout=timeout)
  File "/high_perf_store/surround-view/cqm/envs/diffusiondrive/lib/python3.9/site-packages/ray/_private/worker.py", line 906, in get_objects
    raise value.as_instanceof_cause()
ray.exceptions.RayTaskError(InstantiationException): ray::wrapped_fn() (pid=56893, ip=<IP_ADDRESS>)
AttributeError: module 'navsim.agents.diffusiondrive' has no attribute 'transfuser_agent'

During handling of the above exception, another exception occurred:

ray::wrapped_fn() (pid=56893, ip=<IP_ADDRESS>)
  File "/high_perf_store/surround-view/cqm/envs/diffusiondrive/lib/python3.9/site-packages/hydra/_internal/utils.py", line 645, in _locate
    obj = import_module(mod)
  File "/high_perf_store/surround-view/cqm/envs/diffusiondrive/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/root/projects/E2E/DiffusionDrive/navsim/agents/diffusiondrive/transfuser_agent.py", line 12, in <module>
    from navsim.agents.diffusiondrive.transfuser_model_v2 import V2TransfuserModel as TransfuserModel
  File "/root/projects/E2E/DiffusionDrive/navsim/agents/diffusiondrive/transfuser_model_v2.py", line 10, in <module>
    from diffusers.schedulers import DDIMScheduler
ModuleNotFoundError: No module named 'diffusers'

The above exception was the direct cause of the following exception:

ray::wrapped_fn() (pid=56893, ip=<IP_ADDRESS>)
  File "/high_perf_store/surround-view/cqm/envs/diffusiondrive/lib/python3.9/site-packages/hydra/_internal/instantiate/_instantiate2.py", line 134, in _resolve_target
    target = _locate(target)
  File "/high_perf_store/surround-view/cqm/envs/diffusiondrive/lib/python3.9/site-packages/hydra/_internal/utils.py", line 648, in _locate
    raise ImportError(
ImportError: Error loading 'navsim.agents.diffusiondrive.transfuser_agent.TransfuserAgent':
ModuleNotFoundError("No module named 'diffusers'")
Are you sure that 'transfuser_agent' is importable from module 'navsim.agents.diffusiondrive'?

The above exception was the direct cause of the following exception:

ray::wrapped_fn() (pid=56893, ip=<IP_ADDRESS>)
  File "/root/projects/E2E/nuplan-devkit/nuplan/planning/utils/multithreading/ray_execution.py", line 43, in wrapped_fn
    return fn(*args, **kwargs)
  File "/root/projects/E2E/DiffusionDrive/navsim/planning/script/run_dataset_caching.py", line 38, in cache_features
    agent: AbstractAgent = instantiate(cfg.agent)
  File "/high_perf_store/surround-view/cqm/envs/diffusiondrive/lib/python3.9/site-packages/hydra/_internal/instantiate/_instantiate2.py", line 222, in instantiate
    return instantiate_node(
  File "/high_perf_store/surround-view/cqm/envs/diffusiondrive/lib/python3.9/site-packages/hydra/_internal/instantiate/_instantiate2.py", line 325, in instantiate_node
    _target_ = _resolve_target(node.get(_Keys.TARGET), full_key)
  File "/high_perf_store/surround-view/cqm/envs/diffusiondrive/lib/python3.9/site-packages/hydra/_internal/instantiate/_instantiate2.py", line 139, in _resolve_target
    raise InstantiationException(msg) from e
hydra.errors.InstantiationException: Error locating target 'navsim.agents.diffusiondrive.transfuser_agent.TransfuserAgent', see chained exception above.
full_key: agent
Error executing job with overrides: ['agent=diffusiondrive_agent', 'experiment_name=training_diffusiondrive_agent', 'train_test_split=mini']
Traceback (most recent call last):
  File "/root/projects/E2E/nuplan-devkit/nuplan/planning/utils/multithreading/ray_execution.py", line 117, in ray_map
    results = _ray_map_items(task, *item_lists, log_dir=log_dir)
  File "/root/projects/E2E/nuplan-devkit/nuplan/planning/utils/multithreading/ray_execution.py", line 100, in _ray_map_items
    for object_id, output in tqdm(_ray_object_iterator(object_ids), total=len(object_ids), desc='Ray objects'):
  File "/high_perf_store/surround-view/cqm/envs/diffusiondrive/lib/python3.9/site-packages/tqdm/std.py", line 1181, in __iter__
    for obj in iterable:
  File "/root/projects/E2E/nuplan-devkit/nuplan/planning/utils/multithreading/ray_execution.py", line 28, in _ray_object_iterator
    yield next_id, ray.get(next_id)
  File "/high_perf_store/surround-view/cqm/envs/diffusiondrive/lib/python3.9/site-packages/ray/_private/auto_init_hook.py", line 21, in auto_init_wrapper
    return fn(*args, **kwargs)
  File "/high_perf_store/surround-view/cqm/envs/diffusiondrive/lib/python3.9/site-packages/ray/_private/client_mode_hook.py", line 103, in wrapper
    return func(*args, **kwargs)
  File "/high_perf_store/surround-view/cqm/envs/diffusiondrive/lib/python3.9/site-packages/ray/_private/worker.py", line 2755, in get
    values, debugger_breakpoint = worker.get_objects(object_refs, timeout=timeout)
  File "/high_perf_store/surround-view/cqm/envs/diffusiondrive/lib/python3.9/site-packages/ray/_private/worker.py", line 906, in get_objects
    raise value.as_instanceof_cause()
ray.exceptions.RayTaskError(InstantiationException): ray::wrapped_fn() (pid=56893, ip=<IP_ADDRESS>)
AttributeError: module 'navsim.agents.diffusiondrive' has no attribute 'transfuser_agent'

During handling of the above exception, another exception occurred:

ray::wrapped_fn() (pid=56893, ip=<IP_ADDRESS>)
  File "/high_perf_store/surround-view/cqm/envs/diffusiondrive/lib/python3.9/site-packages/hydra/_internal/utils.py", line 645, in _locate
    obj = import_module(mod)
  File "/high_perf_store/surround-view/cqm/envs/diffusiondrive/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/root/projects/E2E/DiffusionDrive/navsim/agents/diffusiondrive/transfuser_agent.py", line 12, in <module>
    from navsim.agents.diffusiondrive.transfuser_model_v2 import V2TransfuserModel as TransfuserModel
  File "/root/projects/E2E/DiffusionDrive/navsim/agents/diffusiondrive/transfuser_model_v2.py", line 10, in <module>
    from diffusers.schedulers import DDIMScheduler
ModuleNotFoundError: No module named 'diffusers'

The above exception was the direct cause of the following exception:

ray::wrapped_fn() (pid=56893, ip=<IP_ADDRESS>)
  File "/high_perf_store/surround-view/cqm/envs/diffusiondrive/lib/python3.9/site-packages/hydra/_internal/instantiate/_instantiate2.py", line 134, in _resolve_target
    target = _locate(target)
  File "/high_perf_store/surround-view/cqm/envs/diffusiondrive/lib/python3.9/site-packages/hydra/_internal/utils.py", line 648, in _locate
    raise ImportError(
ImportError: Error loading 'navsim.agents.diffusiondrive.transfuser_agent.TransfuserAgent':
ModuleNotFoundError("No module named 'diffusers'")
Are you sure that 'transfuser_agent' is importable from module 'navsim.agents.diffusiondrive'?

The above exception was the direct cause of the following exception:

ray::wrapped_fn() (pid=56893, ip=<IP_ADDRESS>)
  File "/root/projects/E2E/nuplan-devkit/nuplan/planning/utils/multithreading/ray_execution.py", line 43, in wrapped_fn
    return fn(*args, **kwargs)
  File "/root/projects/E2E/DiffusionDrive/navsim/planning/script/run_dataset_caching.py", line 38, in cache_features
    agent: AbstractAgent = instantiate(cfg.agent)
  File "/high_perf_store/surround-view/cqm/envs/diffusiondrive/lib/python3.9/site-packages/hydra/_internal/instantiate/_instantiate2.py", line 222, in instantiate
    return instantiate_node(
  File "/high_perf_store/surround-view/cqm/envs/diffusiondrive/lib/python3.9/site-packages/hydra/_internal/instantiate/_instantiate2.py", line 325, in instantiate_node
    _target_ = _resolve_target(node.get(_Keys.TARGET), full_key)
  File "/high_perf_store/surround-view/cqm/envs/diffusiondrive/lib/python3.9/site-packages/hydra/_internal/instantiate/_instantiate2.py", line 139, in _resolve_target
    raise InstantiationException(msg) from e
hydra.errors.InstantiationException: Error locating target 'navsim.agents.diffusiondrive.transfuser_agent.TransfuserAgent', see chained exception above.
full_key: agent

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/projects/E2E/DiffusionDrive/navsim/planning/script/run_dataset_caching.py", line 94, in main
    _ = worker_map(worker, cache_features, data_points)
  File "/root/projects/E2E/nuplan-devkit/nuplan/planning/utils/multithreading/worker_utils.py", line 33, in worker_map
    scattered_objects = worker.map(Task(fn=fn), object_chunks)
  File "/root/projects/E2E/nuplan-devkit/nuplan/planning/utils/multithreading/worker_pool.py", line 117, in map
    return self._map(task, *aligned_item_lists, verbose=verbose)
  File "/root/projects/E2E/DiffusionDrive/navsim/planning/utils/multithreading/worker_ray_no_torch.py", line 154, in _map
    return ray_map(task, *item_lists, log_dir=self._log_dir)  # type: ignore
  File "/root/projects/E2E/nuplan-devkit/nuplan/planning/utils/multithreading/ray_execution.py", line 122, in ray_map
    raise RuntimeError(exc)
RuntimeError: ray::wrapped_fn() (pid=56893, ip=<IP_ADDRESS>)
AttributeError: module 'navsim.agents.diffusiondrive' has no attribute 'transfuser_agent'

During handling of the above exception, another exception occurred:

ray::wrapped_fn() (pid=56893, ip=<IP_ADDRESS>)
  File "/high_perf_store/surround-view/cqm/envs/diffusiondrive/lib/python3.9/site-packages/hydra/_internal/utils.py", line 645, in _locate
    obj = import_module(mod)
  File "/high_perf_store/surround-view/cqm/envs/diffusiondrive/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/root/projects/E2E/DiffusionDrive/navsim/agents/diffusiondrive/transfuser_agent.py", line 12, in <module>
    from navsim.agents.diffusiondrive.transfuser_model_v2 import V2TransfuserModel as TransfuserModel
  File "/root/projects/E2E/DiffusionDrive/navsim/agents/diffusiondrive/transfuser_model_v2.py", line 10, in <module>
    from diffusers.schedulers import DDIMScheduler
ModuleNotFoundError: No module named 'diffusers'

The above exception was the direct cause of the following exception:

ray::wrapped_fn() (pid=56893, ip=<IP_ADDRESS>)
  File "/high_perf_store/surround-view/cqm/envs/diffusiondrive/lib/python3.9/site-packages/hydra/_internal/instantiate/_instantiate2.py", line 134, in _resolve_target
    target = _locate(target)
  File "/high_perf_store/surround-view/cqm/envs/diffusiondrive/lib/python3.9/site-packages/hydra/_internal/utils.py", line 648, in _locate
    raise ImportError(
ImportError: Error loading 'navsim.agents.diffusiondrive.transfuser_agent.TransfuserAgent':
ModuleNotFoundError("No module named 'diffusers'")
Are you sure that 'transfuser_agent' is importable from module 'navsim.agents.diffusiondrive'?

The above exception was the direct cause of the following exception:

ray::wrapped_fn() (pid=56893, ip=<IP_ADDRESS>)
  File "/root/projects/E2E/nuplan-devkit/nuplan/planning/utils/multithreading/ray_execution.py", line 43, in wrapped_fn
    return fn(*args, **kwargs)
  File "/root/projects/E2E/DiffusionDrive/navsim/planning/script/run_dataset_caching.py", line 38, in cache_features
    agent: AbstractAgent = instantiate(cfg.agent)
  File "/high_perf_store/surround-view/cqm/envs/diffusiondrive/lib/python3.9/site-packages/hydra/_internal/instantiate/_instantiate2.py", line 222, in instantiate
    return instantiate_node(
  File "/high_perf_store/surround-view/cqm/envs/diffusiondrive/lib/python3.9/site-packages/hydra/_internal/instantiate/_instantiate2.py", line 325, in instantiate_node
    _target_ = _resolve_target(node.get(_Keys.TARGET), full_key)
  File "/high_perf_store/surround-view/cqm/envs/diffusiondrive/lib/python3.9/site-packages/hydra/_internal/instantiate/_instantiate2.py", line 139, in _resolve_target
    raise InstantiationException(msg) from e
hydra.errors.InstantiationException: Error locating target 'navsim.agents.diffusiondrive.transfuser_agent.TransfuserAgent', see chained exception above.
full_key: agent

Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.

And it seems that two issues contribute to this error:

ImportError: Error loading 'navsim.agents.diffusiondrive.transfuser_agent.TransfuserAgent':
ModuleNotFoundError("No module named 'diffusers'").
AttributeError: module 'navsim.agents.diffusiondrive' has no attribute 'transfuser_agent'.

But I think that the AttributeError occurs due to the ImportError. So have you ever faced this "No module named 'diffusers'" error? Thanks!
I carefully followed the installation instruction, and I'm pretty sure that all environment requirements are satisfied.

python3 -m pip install diffusers solved this issue.


HW requirements - disk partitions

In convert2rhel and in leapp we have some old beaker tests that specifies the partitions that has to be created on the machine before running the tests.
We would like to specify the size of the partition, it's name, and the type whether it use regular standard partitioning or the LVM file system.
Example of the needed specification can be found here.
Perhaps, extending the functionality of the multiple disks intrudced in #893 can be used?
---

disk:
  - space: ">= 20 GB"
  - partition:
      name: "/var"
      size: "10 GB"
      type: "LVM"
  - partition:
      - name: "/var/log"
      - size: "5 GB"
      - type: "LVM"

Also there is a specific case, where we want to test a monolithic root partition. Everything is stored inside the root / partition and no swap is created.

Other proposal: https://github.com/teemtee/tmt/issues/2402


A warning window appears saying that a virus has been detected in the new version.

It says that the newly uploaded version has a virus detected.
It is also detected by Windows Defender, so it appears that a fix is needed.

no fix is needed


Consider using WKWebView if possible

So that devices running iOS 8 or later could ditch UIWebView and leverage the almighty power of WKWebView.

Won't be possible since WKWebView does not have the proper callbacks for this to work (UIWebView has -webView:shouldStartLoadWithRequest:navigationType:)


needs sample of an environment yaml file

This page really needs an example of an environment yaml file.
Just show this one or point to it somehow: https://github.com/Azure/azureml-examples/blob/main/cli/assets/environment/docker-image-plus-conda.yml

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

ID: 385ead8e-c1d5-0a76-d717-88b64d19b8cf
Version Independent ID: 048580a0-834d-90ce-7822-75f483155c94
Content: az ml environment
Content Source: latest/docs-ref-autogen/ml/environment.yml
GitHub Login: @rloutlaw
Microsoft Alias: routlaw

route to service team


ODocument.toMap() not copy all fields

OrientDB Version, operating system, or hardware.

v2.0 SNAPSHOT[ ] - .18[ ] .17[ ] .16[ ] .15[ ] .14[ ] .13[ ] .12[ ] .11[ ] .10[ ] .9[ ] .8[ ] .7[ ] .6[ ] .5[ ] .4[ ] .3[ ] .2[ ] .1[ ] .0[ ]
v2.1 SNAPSHOT[ ] - .16[ ] .15[ ] .14[ ] .13[ ] .12[ ] .11[ ] .10[ ] .9[ ] .8[ ] .7[ ] .6[ ] .5[ ] .4[ ] .3[ ] .2[ ] .1[ ] .0[ ]
v2.2 SNAPSHOT[ ] - .rc1[ ] .beta2[ ] .beta1[ ]12

Operating System

[ ] Linux
[ ] MacOSX
[ x] Windows
[ ] Other Unix
[ ] Other, name?

Expected behavior and actual behavior
aa [main] 12:34:51,599 DEBUG org.hibernate.ogm.datastore.orientdb.dialect.impl.ODocumentListTupleIterator: tuple json: {"@type":"d","@rid":"#25:0","@ve
rsion":1,"@class":"Customer","bKey":1,"createdDate":"2016-11-02 00:00:00","blocked":"N","name":"test","status":"VIP","@fieldTypes":"bKey=l,createdDate=
t"}
aa [main] 12:34:51,599 DEBUG org.hibernate.ogm.datastore.orientdb.dialect.impl.ODocumentListTupleIterator: tuple map: {bKey=1, createdDate=Wed Nov 02 0
0:00:00 MSK 2016, @rid=#25:0, @class=Customer, blocked=N, name=test, status=VIP}

Method toJSON copy to JSON all fields, but method toMap not copy '@version' field
Steps to reproduce the problem

hi @schernolyas,
This is on purpose, the toMap just extract the values of the document, to get the other information you need to use the ODocument api, doc.getVersion() ,doc.getIdentity() and doc.getSchemaClass() | doc.getClassName(), hope this help
Bye

Hi @tglman !
I think that it is not logical .... But if it is feature ...


Create streamlit page for "local file" ingestion

resolves #1017
This PR creates a page in the QA streamlit app to process drag-and-drop local data archives into the edm-recipe bucket on S3.
The interface prompts for dataset name, version, and a local file upload:

Upon hitting the ingest button, the uploaded file will be saved to a temporary local directory .library (in gitignore). Then the s3.upload_file function will be called to upload the file to "inbox" / dataset_name / version / file_name in edm-recipes.

A few notes for your first python contributions to code -
Two tools/commands that will be useful/necessary are black and mypy. black is a linter which formats python code - at any time, you can run black apps/qa/... (as specific as you want - it's pretty fast though so no need to get too specific) and it'll format python files in the provided path.
Mypy you run similarly, but it's doing type-checking - so if you define a function in one spot and declare that it takes a str arg and elsewhere call it with an int arg, mypy will throw an error. Mypy takes a tad longer to run so it's definitely worth just running on what you need

Let's test it out?
Given that we're not calling library yet, let's just make up a dummy dataset - call it for dataset "test" with say an empty text file or one line csv

I'll test locally to look at the interface, but would you mind putting some screenshots in the PR description? As well as describe the scope of the PR

I'll test locally to look at the interface, but would you mind putting some screenshots in the PR description? As well as describe the scope of the PR

Just did!

This looks great. Getting to this point has me thinking a bit about improving user experience, I have some ideas for how we can iterate (just in terms of keeping the UI clean while reporting the "state" of what's going on. But let's get this squashed and merged, and we can brainstorm a little bit about next steps (outside of the library connection)


Geo Table Improvements

[ ] remove rows with NA values and indicate at the bottom that XX locations have been omitted because of missing values

@ryantibs are you sure this is what you want? people won't be able to use the table to visually compare regions that have any NA missingness.


bug: converted keys do not serialize properly in javascript

Describe the bug
With the following schema:
{
  "properties": {
    "Id": {
      "type": "string"
    },
    "Name": {
      "type": "string"
    }
  }
}

The generated TS client will incorrectly try to access input.Id and input.Name during serialization. Even though the keys were converted to camelcase.
Additional context

Fixed in https://github.com/modiimedia/arri/pull/114


Remapping with fixed character not affected by keyboard layout changed for languages

Hello,
I would like to have the possibility to remap some keys combination to a fixed/invariant character.
My problem is:
I'm Italian but I want to use the US keyboard layout (not international with dummy keys).
In the Italian keyboard, I have à,è,ì,ò,ù and I would like to remap to

ALTGR-a -> à
ALTGR-e -> è
ALTGR-i -> ì
ALTGR-o -> ò
ALTGR-u -> ù

To try to use your remap capability, I switched on the Italian layout, I create the remap shortcut but when I switch back to the US layout all the remap characters are modified to the character present in the US layout and it is not my goal.
I would like to create a remap that not change also if I change the layout.
Thanks
If you'd like to see this feature implemented, add a 👍 reaction to this post.

@fabiocbr75
the feature you requested is tracked by https://github.com/microsoft/PowerToys/issues/6976


pythonPackages.numpy: 1.10.2 -> 1.10.4

Numpy bugfix release.
A single test failed, which I disabled.
I've removed the patch that disabled the large file support test and disabled it otherwise.
Unless someone wants this in now, I suggest we wait with merging until scipy 0.17 has been released (see #12129).

@adnelson I've added an explanation of why I disabled the test.
I think the commit that caused this is https://github.com/numpy/numpy/commit/e89d9bb2e16c1746ce234b81aff4731277b31ddd but I am not sure.

LGTM

I was 'saving' this until scipy update was out just to save some extra rebuilding but if Hydra is sitting idle :)


How to get repository id from publishSigned command

I want to release the staging repository that was created from running publishSigned, however sonatypeRelease will fail if there are more than one repository under the same staging profile. I don't want to release all the repositories, so sonatypeReleaseAll can't be used.

You can use these commands:

sonatypeStagingProfiles
sonatypeList

Is there a way to link the repository that was created by publishSigned? If I have two repositories under the same staging profile, how do I differentiate them?
Is there someway we can make publishSigned return the repository id that was just created?

You can use sonatypeOpen (session name) https://github.com/xerial/sbt-sonatype/blob/master/workflow.md

And also if you set publishTo as:
publishTo := soantypePublishTo

https://github.com/xerial/sbt-sonatype/blob/master/src/main/scala/xerial/sbt/Sonatype.scala#L84
Then you can send the artifact to the target profile.

This doesn't seem to work with publishSigned.
I use sonatypeOpen (profile name) (description), which creates a repository in sonatype, but it publishSigned doesn't take any parameters to publish to a specified repository.

@ChoiByungWook sbt-sonatype 3.0 has a feature to specify a single staging repository by using sonatypeSessionName key, which is [sbt-sonatype] (project name) (version) by default.
I'm not sure this works for your build configuration, but have a try.


tests-ci : drivers: counter: basic_api test Failed

**Describe the bug**
basic_api test is Failed on zephyr-v3.4.0-168-gdf0e03c5512c on mimxrt1060_evk
testcase path is drivers/counter/basic_api/short_relative_alarm

see logs for details

**To Reproduce**
1.
```
scripts/twister --device-testing --device-serial /dev/ttyACM0 -p mimxrt1060_evk      --sub-test drivers.counter
```
or
```
# cd tests/drivers/counter/basic_api/short_relative_alarm
# west build -b mimxrt1060_evk
# west flash
```
2. See error

**Expected behavior**
test pass

**Impact**

**Logs and console output**

```
START - test_short_relative_alarm

Skipped for gpt@401f0000
Testing timer0
Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/counter/counter_basic_api/src/test_counter.c:797: test_short_relative_alarm_instance: (i + 1 not equal to cnt)
timer0: Expected 1 callbacks, got 0
FAIL - test_short_relative_alarm in 0.124 seconds
```

**Environment (please complete the following information):**
 - OS: (e.g. Linux )
 - Toolchain (e.g Zephyr SDK)
 - Commit SHA or Version used: zephyr-v3.4.0-168-gdf0e03c5512c

it is pass on v3.4.0-rc3

retest pass


Implement Language selection feature

set english reviews to be rendered by default

 [5] implement language selection and display review-count by language


ImportError of Sapien2.0

System:

OS version: [Ubuntu 18.04]
Python version (if applicable): [Python 3.7]
SAPIEN version (pip freeze | grep sapien): 2.0a0
Environment: [Desktop]

Describe the bug
I want to import sapien2 and get the ImportError below.
Traceback (most recent call last):
File "xxxxxx.py", line 1, in
import sapien.core as sapien
File "/home/xxx/anaconda3/envs/xx/lib/python3.7/site-packages/sapien/init.py", line 1, in
from sapien import core, sensor, asset, example, utils
File "/home/xxx/anaconda3/envs/xx/lib/python3.7/site-packages/sapien/core/init.py", line 1, in
from .pysapien import *
ImportError: libvulkan.so.1: cannot open shared object file: No such file or directory
To Reproduce
Steps to reproduce the behavior:

pip install sapien==2.0a0
python

import sapien.core as sapien

Additional context
I can correctly import sapien1.1.1 by the same way, but failed with sapien2.0a0.

SAPIEN 2.0 has excluded the vulkan library from distribution since we find out it is a very bad idea to package it. libvulkan.so.1 typically comes with the graphics driver or the system (usually located at /usr/lib/x86_64-linux-gnu/libvulkan.so.1). If it is missing, maybe you can try to install the libvulkan1 package.


avoid tests creating test-db, test-db-* folders

I'd use memdown in all our tests. I don't think we need to test that new Store(name) creates a leveldb folder in a Node.js env.
We already did it in the constructor spec:
https://github.com/hoodiehq/pouchdb-hoodie-store/blob/master/tests/specs/constructor.js#L8-L12

Once we have that in, let's remove the lines from .gitignore


Add CZI to the license and modify to include 2023

Issue and/or context:
Add CZI to the license. Also update the license to 2023.
Changes:
Add CZI to the license. Also update the license to 2023.
Notes for Reviewer:
None.

Codecov Report
Base: 71.80% // Head: 80.95% // Increases project coverage by +9.14% :tada:

Coverage data is based on head (97ce03c) compared to base (eefabdc).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #727      +/-   ##
==========================================
+ Coverage   71.80%   80.95%   +9.14%
==========================================
  Files          68       30      -38
  Lines        3756     2200    -1556
==========================================
- Hits         2697     1781     -916
+ Misses       1059      419     -640

Flag
Coverage Δ

python
80.95% <ø> (ø)

r
?

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

Impacted Files
Coverage Δ

src/riterator.cpp

inst/tiledb/include/tiledb/query.h

R/utils.R

src/include/span/span.hpp

inst/tiledb/include/tiledb/vfs.h

R/TileDBObject.R

inst/tiledb/include/tiledb/config.h

R/TileDBArray.R

inst/tiledb/include/tiledb/deleter.h

R/SOMACollectionBase.R

... and 28 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

Merging on behalf of @maniarathi as she's on a few days' PTO at the moment


Fix/back button and explicit breadcrumb type links

Summary | Résumé
Trello
https://trello.com/c/98nyxaik/798-back-button-goes-to-the-last-page-from-date-time-selection-pages

changed some back buttons to breadcrumb style explicit links
Added js backbutton support
Fixed alert wizard to no longer need session primer for location ID, initial page for wizard includes location id in the url

Test instructions | Instructions pour tester la modification

QR Alert datetime page should not show back, instead explicit link back to details of place/event
Profile page also has explicit link back to new search
alert details has regular back link using js

 Back button goes to the last page (from date & time selection pages)


Error consultation

Hi,
Very thank you for your open sources, it is very helpful for me!
But when I run the code, there is an error happened:
IndexError: list index out of range
the error happend in the second for loop in the function "get_clause_list":
for i in sub_conj_pos:        del t[i]
The example I used is the sentence you given in the sentence.txt file, which is: "Because Mary and Samantha arrived at the bus station before noon, I did not see them at the station."
I would like to ask you why this error happend, and how could I solve it?
I would be very appreciate if you could help me solve this problem!
Thank you in advance!

I ran into this issue as well, and decided to take a look. Turns out that the get_pos function was implemented incorrectly. While it tries to get the positions of verb phrases in the tree, it uses recursion, passing in a subtree everytime the height of the tree is more than 2, and then returning the position of the verb phrase in that subtree. However, the function fails to account for the fact that the positions change depending on the root, so it gives incorrect positions, as it returns the position relative to the subtree passed in instead of the entire sentence tree. Once I found that out, I was able to fix it, and the script works fine otherwise.
To fix this, replace get_pos with the following:
def get_pos(t):
    vp_pos = []
    sub_conj_pos = []
    num_children = len(t)
    children = [t[i].label() for i in range(0,num_children)]

    flag = re.search(r"(S|SBAR|SBARQ|SINV|SQ)", ' '.join(children))

    if "VP" in children and not flag:
        for i in range(0, num_children):
            if t[i].label() == "VP":
                vp_pos.append(_get_position(t[i]))
    elif not "VP" in children and not flag:
        for i in range(0, num_children):
            if t[i].height() > 2:
                temp1,temp2 = get_pos(t[i])
                vp_pos.extend(temp1)
                sub_conj_pos.extend(temp2)
    # comment this "else" part, if want to include subordinating conjunctions
    else:
        for i in range(0, num_children):
            if t[i].label() in ["S","SBAR","SBARQ","SINV","SQ"]:
                temp1, temp2 = get_pos(t[i])
                vp_pos.extend(temp1)
                sub_conj_pos.extend(temp2)
            else:
                sub_conj_pos.append(_get_position(t[i]))

    return (vp_pos,sub_conj_pos)

def _get_position(node):
    position = []
    while node.parent():
        position.append(node.parent_index())
        node = node.parent()
    if not position:
        return node.treeposition()
    return node[position[::-1]].treeposition()  # Reverse to get from root to the node

I added a utility function to get the absolute position of the node (relative to the entire tree). This should fix the IndexError issue. I also modified lines 115-119, although if I'll be honest I don't know whether this really solves anything, but if the above code still causes issues, then the code below should fix it.
vp_pos, sub_conj_pos = _get_pos(t)
pos = set()
pos.update(vp_pos)
pos.update(sub_conj_pos)
for sub in reversed(list(t.subtrees())):
    if sub.treeposition() in pos:
        del t[sub.treeposition()]


Fix input files for build_*_demand rules

Feature Request
The individual files should be nested in the input function, electricity_study_demand. Same occurs for sector demand. I guess it may have been a merge issue that introduced this
https://github.com/PyPSA/pypsa-usa/blob/5be4d96f2d1069b5ddb9db3c8e8842a4515addc8/workflow/rules/build_electricity.smk#L273-L278
Suggested Solution
No response
Additional Info
No response

Addressed in PR #358


add html in .md files

Why when i add any html tag in markdown files i can't see any changes?
any tag, p tag, table tag and so on ...
please help me.

Without knowing your hugo version, config.toml and markdown content, it's just guessing. Probably: https://gohugo.io/getting-started/configuration-markup/ (search for "unsafe")

hugo version:
Hugo Static Site Generator v0.74.3-DA0437B4 linux/amd64 BuildDate: 2020-07-23T16:22:34Z
config.toml:
theme = "hugo-theme-learn"

[params]
  # Prefix URL to edit current page. Will display an "Edit this page" button on top right hand corner of every page.
  # Useful to give opportunity to people to create merge request for your doc.
  # See the config.toml file from this documentation site to have an example.
  # Author of the site, will be used in meta information
  author = "Mehrdad Mohammadian"
  # Description of the site, will be used in meta information
  description = "دوره یادگیری ماشین دانشگاه استنفورد به فارسی"
  # Shows a checkmark for visited pages on the menu
  showVisitedLinks = true
  # Disable search function. It will hide search bar
  disableSearch = false
  # Javascript and CSS cache are automatically busted when new version of site is generated.
  # Set this to true to disable this behavior (some proxies don't handle well this optimization)
  disableAssetsBusting = true
  # Set this to true to disable copy-to-clipboard button for inline code.
  disableInlineCopyToClipBoard = false
  # A title for shortcuts in menu is set by default. Set this to true to disable it.
  disableShortcutsTitle = false
  # When using mulitlingual website, disable the switch language button.
  disableLanguageSwitchingButton = false
  # Hide breadcrumbs in the header and only show the current page title
  disableBreadcrumb = false
  # Hide Next and Previous page buttons normally displayed full height beside content
  disableNextPrev = false
  # Order sections in menu by "weight" or "title". Default to "weight"
  ordersectionsby = "weight"
  # Change default color scheme with a variant one. Can be "red", "blue", "green".
  themeVariant = "blue"
  # Provide a list of custom css files to load relative from the `static/` folder in the site root.
  custom_css = ["css/foo.css", "css/bar.css"]

# For search functionality
[outputs]
home = [ "HTML", "RSS", "JSON"]

example html content i want to add in .md files:

mehrdad mohammadian
💻 🖋 👀 🧑🏫

nargesrzn
🖋

As assumed above, this is related to your configuration and not an issue of this (or any other) theme. Please follow the link

Yes, fixed with this param in config.toml:
[markup.goldmark.renderer]
unsafe= true


[docs] Correct the "new port requests" link in FAQ

Describe the pull request

What does your PR fix? Fixes #15844

Which triplets are supported/not supported? Have you updated the CI baseline?

Not applicable - it's documentation-only

Does your PR follow the maintainer guide?

Yes, in that I couldn't see any instructions for documentation

This is due to label change, which leads to the wrong link.
Thanks for your PR to correct this @claremacrae.

This is due to label change, which leads to the wrong link.
Thanks for your PR to correct this @claremacrae.


WFLY-13311 Upgrade Weld to 3.1.4.Final.

JIRA issue - https://issues.redhat.com/browse/WFLY-13311

JDK 11 fails with - Canceled with comment: Build and agent have finished unexpectedly or were killed. Please check agent logs for details.
I don't have TC account to restart just that job, is there another way?

@manovotn -- @luck3y can get you set up with a TC account.

@manovotn I created an account for you and emailed you the details. Let me know if you need anything else.

@luck3y thanks!


Fix for IosHttpURLConnection not validating SSL certificates

IosHttpURLConnection currently does not validate SSL certificates.
This change updates the URLSession didReceiveChallenge delegate method
to complete with NSURLSessionAuthChallengePerformDefaultHandling to
allow iOS to handle TLS challenge.

Please review, Lukhnos, as you're more familiar with NSURLSession than me. When okay, please reassign this issue to me to pull it.

LGTM. Thanks for the patch!


[SR-1282] Add conversion String -> Bool

Previous ID
SR-1282

Radar
None

Original Reporter
sdavids (JIRA User)

Type
New Feature

Additional Detail from JIRA

Votes
0

Component/s
Foundation, Standard Library

Labels
New Feature, LanguageFeatureRequest

Assignee
None

Priority
Medium

md5: 86692dd3cbe368d50f6ddd85e61d06bb

Issue Description:
Please add a conversion from String to Bool.
init?(_ text: String)

The conversion method should be case insensitive.
Examples:
Bool("true") -> true
Bool("false") -> false
Bool("TrUE") -> true
Bool(" true ") -> nil
Bool("1") -> nil
Bool("Y") -> nil
Bool("whatever") -> nil

This would be useful for JSON/XML processing.

Closing as noted above.


[material-ui][Select] aria-required on the Select component is not being read by screen readers

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Steps to reproduce 🕹
Link to live example:
Steps:

Current behavior 😯
When we add aria-required attribute in the select component, it dosen't read by screen reader as requied element.
(When native is false)
Expected behavior 🤔
the element should be readed as requried component.
Context 🔦
No response
Your environment 🌎

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Hi @ishub-mobi, can you share a minimal reproduction of your code that shows the issue you're facing?

Hi @samuelsycamore ,
When I add aria-required attribute in the select component itself like:
              <Select
                labelId="select_county"
                id="county_id"
                name="county_id"
                defaultValue=""
                // IconComponent={() => <CustomIcon />}

                displayEmpty={true}
                {...register("county_id", {
                  required: "Party selection is required",
                })}
                value={watch("county_id")}
                onChange={(e) => {
                  const selectedValue = e.target.value;

                  setValue("district_id", 0);
                  setValue("division_id", 0);
                  setValue("running-for", 0);
                  setValue("county_id", selectedValue, {
                    shouldValidate: true,
                  });
                  handleChange(e);
                }}
                renderValue={(selectedValue) => {
                  const countyItem = country.find(
                    (item) => item.id === selectedValue
                  );
                  return countyItem ? countyItem.name.toUpperCase() : "";
                }}
                inputProps={{
                  sx: {
                    "&::placeholder": {
                      color: "#67666C",
                      opacity: 1,
                    },
                  },
                }}
                aria-required="true"
              >

              so it is going in the .MuiInputBase-root element, where it should go to the element where we are using role="combobox", which is the .MuiSelect-select  element (Please check the image of inspected element)

Bceause of this Screen reader unable to read it as required field, and some automated tools (like AXE, Wave, etc) throwing error that aria attribute used without a propper role

and when I'm suign aria-attribute in the inputProps of it is showing in the input element but, I'm not using the native select.
inputProps={{
sx: {
"&::placeholder": {
color: "#67666C",
opacity: 1,
},
},
"aria-required":"true"
}}
I hope you understood the problem, let me if you need anything else

@ishub-mobi You can SelectDisplayProps to pass props into the ` element:
  <Select
    labelId="demo-simple-select-label"
    id="demo-simple-select"
    value={age}
    label="Age"
    onChange={handleChange}
    SelectDisplayProps={{
      'aria-required': true, // <--
    }}
  >
    <MenuItem value={10}>Ten</MenuItem>
    <MenuItem value={20}>Twenty</MenuItem>
    <MenuItem value={30}>Thirty</MenuItem>
  </Select>

Here's a working sandbox: https://codesandbox.io/p/sandbox/https-github-com-mui-material-ui-issues-40226-f47kgz


Readonly workspace folders

[x] add API that a FileSystemProvider can be readonly
[x] open readonly files using readonly editors
[x] disable all context menu commands in the explorer which do not make sense on a readonly resource
[x] disable all actions (explorer title) that do not make sense on a readonly resource

What granularity is this read-only support going to be? Per workspace, per root, or per file?
There is a feature request for file-level read-onliness, #17670
How about other actions that can potentially mutate user state? Like find-and-replace or code actions?
Is debugging in scope?
Extensions should be able to contribute to how VS Code detects read only status of files. FileSystemProvider is a good place where it could query if a given file (or the whole file system) is read-only.

@IlyaBiryukov the read only will be per FileSystemProvider - which in practice means per root. Thus each file in that root will be read only. And extensions will be able to contribute this when they register a FileSystemProvider.
As for various actions we will try to support this property in as many places as possible - however this is currently work in progress.

We have done what we have planned for this milestone -> closing.
If there are subsequent feature requests we can treat them in new issues.

@isidorn How a file system provider can change its read-only state once it has been opened by VSCode? The scenario is when read-only limit is lifted or imposed mid session.

I tried that and didn't see any effect (the file system provider was in use when I disposed the old one and registered the new one).  How can I re-register it when VSCode has already opened a work space that uses this scheme?

Other issue I see is that when an extension applies edits to the documents opened from a read-only file provider, the document becomes marked as 'dirty' but saving it always fails with an error "Failed to save 'bar.js': Insufficient permissions. Select 'Retry as Admin' to retry as administrator.", retrying as administrator does nothing and repeats the error.

@IlyaBiryukov thanks for the feedback. This milestone we have done the initial work for the readonly workspaces, dynamic registration is possible in theory but in practice there are limitations as you have noticed. The current issue is that once a file is resolved and it is readonly it will not change.
Thus as a workaround for now I suggest that your extension after re-registering a file system provider forces an explorer refresh by executing this command
workbench.files.action.refreshFilesExplorer
Also please create seperate issues and ping me on them regarding other issues you hit.
Thanks a lot

workbench.files.action.refreshFilesExplorer command did not help.
Here are the issues:
#53256, #53257


DNS Resolution of internal hosts for splunk, rest, and octoprint.  urllib3 issue?

Home Assistant release with the issue:

0.102.3
Last working Home Assistant release (if known):
Unknown
Operating environment (Hass.io/Docker/Windows/etc.):

Docker on CentOS
Integration:

REST sensor, Splunk recorder, octoprint
Description of problem:
Per errors in log, it appears that integrations that depend on urllib3 are unable to resolve internal DNS.
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
splunk:
  token: !secret splunk_token
  host: hec.noisufnoc.net

sensor:
  - platform: rest
    name: dns_queries_today
    resource: http://pihole.noisufnoc.net/admin/api.php
    value_template: '{{ value_json.dns_queries_today }}'

octoprint:
  - host: pmk3.noisufnoc.net
    api_key: !secret pmk3_octoprint_api_key
    name: Prusa i3 MK3
    bed: true
    number_of_tools: 1
  - host: mpmd.noisufnoc.net
    api_key: !secret mpmd_octoprint_api_key
    name: Monoprice Mini Delta
    bed: true
    number_of_tools: 1

Traceback (if applicable):
splunk...
2019-12-03 20:36:33 ERROR (SyncWorker_2) [homeassistant.components.splunk] Error saving event to Splunk: HTTPConnectionPool(host='hec.noisufnoc.net', port=8088): Max retries exceeded with url: /services/collector/event (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f3b75746210>: Failed to establish a new connection: [Errno -2] Name does not resolve'))
Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 157, in _new_conn (self._dns_host, self.port), self.timeout, **extra_kw File "/usr/local/lib/python3.7/site-packages/urllib3/util/connection.py", line 61, in create_connection for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): File "/usr/local/lib/python3.7/socket.py", line 748, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name does not resolve
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 672, in urlopen chunked=chunked, File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 387, in _make_request conn.request(method, url, **httplib_request_kw) File "/usr/local/lib/python3.7/http/client.py", line 1244, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/local/lib/python3.7/http/client.py", line 1290, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/local/lib/python3.7/http/client.py", line 1239, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/local/lib/python3.7/http/client.py", line 1026, in _send_output self.send(msg) File "/usr/local/lib/python3.7/http/client.py", line 966, in send self.connect() File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 184, in connect conn = self._new_conn() File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 169, in _new_conn self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f3b75746210>: Failed to establish a new connection: [Errno -2] Name does not resolve
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 449, in send timeout=timeout File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 720, in urlopen method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] File "/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py", line 436, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='hec.noisufnoc.net', port=8088): Max retries exceeded with url: /services/collector/event (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f3b75746210>: Failed to establish a new connection: [Errno -2] Name does not resolve'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/splunk/__init__.py", line 60, in post_request verify=verify_ssl, File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 116, in post return request('post', url, data=data, json=json, **kwargs) File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 60, in request return session.request(method=method, url=url, **kwargs) File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 533, in request resp = self.send(prep, **send_kwargs) File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 646, in send r = adapter.send(request, **kwargs) File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 516, in send raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='hec.noisufnoc.net', port=8088): Max retries exceeded with url: /services/collector/event (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f3b75746210>: Failed to establish a new connection: [Errno -2] Name does not resolve'))

rest....
2019-12-04 12:28:08 ERROR (SyncWorker_1) [homeassistant.components.rest.sensor] Error fetching data: <PreparedRequest [GET]> from http://pihole.noisufnoc.net/admin/api.php failed with HTTPConnectionPool(host='pihole.noisufnoc.net', port=80): Max retries exceeded with url: /admin/api.php (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f88a8db26d0>: Failed to establish a new connection: [Errno -2] Name does not resolve'))

octoprint...
2019-12-03 20:41:24 ERROR (SyncWorker_18) [homeassistant.components.octoprint] Endpoint: job Failed to update OctoPrint status. Error: HTTPSConnectionPool(host='mpmd.noisufnoc.net', port=443): Max retries exceeded with url: /api/job (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88ab5efb50>: Failed to establish a new connection: [Errno -2] Name does not resolve'))

Additional information:
Verified that docker containers can resolve internal dns:
 %  docker run busybox nslookup hec.noisufnoc.net
Server:         <IP_ADDRESS>
Address:        <IP_ADDRESS>:53

hec.noisufnoc.net       canonical name = splunk.noisufnoc.net

 %  docker run busybox nslookup pihole.noisufnoc.net
Server:         <IP_ADDRESS>
Address:        <IP_ADDRESS>:53

pihole.noisufnoc.net    canonical name = docker.noisufnoc.net
Name:   docker.noisufnoc.net
Address: <IP_ADDRESS>

 %  docker run busybox nslookup pmk3.noisufnoc.net
Server:         <IP_ADDRESS>
Address:        <IP_ADDRESS>:53

pmk3.noisufnoc.net      canonical name = docker.noisufnoc.net

 %  docker run busybox nslookup mpmd.noisufnoc.net
Server:         <IP_ADDRESS>
Address:        <IP_ADDRESS>:53

mpmd.noisufnoc.net      canonical name = docker.noisufnoc.net
Name:   docker.noisufnoc.net
Address: <IP_ADDRESS>

I have worked around the issue for the splunk integration by using the host's ip address.  For the rest and octoprint sensors I need to use the hostname b/c they are behind a nginx proxy.

This issue persists with 0.103.0

This issue persists with 0.105.2

Turns out this was related to the /etc/resolv.conf having ipv6 entries which did not resolve local dns.


Config key skip_output not working

Maybe I'm missing something integral here, but it seems like modular output options are being ignored for my setup. Details here:
lefthook.yml at project root:
pre-commit:
  commands:
    commit-colors:
      run: commit-colors $(git rev-parse HEAD)
skip_output:
  - meta

sample output after git commit or npx lefthook run pre-commit:
Lefthook v0.7.2
RUNNING HOOKS GROUP: pre-commit

  EXECUTE > commit-colors

        Your commit color is Picton Blue

#55a9ea

SUMMARY: (done in 0.04 seconds)
✔  commit-colors

The project in question is up-to-date over here.
Expected behavior is that the version number and hook details would not be displayed. Thank you!!

I have the same issue. The skip_output flag seems to be ignored.

@addiebarron @Maarius I've just tried to reproduce the issue on 0.7.3 and it seems to work fine, I do not see Lefthook v0.7.2 RUNNING HOOKS GROUP: pre-commit in the output. Could you please try again using the latest version?

@DmitryTsepelev thanks for the mention. I can confirm that I cannot reproduce this issue on 0.7.3. So looks like upgrading to latest version fixes it. Let's close if @addiebarron agrees.

Thanks all, I can confirm the issue is fixed on 0.7.3 -- appreciate your work. Closing now


Understand and articulate SPV transaction limitations

On-chain SPV proofs have limits in terms of how large the input transactions that are proven can be. These limits should be well-understood, so that proper recommendations can be made in UIs and to integrators on what is possible.
See also #550 for one approach to handling funding mistakes.

Latest research on gas costs of funding proofs is here: https://docs.google.com/spreadsheets/d/1YgNNqx_bnN54yggX-X8OQbyCX6B1U-7TBcrqsGlxay0/edit#gid=0


[docs] add shell completion instruction

Signed-off-by: Lajos Papp<EMAIL_ADDRESS>

I seem autocompletion working without that command. Wonder if installing from homebrew does that automatically

Ohh, you are right, I've used the curl https://get.acorn.io | sh method.
Maybe I can move this section under the curl|sh install section?

I threw in a some clarification. If you agree to them, you can "sign off and commit" them and then we can merge.

@lalyos I'm glad to see you around, look forward to your feedback :)


.param .u64 _ZN6cudapy5numba4cuda5tests6cudapy13test_localmem17culocal0tuple$242E5ArrayIiLi1E1A7mutable7alignedE5ArrayIiLi1E1A7mutable7alignedE_param_6,
	.param .u64 _ZN6cudapy5numba4cuda5tests6cudapy13test_localmem17culocal0tuple$242E5ArrayIiLi1E1A7mutable7alignedE5ArrayIiLi1E1A7mutable7alignedE_param_7,
	.param .u64 _ZN6cudapy5numba4cuda5tests6cudapy13test_localmem17culocal0tuple$242E5ArrayIiLi1E1A7mutable7alignedE5ArrayIiLi1E1A7mutable7alignedE_param_8,
	.param .u64 _ZN6cudapy5numba4cuda5tests6cudapy13test_localmem17culocal0tuple$242E5ArrayIiLi1E1A7mutable7alignedE5ArrayIiLi1E1A7mutable7alignedE_param_9,
	.param .u64 _ZN6cudapy5numba4cuda5tests6cudapy13test_localmem17culocal0tuple$242E5ArrayIiLi1E1A7mutable7alignedE5ArrayIiLi1E1A7mutable7alignedE_param_10,
	.param .u64 _ZN6cudapy5numba4cuda5tests6cudapy13test_localmem17culocal0tuple$242E5ArrayIiLi1E1A7mutable7alignedE5ArrayIiLi1E1A7mutable7alignedE_param_11,
	.param .u64 _ZN6cudapy5numba4cuda5tests6cudapy13test_localmem17culocal0tuple$242E5ArrayIiLi1E1A7mutable7alignedE5ArrayIiLi1E1A7mutable7alignedE_param_12,
	.param .u64 _ZN6cudapy5numba4cuda5tests6cudapy13test_localmem17culocal0tuple$242E5ArrayIiLi1E1A7mutable7alignedE5ArrayIiLi1E1A7mutable7alignedE_param_13
)
{
	.reg .pred 	%p<2>;
	.reg .b32 	%r<6>;
	.reg .b64 	%rd<16>;

	ld.param.u64 	%rd1, [_ZN6cudapy5numba4cuda5tests6cudapy13test_localmem17culocal0tuple$242E5ArrayIiLi1E1A7mutable7alignedE5ArrayIiLi1E1A7mutable7alignedE_param_4];
	ld.param.u64 	%rd2, [_ZN6cudapy5numba4cuda5tests6cudapy13test_localmem17culocal0tuple$242E5ArrayIiLi1E1A7mutable7alignedE5ArrayIiLi1E1A7mutable7alignedE_param_5];
	ld.param.u64 	%rd3, [_ZN6cudapy5numba4cuda5tests6cudapy13test_localmem17culocal0tuple$242E5ArrayIiLi1E1A7mutable7alignedE5ArrayIiLi1E1A7mutable7alignedE_param_6];
	ld.param.u64 	%rd4, [_ZN6cudapy5numba4cuda5tests6cudapy13test_localmem17culocal0tuple$242E5ArrayIiLi1E1A7mutable7alignedE5ArrayIiLi1E1A7mutable7alignedE_param_11];
	ld.param.u64 	%rd5, [_ZN6cudapy5numba4cuda5tests6cudapy13test_localmem17culocal0tuple$242E5ArrayIiLi1E1A7mutable7alignedE5ArrayIiLi1E1A7mutable7alignedE_param_12];
	ld.param.u64 	%rd6, [_ZN6cudapy5numba4cuda5tests6cudapy13test_localmem17culocal0tuple$242E5ArrayIiLi1E1A7mutable7alignedE5ArrayIiLi1E1A7mutable7alignedE_param_13];
	mov.u32 	%r1, %tid.x;
	mov.u32 	%r2, %ntid.x;
	mov.u32 	%r3, %ctaid.x;
	mad.lo.s32 	%r4, %r3, %r2, %r1;
	cvt.s64.s32	%rd7, %r4;
	setp.lt.s32	%p1, %r4, 0;
	selp.b64	%rd8, %rd2, 0, %p1;
	add.s64 	%rd9, %rd8, %rd7;
	mul.lo.s64 	%rd10, %rd9, %rd3;
	add.s64 	%rd11, %rd10, %rd1;
	ld.u32 	%r5, [%rd11];
	selp.b64	%rd12, %rd5, 0, %p1;
	add.s64 	%rd13, %rd12, %rd7;
	mul.lo.s64 	%rd14, %rd13, %rd6;
	add.s64 	%rd15, %rd14, %rd4;
	st.u32 	[%rd15], %r5;
	ret;
}

The single element of the local array has ended up allocated into %r5 instead of local memory. I'm not sure whether it really matters for a 0d array to be allocated into local memory or not, though.

I assume that test passes if you use a (1,) array instead?

With
diff --git a/numba/cuda/tests/cudapy/test_localmem.py b/numba/cuda/tests/cudapy/test_localmem.py
index b35a456..f7a1342 100644
--- a/numba/cuda/tests/cudapy/test_localmem.py
+++ b/numba/cuda/tests/cudapy/test_localmem.py
@@ -28,6 +28,13 @@ def culocal1tuple(A, B):
         B[i] = C[i]

+def culocal0tuple(A, B):
+    C = cuda.local.array((1,), dtype=int32)
+    i = cuda.grid(1)
+    C[0] = A[i]
+    B[i] = C[0]
+
+
 class TestCudaLocalMem(SerialMixin, unittest.TestCase):
     def test_local_array(self):
         jculocal = cuda.jit('void(int32[:], int32[:])')(culocal)
@@ -37,6 +44,16 @@ class TestCudaLocalMem(SerialMixin, unittest.TestCase):
         jculocal[1, 1](A, B)
         self.assertTrue(np.all(A == B))

+    def test_local_array_0(self):
+        jculocal = cuda.jit('void(int32[:], int32[:])', debug=True)(culocal0tuple)
+        print(jculocal.inspect_llvm())
+        print(jculocal.inspect_asm())
+        self.assertTrue('.local' in jculocal.ptx)
+        A = np.arange(256, dtype='int32')
+        B = np.zeros_like(A)
+        jculocal[1, 256](A, B)
+        self.assertTrue(np.all(A == B))
+
     def test_local_array_1_tuple(self):
         """Ensure that the macro can be use with 1-tuple
         """

It exhibits the same problem:
======================================================================
FAIL: test_local_array_0 (numba.cuda.tests.cudapy.test_localmem.TestCudaLocalMem)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/nfs/gmarkall/numbadev/numba/numba/cuda/tests/cudapy/test_localmem.py", line 51, in test_local_array_0
    self.assertTrue('.local' in jculocal.ptx)
AssertionError: False is not true

In which case it sounds like your test is wrong, and my patch isn't relevant here?

Ah, you're right - it seems to be legal for the optimiser to turn it into registers. Apologies! If I remove the check self.assertTrue('.local' in jculocal.ptx) then the test passes.

Conflicts resolved by reverting the hacks added in gh-5343

@stuartarchibald: can this be labelled 3 - Ready for Review now?

@gmarkall: Now that #5400 is in, is this patch testable?

@eric-wieser With master merged into the current patch, the numba.cuda.tests suite passes all tests for me.

Is anything else needed here then?

@gmarkall are you happy with the proposed patch?
Am running 4727800 through the farm. Buildfarm ID: numba_smoketest_cuda_45

Assuming the buildfarm CI is now done. Mind sharing the results?

Assuming the buildfarm CI is now done. Mind sharing the results?

Passed.

Rebased to solve conflicts. I suppose this will need another buildfarm run.

New BFID (Buildfarm ID): numba_smoketest_cuda_76

The BF passed, I am marking this as ready to merge now.


feat: improved invoke verbosity

Changes

:gift: improved invoke verbose output
:gift: clarified invoke output when non-verbose
:broom: simplified go templates to actually echo inbound request
:bug: removed redundant go cloudevent templates imports
:bug: error of unparseable data input when invokeing a default Go cloudevents template

Both http and cloudevents Functions' outputimproved.  WRT the assocated issue #1003, output is as follows:
$ func invoke
Received response
Context Attributes,
  specversion: 1.0
  type: boson.fn
  source: /boson/fn
  id: f5d1fcb6-c42d-41f8-9e5a-0cba316c5b20
  time: 2022-05-06T07:00:34.399992Z
  datacontenttype: text/plain
Data,
  Hello World
$
$ func invoke -v
Invoking 'cloudevent' Function at http://localhost:8080/
Sending event
Context Attributes,
  specversion: 1.0
  type: boson.fn
  source: /boson/fn
  id: 73b23fc2-a305-4b02-8082-59902c7b5f2c
  datacontenttype: text/plain
Data,
  Hello World
Received response
Content:
Context Attributes,
  specversion: 1.0
  type: boson.fn
  source: /boson/fn
  id: 73b23fc2-a305-4b02-8082-59902c7b5f2c
  time: 2022-05-06T07:00:45.300377Z
  datacontenttype: text/plain
Data,
  Hello World

And on the server's STDOUT:
$ func run
Function started on port 8080
Initializing CloudEvent function
listening on http port 8080
Received event
Context Attributes,
  specversion: 1.0
  type: boson.fn
  source: /boson/fn
  id: f5d1fcb6-c42d-41f8-9e5a-0cba316c5b20
  time: 2022-05-06T07:00:34.399992Z
  datacontenttype: text/plain
Data,
  Hello World

Note that for simplicity, invoke and template deafult implementations usetext/plain, which is why the Data attribute differs from the example proposed in the associated issue.

/kind enhancement

Fixes #1003

/hold while I refactor the pertinent e2e tests to expect that embedded templates echo

/lgtm


Please stop using "var" as a general type declaration

Could people please stop using "var" as a type declaration.
The original intended use of "var" is for anonymous functions. Using "var" in general code, particularly in examples in forums, makes the code extremely hard to follow as you can't determine what types are being returned from some of the method calls.
I'm currently trying to research a topic that's new to me but all the method calls are typed as "var" so I don't know what framework classes to research... it's very frustrating.
Thank you.

Could people please stop using "var" as a type declaration.
The original intended use of "var" is for anonymous functions. Using "var" in general code, particularly in examples in forums, makes the code extremely hard to follow as you can't determine what types are being returned from some of the method calls.
I'm currently trying to research a topic that's new to me but all the method calls are typed as "var" so I don't know what framework classes to research... it's very frustrating.
Thank you.

Download the sample and VS shows the type. You can then debug the code, modify the code, etc.

Closing as this is not something we plan to change.

Thank you Rick,
If I’m researching an issue on an Android or iPhone device then your suggestion will not work.
In addition, having to copy little snippets of code out of GitHub etc. into VS to then embed them into a class and include the correct packages, references, etc. just to find out the type is impractical.
Unfortunately the detrimental effects of using var weren’t fully considered when “Usage of the var keyword” was written in the .Net Core Engineering Guidelines. There are even logical flaws in the examples they provide, i.e. they make it clear that the ability to use var is dependent upon the value of the variable… that’s just silliness – set the variable to the correct type in the first place.
In relation to GitHub, if code snippets cannot be provided in the clearest possible form the benefit of providing the snippets is partially lost.
Regards,
Paul.

Paul Hopkins - Director
Senior IT Solution Architect and Developer
tel:0417043977 0417 043 977 |  @.> @.
Atom Software Pty Ltd
https://www.atomsoftware.com.au/ https://www.atomsoftware.com.au
From: Rick Anderson @.>
Sent: Tuesday, 20 June 2023 8:34 AM
To: dotnet/AspNetCore.Docs @.>
Cc: Paul Hopkins @.>; Mention @.>
Subject: Re: [dotnet/AspNetCore.Docs] Please stop using "var" as a general type declaration (Issue #29557)
Could people please stop using "var" as a type declaration.
The original intended use of "var" is for anonymous functions. Using "var" in general code, particularly in examples in forums, makes the code extremely hard to follow as you can't determine what types are being returned from some of the method calls.
I'm currently trying to research a topic that's new to me but all the method calls are typed as "var" so I don't know what framework classes to research... it's very frustrating.
Thank you.
Download the sample and VS shows the type. You can then debug the code, modify the code, etc.
—
Reply to this email directly, view it on GitHub https://github.com/dotnet/AspNetCore.Docs/issues/29557#issuecomment-1597841417 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AWPYBSVXID2FNLDLMRRSQL3XMDHVBANCNFSM6AAAAAAZLVRVCY .
You are receiving this because you were mentioned.  https://github.com/notifications/beacon/AWPYBSUUV2ZDWITYQA7GKNTXMDHVBA5CNFSM6AAAAAAZLVRVC2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTS7HUQAS.gif Message ID: @.*** @.***> >


Error: In 'OnFrame': Modules/BuildList.lua.168: attempt to index local 'file Text' (a nil value)

Everytime I go out of a build I get this error.

Hey! I had the same issue and i've fixed it by opening Documents and removing the Path Of Building folder that was imported through OneDrive.


Updated Spanish translation. (Fixes #2094)

Thanks to johnfelipe!

Is possible put that tranlation in my instance?

Yes, wait until this pull request is merged into master. Then you can use the master (as described in development instruction file). Or try my branch.

This is my instance
http://<IP_ADDRESS>:8001/login
where is correct commands for put https://openslides.org/ spanish version?

Please don't discuss general developement setup questions in (merged) pull requests.
You can ask us for this stuff in IRC or mailing lists. Or read the README and DEVELOPMENT files.


Words don't have enough space between them

Problem
When typing words are not correctly spaced in between

In this image, for instance, the last word is spaced correctly

Possible resolution
Add more space between words

Interesting.
How many spaces nibberbot should add? Just one?
I was thinking 4 at least.

Tests are necessary in order to fill up this discrepancy

Also I hereby suggest to add at least for white space in order to preserve the readability.

Yeah, 4 might be enough but since this is a per-person agreement, adding a parameter might be the best choice.
I'll work on this in a couple hours.

I do approve your decision sir

Closed because of e78446c


Proposed fix for #4166 (get_version_number doesn't fetch correct version number)

This PR fixes a few problems with get_version_number

Based on comments, it seems passing the -terse``' flag sometimes returns nonsense as the first item in the array of results. Now we iterate this list of results until we find and actual result. Then return that. This should emulate the -terse1``` flag more accurately.

Using the word scheme was misleading. Now we can accept a target as a parameter and find that appropriately.

This PR also adds spec tests to simulate the above behavior.
Associated issue: #4166
Thanks!

@rs17b Thanks! 💯


Node packages without an index.js or .js don't seem to load

From @maknz on September 3, 2015 6:35
Consider the parse-link-header npm package. It depends on xtend.
Most other NPM packages seem to work fine, such as accounting and moment, which seem to have files named either index.js or packagename.js. In the case of xtend, there is an immutable.js and mutable.js. The package.json identifies immutable.js as the main file.
To reproduce, try and install parse-link-header (along with url and querystring which are polyfills/ports of the built-in Node packages of the same name, which parse-link-header uses) and you will see that when requiring it, an error is thrown saying the xtend module is not found, despite it being in the tns_modules in the Android platform.
Copied from original issue: NativeScript/NativeScript#664

I just checked the package and it is properly resolved. It has index.js and the package.json main value points to it. I remember we fixed an issue where the main value wasn't properly resolved when file name was without extension, e.g. "main" : "index". Closing.


Please write about breaking changes

There is no way to upgrade from 11.3 to 14.
Changelog is empty - 0 breaking changes mentioned, when API is changed significantly.
I tried to find where is from_row_opt now and couldn't find it, I'm giving up.

Hi. All significant updates are listed here, but breaking changes are not highlighted in any way, so sorry about that.
BTW, what's with from_row_opt?

Breaking changes are not even listed there. Module "value" has been removed, enum value has been renamed to Value, etc.
Anyway, it was just single complain. Thank you for your work, anyway :)


https://docs.perl6.org/syntax/$REVERSE_SOLIDUS is 404

https://docs.perl6.org/syntax/$REVERSE_SOLIDUS

Used to be valid, it was removed.
To close this ticket, we can either agree that we don't need to support the old URLs, or we can make them redirect to the new URL.

A permanent redirect would be preferrable, for the benefit of webpage links and users' bookmarks.
I have no idea how much work that would be though.

Seems to be already redirected: https://github.com/perl6/doc/blob/e8ee9762dde5990e263eafdadefddd3b8d11d8ba/html/.htaccess
However, there seem to be lots of $SOLIDUS sprinkled in (404) links here and there still...

Related #561

I would say this page is now returning 404 because it does not exist. There are many different pages that include , but all of them are qualified. So I am for the time being closing this issue.


Infinite cutscene loop

Seed: R521-FHAJ-ZJC5JEZL314
Scenario: Leon A
Character: Barry
Room: Circular platform room in the lab with 3 walkways.
Issue: Once I triggered the cutscene where Ada points her gun at Leon in the A scenario, Irons came out, and he walked slowly towards the camera... But he just kept walking, infinitely, never reaching his destination. I couldn't skip the cutscene either.

Haven't been able to reproduce


IPROTO-99 Ability to define an empty proto message via Pojo annotations

https://issues.jboss.org/browse/IPROTO-99

Merged in master.


How do I help this project get to the latest version of iD?

I want to help here. I think Slide is an invaluable tool for the world. I cant believe no one else besides @paulmach is involved - and maybe even paul has dropped it for other work. Id like to help. What are some of the meta steps I can do in order to go and run this on my own server and integrate it in with a newer version of iD? Where should I host it? Where did the current iD example host? Just looking for a paragraph answer to point me in right direction...Thanks!

Hi Nick,
The slide that most people use is hosted by my former employer (strava). It uses the code here plus the global heatmap data to build the results. The raw global heatmap data is not available publicly so hosting your own slide does not really make sense unless you have a similar dataset you'd like to try it on. If you do, I can help with that.
But, anyone can use the HTTP/JSON api provided by strava (with attribution). So to solve the problem of making it work with newer versions of iD, one would just need to integrate it with the newer code. The code for the iD editor at http://strava.github.io/iD is found at https://github.com/strava/iD and you can look at the last few commits to see what was done to add it.
Recently iD was bumped to 2.0 and they refactored a bunch of stuff into javascript modules and stuff so it'll take a bit of work fit it in, but I'd imagine the core concept would stay the same.
So, if the issue is upgrading the http://strava.github.io/iD to use iD 2.0+ I can look into getting access to that repo again and looking into how much work it'll be.
cc @mlerner

If anybody have the knowhow to transform the code into a JOSM Plugin, using Java and Strava's Java bindings, or some way convert the bindings in this repo, I know many OSM contributors using the JOSM editor will be very happy.

@paulmach I have just started looking at some of this. I have yet to sit down and build a local iD instance or such... Simply looking at the code and your commits mentioned above to understand the big picture.
So, question, is the actual "sliding"  calculations and such happening on server side somewhere over at Strava labs? I had thought this was done locally by browser, but now I see two completely seperate code bases in your slide repo and iD fork. So where is the go code being run?
Thanks!

The work is split between the server and the browser. The server takes a linestring and returns a smoothed linestring. The js/browser figures out what polyline to send and how exactly to merge it back into osm.
The reason there is a server side component is because the "raw heatmap data" ie. the actual counts, not the raster png data, can not be shared. This was a requirement made by those above me when I was at strava. I did not want to push the issue because initially they were very reluctant to even release the heatmap at all.
As a result the code in this repo is kind of crippled. I tried to use the same algorithm with the TIGER data, but it was never as useful as using the strava data.
The server side code currently used at strava.github.io/iD is accessible at https://gometry.strava.com/slide and hosted by Strava. Unless Strava says otherwise this same endpoint can be used in a new version of iD or in JSOM.

Oh, and to get started at running the Strava iD fork you'll need to do two things:

get it to build and run, just tried the install section from the readme and it worked for me https://github.com/strava/iD#installation
make sure the right slide endpoint is being used, see https://github.com/strava/iD/blob/master/js/id/operations/slide.js#L2   Since you wont have slide running locally it should just be var slideOperationURI = "https://gometry.strava.com/slide";

I don't know what the steps would be to upgrade/rebase the iD code to the 2.X version.


Add type hints

Extended from the  add-type-hints branch, this PR adds type hints as discussed in https://github.com/libvips/php-vips/issues/118. To make things easier, type hints are generated from a stub PHP file using the gen_stub.php file found in PHP's source tree.
This was tested without problems on the php-vips and php-vips-ext test suite using PHP 8 in debug mode.

This looks really nice Kleis.

Oh, I think I forgot to include vips.stub.php and vips_arginfo.h in package.xml. I'll open a PR shortly to fix that.


SPARK-21158: Fix case sensitive of temp table/view name

What changes were proposed in this pull request?
Most changes have been made to SessionCatalog source file. Shouldn't convert table/view name into lowercase. The hash-table should always contain the exact input name of table.
How was this patch tested?
This patch wast tested around containLocalTable and containGlobalTable functions manually for case-sensitive and in-sensitive. They are very simple functions
Please review http://spark.apache.org/contributing.html before opening a pull request.

Can one of the admins verify this patch?

Sorry, It closed by mistake. Please help me to review this patch

OK to test
@cloud-fan , @gatorsmile , @andrewor14 can you help to review

can you give a test case that fails without this patch?
BTW the GlobalViewManager documents explicitly:
Note that, the view name is always case-sensitive here, callers are responsible to format the
view name w.r.t. case-sensitive config.

Hi @cloud-fan , thanks for you quick response.
The failure test cases is very straight forward, and can be found in the ticket's description: https://issues.apache.org/jira/browse/SPARK-21158.
To summary:

Set your spark sql to case insensitive: spark.sql("SET spark.sql.caseSensitive=false");
Create and temp table/view e.g. CameraAndModels
Then, check if your CameraAndModes exists in spark.catalog.listTables(). It will return false, while you know for sure that your table does exist.
=> The reason is the formatTable() in SessionCatalog.scala convert your table name to lowercase (btw, by default case sensitive is set to false)

To your second point:
The GlobalViewManager behaves just like the "LocalView", it also call the formatTable() before creating a view. Below is the code in SessionCatalog.scala for your references:
def createGlobalTempView(
name: String,
viewDefinition: LogicalPlan,
overrideIfExists: Boolean): Unit = {
globalTempViewManager.create(formatTableName(name), viewDefinition, overrideIfExists)
}
I fixed this issue by simply return the table name itself from the formatTable(), without convert to lowercase. By doing this way, I don't have to clean up the callers which is erroneous (more than 20 references to this function). And provide a convenience way to check if a table exists, and do care about case sensitive at this point.

is this a real issue? Ideally you should call Catalog.tableExists to check table/view existence. I think it's reasonable for Catalog.listTables to return lower-cased table names if case sensitive is off.
BTW, I also don't think this minor "improvement" worth such a big change.

@cloud-fan ,

catalog.tableExists is not always visible to callers (pls refer to the ticket's desc)
catalog.listTables: it depends on idea. Reporter, has a good reasons, and use case (pls refer to his ticket), and so I'm on her page.
Yes, it's a minor "improvement", but I don't see those are big change.
I'd like to have second reviewer, see what he think.
@gatorsmile , @andrewor14 , @rxin can you help to review this patch as well?
Thanks,

I can see the issue, but adding all these APIs might not be worthy.

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?


Reconcile SDK state on init if push token changes

This PR fixes a bug in the SDK which causes it to get stuck in a "started"
state when the push token / notification permission state changes underneath
it. E.g. if the user revokes the notification permission.
Now, if the token changes/is revoked the SDK will clear it's state requiring
that .start be called again.

Looks good to me.
One very minor thing. I don't think the if makes sense here anymore because a serviceWorkerRegistration must be passed to the constructor of PushNotificationsInstance now, whereas previously it was optional.

Good catch - will fix


UnicodeEncodeError on Windows When Logging Messages with Emojis

Environment

OS: Windows 10
Python Version: 3.12
Application: pan-os-upgrade

Issue Summary
When running the pan-os-upgrade script on Windows machines, a UnicodeEncodeError is thrown during logging operations that involve emojis. This issue seems to stem from the default character encoding in Windows command prompt and PowerShell, which does not support certain Unicode characters used in the script's logging messages.
Steps to Reproduce

Run the pan-os-upgrade script using PowerShell or cmd.exe on a Windows machine.
Observe the UnicodeEncodeError that occurs when the script attempts to log messages containing emojis.

Expected Behavior
The script should log messages without causing encoding errors, regardless of the operating system or the shell used.
Actual Behavior
The script fails to log messages correctly and throws a UnicodeEncodeError when it encounters emojis in log messages on Windows.
Possible Solutions

Remove emojis from log messages to ensure compatibility across different platforms.
Implement a custom logging handler or filter to encode log messages in UTF-8 and handle encoding issues.

Additional Context
This issue impacts Windows users of the pan-os-upgrade tool, potentially affecting usability and user experience. Addressing this issue would improve the tool's robustness and cross-platform compatibility.

The inclusion of a Docker image provides us with some time to sort this out.

This should have been fixed in #45 through the inclusion of a specific encoding (utf-8) in the logging handler. Unsure why the default doesn't work on windows.

Confirmed this issue has been resolved.


feat: add standard Borel space class

add a class StandardBorelSpace, whose relationship to PolishSpace is analogous to the relationship between PolishSpace and complete metric space. The usefulness is shown by _root_.MeasurableSet.standardBorel: A measurable subset of a standard Borel space is Polish. Note that a borel measurable subset of a Polish space will not typically be Polish in the induced topology!
Specific things done in this PR:

added some basic instances for StandardBorelSpace
changed theorems with hypotheses [MeasurableSpace X] [TopologicalSpace X] [BorelSpace X] [PolishSpace X] but which do not refer to the topology on X to depend instead on  [MeasurableSpace X][StandardBorelSpace X]. These automatically generalize the old theorems thanks to standardBorel_of_polish.

I believe this sort of refactoring can be pushed a lot farther in future PRs.

bors r+
Thanks!


google_sign_in does not work when building an appbundle (ApiException: 10)

Steps to Reproduce

Clone https://github.com/flutter/plugins.git
Generate debug key
Create a Firebase project on the Firebase site
Add Android app to Firebase site
Enter SHA1 debug key on the Firebase site
Verify that your email is entered on the Firebase site
Enable the Google as a Sign-in Method on the Firebase site under Authentication
Download the google-services.json file and put it in the android/app/ directory
Update applicationId in android/app/build.gradle
Build the flutter app using flutter build appbundle --debug
Test the app.abb file on the Firebase site under Test Lab using Robo Test

The following error will be generated by the signIn() method:
PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null)
This problem only occurs when building an appbundle (and does not occur when building an apk) and it only occurs for new users who have not previously logged into the application successfully.
Logs
log.zip
$ flutter doctor -v
[√] Flutter (Channel stable, v1.9.1+hotfix.4, on Microsoft Windows [Version 10.0.17763.740], locale en-US)
    • Flutter version 1.9.1+hotfix.4 at C:\Programs\flutter
    • Framework revision cc949a8e8b (6 days ago), 2019-09-27 15:04:59 -0700
    • Engine revision b863200c37
    • Dart version 2.5.0

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at C:\Users\user1\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • ANDROID_HOME = C:\Users\user1\AppData\Local\Android\sdk
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
    • All Android licenses accepted.

[√] Android Studio (version 3.5)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 39.0.3
    • Dart plugin version 191.8423
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)

[√] VS Code (version 1.38.1)
    • VS Code at C:\Users\user1\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.5.1

[!] Connected device
    ! No devices available

! Doctor found issues in 1 category.

facing the same issue as well. With offline installation using buildtool works

Found this answer in stackoverflow which seems to work for me. https://stackoverflow.com/a/53663789/11602890

Hi @Simpler1
Check out this comment above
if you're still experiencing this issue with latest stable channel
can you please provide your flutter doctor -v and flutter run --verbose?
please write in the comments and I will reopen it
Thank you


Mozilla Pulse project listing image.

Select an image to use on Mozilla Pulse for this project listing. Feel free to comment with pictures that you find apt for this.
For reference, check out: https://www.mozillapulse.org/featured

Thanks Anamika for suggesting this!


Realtime Build Logs

That would be amazingly helpful. For us not having the realtime logs is quite a big problem. From time to time the deployment takes unexpectedly long and we have no info what's going on in the background. We are hopeless without any chance to react. Usually the deployment fails in the end, but it it's too late, too much time was wasted, and most of the time with no helpful info in the end how to prevent this again.

Also +1 from our side.
Wish I had a streaming log today, very looking forward into that for time-critical deployments.

+1 from me closes #2537

This is 75% complete - closing here.


feat: support three different formats

This PR solves a bug and adds a feature

unable to process Date field in header
according the RCF 3.3.1 description, support three different formats (https://tools.ietf.org/html/rfc2616#section-3.3.1)

old code screenshot

new code screenshot

@swift-ci test linux

Could you add some tests to in the three different date formats to test all three different formatters as well please.

@spevans
The currently modified code is in the canCache method. There is no  test code. I'm not sure where to write the test code? Is it possible to write in a TestURLSession file or do you have any good suggestions?

Since the only thing that needs to be tested is actually parsing dates in different formats I would suggest adding some tests into TestHTTPURLResponse that directly call the  _HTTPURLProtocol.date(from: dateString) method with dates in different formats.
Since it is internal you will need to put the tests inside a
#if NS_FOUNDATION_ALLOWS_TESTABLE_IMPORT / #endif
block and also add
   #if canImport(SwiftFoundation) && !DEPLOYMENT_RUNTIME_OBJC
       @testable import SwiftFoundation
   #else
       @testable import Foundation
   #endif

to the top of the test file.
You could setup some tests for TestURLSession but that would really be testing the caching validation mechanism and not specifically the date parsing. Also note that at the moment TestURLSession is currently disabled. It will be re-enabled once I have fixed a few more URLSession bugs and stopped some of the tests being flaky.

Also: I commented previously that changing the .dateFormat of an existing formatter is throwing away resources, and that I would much prefer a patch where three date for matters are created and cached. Can we have that?
It’s a tiny thing but we have our work cut out for us in SCF to improve performance, and not adding an obvious time-and-space issue is one way we can.

@millenomi commit
Is this ok?

I hadn’t seen that! That works.

(I still agree with @spevans that we need tests.)

sorry, I have been busy recently. I forgot about this and I will add UT as soon as possible

The Swift project moved the default branch to main and deleted master branch, so GitHub automatically closed the PR. Please re-create pull request with main branch.
More detail about the branch update - https://forums.swift.org/t/updating-branch-names/40412


[Blog] Copy-DbaLogin write-up

I didn't even remember LoginRenameHashtable existed! Can someone please write an in-depth blog post about Copy-DbaLogin that we can put on dbatools blog?
thanks !

What format would prefer this in?

hmmm https://dbatools.io/functions/copy-dbalogin/ done?

naw, that's not in-depth. this is!
https://dbatools.io/find-sql-instances/

A starting point @potatoqualitee
https://gist.github.com/wsmelton/236d12e907f18359adeff57acb512371
I have really no idea how to add a blog post to the site being hosted on GitHub.

We can probably create this issue on the doc site now that it is hosted on GitHub if needed. Closing this one for now though.

yeah i need to finish migrating to GH instead of the kludgy way i did it. that is on the agenda by end of year. sorry for the hold up.


[HUDI-2763] Tests for Metadata table records key deduplication

What is the purpose of the pull request
Tests for Metadata table records key deduplication feature
Brief change log
Added the following on top of the Parent PR: https://github.com/apache/hudi/pull/4067
Please review https://github.com/apache/hudi/commit/cae968437fec070a998706f34b78b0c5592c6064 alone in this PR

Adding unit test to validate the metadata table record key
deduplication feature.

Virtual keys and Key deduplication for the metadata table
are configurable and doesn't affect each other.

Added compaction use case to verify base file key deduplication

Verify this pull request
(Please pick either of the following options)
This pull request is a trivial rework / code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)

Added integration tests for end-to-end.
Added HoodieClientWriteTest to verify the change.
Manually verified the change by running a job locally.

Committer checklist

[ ] Has a corresponding JIRA in PR title & commit

[ ] Commit message is descriptive of the change

[ ] CI is green

[ ] Necessary doc changes done or have another open PR

[ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.

https://dev.azure.com/apache-hudi-ci-org/apache-hudi-ci/_build/results?buildId=4217&view=results
CI passed in the failed job rerun

@nsivabalan Addressed your comments in https://github.com/apache/hudi/pull/4292/commits/2109f4506f81e9dc7457455730b66894b42180a7

This will be taken care in https://github.com/apache/hudi/pull/4067

This will be taken care in https://github.com/apache/hudi/pull/4067


SS-7473 validate AppBuilder data output

https://shapediver.atlassian.net/browse/SS-7473
I found zod, which perfectly fulfills what we need here.

https://shapediver.atlassian.net/browse/SS-7473
I found zod, which perfectly fulfills what we need here.

@matthiasreisacher FYI


Build libs-gui on Windows

This commit adds basic support for building libs-gui on Windows.

Very cool, thanks! Can you give some more info what works / is still missing here for libs-gui when you say "basic support"?
FYI @gcasa has also been working on libs-gui support on this branch.

By "basic" I mean that some features are left out (notably printing, color pickers and models), they are removed here: https://github.com/gnustep/tools-windows-msvc/pull/26/files#diff-72fee75cf40ed99d72377c42619dafee23a15de39066840ed2a5af931606d3fb
There are a couple of compiler errors when building those areas, I'm sure we can work around those, but this felt like a quick win worth merging independently. I'd prefer tackling this with smaller PRs if that's OK with you.
Once this gets merged, I'd probably follow up with either backend or apps-systempreferences.

Thanks, that makes sense.
The only thing that I’d like to see before merging this is some way to say that you do/don’t want libs-gui and its dependencies. For our own purposes we have no use for it, and I imagine others who just want to use Objective-C on the command line / in libraries etc. might not need it as well and might like the extra build time/DLLs. Could we maybe add a flag --only-base, start the added phases at 50, and stop below 50 if the flag is set? Something along those lines would be great.

Thanks @triplef, that makes sense. I've added a --no-gui flag (since we already have --no-clean and --no-update), but could rename it to --only-base if you prefer.

Thanks @qmfrederik!