Guidance Positioning hint components for multuple BarSeries in same XYPlot

I'm wondering how one would go about placing  components on multiple bar series with in the same Plot.  Something like:

I can't seem to find a decent solution that doesn't involve tweaking position offsets which doesn't scale when the number of x axis items changes.  Has anyone else solved this problem?
I suppose the problem I'm encountering is that Hint is rendered with the x / y value which makes complete sense. But this mean's it's completely decoupled from the rendering of individual bars within a bar series like this.
Should I be using calculated scale / domain values to determine in pixels where each hint should be "offset".  Sounds possible, but thought there may be a more elegant solution
Maybe this isn't a proper use for Hint at all? Is there another option?

yeah, right now the Hint doesn't have the same function as Bar Series which is automatically offset if there are several. We could come up with an API to do that, or have manual workarounds (ie through styles, through modification of the X value...)
I'm going to mark this as an enhancement for now

Hi @dan-weaver @jckr !
I have been trying to figure out how to implement exactly that kind of behaviour where you can put a value on top of the bar. I tried to do this with LabelSeries by using the same data as I use to render the bars, only adding property "label" to the data. This works kind of ok, the only problem is that the LabelSeries automatically sets the text either before or after and above or below the datapoint depending on if the datapoint is closer the beginning or the end of the range. At least I couldn't find a way to set all the labels for example "middle" and "above" the datapoint. Do you know if this is currently possible? And is LabelSeries a "correct" way to approach this problem?
The values for where to set the text seems to be calculated here https://github.com/uber/react-vis/blob/71116cdeafae5db0a952d87da28e210d4dfc4018/src/plot/series/label-series.js#L73
I could work on a PR, if you think that we could add new props for the LabelSeries component say something like "yAlign" and "xAlign" so that user could for example determine that every label "above" and "middle" of the datapoint?

awesome @tumetus!

Hi, I'm having the issue described exactly in the picture above. I have the same x and different y's and I want to place labels on top middle of each bar. I don't see how the solution provided solves my issue. I can use labelAnchorX end to one series and labelAnchorX start to another but this doesn't like how I want it too. How could I place the label in the middle of each bar series in this case?

#768 won't help to put labels on top the center of each bar, or am I missing something?

Hi @monaawi !
I am not sure if I understood your problem correctly, but I have been able to put labels on top center of bars with the labelAnchorX and labelAnchorY props with values labelAnchorX="middle" and labelAnchorY="text-after-edge".
I wrote a blog post which illustrates how to implement that kind of behaviour, you can check it out at https://codepulse.blog/how-to-create-a-bar-chart-with-react/ .
Not sure if this helps but let me know!  🙂

Hi @tumetus !
Thank you for the quick reply. My issue is when you have two bars with the same x (multiple bar series) and I want to put a label on each one.
I managed to make a workaround for it by using xOffset but this doesn't scale when the graph shrinks/expands.
This is what it looks like with middle and text-after-edge

This is how I want it to look like and how it looks like with the xOffset but it is not scalable

Ok now I see what you mean. The #768 won't in fact solve that issue.
My thinking is that if you can solve, from the react-vis code, how the bar x positions are determined when they have the same x, you could then determine the label x positions the same way.
I tried to dig through the code but could not solve how react-vis is determining the bar positions when two bars (or more) have the same x value.

Can we re-open this issue at least, because it seems to me what issue describes is not solved?


Fix getting the deck hostname from service

Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

LGTM. Thanks for this!


Mathematical notations are not rendered

See: https://github.com/CyrusYip/cyrusyip-blog/pull/1#issue-1372663731
Example:

https://github.com/CyrusYip/cyrusyip-blog/blob/main/content/zh-cn/post/2020-11-28-nobody-in-university.md
http://localhost:1313/zh-cn/post/2020/11/26/regex-examples/

Todos:

[ ] enable MathJax
[ ] replace $..$ with \(...\) because dollar signs appear too often in non-mathematical text.
[ ] compatible with pandoc https://pandoc.org/MANUAL.html#math

Actually, I don't need mathematical notation.
https://github.com/CyrusYip/cyrusyip-blog/commit/fcc4549f52e26824449015d64bbdb4e3a20c9ed0


Add from (datetime) to (datetime) calculation

It would be really great to add the ability for Numi to calculate interval between two different timestamps like:
10:28am to 12:40pm
from 10:28am to 12:40pm

At the moment Numi will only validate and output the first time converting it to date and there's a workaround for generating negative intervals by adding parenthesis on the first time.

However, the time/date to time/date helper generating the positive interval could be very useful.

Yeah, thanks @zanona. Make a lot of sense!

/cosign
01.01.1988 - today (for age calculation)
01.01.1999 - 02.03.2003 (for duration calculation)


Include Chargelog (Ladelog)

It would be nice to see the chargelog (Ladelog) in the details.
Recent successful entries indicate a working charger.

There is an API endpoint for the charging log, but it's not part of the documented GoingElectric API.

Some other apps (e.g. ChargEV on iOS) solve this problem by providing an own check-in service independent of GoingElectric's - but I think building another separate database is not a good idea. I also found that AirElectric claims to have GoingElectric charging log in the app, but I couldn't find it anywhere - maybe they needed to remove it?
According to Guy, the operator of the GoingElectric site, a new version of the API is in development, but there is no ETA on that and it will probably not be free anymore.

I created this request based on thread on Twitter.
When I look at the charging log of the chargers I usually use the log might contain less than 5% of the usage I'm seeing there.
Anyhow it is possible to click on the GoingElectric link in the app to see the log.
This can be closed.


Doesn't go on top of keyboard

In my use case, the FCAlertView does not go on top of the keyboard.
I have a similar component that shows a progress circle that is used in exactly the same circumstance, but that goes on top of the keyboard. This is causing issues because whilst the AlertView is operating, the user can still type stuff in keyboard.
I looked at code:
Your code:
- (void) showAlertInView:(UIViewController *)view withTitle:(NSString *)title withSubtitle:(NSString *)subTitle withCustomImage:(UIImage *)image withDoneButtonTitle:(NSString *)done andButtons:(NSArray *)buttons {

    [self checkCustomizationValid];
    [self safetyCloseCheck];

    [view.view.window addSubview:self];

}

I looked at other component's code: https://github.com/AssistoLab/KVNProgress/blob/master/KVNProgress/Classes/KVNProgress.m#L870
- (void)addToWindow
{
	self.originalKeyWindow = [UIApplication sharedApplication].keyWindow;

	if (!self.progressWindow) {
		self.progressWindow = [[UIWindow alloc] initWithFrame:self.originalKeyWindow.frame];

		// That code makes the custom UIWindow handle the orientation changes.
		// http://stackoverflow.com/a/27091111/2571566
		self.progressWindow.rootViewController = [[KVNRotationViewController alloc] init];
	}

	self.progressWindow.frame = self.originalKeyWindow.frame;

	// Since iOS 9.0 set the windowsLevel to UIWindowLevelStatusBar is not working anymore.
	// This trick, place the progressWindow on the top.
	UIWindow *lastWindow = [[[UIApplication sharedApplication] windows] lastObject];
	self.progressWindow.windowLevel = lastWindow.windowLevel + 1;

	[self.progressWindow makeKeyAndVisible];
	[self addToView:self.progressWindow];
}

KVNProgress gives us the option to select the view we want the component to be on top of. If we don't select a view, it uses the code above to correctly place the component on top of everything - including the keyboard.
This is the approach to take. Can you please make another method that allows us to provide the view instead of us providing the viewcontroller.

Haa, interesting. Good catch! I'll look into it and add a fix soon for this, @pjebs.

any news on this?

Hey, not yet, will update you when it's ready.

https://github.com/AssistoLab/KVNProgress/issues/70

@pjebs I'll be taking a look in the coming days and have a new release to fix it.

@pjebs Just released FCAlertView V1.0.8 which should now fix this issue. To present the alert on top of your keyboard, use:
[alert showAlertWithTitle:@"Alert Title"
withSubtitle:@"This is your alert's subtitle. Keep it short and concise. 😜👌"
withCustomImage:nil
withDoneButtonTitle:nil
andButtons:nil];
This method will make the alert appear on top of all other UI elements on the main window of the UIApplication. Let me know if it works for you.
Cheers!

any updates @pjebs ?

I'll check it out soon.

Didn't work.
showAlertInView - Fine
showAlertInWindow - Fine
showAlertWithTitle -Not fine
This attempts to add to the current keyWindow.
If the keyboard is up, it won't work.
What this method should do is create a new UIWindow, set it's windowLevel using the trick KVNProgress does. Make this newly created UIWindow as as the keyWindow etc.
If we want the currently implemented functionality, we can just use showAlertInWindow easily.

So you're saying only showAlertWithTitle creates the problem but the other methods for showing works?

yes

showAlertWithTitle works fine too except when there is a keyboard.

Are you sure? I did test with showAlertWithTitle with a keyboard displayed and it worked just fine:

That;s interesting. In mine, the keyboard is on top. I'm on iOS9.3

I assume it must be related to: https://github.com/AssistoLab/KVNProgress/issues/86
In which case your component is fine!

Ha, I see. Well keep me posted if any other issues come up. Cheers! 👍

