FileNotFoundError: [Errno 2] No such file or directory: 'mri_watershed'

Description of the problem
I try to compute BEM surfaces from a freshly recon-alled participant, but I get an error.

FileNotFoundError                         Traceback (most recent call last)
File /Volumes/neurospin/meg/meg_tmp/Deltaphase_shift_Valentine_2021/code/compute_BEM.py:2
1 #%%
----> 2 mne.bem.make_watershed_bem(subject, subjects_dir=None, overwrite=True)
File :12, in make_watershed_bem(subject, subjects_dir, overwrite, volume, atlas, gcaatlas, preflood, show, copy, T1, brainmask, verbose)
File ~/miniconda3/envs/mne/lib/python3.12/site-packages/mne/bem.py:1330, in make_watershed_bem(subject, subjects_dir, overwrite, volume, atlas, gcaatlas, preflood, show, copy, T1, brainmask, verbose)
1325 logger.info(
1326     "\nRunning mri_watershed for BEM segmentation with the following parameters:\n"
1327     f"\nResults dir = {ws_dir}\nCommand = {' '.join(cmd)}\n"
1328 )
1329 os.makedirs(op.join(ws_dir))
-> 1330 run_subprocess_env(cmd)
1331 del tempdir  # clean up directory
1332 if op.isfile(T1_mgz):
File :12, in run_subprocess(command, return_code, verbose, *args, **kwargs)
File ~/miniconda3/envs/mne/lib/python3.12/site-packages/mne/utils/misc.py:144, in run_subprocess(command, return_code, verbose, *args, **kwargs)
142 control_stdout = "stdout" not in kwargs
143 control_stderr = "stderr" not in kwargs
--> 144 with running_subprocess(command, *args, **kwargs) as p:
145     if control_stdout:
...
-> 1953     raise child_exception_type(errno_num, err_msg, err_filename)
1954 else:
1955     raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'mri_watershed'
Steps to reproduce
#%%
import mne
import os.path as op
import mne_bids

subject = 'sub-22_new'
sb_dir = '/Volumes/neurospin/meg/meg_tmp/Deltaphase_shift_Valentine_2021/sophie_tmp/'

mne.set_config("FREESURFER_HOME", '/Applications/freesurfer/7.4.1/')
mne.set_config("SUBJECTS_DIR", sb_dir)
# print(mne.get_config())

#%%
mne.bem.make_watershed_bem(subject, subjects_dir=None, overwrite=True)

Link to data
No response
Expected results
Create BEM surfaces
Actual results
error message above
Additional information
Freesurfer is installed and working, mri_watershed exists in
/Applications/freesurfer/7.4.1/bin/mri_watershed
It seems like other users had the same issue recently: https://mne.discourse.group/t/mne-bem-make-watershed-bem-compatablity-with-freesurfer-7-3-2/5794/4

Can you check for example ls -l $FREESURFER_HOME/bin/mri_* and see if it's there? And if you do:
$FREESURFER_HOME/bin/mri_watershed --help

do you get the help info?

This is what I tried:
#%%
import mne
import os
import os.path as op
import mne_bids

subject = 'sub-23'
sb_dir = '/Volumes/neurospin/meg/meg_tmp/Deltaphase_shift_Valentine_2021/sophie_tmp/'

mne.set_config("FREESURFER_HOME", '/Applications/freesurfer/7.4.1/')
mne.set_config("SUBJECTS_DIR", sb_dir)
# print(mne.get_config())

#%%
mne.bem.make_watershed_bem(subject, subjects_dir=None, overwrite=True)

