Fix tracking categories not dynamic

Details

Related to https://expensify.slack.com/archives/C036QM0SLJK/p1716541958011089?thread_ts=1716238514.357639&cid=C036QM0SLJK
Fixed Issues

$
PROPOSAL:
Tests

[x] Verify that no errors appear in the JS console

On a Xero account change your tracking categories to very specific names (like: Pizza toppings for example)

Connect to Xero on NewDot
Go to Import > Tracking categories
You should see something like this below:

https://github.com/Expensify/App/assets/21549771/b992582f-3faa-4f0a-a31f-450da098818a
Offline tests

NA
QA Steps

[x] Verify that no errors appear in the JS console
Same as in tests

PR Author Checklist

[x] I linked the correct issue in the ### Fixed Issues section above
[x] I wrote clear testing steps that cover the changes made in this PR

[x] I added steps for local testing in the Tests section
[x] I added steps for the expected offline behavior in the Offline steps section
[x] I added steps for Staging and/or Production testing in the QA steps section
[x] I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
[x] I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).

[x] I included screenshots or videos for tests on all platforms
[x] I ran the tests on all platforms & verified they passed on:

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

[x] I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
[x] I followed proper code patterns (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
[x] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method

[x] If any non-english text was added/modified, I verified the translation was requested/reviewed in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:

[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is approved by marketing by adding the Waiting for Copy label for a copy review on the original GH to get the correct copy.
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I followed the guidelines as stated in the Review Guidelines
[x] I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[x] I verified that if a function's arguments changed that all usages have also been updated correctly
[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If a new CSS style is added I verified that:

[x] A similar style doesn't already exist
[x] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))

[x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[x] If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
[x] If the PR modifies the form input styles:

[x] I verified that all the inputs inside a form are aligned with each other.
[x] I added Design label so the design team can review the changes.

[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native

Android: mWeb Chrome

iOS: Native

iOS: mWeb Safari

MacOS: Chrome / Safari

https://github.com/Expensify/App/assets/21549771/b992582f-3faa-4f0a-a31f-450da098818a

MacOS: Desktop

Code looks good, but I am probably doing something wrong when setting up the integration?

I am using the QA account, but no organization shows up after it is done syncing and the tracking categories is empty as well.

Also lint is failing

Code looks good, but I am probably doing something wrong when setting up the integration?
I am using the QA account, but no organization shows up after it is done syncing and the tracking categories is empty as well.

You need to sync to xero using the xero-merge-freeze branch. A lot of commits/fixes are present there, it should resolve your issue for syncing. Then you'll be able to test the PR correctly 😄

Also lint is failing

Fixed!

it crashed when I opened the category detail
https://github.com/Expensify/App/assets/16502320/127b3a72-1272-46d6-b12d-aa601ab418bf

@lakchote Lint is failing

Reviewer Checklist

[x] I have verified the author checklist is complete (all boxes are checked off).
[x] I verified the correct issue is linked in the ### Fixed Issues section above
[x] I verified testing steps are clear and they cover the changes made in this PR

[x] I verified the steps for local testing are in the Tests section
[x] I verified the steps for Staging and/or Production testing are in the QA steps section
[x] I verified the steps cover any possible failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)

[x] I checked that screenshots or videos are included for tests on all platforms
[x] I included screenshots or videos for tests on all platforms
[x] I verified tests pass on all platforms & I tested again on:

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

[x] If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
[x] I verified proper code patterns were followed (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick).
[x] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I verified that this PR follows the guidelines as stated in the Review Guidelines
[x] I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[x] If a new component is created I verified that:

[x] A similar component doesn't exist in the codebase
[x] All props are defined accurately and each prop has a /** comment above it */
[x] The file is named correctly
[x] The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
[x] The only data being stored in the state is data necessary for rendering and nothing else
[x] For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
[x] Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
[x] All JSX used for rendering exists in the render method
[x] The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions

[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If a new CSS style is added I verified that:

[x] A similar style doesn't already exist
[x] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)

[x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[x] If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
[x] If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:

[x] I verified that all the inputs inside a form are aligned with each other.
[x] I added Design label and/or tagged @Expensify/design so the design team can review the changes.

[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
[x] I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

Android: Native

https://github.com/Expensify/App/assets/16502320/84786191-269d-48c5-afd3-ee5e3da66ba4

Android: mWeb Chrome

https://github.com/Expensify/App/assets/16502320/6823201d-2e2e-4c67-96d6-161e16672343

iOS: Native

https://github.com/Expensify/App/assets/16502320/fd0bebc0-f30f-49ce-8948-957b5f8c2d40

iOS: mWeb Safari

https://github.com/Expensify/App/assets/16502320/c0857709-2417-4a1a-a4ce-4987689f86fe

MacOS: Chrome / Safari

https://github.com/Expensify/App/assets/16502320/fe989b44-fc89-4c9e-87a4-7384d1d1230d

MacOS: Desktop

https://github.com/Expensify/App/assets/16502320/f5091fa8-daa3-4a6d-95c8-3943dc39f02a

Seems we need to re-run the linting again 😄 . But this LGTM 🚀

@rlinoz please review it again when you can, thanks!

@hungvu193 thank you for the review, lint issue should be fixed now.
@rlinoz please review it again when you can, thanks!

🚀 Deployed to staging by https://github.com/lakchote in version: 1.4.77-11 🚀

platform
result

🤖 android 🤖
failure ❌

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

🚀 Deployed to staging by https://github.com/lakchote in version: 1.4.77-11 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

🚀 Deployed to production by https://github.com/mountiny in version: 1.4.78-5 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅


Impossible to open the SVG file.

Hello! My name is Paolo. I can't test your solution, because i'm facing the following problem:
When I try to open the svg generated file in the browser, Google Chrome and others, i'm getting this Error:  attribute d: Expected number, "M 152,5 975 L 160 992,5 L 15…".
Can you please help me?

@paolojcm Which image did you convert with the tool? I'd recommend trying ones in the Images folder.

Hi,
This is only a guess, but I think the problem is that the number format in the SVG->Path->d string is wrong, it uses decimal comma ',' instead of decimal point '.'
152,5 is not correct in SVG, it should be 152.5
The cause of this might be Locale aware Float->String conversion, some languages or Locales use decimal comma, not decimal point. If this is true, then the solution is simply to force the Float->String function to use decimal point '.' always, ignore the Locale.

That makes sense. I haven't worked on this project in close to a decade. Any chance you could find the place(s) where that may be happening? It likely could use something like this, which should always do . instead of ,:
Convert.ToString(value, CultureInfo.InvariantCulture);


Not using my GPU getting very slow. I'm using windows 11 and a NVIDIA RTX 4090. Why it isn't working?

I'm following other devs guide to solve this issue but it isn't solving it.
When trying to run a script, I get: No GPU being used. Careful, inference might be very slow!
Went to the page https://pytorch.org/get-started/locally/ and saw that my CUDA version 12.2 is not available on the command prompt options so changed to my version:
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu122
Run this and got "Requirement already satisfied.... " but it still doesn't work.
So, went back to run the script but still get: No GPU being used. Careful, inference might be very slow!. That is weird because I already have everything installed of my NVIDIA drivers and CUDA. It came all installed when I bought it. It is completely fresh.
Any suggestion?
Appreciate.

Verify if your torch version is compatible with your cuda version else verify if you installed torch on the same python interpreter that you execute with. You can use torch.cuda.is_available() to verify

I solved the problem using pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu121


Update main docs page

The main documentation page is a bit out of date now and could do with a refresh.
Would be good to expand it quite a bit and split into several sections:

Beginner's guide to running nextflow
nf-core tools
nf-core community guidelines
Working on an existing pipeline
Adding a new pipeline

Some of this could potentially be taken from the cookiecutter template docs. Then we could avoid having to write the same thing in too many places.

The buttons on the homepage should tie into this (eg. Quickstart Tutorial and Developer Docs). Also the footer links.

Done! 🎉


Echo into install script to allow prompt.

Fixes blocker for https://github.com/begriffs/haskell-vim-now/pull/215.

Moving to another pull request.


[API DESIGN REVIEW] and feature request: Fractional max pooling

I'd love to have fractional max pooling (Benjamin Graham, Fractional Max-Pooling (2014)) in Keras. Tensorflow has it.
As for API, not sure. One option is to adopt TF API. Another option is to simply allow non-integer pool_size and stride in existing Keras [Max|Avg]Pooling[1-3]D layers - my preference, but, I think, contrary to Keras layer API design style.
Maybe which API is supported depends on what can be done in other backends. I didn't find anything in CNTK. Theano seems to have 3rd party implementation. For the reference, Lasagne  3rd party implementation as well.

Another option is to simply allow non-integer pool_size and stride in existing Keras [Max|Avg]Pooling[1-3]D layers - my preference, but, I think, contrary to Keras layer API design style.

Why do you think that would be contrary to the API design style?
Is there conceptual continuity between integer and float values for the pool_size argument? E.g. if 2 shrinks the target axis by 2, does 1.5 shrink the target axis by 1.5?

Why do you think that would be contrary to the API design style?

I am just learning Keras, I could easily be wrong. I got this impression because Keras has separate layers for everything, instead of single layers parametrized. For example Conv[1|2|3]D (and Pool and lots of other stuff), could be getting its type from the shape of the input and parameters such as kernel_size (just like there is no Flatten2D and such). Similarly Pooling could be parametrized by max, avg, stochastic_max (another thing I'd love to have), etc. GlobalPooling could be pool_size=global or something. Etc.

Is there conceptual continuity between integer and float values for the pool_size argument? E.g. if 2 shrinks the target axis by 2, does 1.5 shrink the target axis by 1.5?

Yes. An even more interesting example is pool_size=1/sqrt(2) in 2D. It'll reduce the number of pixels by 2 in a good way (something which otherwise we have to use inception blocks to achieve).

The guiding principle is user experience. There's also a bit of historicity.
There's a balance to be struck between having everything be a function argument, and having different functions for different things. We use argument for different tweaks on a shared use case, and we use different functions/classes for separate use cases. If you work with 2D data, that's one use case. 3D data is another one (different users, different data, different problem). Cleanly separating them is preferable. If there's a parameter that wouldn't work as an architecture hyperparameter when doing architecture search on a given problem, then it is better not to have it in layer signatures. E.g. activation or units is a common hyperparameter, but ndim would not make sense.
The pooling function type could indeed be parametrized, and in practice that's how it's implemented internally (_Pooling2D layer, etc). We don't do it because in practice pooling type is not an architecture hyperparameter you ever see when people do architecture search (unlike activations, for instance, which can often be parameterized across relu/elu/etc). It's always hard-coded.
Fractional vs. integer pooling would fit within "tweak on a same use that you might want to treat as a model hyperparameter".

There's also conceptual containerization and a desire to keep the code base simple. If things like ndim where parametric, then functions like call and compute_output_shape would be a series of if blocks, and at that point it's simpler to have different classes.
This is also e.g. why we have separate layers for LSTM and GRU and not a RNN(type='lstm') layer.

The guiding principle is user experience.

Sure, the only question is which user experience is better. I work with 1D, 2D, 3D data. Topology-wise, my 3D networks start as direct analogs of 2D ones, with just the number and size of layers and filters changed. I don't see why my code should be changed at all.
Another example - if it's all the same (sanely parametrized) layer, I don't have to study multiple layers separately (and would enforce discipline on API design). For example, currently I don't why Conv1D docs are different than Conv2D docs. Until I study it, I won't know if why data_format is missing from Conv1D docs, and one-sided padding is missing from Conv2D docs. Or what is the reason several layers have only 2D version (I am guessing this is historic due to backend API).

pooling type is not an architecture hyperparameter you ever see when people do architecture search

that's because currently it's all extremes either avg (T=inf) or max (T=0). Had it been properly parametrized in the frameworks some people would use (stochastic) softmax pooling with temperature (1 or 2 hyperparameters, of which avg and max are just extremes of i.e unlikely to be optimal.

If things like ndim where parametric, then methods like call and compute_output_shape would be a series of if blocks

maybe the dynamic dispatch could all be automated. Just assign functions to variables in the preamble (or a whole "vtable"), and unconditionally call them later later, or whatever the most Pythonic approach to generics is. This could probably be easily demonstrated on a Conv[1-3]D class level (maybe as a hack in user code).

Fractional Max-Pooling is in statistical tie for the record on CIFAR-10 since 2015:
http://rodrigob.github.io/are_we_there_yet/build/classification_datasets_results.html#43494641522d3130


Not worked

I don't know what's the reason, but the plugin isn't working for me.
I installed it through the store, restarted Obsidian, tried to test it, and... nothing.
I only have 4 plugins installed and only one of them is active (besides the checkbox in the table).
There's no substitution of HTML tags in the table.
Obsidian version 1.5.11.

Can you try version 2.0.8 from here? You need to replace the main.js file in your current plugin folder. You can open the plugin folder from Obsidian and drag the file into obsidian-table-checkboxes.
If that doesn't solve your issue, can you fill in the following:

Obsidian version:
Plugin version:
Windows keyboard language:

This is still the case for

Windows 10
Obsidian 1.7.7 (latest as of writing)
Plugin version 2.0.8 (latest as of writing)
No other table plugins installed
Independent of bracket completion setting in Obsidian
Does work neither on manual typing nor copy-pasting
Independent of keyboard (could not find version numbers)

Custom keyboard layout
German
English UK

Should be fixed in 3.0.0


Is P2WPKH support planned?

We will support soon, Thanks!

Are you building on top of your fork only or will the code eventually merge with this repo?

I am responsible for developing this repo from now on

https://github.com/anicdh/bitcoin_flutter/pull/17
Build segwit Tx is coming soon

Just saw that P2WPKH support was just merged in which is amazing. I'm glad people are actually working on this library and that it has not been forgotten. Good job guys.


Submit python homework

Good Job!!!   @fatefades
Python homework:

Total questions: 108
Correct answers: 105
Score: 97.00%

Good Job!!!   @fatefades
Python homework:

Total questions: 108
Correct answers: 107
Score: 99.00%

Good Job!!!   @fatefades
Python homework:

Total questions: 108
Correct answers: 107
Score: 99.00%

Numpy homework:

Total questions: 10
Correct answers: 10
Score: 100.00%

Good Job!!!   @fatefades
Python homework:

Total questions: 108
Correct answers: 107
Score: 99.00%

Numpy homework:

Total questions: 10
Correct answers: 10
Score: 100.00%

Pandas homework:

Total questions: 12
Correct answers: 12
Score: 100.00%

you'd like us to change this.

Yes, I'd like you to change this.


feat(fr/nekosama): Add domain preference

Closes #2141
The old domain seems to be working well, so instead of removing it and replacing with the newer one, it'll become optional (just in case the new domain is somehow worse or something, so users can go back).
Checklist:

[x] Updated extVersionCode value in build.gradle for individual extensions
[x] Referenced all related issues in the PR body (e.g. "Closes #xyz")
[x] Added the isNsfw = true flag in build.gradle when appropriate
[x] Have not changed source names
[x] Have tested the modifications by compiling and running the extension through Android Studio

Both are pointing to the same IPs
[hollow@hollows-laptop ~]$ nslookup animecat.net
Server:		<IP_ADDRESS>
Address:	<IP_ADDRESS>#53

Non-authoritative answer:
Name:	animecat.net
Address: <IP_ADDRESS>
Name:	animecat.net
Address: <IP_ADDRESS>
Name:	animecat.net
Address: 2a06:98c1:3121::2
Name:	animecat.net
Address: 2a06:98c1:3120::2

[hollow@hollows-laptop ~]$ nslookup neko-sama.fr
Server:		<IP_ADDRESS>
Address:	<IP_ADDRESS>#53

Non-authoritative answer:
Name:	neko-sama.fr
Address: <IP_ADDRESS>
Name:	neko-sama.fr
Address: <IP_ADDRESS>
Name:	neko-sama.fr
Address: 2a06:98c1:3120::2
Name:	neko-sama.fr
Address: 2a06:98c1:3121::2

Both are pointing to the same IPs
Absolute bruh moment. There's any kind of ISP/fw's blocking anime-sama.fr domain? if not, then this pr is useless 💯


Istio 1.5.x

What this PR does:
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

We should add a demo for istio 1.10 instead :)


Have the incorrect redfish credentials status surface in the juju status

hardware-observer currently produces an alert if the provided redfish credentials are incorrect. However, this is not an alert in the sense of anything being wrong with the hardware, but rather a charm configuration issue. We should find a good way to have this status be visible in juju status (in addition to continuing to produce alerts in alertmanager).

The charm will enter "blocked" state if the credential is incorrect now. relative PR:
https://github.com/canonical/hardware-observer-operator/pull/182
https://github.com/canonical/hardware-observer-operator/pull/192
I think we are good with this issue. I will close it but welcome to reopen it if any concern.


fix(SectionTopologyInspector): Removed forgotten functions using bloc…

…ks in Section

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


Add swap network

What should we add?
Arbitrary pairwise interactions between qubits can be simulated in linear depth and linear connectivity using a "swap network" as explained in https://arxiv.org/abs/1711.04789. This is a generally useful algorithmic primitive. I need it for https://github.com/Qiskit/qiskit-nature/issues/654 but since it's not specific to quantum simulation I think it belongs in Terra. I can submit a PR for this.

Thanks @alexanderivrii . Figure 2 of the paper is explaining the Givens rotation decomposition of a unitary matrix, used to implement a single-particle basis change. After the publication of that paper, it was noticed that there is a better decomposition described in https://arxiv.org/abs/1603.08788. This is the decomposition we use in practice for the general basis change, and it is implemented at https://github.com/Qiskit/qiskit-nature/blob/main/qiskit_nature/circuit/library/bogoliubov_transform.py. I just wanted to call your attention to this in case it is useful.


Tezos Connector map converter

FFI JSON map_init for POST /contracts/interfaces
{
   "namespace":"default",
   "name":"map",
   "version":"v1.0.0",
   "description":"Map impl",
   "methods":[
      {
         "name":"init_map",
         "pathname":"",
         "description":"",
         "params":[
            {
               "name":"newValue",
               "schema":{
                  "type":"object",
                  "details":{
                     "type": "schema",
                     "internalSchema": {
                        "type": "map",
                        "args": [
                            {
                               "name": "key",
                               "type": "integer"
                            },
                            {
                               "name": "value",
                               "type": "string"
                            }
                        ]
                     }
                  }
               }
            }
         ],
         "returns":[]
      }
   ],
   "events":[]
}

This is great, thank you @alex-semenyuk!

Thanks for contributing this! The code itself looks good, but the linter would like you to update the copyright year. Sorry it's very picky 🙃
Error: internal/blockchain/tezos/ffi2michelson.go:1:17: Expected:2024, Actual: 2023

@nguyer sure, should be ok now

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (2d92165) 99.99% compared to head (6a51572) 99.99%.
Report is 55 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1451   +/-   ##
=======================================
  Coverage   99.99%   99.99%
=======================================
  Files         321      321
  Lines       23108    23200   +92
=======================================
+ Hits        23106    23198   +92
  Misses          1        1
  Partials        1        1

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


[Bug]: Block widget has stopped updating

Describe the bug
The block widget on my home screen stopped updating about 2 hours ago. It shows 854,009 when the current is 854,018.
Manual refresh does not correct it.
My wallet is new, as of 3 hours ago, and recovery has been performed yet.
Reproduce

Go to '...'
Click on '....'
Scroll down to '....'
See error

Screenshots / Recording

-----

Operating system
Android 13 TKQ1.221114.001
Bitkit version
v130 d8f96e7d6475d2eef04ae08f9d9dd2c8894a8218
Log output
No response

@pwltr Unfortunately, that makes no difference.  Right now, I have been seeing block 854,045 for a while, real block is currently 854,050.

@catch-21 Did this resolve itself by now? Other than the cache I am not sure what could be the issue.

@pwltr It corrects itself when I kill the app and restart but never seems to stay up to date whilst Bitkit is running.

@pwltr I cannot reproduce the issue with an iPhone running v130 but it is always happening on my android phone.

I'm not able to reproduce this on either iOS or Android so far. Left the app running for about an hour with some of that time with it backgrounded. Widgets were always updated.

Tested again, looks like this only happens on a real device or in release.

While I can more or less easily reproduce this on the latest public release, I can't at all with a current build from master. I think there is a chance this got fixed with by the lizard problem fix here. Will keep an eye out and meanwhile move this to backlog.

I also cannot reproduce on a build since lizard problem fix.
Have made a note to check this in the next internal release testing session.

Next time this happens, we need to check if the data on the web relay is up to date.
https://webrelay.slashtags.to/xzdjbqu5ym3hk4xp993hg4ahzs1g4o85dhw9nnp4qcbd57pxndoo/Bitcoin Blocks/feed/latest-block

@limpbrains I've experienced this in testing sessions where the others have not been experiencing it at the same time. So I'm fairly certain it's a local phenomenon.

It doesn't update when I refresh the App nevertheless it's updating when I force close the app and reopen it. (same for Pav).

It doesn't update when I refresh the App nevertheless it's updating when I force close the app and reopen it. (same for Pav).

and for once It is staying up to date for me at the same time it is not updating for the other testers.

Same on iPhone 8. Stopped updating around 6 hours ago.


Different results when images of person taken at different distances

I have tried reconstructing same person based on various distances and results are hilarious. Would be appreciated if brief me about it and any solution about catering distances in your solution.
Examples:

Hi,
Yes the system at the time this code was released was quite susceptible to changes in relative person size, because the training inputs were cropped to a bounding box around the synthetic silhouettes/joints (with a small random bbox scaling factor for augmentation).
The standard way to deal with this is to also crop any test inputs around the detected silhouette/joints before 3D prediction to mimic the training data preprocessing, then un-crop after prediction, but it seems like I forgot to implement that in the code released here 😄. I'll get around to it when I've got some time.
You could also try increasing the random bbox scaling range in data augmentation to train the network to be more robust, but the test-time solution makes more sense and will probably work better.


Please update the article what events 31044 and 31034 are!

Please explain in this article what events 31044 and 31034 are!

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

ID: 8f5e3651-45ec-5dbc-7df5-526d0f7a4080
Version Independent ID: 9f218d06-c2e6-19c2-6413-542c5e88ec64
Content: Self-service password reset troubleshooting - Azure Active Directory
Content Source: articles/active-directory/authentication/active-directory-passwords-troubleshoot.md
Service: active-directory
Sub-service: authentication
GitHub Login: @MicrosoftGuyJFlo
Microsoft Alias: joflore

@ichkoj Thank you for the feedback.
This is being assigned to the content author to evaluate and update as appropriate.

@MarileeTurscak-MSFT Can you help @ichkoj get a support case opened to further diagnose this issue as per our discussion?

@ichkoj please send me an email at<EMAIL_ADDRESS>including your Subscription ID and I can open a one-time free support case for you to get this answered.


implicit parameter not used in the Sinkhorn Divergence Hessians notebook?

Hi,
I'm interested in computing Hessians of OT costs, so I had a look at the Sinkhorn Divergence Hessians notebook.
Did I misunderstand something or is the implicit parameter in the loss function not used? Especially since the %time_it seems to be exactly the same in the unrolled version and in the implicit version.
Should the code not be as below?
"implicit_diff": implicit_lib.ImplicitDiff(precondition_fun=lambda x: x) if implicit else None

Also, when should I use the default precondition_fun = lambda x: eps*jnp.log(x), and when should I use precondition_fun = lambda x: x?
Finally, a very minor remark: at some point the text reads "Let’s parse the three lines in the call" but due to linting there are more than three lines.
Thanks a lot!

Hi @gjhuizing ,
thanks for spotting this! In fact, in this notebook, implicit diff. was always being used, in #321 I corrected this (+ also not setting symmetric flag when computing Sinkhorn between x/x or y/y.

Also, when should I use the default precondition_fun = lambda x: eps*jnp.log(x), and when should I use precondition_fun = lambda x: x?

As far as I remember, there's some issue with precondition_fun, pinging @ersisimou since she knows more than I do.


Does this work in browser js?

Forgive the noob question, but can I run this in browser js?  I tried putting it into a static webpage, but I got some errors.  Now I think I'm realizing this is only intended to run in node.js.

(obviously i'm just experimenting.  I wouldn't actually publish a static site that uses my own credentials.  OK I convinced myself this is a really dumb question. thx for the cool example!)

Not yet, but it wouldn't take much effort to make this package work in both Node.js + browser.
This could be really important, for instance, for running on Edge runtimes like CF workers, Vercel edge functions, etc.

See https://github.com/transitive-bullshit/chatgpt-api/issues/24

thx!


Replace dummy data

Refactors frontend routes from /browse/:address to:

/moji/:address
/collection/:publicKey
/offer/:address

Also allows for viewing of all collections at /collection/ and all offers at /offer.
This PR does not allow for the creation of collections, offers (and responses to offers), selection of sires, or breeding of emoji.
Closes #52.

FYI, #69 introduces a number of API changes to client services, and will break much of the code here. I'm assuming this will get merged first, and then I will update these API calls as a part of #69.


Applicability of LICENSE.querydsl.txt is unclear

It seems that https://github.com/querydsl/querydsl/blob/master/querydsl-jpa/src/license/LICENSE.querydsl.txt contains LGPL 2.1 text. All the source files of binary distributables refer to Apache License 2.0 instead, and that license text is present in https://github.com/querydsl/querydsl/blob/master/querydsl-jpa/src/license/LICENSE.apache20.txt
What does LICENSE.querydsl.txt apply to?

The situation does not appear to have changed. Why is there an LGPL license text in querydsl-jpa? What does it apply to?

The entire repository is Apache 2 licensed as the original author (timo) pointed out several times in comments out here. I guess we should just remove the file. Its probably an old license from before apache was chosen. However, with only new contributors out here and Timo being absent, its hard to know for sure


[IDEA] escape character not identify correctly

Description:
Bellow code snippet showing an error in Idea IDE.
public final string SEPARATOR = (system:getenv("OS") == "") ? "/" : "\\";

Please check

As per the offline discussion with @daneshk, this still occurs for top level definitions.

Closing since fixed by #15196.


Nuget package does not copy native libraries to build output on Windows

Output bin folder does not have lib -folder inside

Also can't find them by searching

With project reference everything works fine, but with nuget package dll cannot be loaded.
Android works fine.
Affected platforms: Windows

Added package path whilst running pack build in release mode
<ItemGroup Condition="'$(Configuration)' == 'Release' ">
    <Resource Include="lib\Windows\x86_64\*.dll" Pack="true" PackagePath="lib\net7.0-windows10.0.19041\">
	<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
	<PackageCopyToOutput>true</PackageCopyToOutput>
    </Resource>
</ItemGroup>

Also copy windows dlls to output directory for debugging repository project
<ItemGroup Condition="$(TargetFramework.Contains('-windows'))">
    <ContentWithTargetPath Include="lib\Windows\x86_64\**">
	<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
	<TargetPath>%(Filename)%(Extension)</TargetPath>
    </ContentWithTargetPath>
</ItemGroup>

Change dll import dll name to point to output dir on windows

old was lib\Windows\x86_64\tesseract53.dll

const string DllName = "tesseract53.dll";

Fixed in v1.0.6


Show volume related events in the volume details

In Kubernetes, events provide a clue on what's happening and what went wrong, helps debug immensely. We already have the event mechanism hooked up in Longhorn, but we still rely on the manager's log mostly for troubleshooting.
We should record and show the major events for the volume/node, which make it easier for user to see what went wrong without diving into the manager's log every time.

We want to include objects: volume(use volume name), engine (use engine name), replicas (use replica names). Those can be found in the v1/events API call's. We can use events' involvedObject to find the object.

[ ] It seems not sorted by the Last time occurred.

[ ] Can we make it expandable? We can hide it by default since it took quite some space.
[ ] How often are we refreshing it? It seems a bit late compare to the volume state. I saw there is WebSocket API for events as well.

[ ] Can we make clicking the + to expand, instead of clicking the Expand button? It's consistent with our node page.

Verified on master - 05/18/2020
@yasker The event log has the "expand" button also along with + on the UI.
Do we want it like this?

@sowmyav27 Good question. How about removing the Expand button on the right? And add a tooltip to the + say Click to expand/Click to Collapse

@yasker This https://github.com/longhorn/longhorn/issues/990#issuecomment-630448029 sounds good.

@smallteeths ^^

Verified using image tag: wangsiye/longhorn-ui:7bb2f43
Validation: PASSED

Verified on master - 05/21/2020
Validation: PASSED


readme: remove version from docs

The version in the docs is confusing users b/c it reflects master and not the latest release.
https://github.com/GoogleChrome/puppeteer/issues/492
https://github.com/GoogleChrome/puppeteer/issues/480

We should bump the version number immediately after we release, not right before we release.


Please publish latest version to npm

The latest version is 0.0.2, but the version on npm is 0.0.1.
Please run npm publish! Thanks :-)

https://www.npmjs.com/package/gitbook-plugin-toc

请把我加到项目成员

added

我说的是npmjs.com上,该push更新了

Version of this plugin 0.0.1 doesn't work on Node 7 or up. It would be great if this updated version was published to npmjs.com. Can you please publish it?

published


nbqa: 1.9.0 -> 1.9.1

Things done
Changelog: https://nbqa.readthedocs.io/en/latest/history.html

Built on platform(s)

[x] x86_64-linux
[x] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 355013

x86_64-linux

:white_check_mark: 2 packages built:

nbqa
nbqa.dist

aarch64-linux

:white_check_mark: 2 packages built:

nbqa
nbqa.dist

x86_64-darwin

:fast_forward: 2 packages marked as broken and skipped:

nbqa
nbqa.dist

aarch64-darwin

:fast_forward: 2 packages marked as broken and skipped:

nbqa
nbqa.dist

@ofborg eval


New transformer: len()

Motivation
While discussing the intersect operator with @jasondellaluce, we realized there's no easy way to check for an empty list or, more generally, to know a list length.
It would be beneficial when one needs to create an exception, for example:
len(class.somelist) > 0 and not class.somelist intersect (allowlist)
(n.b. not class.somelist intersect (allowlist) is true when class.somelist is an empty list)
Furthermore, there may be compelling use cases where knowing the length of a list or a string is useful.
Feature
Develop a len() transformer that accepts a sizable type (e.g., LIST, CHARBUF, BYTEBUF) as input and returns its length as an integer.
Alternatives
No actual alternatives have been considered yet.
Additional context
This is a very rough proposal, which may need some discussion. Feedback is welcome.

/milestone 0.19.0


Code Release

When will the training and evaluation details for LaserMix and LaserMix++ be released in full?

When will the training and evaluation details for LaserMix and LaserMix++ be released in full?

@LinLin1031, thanks for your interest!
The training and evaluation details of LaserMix using Cylinder3D and MinkUNet are available. We will include the support of other backbones and more details of LaserMix++ in the next few weeks.


Support of standalone database

self-explanatory

Hi @EricPE69 -
Thanks for reporting this, is this still an outstanding issue, and if so could you please share your scenario and feel free to re-open this issue.


update(plugins): bump sdk go to latest dev version

What type of PR is this?
/kind bug
Any specific area of the project related to this PR?
/area plugins
What this PR does / why we need it:
This is a follow-up of after the fixes of https://github.com/falcosecurity/plugin-sdk-go/pull/75.
Which issue(s) this PR fixes:
Special notes for your reviewer:

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: jasondellaluce
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [jasondellaluce]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: jasondellaluce, leogr
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [jasondellaluce,leogr]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

LGTM label has been added.  Git tree hash: dbc8ae92c6d0aea1c6f94af0d38c0cfe5a67d345


no data seemingly in influxdb or displayed by Grafana

Pulled the repository this morning and ran on Ubuntu 14.04 server.  Switch sending analytics data was QFX5100 running 14.1X53-D15 -- I was able to verify that the QFX5100 is sending the data on UDP port 50020 and the server is receiving it.  After that i'm not sure why it fails, but below is what I was able to discern:

inside Influxdb web gui looking at Measurements the only item is "juniper.analyticsd" -- no switch interfaces or anything.  From the demo videos I believe I should see the various interfaces for the switch listed
Inside the container if I run tcpdump on the Influxdb port I see HTTP Posts with 204 codes, which per influxdb documentation means some sort of data was successfully written.

At this point I don't know if I screwed something up (not sure how I could...cloned the repo, then ran it per documentation), or if there is a versioning issue, or what.
My best guess is either issue with Fluentd or the juniper plugin for it sending the data to Influxdb, but I really don't know anything about Fluentd or Influxdb.  Couldn't see how to get any info out of Fluentd as to what it was actually doing.
Thanks,
Will

Hi @wmclendon
if you are seeing "juniper.analyticsd" in Influxdb most likely some data are recorded
you can check by running this query in Influx
SELECT * FROM "juniper.analyticsd"

If data are in the Database and are not showing on the GUI, usually it's because of a Timestamp/timezone issue.
Please try to zoom out in the GUI and check the time on your device.
Let me know how it goes
Thanks for using OpenNTI
Damien

hi Damien,
thank you for your reply.  I was mistaken it is actually "jnpr.analyticsd" -- in either case, when I changed the dropdown of influxdb to be the "juniper" database and run SELECT * FROM "jnpr.analyticsd" I got "Success! (no results to display)"
since you mentioned time I started checking.  Incidentally the QFX5100 I was using in our lab did not have NTP configured so naturally it's time was not correct.  Once I enabled NTP I went back over to InfluxDB GUI and re-ran the SELECT * FROM "jnpr.analyticsd", and sure enough I had data
After the fact it makes sense for something like this that time would need to be synchronized (at least for good, useful data), but wasn't readily obvious that time --had-- to be synchronized between the systems for everything to work correctly at all.  Oh well, live and learn I guess!  Learned some things in the process since I had never used Docker before, so not a total waste of time this past weekend trying to get this to work :)
Now for the hard part -- figuring out how to operationalize and use these tools to gather the data in a production environment
Cheers,
Will

hi @wmclendon
I'm glad it's working now
let me know if we can help with the production part, and if you manage it on your own please let us know how it looks, it's always interesting.
Also, if Influxdb or Grafana are not the best components for you, it's easy to use something else.
Thanks
Damien

hi Damien,
I actually work for a Juniper partner and we are interested in this both internally and to help our customers better leverage the technology available to them.  perhaps we could take this conversation offline?  I can be found on twitter at willmc25


Appending find results not colored

When using "Append results" option in Find and Replace, the new find results that are appended to previous lines are not colored.
VS 2019 and latest version of extension.

Interesting. It appears the previous query string is highlighted in the appended results and not the current query string.


ODHack: Fetch parameters for zkLend dynamically in data_handler

Fetch zkLend's token parameters dynamically.
Steps:

Check out the static settings for the zkLend lending protocol: https://github.com/CarmineOptions/derisk-research/blob/master/data_handler/handlers/loan_states/zklend/settings.py#L23.
Currently, the token parameters are static, but in reality, they change once in a while. Adjust the code so that we're able to fetch the current/latest parameters dynamically from chain.
Adjust all references of the original static settings, so that the static settings are no longer needed.

Hey can i work on this?

Okay, assigning you @EmmanuelAR  . But note that the OD Hackaton tasks should be finished by the end of the week 🙏🏼
@EmmanuelAR   Let me know if everything is clear and whether you'll be working on the issue. If you have any questions, please ask here. What is you TG handler please? 🙏🏼
Consider joining our TG group.
See also our contributor guidelines.

Excellent I will stray today and let u know if I have a question

Hello team, yesterday @lukaspetrasek  asssigme this issue to me, thanks for that.
As soon that i read the issue i uderstand to make a method to fetch ZKLEND_SPECIFIC_TOKEN_SETTINGS info and not mantain it static.

Did someone knows where did a can make that call on chain to have that info?
If theres an example of how to make that call?

Answered on TG.

willing to work on this issue, I have an understanding to write a call to fetch the required data and replace the static ones. Will be done in few hours

Pr: #121

Pr: #121

Thanks, I'll take a look over the weekend.

#121


res.send(Buffer.from(someString)) overwriting Content-Type response header

I've got this express (4.17.1) app running on Node.js (12.14.0):
const express = require('express')
const https = require('https')
const http = require('http')

const app = express()

const JSON_STRING = `{
    "associatedApplications": [
        {
            "applicationId": "abcdef"
        }
    ]
}`

// Serve .json file.
app.use('/my-json.json', (req, res, next) => {
    res.set('Content-Type', 'application/json')
    res.send(Buffer.from(JSON_STRING))
})

// Configure SSL.
const https_options = {
  key: ...,
  cert: ...,
  ca: [
     ...
  ]
}

// Make https server.
const https_server = https.createServer(https_options, app)
https_server.listen(443)

// Make http server.
const http_server = http.createServer(app)
http_server.listen(80)

In serving the .json file, I am trying to set the Content-Type response header to application/json, but Express appears to be overwriting it with application/json; charset=utf-8.
This appears to be normal behavior usually, but the docs and this previous issue seem to say that Express shouldn't overwrite the Content-Type response header when res.send() is passed a Buffer object.
Am I missing something, or is the documentation incorrect? If the documentation is incorrect and this is normal behavior, is there another way I can prevent Express from automatically overwriting the Content-Type response header?
For extra context: this is an issue related to configuring an application's publisher domain in Azure.

I believe this is not an override like the linked issue, but is a feature of using res.set instead of res.setHeader where res.set will add the standard charset if not supplied where res.setHeader will use your header as-is.

Thanks for your input. Using res.setHeader('Content-Type', 'application/json') seems to still produce application/json; charset=utf-8, but I will keep playing around with it and see if I can come up with something.

Ok. I will close for now until there is a reproduction we can look into to determine what is going wrong. Here is a terminal session of me trying to reproduce the issue. Perhaps you can provide something similar? Not sure if maybe there is something else at play in your setup adding the charset or something.
$ npm i express
+<EMAIL_ADDRESS>added 50 packages from 37 contributors and audited 126 packages in 3.886s
found 0 vulnerabilities

$ node -v
v12.14.0

$ cat app.js
const express = require('express')
const http = require('http')

const app = express()

const JSON_STRING = `{
    "associatedApplications": [
        {
            "applicationId": "abcdef"
        }
    ]
}`

// Serve .json file.
app.use('/my-json.json', (req, res, next) => {
    res.setHeader('Content-Type', 'application/json')
    res.send(Buffer.from(JSON_STRING))
})

// Make http server.
const http_server = http.createServer(app)
http_server.listen(80)

$ node app &
[1] 1169

$ curl -is http://localhost/my-json.json
HTTP/1.1 200 OK
X-Powered-By: Express
Content-Type: application/json
Content-Length: 99
ETag: W/"63-IYHmhtDM3p6rsi4qSsHF0skYiXA"
Date: Sat, 21 Dec 2019 15:59:16 GMT
Connection: keep-alive

{
    "associatedApplications": [
        {
            "applicationId": "abcdef"
        }
    ]
}

You can see in the cURL output, the response header is just Content-Type: application/json


Security

It seems weak, so I'll be going over the code after I finish team support.

Fixed some bug


[CT-2625] Support model contracts + constraints with nested fields in core

https://github.com/dbt-labs/dbt-bigquery/pull/738 implemented model contract + constraint support for models with nested fields in BigQuery, but much of the implementation is not specific to any adapter. The adapter-specific piece relates to formatting the nested column type (so this bit).
BigQuery's support for nested columns is very thorough - supporting many levels of nesting (up to 100) and constraints on nested columns. Nested columns are not supported with the same maturity across various platforms and so it feels to early to be implement, test, and maintain this spec across all adapters. We could eventually revisit this though - and remove the need for the BigQuery adapter to implement overrides of get_empty_schema_sql and get_select_subquery macros.

@jtcohen6 can I clarify whether this got supported in the end and if so, whether the docs were updated to show the syntax for adding a test on a struct column or a repeated column or complex combinations of these (struct of array of structs etc.)


Clang 12 CI build

Clang 12 is available; it should replace the clang-10 build.

Seems it's not yet supported on conan.

Supported with Conan v1.36.


Raymarch (Material) does not seem to work with VolumeSDF

Gamma version : 2021.4 526
Fuse version : latest develop, ca8d150e26bddb1e4fc19323958e8be7617c5d39

Was trying to make a small HowTo for the VolumeSDF node, using the Stanford Dragon asset from FieldTrip. When using the Raymarch (Basic) node, the dragon renders fine, but using Raymarch (Material), it only shows a box.

After trying to use Raymarch (Material), gamma stays in Hot Swapping state forever (static red bar under the quad menu) and ends up being unresponsive.

@azeno Thanks for the pointer! Not much I can do on my side sadly :)
@tebjan Just tried with 402 and had the same behavior. Earlier versions I tested would either throw exceptions or give red nodes (because of newly introduced stuff in Gamma that were not there back then).

This poor module had been quite the venn diagram of overlapping issues...  One step closer with #55 fixed.  But still some funky stuff with the sampler.   Demo patch in  9981cfcdf054cef6e93155e47442d70c5a6ad283
Will not work on open, then if you change some things on the sampler it does, but also seems to ignore the actual sampler settings.  @tebjan would you have any advice?


Hi, may I ask how can I generate or get the edge folder? Thanks!

Dear author, I have the same question and hope to get a reply

Sorry, this is code left over from other experiments and is not needed for this project, please remove it

ok  thanks


fix: getlines method runs wrong after compiled

This will fix #46 @Justineo

I repull request with for-loop replaced by slice.call @Justineo

请问下，既然这问题解决了，为什么npm包里的代码还是旧的？
版本0.3.1，是还没发布么？@Justineo

yes, the author hasn`t released another version

Oh, missed this PR. I'll publish a new version soon.

See<EMAIL_ADDRESS>


why the note content is null

when i traverse the notelist,then i print the note' content using note.getContent(),but the result is null;

That is by design, we don't return the contents of a note with any of the bulk API calls. You'll have to use getNote/getNoteWithResultSpec/getNoteContent to fetch the note's content.

In my case, I modified some of the code in listNotes () in EDAMDemo I could get it.
  private void listNotes() throws Exception {
    // List the notes in the user's account
    System.out.println("Listing notes:");

    // First, get a list of all notebooks
    List<Notebook> notebooks = noteStore.listNotebooks();

    for (Notebook notebook : notebooks) {
      System.out.println("Notebook: " + notebook.getName());

      // Next, search for the first 100 notes in this notebook, ordering
      // by creation date
      NoteFilter filter = new NoteFilter();
      filter.setNotebookGuid(notebook.getGuid());
      filter.setOrder(NoteSortOrder.CREATED.getValue());
      filter.setAscending(true);

      NoteList noteList = noteStore.findNotes(filter, 0, 100);
      List<Note> notes = noteList.getNotes(); // <===== init guid list
      List<String> noteGuidList = new ArrayList<>(); // <===== add guid to guid list
      for (Note note : notes) {
        System.out.println(" * " + note.getTitle());
        noteGuidList.add(note.getGuid());
      }
    }

    // get content via guid list
    for (String noteGuid : noteGuidList) {
	Note note = noteStore.getNote(noteGuid, true, true, true, true);
	System.out.println(" * " + note.getTitle() + " " + note.getContent());
    }
  }

see
http://dev.evernote.com/doc/reference/NoteStore.html#Fn_NoteStore_getNote


http://etherid.org/#tabs-all status?

Hi. This looks very interesting. Is this service actually up and running? and how do I make use of it? For example, searching for ids does not return any values.
http://etherid.org/#tabs-all

It is up and running.  So the search only shows your domains. And you do not have one.
Search through all the domains is a long operation.  If you specify some specific domain on the "Register/Manage" page, you will get the result instantly.


DoRA cross-compatibility

Hi,
I was referred to by comfyanonymous when trying to merge a PR [1]
As a DoRA model author, I want to be able to adjust my DoRA range from -1 to 1. I was using the 'alpha' parameter to accomplish this.
While this works in A1111 [2], this does not work in ComfyUI as the author says he matches your implementation. There is no other way to adjust in DoRA.
My goal is to create DoRAs that work in A1111 and in ComfyUI.
Do you have thoughts on which implementation is correct? I can submit a PR to your project to make this change if it will help.
Best,
-NTC
Links:
1: ComfyUI PR https://github.com/comfyanonymous/ComfyUI/pull/3922
2: A1111 implementation https://github.com/AUTOMATIC1111/stable-diffusion-webui/blob/feee37d75f1b168768014e4634dcb156ee649c05/extensions-builtin/Lora/network.py#L210

I don't get it.
What you want to do?
And, "A1111 implementation" is implemented by me.
Whole bulit-in lora extension is maintained by me

ok I think I got it
will update things on A41 side

(But I can't ensure that's the point
since that is not issue of this repo
closed

https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/16151

Hi your A1111 code was right before patching. Your new patch is wrong.
The code here and in comfyui needs changes. I believe the alpha should be applied where A1111 applies it, otherwise it's useless for DoRA authors.
My use case is to normalize my DoRAs from -1 to 1 but the only way to do it is with the alpha term as it was written in A1111.
Sorry for the confusion.

Hi your A1111 code was right before patching. Your new patch is wrong.
The code here and in comfyui needs changes. I believe the alpha should be applied where A1111 applies it, otherwise it's useless for DoRA authors.
My use case is to normalize my DoRAs from -1 to 1 but the only way to do it is with the alpha term as it was written in A1111.
Sorry for the confusion.

Plz read the source code of this repo.
Thx
The original paper never use alpha, and I assume they take alpha as part of BA directly.
So the modified version is correct.
"Can't achieve what you want" never equals to "Wrong"

I read through the source code and the whitepaper. As you said there is no alpha term in the whitepaper.
https://github.com/KohakuBlueleaf/LyCORIS/blob/c48365c4b6a961546fd4520019f5a18f834170a5/lycoris/functional/general.py#L93
This code doesn't appear used but applies scale after norm.
https://github.com/KohakuBlueleaf/LyCORIS/blob/c48365c4b6a961546fd4520019f5a18f834170a5/lycoris/modules/locon.py#L301
This code seems used although applying scale before apply_weight_decompose will change the weights even at scale=0.
alpha is also most useful when applied after norm. alpha is not useful when it is applied to BA directly.
Some background:
In LoRAs, alpha can used by model authors as a way to normalize the scale so someone can include a LoRA at 1.0.
In DoRAs changing alpha breaks the model unless it is applied after norm.
Thanks for looking into this.

I found it
I should ensure self.multiplier work after weight decompose
But the formula for A1111 side modification is still correct.

And training side will assume multiplier is always 1 so currently it will not affect anything.

Fixed in dev.

Sent some LTC https://nanswap.com/transaction-all/orbf4BBOn9pw
Thanks for the changes, this is tricky. I noticed an issue:

       merged = self.apply_weight_decompose(weight + diff, multiplier)

This needs to apply the scaled diff after the norm.
Heres the pseudocode as I understand it. Happy to send a patch if you'd like.
scale = self.multiplier * self.scale # alpha in contention
original_weights = weights
weights = weights + BA
weights *= dora_scale/norm(weights)
return weights + (weights - original_weights) * scale

This is how comfy does it:
https://github.com/comfyanonymous/ComfyUI/blob/master/comfy/model_patcher.py#L27
The placement of alpha on line 14 above is what is contentious. I believe the variable should be like multiplier so that alpha=0 means the diff is turned off.  This is how LoRAs work.
This isn't in the whitepaper so it's up to interpretation. You are right that multiplier is 1 in training as is self.scale. If alpha  is not trained and can only be a specific value, I don't understand it's function.


About scale path

https://github.com/StevenGrove/DynamicHead/blob/5097e2bd21e36fbdcab90f0b23b67162157e46bb/cvpods/layers/dynamic_conv.py#L363
https://github.com/StevenGrove/DynamicHead/blob/5097e2bd21e36fbdcab90f0b23b67162157e46bb/cvpods/layers/dynamic_conv.py#L386
请问,在融合scale path得到的特征图时,我看到代码中设置scale_weight默认为0,那岂不是在训练过程中就没用到scale_path呢?

The self.scale_weight has gradients and will change during the training phase. The zero initialization aims to stabilize the gradients of features at the very beginning iterations.

The self.scale_weight has gradients and will change during the training phase. The zero initialization aims to stabilize the gradients of features at the very beginning iterations.

非常感谢您的回答.

非常感谢您的回答.


Fixed deprecations and dependencies version

Fixed deprecations
Fixed uuid version constraints
Fixed version constraints for deprecation fixes
Specify types for new dart

LGTM


store: Benchmark StoreAPI.Series performance with new index-header in binary format.

Assigning myself.
AC:

We know what is the difference in querying performance for store gateway between json index cache and binary index header; via micro benchmarks
Fix low hanging fruit in terms of performance

Done :hugs: All nice and much better :heart:


DEP0155 warnings in schema-org when building on Windows

Environment

Operating System: Windows_NT
Node Version:     v20.18.0
Nuxt Version:     3.13.2
CLI Version:      3.14.0
Nitro Version:    2.9.7
Package Manager<EMAIL_ADDRESS>Builder:          -
User Config:      -
Runtime Modules:  -
Build Modules:    -

Reproduction
npx nuxi init
cd nuxt-app
npx nuxi@latest module add schema-org
npm run build

Describe the bug
https://github.com/unjs/unhead/commit/1cea6c46cdc61f57cc5776d6c2f0a7a8a3dcd570 introduced build warnings on Windows when building for production.
(node:21972) [DEP0155] DeprecationWarning: Use of deprecated trailing slash pattern mapping "./" in the "exports" field module resolution of the package at<EMAIL_ADDRESS>imported from D:\random\nuxt-app\node_modules. Mapping specifiers ending in "/" is no longer supported.
(Use `node --trace-deprecation ...` to show where the warning was created)

Since they are just warnings, the build will succeed, however in larger projects the amount of warnings emitted is rather obnoxious and makes them hard to ignore.
Edit: it seems like there is a relevant issue raised at nitro https://github.com/unjs/nitro/issues/2523 . With unjs/mlly which was updated just an hour ago, the amount of warnings was significantly reduced, but I guess it remains to be seen what can be done about the DEP0155 warning. Perhaps this is not an issue that needs to be fixed at schema-org after all...
Additional context
No response
Logs
No response

Hi, thanks for the issue. I have removed this export as I only introduced it trying to debug the /vue export path types which I found a solution for.


Add support for multiple consecutive trajectories.

When the /finish_trajectory service is called, a new trajectory
is started with the same sensor configuration. This enables
"pause and resume".

FYI @macmason @athackst


feat(versionRollout): add semver sort option

if you put ?sort=semver, the versions will be shown based on semver version, not based on download count

Geat idea

Thanks, fixed the merge conflict @himself65

good catch @himself65, seems like in some rebase I ended up with a reverse sort by accident


Render Icon

I have an issue with doctron, Doctron can't render emoji
Somebody can help me to fix it?
Thanks
example: 🛍 🛍🛍

hava a try ,using this issue url to generate.( http://doctron.lampnick.com/  )


Eventually should report what's going wrong together with the attempts

Given the following piece of code:
init {
        "Foo" {
            eventually(3.seconds, AssertionError::class.java) {
                3 shouldBe 3
                1 shouldBe 2
                4 shouldBe 4
            }
        }
    }

It's a code that will test a lot of assertions. In this specific case, I mocked some assertions with one of them being wrong, but escalate that to a real world scenario.
This test obviously fails, as 1 shouldBe 2 will throw an AssertionError. However, when we take a look at the failure message, it doesn't tell us what failed:
 java.lang.AssertionError: Test failed after 3 seconds; attempted 168628 times
With this message, I'm not sure if the non-deterministic didn't complete (for example, an API didn't return), or the expected return didn't work.

To solve this issue, the only workaround is to debug the code line by line to try to find what happened for it to fail.
It would be better if eventually included the thrown exception message with it, including the stacktrace of that exception, so that the developer could pinpoint the error.

Eventually can just take the message from a nested assertion error.


Implement Debug mode using Region.Highlight

Since most of my responses have some connection with each other, I'm writing a common one first.
This became such a big comment. 😆
What I wanted debug mode to be
I wanted debug mode to highlight the regions as well as keep the script running at the same speed.
Otherwise, what's really the use if the script will just wait after each highlight. Waiting will in many cases change the script's behaviour. We want it to run in the exact same way as it does without debug mode so that we can see what the script was doing at some point. And, I've confirmed multiple times that this DOES NOT interfere with the screenshots enough to cause any change in its behaviour. It doesn't matter in most cases since we use the UseSameSnap for many things which uses the same screenshot for further matching without taking new ones.
The script only highlights a region for 300ms right now. This can surely be increased.
Highlighted regions are too far to the right
Can you give me a screenshot for this? I tested both on my phone and Nox and the regions seem fine to me. Yeah, if you are talking about the rectangles going out of the screen, when they are at screen's border, I actually thought it would be better that way, so that future screenshots won't be overlapped. Might be having some problems on non-16:9 layouts.
About writing Comments
I admit I'm not very good at documentation and writing comments. The comments I write usually ends up feeling redundant to me, so I mostly give up on them. I really should improve myself here.
Instead of saying that the changes in this PR were difficult to understand, I think the overall project structure is a bit difficult to understand. I've explained it a bit below.
Returning null in scale functions
It was just an optimization to avoid unnecessary scaling of Images. You might then say then why not check scale== 1, but there is a problem, which is that equality comparison with floating-point types is not precise. Instead of scale == 1 we should ideally do Math.Abs(scale - 1) < epsilon where epsilon is the significance we want. I learned this from Resharper. It complains every time I compare two double or float values. This won't really be a problem usually but is not a good thing to do.
But, yeah, I agree that writing it as Location * (scale ?? 1) would be better.
How AutomataApi works
AutomataApi is just a proxy for calling the actual methods which are registered by an IPlatformImpl. AndroidImpl is where the actual Highlight function is defined. Region.Highlight is just a convenience function which itself calls AutomataApi.Highlight.
Now, the code in FateGrandAutomata.Core project works in the ScriptDimension coordinate space. And, the Android project works in the real coordinate space. It is the job of AutomataApi to transform the Location, Region, etc. objects to the correct coordinate spaces. This keeps those projects unaware of the transformations happening. It also handles changing images and corresponding Region to the CompareDimensions coordinate space.
I wrote it this way so that porting the scripts from Lua is easy. The scripts continue to work in the same dimensions they did before.
Time Unit
The whole Lua code was written using decimal times, so for ease of porting, I did the same. A simple regex replace should work for changing to TimeSpan objects, but that should be done in a different PR. The problems I had can happen even when using TimeSpan objects when we're interacting with Android's APIs though.

Here are my reactions:
What I wanted debug mode to be
The real problem with not waiting is that you can never take screenshots of them as a user because the red lines are gone too quickly. You can only detect problems if you do a video recording and look at it closely.
And if just decide to expand their lifetime from 0.3 to say 0.6, then suddenly you'll have 10 rectangles on the screen at the same time.
Highlighted regions are too far to the right
Here you can see that the red rectangle is off to the right.

The offset seems to be the width of my notch.
About writing Comments
I get the overall project structure and the connections, but still people who just joined developing this app would have to research every Android and OpenCV method you're using to find out what's happening.
In my old Github project almost nothing was commented and nobody except for me knew what things did. The useful things about method comments is that they appear when you hover over the methods in Visual Studio.
Comments may feel redundant to you because you currently know what the code does but this is not about you understanding your own code, it's about making it easier for other developers.
Returning null in scale functions
Is the value returned by ScriptToScreenScale() currently being compared anywhere to make your float comparison argument relevant?
How AutomataApi works
But then why does AutomataApi call Region.Highlight() instead of this.Highlight()? It currently goes like this: AutomataApi.FindAll() -> Region.Highlight() -> AutomataApi.Highlight() -> AndroidImpl.Highlight()
Time Unit
Yes, the danger of using the wrong time unit will also be there in the future, but at least it's clear for any developer working on your project. You called your parameter Timeout and expect readers to be able to detect that double implies seconds.
If you use TimeSpan.FromSeconds() or TimeSpan.FromMilliseconds() and then use that object somewhere else, you can just use timeSpan.TotalSeconds and timeSpan.TotalMilliseconds instead of relying on the datatype or variable to tell you which one it is supposed to be.
I only commented about using TimeSpan because you were adding a new method and mentioned yourself how we could use that class instead of double or int. So I thought "Why not do it cleanly for new methods?".

Reactions of reactions:
Highlighted regions are too far to the right
It seems we can't draw over the notch area, I'll adjust the drawn rectangles while also considering the Samsung option, in which case we can draw over the notch area.
Returning null in scale functions
Yeah, ScriptToScreenScale is used only for Region, Location, etc.
Only ScreenToImageScale is used to resize image. Sure, I'll make it return 1 instead of null then.
Why does AutomataApi call Region.Highlight() instead of Highlight(Region)
Because it looks better 😄
Time Unit
Sure, I'll make the highlight code use TimeSpan objects.
Comments
You know that's the real problem when you are the code author. You don't know exactly what needs to be explained and how much unless you're an experienced developer who has guided some assistants.
Still, I'll try to write some comments in a separate PR.
What I wanted debug mode to be
I think we need to discuss this more. If we only want the screenshot of a region from user, why not make it the whole game area, other areas would be relative to it anyway.
I actually found debug mode working this way useful in that now I know exactly when the script is doing what on my phone. I can see when it's in the outer loop, when it's in support, etc.
I can also see when it tries to check for Mana Prism/SQ rewards, which almost always misses on my phone.


Application crash after assertionFailure in sendMessage Meteor/METDDPConnection.m:74

Context:

App is in swift running on ios 10
App is connected through wss to meteor 1.4 application
I am logged in Meteor and use callMethod() to Meteor

I get an assertionFailure on sendMessage (followed by a crash of my app):
22:25:24.513 Connected to DDP server with protocol version: 1, sessionID: iC8G8LscSmmGP37cm
22:41:11.287 *** Assertion failure in -[METDDPConnection sendMessage:], /Meteor/METDDPConnection.m:74
22:41:11.288 Will retry opening connection after 5.812469 seconds
22:41:11.290 *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Attempting to send message without an open connection'

From the trace, it looks like I was connected to the DDP server, and somehow the connection got lost (probably phone lost cell signal).

Even I encountered the same issue. When ever internet connection is slow I use to get this message and app is getting crashed I think this is because of connection is getting closed and meteor try to send ping pong message.
Due to  using  NSAssert(self.open, @"Attempting to send message without an open connection"); in **METDDPConnection.m  "sendMessage"**App is getting crashed when ever self.open is false  so I got two solutions -

Go to Build Setting search assert then you will get  Enable Foundation Assertions  in that for Debug mode make it NO  for Release already it is NO

Remove NSAssert(self.open, @"Attempting to send message without an open connection");


add impl From<std::fs::File> for File

Hi,
As stated in the title, this PR adds impl From<std::fs::File> for async_fs::File by using the internal File::new function. I don't know if there are any hidden gotchas' but I found it useful for integration with other non-async crates, like tempfile and so on.

Published v1.1.0


How to access /api/v1/me ?

hi man, thanks for your template. i already try with postman, i got some problem when i want to access /api/v1/me, they still cannot show user, i got error "Page not found" sometimes  "Unauthorized". i think, cause i dont understand to use it, could you tell me?

@Dedy54 For now it returns an api key and api secret. You take the api key and api secret combine them separated by a colon (apikeyvalue:apisecretvalue) and then base64 encode the string. Take that base 64 encoded string and put it in the authorization header like so:
Bearer: longbase64encodedstring
Alternatively, you could change the server code to combine them and base64 encode before sending to the client and then the client doesn't have to do anything.
I will update the template to do the base64 encoding and return that to the client to make it more straight forward and work out of the box.
I am also planning to update the template in the next week to use JWT instead of the key and secret.


Add temperature sensors to the velbus component

Description:
This will add temperature sensors to the velbus component
Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.github.io#6085
Checklist:

[x] The code change is tested and works locally.
[x] Local tests pass with tox. Your PR cannot be merged unless tests pass

If user exposed functionality or configuration variables are added/changed:

[x] Documentation added/updated in home-assistant.github.io

If the code communicates with devices, web services, or third-party tools:

[x] New or updated dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.

Now the merge conflicts are gone and all checks pass.


(js)dom dependency

v3 currently relies on jsdom when running in nodeJS.
The example in

https://github.com/mathjax/mathjax-v3/blob/master/samples/replace-html.js
https://github.com/mathjax/mathjax-v3/blob/master/samples/lib/myHTMLNodes.js
https://github.com/mathjax/mathjax-v3/blob/master/samples/lib/myDOM.js

implements a minimal replacement.
I'm wondering if that approach should not be the default.

Note the jsdom has been removed as a dependency in the alpha.6 release (though you can install it yourself and still use the jsdomAdaptor if you wish).


C-c C-s and C-c C-a inserts \n instead of newlines

What the title says. For instance, in the following case

Using C-c C-s will give

For this issue to be resolved, #159 should probably be resolved first, as otherwise the hole brackets must be manually removed.

Please reopen this and provide an file for reproducing the problem if it still persists

This problem seems to still persist. I will try to make an example when I'm at my computer and have the time.

The issue also occurs with C-c C-r. Here's a minimal reproducing example:
module Bug where

postulate
  A : Set

record Foo : Set where
  field
    very-long-field-name-1 : A
    very-long-field-name-2 : A
    very-long-field-name-3 : A

foo : Foo
foo = {! C-c C-r !}
-- foo = record\n{ very-long-field-name-1 = {!   !}\n; very-long-field-name-2 = {!   !}\n; very-long-field-name-3 = {!   !}\n}


python310Packages.myfitnesspal: 1.16.6 -> 1.17.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python310Packages.myfitnesspal is: "Python module to access meal tracking data stored in MyFitnessPal"
meta.homepage for python310Packages.myfitnesspal is: "https://github.com/coddingtonbear/python-myfitnesspal"
meta.changelog for python310Packages.myfitnesspal is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
Warning: a test defined in passthru.tests did not pass
Warning: no invocation of /nix/store/clkhj4g0dyr1ya7hqshnm4adihxf61hv-python3.10-myfitnesspal-1.17.0/bin/.myfitnesspal-wrapped had a zero exit code or showed the expected version
Warning: no invocation of /nix/store/clkhj4g0dyr1ya7hqshnm4adihxf61hv-python3.10-myfitnesspal-1.17.0/bin/myfitnesspal had a zero exit code or showed the expected version
0 of 2 passed binary check by having a zero exit code.
0 of 2 passed binary check by having the new version present in output.
found 1.17.0 with grep in /nix/store/clkhj4g0dyr1ya7hqshnm4adihxf61hv-python3.10-myfitnesspal-1.17.0
found 1.17.0 in filename of file in /nix/store/clkhj4g0dyr1ya7hqshnm4adihxf61hv-python3.10-myfitnesspal-1.17.0

Rebuild report (if merged into master) (click to expand)

4 total rebuild path(s)

2 package rebuild(s)

2 x86_64-linux rebuild(s)
2 x86_64-darwin rebuild(s)

First fifty rebuilds by attrpath
python310Packages.myfitnesspal
python39Packages.myfitnesspal

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/clkhj4g0dyr1ya7hqshnm4adihxf61hv-python3.10-myfitnesspal-1.17.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python310Packages.myfitnesspal https://github.com/r-ryantm/nixpkgs/archive/fdc1b46e1e183878e88292150e9368042cf2e431.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/clkhj4g0dyr1ya7hqshnm4adihxf61hv-python3.10-myfitnesspal-1.17.0
ls -la /nix/store/clkhj4g0dyr1ya7hqshnm4adihxf61hv-python3.10-myfitnesspal-1.17.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

2 packages built:

python310Packages.myfitnesspal
python39Packages.myfitnesspal

Maintainer pings
cc @bhipple for testing.

Result of nixpkgs-review pr 164941 run on x86_64-linux 1

2 packages built:

python310Packages.myfitnesspal
python39Packages.myfitnesspal


Windows 10: FileNotFoundError: [WinError 2] The system cannot find the file specified

Traceback (most recent call last):
  File "scripts/txt2imghd.py", line 549, in <module>
    main()
  File "scripts/txt2imghd.py", line 365, in main
    text2img2(opt)
  File "scripts/txt2imghd.py", line 476, in text2img2
    realesrgan2x(opt.realesrgan, os.path.join(sample_path, f"{base_filename}.png"), os.path.join(sample_path, f"{base_filename}u.png"))
  File "scripts/txt2imghd.py", line 368, in realesrgan2x
    process = subprocess.Popen([
  File "C:\Users\user\miniconda3\envs\ldm\lib\subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Users\user\miniconda3\envs\ldm\lib\subprocess.py", line 1307, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified

Seeing this error after the txt2img function runs and then trys to run the realesrgan2x sub process
I have added the executables and bin files to my root folder, models folder, even the scripts folder

... I am usually on a mac. Downloaded the incorrect files 😅


feat(protocol): added an example static AddressManager

@davidtaikocha You'll need to fill in the actual addresses then upgrade the proxy in front of a normal AddressManager using StaticAddressManager.

Will do it after the alpha-3 protocol deployment.

Closed by https://github.com/taikoxyz/taiko-mono/pull/13873


create_wrapped_native_account() implemented

@kuznetsov-m thank you for contributing! But to merge in your PRs, please run make lint and make format locally so that your PRs will pass the CI tests. Thank you!

@michaelhly Thanks for the advice! I didn't really execute these commands.
During the execution of the make lint command and received the following error:
...
pipenv run mypy --namespace-packages --explicit-package-bases spl
Loading .env environment variables...
usage: mypy [-h] [-v] [-V] [more options; see below]
            [-m MODULE] [-p PACKAGE] [-c PROGRAM_TEXT] [files ...]
mypy: error: unrecognized arguments: --explicit-package-bases
make: *** [lint] Error 2

Could you help me with this error?

@michaelhly Thanks for the advice! I didn't really execute these commands.
During the execution of the make lint (master branch) command and received the following error:
...
pipenv run mypy --namespace-packages --explicit-package-bases spl
Loading .env environment variables...
usage: mypy [-h] [-v] [-V] [more options; see below]
            [-m MODULE] [-p PACKAGE] [-c PROGRAM_TEXT] [files ...]
mypy: error: unrecognized arguments: --explicit-package-bases
make: *** [lint] Error 2

Could you help me with this error?

What version of mypy do you have installed?

@michaelhly Thanks for the advice! I didn't really execute these commands.
During the execution of the make lint (master branch) command and received the following error:
...
pipenv run mypy --namespace-packages --explicit-package-bases spl
Loading .env environment variables...
usage: mypy [-h] [-v] [-V] [more options; see below]
            [-m MODULE] [-p PACKAGE] [-c PROGRAM_TEXT] [files ...]
mypy: error: unrecognized arguments: --explicit-package-bases
make: *** [lint] Error 2

Could you help me with this error?

What version of mypy do you have installed?

Environment installed from Pipfile.lock
pipenv install --dev
https://github.com/michaelhly/solana-py/blob/36a9eaf5051feecf79a770f02f53cccd241b09db/Pipfile.lock#L702
mypy                          0.782
mypy-extensions               0.4.3

0.782

ahh sorry about this. I think you need to be on these versions:

@michaelhly Thanks for the advice! I didn't really execute these commands.
During the execution of the make lint (master branch) command and received the following error:
...
pipenv run mypy --namespace-packages --explicit-package-bases spl
Loading .env environment variables...
usage: mypy [-h] [-v] [-V] [more options; see below]
            [-m MODULE] [-p PACKAGE] [-c PROGRAM_TEXT] [files ...]
mypy: error: unrecognized arguments: --explicit-package-bases
make: *** [lint] Error 2

Could you help me with this error?

What version of mypy do you have installed?

Environment installed from Pipfile.lock
pipenv install --dev
https://github.com/michaelhly/solana-py/blob/36a9eaf5051feecf79a770f02f53cccd241b09db/Pipfile.lock#L702
mypy                          0.782
mypy-extensions               0.4.3

I read in the documentation about --namespace-packages and --explicit-package-bases flags. Therefore, these arguments must be known to mypy. I seem to be doing something wrong.

Can you try pulling in the latest laster, run rm -rf Pipfile.lock and then run pipenv install --dev again?

@michaelhly Thanks for the advice! I didn't really execute these commands.
During the execution of the make lint (master branch) command and received the following error:
...
pipenv run mypy --namespace-packages --explicit-package-bases spl
Loading .env environment variables...
usage: mypy [-h] [-v] [-V] [more options; see below]
            [-m MODULE] [-p PACKAGE] [-c PROGRAM_TEXT] [files ...]
mypy: error: unrecognized arguments: --explicit-package-bases
make: *** [lint] Error 2

Could you help me with this error?

What version of mypy do you have installed?

Environment installed from Pipfile.lock
pipenv install --dev
https://github.com/michaelhly/solana-py/blob/36a9eaf5051feecf79a770f02f53cccd241b09db/Pipfile.lock#L702
mypy                          0.782
mypy-extensions               0.4.3

I read in the documentation about --namespace-packages and --explicit-package-bases flags. Therefore, these arguments must be known to mypy. I seem to be doing something wrong.

Can you try pulling in the latest master, run rm -rf Pipfile.lock and then run pipenv install --dev again?

Now it works great! Thank you!
make lint and make format do not require any modifications to this PR. Is there anything else to improve this PR?

@kuznetsov-m are you sure? CI says you need to run make format.

@michaelhly really sorry, I missed changes.

@michaelhly It seems I managed to pass all the checks. Are there any more recommendations for edits?


Dynamic TagName causing error after version upgrade

typescript version: 3.2.2
IDE: VS Code
Description:
I updated from v3.1.6 to v3.2.2. This is my code:
import * as React from 'react';

export interface Props {
  tag?: string,
};

const MyComponent: React.FunctionComponent<Props> = ({
  tag: Tag = 'div', children
}) => {
  return (
    <Tag> // this is causing the error
      {children}
    </Tag>
  );
};

Expected:
No error
Actual:
Error produced:
[ts] Type '{ children: ReactNode; }' has no properties in common with type 'IntrinsicAttributes'. [2559]
This seems like a regression as it worked in v3.1.6

properties in common with type 'IntrinsicAttributes'

typescript version: 3.2.2
IDE: Vim
Also experiencing this, but with className producing the error. I've resorted to using React.createElement as a workaround:
    return React.createElement(tagName, {
      children,
	  className,
      ...restProps,
    });

@just-boris - ideally we don't need to do that. My work around has just been adding this comment above my <Tag...: // @ts-ignore  https://github.com/Microsoft/TypeScript/issues/28892.
Arguably this is just as bad, since we turn off type checking.

For anyone reading this: This error is pretty much correct and is because making a tag out of an arbitrary string isn't typesafe (rather: the element can be created but will potentially throw with Target container is not a DOM element. when rendered by react-dom). The NeedsInvestigation tag is, IIRC, just to find why it worked before we refactored how we handled JSX (it shouldn't have from what I know...). In your code, if you want to say that you have a valid html tag name, you should use keyof React.ReactDOM instead of string (which, FYI contains both the HTML and SVG elements - if you only intend for one or the other, you should select either ReactSVG or ReactHTML instead). JSX.IntrinsicElements contains no definition for the props for something of type string (that would require an index signature, which react does not define). This makes perfect sense - react has no idea how to make a "foobar" tag correctly. Within react's types, ReactType is defined in a similar fashion (in terms of JSX.IntrinsicElements).
If anything, I'd say that the preferred workaround for anyone who finds this, rather than suppressing the error, is trying to rejigger their string type into the keyof React.ReactDOM (or keyof JSX.IntrinsicElements) union instead.

Thanks @weswigham I'll give that a go!

Since I updated typescript 2.9.x to 3.3.4000 I have been getting this errors too.
I was using keyof JSX.IntrinsicElements as a workaround and it worked twice, but once I added it to the third one it somehow caused my whole build process to stuck in an infinite loop. I tried to dig into the issue a bit using node --inspect tsc but only saw something stuck trying to union undefined with something else.

Unfortunately I've found that even using keyof React.ReactHTML is not working:

interface CollapseHeaderProps {
  collapsed: boolean;
  HeaderTag: keyof React.ReactHTML;
  title: string | JSX.Element | React.ReactNode;
  toggle: () => void;
}

const CollapseHeader: React.SFC<CollapseHeaderProps> = props => {
  const {title, collapsed, toggle, HeaderTag} = props;
  return (

      <HeaderTag>
        <Icon icon={collapsed ? 'plus' : 'minus'} />
        {title}
      </HeaderTag>

  );
};

I still get
error TS2604: JSX element type 'HeaderTag' does not have any construct or call signatures.

This is on TypeScript 3.2.4.

import { DetailedHTMLFactory, HTMLAttributes } from 'react';
export type DynamicTagNameType = DetailedHTMLFactory<HTMLAttributes, HTMLDivElement>;

@moog16 THANK YOU! // @ts-ignore saves me :)

I was using React.FunctionComponent but that was giving an error. Other ones don't work because I am setting the component so sadly I am now using any, which I still think better than @ts-ignore.

This seems to work:
export function DynamicTag(props: DynamicTagProps) {
  let {tag: Tag, ...rest} = props

  return <Tag {...rest} />
}

export type DynamicTagProps = React.HTMLAttributes<HTMLOrSVGElement> & {
  children: string
  tag?: keyof JSX.IntrinsicElements
}

DynamicTag.defaultProps = {tag: 'div'}

This is the calculated type of tag:

I have the same issue & nothing here works for me. I have exactly the same case to make dynamic tag with default value as a string & I have to use ref as well as className. It just doesn't work.
Would love any help 🙏

I solved it by using React.createElement like:
const Example = () => {
   return React.createElement(
        Wrapper,
        {
          ref: myRef,
          className: myClassnames
        }
      )
}

type DemoProps<T> = {
  tagName?: T extends string ? keyof JSX.IntrinsicElements : T;
}

export default function Demo<T>(props: DemoProps<T> = {}) {
  const { tagName: TagName = 'a' as any, ...other } = props;
  return <TagName {...other}></TagName>;
}

Use  Demo component.
function Link() {
  return (
    www
  );
}

function Example() => {

  return (
    <>
      <Demo tagName={Link}></Demo>
      <Demo tagName="a"></Demo>
    <>
  );
}

It's not perfect.....

It will work

interfaceDynamicTagProps {
  text: string;
  tag?: keyof JSX.IntrinsicElements | string;
}

export const DynamicTag: FC<DynamicTagProps> = ({
  text,
  tag = 'span'
}) => {
  const ElementTag = tag as keyof JSX.IntrinsicElements;
  return (
    <ElementTag className={styles.HelpText} >
      {text}
    </ElementTag>
  );
}; ```


Add Drive specific option: --drive-skip-gdocs - fixes #1035

I've merged that - thank you very much.  A great first contribution :-)


Fix - Adjusted search sidebar component #971

Related issues
#971
Short description and why it's useful
I adjusted search sidebar component to look like template in figma:

change width of sidebar from 800px to 928px
add new scss file with all media queries and grid gutters widths to use them globally
add new scss file with variables for fonts to use them globally
grid gutters widths on mobile from 20px to 10px
change font size in search panel input to 18px on desktop and 16px on mobile

@filrak
before:

after:

And I added variables to scss for breakpoints, grid gutters and font-family


Fix uart reset

When resetting the tty instead of putting it in "raw" mode use "sane" mode
(see stty(1)) and also reset special characters to their defaults
(termios(3)).

Validated that it works on a usb-serial connected to Pixhawk... need to check on Aero/Joule where the problem is happening.

Also validated on a joule + pixhawk and on Aero RTF.