There are some oddities with this.
The source of the issue I raised is related to how the component places itself at the top.
I found that when I stopped using KVNProgress, it worked. Then when I used (CNPPopupController)[https://github.com/carsonperrotti/CNPPopupController] It again was behind the keyboard.

Hmm Interesting, I'm glad you found the workaround for it, thanks for sharing!


Github rate limit hit pulling Turbinia releases information

Name and Version
charts/turbinia 1.1.1
What environment are you using?
Minikube
What steps will reproduce the bug?
Helm deploy Turbinia and spinup a heavy processing job that start many workers. Each worker will try to pull from api.github.com here https://github.com/google/osdfir-infrastructure/blob/main/charts/turbinia/templates/init-configmap.yaml#L29
As the rate limit for unauthenticated users is 60 requests per hour it will prevent containers from pulling the Turbinia configuration file once that limit is hit (as it can't resolve the release version through the github api call). https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api?apiVersion=2022-11-28#primary-rate-limit-for-unauthenticated-users
Are you using any custom parameters or values?
No
What is the expected behavior?
To not fail the release github api call and succesful download of the turbinia configuration template file.
What do you see instead?
wget: server returned error: HTTP/1.1 403 rate limit exceeded
Additional information
No response

Thanks nice find. This one will be a bit difficult to solve with how we are pulling the config files to not have to check them in by default and maintain their versions. Will have to think about it if you have any ideas please feel free to share. In the meantime at least we can pull the config file locally and skip the API calls entirely as a workaround

Agree, as we do not manage the configs at deployement but pull them at boot time I don't see an easy way atm. What we could look into is not using the versioned config (for which you call the github api) but using the raw latest version from github (which has no rate limiting). In theory we could break something if a new config is not backward compatible, but that is something we have never done before (famous last words...).

So we pull from below instead of the whole release version dance.
https://github.com/google/turbinia/raw/master/turbinia/config/turbinia_config_tmpl.py

In theory we could break something if a new config is not backward compatible, but that is something we have never done before (famous last words...).

Hehe that is actually why this logic was put in the first place, because of this issue happening... but agree this was a rare occurrence so may be worth the risk vs. pods failing to deploy due to rate limiting. I think this would be an issue with the containers as well... I can remove it in the next PR and if we can think of a better way adjust from there.


Create a new pull request by comparing

Pull Request Test Coverage Report for Build 568622693

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 94.712%

Totals

Change from base Build 561147018:
0.0%

Covered Lines:
1904

Relevant Lines:
1967

💛  - Coveralls


profileUrl is undefined

Expected behavior
I want to receive profileUrl  but it is not undefined how to fix it
Actual behavior
Tell us what happens instead
System configuration
Tell us about the applicable parts of your setup.
Module versions
"feathers-authentication-oauth2": "^0.2.5"

According to this question getting the actual profile id does not seem to be possible anymore.
Found here https://www.facebook.com/app_scoped_user_id/<profile.id> should direct you to the proper profile though.

Thank you very muck


New version: OpenTofu.Tofu.RC version 1.7.0-rc1

Pull request has been created with komac v2.2.1 :rocket:
Microsoft Reviewers: Open in CodeFlow

Automatic Validation ended with:

Executable C:\Users\validator\AppData\Local\Microsoft\WinGet\Packages\OpenTofu.Tofu.RC__DefaultSource\tofu.exe returned exit code: 127
Executable C:\Users\validator\AppData\Local\Microsoft\WinGet\Links\tofu.exe returned exit code: 127
Executable C:\Users\Validator\AppData\Local\Microsoft\WinGet\Packages\OpenTofu.Tofu.RC__DefaultSource\tofu.exe returned exit code: 127
Executable C:\Users\Validator\AppData\Local\Microsoft\WinGet\Links\tofu.exe returned exit code: 127

(Automated response - build 877.)

Manual Validation ended with:

2024-04-25 09:23:20.549 [FAIL] Installer failed security check. Url: https://github.com/opentofu/opentofu/releases/download/v1.7.0-rc1/tofu_1.7.0-rc1_windows_amd64.zip Result: 0x80004005

(Automated response - build 877.)

Hi @kdpuvvadi,
The package didn't pass a Defender or similar security scan. This might be a false positive and we can rescan tomorrow.
(Automated response - build 877.)

Manual Validation ended with:

2024-04-25 09:28:09.925 [FAIL] Installer failed security check. Url: https://github.com/opentofu/opentofu/releases/download/v1.7.0-rc1/tofu_1.7.0-rc1_windows_amd64.zip Result: 0x80004005

(Automated response - build 877.)

Hi @kdpuvvadi,
The package didn't pass a Defender or similar security scan. This might be a false positive and we can rescan tomorrow.
(Automated response - build 877.)

@wingetbot run

Automatic Validation ended with:

Executable C:\Users\validator\AppData\Local\Microsoft\WinGet\Packages\OpenTofu.Tofu.RC__DefaultSource\tofu.exe returned exit code: 127
Executable C:\Users\validator\AppData\Local\Microsoft\WinGet\Links\tofu.exe returned exit code: 127
Executable C:\Users\Validator\AppData\Local\Microsoft\WinGet\Packages\OpenTofu.Tofu.RC__DefaultSource\tofu.exe returned exit code: 127
Executable C:\Users\Validator\AppData\Local\Microsoft\WinGet\Links\tofu.exe returned exit code: 127

(Automated response - build 877.)


untagged enums with struct variants to not seem to honor struct field attributes.

untagged enums with struct variants to not seem to honor struct field attributes.
#[derive(Debug, Deserialize, Serialize, PartialEq)]
#[serde(untagged)]
pub enum ObjOrRef {
   Object {
    pub name: String,
 },
  Ref {
   #[serde(rename="$ref")]
    pub ref_path: String
  }
}

If I try to deserialize a json object with a $ref key, deserialization fails ( I expected the rename to catch this ) but instead if I deserialize a json object with ref_path key, deserialization works.
I'm not sure field level attributes are supported for enums or not so this may not be a bug if they never where. If they aren't consider this a feature request, I had the expectation that it would work.
I ran into this while working on a enum based solution for https://github.com/softprops/openapi/issues/4

Can you share the whole code that didn't work? I was not able to reproduce this with the following code.
#[macro_use]
extern crate serde_derive;

extern crate serde;
extern crate serde_json;

#[derive(Serialize, Deserialize, Debug)]
#[serde(untagged)]
pub enum ObjOrRef {
    Object {
        name: String,
    },
    Ref {
        #[serde(rename = "$ref")]
        ref_path: String
    }
}

fn main() {
    let a = "{\"name\":\"a\"}";
    println!("{:?}", serde_json::from_str::<ObjOrRef>(a).unwrap());

    let b = "{\"$ref\":\"b\"}";
    println!("{:?}", serde_json::from_str::<ObjOrRef>(b).unwrap());

    let c = ObjOrRef::Object { name: "c".to_owned() };
    println!("{}", serde_json::to_string(&c).unwrap());

    let d = ObjOrRef::Ref { ref_path: "d".to_owned() };
    println!("{}", serde_json::to_string(&d).unwrap());
}

I may have posted this too early, Ill try again tonight.

Yea this was my bad. Sry about that. In parting the enum flexibility in serde is amazing!


Cython Compiler error

Hello, I've tried installing xtts-api-server in a virtual enviroment, but i keep getting this "Cython.Compiler.Errors.CompileError: spacy/kb.pyx" when it reaches "spacy-3.0.6.tar.gz". I've tried searching the internet and found one solution here https://github.com/explosion/spaCy/discussions/12941, but it didn't work. Here is the error code
Preparing metadata (pyproject.toml) ... done
Using cached spacy-3.0.9-cp310-cp310-win_amd64.whl.metadata (17 kB)
Using cached spacy-3.0.8-cp310-cp310-win_amd64.whl.metadata (17 kB)
Using cached spacy-3.0.7.tar.gz (987 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Using cached spacy-3.0.6.tar.gz (7.1 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [164 lines of output]
  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      int length

  cdef class Vocab:
      cdef Pool mem
      cpdef readonly StringStore strings
            ^
  ------------------------------------------------------------

  spacy\vocab.pxd:28:10: Variables cannot be declared with 'cpdef'. Use 'cdef' instead.

  Error compiling Cython file:
  ------------------------------------------------------------
  ...

  cdef class Vocab:
      cdef Pool mem
      cpdef readonly StringStore strings
      cpdef public Morphology morphology
            ^
  ------------------------------------------------------------

  spacy\vocab.pxd:29:10: Variables cannot be declared with 'cpdef'. Use 'cdef' instead.

  Error compiling Cython file:
  ------------------------------------------------------------
  ...

  cdef class Vocab:
      cdef Pool mem
      cpdef readonly StringStore strings
      cpdef public Morphology morphology
      cpdef public object vectors
            ^
  ------------------------------------------------------------

  spacy\vocab.pxd:30:10: Variables cannot be declared with 'cpdef'. Use 'cdef' instead.

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  cdef class Vocab:
      cdef Pool mem
      cpdef readonly StringStore strings
      cpdef public Morphology morphology
      cpdef public object vectors
      cpdef public object _lookups
            ^
  ------------------------------------------------------------

  spacy\vocab.pxd:31:10: Variables cannot be declared with 'cpdef'. Use 'cdef' instead.

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      cdef Pool mem
      cpdef readonly StringStore strings
      cpdef public Morphology morphology
      cpdef public object vectors
      cpdef public object _lookups
      cpdef public object writing_system
            ^
  ------------------------------------------------------------

  spacy\vocab.pxd:32:10: Variables cannot be declared with 'cpdef'. Use 'cdef' instead.

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      cpdef readonly StringStore strings
      cpdef public Morphology morphology
      cpdef public object vectors
      cpdef public object _lookups
      cpdef public object writing_system
      cpdef public object get_noun_chunks
            ^
  ------------------------------------------------------------

  spacy\vocab.pxd:33:10: Variables cannot be declared with 'cpdef'. Use 'cdef' instead.

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      cdef float prior_prob

  cdef class KnowledgeBase:
      cdef Pool mem
      cpdef readonly Vocab vocab
            ^
  ------------------------------------------------------------

  spacy\kb.pxd:31:10: Variables cannot be declared with 'cpdef'. Use 'cdef' instead.
  Copied C:\Users\chipa\AppData\Local\Temp\pip-install-rmgu5q1t\spacy_23a954c137bd4a31bbba166d4d0f65f4\setup.cfg -> C:\Users\chipa\AppData\Local\Temp\pip-install-rmgu5q1t\spacy_23a954c137bd4a31bbba166d4d0f65f4\spacy\tests\package
  Copied C:\Users\chipa\AppData\Local\Temp\pip-install-rmgu5q1t\spacy_23a954c137bd4a31bbba166d4d0f65f4\pyproject.toml -> C:\Users\chipa\AppData\Local\Temp\pip-install-rmgu5q1t\spacy_23a954c137bd4a31bbba166d4d0f65f4\spacy\tests\package
  Cythonizing sources
  Compiling spacy/training/example.pyx because it changed.
  Compiling spacy/parts_of_speech.pyx because it changed.
  Compiling spacy/strings.pyx because it changed.
  Compiling spacy/lexeme.pyx because it changed.
  Compiling spacy/vocab.pyx because it changed.
  Compiling spacy/attrs.pyx because it changed.
  Compiling spacy/kb.pyx because it changed.
  Compiling spacy/ml/parser_model.pyx because it changed.
  Compiling spacy/morphology.pyx because it changed.
  Compiling spacy/pipeline/dep_parser.pyx because it changed.
  Compiling spacy/pipeline/morphologizer.pyx because it changed.
  Compiling spacy/pipeline/multitask.pyx because it changed.
  Compiling spacy/pipeline/ner.pyx because it changed.
  Compiling spacy/pipeline/pipe.pyx because it changed.
  Compiling spacy/pipeline/trainable_pipe.pyx because it changed.
  Compiling spacy/pipeline/sentencizer.pyx because it changed.
  Compiling spacy/pipeline/senter.pyx because it changed.
  Compiling spacy/pipeline/tagger.pyx because it changed.
  Compiling spacy/pipeline/transition_parser.pyx because it changed.
  Compiling spacy/pipeline/_parser_internals/arc_eager.pyx because it changed.
  Compiling spacy/pipeline/_parser_internals/ner.pyx because it changed.
  Compiling spacy/pipeline/_parser_internals/nonproj.pyx because it changed.
  Compiling spacy/pipeline/_parser_internals/_state.pyx because it changed.
  Compiling spacy/pipeline/_parser_internals/stateclass.pyx because it changed.
  Compiling spacy/pipeline/_parser_internals/transition_system.pyx because it changed.
  Compiling spacy/pipeline/_parser_internals/_beam_utils.pyx because it changed.
  Compiling spacy/tokenizer.pyx because it changed.
  Compiling spacy/training/align.pyx because it changed.
  Compiling spacy/training/gold_io.pyx because it changed.
  Compiling spacy/tokens/doc.pyx because it changed.
  Compiling spacy/tokens/span.pyx because it changed.
  Compiling spacy/tokens/token.pyx because it changed.
  Compiling spacy/tokens/span_group.pyx because it changed.
  Compiling spacy/tokens/graph.pyx because it changed.
  Compiling spacy/tokens/morphanalysis.pyx because it changed.
  Compiling spacy/tokens/_retokenize.pyx because it changed.
  Compiling spacy/matcher/matcher.pyx because it changed.
  Compiling spacy/matcher/phrasematcher.pyx because it changed.
  Compiling spacy/matcher/dependencymatcher.pyx because it changed.
  Compiling spacy/symbols.pyx because it changed.
  Compiling spacy/vectors.pyx because it changed.
  [ 1/41] Cythonizing spacy/attrs.pyx
  [ 2/41] Cythonizing spacy/kb.pyx
  Traceback (most recent call last):
    File "C:\Users\chipa\miniconda3\envs\xtts\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
      main()
    File "C:\Users\chipa\miniconda3\envs\xtts\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "C:\Users\chipa\miniconda3\envs\xtts\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
      return hook(config_settings)
    File "C:\Users\chipa\AppData\Local\Temp\pip-build-env-wnhwvv9i\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in get_requires_for_build_wheel
      return self._get_build_requires(config_settings, requirements=['wheel'])
    File "C:\Users\chipa\AppData\Local\Temp\pip-build-env-wnhwvv9i\overlay\Lib\site-packages\setuptools\build_meta.py", line 295, in _get_build_requires
      self.run_setup()
    File "C:\Users\chipa\AppData\Local\Temp\pip-build-env-wnhwvv9i\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup
      exec(code, locals())
    File "<string>", line 224, in <module>
    File "<string>", line 211, in setup_package
    File "C:\Users\chipa\AppData\Local\Temp\pip-build-env-wnhwvv9i\overlay\Lib\site-packages\Cython\Build\Dependencies.py", line 1154, in cythonize
      cythonize_one(*args)
    File "C:\Users\chipa\AppData\Local\Temp\pip-build-env-wnhwvv9i\overlay\Lib\site-packages\Cython\Build\Dependencies.py", line 1321, in cythonize_one
      raise CompileError(None, pyx_file)
  Cython.Compiler.Errors.CompileError: spacy/kb.pyx
  [end of output]

I  was able to get further by creating my own requirements file with the content:

spacy!=3.0.6

and then continue the installation with

pip install xtts-api-server -r req.txt

generally it tries to pull too many spacy versions probably best fixed with a more restrictive approach.

Confirm. It works for my Win 10 system.

Unfortunately it didn't seem to work for me while building a docker image
RUN pip install torch torchaudio --index-url https://download.pytorch.org/whl/cu121
RUN pip install deepspeed

ADD https://raw.githubusercontent.com/daswer123/xtts-api-server/main/requirements.txt ./requirements.txt
RUN printf "\nspacy!=3.0.6" >> requirements.txt

RUN pip install xtts-api-server -r requirements.txt

I downloaded and appended spacy!=3.06 to the file but it still gave me the cython error while building.
  Downloading spacy-3.0.5.tar.gz (7.0 MB)
260.6      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.0/7.0 MB 80.5 MB/s eta 0:00:00
261.1   Installing build dependencies: started
267.9   Installing build dependencies: finished with status 'done'
267.9   Getting requirements to build wheel: started
269.4   Getting requirements to build wheel: finished with status 'error'
269.5   error: subprocess-exited-with-error
269.5
269.5   × Getting requirements to build wheel did not run successfully.
269.5   │ exit code: 1
269.5   ╰─> [164 lines of output]
269.5
269.5       Error compiling Cython file:
269.5       ------------------------------------------------------------
269.5       ...
269.5           int length
269.5
269.5
269.5       cdef class Vocab:
269.5           cdef Pool mem
269.5           cpdef readonly StringStore strings
269.5                 ^
269.5       ------------------------------------------------------------
269.5
269.5       spacy/vocab.pxd:28:10: Variables cannot be declared with 'cpdef'. Use 'cdef' instead.
269.5
269.5       Error compiling Cython file:
269.5       ------------------------------------------------------------
269.5       ...
269.5
269.5
269.5       cdef class Vocab:
269.5           cdef Pool mem
269.5           cpdef readonly StringStore strings
269.5           cpdef public Morphology morphology
269.5                 ^
269.5       ------------------------------------------------------------
269.5
269.5       spacy/vocab.pxd:29:10: Variables cannot be declared with 'cpdef'. Use 'cdef' instead.
269.5
269.5       Error compiling Cython file:
269.5       ------------------------------------------------------------
269.5       ...
269.5
269.5       cdef class Vocab:
269.5           cdef Pool mem
269.5           cpdef readonly StringStore strings
269.5           cpdef public Morphology morphology
269.5           cpdef public object vectors
269.5                 ^
269.5       ------------------------------------------------------------
269.5
269.5       spacy/vocab.pxd:30:10: Variables cannot be declared with 'cpdef'. Use 'cdef' instead.
269.5
269.5       Error compiling Cython file:
269.5       ------------------------------------------------------------
269.5       ...
269.5       cdef class Vocab:
269.5           cdef Pool mem
269.5           cpdef readonly StringStore strings
269.5           cpdef public Morphology morphology
269.5           cpdef public object vectors
269.5           cpdef public object _lookups
269.5                 ^
269.5       ------------------------------------------------------------
269.5
269.5       spacy/vocab.pxd:31:10: Variables cannot be declared with 'cpdef'. Use 'cdef' instead.
269.5
269.5       Error compiling Cython file:
269.5       ------------------------------------------------------------
269.5       ...
269.5           cdef Pool mem
269.5           cpdef readonly StringStore strings
269.5           cpdef public Morphology morphology
269.5           cpdef public object vectors
269.5           cpdef public object _lookups
269.5           cpdef public object writing_system
269.5                 ^
269.5       ------------------------------------------------------------
269.5
269.5       spacy/vocab.pxd:32:10: Variables cannot be declared with 'cpdef'. Use 'cdef' instead.
269.5
269.5       Error compiling Cython file:
269.5       ------------------------------------------------------------
269.5       ...
269.5           cpdef readonly StringStore strings
269.5           cpdef public Morphology morphology
269.5           cpdef public object vectors
269.5           cpdef public object _lookups
269.5           cpdef public object writing_system
269.5           cpdef public object get_noun_chunks
269.5                 ^
269.5       ------------------------------------------------------------
269.5
269.5       spacy/vocab.pxd:33:10: Variables cannot be declared with 'cpdef'. Use 'cdef' instead.
269.5
269.5       Error compiling Cython file:
269.5       ------------------------------------------------------------
269.5       ...
269.5           cdef float prior_prob
269.5
269.5
269.5       cdef class KnowledgeBase:
269.5           cdef Pool mem
269.5           cpdef readonly Vocab vocab
269.5                 ^
269.5       ------------------------------------------------------------
269.5
269.5       spacy/kb.pxd:31:10: Variables cannot be declared with 'cpdef'. Use 'cdef' instead.
269.5       Copied /tmp/pip-install-s0r1p60k/spacy_64f99793b9a745d2bbbfff7332c9c214/setup.cfg -> /tmp/pip-install-s0r1p60k/spacy_64f99793b9a745d2bbbfff7332c9c214/spacy/tests/package
269.5       Copied /tmp/pip-install-s0r1p60k/spacy_64f99793b9a745d2bbbfff7332c9c214/pyproject.toml -> /tmp/pip-install-s0r1p60k/spacy_64f99793b9a745d2bbbfff7332c9c214/spacy/tests/package
269.5       Cythonizing sources
269.5       Compiling spacy/training/example.pyx because it changed.
269.5       Compiling spacy/parts_of_speech.pyx because it changed.
269.5       Compiling spacy/strings.pyx because it changed.
269.5       Compiling spacy/lexeme.pyx because it changed.
269.5       Compiling spacy/vocab.pyx because it changed.
269.5       Compiling spacy/attrs.pyx because it changed.
269.5       Compiling spacy/kb.pyx because it changed.
269.5       Compiling spacy/ml/parser_model.pyx because it changed.
269.5       Compiling spacy/morphology.pyx because it changed.
269.5       Compiling spacy/pipeline/dep_parser.pyx because it changed.
269.5       Compiling spacy/pipeline/morphologizer.pyx because it changed.
269.5       Compiling spacy/pipeline/multitask.pyx because it changed.
269.5       Compiling spacy/pipeline/ner.pyx because it changed.
269.5       Compiling spacy/pipeline/pipe.pyx because it changed.
269.5       Compiling spacy/pipeline/trainable_pipe.pyx because it changed.
269.5       Compiling spacy/pipeline/sentencizer.pyx because it changed.
269.5     Downloading spacy-3.0.5.tar.gz (7.0 MB)
260.6      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.0/7.0 MB 80.5 MB/s eta 0:00:00
261.1   Installing build dependencies: started
267.9   Installing build dependencies: finished with status 'done'
267.9   Getting requirements to build wheel: started
269.4   Getting requirements to build wheel: finished with status 'error'
269.5   error: subprocess-exited-with-error
269.5
269.5   × Getting requirements to build wheel did not run successfully.
269.5   │ exit code: 1
269.5   ╰─> [164 lines of output]
269.5
269.5       Error compiling Cython file:
269.5       ------------------------------------------------------------
269.5       ...
269.5           int length
269.5
269.5
269.5       cdef class Vocab:
269.5           cdef Pool mem
269.5           cpdef readonly StringStore strings
269.5                 ^
269.5       ------------------------------------------------------------
269.5
269.5       spacy/vocab.pxd:28:10: Variables cannot be declared with 'cpdef'. Use 'cdef' instead.
269.5
269.5       Error compiling Cython file:
269.5       ------------------------------------------------------------
269.5       ...
269.5
269.5
269.5       cdef class Vocab:
269.5           cdef Pool mem
269.5           cpdef readonly StringStore strings
269.5           cpdef public Morphology morphology
269.5                 ^
269.5       ------------------------------------------------------------
269.5
269.5       spacy/vocab.pxd:29:10: Variables cannot be declared with 'cpdef'. Use 'cdef' instead.
269.5
269.5       Error compiling Cython file:
269.5       ------------------------------------------------------------
269.5       ...
269.5
269.5       cdef class Vocab:
269.5           cdef Pool mem
269.5           cpdef readonly StringStore strings
269.5           cpdef public Morphology morphology
269.5           cpdef public object vectors
269.5                 ^
269.5       ------------------------------------------------------------
269.5
269.5       spacy/vocab.pxd:30:10: Variables cannot be declared with 'cpdef'. Use 'cdef' instead.
269.5
269.5       Error compiling Cython file:
269.5       ------------------------------------------------------------
269.5       ...
269.5       cdef class Vocab:
269.5           cdef Pool mem
269.5           cpdef readonly StringStore strings
269.5           cpdef public Morphology morphology
269.5           cpdef public object vectors
269.5           cpdef public object _lookups
269.5                 ^
269.5       ------------------------------------------------------------
269.5
269.5       spacy/vocab.pxd:31:10: Variables cannot be declared with 'cpdef'. Use 'cdef' instead.
269.5
269.5       Error compiling Cython file:
269.5       ------------------------------------------------------------
269.5       ...
269.5           cdef Pool mem
269.5           cpdef readonly StringStore strings
269.5           cpdef public Morphology morphology
269.5           cpdef public object vectors
269.5           cpdef public object _lookups
269.5           cpdef public object writing_system
269.5                 ^
269.5       ------------------------------------------------------------
269.5
269.5       spacy/vocab.pxd:32:10: Variables cannot be declared with 'cpdef'. Use 'cdef' instead.
269.5
269.5       Error compiling Cython file:
269.5       ------------------------------------------------------------
269.5       ...
269.5           cpdef readonly StringStore strings
269.5           cpdef public Morphology morphology
269.5           cpdef public object vectors
269.5           cpdef public object _lookups
269.5           cpdef public object writing_system
269.5           cpdef public object get_noun_chunks
269.5                 ^
269.5       ------------------------------------------------------------
269.5
269.5       spacy/vocab.pxd:33:10: Variables cannot be declared with 'cpdef'. Use 'cdef' instead.
269.5
269.5       Error compiling Cython file:
269.5       ------------------------------------------------------------
269.5       ...
269.5           cdef float prior_prob
269.5
269.5
269.5       cdef class KnowledgeBase:
269.5           cdef Pool mem
269.5           cpdef readonly Vocab vocab
269.5                 ^
269.5       ------------------------------------------------------------
269.5
269.5       spacy/kb.pxd:31:10: Variables cannot be declared with 'cpdef'. Use 'cdef' instead.
269.5       Copied /tmp/pip-install-s0r1p60k/spacy_64f99793b9a745d2bbbfff7332c9c214/setup.cfg -> /tmp/pip-install-s0r1p60k/spacy_64f99793b9a745d2bbbfff7332c9c214/spacy/tests/package
269.5       Copied /tmp/pip-install-s0r1p60k/spacy_64f99793b9a745d2bbbfff7332c9c214/pyproject.toml -> /tmp/pip-install-s0r1p60k/spacy_64f99793b9a745d2bbbfff7332c9c214/spacy/tests/package
269.5       Cythonizing sources
269.5       Compiling spacy/training/example.pyx because it changed.
269.5       Compiling spacy/parts_of_speech.pyx because it changed.
269.5       Compiling spacy/strings.pyx because it changed.
269.5       Compiling spacy/lexeme.pyx because it changed.
269.5       Compiling spacy/vocab.pyx because it changed.
269.5       Compiling spacy/attrs.pyx because it changed.
269.5       Compiling spacy/kb.pyx because it changed.
269.5       Compiling spacy/ml/parser_model.pyx because it changed.
269.5       Compiling spacy/morphology.pyx because it changed.
269.5       Compiling spacy/pipeline/dep_parser.pyx because it changed.
269.5       Compiling spacy/pipeline/morphologizer.pyx because it changed.
269.5       Compiling spacy/pipeline/multitask.pyx because it changed.
269.5       Compiling spacy/pipeline/ner.pyx because it changed.
269.5       Compiling spacy/pipeline/pipe.pyx because it changed.
269.5       Compiling spacy/pipeline/trainable_pipe.pyx because it changed.
269.5       Compiling spacy/pipeline/sentencizer.pyx because it changed.
269.5       Compiling spacy/pipeline/senter.pyx because it changed.
269.5       Compiling spacy/pipeline/tagger.pyx because it changed.
269.5       Compiling spacy/pipeline/transition_parser.pyx because it changed.
269.5       Compiling spacy/pipeline/_parser_internals/arc_eager.pyx because it changed.
269.5       Compiling spacy/pipeline/_parser_internals/ner.pyx because it changed.
269.5       Compiling spacy/pipeline/_parser_internals/nonproj.pyx because it changed.
269.5       Compiling spacy/pipeline/_parser_internals/_state.pyx because it changed.
269.5       Compiling spacy/pipeline/_parser_internals/stateclass.pyx because it changed.
269.5       Compiling spacy/pipeline/_parser_internals/transition_system.pyx because it changed.
269.5       Compiling spacy/pipeline/_parser_internals/_beam_utils.pyx because it changed.
269.5       Compiling spacy/tokenizer.pyx because it changed.
269.5       Compiling spacy/training/align.pyx because it changed.
269.5       Compiling spacy/training/gold_io.pyx because it changed.
269.5       Compiling spacy/tokens/doc.pyx because it changed.
269.5       Compiling spacy/tokens/span.pyx because it changed.
269.5       Compiling spacy/tokens/token.pyx because it changed.
269.5       Compiling spacy/tokens/span_group.pyx because it changed.
269.5       Compiling spacy/tokens/graph.pyx because it changed.
269.5       Compiling spacy/tokens/morphanalysis.pyx because it changed.
269.5       Compiling spacy/tokens/_retokenize.pyx because it changed.
269.5       Compiling spacy/matcher/matcher.pyx because it changed.
269.5       Compiling spacy/matcher/phrasematcher.pyx because it changed.
269.5       Compiling spacy/matcher/dependencymatcher.pyx because it changed.
269.5       Compiling spacy/symbols.pyx because it changed.
269.5       Compiling spacy/vectors.pyx because it changed.
269.5       [ 1/41] Cythonizing spacy/attrs.pyx
269.5       [ 2/41] Cythonizing spacy/kb.pyx
269.5       Traceback (most recent call last):
269.5         File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
269.5           main()
269.5         File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
269.5           json_out['return_val'] = hook(**hook_input['kwargs'])
269.5         File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
269.5           return hook(config_settings)
269.5         File "/tmp/pip-build-env-5no_h93a/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
269.5           return self._get_build_requires(config_settings, requirements=['wheel'])
269.5         File "/tmp/pip-build-env-5no_h93a/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 295, in _get_build_requires
269.5           self.run_setup()
269.5         File "/tmp/pip-build-env-5no_h93a/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 311, in run_setup
269.5           exec(code, locals())
269.5         File "<string>", line 224, in <module>
269.5         File "<string>", line 211, in setup_package
269.5         File "/tmp/pip-build-env-5no_h93a/overlay/local/lib/python3.10/dist-packages/Cython/Build/Dependencies.py", line 1154, in cythonize
269.5           cythonize_one(*args)
269.5         File "/tmp/pip-build-env-5no_h93a/overlay/local/lib/python3.10/dist-packages/Cython/Build/Dependencies.py", line 1321, in cythonize_one
269.5           raise CompileError(None, pyx_file)
269.5       Cython.Compiler.Errors.CompileError: spacy/kb.pyx
269.5       [end of output]
269.5
269.5   note: This error originates from a subprocess, and is likely not a problem with pip.
269.5 error: subprocess-exited-with-error
269.5
269.5 × Getting requirements to build wheel did not run successfully.
269.5 │ exit code: 1
269.5 ╰─> See above for output.
269.5
269.5 note: This error originates from a subprocess, and is likely not a problem with pip.
------
Dockerfile:30
--------------------
  28 |     RUN printf "\nspacy!=3.0.6" >> requirements.txt
  29 |
  30 | >>> RUN pip install xtts-api-server -r requirements.txt
  31 |
  32 |     # Expose the container ports
--------------------
ERROR: failed to solve: process "/bin/sh -c pip install xtts-api-server -r requirements.txt" did not complete successfully: exit code: 1
    Compiling spacy/pipeline/transition_parser.pyx because it changed.
269.5       Compiling spacy/pipeline/_parser_internals/arc_eager.pyx because it changed.
269.5       Compiling spacy/pipeline/_parser_internals/ner.pyx because it changed.
269.5       Compiling spacy/pipeline/_parser_internals/nonproj.pyx because it changed.
269.5       Compiling spacy/pipeline/_parser_internals/_state.pyx because it changed.
269.5       Compiling spacy/pipeline/_parser_internals/stateclass.pyx because it changed.
269.5       Compiling spacy/pipeline/_parser_internals/transition_system.pyx because it changed.
269.5       Compiling spacy/pipeline/_parser_internals/_beam_utils.pyx because it changed.
269.5       Compiling spacy/tokenizer.pyx because it changed.
269.5       Compiling spacy/training/align.pyx because it changed.
269.5       Compiling spacy/training/gold_io.pyx because it changed.
269.5       Compiling spacy/tokens/doc.pyx because it changed.
269.5       Compiling spacy/tokens/span.pyx because it changed.
269.5       Compiling spacy/tokens/token.pyx because it changed.
269.5       Compiling spacy/tokens/span_group.pyx because it changed.
269.5       Compiling spacy/tokens/graph.pyx because it changed.
269.5       Compiling spacy/tokens/morphanalysis.pyx because it changed.
269.5       Compiling spacy/tokens/_retokenize.pyx because it changed.
269.5       Compiling spacy/matcher/matcher.pyx because it changed.
269.5       Compiling spacy/matcher/phrasematcher.pyx because it changed.
269.5       Compiling spacy/matcher/dependencymatcher.pyx because it changed.
269.5       Compiling spacy/symbols.pyx because it changed.
269.5       Compiling spacy/vectors.pyx because it changed.
269.5       [ 1/41] Cythonizing spacy/attrs.pyx
269.5       [ 2/41] Cythonizing spacy/kb.pyx
269.5       Traceback (most recent call last):
269.5         File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
269.5           main()
269.5         File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
269.5           json_out['return_val'] = hook(**hook_input['kwargs'])
269.5         File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
269.5           return hook(config_settings)
269.5         File "/tmp/pip-build-env-5no_h93a/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
269.5           return self._get_build_requires(config_settings, requirements=['wheel'])
269.5         File "/tmp/pip-build-env-5no_h93a/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 295, in _get_build_requires
269.5           self.run_setup()
269.5         File "/tmp/pip-build-env-5no_h93a/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 311, in run_setup
269.5           exec(code, locals())
269.5         File "<string>", line 224, in <module>
269.5         File "<string>", line 211, in setup_package
269.5         File "/tmp/pip-build-env-5no_h93a/overlay/local/lib/python3.10/dist-packages/Cython/Build/Dependencies.py", line 1154, in cythonize
269.5           cythonize_one(*args)
269.5         File "/tmp/pip-build-env-5no_h93a/overlay/local/lib/python3.10/dist-packages/Cython/Build/Dependencies.py", line 1321, in cythonize_one
269.5           raise CompileError(None, pyx_file)
269.5       Cython.Compiler.Errors.CompileError: spacy/kb.pyx
269.5       [end of output]
269.5
269.5   note: This error originates from a subprocess, and is likely not a problem with pip.
269.5 error: subprocess-exited-with-error
269.5
269.5 × Getting requirements to build wheel did not run successfully.
269.5 │ exit code: 1
269.5 ╰─> See above for output.
269.5
269.5 note: This error originates from a subprocess, and is likely not a problem with pip.
------
Dockerfile:30
--------------------
  28 |     RUN printf "\nspacy!=3.0.6" >> requirements.txt
  29 |
  30 | >>> RUN pip install xtts-api-server -r requirements.txt
  31 |
  32 |     # Expose the container ports
--------------------
ERROR: failed to solve: process "/bin/sh -c pip install xtts-api-server -r requirements.txt" did not complete successfully: exit code: 1

but maybe I'm doing something else wrong

It worked for me using a local requirements.txt

Copy requirements.txt from project root to docker directory

Add spacy!=3.0.6 requirement (first line)

In Docker file, replace
RUN pip install xtts-api-server`

with
ADD ./requirements.txt ./requirements.txt
RUN pip install xtts-api-server -r requirements.txt

Thanks @cif232 & @Firestorm7893 for the clues

I was able to get further by creating my own requirements file with the content:

spacy!=3.0.6

and then continue the installation with

pip install xtts-api-server -r req.txt

generally it tries to pull too many spacy versions probably best fixed with a more restrictive approach.
Afterwards it worked fine.

Well, this apparently worked. Thank you so much for posting this.

Using Python 3.11.7
Copy requirements.txt attached to main installation folder. 100% flawless install.
python -m venv venv
venv\Scripts\activate
pip install xtts-api-server -r requirements.txt
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121
requirements.txt

It worked for me using a local requirements.txt

Copy requirements.txt from project root to docker directory

Add spacy!=3.0.6 requirement (first line)

In Docker file, replace
RUN pip install xtts-api-server`

with
ADD ./requirements.txt ./requirements.txt
RUN pip install xtts-api-server -r requirements.txt

Thanks @cif232 & @Firestorm7893 for the clues

@CosmicMac, I followed these instructions and did a docker compose build --no-cache, but it still seems to download the spacy-3.0.6.tar.gz and errors out the same.
Any idea what I may be missing?


API for javascript execution status

node tracks async operations and keeps the process open while they are running, and exposes unref as a way to disable this behavior.
I'm curious if Chromium tracks async events and supports similar functionality for JS execution in pages. It would be cool if you could do e.g. browserWindow.on('did-javascript-finish' to get notified when JS finishes executing in a page.
I am not sure if this is possible, but I thought it would be worth asking :)

Hmm what you are actually asking for would be asking to the stack and the message queue / event loop.
I doubt this is possible atm, but would actually be very interesting.

to get notified when JS finishes executing in a page.

I doubt this is really useful. Actually, as long as any event listeners are there and the message queue isn't empty, this is never the case. You would get this 'event' very rarely, if at all, and only for pages that are DESIGNED for that.

It is hard to define when JS finished executing. In web page, under most cases when the document is loaded the JS has already finished executing, most code just starts to run when the onload event happens. So this would be quite meaningless in the case of web page.


Added linear gain filter

Inspired by a comment in #217 I've added a generalized linear gain ramp filter that accepts a beginning and end gain factor and duration.

What should we call it?

Hey I'm sorry I've missed these replies, I've been swamped irl but let me take a look in the next week or two.

I think this is ready to go.

I've done the review comments, one note: I've added a dependency on the "assert_float_eq" package to allow soft comparisons of floats in the case float rounding causes results to be off within the system epsilon.

love the new tests btw, very readable, very clear!

How about I just make a fadeout source?
I'd like to do an example of a linear gain ramp but I was going to wait until this was accepted and then just write an ADSR envelope source and build a new example around that.

I think we had a slight miscommunication. The example examples/mix_multiple_sources.rs changed. It was relatively simple but now contains an iterator, for_each and a queue with tx and rx. To you those are known and simple, but that is not going to be true for everyone.
It is useful to have more difficult examples in there but an example called mix_multiple_sources should in my opinion only do one thing (mix multiple sources).

fadeout source

good addition! we got fadein so why not fade out :+1:
It seems implementation is trivial, and FadeIn and FadeOut are more specific and thus more readable for when someone only wants a fadein or fadeout.

I see, I'll revert the example.

oh and you have the honor of editing the changelog :tada: since these are two nice new api's!
(you can add them under unreleased)

Lets get this merged!

Thanks I'll try to do it in fewer commits next time!

Thanks I'll try to do it in fewer commits next time!

no worries! again thanks for the contribution!


Solved Issue: Create React App requires a dependency:    "babel-eslint": "10.1.0"

Issue: (Got me stuck for a whole day googling errors)
Main Error Message:
The react-scripts package provided by Create React App requires a dependency:    "babel-eslint": "10.1.0"
Solution:

Create / Go to your .env file
Add the following code: SKIP_PREFLIGHT_CHECK=true
Type 'npm start' in your project terminal, you'll see the CRA works properly

Solution courtesy to a Chinese blog: https://bbs.csdn.net/topics/397044707
Notes:

Don't try manually install the latest versions of babel (10.1.0 now), I've tried it and did npm start, it kept asking me to install earlier versions (i.e, 7.1.0, then 8.1.0, very annoying)
Don't give up when you're just started learning React, configuration is an important part of deploying an application.

Solved


Add Laravel 10.x documentation, move version switcher to view

Description

Added the documentation and version for laravel 10.x
Update the documentation list for master
Move the version switcher to the search view
Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed outside of the metadata folder

The empty state flicker should be resolved, by setting the loading state to true by default and updating it to false once we're sure the documentation list is loaded.
Let me know if this is the preferred way to do it!


SQL functions: replace sprintf_s usage

sprintf_s can be replaced with SQLite's own sqlite3_mprintf function.

Implemented in a previous commit.


Not working in production mode with craco

Hello everyone. After building my website with craco, tailwind-toast doesn't work. Did anyone got the same issue?
Best regards.

Same issue, in production the toast either does not show, or is missing many classes and appears unstyled in the wrong place onscreen.


I think this is because the runtime parameters are passed to dotnet.exe instead of my.dll
I tried running my program with dotnet run and the program showed normal.
But I saw from the Windows Task Manager that the above command started my.exe instead of my.dll
Console output :
Unknown option: --type=gpu-process
Unknown option: --no-sandbox
Unknown option: --locales-dir-path=D:\RiderProjects\ChromelyCefGlueVueDemo\ChromelyCefGlueVueDemo\bin\Debug\netcoreapp3.0\locales
Unknown option: --log-file=logs\chromely.cef_new.log
Unknown option: --log-severity=info
Unknown option: --resources-dir-path=D:\RiderProjects\ChromelyCefGlueVueDemo\ChromelyCefGlueVueDemo\bin\Debug\netcoreapp3.0
Unknown option: --lang=en-US
Unknown option: --gpu-preferences=KAAAAAAAAACAAwBAAQAAAAAAAAAAAGAAAAAAAAAAAAAIAAAAAAAAACgAAAAEAAAAIAAAAAAAAAAoAAAAAAAAADAAAAAAAAAAOAAAAAAAAA
AQAAAAAAAAAAAAAAAKAAAAEAAAAAAAAAAAAAAACwAAABAAAAAAAAAAAQAAAAoAAAAQAAAAAAAAAAEAAAALAAAA
Unknown option: --locales-dir-path=D:\RiderProjects\ChromelyCefGlueVueDemo\ChromelyCefGlueVueDemo\bin\Debug\netcoreapp3.0\locales
Unknown option: --log-file=logs\chromely.cef_new.log
Unknown option: --log-severity=info
Unknown option: --resources-dir-path=D:\RiderProjects\ChromelyCefGlueVueDemo\ChromelyCefGlueVueDemo\bin\Debug\netcoreapp3.0
Unknown option: --lang=en-US
Unknown option: --service-request-channel-token=10844765685027612371
Unknown option: --mojo-platform-channel-handle=2924
.NET Core SDK (3.0.100-preview7-012821)
Usage: dotnet [runtime-options] [path-to-application] [arguments]

Execute a .NET Core application.

runtime-options:
  --additionalprobingpath <path>   Path containing probing policy and assemblies to probe for.
  --additional-deps <path>         Path to additional deps.json file.
  --fx-version <version>           Version of the installed Shared Framework to use to run the application.
  --roll-forward <setting>         Roll forward to framework version  (LatestPatch, Minor, LatestMinor, Major, LatestMajor, Disable).

path-to-application:
  The path to an application .dll file to execute.

Usage: dotnet [sdk-options] [command] [command-options] [arguments]

Execute a .NET Core SDK command.

sdk-options:
  -d|--diagnostics  Enable diagnostic output.
  -h|--help         Show command line help.
  --info            Display .NET Core information.
  --list-runtimes   Display the installed runtimes.
  --list-sdks       Display the installed SDKs.
  --version         Display .NET Core SDK version in use.

SDK commands:
  add               Add a package or reference to a .NET project.
  build             Build a .NET project.
  build-server      Interact with servers started by a build.
  clean             Clean build outputs of a .NET project.
  help              Show command line help.
  list              List project references of a .NET project.
  msbuild           Run Microsoft Build Engine (MSBuild) commands.
  new               Create a new .NET project or file.
  nuget             Provides additional NuGet commands.
  pack              Create a NuGet package.
  publish           Publish a .NET project for deployment.
  remove            Remove a package or reference from a .NET project.
  restore           Restore dependencies specified in a .NET project.
  run               Build and run a .NET project output.
  sln               Modify Visual Studio solution files.
  store             Store the specified assemblies in the runtime package store.
  test              Run unit tests using the test runner specified in a .NET project.
  tool              Install or manage tools that extend the .NET experience.
  vstest            Run Microsoft Test Engine (VSTest) commands.

Additional commands from bundled tools:
  dev-certs         Create and manage development certificates.
  fsi               Start F# Interactive / execute F# scripts.
  sql-cache         SQL Server cache command-line tools.
  user-secrets      Manage development user secrets.
  watch             Start a file watcher that runs a command when files change.

Run 'dotnet [command] --help' for more information on a command.

@TheForgetTime yes. Is this the subprocess version?
Remember we discussed this in https://github.com/chromelyapps/Chromely/issues/111
If you are not running the subprocess version you have to publish dotnet core first.

@TheForgetTime nugets are now updated to use subprocess. Just FYI.
Thanks.


small shared cache size (such as 1GB)  with big region size could lead to extreme slow TPC-C prepare

Bug Report

What version of TiKV are you using?

v6.0
What operating system and CPU are you using?

centos 7
Steps to reproduce

set storage.block-cache.capacity with 1GB
set coprocessor.region-split-size with 10GB
set coprocessor.region-max-size with 15GB
run tpc-c 1500 warehouse prepare
What did you expect?
it can be finished within 8 hours or less.
What did happened?
it cannot finish in 24 hours and the qps is down to single digit. The scheduler worker CPU is high and filter insert throughput is very high.

The reason is that under small block capacity and fix shard bits  6(the shard bits are not public configuration), each shard is only 16MB, which is not enough to hold filter block data when region is large---as the compaction guard could result in big SST file size under big region for big level compaction.  When one shard size is not enough to hold filter block data, it will try to load the filter block into cache repeatedly which consumes lots of CPU by calculating checksum.

/assign tonyxuqqi

/close

The issue is fixed by multi files' snapshot. The PR is https://github.com/tikv/tikv/pull/11659


Integral Curve operator seems to need multiple applies to get all the settings

Describe the bug
While developing the potential flow tutorial example -- I noticed that my number of seed points
would not correctly take unless I hit apply multiple times.  I suspect this is due to the optional logic which enables different options based on the seed type, we should dive deeper and resolve the issue.
Helpful additional information
(Please click check boxes AFTER submitting ticket)

[ ] Did VisIt crash?
[x] Did you get wrong results?

Impact

[ ] High - User productivity significantly degraded
[x] Medium - User productivity partially degraded
[ ] Low - User productivity trivially degraded

Likelihood

[ ] High - occurrence is not specific to platform, data, config, a combination of operators, queries, etc.
[x] Medium - neither low nor high likelihood
[ ] Low - occurrence is specific to combination of multiple factors such as configuration, data, platform, etc.

To Reproduce
(I can't provide a link to the tutorial right now b/c I can't get on any website except for github at the moment, but there is a place in the streamline section where we tell folks to hit apply multiple times for good measure, you can replicate with those instructions)
Expected behavior
One apply should be enough :-)
Desktop

macOS 10.13
VisIt 3.0.1

@cyrush  Can you be a bit more explict regarding which controls had issues and how to reproduce?

Check this out:
https://visit-sphinx-github-user-manual.readthedocs.io/en/develop/tutorials/PotentialFlow.html#plotting-streamlines-of-velocity
See where it says "for good measure"
Basically the source changes for the seeds don't take until we apply twice.

Thanks for the link. I can't seem to reproduce (linux). I took a look at the code and it falls in line with other lineEdits within VisIt.  However, I recall issues cropping up before, so perhaps we need to connect the 'editingFinished' signal in addition to the already connected 'returnPressed' signal for all lineEdits.  They can be connected to the same slot.

Perhaps you can make the change for that window and then have @griffin28 build and test the change.

@biagas I can't reproduce either. It'll be very useful if @cyrush could demonstrate what he is encountering during our WebEx.

Assigned to Cyrus, cannot help further since I cannot duplicate.

FYI...I feel like I have seen this also when running locally on my OSX system. I know I've seen it in histogram plot attributes. I can't say for sure I've seen in IC operator attributes.

On both develop and 3.1RC on my local mac, when drawing pseudocolor of potential flow v_mag, I get this error:
The compute engine running on host key-largo.llnl.gov issued the following warning:
In domain 0, your nodal variable "v" has 133560 values, but it should have 60765.
Some values were removed to ensure VisIt runs smoothly.

Anybody else see this? I do not get this error in 3.1.4 on pascal.

Blew out my .visit file and it went away. I believe it was because I had Automatically remove duplicate nodes from fully disconnected unstructured grids selected

@cyrush I believe I have duplicated the issue you saw and tracked it down to keyboard tracking disabled for spinboxes. If you manually change the value of the text instead of using the arrows to increment values, then the change is not registered after the textbox loses focus. This happens the first time you click Apply, so changes won't go into effect until the second time you click Apply.
Keyboard tracking was disabled because of the implications when Auto-apply is turned on. See conversation with Kathleen here.

@rusu24edward Did you also try adding a connection to the editingFinished signal? This is the signal that should trigger when the spinbox loses focus.
From QT docs:
void QAbstractSpinBox::editingFinished()
This signal is emitted editing is finished. This happens when the spinbox loses focus and when enter is pressed.

Did you also try adding a connection to the editingFinished signal?

Yes, I did try that. If the user hits enter or clicks into another textbox/setting, then the spinbox will "lose focus", and the update will be fine. However, it's more natural (for me at least, and maybe for some other users) to change the value and immediately hit apply.

There must be a difference between the order in which Mac sends signals then Windows/linux.
When I add editingFinished signal for the 'samples along line' spinbox, and I change the text manually, I don't have to click enter or any other button.  As soon as I  click Apply , the changes  take effect.

Yes, I confirmed this. The Apply from the click will execute before the apply from the lose focus on my mac.

Weird. On Windows at least, the Apply is performed (no call to SetOperatorOptions), then the editingFinished gets triggered which connects to my slot, which updates the atts with the new value and triggers a new Apply, and this second call to Apply triggers the call to SetOperatorOptions.
How did you define the slot connected to editingFinished?
Here's the changes I made:
first the connection in CreateSourceTab:
    connect(sampleDensity[0], SIGNAL(editingFinished()), this, SLOT(sampleDensity0Changed2()));

Then the slot:
void
QvisIntegralCurveWindow::sampleDensity0Changed2()
{
cerr << "QvisIntegralCurveWindow::sampleDensity0Changed2 to " << sampleDensity[0]->value() << endl;
    atts->SetSampleDensity0(sampleDensity[0]->value());
    Apply();
cerr << "QvisIntegralCurveWindow::sampleDensity0Changed2 ... done" <<  endl;
}

We may need to find mac-specific logic.
If you turn on keyboard tracking for that spin box, and also have 'auto apply' turned on, does the IC update with every keystroke in that spinbox (eg if you type '12') does it update for '1' and then again for '12'?

Yup, that's how I did it too. editingFinished is worse that valueChanged: if I type a different value and then I hit apply before losing focus, then the textbox updates back to what it was before my typed my change, lol.
Yes, with keyboard tracking set to true and auto apply on, every keystroke in the spinbox with valuleChanged will update the plot, which can be quite time consuming for integral curves.
With keyboard tracking set to true and auto apply on and using editingFinished instead of valueChanged, then auto apply doesn't really work for changes to the spin box, even when losing focus or pressing enter. I have to manually click apply for the changes to take affect. It's like we want this behavior for the case when "auto apply" is not selected, but we get it only when "auto apply" is selected, and we don't get auto apply happening. Furthermore, auto apply does seem to happen even when using the up-down buttons next to the spin box to change the value.

Closing this because it is addressed as part of #5334


Invalid typescript file error with latest ngentest version in angular 15

Getting below error in Angular 15 , using windows
"Error. invalid typescript file. e.g., Usage $0  [options]"
Tried from git bash and npm runkit
————————————————————————
from vs code terminal getting below error
PS C: \Users \xy \myNewApp \src \app> gentest app. component.ts -s
TypeError: Cannot read properties of null (reading '1°)
at run (C: \Users \xyz Appdata\ Roaming \pm \node modules \ngentest \ index. js:149:6)
®
at Object. (C: \Users \xyz \AppData\Roaming \npm\node modules \ngentest\index. js:228:3)
at Module.
, compile (node: internal/modules/cjs/loader :1105:14) at Object.Module._extensions..js (node: internal/modules/cjs/loader: 1159:10) at Module. load (node: internal/modules/cjs/loader:981:32) at Function.Module. load (node: internal/modules/cjs/loader:822:12) at Function.executeUserEntryPoint [as runMain] (node: internal/modules/run main: 77:12) at node: internal/main/run main module: 17:47
PS C: \Users \xyz\myNewApp\sre \app› cd • \test
PS C: \Users \xyz\myNewApp\src\app\test> gentest test.component.ts
• TypeError: Cannot read properties of null (reading
"1°)
at run (C: \users\xyz \AppData\ Roaming \pm \node modules Ingentest \index.
I have installed ngentest module locally and globally both
@allenhwkim could you please help here?

I might have some missing case
To debug this, i need your app.component.ts
Plz attach it here

@allenhwkim  i have tried with simple newly created application and component.
app.component.ts file having default code which generated at the time of application creation nothing new. Please resolve this soon
angular version 15.2.9

I tested with the following code and it works fine
import { Component } from '@angular/core';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent {
  title = 'ng15';
}

I published slightly modified version 1.5.1, and it works fine
I also tested with version 1.5.0, and it also works fine(result attached here).
test/ng15 (main) $ ng version

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/

Angular CLI: 15.2.9
Node: 18.16.0
Package Manager: npm 9.5.1
OS: darwin arm64

Angular: 15.2.9
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1502.9
@angular-devkit/build-angular   15.2.9
@angular-devkit/core            15.2.9
@angular-devkit/schematics      15.2.9
@schematics/angular             15.2.9
rxjs                            7.8.1
typescript                      4.9.5

test/ng15 (main) $ npm ls ngentest
<EMAIL_ADDRESS>/Users/allenkim/projects/test/ng15
└──<EMAIL_ADDRESS>
test/ng15 (main) $ ngentest src/app/app.component.ts
// @ts-nocheck
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { Pipe, PipeTransform, Injectable, CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA, Directive, Input, Output } from '@angular/core';
import { isPlatformBrowser } from '@angular/common';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { By } from '@angular/platform-browser';
import { Observable, of as observableOf, throwError } from 'rxjs';

import { Component } from '@angular/core';
import { AppComponent } from './app.component';

@Directive({ selector: '[oneviewPermitted]' })
class OneviewPermittedDirective {
  @Input() oneviewPermitted;
}

@Pipe({name: 'translate'})
class TranslatePipe implements PipeTransform {
  transform(value) { return value; }
}

@Pipe({name: 'phoneNumber'})
class PhoneNumberPipe implements PipeTransform {
  transform(value) { return value; }
}

@Pipe({name: 'safeHtml'})
class SafeHtmlPipe implements PipeTransform {
  transform(value) { return value; }
}

describe('AppComponent', () => {
  let fixture;
  let component;

  beforeEach(() => {
    TestBed.configureTestingModule({
      imports: [ FormsModule, ReactiveFormsModule ],
      declarations: [
        AppComponent,
        TranslatePipe, PhoneNumberPipe, SafeHtmlPipe,
        OneviewPermittedDirective
      ],
      schemas: [ CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA ],
      providers: [

      ]
    }).overrideComponent(AppComponent, {

    }).compileComponents();
    fixture = TestBed.createComponent(AppComponent);
    component = fixture.debugElement.componentInstance;
  });

  afterEach(() => {
    component.ngOnDestroy = function() {};
    fixture.destroy();
  });

  it('should run #constructor()', async () => {
    expect(component).toBeTruthy();
  });

});

I also tested with the previous version 1.5.0 and it works fine too
test/ng15 (main) $ npm i<EMAIL_ADDRESS>
removed 1 package, changed 1 package, and audited 965 packages in 917ms

106 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
test/ng15 (main) $ npm ls ngentest
<EMAIL_ADDRESS>/Users/allenkim/projects/test/ng15
└──<EMAIL_ADDRESS>
test/ng15 (main) $ ngentest src/app/app.component.ts
// @ts-nocheck
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { Pipe, PipeTransform, Injectable, CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA, Directive, Input, Output } from '@angular/core';
import { isPlatformBrowser } from '@angular/common';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { By } from '@angular/platform-browser';
import { Observable, of as observableOf, throwError } from 'rxjs';

import { Component } from '@angular/core';
import { AppComponent } from './app.component';

@Directive({ selector: '[oneviewPermitted]' })
class OneviewPermittedDirective {
  @Input() oneviewPermitted;
}

@Pipe({name: 'translate'})
class TranslatePipe implements PipeTransform {
  transform(value) { return value; }
}

@Pipe({name: 'phoneNumber'})
class PhoneNumberPipe implements PipeTransform {
  transform(value) { return value; }
}

@Pipe({name: 'safeHtml'})
class SafeHtmlPipe implements PipeTransform {
  transform(value) { return value; }
}

describe('AppComponent', () => {
  let fixture;
  let component;

  beforeEach(() => {
    TestBed.configureTestingModule({
      imports: [ FormsModule, ReactiveFormsModule ],
      declarations: [
        AppComponent,
        TranslatePipe, PhoneNumberPipe, SafeHtmlPipe,
        OneviewPermittedDirective
      ],
      schemas: [ CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA ],
      providers: [

      ]
    }).overrideComponent(AppComponent, {

    }).compileComponents();
    fixture = TestBed.createComponent(AppComponent);
    component = fixture.debugElement.componentInstance;
  });

  afterEach(() => {
    component.ngOnDestroy = function() {};
    fixture.destroy();
  });

  it('should run #constructor()', async () => {
    expect(component).toBeTruthy();
  });

});
test/ng15 (main) $

@Deepali17 please attach your app.component.ts.
I close this task now, but  I will reopen this task when I can generate the error with your app.component.ts.

@allenhwkim still I am getting error
angular, node and npm version

app.component.ts file

Error

and before above error i was getting error for class, component, directive , pipe template.ts.ejs file so i copied that in src folder from ngentest repo after that its resolved  but is it mandatory?
and please help me to resolve can’t read properties of null
or if you can share temporary repo where you tried above code and able to generate so i will cross verify project structure and configuration . I can try your repo at my system

Have you tried version 1.5.1?
On Sun, Aug 27, 2023 at 1:24 PM Deepali Dhanotia @.***>
wrote:

@allenhwkim https://github.com/allenhwkim still I am getting error
angular, node and npm version
[image: IMG_7174]
https://user-images.githubusercontent.com/13298040/263544118-4fb3de37-6abc-4cd7-a91a-1a467510f7d1.jpeg
app.component.ts file
[image: IMG_7172]
https://user-images.githubusercontent.com/13298040/263544136-912ec540-28ca-4c7d-807c-994d33bf83ba.jpeg
Error
[image: IMG_7173]
https://user-images.githubusercontent.com/13298040/263544171-d8539254-b934-4574-89f1-eeb76c1c3876.jpeg
and before above error i was getting error for class, component, directive
, pipe template.ts.ejs file so i copied that in src folder from ngentest
repo after that its resolved but is it mandatory?
and please help me to resolve can’t read properties of null
or if you can share temporary repo where you tried above code and able to
generate so i will cross verify project structure and configuration . I can
try your repo at my system
—
Reply to this email directly, view it on GitHub
https://github.com/allenhwkim/ngentest/issues/65#issuecomment-1694719920,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAK7AJS56EMQBYD7R4GLIKTXXN7F7ANCNFSM6AAAAAA37XX67Q
.
You are receiving this because you were mentioned.Message ID:
@.***>

I have re installed globally ngentest and now able to generate file. Thanks


Misleading priority description

I think the description for policy priority is wrong in the M365 Apps Admin Center. Based on the documentation configurations with a higher number have a higher priority.

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

ID: 1f75100b-c7fa-4da3-c8a1-f5ef99208148
Version Independent ID: 1f75100b-c7fa-4da3-c8a1-f5ef99208148
Content: Overview of Cloud Policy service for Microsoft 365 - Deploy Office
Content Source: DeployOffice/admincenter/overview-cloud-policy.md
Service: o365-proplus-itpro
GitHub Login: @nicholasswhite
Microsoft Alias: nwhite

@chhopkin   Can you take a look at this? Thanks.

To make it easier for you to submit feedback on articles on learn.microsoft.com, we're transitioning our feedback system from GitHub Issues to a new experience.
As part of the transition, this GitHub Issue will be moved to a private repository. We're moving Issues to another repository so we can continue working on Issues that were open at the time of the transition. When this Issue is moved, you'll no longer be able to access it.
If you want to provide additional information before this Issue is moved, please update this Issue before December 15th, 2023.
With the new experience, you no longer need to sign in to GitHub to enter and submit your feedback. Instead, you can choose directly on each article's page whether the article was helpful. Then you can then choose one or more reasons for your feedback and optionally provide additional context before you select Submit.
Here's what the new experience looks like.
Note: The new experience is being rolled out across learn.microsoft.com in phases. If you don't see the new experience on an article, please check back later.
First, select whether the article was helpful:

Then, choose at least one reason for your feedback and optionally provide additional details about your feedback:

Article was helpful
Article was unhelpful

Finally, select Submit and you're done!

Logged a bug


[BUG] - No Bookmark Option (C -s)

Description
Cannot bookmark an FTP or SCP. Ctrl - s not wokring nor do I see such option by checking help.
Environment

OS: Ubuntu
Architecture [x64]
New Rust
termscp version 0.11.3

from the connection form, CTRL+S currently works on 0.11.3. Are you sure you're trying to save the bookmark from the connection form?

"From the Connection Form", that was it,  much appreciated


Change autoload to PSR-4

http://www.php-fig.org/psr/psr-0/

Deprecated - As of 2014-10-21 PSR-0 has been marked as deprecated. PSR-4 is now recommended as an alternative.

Affected sub-projects:

https://github.com/event-band/band-framework
https://github.com/event-band/band-symfony-adapter
https://github.com/event-band/band-serializer-jms
https://github.com/event-band/band-symfony-bundle
https://github.com/event-band/band-transport-amqp-lib

Agree, required for 2.0


Pull request checks failling because of failing lint of existing code in main

Currently, pull requests such as #30 are failing, because of Lint problems with existing code in main:
Error: example/nengo/nir-lorentz.py:182:89: E501 Line too long (94 > 88 characters)
Error: example/nengo/nir-test.py:67:89: E501 Line too long (94 > 88 characters)
Error: example/sinabs/import_to_sinabs.py:2:20: F401 torch.nn imported but unused
Error: example/sinabs/import_to_sinabs.py:3:25: F401 sinabs.layers imported but unused
I suggest locking the main branch from direct commits to enforce the use of pull requests along with the checks.

This issue should be fixed now. But I agree about marking the main branch as protected.

main branch is locked now, can only take up new commits through PRs. @sheiksadique you might want to check pre-commit as noted here https://github.com/neuromorphs/NIRTorch#for-developers
Will add a comment in the NIR readme too


feat(link)!: migrate link to core tokens

Description

Update windows high contrast mode
Update YAML examples
Remove t-shirt sizes
Add Static White and Static Black variants

How and where has this been tested?

Tested locally referencing the Batch 2 XD file.
Tested WHCM with forced colors in Chrome Emulation

Screenshots

To-do list

[x] If my change impacts other components, I have tested to make sure they don't break.
[x] If my change impacts documentation, I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[x] I have tested these changes in Windows High Contrast mode.

[ ] This pull request is ready to merge.

VRT is: https://spectrum-visual-regression.ci.corp.adobe.com/view/Spectrum CSS/job/css-vrt-test/40/
1504 link.zip

VRT is: https://spectrum-visual-regression.ci.corp.adobe.com/view/Spectrum CSS/job/css-vrt-test/40
1504 link.zip

I added missing mod tokens and updated whcm styles

Released beta:
4.0.0-beta.0
@yosevu can you open an PR against the SWC repo with this update?


Sequence migrations fails after updating from 2.1.0 to 2.1.2

After upgrading from 2.1.0 to 2.1.2 migrations started failing when deployed to servers using 9.x.
Looking at the logs of migrations I see
CREATE SEQUENCE "AspNetUserClaims_Id_seq" AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE NO CYCLE;

Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "AS"

Looks like the code checking version considers null as a valid "at least" version always and if not set using the new SetPostgresVersion setting it fails with 9.x.
bool VersionAtLeast(int major, int minor)
            => _postgresVersion is null || new Version(major, minor) <= _postgresVersion;

I was able to fix the issue but wanted to report the bug as it breaks existing code.

The design of the compatibility checks is intended to assume the most recent version of PostgreSQL unless otherwise specified, which is why null always passes.
It looks like the docs have a note about supporting the new IDENTITY columns, but not warning about needing to specify an explicit version to opt out of those changes.
I can update the docs to include a breaking change warning for 2.1 and 2.2.
Related
#607
#611
#612
#639

Thanks @austindrenski, looks good, I guess we will need to be extra careful when updating.
Just out of curiosity, is it not possible to retrieve the server version and set it by default with SetPostgresVersion? This would avoid the need of having to pass in the version number from CI/CD.

Just out of curiosity, is it not possible to retrieve the server version and set it by default with SetPostgresVersion?

There was some discussion about that initially, but for a couple of reasons, the EF Core team encourages explicit user opt-in/opt-out in situations like this.

Closing as the provider is behaving as expected.

Hi guys I've upgraded and this stills doesn't work fully as expected, I'm using diferente contexts with different schemas, só as I've noted when generating on a different schema it doesn't put the schema on the OWNED BY part of the SQL giving the follow error when trying to update:
Failed executing DbCommand (9ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
ALTER TABLE model.services ALTER COLUMN number SET DEFAULT (nextval('services_number_seq'));
ALTER SEQUENCE services_number_seq OWNED BY services.number;
**Npgsql.PostgresException (0x80004005): 42P01: relation "services" does not exist**


Pin Nuget package versions using the new SDK feature

This PR replaces the package versions that were pinned via MsBuild variables (<MicrosoftExtensionsDependencyModelVersion>2.0.0</MicrosoftExtensionsDependencyModelVersion> and so on) with the new MsBuild (shipped with SDK 2.1.300) pinning via Directory.Build.targets and the <PackageReference Update="Microsoft.Extensions.DependencyModel" Version="2.0.0" /> style syntax.
It's a net gain on having less code and a bit easier on the eye.
I also took the liberty to remove the OmniSharp.Nuget project from the source control (we excluded it from the solution and don't package it or do anything with it, yet it was still unnecessarily participating in the build process via i.e. restore). It doesn't make sense to keep code around 'just in case'. If it's needed in the future we can always reach back into the history 😀
I also updated the xUnit test project to 2.3.1 since it was running on 2.2.0. As already widely documented in various PRs here, there is the need to pass the targetFrameworkVersion to vstest since xUnit 2.3.0 so needed to update the tests accordingly.

I hadn't seen this feature in action yet. So the trick is to define <PackageReference/>s with Update?

Yeah, at project level you just do <PackageReference Include="Foo" />, without the version.
And then you globally set the versions using <PackageReference/> with Update.
I learned this from David here. He also mentioned that this feature is likely going to be incorporated into VS for 1st class support from the GUI.

There was an additional bug in more complex scripting setups, with multiple #load nuget:... directives, that was described here https://github.com/filipw/dotnet-script/issues/294.
This scenario is now fixed in OmniSharp via this PR as I have updated the Dotnet.Script.* libraries to the latest versions.


Add additional EncodeJson instances

CurrencySymbol has a DecodeJson instance, but no EncodeJson. This means that types that are exported via the argonaut option to purescript-bridge fail when they wrap a currency symbol.

We can also add one for Rational. Let me know if there's more types that need the instance


Serve asset files

I have a question regarding the purpose of this module:
Can I use this module to serve static assets like images, videos and other miscellaneous files?
With the provided example every request maps to an index.html file inside the rootPath and I wasn't able to figure out a way to access any other file within the rootPath.
Am I missing something?

@0xC0DEBA5E According to my understanding, this module is for providing an out-of-box solution for serving Single Page Applications with a built index.html, among other static assets. It's aggressively overriding / (or the URL at options.renderPath), and always looking for index.html (and if missing, throws an exception).
If you just want to serve some static assets (like images, CSS, etc) and not an entire SPA, I would advise you to not use this module, but a more simplistic approach, like this:
import { NestFactory } from '@nestjs/core';
import { NestExpressApplication } from '@nestjs/platform-express';
import { AppModule } from './app.module';
import * as path from 'path';

async function bootstrap() {
  const app = await NestFactory.create<NestExpressApplication>(AppModule);
  app.useStaticAssets(path.join(__dirname, '..', 'public'));
  await app.listen(3000);
}

bootstrap();

At least this is what I'm using, and it works perfectly. Let me know if you need any more help!

I am wondering what's the difference between this module and useStaticAssets under the hood?
And is there any drawback if I use this module to serve static assets like images and videos instead of useStaticAssets  method?


Archive routify adder?

The routify docs say to get started with:
npm init routify@latest

It seems odd then that we'd have a routify adder because I don't expect folks would create a vanilla Vite project and run the routify adder rather than just running npm init routify@latest as the Routify docs suggest.

Up until now (routify v2) the cli command you mentioned only worked to create a new project.
I have made a quick test with v3, and it looks as it's basically using the same cli, so this also only works for new projects.
If you already have a project setup, it appears to be just overriding your existing files, basically destroying your project setup. At least that's what I experienced.


http://www.ppma.pw/ is down

http://www.ppma.pw/ is a link mentioned in the project description, at this time it's down.

I removed link now.
Thank you


suit coords just dont work some times

Description

sometimes when you select somebody on the suit coords thing it just snaps to the middle of the map even though they have coordinates on
Reproduction

it seems random
Screenshots

I think thats because the person is offstation.

yup

Are they even on the same map

If they switch map they disapear from crew monitoring.

gonna close this because the new crew monitor probably changed something


Add image functions

Added the crop_and_resize method from https://www.tensorflow.org/api_docs/python/tf/image/crop_and_resize.

#350


finish making all the times consistent and in local time

@thecristen There was bug that made it's way into master and is causing builds to break, can your rebase your PR?

@ssayer done


Move arm in bulk1

The path update is in reference to the github PR Azure/azure-sdk-for-js#2194
Please review Azure/azure-sdk-for-js#2194 as well
Moving following packages for arm-* from packages@Azure and putting them under an sdk directory:

arm-automation
arm-azurestack
arm-batch
arm-batchai
arm-billing
arm-cdn
arm-consumption
arm-containerinstance
arm-customerinsights
arm-databox
arm-databricks
arm-datacatalog
arm-datafactory
arm-deploymentmanager
arm-deviceprovisioningservices
arm-devspaces
arm-devtestlabs
arm-dns
arm-domainservices
arm-edgegateway
arm-eventgrid
arm-eventhub

@salameer @daschult @kpajdzik @Azure/azure-sdk-eng

Automation for azure-sdk-for-ruby

Automation for azure-sdk-for-js

Automation for azure-sdk-for-go

Automation for azure-sdk-for-python

Automation for azure-sdk-for-java

Can one of the admins verify this patch?

All changes in this PR are related to Typescript output. Since @kpajdzik already approved, I am approving this PR


 It's running there: https://github.com/martinRenou/xeus-python-shell/pull/1/checks?check_run_id=3493992072 but failing due to a missing debugpy dependency

Passed


Support multiple locations or wildcard?

The format of the command $ oval validate LOCATION means oval can validate one file at a time. In many modern applications, there can be several, if many, swagger files. Can we support multiple paths or a pattern?
Example of multiple paths:
$ oval validate LOCATION1 LOCATION2 LOCATION3 ...

Example of using a pattern:
$ oval validate **/swagger.json

In either case, the returned warnings or errors would indicate the specific file path the warning/error occurred in.
I'd b happy to take a crack at a PR for this.

The more I think about it, I do like the file-based collection of errors and warnings.  If the input is a collection of files, the output should be as a collection of files.  And since your ideal output for Standard output is file-based as well, it would create a consistency.  If I had to implement anything right now, it would be Option 2.  I could see a simpler output where files was removed and the top-level properties of the JSON output would be the the input file paths, whose values would be the per-file errors/warnings.
Unless you completely hate this, I can knock it out pretty quickly.  Sorry for the delay.

@whitlockjc That sounds reasonable and user-friendly. Thanks for jumping onto this. 🙏


Disable caching in URLConnection when loading plugin checkers

Fixes #588
We were seeing bizarre issues when running builds with a daemon process and making changes to Error Prone checkers (see #588 for more details).  We eventually diagnosed the problem as due to caching of jar files loaded by ServiceLoader, which is enabled by default in URLConnection.  This change disables that caching only while checker plugins are being loaded.  The code required to disable this caching is a bit hackish, as URLConnection only exposes the global setting via an instance method.  (This issue is fixed more cleanly inside ServiceLoader in JDK 9.)
The change also imposes some synchronization, as we may be running builds from multiple threads.  The synchronization is not airtight (other unrelated code could in principle be modifying the URLConnection setting), but it's better than nothing.

/cc @kageiit

Regarding the CLA, I am contributing on behalf of Uber Technologies.  As far as I know, I have been added to the appropriate groups.  Let me know if still need to fill out some form or take some other step.  Thanks!

Sorry for the inconvenience, but we've been told we can't collaborate with you at this time. If the situation changes, we'll let you know.

Ping @nglorioso @cushon I believe this can be reopened now?

Bump on this again :)

Thanks for the detailed review!  I'm out of the office until Tuesday next week; I'll address the comments then.

Some preliminary testing has shown that disabling this caching at the build-system level (in our case, Buck) seems to have no negative impact on build performance.  If this result survives some more rigorous testing, I'll close this PR, as doing the fix in the build system is cleaner (e.g., we can only disable caching when running javac in a daemon).

After further thought / discussion, we don't think this change belongs in Error Prone; it should be done at the build system level.  So I'm going to close this out.  Thanks for the reviews and feedback!


RFC: Built-in !count variable/directive

Feature Name: builtin-count-directive

Summary
Add a new built-in variable/directive "!count" that can be used to get the
count of matching nodes (or the count of an array or nested query)
{
  "name": "James",
  "?groups": {
    "!count": "*"
  }
}

[
  {
    "name": "James",
    "groups": [{
      "count(*)": 3,
    }]
  }
]

Motivation
This is a very commonly used grouping operation that is also supported by almost
all backend data stores (MongoDB, SQL, Neo4j, etc...).
While in the MongoDB case, a developer can just check the array length of the id
array to count ALL records, the same operation is more expensive in relational,
graph, and key/value databases.
Additionally, the count directive allows counting with Search terms and an
argument of what value to count (for counting non-null and non-absent values).
Detailed design
The key "!count" will be added as a new variable/directive.  The value of the
variable will be the field/property to count, with * being a special value
indicating all variables.
When the count directive is included in the query of a collection, an array will
still be returned, but with a single element which contains a count(field) key
and the resulting variable.
The value returned for that query/nested-query/subquery is an array with one
child which is an object with the key
Usage examples
To count all users:
{
  "!count": "*"
}

[
  {
    "count(*)": 4
  }
]

To count all users where the email is a @gmail.com:
{
  "!count": "*",
  "email?"<EMAIL_ADDRESS>}

[
  {
    "count(*)": 0,
  }
]

To count users where boss is not null:
{
  "!count": "boss"
}

[
  {
    "count(boss)": 2
  }
]

MongoDB driver implementation

If the value of !count is not * add a new key/value to the query where the
key is the value of count and the value is the regexp .*

Remove the !count key from the query.

Use the MongoDB count API instead of the find API.
db.collection(type).count(query)

Other notes
This design also allows other non-builtin aggregation methods to be implemented
as variables/directives depending on the backend driver.
The SQL SUM aggregation method is a good example:
{
  "?payments": {
    "!count": "*",
    "!sum": "amount"
  }
}

[
  {
    "payments": [{
      "count(*)": 6,
      "sum(amount)": 275.10,
    }]
  }
]

After many iterations, the work I've done on graph APIs has branched away from the current spec.
Since my use case now has largely different design goals from jr, I'll be closing this issue, so that it isn't sitting around without an owner to provide a rationale.

Is your work public? It would be nice to see what goals this project cannot fulfill, to make it more robust.