test: #2 structure generator

README description
Synopsis
The human body contains a countless variety and diversity of cell types, states, and interactions. We wish to understand these tissues and the cell types at much deeper level. Single-cell RNA-seq (scRNA-seq) offers a look into what genes are being expressed at the level of individual cells. Overall this method allows one to identify cell types, find rare or unidentified cell types or states, identify genes that are differently expressed in different cell types, and explore changes in expression whilst including spatial, regulatory, and protein interactions.
We hope that others would find use for this transcript_structure generator that allows one to take input gtf-files of specific gene transcripts and outputs a gtf-file containing intron/exon structures per input transcript. Moreover, one can specify a probability for intron-inclusion which is used to simulate incorrect splicing.
Installation
To install package, run
pip install "setuptools>=62.1.0"
pip install .

Usage
Input:

csv-formatted file ("ID,Count") with counts for individual transcripts
probability of intron inclusion (float in range [0,1])
gtf-formatted file with exon coordinates of the transcripts included in the csv file

Output:

gtf-formatted file containing generated intron/exon structures per transcript
csv-formatted file ("NewTranscriptID,ID,Count") with

id of generated transcript
id of original transcript (without intron inclusions)
count

To generate the sampled transcripts, run
transcript-structure-generator --prob-inclusion <probability_inclusion> [--log "INFO"] <transcripts_file> <annotations_file>

where the transcripts file should be csv-formatted, the annotation file gtf-formatted and the inclusion probability for introns a float in the range [0,1]. The log parameter is optional and can be one of ["CRITICAL", "ERROR", "WARNING", "INFO", "DEBUG"]. The default is INFO.
Sample Transcripts and Annotation files can be found in the repository under main/tests/resources.
Original issue description
https://git.scicore.unibas.ch/zavolan_group/pipelines/scrna-seq-simulation/-/issues/2
Generate transcript structures
Given a number transcripts to be sampled from each of a set of genes, generate their intron-exon structures and counts, allowing for some of the introns to be included in the transcripts.
Input:

Csv-formatted file ("ID,Count") with counts for individual transcripts.
Probability of an intron inclusion.
gtf-formatted file with the intron/exon coordinates of the transcripts represented in the count file.

Output:

Gtf-formatted file containing the unique intron/exon structures that have been generated.
Csv-formatted file ("NewTranscriptID,ID,Count") with the ID of the parent transcript (that did not have any intron inclusions) and then copy number of each unique transcript structure.

The structure of each transcript should be generated individually, using the same exons as there are in the input transcript, but allowing for the possibility of intron inclusion. This is done by walking along the introns implied by the intron/exon structure of the transcript and deciding whether to include them, with the specified probability for each intron. If an intron is selected as included, a new exon will be created, covering the selected intron and the exons preceding and succeeding it. The exon/intron structures of all transcripts will be written to a new gtf file, and the number of times each unique transcript form was generated is written to a new csv-formatted file.
Pipeline overview description
https://git.scicore.unibas.ch/zavolan_group/pipelines/scrna-seq-simulation
Generate the exon/intron structure for each transcript. For each gene there is a reference set of exons (specified in input #3), but to account for the possibility that the transcript is not completely processed, introns are included in individual transcripts. This is done by going through all the possible introns of a transcript and choosing which ones to include (according to input #9). Then the generated structures are written to a gtf file (because new exons are effectively generated which look like exon_n;intron_n;exon_n+1) and the number of transcripts with each unique structure is also saved.
Project design plan
https://git.scicore.unibas.ch/zavolan_group/tools/transcript-structure-generator/-/issues/1
For each representative transcript, iterate through transcript, identify extrons and introns and if current position contains intron, generate random number between 0 and 1. Keep intron if random number < user defined threshold, else discard. Save reduced transcript.
Input:

Csv-formatted file ("ID,Count") with counts for individual transcripts
Probability of intron inclusion
gtf-formatted file with exon coordinates of the transcript included in the csv file

Question: how to find out possible introns per transcript from gtf file?

Output:

gtf-formatted file containing generated intron/exon structures
csv-formatted file ("NewTranscriptID,ID,Count") with

id of generated transcript
id of original transcript (without intron inclusions)
count

Read representative transcript numbers, generate sampled transcript numbers by using input as definition of distribution and generating discrete random variables from distribution (e.g. scipy.stats.rv_discrete). Save generated numbers as number of transcripts with each unique structure in new csv-formatted file.
The main challenge here is to properly compute and write out the exons that result from intron inclusion. It will be helpful for the transcript and exon names to be interpretable rather than random numbers.
Please also include input error-checking and appropriate tests (e.g. think of limit cases, e.g. probability of intron inclusion being 0 or 1, single exon genes etc.)

check #18


Clean up “StatefulSet Basics” tutorial

Revise StatefulSet Basics [preview]

tidy whitespace
fix Markdown
separate commands from their output
don't highlight sample output as if it were Bourne shell code
add note shortcodes where appropriate
update link targets
miscellaneous other tidying

There was one note shortcode that didn't play well with Hugo 0.60.x
I've edited it turning a multiline code block into a oneliner in backticks. At some point I hope we fix the note shortcode so we can reinstate the original, more readable note.
/kind cleanup

another
/lgtm
/approve


Extra comma being added after migration

Hi after running: rxjs-5-to-6-migrate -p ./tsconfig.json there seems to be a problem with some of my observable definitions as a comma (,) is being added at the end of the chain.
Please see some examples below:
BEFORE
 return this.httpService
      .patch(url, body)
      .do((response: any) => {
        // do stuff
      })
      .catch(e => this.isError409(e));

AFTER
    return this.httpService
      .patch(url, body).pipe(
      tap((response: any) => {
       // do stuff
      }),
      catchError(e => this.isError409(e)),);

As you can see at the catchError line a , was added.
Another example is here:
BEFORE
  click$ = Observable.defer(() => Observable.fromEvent(this.ele.nativeElement, 'click'))
    .takeUntil(this.destroy$)
    .publish();

AFTER
  click$ = observableDefer(() => observableFromEvent(this.ele.nativeElement, 'click')).pipe(
    takeUntil(this.destroy$),
    publish(),);

Is this expected?
Is there a CLI flag that i might have missed?
Thank you.

Hey @ndcunningham, thanks for giving the tool a try! I'm happy you were able to migrate your app. The trailing comma is not an invalid syntax. As we've recommended in readme, after you run the migration tool, you can format your code with prettier or clang-format to make sure everything aligns with your coding style.


Implement deref

Thanks, this makes sense. It's not our goal to replace Cow, but we want all kinds of conditional trait impls that can be useful with Either.

Published in 0.1.1


Fighting-type color is wrong

Currently, both Fire and Fighting use an orange color in moves.

However, in-game, the Fighting type is represented with a reddish brown color.

This bug makes it hard to differentiate between the two at a glance, defeating the purpose of syntax-highlighting moves (and Pokémon) by type.

Ok, I don't know how that happened! You're right that the colour is wrong, I meant to use #C03028 for fighting.

@MandL27 You should be able to see the new colour, although you might have to force reload / clear cache to get it to appear. (Example paste.)

Yep, it's fixed. Thanks.


Encoding Error

Unhandled Exception: 'charmap' codec can't encode character '\u03c0'
Unhandled Exception: 'charmap' codec can't encode character '\u2192'
Book ID :<PHONE_NUMBER>

Thanks for the issue, now is fixed.
Pull the program and try to download the book again.
:+1:

Great, Thank you.


completionHandler get call more than once

In AFHTTPSessionManager.m line 277 in following method getting called more than once with same response. any Idea how to fix it ?
dataTask = [self dataTaskWithRequest:request
uploadProgress:uploadProgress
downloadProgress:downloadProgress
completionHandler:^(NSURLResponse * __unused response, id responseObject, NSError *error) {
// HERE GETTING CALLED MORE THAN ONCE
}

Could you post an example demonstrating this behavior?

I have a sharedInstant by subclassing AFHTTPSessionManager. I use following lines for initialise
_sharedClient = [[AppClient alloc] initWithBaseURL:[NSURL URLWithString:@"URL"];
_sharedClient.securityPolicy = [AFSecurityPolicy policyWithPinningMode:AFSSLPinningModeNone];
_sharedClient.requestSerializer = [AFJSONRequestSerializer serializer];
[_sharedClient.requestSerializer setTimeoutInterval:25];
then for request I use as follows,
[[MySharedInstant sharedClient] POST:@"/api/register" parameters:params progress:nil success:^(NSURLSessionDataTask *__unused task, id JSON) {
if (JSON) {
if (JSON[@"error"]) {
block([NSArray array], apiError);
} else if (JSON[@"success"]) {
NSMutableDictionary *dic = [[NSMutableDictionary alloc] initWithDictionary:[JSON valueForKeyPath:@"success"]];
NSError *insertError = nil;
User *user = [[User alloc] initWithDictionary:dic error:&insertError];
if ([user updateDetails]) {
if (block) {
block(@[user], nil);
}
} else {
block([NSArray array], insertError);
}
}
}
} failure:^(NSURLSessionDataTask *__unused task, NSError *error) {
if (block) {
block([NSArray array], error);
}
}];
Problem is instead on one response I get more than one response. hope this will help

@kcharwood sorry it was my fault. location manager get updated more than once. thats was the issue. thanks for your concern.


Text box filter on Protein Family Sorter doesn't work

I enter the PLFam IDs, and nothing happens when I click filter.  Here is the error code that I see:
dojo.js.uncompressed.js:324 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
s.getText @ dojo.js.uncompressed.js:324
protein_family_sorter_input_form.png:1 Failed to load resource: the server responded with a status of 404 (Not Found)
services_menu.png:1 Failed to load resource: the server responded with a status of 404 (Not Found)
2core.js.uncompressed.js:89459 Uncaught TypeError: Cannot read property 'toLowerCase' of undefined
at eval (core.js.uncompressed.js:89459)
at Array.some ()
at Object.eval (core.js.uncompressed.js:89458)
at Object.forEach (dojo.js.uncompressed.js:3767)
at eval (core.js.uncompressed.js:1178)
at dojo.js.uncompressed.js:9382
at Array.h.(/view/GenomeList/anonymous function) [as forEach] (/js/3.5.20/p3/layer/core.js:31:245)
at Object.conditionFilter (core.js.uncompressed.js:89439)
at Object.eval (core.js.uncompressed.js:89407)
at e. (dojo.js.uncompressed.js:3288)
68p3.theseed.org/services/Workspace:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error)
2core.js.uncompressed.js:89459 Uncaught TypeError: Cannot read property 'toLowerCase' of undefined
at eval (core.js.uncompressed.js:89459)
at Array.some ()
at Object.eval (core.js.uncompressed.js:89458)
at Object.forEach (dojo.js.uncompressed.js:3767)
at eval (core.js.uncompressed.js:1178)
at dojo.js.uncompressed.js:9382
at Array.h.(/view/GenomeList/anonymous function) [as forEach] (/js/3.5.20/p3/layer/core.js:31:245)
at Object.conditionFilter (core.js.uncompressed.js:89439)
at Object.eval (core.js.uncompressed.js:89407)
at e. (dojo.js.uncompressed.js:3288)

'''core.js.uncompressed.js:89459 Uncaught TypeError: Cannot read property 'toLowerCase' of undefined'''
Was this during the function update?

Yes, she ran it on the weekend when function update was in progress.
Do you think it is related to the function update, probably missing protein family or descriptions in family_ref?
-Maulik

On Jul 30, 2018, at 11:37 AM, hyoo<EMAIL_ADDRESS>wrote:
'''core.js.uncompressed.js:89459 Uncaught TypeError: Cannot read property 'toLowerCase' of undefined'''
Was this during the function update?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/PATRIC3/patric3_website/issues/2056#issuecomment-408928201, or mute the thread https://github.com/notifications/unsubscribe-auth/ABLd70IfHc0zfZooKTZdZ1iRNg5XqIBLks5uLzYugaJpZM4VlH7a.

if she can provide more detail,

how many genomes, and what genomes are selected
what are the plfam id she was trying to search,

then I can try and see whether it fails again, or confirm whether that was due to data or something else.

I tried and it seems to be fixed now.


Content-Type is automatically set when connecting with Protobuf

Describe the bug
Even if setting Content-Type in the @Headers annotation, if the payload conforms to GeneratedMessage, it will be automatically set to application/x-protobuf.
To Reproduce
Generates Protobuf request.
@POST('/path/to/endpoint')
@Headers({'Content-Type': 'application/proto'})
Future<void> postMessage({
  @Body() Params message,
});

Expected behavior
It should not be automatically set to application/x-protobuf.
Additional context
We are using Connect for our server. This framework provides REST and RPC, and when making REST requests with Protobuf, it requires setting the Content-Type to application/proto. Retrofit will automatically set it to application/x-protobuf if the payload inherits to GeneratedMessage. Is there a way to not set this value automatically or to change it to application/proto?
The specification of Content-Type of Connect is here.
Thanks.

I have a similar scenario. My server uses protobuf to define APIs and shares the protobuf files with me, but we actually convert the proto messages to JSON for communication. However, the current Retrofit always treats the structure as a proto message (GeneratedMessage) for processing.


Machine mac-7 lost connection from the external iPhone device.

Machine mac-7 lost connection from the external iPhone device.

External connection has been restored by rebooting machine to fix issue.


Remove /examples from the Numba repo.

This removes:

/examples (is going to live in numba-examples)
/benchmarks (not sure it's needed)
/tutorials (dated)

Then moves code from /examples that's set to be inlined into the docs in to unittests under numba/tests/doc_examples (refs in docs are fixed). These are true unittests and are run as part of the test suite, it makes sure the more involved doc examples actually work with the code base.
Fixes #5605

@esc could you take a look at this please? Thanks.

To review this I did the following:
a) check that the docs compile w/o error. This indicates that all files have been moved correctly, as a missing file would have caused an error with sphinx (I checked that too).
b) read the changes carefully and found only one minor typo
c) ran the tests and can confirm they all pass. I tried deliberately breaking them and that worked too.
The only other thing I noticed was that the following file has the execute bit set, not sure if that is needed as the other ones don't have it:
numba/tests/doc_examples/test_examples.py