No what I meant, if you open a terminal in VS Code (assuming you're using VS Code to run your script?), just run:
mri_watershed

Does that work?

mne.set_config("FREESURFER_HOME", '/Applications/freesurfer/7.4.1/')
mne.set_config("SUBJECTS_DIR", sb_dir)

Is this supposed to work? I would always do it as:
import os
os.environ["FREESURFER_HOME"] = ...

just running mri_watershed in the VScode terminal: not found
I got the set_config command from here: https://mne.tools/0.22/auto_tutorials/source-modeling/plot_background_freesurfer.html?highlight=mne set_config freesurfer_home
but using the os.environment gives the same error
os.environ["FREESURFER_HOME"] = '/Applications/freesurfer/7.4.1/'
os.environ["SUBJECTS_DIR"] = sb_dir

I am using Zsh

After sourcing freesurfer from the VScode terminal, I can execute the code and it finds mri_watershed, but only when I run it through the terminal, not in the interactive jupyter notebook. Did I misunderstand how this is supposed to work?

but only when I run it through the terminal, not in the interactive jupyter notebook. Did I misunderstand how this is supposed to work?

Did you make sure to launch the jupyter server from the same shell where you sourced the freesurfer setup script?

I am using Zsh

I will send you my setup later this afternoon ... busy with something else right now!
you should NOT need to manually source FS

How do I find out other than checking that they use the same conda environment?

By the order in which you execute commands. So if you do for BASH:
$ source $FREESURFER_HOME/SetUpFreeSurfer.sh
$ jupyter notebook

then open your notebook in that server things should work. But if you laurch jupyter notebook in a terminal where you have not yet set the FreeSurfer vars properly, it won't.
I thought we manually checked and added the correct bin paths so that things like mri_watershed would run via:
https://github.com/mne-tools/mne-python/blob/c63da99a870c550a4eef1b57a51160b7052a3386/mne/bem.py#L1245
It looks like we don't actually modify PATH. I guess we could here:
https://github.com/mne-tools/mne-python/blob/c63da99a870c550a4eef1b57a51160b7052a3386/mne/bem.py#L1910
But it's probably safest to make sure that people (either in a ZSH/BASH profile script) have $FREESURFER_HOME/<some_script> sourced in their terminal. It also indicates that we should probably improve our error message in MNE to mention the need to make sure FreeSurfer is properly set up / configured / sourced in whatever terminal you are running Python in (which for Jupyter means: the one where you launched the server).

@SophieHerbst
So this is how I got it working on my Mac:
Create a file ~/.profile with the following content:
export FREESURFER_HOME=/Applications/freesurfer/7.4.1
source $FREESURFER_HOME/SetUpFreeSurfer.sh

Close your terminal and VS Code
Start a new terminal
All should be working now

Great! I'm not sure it it works if you don't start VS Code from the command line, but by clicking on the app icon.
In any case, we should probably amend the installation instructions. What I told you above is, while present in the FreeSurfer docs, kind of hidden and hard to find.

It seems to work also when clicking on the icon.
Indeed, I was looking for this information when I first encountered the problem, but did not find it.

@larsoner It seems that currently, FREESURFER_HOME is retrieved via utils.get_config(). This searches the shell environment first and then falls back to the MNE config file.
I think this is problematic, as demonstrated above: @SophieHerbst set the variable via MNE's config mechanism, but the shell environment was never properly set up.
I suggest not to retrieve FREESURFER_HOME from MNE's config, and fail if it's not set in the shell.

Another option would be to check to see if FREESURFER_HOME/bin is in PATH and if it's not, add it to the env we use to run FreeSurfer commands. I think we discussed that possibility at some point but can't find it. Using set_config rather than os.environ was at least discussed a bit in https://github.com/mne-tools/mne-python/issues/6988 and implemented in the PR that fixed that issue. If it works, it's more convenient than having to source the correct FreeSurfer script! Might be fragile though, would need to be tested on macOS and Linux. At least to start, doing this works in an env without having sourced the FreeSurfer script:
$ ~/applications/freesurfer-6/bin/mri_watershed --help

So I'm cautiously optimistic we could work some magic here.

Interesting, also considering that the SetUpFreeSurfer.sh script does quite some heavy lifting to set everything up correctly

mne.set_config("FREESURFER_HOME", '/Applications/freesurfer/7.4.1/')

Also makes me wonder why this didn't work for @SophieHerbst, then?

also considering that the SetUpFreeSurfer.sh script does quite some heavy lifting to set everything up correctly

Yeah I looked at that, I think most of it is probably for recon_all and/or GUI stuff like freeview moreso than something like mri_watershed. But that's why I think it's worth testing a bit!

Also makes me wonder why this didn't work for @SophieHerbst, then?

Someone would have to look back at the code and blame deeper, it's possible we used to modify PATH previously but stopped at some point. Or maybe we only used FREESURFER_HOME at that time to get a fsaverage directory or something, not sure.


binds wildcard interface

Similar to #69, when binding to a wildcard interface, e.g.
JmDNS jmdns = JmDNS.create(new InetSocketAddress(0).getAddress());
// ...
jmdns.registerService(serviceInfo);

clients will receive the <IP_ADDRESS> ip address but not the actual ip address.
Tested with JmDNS 3.5.1.

@andyli Could you please check with 3.5.3?

I discontinued the project that used jmdns, and I don't think I can dig out the source code.
Feel free to close this if you think it has been fixed.

Let's close it then.


great lib... no sort?

great lib... no sort?
maybe add: https://plnkr.co/edit/DHLVc0?p=preview
regards
Sean

Hello,
I was planning on adding it this week-end when I have the time, but this looks good I'll take a look later :+1:
fknop

1.2.0 is published on npm. I added the orderBy.

sweet, tx!
you can checkout my Angular 2 Kitchen sink: http://ng2.javascriptninja.io
and source@ https://github.com/born2net/ng2Boilerplate
Regards,
Sean


1.21 :3

I would assume it won't be too hard to do

https://github.com/Roundaround/mc-fabric-roundalib/issues/1


Hybrid Execution execs & EXPLAIN

Explain Execs
TL;DR, we need to think about the plans in a way that they are easy to explain when running EXPLAIN. They should be self describing & contain all relevant information about remote/local execution.
I initially was working on Explain for RPC & it brought up some questions on how we can properly display this information when running an explain such as
> explain select * from csv_scan('https://raw.githubusercontent.com/GlareDB/glaredb/main/testdata/sqllogictests_datasources_common/data/bikeshare_stations.csv');
┌───────────────┬─────────────────────────────────────────────────────────────────────┐
│ plan_type     │ plan                                                                │
│ ──            │ ──                                                                  │
│ Utf8          │ Utf8                                                                │
╞═══════════════╪═════════════════════════════════════════════════════════════════════╡
│ logical_plan  │ TableScan: csv_scan projection=[station_id, name, status, address,  │
│               │ alternate_name, city_asset_number, property_type, number_of_docks,  │
│               │ power_type, footprint_length, footprint_width, notes,               │
│               │ council_district, modified_date]                                    │
│ physical_plan │ CsvExec: file_groups={1 group: [[]]}, projection=[station_id, name, │
│               │ status, address, alternate_name, city_asset_number, property_type,  │
│               │ number_of_docks, power_type, footprint_length, footprint_width,     │
│               │ notes, council_district, modified_date], has_header=true            │
│               │

I think the logicalplan explain makes sense (for the most part).  We could maybe clarify by wrapping this in something like RemoteTableScan.
I think we need further clarity on the physical plan execs. such as
│ physical_plan │ RemoteExec:       |
│               │     CsvExec {...} |

which could be flattened to:
│ physical_plan │ RemoteCsvExec {...} |

Hybrid execution Execs
In order to properly EXPLAIN all of these paths, we need a very clear understanding of the hybrid execution model & the resulting execs.
I know we have the following

SendRecvJoinExec
ClientExchangeSendExec
ClientExchangeRecvExec
RemoteExecutionExec
RemoteScanExec

but not sure I fully understand how all of those are being used.

My understanding of the ideal execution for various execs
🏠 = local
📡  = remote
Single source execs

Data Source
Optimal Run Location

Local
🏠

Remote
📡

External (s3, http, ...)
📡

binary join execs (we can skip this section & just rely on the multi join logic for now)
we could be slightly more sophisticated when doing a non nested join.
Some assumptions

Any data from a remote data source should always run on remote & data is broadcast to the remote server (we can later fine tune the join/broadcast execs).
Any query referencing only local data should always run locally
joins on external data should run on the environment of the other half of the join.

in the event of both sides being external, we run it on the remote instance.

Local
Remote
External

Local
🏠
📡
🏠

Remote
📡
📡
📡

External
🏠
📡
📡

Multi join execs
this is where things get really tricky & probably best to keep this portion rather simple for now & create some optimization rules later on

any plan with all local nodes executes locally
anything else runs on remote (with local nodes running locally & broadcast to remote).

Quick table on where we should be doing certain actions:

Resolve: How we resolve tables (check if they exist or not)
Dispatch: Loading the table provider

Table/Function
Resolve
Dispatch
Execute

read_* (read databases)
remote
remote
remote

*_scan (s3/gcs)
remote
remote
remote

*_scan (local)
local
local
local

Native tables
local
remote
remote

External tables
local
remote
remote

Tables using an external database
remote
remote
remote

Temp tables
local
local
local

External tables: Tables created with CREATE EXTERNAL TABLE ...
Tables using an external database: Tables referenced through a database
created with CREATE EXTERNAL DATABASE ...

Notes:

Temp tables can be moved to entirely remote if that's easier.

Readable explains for user + debugging.
We can move it to next to improve upon the intial RPC impl.

So i think this is blocked as long as we are using the references for our remote execs. Without (de)serializing the inner plan, the remote exec nodes are just black-boxes.


Asset and devroom issues

A lot of assets have a white outline around them, probably because they were submitted on a white opaque background.
This issue will document all of the problems regarding assets and the devroom.
Devs - please tick each of these checkmarks as they're fixed.

[x] Palettette@ (white halo) (shows up twice, second time is broken)

[ ] Buff (white halo) (appears twice in the devroom)

[ ] Red Tile (white halo, very slight)

[x] Sour Gummy (white halo)

[x] Marble Bust (white halo)

[x] Blue-Colored Glasses (white halo) (why is he hiding on the right side of the screen) (appears twice in the devroom)

[ ] Crayon Box (white halo) (faulty animation)
https://github.com/pixequil/oso-game-1/assets/49569238/da9c58b6-ee43-4d99-b3ff-ac0ac330c07f
[ ] Dolly (shows up twice in the devroom!!!!!!)
[ ] Blue Tile (shows up twice in the devroom)
[ ] Capsule (shows up twice in the devroom)
[ ] Rose-Colored Glasses (shows up twice in the devroom) (faces wrong direction)

credit as XKZ

That looks good! Palettette@ still has some of that halo though

credit as XKZ

all these issues come from merging issues i assume

cmon guys you gotta learn how to handle merge conflicts correctly


Client closing Unexpectedly  cause of of "type 'Null' is not a subtype of type 'int' in type cast

### client closing automatically after reaching authorization ready state. Below are the SS of the problems in logs

Issue fixed by updating jnlibs to latest v1.8.33
And editing jsonbindings.dart


Failed to establish a new connection: [Errno 111] Connection refused

Error Code
from web3 import Web3
#for connecting to ganache
w3 = Web3(Web3.HTTPProvider("HTTP://<IP_ADDRESS>:7545"))
chain_id = 5777
my_address = "0x8f0985D97A8C4f5D5e114bD620e9BEa8ed31FF4e"
private_key = "15e5dbb03aca0d5de6a79c759516b78620e9fad2f730c56e4148fa068b0f9221"
#Get the latest transaction
nonce = w3.eth.getTransactionCount(my_address)
print(nonce)
Error
Traceback (most recent call last):
File "/mnt/c/Users/User/demos/web3_py_simple_storage/venv/lib/python3.8/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/mnt/c/Users/User/demos/web3_py_simple_storage/venv/lib/python3.8/site-packages/urllib3/util/connection.py", line 96, in create_connection
raise err
File "/mnt/c/Users/User/demos/web3_py_simple_storage/venv/lib/python3.8/site-packages/urllib3/util/connection.py", line 86, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/mnt/c/Users/User/demos/web3_py_simple_storage/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "/mnt/c/Users/User/demos/web3_py_simple_storage/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/mnt/c/Users/User/demos/web3_py_simple_storage/venv/lib/python3.8/site-packages/urllib3/connection.py", line 239, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/lib/python3.8/http/client.py", line 1252, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1298, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1247, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1007, in _send_output
self.send(msg)
File "/usr/lib/python3.8/http/client.py", line 947, in send
self.connect()
File "/mnt/c/Users/User/demos/web3_py_simple_storage/venv/lib/python3.8/site-packages/urllib3/connection.py", line 205, in connect
conn = self._new_conn()
File "/mnt/c/Users/User/demos/web3_py_simple_storage/venv/lib/python3.8/site-packages/urllib3/connection.py", line 186, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fc33ceefca0>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/mnt/c/Users/User/demos/web3_py_simple_storage/venv/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/mnt/c/Users/User/demos/web3_py_simple_storage/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 755, in urlopen
retries = retries.increment(
File "/mnt/c/Users/User/demos/web3_py_simple_storage/venv/lib/python3.8/site-packages/urllib3/util/retry.py", line 574, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='<IP_ADDRESS>', port=7545): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc33ceefca0>: Failed to establish a new connection: [Errno 111] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "test.py", line 10, in
nonce = w3.eth.getTransactionCount(my_address)
File "/mnt/c/Users/User/demos/web3_py_simple_storage/venv/lib/python3.8/site-packages/web3/module.py", line 57, in caller
result = w3.manager.request_blocking(method_str,
File "/mnt/c/Users/User/demos/web3_py_simple_storage/venv/lib/python3.8/site-packages/web3/manager.py", line 197, in request_blocking
response = self._make_request(method, params)
File "/mnt/c/Users/User/demos/web3_py_simple_storage/venv/lib/python3.8/site-packages/web3/manager.py", line 150, in _make_request
return request_func(method, params)
File "cytoolz/functoolz.pyx", line 250, in cytoolz.functoolz.curry.call
File "/mnt/c/Users/User/demos/web3_py_simple_storage/venv/lib/python3.8/site-packages/web3/middleware/formatting.py", line 76, in apply_formatters
response = make_request(method, params)
File "/mnt/c/Users/User/demos/web3_py_simple_storage/venv/lib/python3.8/site-packages/web3/middleware/gas_price_strategy.py", line 90, in middleware
return make_request(method, params)
File "cytoolz/functoolz.pyx", line 250, in cytoolz.functoolz.curry.call
File "/mnt/c/Users/User/demos/web3_py_simple_storage/venv/lib/python3.8/site-packages/web3/middleware/formatting.py", line 74, in apply_formatters
response = make_request(method, formatted_params)
File "/mnt/c/Users/User/demos/web3_py_simple_storage/venv/lib/python3.8/site-packages/web3/middleware/attrdict.py", line 33, in
middleware
response = make_request(method, params)
File "cytoolz/functoolz.pyx", line 250, in cytoolz.functoolz.curry.call
File "/mnt/c/Users/User/demos/web3_py_simple_storage/venv/lib/python3.8/site-packages/web3/middleware/formatting.py", line 74, in apply_formatters
response = make_request(method, formatted_params)
File "cytoolz/functoolz.pyx", line 250, in cytoolz.functoolz.curry.call
File "/mnt/c/Users/User/demos/web3_py_simple_storage/venv/lib/python3.8/site-packages/web3/middleware/formatting.py", line 76, in apply_formatters
response = make_request(method, params)
File "cytoolz/functoolz.pyx", line 250, in cytoolz.functoolz.curry.call
File "/mnt/c/Users/User/demos/web3_py_simple_storage/venv/lib/python3.8/site-packages/web3/middleware/formatting.py", line 74, in apply_formatters
response = make_request(method, formatted_params)
File "/mnt/c/Users/User/demos/web3_py_simple_storage/venv/lib/python3.8/site-packages/web3/middleware/buffered_gas_estimate.py", line 40, in middleware
return make_request(method, params)
File "/mnt/c/Users/User/demos/web3_py_simple_storage/venv/lib/python3.8/site-packages/web3/middleware/exception_retry_request.py", line 105, in middleware
return make_request(method, params)
File "/mnt/c/Users/User/demos/web3_py_simple_storage/venv/lib/python3.8/site-packages/web3/providers/rpc.py", line 88, in make_request
raw_response = make_post_request(
File "/mnt/c/Users/User/demos/web3_py_simple_storage/venv/lib/python3.8/site-packages/web3/_utils/request.py", line 48, in make_post_request
response = session.post(endpoint_uri, data=data, *args, **kwargs)  # type: ignore
File "/mnt/c/Users/User/demos/web3_py_simple_storage/venv/lib/python3.8/site-packages/requests/sessions.py", line 590, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/mnt/c/Users/User/demos/web3_py_simple_storage/venv/lib/python3.8/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/mnt/c/Users/User/demos/web3_py_simple_storage/venv/lib/python3.8/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/mnt/c/Users/User/demos/web3_py_simple_storage/venv/lib/python3.8/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='<IP_ADDRESS>', port=7545): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc33ceefca0>: Failed to establish a new connection: [Errno 111]
Connection refused'))

@kingsingh21 Try changing the ganache URL to http://<IP_ADDRESS>:8545 and the ganache chain id to 1337 and then pass these updated values in in your code. That should resolve your issue.

I have tried changing the ganache URL to http://<IP_ADDRESS>:8545 and the ganache chain id to 1337 and using the values in code. I have updated ganache server details also. But still same issue.
Then I tried changing the ganache server details as per screenshot(since I am using wsl) and updating code but still facing same error.

@kingsingh21 Try changing the ganache URL to http://<IP_ADDRESS>:8545 and the ganache chain id to 1337 and then pass these updated values in in your code. That should resolve your issue.

I have tried changing the ganache URL to http://<IP_ADDRESS>:8545 and the ganache chain id to 1337 and using the values in code. I have updated ganache server details also. But still same issue.
Then I tried changing the ganache server details as per screenshot(since I am using wsl) and updating code but still facing same error.

@kingsingh21 In the screenshot you shared, the RPC SERVER url is http://<IP_ADDRESS>:7545. Change this to match your ganache URL you are using in the code i.e. http://<IP_ADDRESS>:8545 and everything should work.

Yes, tried with RPC SERVER url as http://<IP_ADDRESS>:7545 but still same issue,

HTTP://<IP_ADDRESS>:8545
chain_id 1337
try this
it is working

HTTP://<IP_ADDRESS>:8545 chain_id 1337 try this it is working i am using wsl

Still same issue, this did not help.

I'm also using WSL and try this now a get a connection time out error.
requests.exceptions.ConnectTimeout: HTTPConnectionPool(host='<IP_ADDRESS>', port=8545): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7feaebb9b908>, 'Connection to <IP_ADDRESS> timed out. (connect timeout=10)'))

