Use pvlib for PV Model

Just tried running SAM v4.0 within OCHRE and it failed:
pvsamv1 simulation error
        : precheck input: variable 'subarray1_rear_soiling_loss' (Sub-array 1 rear soiling loss) required but not assigned

reset to 3.0.1 and it works. We should mention this in the documentation and update so it works with the latest PySAM. Or move to pvlib...

@mnblonsky  and @jmaguire1 to discuss w/ SAM team next week.

Is there a recommended path to model PV in OCHRE for the time being? I've done the following:

ran pip install NREL-PySAM==3.0.2 to get past the error above
start with this example code
Download a SAM CSV using the following code:

SAM_WEATHER_FILENAME = "sam_solar_data.csv"
sam_solar_data, sam_solar_metadata = pvlib.iotools.get_psm3(
    latitude, longitude, NREL_API_KEY, NREL_API_EMAIL, map_variables=True
)
sam_solar_data.to_csv(SAM_WEATHER_FILENAME, index=False)

uncommented the PV section under dwelling_args['equipment']:

        'PV': {
            'use_sam': True,
            'capacity': 5,
            'tilt': 20,
            'azimuth': 180,
            'sam_weather_file': SAM_WEATHER_FILENAME, # This is the key documented at https://ochre-docs-final.readthedocs.io/en/latest/InputsAndArguments.html#solar-pv but doesn't appear used
            'equipment_schedule_file': SAM_WEATHER_FILENAME, # This is what the code seems to look at
        },

But I'm still running into walls - most recently pvsamv1 simulation error: exec fail(pvsamv1): latitude and longitude required but not specified.
Do you recommend not modeling solar in OCHRE currently, or is there a recommended way to do it?

Hi @jason-curtis, you're right that the equipment_schedule_file will currently overwrite any data that SAM generates. I think that's something we should change in the future.
The sam_weather_file is actually a file path that OCHRE will use to save data for SAM, so OCHRE will overwrite anything in that file. There's also a default, so you don't need to specify it.
We haven't run SAM with OCHRE in a while, so it looks like there are a few bugs for us to fix. For now, I would recommend that you run SAM separately and get a time series PV power profile, and then save that to the equipment_schedule_file. You'll need to change the heading so the power column is called "PV (kW)". OCHRE will use that column to set the PV power at each time step. No need to specify any other inputs, though you can use schedule_rename_columns to automatically change the power column name or schedule_scale_factor to automatically change the units.
Normally, the recommended way to run with PV is to only specify capacity in the PV dictionary. That's the only required input. However, it doesn't look like this is working in the latest version of OCHRE. I'll work on a fix for this soon.

Got it, thanks for the response. I already have pvlib set up for my
location so I will try and generate a schedule file from that.
On Thu, Nov 9, 2023 at 6:52 AM Michael Blonsky @.***>
wrote:

Hi @jason-curtis https://github.com/jason-curtis, you're right that the
equipment_schedule_file will currently overwrite any data that SAM
generates. I think that's something we should change in the future.
The sam_weather_file is actually a file path that OCHRE will use to save
data for SAM, so OCHRE will overwrite anything in that file. There's also a
default, so you don't need to specify it.
We haven't run SAM with OCHRE in a while, so it looks like there are a few
bugs for us to fix. For now, I would recommend that you run SAM separately
and get a time series PV power profile, and then save that to the
equipment_schedule_file. You'll need to change the heading so the power
column is called "PV (kW)". OCHRE will use that column to set the PV power
at each time step. No need to specify any other inputs, though you can use
schedule_rename_columns to automatically change the power column name or
schedule_scale_factor to automatically change the units.
Normally, the recommended way to run with PV is to only specify capacity
in the PV dictionary. That's the only required input
https://ochre-docs-final.readthedocs.io/en/latest/InputsAndArguments.html#solar-pv.
However, it doesn't look like this is working in the latest version of
OCHRE. I'll work on a fix for this soon.
—
Reply to this email directly, view it on GitHub
https://github.com/NREL/OCHRE/issues/1#issuecomment-1803980036, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAZPVU6JOU7CP4U4Q2AOHXTYDTU2XAVCNFSM6AAAAAA2BB4CWSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBTHE4DAMBTGY
.
You are receiving this because you were mentioned.Message ID:
@.***>

OK, I passed in a CSV file under dwelling_args['equipment']['PV']['equipment_schedule_file'] but it seems if I give an inch, OCHRE takes a mile. Is there a way to only pass a PV schedule and not a schedule for everything else:
Exception                                 Traceback (most recent call last)
/tmp/ipykernel_12/4174122461.py in <cell line: 98>()
     98 if __name__ == '__main__':
     99     # Initialization
--> 100     dwelling = Dwelling(**dwelling_args)
    101
    102     # Simulation

~/.cache/pypoetry/virtualenvs/python-kernel-OtKFaj5M-py3.9/lib/python3.9/site-packages/ochre/Dwelling.py in __init__(self, metrics_verbosity, save_schedule_columns, save_args_to_json, **house_args)
     72
     73         # Load occupancy schedule and weather files
---> 74         schedule, location = load_schedule(properties, weather_station=weather_station, **house_args)
     75         properties['location'] = location
     76         self.start_time = self.start_time.replace(tzinfo=schedule.index.tzinfo)

~/.cache/pypoetry/virtualenvs/python-kernel-OtKFaj5M-py3.9/lib/python3.9/site-packages/ochre/utils/schedule.py in load_schedule(properties, schedule, time_zone, **house_args)
    621         bad_cols = check.columns[check.isna().any()]
    622         first_na = check.isna().any(axis=1).idxmax()
--> 623         raise Exception(f'Missing data found in schedule columns {bad_cols}. See time step {first_na}')
    624
    625     # update time zone, if specified

Exception: Missing data found in schedule columns Index(['Ambient Dry Bulb (C)', 'Ambient Relative Humidity (-)',
       'Ambient Pressure (kPa)', 'GHI (W/m^2)', 'DNI (W/m^2)', 'DHI (W/m^2)',
       'Wind Speed (m/s)', 'Mains Temperature (C)', 'Ground Temperature (C)',
       'Ambient Humidity Ratio (-)', 'Ambient Wet Bulb (-)',
       'Occupancy (Persons)', 'Indoor Lighting (kW)', 'Cooking Range (kW)',
       'Cooking Range (therms/hour)', 'Dishwasher (kW)', 'Clothes Washer (kW)',
       'Clothes Dryer (kW)', 'Clothes Dryer (therms/hour)', 'MELs (kW)',
       'Dishwasher (L/min)', 'Clothes Washer (L/min)', 'Water Heating (L/min)',
       'Basement Lighting (kW)', 'Water Heating Setpoint (C)',
       'Refrigerator (kW)', 'Exterior Lighting (kW)',
       'HVAC Heating Setpoint (C)', 'HVAC Cooling Setpoint (C)'],
      dtype='object'). See time step 2022-01-01 00:30:00
      ```

If it helps, this is the PV file I'm passing: https://gist.github.com/jason-curtis/9c75794fb6c32b8cecc74f936cfb44dd . I've tried with and without a timestamp column, with the same results.

Apologies if this is off topic, lmk if I should file a separate issue.

That's very strange... It looks like maybe you included something in dwelling_args['schedule']?

Nothing in schedule, but the https://github.com/NREL/OCHRE/blob/main/bin/run_dwelling.py example has a schedule_input_file.
I just realized I had another issue where I changed the timestep, and now the schedule_input_file probably doesn't have the correct number of rows.
In any case, I'm taking a non-OCHRE approach for the moment and I'll keep an eye on this issue for when pvlib is integrated.
In the unlikely event that I end up with spare time on this, would you accept a PR for removing the PySAM integration and using pvlib instead? It's been pretty easy to work with!

Ok. The schedule_input_file should really come from ResStock or BEopt, and has to have data for a whole year (I haven't tested otherwise, but I'm pretty sure that won't work).
Yes, it'd be great if you wanted to help with the development of pvlib! We did recently learn that PySAM can do single step updates, so we may stick with it long term, but we haven't made that decision yet. One possible advantage of PySAM over pvlib is that I think it has more features related to inverter modeling and DC-coupled PV+battery, so we may prefer that route. We'll hopefully get to that in 2024.

We plan to use PySAM v5.0 instead of switching to pvlib. The new version of PySAM has a few useful features, including direct implementation of PVWatts (which will be the default) and the ability to run single time steps.
We're also removing the sam_weather_file, which caused some issues in the past.

Nice! Glad you can run a single timestep now, that's a big change for our use case. And I'd rather use an NREL tool than pvlib if possible.
This might also set us up in the future to use SAM for utility bills? I know it has a bill calculation module that can load rates from the URDB, I think (but not 100%) we do this for OS-HPXML. At one point a long time ago I wrote my own bill calculation methodology (in python for BEopt 2.x) but I'd rather rely on SAM in case we hit any complicated cases (like say TOU + tiered + PV without net metering).


crashes with the new create update

past bin: https://pastebin.pl/view/192258ee

duplicate of #5

I fixed it. it will be uploaded today


DOC-144 | APM-222 | Disable shard migration docs

Upstreams:

devel https://github.com/arangodb/arangodb/pull/17451
3.10 https://github.com/arangodb/arangodb/pull/17461

https://jenkins.arangodb.biz/view/Documentation/job/arangodb-ANY-examples/2581/
Preview: https://deploy-preview-1156--zealous-morse-14392b.netlify.app/docs/3.10/http/cluster-maintenance.html#query-the-maintenance-status-of-a-db-server

Updated docs branch, pulled 3.10.1 into the 3.10 upstream PR, and started Jenkins example generation with the 3.10.1 branch for enterprise: https://jenkins.arangodb.biz/view/Documentation/job/arangodb-ANY-examples/2591/


ovsdb: Switch to ovsdb plugin for querying all OVS related info

Previously we depend on NetworkManager for OVS information, with this patch
we are querying OVS database directly which bring benefit of

Race problem on slow system where NM OVS information is not update to
date.
Support OVS bridge created by ovs-vsctl or other command.

Since the ovsdb does not allows empty bridge, this patch will automatically
add a ovs internal interface with the same name as bridge itself.
For API level, included other_config to OvsDbIfaceConfig and
OvsBridgeBondConfig.
There is not test case for interface level other_config yet as NM does
not support yet. Existing ovs test cases had covered all other known use
cases.

Been tested by https://bugzilla.redhat.com/show_bug.cgi?id=2156342#c4
And I also teste it using e1000e NIC. Works well.


Current Status?

Hi,
I see that during the last 11 months no code changes have been made and I want to ask about the status of this project. I'm looking for a replacement of our WCF (Named Pipe) Services.
Is this Framework ready for production?
Cheers, Micha
When comparing the performance between WCF via Named Pipes and this Framework I see a significant difference. WCF is a lot faster and I think this is because of it's embedded BinarySerializer. So an additional question is : can we change the JSON Serializer with another one - please see customize user data serialization for request and response .
I really like your implementation - during my tests everything works as expected. Great, thanks!

I am using the library in production and it is working fine. But I also wanted to exchange the serializer since Newtonsoft is slow and allocates a lot of memory. I will try to use MessagePack instead, but not sure if it works easily. You can insert your own serializer, I tried that with System.Text.Json but it did not work because it cannot serialize System.Type since it is unsafe and not recommended.
I will try to get MessagePack working, hopefully without too many changes. I will report back how it went.

CoreWCF


your pretrained model work very badly in inference.py in any av

your pretrained model work very badly in inference.py in any av. why  ?
I init models as follows:
model = C3D_model.C3D(num_classes=101, pretrained=True)
# checkpoint = torch.load('./models/C3D_ucf101_epoch-39.pth', map_location=lambda storage, loc: storage)
# model.load_state_dict(checkpoint['state_dict'])
model.to(device)
model.eval()

It seems that you didn't load any pretrained weights.


Logging in is successful, but /llu/connections is giving a 403 Forbidden

Logging in works, but when I run await client.read() I get this error. Has something changed?
[AxiosError: Request failed with status code 403] {
  code: 'ERR_BAD_REQUEST',
  config: {
    transitional: {
      silentJSONParsing: true,
      forcedJSONParsing: true,
      clarifyTimeoutError: false
    },
    adapter: [Function: httpAdapter],
    transformRequest: [ [Function: transformRequest] ],
    transformResponse: [ [Function: transformResponse] ],
    timeout: 0,
    xsrfCookieName: 'XSRF-TOKEN',
    xsrfHeaderName: 'X-XSRF-TOKEN',
    maxContentLength: -1,
    maxBodyLength: -1,
    env: { FormData: [Function] },
    validateStatus: [Function: validateStatus],
    headers: {
      Accept: 'application/json, text/plain, */*',
      'accept-encoding': 'gzip',
      'cache-control': 'no-cache',
      connection: 'Keep-Alive',
      product: 'llu.android',
      version: '4.2.1',
      authorization: 'Bearer REDACTED',
      'Content-Type': 'application/json',
      'User-Agent': 'axios/0.27.2'
    },
    baseURL: 'https://api-us.libreview.io',
    method: 'get',
    url: '/llu/connections',
    data: undefined
  },

Hi @gausie, was facing the same issue - you need to bump the version header value to at least 4.7.0. The last published npm package has no longer functioning one but the source code already reflects that.

Seems to be solved! Thx @honzahm


target_compile_options seems to be ignored (IDFGH-9626)

Answers checklist.
I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
I have searched the issue tracker for a similar issue and not found a similar issue.
General issue report
Similar issue https://github.com/espressif/esp-idf/issues/8234
Custom board with ESP32-WROOM-32E.
Version: v5.0.1
target_compile_options seems to not be making any effect. I have the following CMakeLists.txt inside the component:
idf_component_register(SRCS "nvs_manager.c"
INCLUDE_DIRS "include"
REQUIRES nvs_flash)
target_compile_options(${COMPONENT_LIB} PUBLIC -Wall -Werror=all)
Inside the file nvs_manager.c, I have an unused variable inside a function, so I would expect a compilation error, due to Werror compilation flag.
Any idea what could be going on? Thanks!

Could you please check compile_commands.json file in the build directory and find the compiler command line for this file?
You can then compare the command line with and without the call to target_compile_options in CMakeLists and see if anything changes.

Thank you for your answer, I tried compiling with and without target_compile_options  and I can indeed see the differences that it seems to add the -Wall and -Werror , attached the files in case it is needed:
buildcompile_commands_with_compilations_flags.txt
buildcompile_commands_without_compilations_flags.txt
Why is the compilation not failing then? Shouldnt it fail with a non used local variable? Thanks!

Here is the warning that is not translated into an error as I would expect:
C:/Users/Startup/Documents/workspace/somiatruites_espidf/components/nvs_manager/nvs_manager.c:39:10: warning: unused variable 'waska' [-Wunused-variable]
39 |     bool waska;
|          ^~~~~

Thanks for providing the files. I think I understand the issue you are facing:

ESP-IDF build system enables most warnings, but then disables errors for certain warnings: https://github.com/espressif/esp-idf/blob/47852846d3e89580ef4da28210b6ffc1cb5eaa9d/tools/cmake/build.cmake#L101-L109
Additional flags you pass using target_compile_options are appended after the flags set by IDF build system.
However, CMake de-duplicates compiler arguments (bug report). Because of that additional -Werror=all argument you have passed is not added to the compiler command line.

I think the simplest solution to this is to explicitly re-enable the warning which was disabled by the IDF build system, for example by calling
target_compile_options(${COMPONENT_LIB} PRIVATE -Werror=unused-variable)

Yes you are completely right thanks, adding the suggested solution makes the compilation error pop up thanks!


Appstudio update test-component-pac-mzvi

Pipelines as Code configuration proposal

Pipelines as Code CI/test-component-pac-mzvi-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
45 seconds
appstudio-init

✅ Succeeded
28 seconds
clone-repository

✅ Succeeded
18 seconds
appstudio-configure-build

✅ Succeeded
4 minutes
build-container

✅ Succeeded
7 seconds
show-summary

Pipelines as Code CI/test-component-pac-mzvi-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
45 seconds
appstudio-init

✅ Succeeded
28 seconds
clone-repository

✅ Succeeded
18 seconds
appstudio-configure-build

✅ Succeeded
4 minutes
build-container

✅ Succeeded
7 seconds
show-summary

Pipelines as Code CI/test-component-pac-mzvi-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
45 seconds
appstudio-init

✅ Succeeded
28 seconds
clone-repository

✅ Succeeded
18 seconds
appstudio-configure-build

✅ Succeeded
4 minutes
build-container

✅ Succeeded
7 seconds
show-summary

Pipelines as Code CI/test-component-pac-mzvi-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
45 seconds
appstudio-init

✅ Succeeded
28 seconds
clone-repository

✅ Succeeded
18 seconds
appstudio-configure-build

✅ Succeeded
4 minutes
build-container

✅ Succeeded
7 seconds
show-summary

Pipelines as Code CI/test-component-pac-mzvi-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
7 seconds
appstudio-init

✅ Succeeded
11 seconds
clone-repository

✅ Succeeded
15 seconds
appstudio-configure-build

✅ Succeeded
2 minutes
build-container

✅ Succeeded
18 seconds
show-summary

Pipelines as Code CI/test-component-pac-mzvi-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
7 seconds
appstudio-init

✅ Succeeded
11 seconds
clone-repository

✅ Succeeded
15 seconds
appstudio-configure-build

✅ Succeeded
2 minutes
build-container

✅ Succeeded
18 seconds
show-summary


Rename validate to onChange

Currently the reValidate prop passed into the Component contains a validate function which is applied on a form elements onChange.  Renaming validate to onChange describes better what it actually does. Depending on the settings this could also mean validating the input or not.

See #23


README files

Currently in the repository, there are README.rst and readme.md. I think we should remove README.rst and change name readme.md to README.md to follow the convention.
Afterwards, we also need to change
https://github.com/ihmeuw-msca/splitting-python-package/blob/main/setup.cfg#L5-L6
to the corresponding file and format.

It looks right in the linked file, I tried to capitalize afterwards, but git doesn't seem to notice it. Let's see if it gets propagated on next push.

Thanks for working on this @AHsu98! I think the better way to work on these issues is to create a new branch (for example in this case it can be readme_files) and make the changes in the branch. Afterwards submit a PR so that the collaborator can comments and contribute. This way it will keep the changes regarding to this issue contained while main branch remains clean :)

Fixed with #13


small change in readme

Hello!
Just above the change:

to install Larastan as a development dependency

@ForzaSFerrari Thanks for the proposition. 👍
As @szepeviktor said, Larastan should be only installed as dev dependency.


read and simulate arbitrary gradient waveform

Currently, it's possible to add more than 2,000 samples for gradients in the configuration file. I believe this is sufficient for many applications, so I will close this issue for now.


WVESO-4474 Move to Github Actions from TravisCI

Apologies, I meant to do this PR against the fork


inconsistent virtualedit=onemore vs virtualedit=all in normal mode.

My use case is that I am trying to yank some word and paste it at the end of line with an added space before the word. Could not do it, found the helpful "virtualedit" setting.
When I set it to "all" - I can move to the newline character (one cursor position after last character in the line) and paste a word - it will be pasted with additional whitespace before it just as I imagined. But when I do the same with "onemore" the same word get's pasted without any whitespace.
I thought that's one of the possible uses of 'virtualedit=onemore", but it does not work. Is this a bug or expected behavior?

This is expected behavior. With "all" Vim behaves as if there are spaces where there are not.  With "onemore" you can move the cursor to after the line, but it's not like there is a space there.


Awless ssh, add an option to specify end target port behind bastion

Hello
I'ld like to connect to my gitlab port 2222 through my bastion. The command could look like this
awless ssh --through me@ssh-bastion gitlab:2222
awless ssh --through me@ssh-bastion gitlab --end-port 2222

I tried --port, but it's connecting to bastion's port 2222 instead of gitlab's, something like
awless ssh --through me@ssh-bastion:2222 gitlab

The reason behind this is, I moved gitlab server's sshd to 2222 since 22 is used by git. No the most common case, but it happens.
Thanks for the very very nice cli by the way :clinking_glasses:

Thanks. Fixed in master (and for next release 0.1.6).
Introduced a --through-port flag to specify a proxy port. If not specified it will be 22. We avoided the otherwise good notation me@bastion:2222 since host & instance names can contains a : char.
You can use the -h help flag i.e. awless ssh -h as I have added more example and better doc.


KAFKA-10000: Use transactional producer for config topic (KIP-618)

Implements the behavior described in KIP-618: using a transactional producer for writes to the config topic that should only be performed by the leader of the cluster.
Relies on changes from:

https://github.com/apache/kafka/pull/11774
https://github.com/apache/kafka/pull/11775

Given that all merge conflicts have been resolved and https://github.com/apache/kafka/pull/11775 has already been approved, marking this as ready for review.

@tombentley the 3.3.0 feature freeze is a little over a month away and there are still seven open pull requests for this feature. Do you have time to take a look? I

@tombentley If you do not have time to take a look, is there anyone you can recommend in your place?

@tombentley  hello? Is anyone actually maintaining Kafka Connect anymore or should we all just stop contributing to it?

I'll take a look this week.

Thanks, Luke.

Thanks Luke, appreciate it.

Failed tests are unrelated:
Build / JDK 8 and Scala 2.12 / kafka.api.ConsumerBounceTest.testConsumerReceivesFatalExceptionWhenGroupPassesMaxSize()


Webcam.js Error: No supported webcam interface found

My web app is loading over HTTPs but still, I got this error.
My App Link
My Code Snippet
Webcam.set({                 width: 320,                 height: 240,                 image_format: 'jpeg',                 jpeg_quality: 90             });             Webcam.attach( '#my_camera' );         }
Kindly help me out

Even I am facing the same issue

The browser requires that the camera is accessed via https://


Unable to install luxwig

Describe the bug
Unable to install luxwig by command "pip3 install ludwig"
To Reproduce
Steps to reproduce the behavior:

Go to 'Termial'
Clone Plato library of Uber 'git clone https://github.com/uber-research/plato-research-dialogue-system.git'
Install pyaudio 'sudo apt-get install python3-pyaudio'
Go inside folder 'plato-research-dialogue-system'
install requirements using "pip3 install -r requirements.txt"

Please provide code, yaml definition file and a sample of data in order to entirely reproduce the issue.
Issues that are not reproducible will be ignored.
Expected behavior
It should complete installation
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):

OS: Ubuntu
Version 16.04
Python 3.6.7
Ludwig (latest)

Additional context
I face below error for fast api
  Could not find a version that satisfies the requirement fastapi (from ludwig->-r requirements.txt (line 3)) (from versions: )
No matching distribution found for fastapi (from ludwig->-r requirements.txt (line 3))

You don't really need fastapi for experimenting. So you can comment it out and install Ludwig.
If you do need it, try installing it separately from Ludwig.

@msaisumanth  , Ludwig needs FastAPI. So installation process of Ludwig installs FastAPI and fails. Also I tried installing Fast API externally and then retried installing Ludwig, still the same error occurs.
Also if I check fastapi installation using command pip3 show fastapi , it shows below error:
Name: fastapi
Version: 0.33.0
Summary: FastAPI framework, high performance, easy to learn, fast to code, ready for production
Home-page: https://github.com/tiangolo/fastapi
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.6/logging/__init__.py", line 996, in emit
    stream.write(msg)
UnicodeEncodeError: 'ascii' codec can't encode character '\xe1' in position 15: ordinal not in range(128)
Call stack:
  File "/mnt/1b974144-c202-4151-8390-a9df3154fd1a/harshit/RnD/VirtualEnvironments/chatbots/bin/pip3", line 10, in <module>
    sys.exit(main())
  File "/mnt/1b974144-c202-4151-8390-a9df3154fd1a/harshit/RnD/VirtualEnvironments/chatbots/lib/python3.6/site-packages/pip/_internal/__init__.py", line 78, in main
    return command.main(cmd_args)
  File "/mnt/1b974144-c202-4151-8390-a9df3154fd1a/harshit/RnD/VirtualEnvironments/chatbots/lib/python3.6/site-packages/pip/_internal/cli/base_command.py", line 178, in main
    status = self.run(options, args)
  File "/mnt/1b974144-c202-4151-8390-a9df3154fd1a/harshit/RnD/VirtualEnvironments/chatbots/lib/python3.6/site-packages/pip/_internal/commands/show.py", line 47, in run
    results, list_files=options.files, verbose=options.verbose):
  File "/mnt/1b974144-c202-4151-8390-a9df3154fd1a/harshit/RnD/VirtualEnvironments/chatbots/lib/python3.6/site-packages/pip/_internal/commands/show.py", line 145, in print_results
    logger.info("Author: %s", dist.get('author', ''))
Message: 'Author: %s'
Arguments: ('Sebasti\xe1n Ram\xedrez',)
Author-email<EMAIL_ADDRESS>License: UNKNOWN
Location: /mnt/1b974144-c202-4151-8390-a9df3154fd1a/harshit/RnD/VirtualEnvironments/chatbots/lib/python3.6/site-packages
Requires: starlette, pydantic
Required-by:

@harshitazilen FastAPI is required for serving models. If you only want to experiment, you don't need it. So you can comment it out in the requirements and install Ludwig from source code.

@msaisumanth , Thanks. finally I am able to install plato. Also there was one more error with "pydantic" and I fixed it. The requirement.txt file was asking for pydantic==0.30.0 which is not available so I installed latest version of pydantic.

Unfortunately uber plato code does not work with python 3.5. It needs python 3.6 and while installing Ludwig from source in python 3.6, I face error in installing httptools , can you please guide me how to complete installation.
Please find error description as below:
Building wheels for collected packages: httptools
  Building wheel for httptools (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /mnt/1b974144-c202-4151-8390-a9df3154fd1a/harshit/RnD/VirtualEnvironments/uberplato/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-e7dr9ejv/httptools/setup.py'"'"'; __file__='"'"'/tmp/pip-install-e7dr9ejv/httptools/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-t81h0say --python-tag cp36
       cwd: /tmp/pip-install-e7dr9ejv/httptools/
  Complete output (29 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.6
  creating build/lib.linux-x86_64-3.6/httptools
  copying httptools/__init__.py -> build/lib.linux-x86_64-3.6/httptools
  creating build/lib.linux-x86_64-3.6/httptools/parser
  copying httptools/parser/__init__.py -> build/lib.linux-x86_64-3.6/httptools/parser
  copying httptools/parser/errors.py -> build/lib.linux-x86_64-3.6/httptools/parser
  running egg_info
  writing httptools.egg-info/PKG-INFO
  writing dependency_links to httptools.egg-info/dependency_links.txt
  writing top-level names to httptools.egg-info/top_level.txt
  reading manifest file 'httptools.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  writing manifest file 'httptools.egg-info/SOURCES.txt'
  copying httptools/parser/parser.c -> build/lib.linux-x86_64-3.6/httptools/parser
  running build_ext
  building 'httptools.parser.parser' extension
  creating build/temp.linux-x86_64-3.6
  creating build/temp.linux-x86_64-3.6/httptools
  creating build/temp.linux-x86_64-3.6/httptools/parser
  creating build/temp.linux-x86_64-3.6/vendor
  creating build/temp.linux-x86_64-3.6/vendor/http-parser
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/mnt/1b974144-c202-4151-8390-a9df3154fd1a/harshit/RnD/VirtualEnvironments/uberplato/include/python3.6m -c httptools/parser/parser.c -o build/temp.linux-x86_64-3.6/httptools/parser/parser.o -O2
  httptools/parser/parser.c:4:20: fatal error: Python.h: No such file or directory
  compilation terminated.
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for httptools
  Running setup.py clean for httptools
Failed to build httptools
Installing collected packages: Cython, h5py, pyparsing, cycler, kiwisolver, matplotlib, PyWavelets, decorator, networkx, pillow, cloudpickle, toolz, dask, scikit-image, seaborn, wasabi, cymem, plac, preshed, murmurhash, srsly, tqdm, blis, thinc, spacy, tabulate, absl-py, protobuf, markdown, werkzeug, grpcio, tensorboard, tensorflow-estimator, wrapt, astor, keras-preprocessing, google-pasta, keras-applications, gast, termcolor, tensorflow, PyYAML, zipp, importlib-metadata, py, attrs, packaging, atomicwrites, wcwidth, pluggy, more-itertools, pytest, dataclasses, pydantic, httptools, uvicorn, python-multipart
  Running setup.py install for httptools ... error
    ERROR: Command errored out with exit status 1:
     command: /mnt/1b974144-c202-4151-8390-a9df3154fd1a/harshit/RnD/VirtualEnvironments/uberplato/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-e7dr9ejv/httptools/setup.py'"'"'; __file__='"'"'/tmp/pip-install-e7dr9ejv/httptools/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-wda99v31/install-record.txt --single-version-externally-managed --compile --install-headers /mnt/1b974144-c202-4151-8390-a9df3154fd1a/harshit/RnD/VirtualEnvironments/uberplato/include/site/python3.6/httptools
         cwd: /tmp/pip-install-e7dr9ejv/httptools/
    Complete output (29 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.6
    creating build/lib.linux-x86_64-3.6/httptools
    copying httptools/__init__.py -> build/lib.linux-x86_64-3.6/httptools
    creating build/lib.linux-x86_64-3.6/httptools/parser
    copying httptools/parser/__init__.py -> build/lib.linux-x86_64-3.6/httptools/parser
    copying httptools/parser/errors.py -> build/lib.linux-x86_64-3.6/httptools/parser
    running egg_info
    writing httptools.egg-info/PKG-INFO
    writing dependency_links to httptools.egg-info/dependency_links.txt
    writing top-level names to httptools.egg-info/top_level.txt
    reading manifest file 'httptools.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'httptools.egg-info/SOURCES.txt'
    copying httptools/parser/parser.c -> build/lib.linux-x86_64-3.6/httptools/parser
    running build_ext
    building 'httptools.parser.parser' extension
    creating build/temp.linux-x86_64-3.6
    creating build/temp.linux-x86_64-3.6/httptools
    creating build/temp.linux-x86_64-3.6/httptools/parser
    creating build/temp.linux-x86_64-3.6/vendor
    creating build/temp.linux-x86_64-3.6/vendor/http-parser
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/mnt/1b974144-c202-4151-8390-a9df3154fd1a/harshit/RnD/VirtualEnvironments/uberplato/include/python3.6m -c httptools/parser/parser.c -o build/temp.linux-x86_64-3.6/httptools/parser/parser.o -O2
    httptools/parser/parser.c:4:20: fatal error: Python.h: No such file or directory
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /mnt/1b974144-c202-4151-8390-a9df3154fd1a/harshit/RnD/VirtualEnvironments/uberplato/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-e7dr9ejv/httptools/setup.py'"'"'; __file__='"'"'/tmp/pip-install-e7dr9ejv/httptools/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-wda99v31/install-record.txt --single-version-externally-managed --compile --install-headers /mnt/1b974144-c202-4151-8390-a9df3154fd1a/harshit/RnD/VirtualEnvironments/uberplato/include/site/python3.6/httptools Check the logs for full command output.

@harshitazilen I solved it doing sudo apt-get install python3.6-dev
After that, I was able to install httptools.

@harshitazilen  can you try with python3.6-dev and confirm it works for you too?

@w4nderlust , I tried installing python3.6-dev in my machine. Still facing the same issue.

@harshitazilen Do you plan to use the model serving functionality? If not, remove fastapi from the requirements and install from master. I think that would solve the problem.

try
pip install ludwig==0.1.2

In the new version in master there is a new way to specify dependencies: pip install ludwig will not install many additional packages, that are installable like pip install ludwig[serve]. This should solve your issues, as you can avoid installing the serve packages.
Closing it for now, let us know if you have further problems.


CI: add Travis jobs to build using clang

Should be straightforward and will help avoid issues like #350.

@jordalgo I believe that clang has been building in CI since 1641606.


Expose numOfDiskSnapshots as flag

Description
Fixes issue 533 in ouroboros-consensus. Note that this PR relies on the accompanying PR in ourboros-consensus to be merged.
Checklist

[x] Commit sequence broadly makes sense and commits have useful messages
[ ] New tests are added if needed and existing tests are updated.  These may include:

golden tests
property tests
roundtrip tests
integration tests
See Runnings tests for more details

[ ] Any changes are noted in the CHANGELOG.md for affected package
[ ] The version bounds in .cabal files are updated
[ ] CI passes. See note on CI.  The following CI checks are required:

[ ] Code is linted with hlint.  See .github/workflows/check-hlint.yml to get the hlint version
[ ] Code is formatted with stylish-haskell.  See .github/workflows/stylish-haskell.yml to get the stylish-haskell version
[ ] Code builds on Linux, MacOS and Windows for ghc-8.10.7 and ghc-9.2.7

[x] Self-reviewed the diff

merged in #5691


Given a matrix, sort the rows (either in ascending or descending order) based on the values of column (column index given as an input to the function).

Do the checklist before filing the issue:

[x] Do you have Node.js and all the relevant dev-dependencies installed?
[ ] Is this a bug fix?
[x] Is this an enhancement?
[x] Is this a feature request?

NOTE: Provide a clear and concise description of the feature that needs to be added! Or if its a bug, then provide the necessary steps to reproduce it along with screenshots.

Give your answer below:

@pbiswas101 Similarly, this can be extended to sorting the columns of a matrix based on a row index.
For example , given matrix
M = [[3 2 1]
[4 6 5]
[3 4 2]]
Sorting the rows by last column gives.
M = [[3 2 1]
[3 4 2]
[4 6 5]]

@chichra can you be more specific on this:

sort the rows based on the values of column

I mean are you talking about just swapping two rows? and how do the sorting works? In the example you mentioned, what if the last row was [ 3 4 7 ] and how this would affect the outcome!

@pbiswas101 I suppose, she is talking about swapping the two rows. If the last row was [ 3 4 7 ], please look at the below example.
M =
[[3 2 1]
[4 6 5]
[3 4 7]]
Sorting the rows by last column gives.
M =
[[3 2 1]
[4 6 5]
[3 4 7]]
There is no swapping required in the above scenario.
If this issue is fine and gets accepted, I would like to work on it.

For sorting rows by a column number let say  2, we have to look upon sorting the numbers in the given column. And accordingly the rows are swapped.
Given :
M= [[1 2 10],
[4 6 5],
[2 4 7]]
Sorting rows by 1 column gives: Since numbers in first column are 3 4 3 sorted = (3 3 4), we have
A= [[1 2 10],
[2 4 7],
[4 6 5]]
Sorting rows by 2 column gives: Since numbers in second column are 2 6 4 sorted = (2 4 6), we have
B= [[1 2 10],
[2 4 7],
[4 6 5]]
Sorting rows by 3 column gives: Since numbers in third column are 10 7 5 sorted = (5 7 10), we have
C= [[4 6 5],
[2 4 7],
[1 2 10]]
@chichra I believe this is what you suppose to mean?

@sakshichahal53  yes absolutely, that is what I wanted.

@pbiswas101  as I mentioned earlier that similarly, this can be extended to sorting the columns of a matrix based on a row index.
For example , given matrix the same matrix, If i wish to sort (rather rearrange) the columns of matrix based on the values of row 1
Original matrix is
M =
[[3 2 1]
[4 6 5]
[3 4 2]]
Sorting the columns by row indices gives.
sorted matrix M(based on row 1)=
[[1 2 3]
[5 6 4]
[2 4 3]]
sorted matrix M (based on row 2)=
[[3 1 2]
[4 5 6]
[3 2 4]]
sorted matrix M (based on row 3)=
[[1 3 2]
[5 4 6]
[2 3 4]]

I have a doubt: How will this help in competitive programming?

@chichra will you be working on this issue?

@pbiswas101  yes

@chichra okay, how are you planning to implement this?
please provide code snippets so as to show the usage of this function in terms of a matrix a,
const a = new M.Matrix([ [3, 2, 1], [4, 6, 5], [3, 4, 2] ])

a.sort('row', 0) to sort the based
output will be
[[1 2 3]
[5 6 4]
[2 4 3]]
a.sort('column', 0)
[[3 2 1]
[3 4 2]
[4 6 5]]
The first parameter in function signature represents if we want to sort based on row/column and the second parameter denotes the index.

@chichra this issue is more or less similar to issue #152 and the sorting also need to include both ascending / descending order as mentioned in the PR #169
So, the overall implementation would be:
a.sort('row', true, 0)

where 2nd and 3rd arguments are optional! If the 3rd argument is to be omitted, then the behavior of sorting would go along as mentioned in issue #152
Hence, once that issue is resolved you may start working on this one, building on top of that implementation.

Yes, sure.


ERROR: ResourceNotReady can occur when the deployment uses a custom name for the scoring file (not nameing score.py)

When the deployment.yml specifies a custom scoring file, we run into this error. It seems that the scoring file MUST be named score.py otherwise we run into this error. The documentation does not specifically mention this, so customers assume that the score.py can have a different name as long as the deployment.yml specifies that custom name, which is not the case.

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

ID: f5eed0f2-33f8-1fb3-c523-2468ec5ef733
Version Independent ID: 67d15baf-1ce3-70d4-8dae-57e3cebf1ebe
Content: Troubleshooting online endpoints deployment - Azure Machine Learning
Content Source: articles/machine-learning/how-to-troubleshoot-online-endpoints.md
Service: machine-learning
Sub-service: mlops
GitHub Login: @dem108
Microsoft Alias: sehan

@sanjeevisaac
Thanks for your feedback! We will investigate and update as appropriate.


No more provoke alert

With the last build (0.21.10), provoke & shirk infos for tanks are no more shown.
Tested in normal raid & trials.
Moon.

What is your job?
Only Tank and Healer would receive provoke/shirk notification.

I play DRK. It was working fine the other day.

Try to enable the debug option, and switch zone once.
Is there something like Info: RaidBoss: BrowserConsole: Loading 00-misc/general.js logged in OverlayPlugin?

Well, this is weird. Just reinstalled the lastest FFXIV_ACT_Plugin, and now it works again.
It was updated automatically this morning, but a manual reinstall fixed it.
Thanks @MaikoTan for testing on your side.

Oh, maybe the machina library not updated,
congratulation you fixed it!


[TYPE 3] [Allow to override constants]

Summary
Create a configuration file to centralize all constant in a single place, allowing users to override values as needed (Monkey patching)
Description
There is a constant FILESIZE_LIMIT in the datasources_endpoint.py file that is hardcoded to chunk files after 64 MB.
Security policies implemented in a firewall on top of an application could have constrains about the max size of body request or max file upload  that could differ in case to case and requires file to be chunked in smaller pieces.

Thumbs up, it would be nice to have a possibility to override CHUNK_SIZE_MB as well.


Incompatibilities with go-chi/jwtauth version 3.3 (jwtauthv3)

Related to #4, should you revert PR #5 ?

Thanks for getting this cleared.


Generated vocal file is 2seconds longer in duration than the target file!

Hi @aadarshsingh191198 ,
it is because our model automatically appends zero pads to the end of the original mixture.
The processing unit of our model is not a sample-level but a chunk of fixed-length samples (about 3 seconds).
If the length of the separated audio track should be the same of the mixture's
then you can simply slice the output array as follows: output=output[:mixture.shape[0]]

Realized it late. Thanks for the help though!!


fix: Include model_rebuild for input types as well

Followup from https://github.com/mirumee/ariadne-codegen/pull/278 and https://github.com/mirumee/ariadne-codegen/issues/276. We added back support to call
model_rebuild when needed for result types but didn't add it for input
types. Since input types can also require model rebuild when containing
nested fields we need to call include_model_rebuild for these types as
well.

Merged. Its too late to ship this this week, but I'll push it out early next one.


Tracking issues of goal: Make ofs running!

This issue is used to track our goal that making ofs running!
Introduction
ofs is a userspace filesystem that powered by opendal. We expect user can mount a opendal storage services locally as a fs for read and write. Our goal is not to implement a full-fledged filesystem. We will implement features based on opendal's design and services capabilities.
Related ideas:

https://github.com/apache/incubator-opendal/issues/3411
https://github.com/apache/incubator-opendal/issues/2625

Similiar projects:

https://github.com/Inokinoki/DalFs
https://github.com/awslabs/mountpoint-s3

Tasks

[ ] Implement the layout of fuser::Filesystem
[ ] Add CI workflow
[ ] Add README and CONTIBUTING guide

Feel free to comment for the issues you want to work on!

Created #3857 based on fuse3(v0.6.1, latest released version).
It's really nice to have the built-in inode <=> directory mapping, so we can leverage the feature and only implement the interactions with OpenDAL, based on PathFilesystem trait.
However, there are a lot of errors under rustc 1.73.0 (cc66ad468 2023-10-03) due to the async runtime and some other issues:
error[E0432]: unresolved import `session::Session`
  --> /home/inoki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/fuse3-0.6.1/src/path/mod.rs:8:9
   |
8  | pub use session::Session;
   |         ^^^^^^^^^^^^^^^^ no `Session` in `path::session`
   |
note: found an item that was configured out
  --> /home/inoki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/fuse3-0.6.1/src/path/session.rs:12:12
   |
12 | pub struct Session {
   |            ^^^^^^^

error[E0432]: unresolved import `super::Session`
  --> /home/inoki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/fuse3-0.6.1/src/raw/mod.rs:26:13
   |
26 |     pub use super::Session;
   |             ^^^^^^^^^^^^^^ no `Session` in `raw`
   |
note: found an item that was configured out
  --> /home/inoki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/fuse3-0.6.1/src/raw/mod.rs:12:32
   |
12 | pub use session::{MountHandle, Session};
   |                                ^^^^^^^
help: a similar name exists in the module
   |
26 |     pub use super::session;
   |                    ~~~~~~~
help: consider importing this unresolved item through its public re-export instead
   |
26 |     pub use crate::path::Session;
   |             ~~~~~~~~~~~~~~~~~~~~

error[E0412]: cannot find type `RwLock` in this scope
   --> /home/inoki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/fuse3-0.6.1/src/path/inode_path_bridge.rs:109:25
    |
109 |     inode_name_manager: RwLock<InodeNameManager>,
    |                         ^^^^^^ not found in this scope
    |
help: consider importing this struct
    |
1   + use std::sync::RwLock;
    |

error[E0433]: failed to resolve: use of undeclared type `RwLock`
   --> /home/inoki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/fuse3-0.6.1/src/path/inode_path_bridge.rs:136:33
    |
136 |             inode_name_manager: RwLock::new(inode_name_manager),
    |                                 ^^^^^^ use of undeclared type `RwLock`
    |
help: consider importing this struct
    |
1   + use std::sync::RwLock;
    |

error[E0433]: failed to resolve: use of undeclared crate or module `task`
    --> /home/inoki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/fuse3-0.6.1/src/raw/session.rs:3855:5
     |
3855 |     task::spawn(fut.instrument(span));
     |     ^^^^ use of undeclared crate or module `task`
     |
help: consider importing this module
     |
1    + use futures_util::task;
     |

error[E0046]: not all trait items implemented, missing: `poll`
  --> /home/inoki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/fuse3-0.6.1/src/raw/session.rs:45:1
   |
45 | impl Future for MountHandle {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `poll` in implementation
   |
   = help: implement the missing item: `fn poll(self: Pin<&mut Self>, _: &mut Context<'_>) -> Poll<<Self as futures_util::Future>::Output> { todo!() }`

error[E0282]: type annotations needed for `&T`
   --> /home/inoki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/fuse3-0.6.1/src/path/inode_path_bridge.rs:998:39
    |
998 |         let paths = paths.iter().map(|path| path.as_ref()).collect::<Vec<_>>();
    |                                       ^^^^       ------ type must be known at this point
    |
help: consider giving this closure parameter an explicit type, where the type for type parameter `T` is specified
    |
998 |         let paths = paths.iter().map(|path: &T| path.as_ref()).collect::<Vec<_>>();
    |                                           ++++

error[E0433]: failed to resolve: use of undeclared crate or module `task`
  --> /home/inoki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/fuse3-0.6.1/src/raw/session.rs:43:24
   |
43 | pub struct MountHandle(task::JoinHandle<IoResult<()>>);
   |                        ^^^^ use of undeclared crate or module `task`

Some errors have detailed explanations: E0046, E0282, E0412, E0432, E0433.
For more information about an error, try `rustc --explain E0046`.
error: could not compile `fuse3` (lib) due to 8 previous errors
warning: build failed, waiting for other jobs to finish...

Would you like to take a look? @oowl @ho-229

Created #3857 based on fuse3(v0.6.1, latest released version).
It's really nice to have the built-in inode <=> directory mapping, so we can leverage the feature and only implement the interactions with OpenDAL, based on PathFilesystem trait.
However, there are a lot of errors under rustc 1.73.0 (cc66ad468 2023-10-03) due to the async runtime and some other issues:
error[E0432]: unresolved import `session::Session`
  --> /home/inoki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/fuse3-0.6.1/src/path/mod.rs:8:9
   |
8  | pub use session::Session;
   |         ^^^^^^^^^^^^^^^^ no `Session` in `path::session`
   |
note: found an item that was configured out
  --> /home/inoki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/fuse3-0.6.1/src/path/session.rs:12:12
   |
12 | pub struct Session {
   |            ^^^^^^^

error[E0432]: unresolved import `super::Session`
  --> /home/inoki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/fuse3-0.6.1/src/raw/mod.rs:26:13
   |
26 |     pub use super::Session;
   |             ^^^^^^^^^^^^^^ no `Session` in `raw`
   |
note: found an item that was configured out
  --> /home/inoki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/fuse3-0.6.1/src/raw/mod.rs:12:32
   |
12 | pub use session::{MountHandle, Session};
   |                                ^^^^^^^
help: a similar name exists in the module
   |
26 |     pub use super::session;
   |                    ~~~~~~~
help: consider importing this unresolved item through its public re-export instead
   |
26 |     pub use crate::path::Session;
   |             ~~~~~~~~~~~~~~~~~~~~

error[E0412]: cannot find type `RwLock` in this scope
   --> /home/inoki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/fuse3-0.6.1/src/path/inode_path_bridge.rs:109:25
    |
109 |     inode_name_manager: RwLock<InodeNameManager>,
    |                         ^^^^^^ not found in this scope
    |
help: consider importing this struct
    |
1   + use std::sync::RwLock;
    |

error[E0433]: failed to resolve: use of undeclared type `RwLock`
   --> /home/inoki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/fuse3-0.6.1/src/path/inode_path_bridge.rs:136:33
    |
136 |             inode_name_manager: RwLock::new(inode_name_manager),
    |                                 ^^^^^^ use of undeclared type `RwLock`
    |
help: consider importing this struct
    |
1   + use std::sync::RwLock;
    |

error[E0433]: failed to resolve: use of undeclared crate or module `task`
    --> /home/inoki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/fuse3-0.6.1/src/raw/session.rs:3855:5
     |
3855 |     task::spawn(fut.instrument(span));
     |     ^^^^ use of undeclared crate or module `task`
     |
help: consider importing this module
     |
1    + use futures_util::task;
     |

error[E0046]: not all trait items implemented, missing: `poll`
  --> /home/inoki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/fuse3-0.6.1/src/raw/session.rs:45:1
   |
45 | impl Future for MountHandle {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `poll` in implementation
   |
   = help: implement the missing item: `fn poll(self: Pin<&mut Self>, _: &mut Context<'_>) -> Poll<<Self as futures_util::Future>::Output> { todo!() }`

error[E0282]: type annotations needed for `&T`
   --> /home/inoki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/fuse3-0.6.1/src/path/inode_path_bridge.rs:998:39
    |
998 |         let paths = paths.iter().map(|path| path.as_ref()).collect::<Vec<_>>();
    |                                       ^^^^       ------ type must be known at this point
    |
help: consider giving this closure parameter an explicit type, where the type for type parameter `T` is specified
    |
998 |         let paths = paths.iter().map(|path: &T| path.as_ref()).collect::<Vec<_>>();
    |                                           ++++

error[E0433]: failed to resolve: use of undeclared crate or module `task`
  --> /home/inoki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/fuse3-0.6.1/src/raw/session.rs:43:24
   |
43 | pub struct MountHandle(task::JoinHandle<IoResult<()>>);
   |                        ^^^^ use of undeclared crate or module `task`

Some errors have detailed explanations: E0046, E0282, E0412, E0432, E0433.
For more information about an error, try `rustc --explain E0046`.
error: could not compile `fuse3` (lib) due to 8 previous errors
warning: build failed, waiting for other jobs to finish...

Would you like to take a look, which async runtime is preferred? @oowl @ho-229

I temporarily use tokio-async runtime in the mentioned branch.

Created #3857 based on fuse3(v0.6.1, latest released version).
It's really nice to have the built-in inode <=> directory mapping, so we can leverage the feature and only implement the interactions with OpenDAL, based on PathFilesystem trait.
However, there are a lot of errors under rustc 1.73.0 (cc66ad468 2023-10-03) due to the async runtime and some other issues.
Would you like to take a look, which async runtime is preferred? @oowl @ho-229

I'm sorry for not getting back to you sooner.  Yeah, OpenDAL recommends using tokio as async runtime in some need cases.


Add isLoggedIn function to AuthenticationService that returns the logged in state

See usage of AuthenticationService in SecurityInterceptor. I think it would be better is authenticationService had an isLoggedIn method to determine if we add the auth token rather than the caller having to do a null check.

Done


Method 2 not working, but Method 3 does

Hey there!
Glad that I found your script, thanks for sharing!
Trying it all on KDE Wayland, Arch Linux, script via AUR.
So I did the setup and chose my eGPU (nvidia) as primary and my two integrated (Intel + nvidia) as the integrated ones.
On the three questions after the guided setup, when I yes the Method 2 - regardless if with 3 or not - it won't work.
I have full-disk-encryption and on boot it asks for the password. It decrypts and I will always still see the "enter your password" on TTY1. I can change TTYs and fumble around there, but returning to TTY1 will still show the password prompt.
If I deactivate Method 2 and ONLY use Method 3, it kinda works.
The SDDM greeter is on my integrated screen, but after login, my eGPU monitors turn on and have a very nice wayland setup. Really nice, everything is running on the eGPU (checked via nvidia-smi).
Problem is, that when I'm opening something else (even like glxgears), it will render on GPU0, which is the integrated nvidia, not the eGPU one.
This results in one window that only has display artifacts in it.
Is there something I'm missing to get Method 2 (or 3) to work? Or is this a known problem?
Would an AMD GPU be less hassle?
Please tell me which information you need for troubleshooting, I'll gladly submit it. :)

I might have found something.
This is my status output of the script:
Enter Choice [0-9]:
9
Method 1 setup with following Bus IDs
0000:00:02.0 i915
0000:01:00.0 nvidia
Method 2, 3 setup with following Bus IDs
0000:06:00.0 nvidia
0000:06:00.0 eGPU connected, not set as primary with Method 2
0000:06:00.0 eGPU currently set as primary with Method 3
Method 1 auto switch at startup service
○ all-ways-egpu.service - Configure eGPU as primary under Wayland desktops
     Loaded: loaded (/etc/systemd/system/all-ways-egpu.service; disabled; preset: disabled)
     Active: inactive (dead)
Method 2 auto switch at startup service
○ all-ways-egpu-boot-vga.service - Configure eGPU as primary using boot_vga under Wayland desktops
     Loaded: loaded (/etc/systemd/system/all-ways-egpu-boot-vga.service; disabled; preset: disabled)
     Active: inactive (dead)
Method 3 auto switch at startup service
○ all-ways-egpu-set-compositor.service - Configure eGPU as primary using compositor variables under Wayland desktops
     Loaded: loaded (/etc/systemd/system/all-ways-egpu-set-compositor.service; enabled; preset: disabled)
     Active: inactive (dead) since Wed 2023-11-08 22:31:35 CET; 2min 55s ago
   Duration: 242ms
    Process: 2027 ExecStart=all-ways-egpu set-compositor-primary egpu (code=exited, status=0/SUCCESS)
   Main PID: 2027 (code=exited, status=0/SUCCESS)
        CPU: 199ms

Nov 08 22:31:35 trollwut systemd[1]: Started Configure eGPU as primary using compositor variables under Wayland desktops.
Nov 08 22:31:35 trollwut all-ways-egpu[2030]: grep: warning: stray \ before :
Nov 08 22:31:35 trollwut all-ways-egpu[2030]: grep: warning: stray \ before :
Nov 08 22:31:35 trollwut all-ways-egpu[2032]: grep: warning: stray \ before :
Nov 08 22:31:35 trollwut all-ways-egpu[2032]: grep: warning: stray \ before :
Nov 08 22:31:35 trollwut all-ways-egpu[2035]: grep: warning: stray \ before :
Nov 08 22:31:35 trollwut all-ways-egpu[2035]: grep: warning: stray \ before :
Nov 08 22:31:35 trollwut all-ways-egpu[2027]: Compositor variables set. Restart Display Manager for changes to take effect.
Nov 08 22:31:35 trollwut systemd[1]: all-ways-egpu-set-compositor.service: Deactivated successfully.
Press [Enter] to return to menu.

Seems quite cool with everthing, except that grep has a little problem.
So I checked the files in /etc/environtment.d/ and they seem a little off:
$ bat /etc/environment.d/10kwin.conf
───────┬────────────────────────────────────────────────────────────────────────
       │ File: /etc/environment.d/10kwin.conf
───────┼────────────────────────────────────────────────────────────────────────
   1   │ KWIN_DRM_DEVICES=/dev/dri/card1::/dev/dri/card0/dev/dri/card2
───────┴────────────────────────────────────────────────────────────────────────

See the :: and one missing between the cards.
Same in the sway file.
So I tried to correct the file to KWIN_DRM_DEVICES=/dev/dri/card1::/dev/dri/card0/dev/dri/card2 and tried to restart it, but then the same happens as with Method 2: it just doesnt work.
When I restart the machine, the file is in the wrong ::-State again.
Any idea on how to investigate further, or even solve this?

the output of my 10kwin.conf with the egpu disconnected on nobara 38 gnome:
KWIN_DRM_DEVICES=/dev/dri/card0:/dev/dri/card1
does this help you?

@Trollwut
For the SDDM issue I think that is down to SDDM still using X on the backend rather than Wayland.
It does look like the script is having an issue parsing your 3 GPUs. I don't have a system with 3 GPUs to test so I've only tested it with 2 GPU entries. I'll look into the parsing issue.
In the meantime, could you try running the setup again and only setting the iGPU as integrated and not setting the dGPU as either? With Method 2 this setup should still work to set the eGPU as primary and you should get an output file similar to what @NL-TCH posted

@Trollwut For the SDDM issue I think that is down to SDDM still using X on the backend rather than Wayland.

most likely :) I dont mind having it on any screen though. But would you have an alternative that runs on Wayland? Maybe gdm, but does this integrate well with KDE-Wayland?
(Sry, this is my first Wayland setup, so this tech is quite new to me.)

It does look like the script is having an issue parsing your 3 GPUs. I don't have a system with 3 GPUs to test so I've only tested it with 2 GPU entries. I'll look into the parsing issue. In the meantime, could you try running the setup again and only setting the iGPU as integrated and not setting the dGPU as either? With Method 2 this setup should still work to set the eGPU as primary and you should get an output file similar to what @NL-TCH posted

So I did this. I even uninstalled the script first to start from scratch. Fun fact: It even hates parsing two GPUs on my setup :D
So guided setup, eGPU as primary, iGPU (not dGPU) as internal.
Activated Method 2, doesnt work.
Deactivated Method 2 and activated 3 -> works the same as with 3 GPUs selected. SDDM on integrated screen, boots into a Wayland session, but any 3D graphical program will open on the wrong GPU and result in a graphic-artifact-window.
This is the KWin environment file with only 2 GPUs selected:
$ cat /etc/environment.d/10kwin.conf
KWIN_DRM_DEVICES=/dev/dri/card1::/dev/dri/card0/dev/dri/card2

I will be going to sleep now, so I can only troubleshoot further tomorrow evening.
This would be some lspci output:
$ lspci -k | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Alder Lake-P GT2 [Iris Xe Graphics] (rev 0c)
01:00.0 VGA compatible controller: NVIDIA Corporation GA104 [Geforce RTX 3070 Ti Laptop GPU] (rev a1)
06:00.0 VGA compatible controller: NVIDIA Corporation GA102 [GeForce RTX 3080] (rev a1)

And when using Method 2 - which doesnt work for me right now - shows just the blank screen, this is the SDDM status output (which confirms its using X as backend):
● sddm.service - Simple Desktop Display Manager
     Loaded: loaded (/usr/lib/systemd/system/sddm.service; enabled; preset: disabled)
     Active: active (running) since Wed 2023-11-08 23:10:51 CET; 56s ago
       Docs: man:sddm(1)
             man:sddm.conf(5)
   Main PID: 2120 (sddm)
      Tasks: 2 (limit: 37955)
     Memory: 286.1M
        CPU: 1.576s
     CGroup: /system.slice/sddm.service
             └─2120 /usr/bin/sddm

Nov 08 23:10:55 trollwut sddm[2120]: Failed to read display number from pipe
Nov 08 23:10:55 trollwut sddm[2120]: Display server stopping...
Nov 08 23:10:55 trollwut sddm[2120]: Attempt 2 starting the Display server on vt 2 failed
Nov 08 23:10:57 trollwut sddm[2120]: Display server starting...
Nov 08 23:10:57 trollwut sddm[2120]: Writing cookie to "/run/sddm/xauth_OghlRV"
Nov 08 23:10:57 trollwut sddm[2120]: Running: /usr/bin/X -nolisten tcp -background none -seat seat0 vt2 -auth /run/sddm/xauth_OghlRV -noreset -displayfd 16
Nov 08 23:10:57 trollwut sddm[2120]: Failed to read display number from pipe
Nov 08 23:10:57 trollwut sddm[2120]: Display server stopping...
Nov 08 23:10:57 trollwut sddm[2120]: Attempt 3 starting the Display server on vt 2 failed
Nov 08 23:10:57 trollwut sddm[2120]: Could not start Display server on vt 2

I hope this is some info that might help you investigate the problem with me. I will reply tomorrow. :) Thanks in advance!

@Trollwut
SDDM has an experimental wayland backend so if you're on the KDE side I'd just keep on SDDM and wait for the wayland work to be done.
In the logs from using Method 2 I think it looks like the SDDM is trying to start, but can't find a display. I think nvidia has a specific Xorg option that disables the display output on mobile GPUs and that might be applying to the eGPU as well because it's sharing the same driver. You could try using the experimental wayland SDDM backend to get around Xorg or look into changing the xorg.conf "UseDisplayDevice" option described here: https://download.nvidia.com/XFree86/Linux-x86/390.157/README/xconfigoptions.html
I made a change to the git code to fix the parsing issue, could you could try installing the latest git version according to https://github.com/ewagner12/all-ways-egpu#git
And see if that changes anything when using Method 3 only.
I've also heard of people having better luck on eGPUs with the nvidia-open driver rather than the proprietary nvidia driver but can't confirm that personally.

Hey there! So I tested it and it seems like it works now. I still have problems rendering 3D apps, but we'll come to that. :)
Ok, so here is what I did and how it went:
At first, I activated SDDM's Wayland support as described in the [https://wiki.archlinux.org/title/SDDM#Running_under_Wayland](Arch Wiki).
No changes with the script, I just rebooted to test it and it worked. Nice.
Then I used the script to uninstall itself and revert its changes.
After that, I downloaded and installed your script via Git method, as you wished.
I ran the guided setup, chose my eGPU and both internal GPUs.
I only used Method 2 (no 3 involved) and rebooted -> This worked!!! WOOHOOO!!!
I then ran the guided setup again and activated Method 2 AND Method 3 and rebooted -> It works!! And I also can use my internal display as well! :D
Ok, so this just works now. Thanks for your quick support!
But there still is one thing left:
When opening 3D accelerated apps, like glxgears, I still just get a window with graphical artifacts ([https://wiki.archlinux.org/title/SDDM#Running_under_Wayland](here is an image).
With nvidia-smi I can see that it runs on the internal dGPU and not the eGPU:
$ nvidia-smi
Thu Nov  9 20:33:05 2023
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 545.29.02              Driver Version: 545.29.02    CUDA Version: 12.3     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce RTX 3070 ...    Off | 00000000:01:00.0 Off |                  N/A |
| N/A   43C    P8              14W / 125W |     20MiB /  8192MiB |      8%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
|   1  NVIDIA GeForce RTX 3080        Off | 00000000:06:00.0  On |                  N/A |
|  0%   47C    P0             124W / 340W |   1065MiB / 10240MiB |     48%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+

+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A      3145      G   /usr/bin/ksmserver                            3MiB |
|    0   N/A  N/A      3406      G   /usr/bin/kaccess                              3MiB |
|    0   N/A  N/A     11520      G   glxgears                                      5MiB |
|    1   N/A  N/A      3005      G   /usr/bin/kwalletd5                            3MiB |
|    1   N/A  N/A      3028      G   /usr/bin/kwin_wayland                       433MiB |
|    1   N/A  N/A      3114      G   /usr/bin/Xwayland                             4MiB |
|    1   N/A  N/A      3151      G   /usr/bin/kded5                                3MiB |
|    1   N/A  N/A      3182      G   /usr/bin/plasmashell                        248MiB |
|    1   N/A  N/A      3228      G   ...b/polkit-kde-authentication-agent-1        3MiB |
|    1   N/A  N/A      3230      G   /usr/lib/xdg-desktop-portal-kde               3MiB |
|    1   N/A  N/A      3382      G   /usr/bin/barrier                              3MiB |
|    1   N/A  N/A      3383      G   /usr/bin/nextcloud                            3MiB |
|    1   N/A  N/A      3408      G   /usr/lib/DiscoverNotifier                     3MiB |
|    1   N/A  N/A      3704      G   /usr/bin/konsole                              3MiB |
|    1   N/A  N/A      3770      G   /usr/bin/konsole                              3MiB |
|    1   N/A  N/A     10223      G   /usr/bin/krunner                             16MiB |
|    1   N/A  N/A     10290      G   /usr/lib/baloorunner                          3MiB |
|    1   N/A  N/A     10325      G   /usr/lib/firefox/firefox                    234MiB |
|    1   N/A  N/A     10644      G   ...bin/plasma-browser-integration-host        3MiB |
|    1   N/A  N/A     10945      G   /usr/bin/systemsettings5                     40MiB |
+---------------------------------------------------------------------------------------+

Is there a way to only use my eGPU for rendering? I cant seem to get it to work.
My DRI_PRIME= wont work, it always uses my dGPU, not eGPU:
$ DRI_PRIME=0 glxinfo | grep "OpenGL renderer"
OpenGL renderer string: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
$ DRI_PRIME=1 glxinfo | grep "OpenGL renderer"
OpenGL renderer string: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
$ DRI_PRIME=2 glxinfo | grep "OpenGL renderer"
OpenGL renderer string: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2

Any other idea on how to make it work?
If you need any further logs, please ask! :)

@Trollwut
Glad to hear that the script is working as it should now!
For the 3D apps running on the dGPU I believe that's down to the nvidia driver side. Could you try using __NV_PRIME_RENDER_OFFLOAD_PROVIDER as noted here. I think you'll want to set it equal to NVIDIA-G1. DRI_PRIME only works with the open drivers (intel, amdgpu, and nouveau).

Well, it works almost as it should :D
So I tested your env, but it doesnt do anything for me:
$ __NV_PRIME_RENDER_OFFLOAD_PROVIDER=0 glxinfo | grep renderer
OpenGL renderer string: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
$ __NV_PRIME_RENDER_OFFLOAD_PROVIDER=1 glxinfo | grep renderer
OpenGL renderer string: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
$ __NV_PRIME_RENDER_OFFLOAD_PROVIDER=2 glxinfo | grep renderer
OpenGL renderer string: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
It also seems that there simply is no choice:
$ xrandr --listproviders
Providers: number : 0
I don't have an X config (as I thought I'm running Wayland anyway?). So maybe thats the problem, not having any X config?
If I do need one, what would be the best approach to create it? Especially so that it fits with either eGPU or no-eGPU setup.

I'm now a little confused... for the sake of troubleshooting, I tried Method 1.
So yes, it switched internals off, both eGPU monitors are now running bla bla bla.
But after login, when I run some 3D stuff, it still wants to grab my dGPU. I thought it was switched off?
$ glxinfo | grep renderer
OpenGL renderer string: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2

So I fiddled around every evening for a few hours and I'm out of ideas...
things I did try:

adding my user to the video group (it's unnecessary since systemd, but I'm desperate)
using nvidia-open-dkms
disable dGPU via ASUS software (I can't turn it off via BIOS/UEFI...)

It's always the same outcome: If I open graphics accelerated window with XWayland, I just get a window filled with graphical artrifacts. nvidia-smi shows that these program run on the wrong GPU id, not the eGPU.
If someone has another idea, I'm open!

@Trollwut
The only other thing I'd recommend is trying out an Xorg based desktop like Plasma (X11) along with one of the scripts like egpu-switcher. If it works in a regular Xorg desktop then that could be a workaround and would narrow it down to an XWayland issue specifically. If it doesn't work there then this might be a more general issue. Besides that I don't think I have any other ideas for this.

Xorg was the first thing I tried (even though I wanted to end up on Wayland), just because that's the platform I know and I want my eGPU setup.
Yes, there it works. With all disadvantages. :D But it works.
Problem is, that I have 2 monitors on it with different refresh rates, different aspect ratio and one of them is 90 degrees tilted. This results in a veeeery laggy desktop experience (as long as anything moves on both monitors). So yes, Xorg would work, but definitely not for me.
I just ordered an AMD 7900 XT, so that I can try it with that (read: Intel iGPU, nvidia dGPU, AMD eGPU). If this works as intended, I must say that it's some kind of nvidia fuckery.
This would also explain why I cant find any setup like mine. There are many iGPU+eGPU setups, but never with dGPU (at least not nvidia+nvidia; mixed setups are possible, as it seems).
I guess I can test it this weekend, so I will reply when I have results. :)
Maybe I'll find something else to test for nvidia+nvidia, but for now I don't have any ideas left...

IDK if you figured this out on your end, but for reference or if anyone else comes across this I'm linking a similar issue and workaround reported for an nvidia+nvidia eGPU setup.
https://github.com/hertg/egpu-switcher/issues/117
It seems that the nvidia proprietary driver has a quirk where it needs to be reloaded for the script to work properly


Error when pushing style: 'attempt to index a nil value'

Code to reproduce the issue:
local ui = nk.newUI()

ui:stylePush({
	checkbox = {
		normal = love.graphics.newImage('checkbox.png'),
	},
})

Stack trace:
Error: attempt to index a nil value
stack traceback:
	[string "boot.lua"]:637: in function <[string "boot.lua"]:633>
	[C]: in function 'stylePush'
	main.lua:4: in main chunk
	[C]: in function 'require'
	[string "boot.lua"]:475: in function <[string "boot.lua"]:311>
	[C]: in function 'xpcall'
	[string "boot.lua"]:645: in function <[string "boot.lua"]:639>
	[C]: in function 'xpcall'

The error gets thrown when calling pushStyle() before calling frameBegin(). I have an app that pushes a style when it starts, before the first frameBegin() - this worked fine with an older version of love-nuklear.
Is this by design? Are static styles to be pushed in every frame?

A workaround:
function love.load()
    ui:frameBegin()
    ui:stylePush(style)
    ui:frameEnd()
end

It's not pretty, but the style sticks between frames.

v2.5 should solve this problem. Let me know if the issue persists.

Works fine now, thanks


Missing abstract modifier in AbstractEnvironmentDecrypt

/**
 * Abstract class that handles decrypting and merging of PropertySources.
 */
public class AbstractEnvironmentDecrypt {
...
}

We would only be able to change it to be abstract in the main branch at this point...
@spencergibb was your intention for it be abstract?


ContactLensStream Kinesis Stream - Association - Post Deployment Step?

We have installed the serverless repository from the github repo for version 9.0.1:
https://serverlessrepo.aws.amazon.com/applications/us-east-1/317368162107/ServiceCloudVoiceLambdas
There is a successful install but it is not clear how the ContactLensStream Kinesis stream connects to the real-time contact analysis to produce the transcription in Salesforce.
Step 3 in this document appears to be what is required but we would like confirmation:
https://docs.aws.amazon.com/connect/latest/adminguide/enable-contact-analysis-segment-streams.html

This is one of the known bug and we are planning to fix this in the Spring 23 release.

This is fixed with the 11.0 version. I am closing this issue.

Great, thanks!


Feature request : startup scripts for the cli restoration tool

When the backup folders are made, create a script for windows and linux users in the backup folder, by the readme.
This would :

Change directory to the mods folder used by the running instance
Run the cli tool using the java installation that was used to run the game

Doing this would make the presence of a cli tool more obvious, along with removing any issues with many curseforge users not having a suitable system java installation.

using the java installation that was used to run the game

How would we go about identifying that java installation?

using the java installation that was used to run the game

How would we go about identifying that java installation?

Turns out, it's a little more difficult than I first thought when I suggested this at 3am haha
The best bet seems to be getting the process id and performing a system call to determine how the process was ran from there...?
Alternatively, something less guaranteed would be to check the current location - should be easy to tell if it's curseforge or not, and if so we can use its local installation - otherwise query PATH for system java installs?

Both those approaches seem a bit fickle to be honest. I think the best approach would be to rely on the user having the correct system java install, and if they don't it simply won't work.

I get that... but I'm really not a fan of leaving them with no tool.
Either way, I'll update that readme file to mention system java being a requirement.

Is the required java version different between mod versions, or can say, java 8, be used for them all?

Is the required java version different between mod versions, or can say, java 8, be used for them all?

Currently the required version is the one required by the game version - so java 8 for 1.16 or lower, and higher versions for higher minecraft versions.
This isn't a code dependency, so could be changed with a bit of work.

I think changing it to java 8 or above would be great, far more likely the system java will work then.

Yeah, fair. I'll look into doing that, it seems ForgeGradle hates me if I just set the target java version to 8, so it'll be a tad more complex..

Yeah, bit of a refactor will be required, but it'll be done no worries.
Anything else to say or shall I close this issue?

One last thing - Are you going to make the .sh and .bat scripts, or is that on the modpack dev to make?

One last thing - Are you going to make the .sh and .bat scripts, or is that on the modpack dev to make?

I've no issues bunding them with the mod - especially if they're runnable with just java 8.

Perfect 👌

#11 Created and ready to merge, with that the core stuff (including cli) should be buildable targeting java 8 and safe to bundle with any version specific release. This will be tested further before merging.

Cool. All merged, all mod jars will be runnable with java 8 - scripts next, then I can close this issue and move onto the other stuff.

Awesome 👌

With 3151125 this is now fully implemented. Closing.


[WIP] Introduce custom error EspowerError

Introduce custom error EspowerError, the root error for espower package.

[x] define EspowerError
[x] instanceof Error
[x] name === 'EspowerError'
[x] stack
[x] error format
[x] export via espower function
[x] tests
[ ] refactor
[ ] documentation

Coverage decreased (-3.18%) to 94.74% when pulling ff4cef4a6c05af0e4962b334cb977fb6278a8b8d on introduce-custom-error into 9d3e7d554a90d65a2f64268fcb39052dd834c267 on master.

Coverage decreased (-3.18%) to 94.74% when pulling 9069dd98241b2f35a8579bb2ac297f52821ecf88 on introduce-custom-error into 9d3e7d554a90d65a2f64268fcb39052dd834c267 on master.


Mac OS - goldendict program: Query error: The program has returned exit code 255.

On Mac OS, when using this program on terminal it work well, but when add this program to goldendict, it show above error
Anyone know about this issue?

I also have this problem. Have you fixed it?

same

I have the same problem, who can help me ORZ!!

I just solved this problem, and it seems work well with me.
I found my answer from this thread:
https://apple.stackexchange.com/questions/270540/translate-shell-script-not-working-within-automator
I'm not familiar with programming, so I just wrote down the solution.
I used macports to install translate-shell and gawk, and the script file is at the path of /opt/local/bin.
I used the code of which gawk to find them.
Then I changed the file of trans by vim as the thread told.
change:
gawk -f <(echo -E "$TRANS_PROGRAM") - "$@"
###### this is the last line of the trans script.
To:
/usr/local/bin/gawk -f <(echo -E "$TRANS_PROGRAM") - "$@"
###### "/usr/local/bin" is just the case for me.
Finally, I used this code in the settings of Goldendict
/opt/local/bin/trans %GDWORD%
P.S. There is no problem to add any options you want  after trans.


Replace calls to deprecated local_accessor::get_pointer()

Details

local_accessor::get_pointer() is deprecated in the SYCL 2020 spec
Usage is limited to ceed-sycl-ref-basis.cpp

Patched here


first attempt to remove conflicts with firebase_ml_vision

This PR was intended for my own master branch.   Please disregard.


openvpn should start after sshd

configure a sshd with to listeners:
xxx.xxx.xxx.xxx is the external IP
yyy.yyy.yyy.yyy is the VPN IP
ListenAddress xxx.xxx.xxx.xxx:AAAA
ListenAddress yyy.yyy.yyy.yyy:BBBB

With systemd, both services start in parallel, so that the bind to the VPN IP no longer works.

this should fixed with commit 6131c43fa5a9ee3255f399f884598968cce29a8a


How to a extract feature vector  from a pretrain model

Thanks for the awesome framework!!
I am trying to extract feature vectors from a pretrained model.  I have attached the model and I have indicated three locations from where I would like extract the feature vectors (lines 330,365,378).
I am unsure of what or where the code I write should be to extract the vectors at these locations?
Any help will be appreciated.
model.txt

For example, you can get the feature map of FPN from here
https://github.com/open-mmlab/mmdetection/blob/e71b499608e9c3ccd4211e7c815fa20eeedf18a2/mmdet/models/detectors/two_stage.py#L127


"Download tutorial input data" cannot be found

The link: https://drive.google.com/uc?export=download&id=1B9y1czpQKJEf3TMBjdrTTtQwhWcHdDBO
gives "Not Found".

Thanks, I fixed the link.


Remove -march=native from COMMON_CFLAGS

We use lucet in Tor Browser, and found that the build is failing on some hardware with the error:
make[1]: Entering directory '/var/tmp/build/lucetc/lucet-builtins'
/var/tmp/dist/clang/bin/clang --std=gnu99 -Ofast -Wall -Werror -march=native -fPIC -I../lucet-runtime/include -c src/memcpy.c -o build/memcpy.o
error: unknown target CPU 'pentium2'
note: valid target CPU values are: nocona, core2, penryn, bonnell, atom, silvermont, slm, goldmont, goldmont-plus, tremont, nehalem, corei7, westmere, sandybridge, corei7-avx, ivybridge, core-avx-i, haswell, core-avx2, broadwell, skylake, skylake-avx512, skx, cascadelake, cooperlake, cannonlake, icelake-client, icelake-server, knl, knm, k8, athlon64, athlon-fx, opteron, k8-sse3, athlon64-sse3, opteron-sse3, amdfam10, barcelona, btver1, btver2, bdver1, bdver2, bdver3, bdver4, znver1, znver2, x86-64
Makefile:16: recipe for target 'build/memcpy.o' failed
make[1]: *** [build/memcpy.o] Error 1
make[1]: Leaving directory '/var/tmp/build/lucetc/lucet-builtins'
Makefile:11: recipe for target 'build' failed

This patch is fixing the issue for us.

Oh sorry, I don't know why I didn't get notified about this!

I'll look into merging this asap


Augmenting validation set shouldn't be mandatory

In utils.py, the validation set is augmented. AFAIK the validation set should be fixed and be as close as real world data. In this case it is manually changed and won't be the same across two epochs.
Please let me know if I'm missing something. I'd go with shuffle=False, because if your dataset isn't a multiple of the batch size the dataset won't be the all the time the same and augment=False by default for the aformentioned reasons.

@maxpv thanks for picking that up!
You're absolutely correct! And I swear to god it used to be no augment and no shuffle for validation when I was writing it and using it 😆. I guess when I was putting this stuff into keras-unet package and doing some refactoring I must have mistakenly copy-pasted something wrong. That's what you get for not writting tests...

No problem, actually I doubled checked if anyone is actually doing augmentation on the validation set and found this interesting thread.

No problem, actually I doubled checked if anyone is actually doing augmentation on the validation set and found this interesting thread.

Interesting indeed. Some good points there, although for me the main purpose of augmentation is to reduce overfitting and having that in mind (as you said before) you don't want to run augmentation on your val/test datasets - you rather have it fixed and always the same

Yes we agree that they are edge cases.


How to run it

Assalaamu alikum amir bhai
please tell me how to run it on server
or
In local machine
Jazakallah


notification client does not respect json_encoder settings

Currently when calling the notify method on a pusher client with custom JSON encoder specified, that json_encoder is not used by the underlying notification_client, which is pretty inconvenient.

The json_encoder is used when triggering events to encode the payload of each event as a string, which is then sent in the json body of the request itself. Only this payload is encoded by the json_encoder. For example, if we .trigger("c", "e", { "foo": "bar" }) then the json of the request is
{"name": "e", "channels": ["c"], "data": "{\"foo\": \"bar\"}"}

Note that data is just a string – this is the only bit that gets touched by the json_encoder. The push notification API doesn't have this extra level of encoding, everything is just in the root JSON object. i.e. if we .trigger(["i"], { "foo": "bar" }) the body of the response is just
{"interests": ["i"], "foo": "bar"}

There's no double encoding.
That being said, what is your use case for using the json_encoder for the notify? It certainly might be worth us looking at utilising it regardless.

Closing because I think @callum-oakley's response explains the current state well, and there has been no more discussion.


xarray add coordinates to mapping variables

What happened?
When a netcdf file containing a mapping variable and a height coordinates is opened, the height coordinates is added to the mapping variable.
The minimal example generates a netcdf similar to CMIP6 data remapped on a curvilinear grid  (for this example in fact it is also a lat / lon grid), where the curvilinear coordinates x / y are connected to lat / lon and tas with the PlateCarree variable. The PlateCarree variable doesn't contains any coordinates when the netcdf is created, and it is also the case when the netcdf is read with netCDF4. But when it is read with xr.open_dataset, the height coordinates is added to the PlateCarree variable.
What did you expect to happen?
Variables without coordinates should not have any after reading with xarray
Minimal Complete Verifiable Example
import sys,os

import numpy  as np
import pandas as pd
import xarray as xr
import netCDF4

###############
## Functions ##
###############

def build_data():
	## Start by build the coordinates
	x    = np.arange( -5 , 10 + 0.1 , 1 )
	y    = np.arange( 41 , 52 + 0.1 , 1 )
	lon,lat = np.meshgrid(x,y)
	time = pd.date_range( "2000-01-01" , "2005-12-31" ).values

	lon = xr.DataArray( lon , dims = ["y","x"] , coords = [y,x] )
	lat = xr.DataArray( lat , dims = ["y","x"] , coords = [y,x] )

	## Variables
	T = xr.DataArray( np.random.normal( size = (time.size,y.size,x.size) ) , dims = ["time","y","x"]  , coords = { "time" : time , "y" : y , "x" : x , "lat" : lat , "lon" : lon } )

	## Dataset
	odata = xr.Dataset( { "tas" : T , "height" : 2. , "PlateCarree" : 1 } )

	## Add attributes
	odata.lon.attrs["axis"]          = "x"
	odata.lon.attrs["long_name"]     = "longitude coordinate"
	odata.lon.attrs["standard_name"] = "longitude"
	odata.lon.attrs["units"]         = "degrees_east"

	odata.lat.attrs["axis"]          = "y"
	odata.lat.attrs["long_name"]     = "latitude coordinate"
	odata.lat.attrs["standard_name"] = "latitude"
	odata.lat.attrs["units"]         = "degrees_north"

	odata.x.attrs["units"]         = "degrees_north"
	odata.x.attrs["long_name"]     = "x coordinate of projection"
	odata.x.attrs["standard_name"] = "projection_x_coordinate"

	odata.y.attrs["units"]         = "degrees_east"
	odata.y.attrs["long_name"]     = "y coordinate of projection"
	odata.y.attrs["standard_name"] = "projection_y_coordinate"

	odata.time.attrs["axis"]          = "T"
	odata.time.attrs["standard_name"] = "time"
	odata.time.attrs["long_name"]     = "Time axis"

	odata.PlateCarree.attrs["grid_mapping_name"] = "plate_carree"
	odata.PlateCarree.attrs["epsg"]              = "4326"

	odata.tas.attrs["grid_mapping"]  = "PlateCarree"
	odata.tas.attrs["standard_name"] = "air_temperature"
	odata.tas.attrs["long_name"]     = "Daily Mean Near-Surface Air Temperature"
	odata.tas.attrs["units"]         = "Kelvin"
	odata.tas.attrs["coordinates"]   = "height lat lon"

	odata.height.attrs["standard_name"] = "height"
	odata.height.attrs["long_name"] = "height"
	odata.height.attrs["units"] = "m"
	odata.height.attrs["positive"] = "up"
	odata.height.attrs["axis"] = "Z"
	odata.height.attrs["name"] = "height"

	## Encoding
	ny = y.size
	nx = x.size
	encoding = { "time" : { "dtype" : "double"  , "zlib" : True , "complevel" : 5 , "chunksizes" : (1,) , "units" : "days since 1950-01-01" , "calendar" : "standard" } ,
	             "y"    : { "dtype" : "double"  , "zlib" : True , "complevel" : 5 , "chunksizes" : (ny,) } ,
	             "x"    : { "dtype" : "double"  , "zlib" : True , "complevel" : 5 , "chunksizes" : (nx,) } ,
	             "lat"  : { "dtype" : "double"  , "zlib" : True , "complevel" : 5 , "chunksizes" : (ny,nx) } ,
	             "lon"  : { "dtype" : "double"  , "zlib" : True , "complevel" : 5 , "chunksizes" : (ny,nx) } ,
	             "tas"  : { "dtype" : "float32" , "zlib" : True , "complevel" : 5 , "chunksizes" : (1,ny,nx) } ,
	          "height"  : { "dtype" : "double" } ,
	     "PlateCarree"  : { "dtype" : "int32" } }

	odata.to_netcdf( "test.nc" , encoding = encoding )

##########
## main ##
##########

if __name__ == "__main__":

	## Start by generate data
	build_data()

	## Open with xarray
	data = xr.open_dataset("test.nc").load()

	print("With xarray:")
	print(data.PlateCarree) ## height is a coordinate of 'PlateCarree'

	## And open with netCDF4
	print("="*80)
	print("With netCDF4")
	with netCDF4.Dataset( "test.nc" , mode = "r" ) as ncfile:
		print(ncfile.variables["PlateCarree"].get_dims()) ## height is not a coordinate of 'PlateCarree'

MVCE confirmation

[X] Minimal example — the example is as focused as reasonably possible to demonstrate the underlying issue in xarray.
[X] Complete example — the example is self-contained, including all data and the text of any traceback.
[X] Verifiable example — the example copy & pastes into an IPython prompt or Binder notebook, returning the result.
[X] New issue — a search of GitHub Issues suggests this is not a duplicate.

Relevant log output
No response
Anything else we need to know?
 Instead it associates all coordinate variables when set(coordinate_variable.dims) <= set(data_variable.dims). This is satisfied by all scalar coordinates so they get associated.
cf-xarray is more restrictive, and should work for you.

Thanks for your answer and suggestion,
Best


state after doing aux-variable regridding

Reported by ansley b manke on 7 Jul 2015 22:00 UTC
In the benchmarks,
yes? go bn_auxiliary
yes? go bn_reset
yes? go bn_plot
...
set view ul6
plot/l=1:50/k=1/trans/nolabel a,b,c
At line 89 of file get_auto_aux_vars.F
Fortran runtime error: Array reference out of bounds for array 'uvar_aux_var', lower bound of dimension 3 exceeded (-999 < 0)

This variable just needs to be reinitialized on a "cancel variable".
Migrated-From: http://dunkel.pmel.noaa.gov/trac/ferret/ticket/2308

Comment by ansley.b.manke on 8 Jul 2015 00:01 UTC
Ferret.parm has a set of "paux_stat" parameters.  Define another one,
paux_stat_init = 0
and in delete_user_var_sub.F, set the value of  uvar_aux_stat(uvar,i) to paux_stat_init


Handle API error for timeseries

Partially fixes #4188
This checks for error in the timeseries data store and propagates that to the TDD table.
We do not currently check for error on the individual timeseries API which is called for each row of the TDD table. Since we are planning to move away from individual timeseries API to a batch aggregation API, will add the error handling directly there.

To check this out, I manually set {#if $timeDimensionDataStore?.isError} to {#if true}. I see this:

Looks like a bug with the TDD table below the error message. I'm not sure if this case would ever happen in reality, but looks like an "else if" statement could be safer.


fix(instruction): modelName should be PascalCase and modelReference s…

Hey ! 👋🏻
The latest fix to use PascalCase for the modelName corrected the wrong value.
The modelReference should be camelCased.

Wonderful 👍


Support UIViewController with xib?

In ios8 ViewController with xib oulets is nil if invoke init method..
http://stackoverflow.com/questions/34589922/iboutlets-are-nil-on-ios-8-devices-but-work-fine-on-ios-9-swift

Mmmh could be a very simple addition to do indeed. Care to do a Pull Request?
I think it should be as easy as adding something similar to:
protocol NIBBased {
  static var nibName: String { get }
}

extension NIBBased {
  static var nibName: String {
    return String(describing: self), bundle: )
  }
}

extension NIBBased where Self: UIViewController {
  static func instantiate() -> Self {
    return Self.init(nibName: self.nibName, bundle: Bundle(for: self))
  }
}

documentation and tests 😉
Would be a great contribution :)

Yep, closed any time.

Has this feature been implemented yet? It doesn't seem like.

Nope, I don't think anyone has found the time to implement that yet indeed 😅

Hi @AliSoftware ,
I believe this issue is resolved in pull request #82

Should be once merged indeed, thanks for the PR 👍 just took a look and commented there 🙂

Just realized that all this functionality is already handled for us by Apple: when you call init on a UIViewController, it forwards it to the designated init(nibName:bundle:) with nil parameters… and when nibName is nil, iOS automatically searches for a XIB of the same name as the class and use it if it finds one!
See also https://github.com/AliSoftware/Reusable/pull/82#pullrequestreview-229061965
That means that given a class CustomViewController: UIViewController { … } if you also have a CustomViewController.xib file in your bundle then using let vc = CustomViewController() will automatically use the XIB for loading the VC without yo needing to specify anything.
Hence I'm gonna close this issue since… there's no need for Reusable here, this is behavior provided by iOS for UIViewControllers already 😉


Fixed : #29 Multiple playlists added

Fixed #29 Uptill now I have implemented done the following:

Changed the cached variables.
Added the dropdown and playlist selection handlers.

@udiboy1209 can u please review my PR

@udiboy1209 thanks a lot for pointing out these. I had made these changes mostly to know ur review as soon as possible so that I may proceed accordingly. I will make the changes asap. Also even i want to make the playlist name customizable to the user. But I will make that commit a little later. I wanted to see that I am going in the right dirn or not and also I did check the code. It was running well. There were some parts which I was not sure of. But I havent received much of the help from the gitter chats as well. Thats why I was a bit struck :\ and cudnt quite test all the changes :\ .

@udiboy1209 I have made the changes please see them now. I think everything should be fine now. I will also make the playlist names customizable by giving a different PR.

Seems like this PR has been abandoned, so I'm closing this.


Add std::net::http::schedule_request function

Does optional allow passing in an empty set explicitly?
Scott Trinh @.***>于2024年10月4日 周五下午1:58写道：

@.**** commented on this pull request.
In edb/lib/net.edgeql
https://github.com/edgedb/edgedb/pull/7831#discussion_r1788096696:

@@ -71,12 +71,21 @@ ALTER TYPE std::net::http::Response {
CREATE FUNCTION
std::net::http::schedule_request(
url: str,

named only body: optional std::bytes,
named only method: std::net::http::Method = std::net::http::Method.GET,
named only headers: optional std::array<std::tuple<name: std::str, value: std::str>>,
-) -> std::int16

named only body: optional std::bytes = std::bytes{},
named only method: optional std::net::http::Method = std::net::http::Method.GET,

I assume having a default here means the inferred cardinality for this
argument is one?
—
Reply to this email directly, view it on GitHub
https://github.com/edgedb/edgedb/pull/7831#discussion_r1788096696, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AANLUMPBUSICJ4BSLZ4IH5DZZ3JNBAVCNFSM6AAAAABPMJJ75OVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDGNBYG44DMNBRGY
.
You are receiving this because your review was requested.Message ID:
@.***>

Yeah, I need to add reference docs for the net module, so I'll do that, but I'll do it in a separate PR if that's alright.

Sure

cc @1st1
Super quick wip draft for the basic docs: https://github.com/edgedb/edgedb/pull/7833
Not ready, but wanted to link here for posterity.


[DOCUMENTATION] - SQL Database - Config

Environment
This section of the database docs seems to include a few errors:
export default defineNitroConfig({
  database: {
    default: {
      driver: 'sqlite3',
      options: { name: "db" }
    },
    users: {
      driver: 'postgresql',
      url: "postgresql://username:password@hostname:port/database_name"
    }
  }
})

driver should be connector
sqlite3 should be sqlite (using the better-sqlite3 library)

Reproduction
Link to docs page: https://nitro.unjs.io/guide/database
Describe the bug
Minor config issues in docs.
Additional context
No response
Logs
No response

Do you mind to make a PR to fix? 🙏🏼


[Cosmos] HTTP/2 prep work

This PR aims at making changes to the SDK that will be required for it to work alongside http/2 protocols.

API change check
API changes are not detected in this pull request.

/azp run python - cosmos - ci