Thanks for doing that. Typo is fixed. Expect the execute bit came from the original file I copied in from /examples, I've made it 0o0664 now.

@sklam are you happy with these changes?

Thanks for the review @esc

Thanks for doing this much needed repo cleanup.
Before we merge, we should at least have a open PR in numba-examples repo that we can point folks to.

Thanks for doing this much needed repo cleanup.

No problem.

Before we merge, we should at least have a open PR in numba-examples repo that we can point folks to.

Done: https://github.com/numba/numba-examples/pull/17


Dismissed reviews displayed incorrectly

Browse CovertJaguar/Railcraft#486 on Forkhub and you will find my dismiss of my review displayed only with my username and the date.

Thanks!


Upgrade phoenix and jose

Phoenix so we can use it in projects that use phoenix 1.2 w/o override and jose so we can build it with recent elixir/erlang versions

@aaronjensen doesn't look like Jose was updated in your changes.

We should also consider bumping the Elixir version to 1.2: https://github.com/ueberauth/guardian/blob/master/mix.exs#L18

@doomspork I had only updated in the mix.Iock. I updated it in the mix.exs as well and bumped phoenix.

Looks like we'll need to update the TravisCI configuration for this too.  Sorry for the back-and-forth @aaronjensen, would you be willing to make a change to .travis.yml?
This will drop testing for Elixir 1.1 and OTP 17.
language: elixir
elixir:
  - 1.2.5
  - 1.3.4
otp_release:
  - 18.3
  - 19.0
env: MIX_ENV=test
sudo: false # faster builds
notifications:
  email: false
script:
  - mix compile --warnings-as-errors
  - mix test
  - mix credo

@doomspork sure thing, how's that?

It looks like Elixir 1.2.5 and OTP 19 don't work well together. Want me to remove the old elixir? I think there's a travis syntax for more specific matrixing but I don't know it off the top of my head.

@aaronjensen after playing with it a bit tonight, I believe this is what we need:
language: elixir
matrix:
  include:
    - otp_release: 18.3
      elixir: 1.3.2
    - otp_release: 19.0
      elixir: 1.3.2
sudo: false
script:
  - mix test

I added elixir 1.2 in there as well, let's see how it goes.

@aaronjensen I think we can safely drop 1.2 in favor of 1.3 now that 1.4 is preparing to ship.  I've gone ahead and updated the rest of the projects within the Ueberauth organization.

Sounds good, updated.

@aaronjensen I pulled your branch, updated the .travis.yml and targeted 1.3, and pushed to master.  Thanks again 👍
I've released a new version as well.


Circular import error - rocm-ci-6.1

Description
I install cupy from source with branch  rocm-ci-6.1, encountered circular import when I import cupy:
Traceback (most recent call last):
  File "/home/ubuntu/eliran/ai/cupy/cupy/__init__.py", line 16, in <module>
    from cupy import _core  # NOQA
  File "/home/ubuntu/eliran/ai/cupy/cupy/_core/__init__.py", line 3, in <module>
    from cupy._core import core  # NOQA
ImportError: cannot import name 'core' from partially initialized module 'cupy._core' (most likely due to a circular import) (/home/ubuntu/eliran/ai/cupy/cupy/_core/__init__.py)

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

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/ubuntu/eliran/ai/cupy/cupy/__init__.py", line 18, in <module>
    raise ImportError(f'''
ImportError:
================================================================
Failed to import CuPy.

If you installed CuPy via wheels (cupy-cudaXXX or cupy-rocm-X-X), make sure that the package matches with the version of CUDA or ROCm installed.

On Linux, you may need to set LD_LIBRARY_PATH environment variable depending on how you installed CUDA/ROCm.
On Windows, try setting CUDA_PATH environment variable.

Check the Installation Guide for details:
  https://docs.cupy.dev/en/latest/install.html

Original error:
  ImportError: cannot import name 'core' from partially initialized module 'cupy._core' (most likely due to a circular import) (/home/ubuntu/eliran/ai/cupy/cupy/_core/__init__.py)
================================================================

To Reproduce
git clone https://github.com/cupy/cupy.git
cd cupy
git checkout rocm-ci-6.1
git submodule update --init
pip install git+https://github.com/ROCmSoftwarePlatform/hipify_torch.git
pip install .
python3 -c "import cupy"

Installation
Built from GitHub source
Environment
Unable to import cupy due to circular import error
Additional Information
I run ROCm 6.1.3 with dual AMD RX 7900 XTX, setup notes at:
https://github.com/eliranwong/MultiAMDGPU_AIDev_Ubuntu

I solved this issue by replacing the libstdc++.so.6 library.
1.Backed up libstdc++.so.6 in the Anaconda environment.
cp /home/'XXX'/anaconda3/envs/'XXX'/lib/libstdc++.so.6 /home/'XXX'/anaconda3/envs/'XXX'/lib/libstdc++.so.6.back
2.Copied the libstdc++.so.6 from the AMD GPU library to the Anaconda environment.
cp /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /home/'XXX'/anaconda3/envs/'XXX'/lib/libstdc++.so.6
Then it's OK.

I solved this issue by replacing the libstdc++.so.6 library.
1.Backed up libstdc++.so.6 in the Anaconda environment.
cp /home/'XXX'/anaconda3/envs/'XXX'/lib/libstdc++.so.6 /home/'XXX'/anaconda3/envs/'XXX'/lib/libstdc++.so.6.back
2.Copied the libstdc++.so.6 from the AMD GPU library to the Anaconda environment.
cp /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /home/'XXX'/anaconda3/envs/'XXX'/lib/libstdc++.so.6
Then it's OK.

and perhaps   export ROCM_HOME=/opt/rocm

Anaconda environment

I am not using Anaconda environment.

ROCM_HOME=/opt/rocm
Also 7900xtx with ROCm 6.1.3

I already
exported ROCM_HOME=/opt/rocm
I also use 7900xtx with ROCm 6.1.3

ROCM_HOME=/opt/rocm
Also 7900xtx with ROCm 6.1.3

I already
exported ROCM_HOME=/opt/rocm
I also use 7900xtx with ROCm 6.1.3

I suspect that the issue might be due to a mismatch between the ROCm libstdc++.so.6 library and your Python environment. You can try replacing it to see if that resolves the problem. I encountered the same error initially in my Anaconda environment. Locate the libstdc++.so.6 library in your system may help you. Wish you good luck,

Issue solved, my bad.  I forget to install pytorch in the same environment, so  import cupy results in error.
This solution work with ROCM 6.1.3:

Setup venv:

python3 -m venv testcupy
source testcupy/bin/activate
pip install --upgrade pip wheel setuptools

Install pytorch+rocm6.1.3:

wget https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1.3/torch-2.1.2%2Brocm6.1.3-cp310-cp310-linux_x86_64.whl
wget https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1.3/torchvision-0.16.1%2Brocm6.1.3-cp310-cp310-linux_x86_64.whl
wget https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1.3/pytorch_triton_rocm-2.1.0%2Brocm<IP_ADDRESS>d510c3a44-cp310-cp310-linux_x86_64.whl
pip3 install torch-2.1.2+rocm6.1.3-cp310-cp310-linux_x86_64.whl torchvision-0.16.1+rocm6.1.3-cp310-cp310-linux_x86_64.whl pytorch_triton_rocm-2.1.0+rocm<IP_ADDRESS>d510c3a44-cp310-cp310-linux_x86_64.whl

Install cupy from source:

export CUPY_INSTALL_USE_HIP=1
export ROCM_HOME=/opt/rocm
export HCC_AMDGPU_TARGET=gfx1100

git clone https://github.com/cupy/cupy.git
cd cupy
git checkout rocm-ci-6.1
git submodule update --init
pip install git+https://github.com/ROCmSoftwarePlatform/hipify_torch.git
pip install .

Verify:

python3 -c "import cupy; print(cupy.__version__)"

Output:
14.0.0a0

Issue solved, my bad.  I forget to install pytorch in the same environment, so  import cupy results in error.
This solution work with ROCM 6.1.3:

Setup venv:

python3 -m venv testcupy
source testcupy/bin/activate
pip install --upgrade pip wheel setuptools

Install pytorch+rocm6.1.3:

wget https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1.3/torch-2.1.2%2Brocm6.1.3-cp310-cp310-linux_x86_64.whl
wget https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1.3/torchvision-0.16.1%2Brocm6.1.3-cp310-cp310-linux_x86_64.whl
wget https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1.3/pytorch_triton_rocm-2.1.0%2Brocm<IP_ADDRESS>d510c3a44-cp310-cp310-linux_x86_64.whl
pip3 install torch-2.1.2+rocm6.1.3-cp310-cp310-linux_x86_64.whl torchvision-0.16.1+rocm6.1.3-cp310-cp310-linux_x86_64.whl pytorch_triton_rocm-2.1.0+rocm<IP_ADDRESS>d510c3a44-cp310-cp310-linux_x86_64.whl

Install cupy from source:

export CUPY_INSTALL_USE_HIP=1
export ROCM_HOME=/opt/rocm
export HCC_AMDGPU_TARGET=gfx1100

git clone https://github.com/cupy/cupy.git
cd cupy
git checkout rocm-ci-6.1
git submodule update --init
pip install git+https://github.com/ROCmSoftwarePlatform/hipify_torch.git
pip install .

Verify:

python3 -c "import cupy; print(cupy.__version__)"

Output:
14.0.0a0

Hahaha, It's good to hear that the issue has been resolved. Great job for your detailed record!

ROCM_HOME=/opt/rocm
Also 7900xtx with ROCm 6.1.3

I already
exported ROCM_HOME=/opt/rocm
I also use 7900xtx with ROCm 6.1.3

I suspect that the issue might be due to a mismatch between the ROCm libstdc++.so.6 library and your Python environment. You can try replacing it to see if that resolves the problem. I encountered the same error initially in my Anaconda environment. Locate the libstdc++.so.6 library in your system may help you. Wish you good luck,

That should be the issue with my Anaconda environment. Stable PyTorch 2.3.1 for ROCm 6.0 from the official installation recommendation.


Setup errors

First of all this is a pretty great integration, thank you very much Gazoodle!  I am seeing my spa in Home Assistant and can control the heater, blower and lights!  My issue is I have no control over the jet pumps and am posting my error logs in hopes of someone being able to help.  My particular spa is a Hydropool Spa with 2 jet pumps.  Pump #1 has 2 settings, hi and low we'll call them, and pump #2 is either on or off.  I'm not very savvy when it comes to Home Assistant but I can follow directions and tutorials fairly well, any help is greatly appreciated!!  Thanks!!
2022-04-15 11:15:29 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration gecko which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-04-15 11:15:32 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //config/home-assistant_v2.db was shutdown cleanly
2022-04-15 11:16:03 ERROR (MainThread) [homeassistant.setup] Setup failed for button: Integration not found.
2022-04-15 11:16:03 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry My Spa for fan
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 293, in async_setup
result = await component.async_setup_entry(hass, self) # type: ignore
File "/usr/src/homeassistant/homeassistant/components/fan/init.py", line 209, in async_setup_entry
return await hass.data[DOMAIN].async_setup_entry(entry)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 149, in async_setup_entry
platform = await async_prepare_setup_platform(
File "/usr/src/homeassistant/homeassistant/setup.py", line 328, in async_prepare_setup_platform
platform = integration.get_platform(domain)
File "/usr/src/homeassistant/homeassistant/loader.py", line 498, in get_platform
cache[full_name] = self._import_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 503, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
File "/usr/local/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 779, in exec_module
File "", line 916, in get_code
File "", line 846, in source_to_code
File "", line 219, in _call_with_frames_removed
File "/config/custom_components/gecko/fan.py", line 1
Fan platform for Gecko.
^
SyntaxError: invalid syntax
2022-04-15 11:16:03 WARNING (MainThread) [geckolib.driver.protocol.unhandled] No handler for b'RMREQ\x01\x00\x00\x01\x02\x1e\x00\x01\x03<\x00\x01\x04b\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' from ('<IP_ADDRESS>', 10022, b'SPA80:1f:12:65:f3:28', b'IOS7aca5272-9d53-4c96-b43d-df43cc457e34') found, message ignored

Lets get some diags.
Open a command prompt/terminal session
$ pip install geckolib
 :
$ python3
Python 3.8.10 (default, Mar 15 2022, 12:22:08)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>from geckolib import GeckoShell
>>>GeckoShell.run()
 :
Connecting to spa `Spa` at 10.x.x.x ... connected!

Smart Winter Mode:Risk: NO
Circulating Pump: OFF
Ozone: OFF
Smart Winter Mode:Active: False
Filter Status:Clean: False
Filter Status:Purge: False
Economy Mode: False
Spa$

You should be connected to your spa now, so take a snapshot now
spa$ snapshot After connection

Turn on one of your pumps either from the spa panel, or the Gecko app
spa$ refresh
spa$ snapshot Pump on
spa$ exit

Then find the file client.log and email it to gazoodle at hash dot fyi
Thanks.

Hi, thanks so much for your reply!  This is about as far as I get.  I neglected to mention that I’m running Home Assistant in a Docker container on a Synology DS916+ NAS, not sure if that changes things but after SSHing into my NAS and trying your first command I get the command not found error. Again, sorry, I’m not very knowledgeable with this stuff so I’m at a loss when I run into problems such as this. Your help is very much appreciated, thank you!
Mike
Sent from my iPhone.

On Apr 18, 2022, at 4:22 AM, gazoodle @.***> wrote:

Lets get some diags.
Open a command prompt/terminal session
$ pip install geckolib
:
$ python3
Python 3.8.10 (default, Mar 15 2022, 12:22:08)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

from geckolib import GeckoShell
GeckoShell.run()
:
Connecting to spa Spa at 10.x.x.x ... connected!

Smart Winter Mode:Risk: NO
Circulating Pump: OFF
Ozone: OFF
Smart Winter Mode:Active: False
Filter Status:Clean: False
Filter Status:Purge: False
Economy Mode: False
Spa$
You should be connected to your spa now, so take a snapshot now

spa$ snapshot After connection
Turn on one of your pumps either from the spa panel, or the Gecko app
spa$ refresh
spa$ snapshot Pump on
spa$ exit
Then find the file client.log and email it to gazoodle at hash dot fyi
Thanks.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.

Hi again, I did some researching and figured out how to do what you wanted me to.  I followed all the steps you asked me to and everything seems to have worked as it should have. My only issue now is finding and retrieving the darn client.log file.  I can’t, for the life of me, find it.  Any help in finding it and copying it to a location where I can view it and get it to you would be awesome, again, thank you very much!
Mike
Sent from my iPhone.

On Apr 18, 2022, at 10:06 PM, Mike @.***> wrote:

Hi, thanks so much for your reply!  This is about as far as I get.  I neglected to mention that I’m running Home Assistant in a Docker container on a Synology DS916+ NAS, not sure if that changes things but after SSHing into my NAS and trying your first command I get the command not found error. Again, sorry, I’m not very knowledgeable with this stuff so I’m at a loss when I run into problems such as this. Your help is very much appreciated, thank you!
Mike
Sent from my iPhone.

On Apr 18, 2022, at 4:22 AM, gazoodle @.***> wrote:

Lets get some diags.
Open a command prompt/terminal session
$ pip install geckolib
:
$ python3
Python 3.8.10 (default, Mar 15 2022, 12:22:08)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

from geckolib import GeckoShell
GeckoShell.run()
:
Connecting to spa Spa at 10.x.x.x ... connected!

Smart Winter Mode:Risk: NO
Circulating Pump: OFF
Ozone: OFF
Smart Winter Mode:Active: False
Filter Status:Clean: False
Filter Status:Purge: False
Economy Mode: False
Spa$
You should be connected to your spa now, so take a snapshot now

spa$ snapshot After connection
Turn on one of your pumps either from the spa panel, or the Gecko app
spa$ refresh
spa$ snapshot Pump on
spa$ exit
Then find the file client.log and email it to gazoodle at hash dot fyi
Thanks.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.

Well done @Philzy10, kudos! I think I missed a command for you in my script which is probably why you don’t have a log file, I’m so sorry.
>>> GeckoShell.run(‘log file client.log’)
the log file will (or should) be in the folder you started the python session from.

Thanks Gazoodle!  I still can’t seem to get it to work properly. I tried doing it again the original way and can’t find the client.log file, not sure what I’m doing wrong, anyway, here’s a screenshot of what I’ve tried to do with your new command and I get a SyntaxError.....hope this helps, thanks again!
Sent from Mail for Windows
From: gazoodle
Sent: April 19, 2022 5:06 PM
To: gazoodle/gecko-home-assistant
Cc: Philzy10; Mention
Subject: Re: [gazoodle/gecko-home-assistant] Setup errors (Issue #54)
Well done @Philzy10, kudos! I think I missed a command for you in my script which is probably why you don’t have a log file, I’m so sorry.

GeckoShell.run(‘log file client.log’)
the log file will (or should) be in the folder you started the python session from.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

Sorry, I meant to send this screenshot with the last one, just showing that I am able to connect to my spa.
Sent from Mail for Windows
From: gazoodle
Sent: April 19, 2022 5:06 PM
To: gazoodle/gecko-home-assistant
Cc: Philzy10; Mention
Subject: Re: [gazoodle/gecko-home-assistant] Setup errors (Issue #54)
Well done @Philzy10, kudos! I think I missed a command for you in my script which is probably why you don’t have a log file, I’m so sorry.

GeckoShell.run(‘log file client.log’)
the log file will (or should) be in the folder you started the python session from.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

I should have dug up a previous example instead of trying to recall it off the top of my head …
from geckolib import GeckoShell
GeckoShell.run(["logfile client.log"])
 :
 :


LS throws IndexOutOfBoundsException for completions in a cyclic union

Description:

Steps to reproduce:
type Cloneable readonly|xml|Cloneable[]|<cursor>

Affected Versions:
SL Beta6

Possibly related to #29740

Possibly related to #29740

It seems the member types are empty. Isn't that illogical according to the spec? Union types should have non-empty list of members. We can check for the empty list and bypass the default behaviour from LS as a workaround as well. Before that shall we check whether what's the root cause?

Possibly related to #29740

It seems the member types are empty. Isn't that illogical according to the spec? Union types should have non-empty list of members. We can check for the empty list and bypass the default behaviour from LS as a workaround as well. Before that shall we check whether what's the root cause?

Had a look at this. The weird behaviour with regard to the empty union seems to be a bug in the compiler. Created #35297 to track this.


inject ACL restrictions into JPA query with sort / pageable

query methods with Sort or Pageable are not cached --> ACL restriction is not injected yet

should be easier to resolve with https://jira.spring.io/browse/DATAJPA-948


run a container without rexstracting it every time

Hi,
Is it possible to run the same container in parallel but extracting it one time?

solution found here https://github.com/indigo-dc/udocker/issues/142


controlcomponent - should this.mapService.getMap(this.mapidService) be this.mapService.getMap(this.mapidService.getId()) instead?

I am not 100% sure about this, but, as I am using your examples in this repo (a LOT actually, thanks!), I came across this line of code inside control.component.ts:
const map: OlMap = this.mapService.getMap(this.mapidService || this.mapId);

Shouldn't it be:
const map: OlMap = this.mapService.getMap(this.mapidService.getId() || this.mapId);

?
Anyway, big thanks for sharing this repo!!!

It can be both.
The getMap method tests id and get the id if it is a service (otherwise use it as id).

Totally right!
It's just that in my project I took out the auto id assignment.
thanks again for this neat repo.
closed.


Replace core-foundation and core-graphics

Message sending now requires types to implement Encode, which these crates don't do (yet, though maybe they will, see https://github.com/servo/core-foundation-rs/pull/628). Since these crates are used quite infrequently, and we'll probably want to use icrate later on anyhow, this PR replaces them.

This one makes sense to me, though I'm wondering if it doesn't make sense to batch all 3 of these PRs into one big PR and just merge that... I could be wrong but I think there's some things repeating across them (e.g *const Class to static changes). No idea if that'll make merging hell or not - though I'll defer to you given I don't want to ask for too much free work here. ;P

Don't worry about things being difficult to merge or not, I'll figure that out once https://github.com/ryanmcgrath/cacao/pull/30 is done (which is probably also why things are confusing rn; because that PR is "further ahead" than these).

Will do! Thanks!
On Mon, Aug 22, 2022 at 01:37, Mads Marquart @.***> wrote:

Don't worry about things being difficult to merge or not, I'll figure that out once #30 is done (which is probably also why things are confusing rn; because that PR is "further ahead" than these).
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.***>

I think this one was what I wanted to do after #30.
Note the change in API for Image::draw, which is unfortunate. It's not a strictly a needed change, but I wanted to avoid the direct dependency on core-graphics since it locks the public API to the specific version cacao depends on, and is used so little.

A few more notes:

NSRect and CGRect (and the others) are exactly equivalent, it's just that the version of objc2 that we're using here doesn't have the aliases defined for it.
NSSize currently restricts its input to be valid floating points; this turned out to be a bad idea, and I've removed that in a future version of objc2

Note the change in API for Image::draw, which is unfortunate. It's not a strictly a needed change, but I wanted to avoid the direct dependency on core-graphics since it locks the public API to the specific version cacao depends on, and is used so little.

Hmm, you're specifically referring to not needing CGContextRef? I see what you mean, though it is definitely unfortunate... but then again, if there were to be other spots that use CGContextRef, it might make sense to bite the bullet and at the very least feature-flag it.
How often does core-graphics change anyway? It might not be a big deal to have it as a dependency.


New payroll

#3433

After talking with @copiesofcopies, we're going to need to implement #3397 before we can start processing payroll for teams. Does this PR address that?

No, it doesn't.

Okay, let's work on landing this for next week.

Blocked on #3397.

Rebased on master.

Closing, #3495 is branched off of this.


Unable to load shared library 'cimgui'

I'm using ImGui .NET on macos (Visual studio, .NET core), I tried running my ImGui code and I get this error:

Has anyone experienced a similar issue and is able to help?  I'm kinda new to this
Thanks

I'm using ImGui .NET on macos (Visual studio, .NET core), I tried running my ImGui code and I get this error:

Has anyone experienced a similar issue and is able to help? I'm kinda new to this
Thanks

https://github.com/mellinoe/ImGui.NET/issues/350. maybe this helps you? it did not for me sadly...


Autocomplete not working

i get this warning and nothing happen
"W/BaseAppContext: Using Auth Proxy for data requests."

This sample has been deprecated/archived (check README for more information on newer samples related to this technology).
As recommended by GitHub, we are closing all issues and pull requests.


[ISSUE  #1074]Optimize Shutdown

Which Issue(s) This PR Fixes(Closes)

Fixes #1074
Brief Description

How Did You Test This Change?

🚀Thanks for your contribution🎉. CodeRabbit(AI) will review your code first🔥


Auto generate the meaning title for the message use the AI

in the frontend/lib/tools/auto.ts
You can initiate a request to gpt-4o-mini to summarize user questions in parallel.
import { generateText } from 'ai';

const { text } = await generateText({
  model: yourModel,
  system:
    'You are a professional writer. ' +
    'You write simple, clear, and concise content.',
  prompt: `Summarize the following article in 3-5 sentences: ${article}`,
});

The summary title and answer can then be streamed back to the client
   await streamResponse({ sources: texts, title: title }, onStream);

Finally, when savingMessages, also pass in the AI generated title
      await saveMessages(userId, messages, fullAnswer, texts, images, videos, fullRelated);

Hi @ahaapple, Please assign me this issue. Thank you!

@krushnarout Thank you


ReferenceError: jsPDF is not defined

Hello,
I'm developping an app with ionic&AngularJS and I tried to include the library to my project but it always shows

ReferenceError: jsPDF is not defined

<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.3.4/jspdf.debug.js">
</script>
</head>
<body>
<ion-view view-title="{{vm.title}}" class="exlhoist-dashboard-view">
<ion-content      has-bouncing="true"      padding="true"      scroll="true">
 </ion-content>
</ion-view>
</body>

How can this codesnippet help us to debug this problem?

My problem is solved when I putted the

Please close the issue if it is solved.


Explain in the development guidelines how to write good docstrings

We should have a longer section in the development guidelines about docstrings. Some things that should be included:

Usage of examples (https://numpydoc.readthedocs.io/en/latest/format.html#examples)

:tada: This issue has been resolved in version 0.12.0 :tada:
The release is available on:

v0.12.0
GitHub release

Your semantic-release bot :package::rocket:


Add Baseball provider

Added Baseball provider under Sport package with issue #547

Codecov Report

Merging #548 (d080d3b) into main (062c0e1) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##               main     #548      +/-   ##
============================================
- Coverage     92.65%   92.64%   -0.01%
- Complexity     2368     2373       +5
============================================
  Files           247      248       +1
  Lines          4944     4951       +7
  Branches        530      530
============================================
+ Hits           4581     4587       +6
  Misses          241      241
- Partials        122      123       +1

Impacted Files
Coverage Δ

.../main/java/net/datafaker/service/files/EnFile.java
93.33% <ø> (ø)

...n/java/net/datafaker/providers/sport/Baseball.java
100.00% <100.00%> (ø)

.../net/datafaker/providers/sport/SportProviders.java
100.00% <100.00%> (ø)

.../java/net/datafaker/service/FakeValuesService.java
87.10% <0.00%> (-0.22%)
:arrow_down:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


WIP - route injection - do not merge

Signed-off-by: raffaelespazzoli<EMAIL_ADDRESS>
What this PR does / why we need it:
adds injection to openshift routes
adds ability to present certificates as keystores and javastores
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #1064
Special notes for your reviewer:
The following is missing:

registering the controllers to the cainjectior manager, need help with that
disabling the route injection controller if routes are not available need .1 first
verify where I added some needed constants (controller/util.go)
unit tests, I didn't have any in my code
documentation.

Release note:

adds injection to openshift routes
adds ability to present certificates as keystores and javastores

Thanks for putting this together 😄 I will take a look and do a proper review after we've got v0.11.1 and v0.12.0 out!
/ok-to-test

Hi @munnerz, I was hoping to get This PR going again.

It would be fantastic to see progress in this PR. Is there anything we can help with?

I am also willing to help get this merged

Closing in favour of #2840


creating desktop versions .exe versions

Hi ,
is there possibility of using the following package to get excutable application  in windows
https://www.pyinstaller.org/index.html

Hi @kalimuthu123 - the contributors to this project use Superset in a client/server scenario with a dedicated web server to deploy Superset to their organizations. Desktop installers are not on our roadmap at this time.


Is there a way to turn off gzip compression when deploying to AWS?

When using cactus deploy to deploy to AWS S3, the files are uploaded (and served by S3) with Content-Encoding: gzip, which is not compatible with some older browsers (see, e.g., Which browsers can handle 'Content-Encoding:'?). Is there a way to turn off gzip compression when deploying, to preserve compatibility with older browsers?

Since I don't know the answer to this question, my current (rather stupid) workaround is to run cactus deploy to deploy to AWS S3; then, using an S3 client, I delete all the files in the S3 bucket and re-upload all the files in the local .deploy folder, again using the S3 client.


Helpdesk is only available if a livestream-url is set

See OpenSlides/OpenSlides#6188

update:
https://github.com/OpenSlides/OpenSlides/pull/6202


Closes #60-Fix checkstyle issues

[Current coverage][cc-pull] is 79.78% (diff: 0.00%)

Merging [#67][cc-pull] into [develop][cc-base-branch] will not change coverage

@@            develop        #67   diff @@
==========================================
  Files            16         16
  Lines           277        277
  Methods           0          0
  Messages          0          0
  Branches         23         23
==========================================
  Hits            221        221
  Misses           47         47
  Partials          9          9

Powered by Codecov. Last update [d77a4fe...c5eb7c8][cc-compare]
[cc-base-branch]: https://codecov.io/gh/modernmaster/katas/branch/develop?src=pr
[cc-compare]: https://codecov.io/gh/modernmaster/katas/compare/d77a4fe13c2ee316cbebff0da06baeaacf747006...c5eb7c8bcedd968a1695bd05fcbead1798abfd47?src=pr
[cc-pull]: https://codecov.io/gh/modernmaster/katas/pull/67?src=pr


Bump dhcp client package

Problem:

The vendor github.com/insomniacslk/dhcp was old
Solution:

Bump to latest
Related Issue:
Partially related to https://github.com/harvester/harvester/issues/3428
Test plan:

create VM network
dhcp detect should be successful

@w13915984028 since it's a bug fix, do we want to backport it to v0.4.x (corresponds to Harvester v1.3). And we've cut another branch v0.5.x for Harvester v1.4 release, we need to backport this to v0.5.x branch, too.
cc @mingshuoqiu

@starbops I did not notice there are also branchs here.
Backport v0.5.x is required, for v0.4.x we can also give it a try. thanks.

@mergify backport v0.4.x v0.5.x


The "Single Pedulum Comparison" benchmark is broken

This can be clearly seen from the output here: https://docs.sciml.ai/SciMLBenchmarksOutput/stable/DynamicalODE/single_pendulums/#Solving-single-pendulums-by-DifferentialEquations.jl

@nathanaelbosch
What is exactly meant by broken and what changes are expected for the above benchmark??

If you click the link to the bechmark, you can see that all the outputs are showing error messages. I suppose that instead of errors the outputs are supposed to show the actual benchmark results.

Yes, the error messages of course shouldn't be there.


Add Stateset to testnet folder

Closes #182

@domsteil are you sure you want to use the chain name stateset for your testnet?  Cause names have to be unique, so once used, you can't use that name for your mainnet

@sunnya97 I will update it to stateset-1-testnet


extra keys request

What feature do you want to get added on the base engine?
Add extra keys to the OS Engine, it would be helpful with the mod is creating NotExtrem bc it haves extra keys but we moved to this engine
To test your sight, and reliability, please select the option of what should NOT be requested.
Code optimization that would make the game faster. (You should make a PR if this is your request, by the way.)

That would take a long time to implement those

6k+ support is something that should not be requested

oh shit

i swear to god

You should just use this: https://gamebanana.com/mods/352021
It's a lua version, but it works with OS and Psych.
Charting is weird though


[Bug] Exported failed due to unexpected error

After importing Stripe OpenAPI, I exported it to HAR format were I got the error below, I can surely raise a PR for this is approved by the insomnia team

Hi @elemanhillary-zz, thanks for reporting this one, and apologies for not getting back sooner 🙇
I've attempted to import, and then export the example you have given (https://raw.githubusercontent.com/stripe/openapi/master/openapi/spec3.json) and can no longer reproduce it.
Feel free to open a new ticket if you still have this issue or any other issues.


Fixed wrong behavior information

Updated doc to align the current behavior, according to https://github.com/xamarin/Essentials/pull/1281.

@IlGalvo : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Thanks @IlGalvo and apologies for the delay.


[Q]  How to check if a secret key corresponds to an entity?

I am trying to create a wandb run.

wandb.login(key=wandb_secret_key, relogin=True)
try:
    run = wandb.init(
        entity=wandb_entity_name,
        project=wandb_project,
        name=wandb_run_name,
        notes=wandb_experiment_description,
        config=wandb_configs,
    )
except Exception:
    raise InvalidWanbInfoConfigurationsExeption(f"wandb_secret_key({wandb_secret_key}) is not associated with wandb_entity_name ({wandb_entity_name})")

return run

I can exception handle like I did, but the subsequent runs are crashing even if wandb_secret_key and wandb_entity_name correspond.
---------------------------------------------------------------------------
BrokenPipeError                           Traceback (most recent call last)
~/.virtualenvs/tfpipeline/lib/python3.8/site-packages/wandb/sdk/wandb_init.py in init(job_type, dir, config, project, entity, reinit, tags, group, name, notes, magic, config_exclude_keys, config_include_keys, anonymous, mode, allow_val_change, resume, force, tensorboard, sync_tensorboard, monitor_gym, save_code, id, settings)
   1077         try:
-> 1078             run = wi.init()
   1079             except_exit = wi.settings._except_exit

~/.virtualenvs/tfpipeline/lib/python3.8/site-packages/wandb/sdk/wandb_init.py in init(self)
    573             logger.info("setting up manager")
--> 574             manager._inform_init(settings=self.settings, run_id=self.settings.run_id)
    575

~/.virtualenvs/tfpipeline/lib/python3.8/site-packages/wandb/sdk/wandb_manager.py in _inform_init(self, settings, run_id)
    169         svc_iface = self._get_service_interface()
--> 170         svc_iface._svc_inform_init(settings=settings, run_id=run_id)
    171

~/.virtualenvs/tfpipeline/lib/python3.8/site-packages/wandb/sdk/service/service_sock.py in _svc_inform_init(self, settings, run_id)
     37         assert self._sock_client
---> 38         self._sock_client.send(inform_init=inform_init)
     39

~/.virtualenvs/tfpipeline/lib/python3.8/site-packages/wandb/sdk/lib/sock_client.py in send(self, inform_init, inform_start, inform_attach, inform_finish, inform_teardown)
    210             raise Exception("unmatched")
--> 211         self.send_server_request(server_req)
...
   1115                 os._exit(-1)
-> 1116             raise Exception("problem") from error_seen
   1117     return run

Is there a wat to check if they correspond without creating the run?

Hi @mathbr10, thanks for writing in! The thing here is that the api_key is associated to a user and then the user belongs to entities (teams). This is easy to check from the UI by looking at the teams a user is part of. From the code you created, the exception is raising every time that the run creation fails, but this isn't necessary because the api_key is wrong. It may be for example because any of the arguments is wrong written.
Could you give me some more details about the issue you're facing when starting the run and so I can help you with this?

Hi @luisbergua. We are using wandb in a internal system of my company and we need to garanty that the user does not crash the system. If the key is not corresponing to the user, it crashes forever, even thought the next calls key correspond to the user.
My exception is raised, but the problem is that in thi way wandb crashes forever. I want to check if it is ok before calling wandb.init

@luisbergua  If it is not possible to verify it with wandb. Could you please verify that wandb crashes after you send invalid key/entity pair and the next requests fail?

Hi @mathbr10! There's a way to check this by using our Public API. If you try to run a code like this
import wandbwandb-login(key=your_key)
api = wandb.Api()
run = api.run(entity_name/project_name/run_id)

with a run under the entity that you'd like to check, it will raise CommError: Could not find run if this users has no access to the entity and so you can check it.
Please let me know if this would work for you or if you'd like me to create a new feature request for this. If this is the case, could you explain me what would be the ideal way to check this programmatically?

@luisbergua it

Hi @mathbr10! There's a way to check this by using our Public API. If you try to run a code like this
import wandbwandb-login(key=your_key)
api = wandb.Api()
run = api.run(entity_name/project_name/run_id)

with a run under the entity that you'd like to check, it will raise CommError: Could not find run if this users has no access to the entity and so you can check it.
Please let me know if this would work for you or if you'd like me to create a new feature request for this. If this is the case, could you explain me what would be the ideal way to check this programmatically?

@luisbergua we want to check it before training a model, so the run_id does not exist in this moment.

Hi @mathbr10! After some investigation, I've been able to fin a way to check this. First, the user need to log in and add their api_key:
wandb login --relogin
Once logged, if you run the following code you can see the usernames under an entity:
import wandb
api = wandb.Api()
team = api.team(team_name)
print([m.username for m in team.members])

If the user belongs to this entity, the the list of members is visible. However, if the user doesn't belong to this team, the list will be empty [] and you can check that they're not right logged in. Please let me know if this would help. Thanks!

@luisbergua this solves my problem. Thanks a lot!!!

Hi @mathbr10, great to hear it! I'll then close this ticket but please feel free to ping me here if you have any other question regarding this!


btrfs.go args.lim.max_referenced undefined

Before proceeding

[X] I didn't find a similar issue

Version
1.2.194
How to reproduce

build against btrfs-progs v6.1

Result
  /github/home/.cache/Homebrew/go_mod_cache/pkg/mod/github.com/containers/storage@v1.40.2/drivers/btrfs/btrfs.go:387:11: args.lim.max_referenced undefined (type _Ctype_struct_btrfs_qgroup_limit has no field or method max_referenced)

Expected result
build passed
Additional information
similar to https://github.com/moby/moby/issues/44698
root cause might be https://github.com/kdave/btrfs-progs/commit/03451430de7cd2fad18b0f01745545758bc975a5

Should be addressed in containers/storage side.

verified in this PR


Description field using markdown not working

i.e. markdown syntax is ignored

In terms of the css, have just copied the relevant css from the test cases styling, see https://github.com/CCP-WSI/research-software-directory/commit/73337a1ea4a7a3585f6f797ad6bc5533b819d7e3 Obviously this would be better just included somewhere once if the same style is wanted for the 2 areas but it will do for now


Create ludo_game.py

Hi @kushal34712
This Ludo game can come under this repo
https://github.com/DhanushNehru/Python-Scripts

sir there many games  of pyton under this so u can accept here and it will also help in hacksqud


Update default response message

The default response when we get a request that does not match an intent we understand should be updated to be more helpful to the user.

In terms of the Product Overview document where we are in theory supposed to combine the projects from all the classes at the end, this doesn't work out that easily because it would modify code that all the projects share, in the Speechlet. We could implement a generic mechanism for any Conversation to register their own help messages and have the Speechlet list all the help messages, but that's probably stepping a bit out of bounds.
On the other hand, it would lead to a better user experience for demos, and we can always revert it later.

you can ask me about events in the calendar
can ask about events on a specific day
can ask about upcoming events tomorrow, this weekend, or next week

Updated in #51


Adding additional lifetime constraints to a trait impl

I just tried implementing std::convert::From for a reference to a struct that has a lifetime parameter in a proc_macro_derive, it took a while, but I eventually came up with something that "worked"
let a = syn::LifetimeDef::new("'a");
let mut b = syn::LifetimeDef::new("'b");
b.bounds.push(a.lifetime.clone());
let mut generics = ast.generics.clone();
generics.lifetimes.push(a.clone());
generics.lifetimes.push(b.clone());
let (impl_generics, _, _) = generics.split_for_impl();
let (_, ty_generics, where_clause) = ast.generics.split_for_impl();
let a = a.lifetime;
let b = b.lifetime;
quote! {
    impl #impl_generics ::std::convert::From<&#a ::clap::ArgMatches<#b>> for #ident #ty_generics #where_clause {
        fn from(#matches: &#a ::clap::ArgMatches<#b>) -> Self {
            #body
        }
    }
}

I feel like there must be a better way to do this, maybe some kind of enhanced split_for_impl that supports injecting extra lifetimes. (I also just realised this would probably fail if the struct passed in had a 'a or 'b lifetime, I assume there's no hygiene in proc_macro_derives at all 😮)

I would love to make this better. I agree with you that there must be a way.
Two things that might help in this case are a way to parse generics from a string:
let arg_matches_generics = parse_generics("<'_a, '_b: '_a>").unwrap();

and a way to combine two generics:
let generics = arg_matches_generics.merge(ast.generics);

But even with both of those, your conceptually simple code would still be tricky to write correctly so I think we can do even better. Let's both keep thinking.

About the question of lifetime hygiene, is there a good way to guarantee that the added lifetimes do not conflict with existing ones? I guess I could just go over generics.params and try to come up with a new name for a lifetime but that approach seems rather messy.

I am going to call this done as of Syn 0.15 and recommend the approach in https://github.com/dtolnay/syn/issues/90#issuecomment-355863738. Lifetimes now get printed before type parameters even if you push them on the end of the parameter list (fixed in #321).


Exhausting stream IDs causes an application-visible failure

Would be neater to just set RealConnection.noNewStreams when we approach the limit.

Can I take pick up issue if no one else is working?

Yep, if you are happy to sign the CLA https://github.com/square/okhttp/wiki/Contributing
Please include tests for the changes, and expect a thorough review including stylistic comments.

Duplicate of https://github.com/square/okhttp/issues/3670


Dask repartition / trouble with keeping bounds as returned by divisions

Hello,
Trying out and completing this example provided in the doc works.
import pandas as pd
from dask import dataframe as dd
df = pd.DataFrame(dict(a=list('aabbcc'), b=list(range(6))),index = pd.date_range(start='20100101', periods=6))
ddf = dd.from_pandas(df, npartitions=3)
ddf.divisions
ddf = ddf.repartition(partition_size="10MB")
ddf.divisions

First divisions returns
(Timestamp('2010-01-01 00:00:00', freq='D'),
 Timestamp('2010-01-03 00:00:00', freq='D'),
 Timestamp('2010-01-05 00:00:00', freq='D'),
 Timestamp('2010-01-06 00:00:00', freq='D'))

Second one returns
(Timestamp('2010-01-01 00:00:00', freq='D'),
 Timestamp('2010-01-06 00:00:00', freq='D'))

Now, trying on another example, the 2nd divisions fails this time.
from dask import dataframe as dd
import pandas as pd
import numpy as np
dti = pd.date_range(start='1/1/2018', end='1/08/2018', periods=100000)
df = pd.DataFrame(np.random.randint(100,size=(100000, 20)),columns=['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T'], index=dti)
ddf = dd.from_pandas(df, npartitions=1)
ddf.divisions
ddf = ddf.repartition(partition_size="10MB")
ddf.divisions

First divisions returns
(Timestamp('2018-01-01 00:00:00'), Timestamp('2018-01-08 00:00:00'))

Second one returns
(None, None, None)

Please, why is that so? Is there a bug somewhere?
Only displaying ddf shows me the index appears to have been lost after the repartition.

Dask Name: repartition, 6 tasks

Thanks for your help and support,
Bests,

Further comment.
Using npartitions instead of partition_size produces expected results.
from dask import dataframe as dd
import pandas as pd
import numpy as np

n_per=20*5000
dti = pd.date_range(start='1/1/2018', end='2/08/2019', periods=n_per)
col = ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T']
df = pd.DataFrame(np.random.randint(100,size=(n_per, len(col))),columns=col, index=dti)
ddf = dd.from_pandas(df, npartitions=1)
#ddf = ddf.repartition(partition_size="10MB")
ddf = ddf.repartition(npartitions=2)
ddf.divisions

Produces
(Timestamp('2018-01-01 00:00:00'),
 Timestamp('2018-07-21 12:00:00'),
 Timestamp('2019-02-08 00:00:00'))

Seems related to issue #6362

I think https://github.com/dask/dask/issues/6362#issuecomment-652507357 describes the behavior that you are seeing. Note that divisions does not have to be set. It is perfectly fine to have unknown divisions. If you would like them to be set you can use ddf.reset_index().set_index("index")

I think https://github.com/dask/dask/issues/6362#issuecomment-652507357 describes the behavior that you are seeing. Note that divisions does not have to be set. It is perfectly fine to have unknown divisions. If you would like them to be set you can use ddf.reset_index().set_index("index")


Verify/cleanup the OpenURI monkey patch in host/miqhost/UpdateAgent.rb

Is it still needed with ruby 2.0 and beyond?
https://github.com/ManageIQ/manageiq/blob/f1325ba2c6c70cc6214729873e6724e555078935/host/miqhost/UpdateAgent.rb#L229

It looks like that code was moved to gems/pending/util/extensions/miq-openuri.rb, which was subsequently removed in https://github.com/ManageIQ/manageiq/pull/10356 because it was interfering with our proxy code for Azure.
This may have accidentally affected SmartProxy Affinity, but we have not yet confirmed that. If it does need to be restored, then a refinement should be added and used where necessary.

The MiqHost component is no longer a supported.  This issue can be closed.


indentation test fix

This is a followup to #131, I think? Test fails reliably; e.g.:
gradlew :solr:core:test --tests "org.apache.solr.jersey.PostRequestLoggingFilterTest.testRequestBodyRepresentedAsJsonWhenFound" -Ptests.jvms=5 "-Ptests.jvmargs=-XX:TieredStopAtLevel=1 -XX:+UseParallelGC -XX:ActiveProcessorCount=1 -XX:ReservedCodeCacheSize=120m" -Ptests.seed=3607EC61D430207E -Ptests.file.encoding=US-ASCII

Note: this test was introduced in 9.3; does not need to be backported to fs/branch_9_2.


jenkins: 1.652 -> 1.653

Things done:

[ ] Tested using sandboxing (nix-build --option build-use-chroot true or nix.useChroot on NixOS)
[x] Built on platform(s): SX
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

The release notes contain only a single fairly minor item, ought to be safe.


use superagent for API requests to be able to handle errors nicely

We are still using the standard Koa errors, but it's not borking because of the rubbish http client I wrote.

Merging as its making dev hard.


The Player falls endlessly

I'm submitting a...

[x] Bug report.
[ ] Feature request.

Bug report

What is the current behavior?
If the player falls in an area where there is no ground (e.g. at the end of level 1) he will fall forever without dying.
What is the expected behavior?
The player should die.
Tell us the steps to reproduce the bug, and if possible share a minimal demo of the problem.

Start the game.
Play until you reach the end of the level.
Miss a hook and fall in that area.

Yes, it's not implemented yet.

Should that be fixed at https://github.com/GDQuest/godot-platformer-2d/pull/177 ?

The killing line was missing from the level scenes, so the player would fall indefinitely. This is now fixed. Thanks for mentioning that, I had forgotten about this node!


chore: disable persist creds

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.0-beta.13 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


reset message_b after second GetDigest.

Fix: #916
Signed-off-by: Qi Zhang<EMAIL_ADDRESS>

Have you tested GET_DIGEST, GET_CERTIFICATE, GET_DIGEST flow ?
In this flow, the state should be LIBSPDM_CONNECTION_STATE_AFTER_CERTIFICATE.
Why the code depends on LIBSPDM_CONNECTION_STATE_AUTHENTICATED?

merge it together with emu, so that we can start test.
feel free to leave more feedback, if you find something need improve later.


Errorneous linting of jsx fragments

Is this a bug report?
yes
Steps to Reproduce

create app npx create-react-app app
replace content of src/App.js with

import React from 'react';

const App = (
  <>App</>
);

export default App;

run npx eslint ./src inside app

Expected Behavior

no errors, no warnings
Actual Behavior

There is a warning:
.../src/App.js
  1:8  warning  'React' is defined but never used  no-unused-vars

✖ 1 problem (0 errors, 1 warning)

If I remove react import from src/App.js, then it shows an error:
.../src/App.js
  2:3  error  'React' must be in scope when using JSX  react/react-in-jsx-scope

✖ 1 problem (1 error, 0 warnings)

Reproducible Demo

https://github.com/vadzim/errorneous-fragment-linting.git

Wouldn't be the case that this is happening because CRA does not use .eslintrc or any other file that eslint command would use instead it is passing the config directly in the loader https://github.com/facebook/create-react-app/blob/05d3fd2d0dd300d30684afc48240acaae6d85227/packages/react-scripts/config/webpack.config.dev.js#L192

It seems this is fixed in https://github.com/yannickcr/eslint-plugin-react/commit/18898e1c41ff0d9f2f8e1c93267b6cda91328765#diff-d41ba36daf851354b9587064dc4ee0ac
but still not published

https://github.com/yannickcr/eslint-plugin-react/issues/2046


WSL can't boot with Error code: Wsl/Service/0x8007274c

Windows Version
Microsoft Windows [版本 10.0.22624.1680]
WSL Version
<IP_ADDRESS>
Are you using WSL 1 or WSL 2?

[X] WSL 2
[ ] WSL 1

Kernel Version
<IP_ADDRESS>-1
Distro Version
No response
Other Software
No response
Repro Steps
> wsl

Expected Behavior
> wsl
[loia@LIKO ~]$

Actual Behavior
> wsl
由于连接方在一段时间后没有正确答复或连接的主机没有反应，连接尝试失败。
Error code: Wsl/Service/0x8007274c

Diagnostic Logs
Logs: WslLogs-2023-10-01_21-10-26.zip

Thank you @Locietta. I'm not seeing the full boot logs in the zip file you shared. Can you try:

Start the log collection
Run: wsl --shutdown
Reproduce the issue
Stop the log collection
Share the new logs

/logs

Ah, I tried wsl --shutdown and reboot WSL, and somehow everything goes fine this time. Maybe my WSL instance is just in an invalid state yesterday and wsl --shutdown happens to solve this.
Anyway, thanks! I'm closing this since I can't repoduce it now🙂


Issue 195 integrate smac with Benchmarking

SMAC4HPO: Optimització bayesiana fent servir un model Random Forest de pyrfr.
HB4AC: Successive Halving.

Resolve #195

Codecov Report

Merging #200 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #200   +/-   ##
=======================================
  Coverage   96.21%   96.21%
=======================================
  Files          29       29
  Lines         792      792
=======================================
  Hits          762      762
  Misses         30       30

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8c0fbfb...8b70f9b. Read the comment docs.


opam config var is deprecated

Related to https://github.com/tarides/ocaml-platform/issues/50
Opam 2.1 deprecates opam config and its sub-commands related to variable in favor of opam var.
Potential solutions are:

Define a version of the CLI, https://github.com/tarides/ocaml-platform/issues/50
Check Opam's version and handle the two forms
Use Opam's library. Note: this is a read-write operation, there might be compatibility problems here too.

Closed by #92.


Bug Report - Regular Expression Capability Mismatch

"Regular Expression" and "Find/Replace" recipes don't use the same regex capabilities.
Regular Expression:
\p{Greek}+
Input:
\p{Greek}
Ναδ
Regular Expression Output:
\p{Greek}
Ναδ (Highlighted)
Find/Replace Output:
\
Ναδ

Good spot. The 'Regular Expression' operation uses the XRegExp library which supports Unicode character groups, whereas the 'Find / Replace' operation just uses native JS regular expressions which does not. I'll look to add XRegExp support to 'Find / Replace' soon.

Fixed in bf264380


Does this need root access

This does not need root access.

@adakoda i'm getting the below error when trying to record..
~/Desktop  ᐅ adb shell /data/local/tmp/screenrecordex /sdcard/output.mp4
/system/bin/sh: /data/local/tmp/screenrecordex: not executable: magic 7F45


Host filter by tag value

It would be great to be able to filter hosts by tag value.
for example, you have group = 'Linux servers', but also these hosts have tags, like this:
datacenter = abc
rack = 123
department = it

I vote!

I vote too!

I vote too!

I vote too. Would be really usefull.

I vote too!

I vote too!

I vote too!

I vote too, it's very important feature to me.

i vote too!

And me too! 🙂

I vote too!

yes, please!

+1!


Let the content negotiation process determine which controller action is called

Currently, content negotiation is focused on the use case of representing the same document in different formats, which is obtained by adding different formatters.  However, with the increased popularity of HATEOAS in any of its many forms, which include techniques based on passing specific media types in the Accept header such as HAL, the result of a content negotiation process also includes the possibility of returning entirely different documents.
Therefore, it would be nice if the outcome of the content negotiation process would not only help pick the output formatter but also determine the controller action that should be used to return a specific media type.
Take, for example, HAL.  HAL supports two media types: application/hal+json and application/hal+xml.  If a GET request is made with application/json or application/xml then the expected outcome of the content negotiation process would be to call the controller action that returns the document formatted in JSON or XML, depending on the content type.  However, if a GET request is made with application/hal+json or application/hal+xml then the desired outcome would be to route the request to a dedicated action that returns an entirely different document, one that in this case happens to be an extended version of the document that otherwise would be returned if the content negotiation process picked application/json or application/xml but featuring additional content or even changes in its DOM tree structure.

@ruimaciel you could use `ConsumeAttribute' to do the action selection:
[HttpGet]
[Consumes("application/hal+json")]
public ActionResult<Resource> GetJson() { .. }

[HttpGet]
[Consumes("application/hal+xml")]
public ActionResult<Resource> GetXml() { .. }

@pranavkm  thank you for the quick reply.  After reading Microsoft's article it seems that ConsumesAttribute only specifies the media type used in the request, and does nothing regarding the response.
There is, however, ProducesAttribute.  However, I've ran a test where I've defined two actions sharing the same route but with distinct media types passed to the ProducesAttribute and unfortunately a request sent to a route triggers the following exception:
Microsoft.AspNetCore.Mvc.Internal.AmbiguousActionException: Multiple actions matched. The following actions matched route data and had all constraints satisfied:

Routing has to look at the request to determine what action gets selected, so what's it supposed to use to two discriminate between two actions with ProducesAttribute for a given request?

@pranavkm it would be ideal if the routing process would also take in consideration the outcome of the content negotiation process.  So, if there are multiple actions matched to a route, the routing process could use the outcome of the content negotiation process to help match requests to the intended action.
For example, consider the following actions:
[HttpGet("/products")]
[Produces("application/json")]
public IActionResult GetProductsAsJson()
{
   // ...
}

[HttpGet("/products")]
[Produces("application/hal+json")]
public IActionResult GetProductsAsHal()
{
   // ...
}

Now, consider the following GET request:
GET /products
...
Accept: application/hal+json

Afaik, this GET request currently triggers an AmbiguousActionException, even when a service is configured with RespectBrowserAcceptHeader = true.   Yet, if the content negotiation respects the browser's Accept header then there is already enough information to disambiguate which action should be matched.

I would also add that implementing support for HATEOAS is not the only use case that would benefit from considering the outcome of the content negotiation in routing.  Adding support for media type API versioning would become quite trivial with ASP.NET Core with this feature.  In fact, in the developer's point of view, I believe it would be very useful if annotating a Controller with a ProducesAttribute would be enough to disambiguate routes between controllers that share the same route.  That would mean that adding support for a new version would be a matter of adding a new controller that shares the old route but takes requests for the version-specific media type, without having to touch any other source file in the process.

cc @JamesNK

ping @JamesNK

The idea behind MVC's content negotiation is a single action is run, and the appropriate OutputFormatter is then chosen based on the accepts header.
Are the logic in the actions so radically different that they would need to return different action results? I can see overloading the action based on the accepts header being useful, although I'm not sure how wide-spread the need for it would be. There is a relatively simple workaround by testing the accepts header inside the action and then returning different action results from a single action:
[HttpGet]
public ActionResult<IEnumerable<string>> Get()
{
    if (IsHal(HttpContext.Request))
    {
        // special HATEOAS result
        return new string[] { "value1", "value2" };
    }
    else
    {
        // normal result
        return new string[] { "value1", "value2" };
    }
}

private bool IsHal(HttpRequest request)
{
    var result = new List<MediaTypeSegmentWithQuality>();
    AcceptHeaderParser.ParseAcceptHeader(request.Headers[HeaderNames.Accept], result);

    // check result
    return true;
}

Are the logic in the actions so radically different that they would need to return different action results?

Yes.
As I've mentioned previously, actions may return documents which are extended and following entirely different DOM structures (i.e., see HAL vs returning a serialized DTO) or they may even return entirely different documents (i.e., media type-based versioning).
Picking the OutputFormatter only covers the needs of a small (or even negligible) corner case: serialize the same DTO in different data transfer languages.

There is a relatively simple workaround by testing the accepts header inside the action and then returning different action results from a single action:

That is technically true, but having to do the content negotiation directly within each action ends up creating more problems than it solves.
It would be nice if ASP.NET Core could reflect the outcome of the content negotiation process in the routing process and determine which action should be performed to produce the content.  That would mean that developers could work on their REST APIs without having to add their own content negotiation logic ( which is convoluted and bug-prone and not easy to test) and simply focus on instantiating and returning specific DTOs from specific actions.

Yeah on initial impression it feels like it would be useful, it is a matter of prioritizing it against other features.
Accept can contain multiple values. We would need to think about how that would effect the situation when there are multiple matches. And weight would need to be taken into account.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept
From a backwards compatibility perspective I think it is ok. This would only turn situations where there previously was an ambiguous match to a working request.

I talked this over with a colleague that knows more about content negotiation than I. We both think that this is useful for you, and potentially other developers, but content negotiation has different points of view about how it should work. For example, what would be the correct status code if no actions match? We are hesitant to bake an opinion about how it should be done into ASP.NET, at least not until we hear many devs ask for similar behavior.
To help you, and to test our this area, I've put together a sample of route matching using an endpoint policy. You can get here.

@JamesNK thank you for your work.  I understand there is no "one size fits all" solution.
Meanwhile, regarding the API versioning use case, I've just stumbled on this:
https://github.com/Microsoft/aspnet-api-versioning

The implementation as IActionContraint seems to be good solution for me. I will try this next week.
Thanks for your help.

Thanks for contacting us. We believe that the question you've raised have been answered. If you still feel a need to continue the discussion, feel free to reopen it and add your comments.

Got this and I also think is a bug with Consumes.
        [HttpGet("test")]
        [Consumes(MediaTypeNames.Application.Json)]
        public ActionResult GetJson()

        [HttpGet("test")]
        [Consumes(MediaTypeNames.Text.Html)]
        public ActionResult GetHtml()

Ideally I would want to match the action based on Accept header. Currently return ambiguous view error.

@Bartmax : Consumes seems to work correctly it selects the correct Action by negotiating the Content-Type-Header, Produces ignores the Accept-Header. If you encountered a problem, it could be the combination of HttpGet and Consumes. There is no request-body in a GET-request. and a ConsumesAttribute cannot negitate the Content-Type of the body.
I think you may confuse Consumes and Provides. Consumes should handle the Action-Selection based on the Content-Type-Header while Provides should handle the Action-Selection based on the Accept-Header.
As far as I know there is a solution provided for 2.2 and newer (See: https://github.com/aspnet/samples/pull/22). I created an ProducesConstraintAttribute for the 2.1 LTS version. This enables a ContentNegotiation-based Action-Selection. The ProducesConstraintAttribute is not standard compliant regarding the content negotation, but it workes for my use-cases.


where to find the result mesh

After finishing trainning，I could not find where is the result mesh generated by optiomization.
Which folder contain the final mesh? how to dump the gid parameters into result mesh?

Hi,
The outputs are all written into subdirectories of differentiable-sdf-rendering/outputs/. The optimized SDF itself will be in the params subdirectory of the optimization's output folder. The format of the result is a mitsuba volume file (*.vol) storing the SDF values. This can be converted to a mesh using marching cubes (e.g., from scipy).
Hope that helps
Delio

thanks for relpy

a few lines of code:
import mcubes
import trimesh
import numpy as np

import mitsuba as mi
mi.set_variant('cuda_ad_rgb', 'llvm_ad_rgb')

vol_path = None # your path to vol
ply_path = None # your path to save ply
loaded_data = np.array(mi.VolumeGrid(vol_path))
vertices, triangles = mcubes.marching_cubes(loaded_data, 0.0)
mesh = trimesh.Trimesh(vertices, triangles)
trimesh.repair.fix_inversion(mesh)
mesh.export(ply_path)


Persist last selected tab in stats

Closes #309
Persists the last selected "tab" (segment) in stats and defaults it to Insights like before. This tab will be persisted across the sites - so if the user switches sites the last tab will be still selected. Chances are the user will want to come back to the same tab in every site they have.
Needs Review: @jleandroperez
Do not merge this PR until #315 is merged (this branch is based off of it)

Waiting to merge until #315 is given a shipit

:fireworks:


Error on GTX 1080 Maq-Q

Hi!
Trying to finetune a Mistral 7B v0.2 on my GTX 1080 Max-q.
Getting this error (using LLaMA Factory):
==((====))==  Unsloth: Fast Mistral patching release 2024.4
\   /|    GPU: NVIDIA GeForce GTX 1080 with Max-Q Design. Max memory: 7.916 GB. Platform = Linux.
O^O/ _/ \    Pytorch: 2.2.1+cu121. CUDA = 6.1. CUDA Toolkit = 12.1.
\        /    Bfloat16 = FALSE. Xformers = 0.0.25.post1. FA = False.
"-____-"     Free Apache license: http://github.com/unslothai/unsloth
[INFO|configuration_utils.py:726] 2024-04-06 17:44:40,876 >> loading configuration file config.json from cache at /home/sss/.cache/huggingface/hub/models--unsloth--mistral-7b-instruct-v0.2-bnb-4bit/snapshots/2bde61d36dbcfb34a485b073ca87615c2bd032a5/config.json
[WARNING|logging.py:329] 2024-04-06 17:44:44,929 >> ==((====))==  Unsloth - 2x faster free finetuning | Num GPUs = 1
\   /|    Num examples = 53,539 | Num Epochs = 1
O^O/ _/ \    Batch size per device = 1 | Gradient Accumulation steps = 16
\        /    Total batch size = 16 | Total steps = 3,346
"-____-"     Number of trainable parameters = 3,407,872
0%|                                                                                | 0/3346 [00:00<?, ?it/s]LLVM ERROR: Cannot select: intrinsic %llvm.nvvm.shfl.sync.bfly.i32
Aborted (`core' dump)
Followed the installation instructions for torch 2.2.1 and 1080s.
Can you please advice? Thanks!

Same happens with Mistral 7B v0.1

@hvico Oh no - https://github.com/kuleshov-group/caduceus/issues/2 it seems like 1080s are now not supported? :( It was before hmmm

@hvico Oh no - kuleshov-group/caduceus#2 it seems like 1080s are now not supported? :( It was before hmmm

Do you remember in which version it was still supported ? I have a gtx 1070ti and would like to train a model locally

There are some tags on our github repo - you could try our first ever version to see if it works


Single Sign-on (SSO)

After heavy research, I'm still not sure what is the best way to implement Single Sign-on (SSO) with feathers.
Scenario:

user logins at login.feathersjs.com, JWT is issued
user can automatically login at app1.feathersjs.com or app2.feathersjs.com (possibly at otherdomain.com)
after logout, all JWTs are invalidated

There are few possible solutions, but none of them feels right:

turn on cookies - CSRF threat, not applicable for otherdomain.com
use window.postMessage - not working at Safari 7+
use redirects (app1 does not have JWT, redirects to login, JWT is sent back) - no logout, possible security concern

Any thoughts?

Do you control all of the domains?

Yes.

I've stumbled upon option of running my own OAuth server for local auth, but that seems quite complicated. This is not that uncommon scenario, aren't there any simpler solutions?

Somewhat related to #469


[plugins|ffm] crash if mouse_modifier isn't set in the configuration

As per title.

Hm what, I'm unable to reproduce ??

God damnit, yeah..

For some reason I thought passing a null pointer would be valid, but I was actually thinking of the \0 char. Bad dereference. The reason I didn't get the crash is that I load the tiling plugin before the ffm one, and tiling set a default value for that cvar.

Yeah I know, just didn't bother to submit a pullrequest for a one line fix, sorry XD hopefully i'll be able to help more next month....

No worries, solid bug reports help a lot as well :)


TX Modal for useSendTransaction hook

PR-Codex overview
This PR removes the usage of useConnectUI in various files, introduces client prop, and updates useSendTransaction to useSendTransactionCore.
Detailed summary

Removed useConnectUI in multiple files
Added client prop in components
Updated useSendTransaction to useSendTransactionCore

The following files were skipped due to too many changes: packages/thirdweb/src/react/web/ui/ConnectWallet/screens/WalletLogoSpinner.tsx, packages/thirdweb/src/react/web/ui/components/basic.tsx, packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/swap/TokenSelector.tsx, packages/thirdweb/src/react/web/wallets/shared/GetStartedScreen.tsx, packages/thirdweb/src/exports/react-native.ts, packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/swap/useSwapSupportedChains.ts, packages/thirdweb/src/react/web/ui/components/Skeleton.tsx, packages/thirdweb/src/react/web/ui/components/TokenIcon.tsx, packages/thirdweb/src/react/web/ui/components/WalletImage.tsx, packages/thirdweb/src/react/web/ui/ConnectWallet/Details.tsx, packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/swap/PayWithCrypto.tsx, packages/thirdweb/src/react/web/ui/components/modalElements.tsx, packages/thirdweb/src/react/web/ui/ConnectWallet/screens/SendFunds.tsx, packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.tsx, packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/swap/BuyTokenInput.tsx, packages/thirdweb/src/react/web/ui/ConnectWallet/screens/TokenSelector.tsx, packages/thirdweb/src/react/web/hooks/useSendTransaction.tsx, packages/thirdweb/src/react/core/hooks/contract/useSendTransaction.ts, packages/thirdweb/src/react/web/ui/components/ChainIcon.tsx, packages/thirdweb/src/react/web/ui/ConnectWallet/NetworkSelector.tsx, packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/SwapScreen.tsx

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

/release-pr

/release-pr

/release-pr

/release-pr


"Open Folder" Bug

Describe the bug
App crash when I try open a folder.
To Reproduce
Steps to reproduce the behavior:

Open the App
Double Click on a folder
App crash

Expected behavior
See folder content.
Desktop (please complete the following information):
Edición	Windows 10 Pro
Versión	20H2
Se instaló el	28/01/2021
Compilación del SO	19042.804
Experiencia	Windows Feature Experience Pack 120.2212.551.0
"FIles" Version: <IP_ADDRESS>
Additional context
The problem is constant.
Log file
debug_fulltrust.txt
debug.txt

I have the same issue, but it doesn't happen if I browse with the keyboard (hit Enter on folders instead of double-click).

Hopefully the same as #3504.

Could you check if the crash happens also if you put the current folder in Grid View before going to that folder?
Could you check if the crash happens also if you enable the "open items with one click" option in Files settings?
Do get a notification saying "something went wrong" when the crash happens? (I'm guessing not)

Thanks for this report. This is a known issue with 1.2.2 and looks like #3504 which should be now fixed.

Could you check if the crash happens also if you put the current folder in Grid View before going to that folder?
Could you check if the crash happens also if you enable the "open items with one click" option in Files settings?
Do get a notification saying "something went wrong" when the crash happens? (I'm guessing not)

Merging with #3548/#3547

Thanks for reply, now I check that and this is the news:

I can "solve" the problem if I put another view like Grid, but I need do 4 clicks to open folders, the app blinks and be late to open.
With one click there is not problems.
I don´t see any notifications about that.


Create multiple instances using one call when using machine_batch (#306)

Prior to this change each EC2 instance was created by making a separate #create_instances call.  This approach is preferred when utilizing placement groups per Amazon's recommendations below:

First, you create a placement group and then you launch multiple instances into the placement group. We recommend that you launch the number of instances that you need in the placement group in a single launch request and that you use the same instance type for all instances in the placement group. If you try to add more instances to the placement group later, or if you try to launch more than one instance type in the placement group, you increase your chances of getting an insufficient capacity error.

I attempted to run the integration tests with a live EC2 accounts before making these changes, unfortunately many of them failed sporadically due to what appears to race conditions around the duration of provisioning.
Related #17

Any plans on merging?


IoT Plug and Play sample code and readme.md not aligned

The "switch" connection string, value in code and readme.md not aligned.

AB#8359970

Thanks for this issue, we will update it and get it pushed out.

Hey @BerryTsai  and @jebrando , thanks for pointing this out, I noticed this as well and fixed it in our PnP release staging branch yesterday, this will be live when we merge to master. Marking this as fix-checked-in for now.

https://github.com/Azure/azure-iot-sdk-python/pull/673

@BerryTsai, thank you for your contribution to our open-sourced project! Please help us improve by filling out this 2-minute customer satisfaction survey


minio helm chart removed

opnictl demo fails on the minio chart
the helm.min.io chart repo has been archived in favor of using the minio operator. Any chance to get it updated  to use https://github.com/minio/operator/tree/master/helm/minio-operator ?

Unfortunately we can't use the minio operator due to its license. We are working on a better way to manage our deployments instead of using helm charts, but in the mean time the existing helm chart should still work. If you are using a k8s distro that does not bundle the helm controller, make sure to enter "Y" when opnictl create demo asks if you want to install it.

I'll close this then until I can reproduce...it just may well be how the demo was being created.