I had the same issue and now I've resolved it.
This is what I've done:

chain_id = 1337 (5777 is the network id)
changed hostname (in Ganache -> Settings -> Server -> Hostname), than changed Web3(Web3.HTTPProvider("http://<IP_ADDRESS>:7545/")) with the new hostname

This is my code: deploy.txt

Hi! If you are WSL user and the problem persists, this might help:
https://github.com/smartcontractkit/full-blockchain-solidity-course-py/discussions/1490


crash on showing specially crafted string

First: is this a bug report? A suggestion? Or asking for help?
bug report
Problem description
My fuzzing found an panic inside cursive itself when displaying a string supplied from an untrusted source:
thread '<unnamed>' panicked at 'byte index 1 is not a char boundary; it is inside '\u{85}' (bytes 0..2) of `
-`', /home/capitol/projects/cursive/cursive-core/src/utils/lines/spans/segment.rs:24:24

Can be replicated with with program:
use cursive::views::{Dialog, TextView};
use std::str;

fn main() {
    let d: Vec<u8> = vec![194, 133, 45, 127, 29, 127, 127];
    let str = str::from_utf8(&d);
    if let Ok(s) = str {
        // Creates the cursive root - required for every application.
        let mut siv = cursive::default();

        // Creates a dialog with a single "Quit" button
        siv.add_layer(Dialog::around(TextView::new(s))
            .title("Cursive")
            .button("Quit", |s| s.quit()));

        siv.run();
    } else {
        println!("not valid utf8");
    }
}

Environment

Operating system: linux (ubuntu 20.04)
Backend used: ncurses (the default one) but looks like it applies to all of them
Current locale (run locale in a terminal).

$ locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=nb_NO.UTF-8
LC_TIME=nb_NO.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=nb_NO.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=nb_NO.UTF-8
LC_NAME=nb_NO.UTF-8
LC_ADDRESS=nb_NO.UTF-8
LC_TELEPHONE=nb_NO.UTF-8
LC_MEASUREMENT=nb_NO.UTF-8
LC_IDENTIFICATION=nb_NO.UTF-8
LC_ALL=

Cursive version (from crates.io, from git, ...): replicated in git an 0.15

Hi, and thank you for the detailed report! Seems like we're doing something wrong there, will investigate.

Ah yeah we totally assume that any line-breaking character is 1-byte in utf-8... smart...
I pushed a tentative fix (and added this as a text case). Though now I see a new problem: ncurses behaves differently from other backends like termion/crossterm when attempting to print control characters like \u{7f} or \u{1d}:
Ncurses tries to print something:

Crossterm just ignores it:

UnicodeWidth returns a 0-width for these control characters, so the correct behaviour would be not to print them.
But rather than patching ncurses to not print them, it may be easier to sanitize the user input and remove these characters from any provided string?
On the other hand, there is a longer-term plan to bring something like agavrilov/cursive_buffered_backend in cursive itself, keeping an internal character grid before flushing to the backend. If we had that, it would be easy to ignore any zero-width grapheme.

I can't really think of any use case where you would want to print those kind of control characters "raw", maybe if want to build a hex editor, but even then you need to sanitize/replace unprintable characters with something else.


Minor fixes to support using URL in swift-corelibs-foundation

This PR includes two minor bug fixes identified while adopting URL in the re-cored package branch of SCF. This ensures that we use the proper error user info key declaration and also ensures that standardizing a URL or resolving symlinks in a URL will respect the directory designation when that URL was initialized even if it doesn't match what's on the filesystem.

@swift-ci please test


Can SSG use mock

Describe the bug
Want to use mock data in SSG, however, the original writing failed through SSG build，I think mock production can still be used

pnpm 7.4.0
nvs node/16.15.1/x64 (Gallium) [current]

Reproduction
import { createProdMockServer } from 'vite-plugin-mock/es/createProdMockServer' const modules = import.meta.glob('/mock/source/*.ts', { eager: true })  export function setupProdMockServer() {   createProdMockServer(     Object.entries(modules).map(item => {       return item[1].default[0]     })   ) }
System Info
[vite-ssg] Please report an issue, if none already exists: https://github.com/antfu/vite-ssg/issues
file:///D:/VueDoc/vitesse-main/.vite-ssg-temp/main.mjs:2
import { createProdMockServer } from "vite-plugin-mock/es/createProdMockServer.js";
         ^^^^^^^^^^^^^^^^^^^^
SyntaxError: Named export 'createProdMockServer' not found. The requested module 'vite-plugin-mock/es/createProdMockServer.js' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:

import pkg from 'vite-plugin-mock/es/createProdMockServer.js';
const { createProdMockServer } = pkg;

Used Package Manager
pnpm
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guide.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
[X] The provided reproduction is a minimal reproducible of the bug.

According to the error message, maybe the error is caused by the plugin itself because it has no correct named export.


How about put the base url somewhere it can be found easily?

I've been searching for the base url for the api for about 10 min and am having a hard time finding it.  Maybe I'm missing something really obvious though.
File: registry/spec/api.md

That page describes the specification of the "distribution spec" API, which is implemented by (e.g.) the open source registry (https://docs.docker.com/registry/), but also Docker Hub itself. The base-url thus depends on which registry you're connecting to, which could be your own registry (if you run the open source registry somewhere), or Docker Hub (https://registry-1.docker.io)

Yep that makes sense.  It would be good to use dockerhub’s base uri as the example though, so we can test against it with the repos that are already there and compare to whatever registry might be deployed.  Just my $0.02

I don't think many (if any) of the parts in that specification could be used without manually modifying them to fill in the fields (e.g. name or the repository, authentication information). These pages are taken from the upstream repository for the open source registry (https://github.com/docker/distribution/blob/master/docs/spec/api.md), and I don't it would work to have that reference Docker Hub (for example, some endpoints are "optional" and are not implemented in large scale registries). The markdown is generated using a template (https://github.com/docker/distribution/blob/master/docs/spec/api.md.tmpl), so perhaps for your own use you could update the template, and generate it to include a base URL in the template?
I'm closing this ticket for now; while I understand what you're looking for, I don't think it's possible to address this at this moment for reasons mentioned above. Feel free to continue the conversation though


Copy/paste isn't working on Google Docs and Goole Mail with Firefox 58

Since the last upgrade (Mar. 25, 2018), v.2.3.1 the Ctrl+C for text in Google Docs and Ctrl+V for images in Google Mail doesn't work anymore.

There was the empty rule line which caused that. Sorry.


conn.close() raises exception

Seems like conn.close() raises an exception that just says the connection is closed. Why is the exception raised, if closing the connection is the purpose of the function?
>>> conn = pyhdb.connect(**credentials)
>>> conn.isconnected()
True
>>> conn.close()
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\lib\site-packages\pyhdb\connection.py", line 97, in __send_message_recv_reply
    raw_header = self._socket.recv(32)
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\ProgramData\Anaconda3\lib\site-packages\pyhdb\connection.py", line 168, in close
    reply = self.send_request(request)
  File "C:\ProgramData\Anaconda3\lib\site-packages\pyhdb\connection.py", line 84, in send_request
    return self.__send_message_recv_reply(payload.getvalue())
  File "C:\ProgramData\Anaconda3\lib\site-packages\pyhdb\connection.py", line 121, in __send_message_recv_reply
    raise OperationalError("Lost connection to HANA server (%r)" % error)
pyhdb.exceptions.OperationalError: Lost connection to HANA server (ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))

Closing due to the sunset of the project. Please check active maintained alternative: https://pypi.org/project/hdbcli/


[Bug][UI Next][V1.0.0-Alpha] save workflow in workflow instance detail page no response

Search before asking

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

What happened

What you expected to happen
above.
How to reproduce
above.
Anything else
No response
Version
dev
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

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

I will fix it


Add basic local dev script

closes: #30

in addition to required env vars, we'll also need to setup gcp.json and GOOGLE_APPLICATION_CREDENTIALS
https://cloud.google.com/docs/authentication/application-default-credentials
cc @sunank200

in addition to required env vars, we'll also need to setup gcp.json and GOOGLE_APPLICATION_CREDENTIALS https://cloud.google.com/docs/authentication/application-default-credentials cc @sunank200

Yes, But don't want to checkin the copy command so added a comment in dockerfile also added a way to generate template for env require in API

Don't we review dockerfile with env here? And how does one set env? Another thing to consider is a local dev story for the slack app. You can use something like this to forward the port for slackbot: https://ngrok.com/docs/secure-tunnels/non-local/#:~:text=Forwarding to servers on a,network address and port instead.

Added way to generate a template for env. slack part will be addressed https://github.com/astronomer/ask-astro/pull/42

Lets not merge this PR before approval please @pankajastro

This PR has better approach of local dev story: https://github.com/astronomer/ask-astro/pull/42


Firefox working, Chrome not connecting to Websocket [NGINX + SSL]

#solved

#solved

can you tell me please, how you solve that?

@m4aax16 may u mention solution ?


Initial unstable blocks state in Jormungandr NetworkLayer

Relates to #647
Overview

Keeps the unstable blocks sequence in an MVar that is initialised in newNetworkLayer.
Adds property tests for finding the intersection with rollback, etc.
Has property tests for failing networkTip and/or getBlock calls.

I have added some diagrams to explain it and renamed mergeWith to fetchBackwards.
Yes, the intersected condition was wrong, thanks for finding that. I have fixed it, and added a property that it never fetches block headers which it already has.
We definitely do need to keep the local chain height, because since #684, that is part of the networkTip return type.
Yes, UnstableBlocks is a bounded queue. It's even actually a bounded double-ended queue. There is only ever going to be one operation to extend UnstableBlocks, and that is appendUnstableBlocks, so this is where the bounding is done. I have separated out the bounded append operation to make it clearer.
I have also added better labelling of the properties, and a property that checks what happens if the node fails while it's updating the sequence.

bors r+


S3 Connection?

Great script! Very useful!
Could you enlighten me on how to link the storage (e.g. S3) to the created nodes so that it can be mounted to the containers?
Thanks,
Danny

Thanks @kristiyanto I would need to explore it. I don't have that answer right now.

That'd be wonderful --thank you!


remove pod warning

You can run 'pod lib lint' to check that everything ok next time before submitting lib to CocoaPods


Allow for leading 0 in mod names

It would be nice to allow for a leading 0 in mod names (e.g. day01 instead of day1) so that days 10-19 aren't sorted after day1 and days 20-25 aren't sorted after day2.
In other words currently I'm forced to have:
mod day01;
mod day10;
mod day11;
// ...
mod day19;
mod day2;
mod day20;
// ...
mod day25;
mod day3;

whereas I'd like to be able to do:
mod day01;
mod day02
mod day03;
// ...
mod day10;
mod day11;
mod day12;

etc.

You can already do that, you just have to pass it 01 instead of 1, the macro doesn't car as long as it's a valid integer. You could even do 001 if you wanted.

It could still be interesting to get a better error message (and eventually get more robust, but I'm not sure if that last on wouldn't be annoying).

Not really sure why I thought this didn't work, maybe it didn't work in a previous version?

That's possible as I rewrote most of the parsing mechanism here


Update run-analyzer-macos-linux.md

Made the changes as the Checksum returned by the supplied command does not match.
Fixes https://github.com/MicrosoftDocs/microsoft-365-docs/issues/12698

@mjcaparas Please merge this PR. Thanks


Evaluate RevoGrid for displaying large datasets as alternative to Tabulator

RevoGrid features: https://github.com/revolist/revogrid#key-features
Tabulator peaks at 100K rows and required pagination added in #60.
It should be possible to incrementally load millions of rows into modern grid web components without degrading table data view and scrolling performance or pagination.
Will evaluate if RevoGrid can do it without pagination on larger datasets, and provide it as a an alternative tabular.data.grid config option.

Looks like RevoGrid and plugins development is no longer active: https://github.com/revolist
While it provides the features we need for our advanced table view, building alternative RevoGrid view using a library that is no longer actively maintained or improved is suboptimal.
We'll add alt. Perspective View instead (#65)


Idea: file change listening == makes fromscratch sync-capable!

Hi!
Fromscratch looks great! I was trying to set up a confidential scratch pad that syncs between my computers, and so I symlinked the ~/.scratchpad directory to a directory that I have synced across multiple computers using Syncthing.
Since the actual synchronization is handled by the underlying synchronization program (could be Syncthing or any number of cloud storage services like Dropbox/OneDrive/iCloud/ etc.), the only thing fromscratch would need to do to support seamless cross-device sync is to listen for file changes and update them in the UI - so that when I write something on machine A and machine B has fromscratch open, as soon as the synchronization comes through, it just reloads the UI to show the updated content.txt.
I realize this could result in sync issues that are more or less easy to resolve (which depends on the cloud storage provider, mostly), and it's probably not a feature to immediately advertise for that reason. But for advanced users who are aware of this and are willing to resolve a conflict manually (or simply avoid it by not typing on both ends at the same time), this could give fromscratch basic sync capabilities with very little effort (I assume - I don't know enough about Electron to say exactly what needs to be done. But I assume there is some way to watch a file for changes and trigger a content reload based on that?
I totally understand if you consider this out of scope - just an idea! :)

On second thought: Even just a shortcut that triggers reloading of content.txt would do it for me :)

Hey! I don't have a lot of time to spend on FromScratch lately (Focussing fully on Polypane). The difficult thing to solve here is that FromScratch also saves to that file on every change. If we also load that file on change (for example, using chokidar) we would need to do two things:

filter out saves we did ourself
preserve caret location when loading in the new content

Both can be handled easier, I think, by a sync server that syncs delta's (like CRDT) and doesn't care about what's being saved to disk. But those are just far-future thoughts.


Bump Pipelines to v0.62.1 and Gitea to v1.22.1

Commit https://github.com/openshift-pipelines/pipelines-as-code/pull/1749/commits/d12f33a1bdcf800036063d6ec91b7ce7cc58b326 fixes

bump Pipelines v0.62.1
removed replaces for k8s.io
Pipeline v0.62.x removed OCI bundles so updated test yaml files from taskRef.bundle and pipelineRef.bundle to bundle resolver ref doc
Updated Dockerfile and pipelinerun yamls under .tekton from go1.21 to go1.22
Fixed some unit tests

Commit https://github.com/openshift-pipelines/pipelines-as-code/pull/1749/commits/9fb743dab9af91fe9bfa52d1c25ebfabd3d513ed fixes

CVE issue https://issues.redhat.com/browse/SRVKP-5914

Signed-off-by: Savita Ashture<EMAIL_ADDRESS>Changes

Submitter Checklist

[ ] 📝 Please ensure your commit message is clear and informative. For guidance on crafting effective commit messages, refer to the How to write a git commit message guide. We prefer the commit message to be included in the PR body itself rather than a link to an external website (ie: Jira ticket).

[ ] ♽ Before submitting a PR, run make test lint to avoid unnecessary CI processing. For an even more efficient workflow, consider installing pre-commit and running pre-commit install in the root of this repository.

[ ] ✨ We use linters to maintain clean and consistent code. Please ensure you've run make lint before submitting a PR. Some linters offer a --fix mode, which can be executed with the command make fix-linters (ensure markdownlint and golangci-lint tools are installed first).

[ ] 📖 If you're introducing a user-facing feature or changing existing behavior, please ensure it's properly documented.

[ ] 🧪 While 100% coverage isn't a requirement, we encourage unit tests for any code changes where possible.

[ ] 🎁 If feasible, please check if an end-to-end test can be added. See README for more details.

[ ] 🔎 If there's any flakiness in the CI tests, don't necessarily ignore it. It's better to address the issue before merging, or provide a valid reason to bypass it if fixing isn't possible (e.g., token rate limitations).

/test

@savitaashture LGTM as well.


Cannot run with errors

￼

Just flow up the guide doc, but I cannot run normally.

@AkashiX Hi, I also got this problem. Have you solved it?


Cow: Watch thefontsgenerator.com

Cow requests the watch of the watch_keyword thefontsgenerator\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

thefontsgenerator\.com has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by Mast in Charcoal HQ


ECDSA Key Pair verification failure

I'm trying to run ECDSA key pair verification for [K-163] curve.
Here are my calls:
key = EC_KEY_new_by_curve_name(NID_sect163k1);
rv = EC_KEY_set_public_key_affine_coordinates(key, Qx, Qy);

For the following input, the result should've been a "FAIL" (as I got on Linux) but I get a "PASS" when the same code and same input is run on Windows:

Qx = bb8af626a652027955e29ff39e187fc1ebe537aeb
Qy = 05fc9f797943a40dac5913a108211f1e038af9e3d

Can anyone suggest why this behavior changes on Windows?
Thanks!

Can you give more details?
How was the windows binary built? Can you report also openssl.exe version - a?

Could you reproduce this without the FIPS module in windows?

Also, would you be able to provide a simple piece of code with a list of test that are showing the behavior?

It would be just to try and reproduce the issue and trying to figure out where the weird behavior is originating from.


SCRD-3481 - only show Monasca column when Monasca is installed

The collapsible table had a magic number that was incorrect calculating the number of columns to display. Fixed that issue and leveraged the fix to hide the Monsaca column when Monasca is not installed

This will need a squad & merge when its done due to my goofy fork->branch approach here, sorry!


Index not correct

I am seeing an issue where the index is not being calculated correctly, I have 3 option groups US States, Canadian Provinces, and Australian States.  So for example pressing 't' should return 3 key indexes. Also, I noticed that $items.length should be 87 but .index() is returning a value out of that range.
// Expected:
keyIndex = [
  56 // Tennessee
  , 57 // Texas
  , 84 // Tasmania
]

// Actual:
keyIndex = [
  58 // Utah
  , 59 // Vermont
  , 90 // ??? Out of range.
]

When inspecting Line 1074

$items.each(function () {
  if ($(this).parent().is(':not(.disabled)')) {
    if ($.trim($(this).text().toLowerCase()).substring(0, 1) == keyCodeMap[e.keyCode]) {
      keyIndex.push($(this).parent().index());
    }
  }
});

I noticed that the data-original-index="56"
but in the following the .index() is returning as 58.
I will try to get a fiddle setup so that you can debug the issue.

The indices get messed up when there are group headers or dividers.

In b3bbb6b9c30249481b6798d7b511b5a936ebe4cb it was changed to use .data('originalIndex') instead of .index(). This should be working now in the latest release candidate.


[ENH] Speed up test all estimators

Reference Issues/PRs
Fixes #563
Fixes #418
#59
#151
#154
What does this implement/fix? Explain your changes.
speed up/tidy up test_all_estimators. At the start of this a local run takes 32 mins. Aim to half this without loss to coverage or functionality tests. Then need to look at

Individual estimator test configs, esp slowest
InceptionTimeClassifier/Regressor + Individual versions, esp on Multivariate
Configuration, so can switch as in #437

This PR combines tests with the same arguments

Removes the skipped test for equivalent with threaded and single thread. I just dont think it makes sense to test this. I dont think it is necessarily enforcable, and not always necessary: threaded algorithms are sometimes different. The test should be for no sig difference overall. No time improvement!
Combine test_update_state and test_does_not_change_hyperparameters to use the same call to fit. Both args are:
18,716 tests, time saved on full run is 4 mins.
Remove test_save_estimators_to_file. Can combine with test_persistence_via_pickle if desired, but I am generally against writing to disk for
Combines test_non_state_changing_method_contract and test_no_side_effects, also removed an unnecessary extra call to predict_proba, and tidied up cases for get_params (15,135 tests,

lost some text there somehow. This ended up with 13757 tests

3. Remove test_save_estimators_to_file.

Ill put it back, its pointless and will make it a class test in another pr, or just ditch it


Allow using go test -c as build command

We often use go test -c to create binaries that need to run in a cluster to run their tests inside kubernetes. Currently ko only supports go build as a build command, so for these tests there is currently no way to be applied using ko.
I'd be really glad if a flag would allow me to change the build command.

@n3wscott had an related idea for a ko test command.
How would you want this to work? Similar to ko apply but instead of building a main package we create the test binary?
We might be able to do this without a flag, e.g. by checking for TestGoFiles instead of IsCommand here.

i'm fine with any implementation, doesn't need to be a flag, it could also be a new command e.g. ko test. If it could figure out automatically which command is required it would allow for some nice scenarios. E.g. that would allow you to install a controller and run its tests with one ko apply

E.g. that would allow you to install a controller and run its tests with one ko apply

I think this would be hard to do if there are tests in the same main package, but if they were two separate packages, I could imagine something like:
apiVersion: apps/v1
kind: Deployment
metadata:
  name: controller
spec:
  replicas: 1
  selector:
    matchLabels:
      app: controller
  template:
    metadata:
      labels:
        app: controller
    spec:
      containers:
      - name: controller
        image: github.com/google/ko/cmd/ko
---
apiVersion: batch/v1
kind: Job
metadata:
  name: controller-test
spec:
  template:
    spec:
      containers:
      - name: controller-test
        image: github.com/google/ko/cmd/ko/test
      restartPolicy: Never

Which would run github.com/google/ko/cmd/ko as the controller in a Deployment and github.com/google/ko/cmd/ko/test as the test in a Job. This would work with ko apply, but then you'd have to look at the Job status to determine if the test succeeds (I guess this isn't too hard?)
WDYT?

Thats exactly what i would need! I like it!

We might be able to do this without a flag, e.g. by checking for TestGoFiles instead of IsCommand here.

I think you could just do this part and it would just work.

So whats the way forward?

i created a draft pr.
#1103
How about an option like --test?


Metadata.FindNavigation - Add information about unstable API

First of all thanks for the great guide it's really a great starting point for building applications.
One question though - according to the API documentation for Metadata.FindNavigation this method is not recommended to use in user code.
https://docs.microsoft.com/en-us/dotnet/api/microsoft.entityframeworkcore.metadata.internal.entitytype.findnavigation?view=efcore-2.1
> This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.
Could you elaborate on that or at least add a disclaimer in the guide that this feature is not yet stable?

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

ID: 9c1c070c-b2ff-f29d-21df-bcc7bf9dd39d
Version Independent ID: 975107e9-0fc2-b867-d917-595412cbe422
Content: Implementing the infrastructure persistence layer with Entity Framework Core
Content Source: docs/architecture/microservices/microservice-ddd-cqrs-patterns/infrastructure-persistence-layer-implemenation-entity-framework-core.md
Product: dotnet
Technology: dotnet-ebooks
GitHub Login: @nishanil
Microsoft Alias: nanil

@CESARDELATORRE @divega can you look at the feedback about one EF Core API being used in the microservices e-book?

Hi @martinkotula, thanks for the heads up!
You're right, that code snippet is obsolete will update it in a few days.

Closing this issue, as it was solved in the latest general book review.


run ssd error:value cannot be converted to type float without overflow: inf

i can successfully run the RFB and FSSD .but when i run the ssd ,the following error occurs.anyone knows how to deal with it?
.......
return torch.log(torch.sum(torch.exp(x-x_max), 1, keepdim=True)) + x_max
RuntimeError: value cannot be converted to type float without overflow: inf

@vickersmith ,same problem,have you solved the problem?

I have the same problem, I use the version of pytorch is 0.40 @lzx1413 ,how to deal with it?

I have the same problem, and my pytorch version is 0.31

I have the same problem, I use the version of pytorch is 0.40 @lzx1413 ,how to deal with it?

Hello, I have the same problem (when training SSD), have you solved it? I am using torch0.3.1, if I use torch0.4.0 I will get a connection reject [111] error.
This problem has not occurred yet when training refinedet


Updating for CAS changes and new select a driver section

Adding changes requested by @jamtur01 and wrapping to 80 chars
Adding typo fixes and replacing tabs with 4xspaces
Closes and fixes #19240
Updating with content addressable storage model changes
Signed-off-by: Nigel<EMAIL_ADDRESS>

@thaJeztah LGTM from me.  I just carried this.  No changes.   Already been reviewed. Can you slack me if you need something else on this.  We have to get it in.

LGTM, thanks @nigelpoulton!

Thanks @thaJeztah for the assist.


Get relative mouse co-ordinates for individual windows

So sorry if this is already solved but I can't seem to find in the documentation how to get relative mouse co-ordinates for the window that is being used. Pygame gives me absolute mouse co-ordinates  which I can use in pygame_gui but if I have a pygame_gui window within another pygame_gui window is there ways to get relative mouse co-ordinates of the smaller inner window? If I press the bar at the top of the inner window this mouse click acts differently for some reasons and pygame doesn't give me a buutondown event. Does pygame_gui have its own way to get mouse coordinates?

So far - no, though it's likely a convenience function that could be added to the window class fairly easily with a bit of math.
I guess most people would probably want co-ordinates relative to the top left corner of the window contents rather than the whole element (which includes the window shadow and the title bar) - that's how pygame does it anyway.
I'll add it to my to do list.
In the short term you could likely grab the absolute mouse position from pygame and subtract the top left corner of the contents container for the window you are interested in.  Should be something like:
abs_mouse_pos = pygame.mouse.get_pos()
window_contents_top_left = my_window.get_container().get_rect().topleft
rel_mouse_pos = (abs_mouse_pos[0] - window_contents_top_left[0],
                 abs_mouse_pos[1] - window_contents_top_left[1])

Though that is just me scribbling code on the back of a business card after a long summer holiday so take it with a pinch of salt.

Thanks for the reply. I ended up finding out another way but it a lot more convoluted than what you wrote. I'll give your idea a go. Thanks again.

I'm adding get_relative_mouse_pos() to the UIWindow class in 0.6.0. This will give you a mouse position relative to the contents of a UI Window (so not including the title bar).


JUnit 5 docs should include examples for package/class filtering

The docs on test filtering includes a JUnit 4 example for package/class filtering, but we do not do the same for JUnit platform.
It would be good to add these examples, and further link to them from the Using JUnit 5 subsection.

You should be able to configure (and possibly have examples for) these things:
https://junit.org/junit5/docs/current/user-guide/#running-tests-build-gradle-selectors
An example similar to this one for the existing plugin would be useful:
junitPlatform {
    // ...
    filters {
        engines {
            include 'junit-jupiter'
            // exclude 'junit-vintage'
        }
        tags {
            include 'fast', 'smoke & feature-a'
            // exclude 'slow', 'ci'
        }
        packages {
            include 'com.sample.included1', 'com.sample.included2'
            // exclude 'com.sample.excluded1', 'com.sample.excluded2'
        }
        includeClassNamePattern '.*Spec'
        includeClassNamePatterns '.*Test', '.*Tests'
    }
    // ...
}

@eriwen the docs you linked to are independent of which test framework is used. Filtering by class name works for all of them. That's why it's not nested inside the framework element, but directly under the test task itself.

I think I see what you're saying @oehme.
I guess the goal is to make sure that all of the knobs that the Junit5 gradle plugin offers are also offered through the Gradle API.

Thanks @eriwen @JLLeitschuh . Just as @oehme said, filtering by name is unified in the documentation whichever test frame work is used.
junitPlatform {
    // ...
    filters {
        engines {
            include 'junit-jupiter'
            // exclude 'junit-vintage'
        }
        tags {
            include 'fast', 'smoke & feature-a'
            // exclude 'slow', 'ci'
        }
        packages {
            include 'com.sample.included1', 'com.sample.included2'
            // exclude 'com.sample.excluded1', 'com.sample.excluded2'
        }
        includeClassNamePattern '.*Spec'
        includeClassNamePatterns '.*Test', '.*Tests'
    }
    // ...
}

This can be translated to Gradle scripts:
test {
    filter {
        includeTestsMatching 'com.sample.included1.*', '*Test'
    }
    useJUnitPlatform {
        includeEngines 'junit-jupiter'
        includeTags 'fast', 'smoke & feature-a'
    }
}

And I added the missing includeEngines parts to the documentation in #4598


fix(position): positionArrow descendant selector

The element selector was not limited to direct descendants so
nested tooltip/popover arrow elements were getting selected instead
of the direct descendant arrow element.

Fixes #5230

LGTM


refactor : seata-rm-datasource module

Ⅰ. Describe what this PR did
Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

Codecov Report

Merging #2062 into develop will decrease coverage by 0.04%.
The diff coverage is 60.17%.

@@              Coverage Diff              @@
##             develop    #2062      +/-   ##
=============================================
- Coverage      55.21%   55.17%   -0.05%
- Complexity      2518     2523       +5
=============================================
  Files            446      446
  Lines          14922    14843      -79
  Branches        1768     1747      -21
=============================================
- Hits            8239     8189      -50
+ Misses          5919     5896      -23
+ Partials         764      758       -6

Impacted Files
Coverage Δ
Complexity Δ

...va/io/seata/rm/datasource/exec/UpdateExecutor.java
92.3% <ø> (ø)
11 <0> (ø)
:arrow_down:

.../src/main/java/io/seata/rm/GlobalLockTemplate.java
100% <ø> (ø)
2 <0> (ø)
:arrow_down:

.../io/seata/rm/datasource/undo/UndoLogConstants.java
66.66% <ø> (ø)
1 <0> (ø)
:arrow_down:

...ava/io/seata/rm/datasource/exec/PlainExecutor.java
100% <ø> (ø)
2 <0> (ø)
:arrow_down:

...ta/rm/datasource/exec/SelectForUpdateExecutor.java
82% <ø> (-0.36%)
10 <0> (ø)

...va/io/seata/rm/datasource/exec/DeleteExecutor.java
100% <ø> (ø)
6 <0> (ø)
:arrow_down:

...tasource/undo/oracle/OracleUndoInsertExecutor.java
69.23% <0%> (ø)
3 <0> (ø)
:arrow_down:

...datasource/undo/mysql/MySQLUndoDeleteExecutor.java
88.88% <0%> (ø)
5 <0> (ø)
:arrow_down:

...tasource/undo/oracle/OracleUndoUpdateExecutor.java
86.66% <0%> (ø)
4 <0> (ø)
:arrow_down:

...tasource/undo/oracle/OracleUndoDeleteExecutor.java
88.23% <0%> (ø)
5 <0> (ø)
:arrow_down:

... and 30 more

@zjinlei resolved

LGTM, keep jdk related import classes at the forefront.

Received, I will fix this later.


feature: Add web.xml with CORS enabled

Fixes #89 .
Where the fun happens: https://github.com/bptlab/chimera/blob/8c28368f680b7cd858c9b155fdcd74c1deb884c4/web.xml.tpl#L490 and following lines. The rest is just Tomcat's default web.xml

There is already an existing web.xml file in the Chimera project (src/main/webapp/WEB-INF/web.xml). Just add the CORS filter to it. Please test it, before merging. I had experimented with enabling the tomcat CORS filter and Eclipse threw some FilterChainException when debugging Chimera.

@marhew Thanks for the comment!
You can check the CORS response with this page.


Not found in Chrome Web Store

Can you provide me the link for install Type-X from Chrome Web Store because I don't found it?.
Thanks
Eduardo Tunni

Hey Eduardo, thanks for your interest!
We will be putting Type-X on the chrome web store soon, but if you'd like to use it right now, you can follow the instructions in the readme to install in developer mode.
https://github.com/arrowtype/type-x#installation

Hey,
I downloaded Type-X from GH but don’t know how install it.
With terminal?
Cheers
Edu

On 3 Oct 2019, at 15:02, Stephen Nixon<EMAIL_ADDRESS>wrote:
Hey Eduardo, thanks for your interest!
We will be putting Type-X on the chrome web store soon, but if you'd like to use it right now, you can follow the instructions in the readme to install in developer mode.
https://github.com/arrowtype/type-x#installation https://github.com/arrowtype/type-x#installation
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/arrowtype/type-x/issues/61?email_source=notifications&email_token=ABNSLF4I4YQOA6W7QU5EM5DQMYXTLA5CNFSM4I5DU7M2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAJB4ZA#issuecomment-538058340, or mute the thread https://github.com/notifications/unsubscribe-auth/ABNSLF67BR7BETGEWRTDKW3QMYXTLANCNFSM4I5DU7MQ.

Good question! Thanks for asking.
Actually, the dist folder is already built, so you can just do this:

Go to chrome://extensions in Chrome browser
Turn on "Developer Mode" with the toggle in the top-right corner
Click "Load unpacked" and navigate to the dist folder of the repo you cloned – alternatively, you can just drag-n-drop this dist folder into the extensions page.

I'll add this dist folder into the repo's releases page, to make this easier for the next person.

Your are the best!!
Cheers,
Edu
PS: Do you used or know Tunni Lines in Type-design?

On 3 Oct 2019, at 15:43, arrowtype<EMAIL_ADDRESS>wrote:
Good question! Thanks for asking.
Actually, the dist folder is already built, so you can just do this:
Go to chrome://extensions in Chrome browser
Turn on "Developer Mode" with the toggle in the top-right corner
Click "Load unpacked" and navigate to the dist folder of the repo you cloned – alternatively, you can just drag-n-drop this dist folder into the extensions page.
I'll add this dist folder into the repo's releases page, to make this easier for the next person.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/arrowtype/type-x/issues/61?email_source=notifications&email_token=ABNSLFYLRQTWJPWRNDE7JKTQMY4MZA5CNFSM4I5DU7M2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAJFY7I#issuecomment-538074237, or mute the thread https://github.com/notifications/unsubscribe-auth/ABNSLFZB6CIKCOJRVFWWZDTQMY4MZANCNFSM4I5DU7MQ.

Do you used or know Tunni Lines in Type-design?

Haha, I definitely do sometimes! You came up with that, right?

Haha, I definitely do sometimes! You came up with that, right?

Yes, but is controvertial for some type designers :)
FontLab has the real implementation of the Yunni-lines
Cheers.
Edu

On 3 Oct 2019, at 16:00, arrowtype<EMAIL_ADDRESS>wrote:
Do you used or know Tunni Lines in Type-design?
Haha, I definitely do sometimes! You came up with that, right?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/arrowtype/type-x/issues/61?email_source=notifications&email_token=ABNSLFYRWIVGLSM6VJLFXBDQMY6NLA5CNFSM4I5DU7M2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAJHJNY#issuecomment-538080439, or mute the thread https://github.com/notifications/unsubscribe-auth/ABNSLFZPCJ2Q3IBGVR6MBN3QMY6NLANCNFSM4I5DU7MQ.

Closing this issue as it looks to be solved :-)


Games should reset timer on each play

https://discord.js.org/#/docs/main/stable/class/ReactionCollector?scrollTo=resetTimer

maybe wait for #461 to reduce conflicts


Pinned tabs in Safari 14 on Big Sur won't get focus

It doesn't switch to pinned tabs. Only normal tabs.

This was fixed in https://github.com/epilande/alfred-browser-tabs/pull/17 & released in :bookmark:  v1.0.4


Update packages

I updated all packages from our devstack to the latest version, except eslint-plugin-jsx-a11y, which was not compatible with other packages, but it works with version 5.1.1.
From now on, we should use node 8.2.1 and npm 5.3.0 and higher.
Removed yarn.lock, because npm v5 adds it's own package-lock.json.
Changed error message format in js task, because it was not showing all message, which resulted in confusions with debugging the issue
Replaced module.js with suffix.js, because it was not initiated in app.js and therefore doing nothing.
Moved autoprefixer settings into package.json as recommedned

Regarding the node version, you should reflect that in package.json ("engines" key). It used for node version checking in https://github.com/actum/gulp-dev-stack/blob/master/gulp/environment.js

I think you can delete the suffix.js (module.js) altogether as there is already the cookieLaw module which is both an example and production ready.

@vbulant I already did, it is there:
"engines": {
    "node": ">=8"
  }


feat: allow wildcards in output paths

Fixes #77
Description
This PR adds provisions that allow clients to specify pathname matching wildcards ("globs") when specifying task outputs.
It addresses the discussion points summarized in this comment in the following ways:

Should TES implementations be required to support pathname matching in task outputs?
Yes. I feel that the use case is sufficiently common that it justifies the added complexity incurred by providing native support in TES, especially since the lack of support for globbing has been a blocker for a more widespread adoption of TES for some upstream implementers, e.g., Nextflow. This proposal adds the provisions for such native support.

How to indicate that TES should interpret a specified output as a glob?
This proposal requires TES implementations to always apply pathname matching rules to tesOutput.path values, unless wildcards are explicitly escaped. This behavior is familiar from (most) shells, completely removes any ambiguities and only alters the tesOutput.path description, so no structural changes to the specification are necessary. However, depending on a TES implementer's interpretation of the current specification, it may constitute a breaking change. Specifically, tesOutput.path values containing pathname matching wildcards would be treated differently by a TES implementation adopting the proposed change if (and only if) it previously interpreted wildcards literally. However, the expected behavior for paths including wildcards is currently underspecified (implementations may choose to expand or interpret them literally), so the proposed change rather adds clarity to a potential source of ambiguity across implementations.

Which globbing rules to prescribe?
This proposal suggests prescribing POSIX/Open Group pathname/pattern matching rules, because they are formally specified (see here and here), making them compatible with any POSIX-compatible shell environment, including Bash.

How to constuct remote storage URLs?
This proposal requires clients to do the following, whenever wildcards are used in tesOutput.path:

specify a directory for tesOuput.url
provide a tesOutput.path_prefix (new property) to indicate to TES implementations a prefix to remove from matched pathnames in order to identify the subdirectory tree that is then recreated at the directory specified for tesOuput.url

This solution fully supports wildcards in any part of tesOutput.path while avoiding name clashes, maximizing the control clients have over the eventual location of outputs and being straightforward to implement on the server side.

Examples

Use wildcards to copy files from multiple directories whose names are not known (new behavior).
Outputs to be copied:
 /path/in/container/unknown_subdir_1/output.bam
 /path/in/container/unknown_subdir_1/output.sam
 /path/in/container/unknown_subdir_2/output.bam
 /path/in/container/unknown_subdir_2/output.sam

Schema values to supply:
tesOutput.path: /path/in/container/*/*.?am
tesOutput.path_prefix: /path/in/container
tesOutput.url: https://my.storage.org/bucket/

URLs of outputs:
https://my.storage.org/bucket/unknown_subdir_1/output.bam
https://my.storage.org/bucket/unknown_subdir_1/output.sam
https://my.storage.org/bucket/unknown_subdir_2/output.bam
https://my.storage.org/bucket/unknown_subdir_2/output.sam

Copy a file whose name contains wildcard characters (behavior previously unspecified).
Output to be copied:
/path/with/wildc*rd_char?

Schema values to supply:
tesOutput.path: /path/with/wildc\*rd_char\?
tesOutput.path_prefix: # ignored
tesOutput.url: https://my.storage.org/bucket/wildc*ard_char?

URL of output:
https://my.storage.org/bucket/wildc*ard_char?

Copy output directory whose name is known (behavior unchanged).
Output to be copied:
/path/on/container/output/

Schema values to supply:
tesOutput.path: /path/on/container/output/
tesOutput.path_prefix: # ignored
tesOutput.url: https://my.storage.org/bucket/output/

URL of output:
https://my.storage.org/bucket/output/

Would appreciate feedback @kellrott @aniewielska @pditommaso @mr-c @MattMcL4475 @vsmalladi @wleepang @geoffjentry 🙏🏻

Looks good to me; tagging @tetron for his Arvados perspective and additional CWL perspective

I think this looks good, but I'm curious to see some concrete examples. For instance, if I set:
tesOutput.path: /path/to/folder
tesOutput.path_prefix: /path/to/folder
yes output.url: s3://bucketname/my/results

Should I expect the contents of /path/to/folder to be copied recursively to s3://bucketname/my/results?

@wleepang If i understand this correctly this is what I would expect
tesOutput.path: /path/to/folder/data
tesOutput.path_prefix: /path/to/folder
output.url: s3://bucketname/my/results
URL: s3://bucketname/my/results/data
@uniqueg can you confirm this is what is expected with the combination of output_url and tesOutput.path_prefix?

@wleepang @vsmalladi
I have now added two examples to the PR description (my bad for not doing so earlier!).
Note that in the examples you give, the path doesn't include any wildcards, so tesOutput.path_prefix should be ignored by the TES implementation. The URLs would be treated according to the current rules, which means that TES would interpret the value of tesOutput.url as a fully qualified URL pointing to the object to output. So in your example, @wleepang, contents of /path/to/folder would indeed be recursively copied to s3://bucketname/my/results. In your case though, @vsmalladi, contents of /path/to/folder/data would be copied to s3://bucketname/my/results, not s3://bucketname/my/results/data.
Or at least this is my interpretation of the current specs.

@uniqueg Thanks for the clarification.
Then LGTM.


[SBS] fixes due to website changes

The SBS website format has changed. I didn't see an issue for it (should I have created one??). This change fixes the SBS extractor.
NB 1 - The thumbnail and description are now missing.
NB 2 - There is an existing problem with the SBS extractor #3811. youtube-dl now fails when it gets to this point.
Here is the output from the latest youtube-dl
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--verbose', u'http://www.sbs.com.au/news/video/471395907773/The-Feed-July-9']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.07.07
[debug] Python version 2.7.9 - Linux-3.19.0-15-generic-i686-with-Ubuntu-15.04-vivid
[debug] exe versions: avconv 11.2-6, avprobe 11.2-6, ffmpeg 2.5.6-0ubuntu<IP_ADDRESS>, ffprobe 2.5.6-0ubuntu<IP_ADDRESS>, rtmpdump 2.4
[debug] Proxy map: {}
[generic] The-Feed-July-9: Requesting header
WARNING: Falling back on generic information extractor.
[generic] The-Feed-July-9: Downloading webpage
[generic] The-Feed-July-9: Extracting information
[SBS]<PHONE_NUMBER>73: Downloading webpage
ERROR: Unable to extract player; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/local/sp/bin/youtube-dl_sp/youtube_dl/YoutubeDL.py", line 654, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/sp/bin/youtube-dl_sp/youtube_dl/extractor/common.py", line 273, in extract
    return self._real_extract(url)
  File "/usr/local/sp/bin/youtube-dl_sp/youtube_dl/extractor/sbs.py", line 41, in _real_extract
    webpage, 'player')
  File "/usr/local/sp/bin/youtube-dl_sp/youtube_dl/extractor/common.py", line 555, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract player; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Here is the output of youtube-dl withthis change.
[generic] The-Feed-July-9: Requesting header
WARNING: Falling back on generic information extractor.
[generic] The-Feed-July-9: Downloading webpage
[generic] The-Feed-July-9: Extracting information
[SBS]<PHONE_NUMBER>73: Downloading webpage
WARNING: unable to extract description; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
WARNING: unable to extract thumbnail url; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
[ThePlatform] GhPOVyHFTicn: Downloading XML
[ThePlatform] GhPOVyHFTicn: Downloading webpage
ERROR: unable to download video data: HTTP Error 403: Forbidden

Merged with simplification. Thanks.


Hey ,I have just read your paper, its performance is excellent, will you upload the code for those interested to learn?

ME TOO. 我也是一个知识和代码的搬运工。

No description provided.

Thanks for your attention and our code will be released once the paper is accepted.


filter out incomplete profiles

closes #3978 - create a filter to return only users with a complete profile

[x] Formatted my code by running autoflake -r -i --remove-all-unused-imports src && isort . && black . in app/backend
[x] Added tests for any new code or added a regression test if fixing a bug
[x] All tests pass
[x] Run the backend locally and it works
[x] Added migrations if there are any database changes, rebased onto develop if necessary for linear migration history

@Krishnag09 did you have a chance to look at the comments?

@Krishnag09 did you have a chance to look at the comments?

yes done.

Great, will have a look

Also please squash these when you merge!

It’s live now on prod!Best,AapeliOn Apr 10, 2024, at 09:17, Krishna Gaurav @.***> wrote:
Merged #4002 into develop.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>


Add clustering for nonlinear scores

Refactoring of the _est_coef method in both mixin classes to allow for a scaling factor which enables cluster robust estimation and standard errors.
The method _est_causal_pars form the DoubleML class now calculates a scaling_factor if clustering is used.
If the scaling factor is not None, the estimation in _est_coef is done with scaling (for both linear and nonlinear mixins).
Reference to Issues or PRs
#189
PR Checklist

[x] The title of the pull request summarizes the changes made.
[x] The PR contains a detailed description of all changes and additions.
[x] References to related issues or PRs are added.
[x] The code passes all (unit) tests.
[x] Enhancements or new feature are equipped with unit tests.
[x] The changes adhere to the PEP8 standards.

Hi @SvenKlaassen ,
thanks for integrating cluster-robust inference for nonlinear models. As we discussed earlier, we should ask @MalteKurz to check the implementation as it affects code for his copula model.
Besides this, I think this looks good.

The implementation looks good. Thanks for the extension. I also checked the code in combination with the copula models. The unit tests pass, so everything should be fine.


Some tests in scala-libs are a bit flaky

I've seen recent failures in the storage and messaging tests; we should investigate and fix them.

I think this is fixed – we were pulling images from Docker Hub, and on some tests we were hitting rate limits. Closing for now; will reopen if we see flakiness again.


Delete openings with 0 games played

What is the point of an "opening" if it has never even been played?

Num. of games played was checked using the Lichess explorer API.
Openings with 0 games (as of 2022-10-12) were double-checked against caissabase (ver. 2022-01-08).
If there was at least 1 masters game in caissabase, it was saved.
The rest have been deleted.

IMO we should be more ruthless and delete openings with <5 games in the lichess db (with the min. master game caveat).

Thanks! Merging.
I agree that going to at least 5 makes sense (with an exception for mate positions, or potentially the masters game check).


Automatic Language Detection: buggy language detectetion of files without extension

Does this issue occur when all extensions are disabled?: Yes

VS Code Version: 1.60.0
OS Version: Windows_NT x64 10.0.19043

The problem is that somehow my Python code in file with no extension is being highlighted as .ini file
Steps to Reproduce:
Create a plain file and copy some, for example, Python code, like i did
I think, this gif will show better what's happening (sorry for Russian lang)

/duplicate of #132173


attack!!!

#185

Got ranged and melee pathfinding, and attacking until the enemy is dead. Implemented projectiles for the Glock. Projectiles render, do damage upon colliding with something, and correctly dispose. Enemies dispose after dying. Gameover is hit when interacting with the end tiles, which should correctly trigger the game over screens. Had LOTTTTTS of bugs to track down with this much code velocity.
{t:600}


Add basic logic of notification headers

Added logic to add header to notifications.  Included integration and unit tests as well.

Thanks, Chris!


Build failure: LLVM 15.0.7 on macOS

Steps To Reproduce
Steps to reproduce the behavior:

MacOS M1
Install llvm

Build log
https://gist.github.com/punkeel/b3419e2635d4429131b0b1b5489eb3b0
[4029/4029] Linking CXX executable unittests/tools/llvm-exegesis/LLVMExegesisTests
buildPhase completed in 13 minutes 47 seconds
@nix { "action": "setPhase", "phase": "checkPhase" }
running tests
check flags: -j10 check-all
[1/2] Preparing lit tests
[1/2] Running all regression tests
llvm-lit: /private/tmp/nix-build-llvm-15.0.7.drv-0/llvm-src-15.0.7/llvm/utils/lit/lit/TestingConfig.py:136: fatal: unable to parse config file '/private/tmp/nix-build-llvm-15.0.7.drv-0/llvm-src-15.0.7/llvm/test/lit.cfg.py', traceback: Traceback (most recent call last):
  File "/private/tmp/nix-build-llvm-15.0.7.drv-0/llvm-src-15.0.7/llvm/utils/lit/lit/TestingConfig.py", line 125, in load_from_path
    exec(compile(data, path, 'exec'), cfg_globals, None)
  File "/private/tmp/nix-build-llvm-15.0.7.drv-0/llvm-src-15.0.7/llvm/test/lit.cfg.py", line 447, in <module>
    sysctl_cmd = subprocess.Popen(cmd, stdout=subprocess.PIPE)
  File "/nix/store/cc705zcw6dly3zghdhd0m3cf1cn9a4r4-python3-3.10.9/lib/python3.10/subprocess.py", line 971, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/nix/store/cc705zcw6dly3zghdhd0m3cf1cn9a4r4-python3-3.10.9/lib/python3.10/subprocess.py", line 1847, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'sysctl'

FAILED: CMakeFiles/check-all /tmp/nix-build-llvm-15.0.7.drv-0/llvm-src-15.0.7/llvm/build/CMakeFiles/check-all
cd /tmp/nix-build-llvm-15.0.7.drv-0/llvm-src-15.0.7/llvm/build && /nix/store/2k748c8555bj2s4l4c2zan6rbshiqdpq-python3-3.10.9-env/bin/python3.10 /tmp/nix-build-llvm-15.0.7.drv-0/llvm-src-15.0.7/llvm/build/./bin/llvm-lit -svj10 --no-progress-bar --param polly_site_config=/tmp/nix-build-llvm-15.0.7.drv-0/llvm-src-15.0.7/llvm/build/tools/polly/test/lit.site.cfg --param polly_unit_site_config=/tmp/nix-build-llvm-15.0.7.drv-0/llvm-src-15.0.7/llvm/build/tools/polly/test/Unit/lit.site.cfg /tmp/nix-build-llvm-15.0.7.drv-0/llvm-src-15.0.7/llvm/build/tools/polly/test /tmp/nix-build-llvm-15.0.7.drv-0/llvm-src-15.0.7/llvm/build/utils/lit /tmp/nix-build-llvm-15.0.7.drv-0/llvm-src-15.0.7/llvm/build/test
ninja: build stopped: subcommand failed.

Additional context
It seems to build properly, but fails when running tests.
I encounter this error when upgrading from LLVM 14.0.6 to LLVM 15.0.7.
I first encountered this issue when using the 22.11 channel. I am using the unstable channel, still broken.
Notify maintainers
@dtzWill
@ericson2314
@lovek323
@primeos
@qyliss
@raitobezarius
@rrbutani
@sternenseemann
Metadata
~ ❯ nix-shell -p nix-info --run "nix-info -m"
 - system: `"aarch64-darwin"`
 - host os: `Darwin 22.5.0, macOS 13.4`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.9.1`
 - channels(maxime): `"stable-22.11-darwin, unstable"`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`

Thanks for the bug report.
I cannot reproduce this on master (fc6da83c94885b34a2691809d0afedf0711c19be) and I recall us "fixing" this particular issue.
Can you please post the nixpkgs versions  you are using (i.e. something like nix eval --expr "(import <nixpkgs> {}).lib.version" --impure) or perhaps the .drvs of llvmPackages_15.llvm that you end up trying to build?
Also, are you using any special nixpkgs config options/overlays/etc? (I believe llvmPackages_15.llvm from unstable and 22.11 is in cache.nixos.org and should just get substituted)

~ ❯ nix eval --expr "(import <nixpkgs> {}).lib.version" --impure
"22.11pre387031.a0edeb02ae5"

Commit: a0edeb02ae5, which seems ancient.
I added unstable today after hitting the LLVM error, looks like I didn't do it properly (aka: I didn't remove 22.11):
~ ❯ nix-channel --list
stable https://nixos.org/channels/nixpkgs-22.11-darwin # <--- ...
unstable https://nixos.org/channels/nixpkgs-unstable

Installing LLVN 15.0.7 worked once I removed the 22.11 channel. 👍  Apologies, user issue.


Add branch tab completion to can-ff-merge alias

Adding this line tells Git to use branch names when doing table completion.
See https://salferrarello.com/git-alias-tab-completion-for-functions/
Resolves #12

How to Test

Create a branch called "mybranch"  (overwriting the branch if it already exists to make testing steps easier to reproduce)

git branch mybranch -f

Type git can-ff-merge myb and hit <tab>

Before PR
The branch name will not autocomplete.
After PR
The branch name will be autocompleted, so the full line becomes
git can-ff-merge mybranch


fix: support fork tmpfile on windows

Current coverage is 100.00%

Merging #5 into master will not affect coverage as of e78d3c2

@@            master      #5   diff @@
======================================
  Files            1       1
  Stmts           40      41     +1
  Branches         0       5     +5
  Methods          0       0
======================================
+ Hit             40      41     +1
  Partial          0       0
  Missed           0       0

Review entire Coverage Diff as of e78d3c2

Powered by Codecov. Updated on successful CI builds.

2.0.1


UIINREACH-57: Transaction type filter

Purpose
Added Transaction type filter according to https://issues.folio.org/browse/UIINREACH-57
Added transaction status filter according to  https://issues.folio.org/browse/UIINREACH-58

yarn run v1.22.5
$ eslint ./ && stylelint "src/**/*.css"
/home/jenkins/workspace/folio-org_ui-inn-reach_PR-90/project/src/settings/routes/CentralServersConfigurationRoute/CentralServersConfigurationCreateEditContainer.js
16:1  error  Expected indentation of 0 spaces but found 2  indent
/home/jenkins/workspace/folio-org_ui-inn-reach_PR-90/project/src/settings/routes/CentralServersConfigurationRoute/CentralServersConfigurationCreateEditContainer.test.js
15:1  error  Expected indentation of 0 spaces but found 2  indent
✖ 2 problems (2 errors, 0 warnings)
2 errors and 0 warnings potentially fixable with the --fix option.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.


Overlay does not work anymore

It is a regression bug, now the overlay feature does not work anymore...
branch: multiple-distortion

PS: It does not work in centralized distortion...


bug: Cody does not work in WSL 2 on Windows

Version
1.79.2
Describe the bug
When using Cody in a WSL 2 (Ubuntu 22.04 LTS) instance of VS Code on Windows 11, nothing seems to work, as it can't find the commands. Autocomplete doesn't work too. There is no icon in the status bar either.
If I run Cody without WSL 2, it does work as intended withouth any noticed problems.
Expected behavior
I can use Cody in WSL 2 instances.
Additional context

I tried but couldn't reproduce this:

Are there any errors in the console if you click:

Help -> Toggle Developer Tools
Click on the "Console" tab

Hi @DanTup ,
this is the error from the console tab:
ERR [Extension Host] TypeError: entry?.interactions?.findLast is not a function 	at /home/USER/.vscode-server/extensions/sourcegraph.cody-ai-1.0.4/dist/extension.node.js:163793:51 	at Array.forEach (<anonymous>) 	at createCodyChatTreeItems (/home/USER/.vscode-server/extensions/sourcegraph.cody-ai-1.0.4/dist/extension.node.js:163792:22) 	at ChatPanelsManager.updateTreeViewHistory (/home/USER/.vscode-server/extensions/sourcegraph.cody-ai-1.0.4/dist/extension.node.js:168701:44) 	at ChatPanelsManager.syncAuthStatus (/home/USER/.vscode-server/extensions/sourcegraph.cody-ai-1.0.4/dist/extension.node.js:168588:16) 	at runMicrotasks (<anonymous>) 	at processTicksAndRejections (node:internal/process/task_queues:96:5) 	at async ChatManager.syncAuthStatus (/home/USER/.vscode-server/extensions/sourcegraph.cody-ai-1.0.4/dist/extension.node.js:169170:5) 	at async register (/home/USER/.vscode-server/extensions/sourcegraph.cody-ai-1.0.4/dist/extension.node.js:179405:3) 	at async start3 (/home/USER/.vscode-server/extensions/sourcegraph.cody-ai-1.0.4/dist/extension.node.js:179251:49) 	at async activate (/home/USER/.vscode-server/extensions/sourcegraph.cody-ai-1.0.4/dist/extension.node.js:179701:24) 	at async b.n (/home/USER/.vscode-server/bin/695af09…/out/vs/workbench/api/node/extensionHostProcess.js:98:6644) 	at async b.m (/home/USER/.vscode-server/bin/695af09…/out/vs/workbench/api/node/extensionHostProcess.js:98:6607) 	at async b.l (/home/USER/.vscode-server/bin/695af09…/out/vs/workbench/api/node/extensionHostProcess.js:98:6064)
I have reinstalled Cody Extension several times, it doesn't help. I also tried the "Pre-Release" Version.

Hello @DanTup ,
i just noticed, that I wasn't running the latest vs code version.. I just updated vscode to the latest version, now it is working in WSL 2.
I can not explain, why it was using a old VS code version.. I am pretty sure, I checked the version before posting this bug.

Thanks for the update. I'm not sure why the VS Code version impacted this, but glad to hear it's working. If you see the issue again please do post back!


office 365 workflow migration failed

Description

When a message is received via webhook, a warning is added that the connector feature in office365 is being deprecated.
https://aka.ms/O365ConnectorDeprecation
So after migrating to the workflow, when I add a new webhook, I get a 202 response and the message is not seen in Teams.

On the edit workflow page, you can see the following failure messages
'Send_each_adaptive_card' working failed .: The execution of template action 'Send_each_adaptive_card' failed: the result of the evaluation of 'foreach' expression '@triggerOutputs()?['body']?['attachments']' is of type 'Null'. The result must be a valid array.
Can someone help me with this?
Gitea Version
v1.22.1
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
on premise
Database
None

Look this workaround:
https://github.com/go-gitea/gitea/issues/31615#issuecomment-2317932638

Duplicate of #31615


feat: update variables layout

Updating the layout of variables information to give more space to the variable description
new:

old:

Codecov Report
Base: 90.53% // Head: 90.63% // Increases project coverage by +0.10% :tada:

Coverage data is based on head (bb0fe93) compared to base (4c955f6).
Patch has no changes to coverable lines.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1207      +/-   ##
===========================================
+ Coverage    90.53%   90.63%   +0.10%
===========================================
  Files          186      186
  Lines         5618     5618
===========================================
+ Hits          5086     5092       +6
+ Misses         532      526       -6

Flag
Coverage Δ

py3.8-ubuntu-latest-pandas
90.63% <ø> (+0.10%)
:arrow_up:

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

Impacted Files
Coverage Δ

...as_profiling/report/presentation/core/container.py
82.14% <0.00%> (+21.42%)
:arrow_up:

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.


Little addition to install instructions?

Hi,
First, thank you very much! your script is really easy to use and it saved me a lot of headache!
The only problem I had is that being newbie in many of these things i couldn't make letsencrypt_webfaction work after following the steps, a couple of search later I found my mistake:
After adding the lines in bash_profile i must execute
source $HOME/.bash_profile
I suppose that is obvious for many users but for people with few knowledge in paths like me this could be useful to have in your instructions, besides that everything worked perfectly!
Thank you again!

Thanks for the suggestion! I've made the change.
I'm glad you found this useful!


Fix broken link

:x: Validation status: errors

File
Status
Preview URL
Details

:x:Error

Details

[Error] Cannot sync git repo to specified state. Please make sure the pull request is mergeable. Details: Git merge results in conflict, repository remote url: https://github.com/MicrosoftDocs/azure-docs-sdk-go, working directory: W:\od2p-s, target branch: master, target branch commit: a03f94b398feaa00d379c04cd4965b82569b0653, source branch: fe1bc46a633da551e819413e66015e6e/master, source branch commit: .

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

azure-go-sdk-conceptual/index.yml
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Fatal error Attempted to load class "MongoClient" from the global namespace

Monolog version 1
As stated in https://github.com/Seldaek/monolog/issues/962, the \MongoClient is deprecated in php 7 and should no longer be used.
Unfortunately when using Symfony 4, we are still bound to monolog 1 (because of the monolog-bridge requiring monolog 1.x). And the hard dependence (without any class_exists checking) is causing a hard crash when attempting to use the MonologDBHandler.
I propose a simple class_exists solution, so the 1.x branch (and Symfony 4) can use the MongoDBHandler without needing to install a deprecated and outdated mongo client.
So for example:
if ((class_exists('\MongoClient') && $mongo instanceof \MongoClient) || $mongo instanceof \Mongo || $mongo instanceof \MongoDB\Client) {
    throw new \InvalidArgumentException('MongoClient, Mongo or MongoDB\Client instance required');
}

What error are you seeing exactly? Because AFAIK, instanceof does not trigger autoloading or anything, it just checks whether the object matches the given class, and adding class_exists() should not do anything.

The exact error is in the title of the bug report: Fatal error Attempted to load class "MongoClient" from the global namespace.
I'm fairly sure the line number of the error corresponded with the line where the instanceof was used.
I just assumed it comes from the instance of check.. I've since worked around this issue, I can check tomorrow if I can reproduce in our project.

I'd be curious yes if you can try and reproduce again.. because instanceof definitely does not need the class to be present: https://3v4l.org/GbeUS

Dunno if it's the new version of some mistake I made earlier, but it works now without any problems.
Just for reference, this is working the monolog.yaml I have (in Symfony 4 app):
monolog:
    handlers:
        processor:
            type: mongo
            mongo:
                id: "doctrine_mongodb.odm.default_connection"
                database: "%env(MONGODB_DB)%"
                collection: ProcessorLog
            level: debug

So I'm closing as it seems to be no longer an issue -- cannot reproduce

Bug occur when we use the configuration without ODM Id Service
monolog:     handlers:         main:             type: mongo             mongo:                host: '<IP_ADDRESS>'                port: 17128                user: root                pass: '123456'                database: logsDb                collection: logsCollection

bug occur when we use the configuration without ODM Id Service
monolog:
    handlers:
        main:
            type: mongo
            mongo:
               host: '<IP_ADDRESS>'
               port: 17128
               user: root
               pass: '123456'
               database: logsDb
               collection: logsCollection

I can confirm this is still happening as well, I'm not using ODM, nor do I ever want to.


GEODE-7131: add Links object to replace RestfulEndPoint

Co-authored-by: Owen Nichols<EMAIL_ADDRESS>
add capability to add additional links to the configuration obejct

In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:

[ ] Is there a JIRA ticket associated with this PR? Is it referenced in the commit message?

[ ] Has your PR been rebased against the latest commit within the target branch (typically develop)?

[ ] Is your initial contribution a single, squashed commit?

[ ] Does gradlew build run cleanly?

[ ] Have you written or updated unit tests to verify your changes?

[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?

Note:
Please ensure that once the PR is submitted, check Concourse for build issues and
submit an update to your PR as soon as possible. If you need help, please send an
email to<EMAIL_ADDRESS>

@jmelchio

we decide to move Links back to the public api because extension developers will need a concrete class to create the Links object when they implement AbstractConfiguration.getLinks() call.


Linux scripts are in DOS format and not runnable

I have this issue on both head and stable branches, bash scripts do not run because they were saved with DOS/Windows formatting, and spit out all kinds of errors when attempting to execute them. I have to convert all of them using dos2unix and then they run
This has so far been the case for these files:
Scripts/gen_rsrc.sh
Scripts/git-revision.sh
Scripts/post-commit

OS: Ubuntu 19.10 64bit

The scripts are DOS in the master branch and UNIX in the stable branch.
Additionally, the .sh files are not executable in either branch.

should be fixed now


doc: words correction

Description
Documentation "Monitoring with Grafana" was not correctly updated. This PR aligned the doc with with latest version.
How was this PR tested?
No need.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

thanks @cxumol

@cxumol, to merge your PR, I need you to sign the CLA (see comment above), I let you review it and see if you're OK with CLA.

Yes I have signed CLA. Thanks for reminding. @fmassot


Add own base models to CVAT

Does CVAT allow developers to add own base models to CVAT and train a model to pre-annotate images? If yes, is there any document?

Hi, yes it's possible, please tale a look at this PR https://github.com/openvinotoolkit/cvat/pull/3124

Do you mean in order to add my custom DL I have to push my code on git?


Doc: Add Jest/Enzyme testing docs

See https://github.com/enzymejs/enzyme/issues/2205 for the issue with Enzyme.


[TW#25604] Tx Power in BLE ADV data not updated when Tx Power is changed.

When configuring BLE advertising data, and the flag is set to include TxPower:
esp_ble_adv_data_t m_advData; m_advData.include_txpower = true;
... and Tx Power for advertisment is set with (for instance):
esp_ble_tx_power_set( ESP_BLE_PWR_TYPE_ADV, ESP_PWR_LVL_P9 );
(NOTE: the call above to set TxPower is made BEFORE advertising starts).
The TxPower value that is included in BLE advertising data is NOT the (correct) updated TxPower; it remains at -21dBm (apparently the default value).
This has been verified with latest commit esp-idf (020ade6).
See also #2284
Further details here.

Please see #2284, it's resolved.


M24H-31 fix EHP email reports

@KaitCrawford ready for review

@smn I've left a few comments

Ready for re-review :)

:+1: