Recent changes to conda-build-all broke conda-dev-recipes

@rmcgibbo, conda-dev-recipes is now failing with:
Traceback (most recent call last):
  File "/io/conda-build-all", line 365, in <module>
    sys.exit(main())
  File "/io/conda-build-all", line 100, in main
    return execute(args, p)
  File "/io/conda-build-all", line 350, in execute
    code = build_package(m, python, numpy, args)
  File "/io/conda-build-all", line 309, in build_package
    force=args.force)
  File "/io/conda-build-all", line 225, in upload_to_binstar
    if is_prerelease(m):
NameError: name 'is_prerelease' is not defined

Looking at the code to see if I can figure out how to fix.

I can't follow the logic here. The function is_prerelease(m) doesn't seem to be defined anywhere.

Is this actually meant to be the function
def is_release_candidate(pkg_meta):
    from pkg_resources._vendor.packaging import version
    parsed = version.parse(pkg_meta.version())
    return parsed.is_prerelease

Yeah, it must be this.

Reopening issue because there is something else wrong even with the fix in #453.

Travis didn't run, but this was the error on my machine:
[LSKI1497:omnia/conda-recipes/conda-recipes.jchodera] choderaj% ./conda-build-all * --check-against omnia
Traceback (most recent call last):
  File "./conda-build-all", line 365, in <module>
    sys.exit(main())
  File "./conda-build-all", line 100, in main
    return execute(args, p)
  File "./conda-build-all", line 328, in execute
    metadatas = sort_recipes(args_recipe)
  File "./conda-build-all", line 166, in sort_recipes
    return [name2m[name] for name in toposort(graph)]
  File "./conda-build-all", line 132, in toposort
    ":\n%s" % '\n'.join(repr(x) for x in data.items()))
ValueError: Cyclic dependencies exist among these items:
(u'pdbfixer', set([u'openmm']))
(u'sphinx_rtd_theme', set([u'sphinx']))
(u'ensembler', set([u'pdbfixer', u'openmm']))
(u'repex', set([u'openmmtools', u'openmm']))
(u'sphinxcontrib-autodoc_doxygen', set([u'sphinx']))
(u'sphinxcontrib-bibtex', set([u'sphinx']))
(u'omnia', set([u'pdbfixer', u'openmm']))
(u'parmed', set([u'openmm']))
(u'openmoltools', set([u'openmm', u'parmed']))
(u'alchemy', set([u'openmm']))
(u'openmmtools', set([u'openmm', u'parmed']))
(u'openmm', set([u'sphinxcontrib-bibtex', u'sphinx']))
(u'openmm-beta', set([u'sphinx', u'sphinxcontrib-autodoc_doxygen', u'sphinxcontrib-bibtex', u'sphinxcontrib-lunrsearch']))
(u'sphinxcontrib-lunrsearch', set([u'sphinx']))
(u'sphinx', set([u'sphinx_rtd_theme']))
(u'yank', set([u'openmmtools', u'openmoltools', u'openmm']))


[WiP] Automatic phase building

The DSL is still ugly and seems mostly unnecessary.
For example LabelNode does not actually run on hosts, it runs on kube api. Maybe it should actually do @config.hosts.each instead of being run individually for each host.

closing because of #278 and rethink for now


TensorflowJS cannot be installed properly

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
MAC OS:
TensorFlowJS version (1.2.1):
Python version 3.6:

After installed pip install tensorflowjs==1.2.1
I use tensorflowjs_converter --help it gives the errors:
WARNING: Logging before flag parsing goes to stderr.
W0619 17:05:26.072402<PHONE_NUMBER>96928 __init__.py:309] Limited tf.compat.v2.summary API due to missing TensorBoard installation.
W0619 17:05:26.101637<PHONE_NUMBER>96928 __init__.py:336] Limited tf.summary API due to missing TensorBoard installation.
Traceback (most recent call last):
  File "~/anaconda3/lib/python3.6/site-packages/tensorflow_hub/tf_v1.py", line 30, in <module>
    from tensorflow_estimator import estimator
  File "~/anaconda3/lib/python3.6/site-packages/tensorflow_estimator/__init__.py", line 8, in <module>
    from tensorflow_estimator._api.v2 import estimator
  File "~/anaconda3/lib/python3.6/site-packages/tensorflow_estimator/_api/v2/estimator/__init__.py", line 31, in <module>
    from tensorflow_estimator.python.estimator.estimator_lib import BinaryClassHead
  File "~/anaconda3/lib/python3.6/site-packages/tensorflow_estimator/python/estimator/__init__.py", line 25, in <module>
    import tensorflow_estimator.python.estimator.estimator_lib
  File "~/anaconda3/lib/python3.6/site-packages/tensorflow_estimator/python/estimator/estimator_lib.py", line 67, in <module>
    from tensorflow_estimator.python.estimator.tpu.tpu_estimator import TPUEstimator
  File "~/anaconda3/lib/python3.6/site-packages/tensorflow_estimator/python/estimator/tpu/tpu_estimator.py", line 86, in <module>
    from tensorflow_estimator.python.estimator.tpu import _tpu_estimator_embedding
  File "~/anaconda3/lib/python3.6/site-packages/tensorflow_estimator/python/estimator/tpu/_tpu_estimator_embedding.py", line 32, in <module>
    from tensorflow.python.tpu import feature_column_v2 as tpu_fc_v2
ImportError: cannot import name 'feature_column_v2'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "~/anaconda3/bin/tensorflowjs_converter", line 6, in <module>
    from tensorflowjs.converters.converter import main
  File "~/anaconda3/lib/python3.6/site-packages/tensorflowjs/__init__.py", line 21, in <module>
    from tensorflowjs import converters
  File "~/anaconda3/lib/python3.6/site-packages/tensorflowjs/converters/__init__.py", line 24, in <module>
    from tensorflowjs.converters.tf_saved_model_conversion_v2 import convert_tf_saved_model
  File "~/anaconda3/lib/python3.6/site-packages/tensorflowjs/converters/tf_saved_model_conversion_v2.py", line 38, in <module>
    import tensorflow_hub as hub
  File "~/anaconda3/lib/python3.6/site-packages/tensorflow_hub/__init__.py", line 30, in <module>
    from tensorflow_hub.estimator import LatestModuleExporter
  File "~/anaconda3/lib/python3.6/site-packages/tensorflow_hub/estimator.py", line 25, in <module>
    from tensorflow_hub import tf_utils
  File "~/anaconda3/lib/python3.6/site-packages/tensorflow_hub/tf_utils.py", line 28, in <module>
    from tensorflow_hub import tf_v1
  File "~/anaconda3/lib/python3.6/site-packages/tensorflow_hub/tf_v1.py", line 32, in <module>
    from tensorflow import add_to_collection
ImportError: cannot import name 'add_to_collection'

I am so frustrated that I wasted too much time on this buggy stuff.

After following operations :
$ pip uninstall tf-nightly-2.0-preview
$ pip install tensorflow==1.13.1

if gives the errors:
  File "~/anaconda3/bin/tensorflowjs_converter", line 6, in <module>
    from tensorflowjs.converters.converter import main
  File "~/anaconda3/lib/python3.6/site-packages/tensorflowjs/__init__.py", line 21, in <module>
    from tensorflowjs import converters
  File "~/anaconda3/lib/python3.6/site-packages/tensorflowjs/converters/__init__.py", line 24, in <module>
    from tensorflowjs.converters.tf_saved_model_conversion_v2 import convert_tf_saved_model
  File "~/anaconda3/lib/python3.6/site-packages/tensorflowjs/converters/tf_saved_model_conversion_v2.py", line 30, in <module>
    from tensorflow.python.framework import convert_to_constants
ImportError: cannot import name 'convert_to_constants'

I think installed tensorflow version not match the tensorflowjs

I had the same issue (with tf2) - I deleted line 67 from tensorflow_estimator/python/estimator/estimator_lib.py and the conversion worked.

After comparing the two branches r1.13 and r1.14
I upgrade tensorflow==1.13.1 to tensorflow==1.14.0
Everything works fine~~

I had the same issue (with tf2) - I deleted line 67 from tensorflow_estimator/python/estimator/estimator_lib.py and the conversion worked.

THANKS  FOR YOUR REPLY~ YOU SAVE ME~

I had the same issue (with tf2) - I deleted line 67 from tensorflow_estimator/python/estimator/estimator_lib.py and the conversion worked.

Works for me by commenting on line 69
#from tensorflow_estimator.python.estimator.tpu.tpu_estimator import TPUEstimator

This seems to be related to mixing tensorflow and tf-nightly in the same virtualenv... I started getting all kinds of bizarre errors after installing/uninstalling both packages, even though I never had them both installed at the same time. Could only fix it by wiping the virtualenv and reinstalling deps from scratch.


Refactor evidence/confidence level/direction model in annotation-source.yaml

This PR proposes to update the representation of evidence and confidence levels/directions to align with the VA 'PropositionAssessment' model documented here, which we discussed at the end of the most recent VA call.

Removes confidence_level and confidence_score from InformationEntity (per discussion here) - and moves them into Statement
Defines two trios of properties in the Statement class to represent assessments of evidence and confidence in the target proposition - to makes it very clear what aspect of the target proposition is being assessed and how. (Note that trios to support confidence assessments and evidence assessments are needed because cvc data does the former, and metakb data does the latter . . . but within any one Statement subtype only one trio is needed)

evidence_level, evidence_score, evidence_direction -> used to describe evidence assessments
confidence_level, confidence_score, confidence_direction -> used to describe confidence assessments

Proposes enumerations for values of direction and level attributes in the Statement class.
Proposes a specific enumeration for values of  confidence_level in the VariationGermlinePathogenicityStatement class

I also created this this data example, to illustrate the model and its application to ClinVar data more concretely. We can discuss in more detail when we next meet.
FWIW, I find that it can be hard to see the forest for the trees when trying to negotiate diffs and comments in the 'Conversation' and 'Files Changed' views of a PR - and always start by looking at the updated file directly (then go back to look at diffs and comments).

Locking metakb-cvc for plenary, created #90 to revisit these points at a later date.


Add test dependencies on Humble branch.

ament_lint_auto nor ament_lint_common are not listed as dependencies for smacc2_msgs. ament_lint_auto is required due to the find_package call and while ament_lint_common is not mentioned by name, ament_lint_auto will only work if there are ament_lint packages present for it to configure.
This is causing the build failures mentioned in
https://github.com/robosoft-ai/SMACC2/issues/508#issuecomment-1591685849
There appear to be some significant differences between the rolling and humble branches so this may not be a complete or correct change.
┆Issue is synchronized with this Jira Task by Unito

Thank you @nuclearsandwich. Very much appreciated.


Error in title

Hi,
Title number 5, "Normalization" isn't bold as the rest of the titles 😊
Here is the link to the page:
https://github.com/microsoft/Security-101/blob/main/4.2 SecOps zero trust architecture.md#how-must-it-architectures-be-built-to-allow-centralized-log-collection

Fixed! Thank you!


[api] Fixes telemetry opt out

Fixes #2489
Description
Brief description of what this PR is about

If this change is a backward incompatible change, why must this change be made?
Interesting edge cases to note here

Codecov Report
Patch coverage: 72.14% and project coverage change: +1.82 :tada:

Comparison is base (bb5073f) 72.08% compared to head (d7a62c0) 73.91%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2490      +/-   ##
============================================
+ Coverage     72.08%   73.91%   +1.82%
- Complexity     5126     6904    +1778
============================================
  Files           473      679     +206
  Lines         21970    30061    +8091
  Branches       2351     3105     +754
============================================
+ Hits          15838    22220    +6382
- Misses         4925     6333    +1408
- Partials       1207     1508     +301

Impacted Files
Coverage Δ

api/src/main/java/ai/djl/modality/cv/Image.java
69.23% <ø> (-4.11%)
:arrow_down:

...rc/main/java/ai/djl/modality/cv/MultiBoxPrior.java
76.00% <ø> (ø)

...rc/main/java/ai/djl/modality/cv/output/Joints.java
71.42% <ø> (ø)

.../main/java/ai/djl/modality/cv/output/Landmark.java
100.00% <ø> (ø)

...main/java/ai/djl/modality/cv/output/Rectangle.java
72.41% <0.00%> (ø)

...i/djl/modality/cv/translator/BigGANTranslator.java
21.42% <0.00%> (-5.24%)
:arrow_down:

.../modality/cv/translator/ImageFeatureExtractor.java
0.00% <0.00%> (ø)

.../ai/djl/modality/cv/translator/YoloTranslator.java
27.77% <0.00%> (+18.95%)
:arrow_up:

...ain/java/ai/djl/modality/cv/util/NDImageUtils.java
67.10% <0.00%> (+7.89%)
:arrow_up:

api/src/main/java/ai/djl/modality/nlp/Decoder.java
63.63% <ø> (ø)

... and 228 more

... and 346 files with indirect coverage changes
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Initial support for multi-target tree.

This is a rough PR for early reviews and discussions, it contains bugs and unfinished code.

Add a new multi-target tree structure that's embedded into the existing regtree.
Add a new builder to hist.
Add a new evaluator to hist.

I try to reuse as much existing code as possible. For instance, there's no structural change to the histogram builder and the implementation just iterates over a list of builders for each target. However, this might change in the future as we want a more integrated implementation. The evaluation code has to be rewritten for performance. Lastly, there are some optimization techniques for the multi-target tree when the number of targets is huge. Some of the known methods include summarizing the gradient, selecting the gradient, projecting the gradient, optimizing for sparse gradient, etc. I haven't implemented any of those yet, the PR is for the core multi-target tree structure.
There are other cases where we have vector leaf but not multi-target tree grower. For instance, we might want the leaf to be a linear model, or it might contain extra parameters for a probability distribution. These will require new tree training algorithms, but the tree structure is largely the same. The PR is a proof of concept.
The implementation is not as efficient as the single-target one, which doesn't represent the theoretical performance of the strategy.
For small testing datasets, using vector-leaf might lead to significant overfit.
what's working

Multi-target regression and single-target-multi-class classification training using hist and gbtree with most of the tree parameters except for the mono constraint. Numeric feature only.
Inference on CPU including QDM, inplace, DMatrix for normal outputs. (no leaf index, SHAP, etc)

what's not working
everything else.
Related

https://github.com/dmlc/xgboost/pull/5460
https://github.com/dmlc/xgboost/issues/2087

Not sure if this is useful, but you can do it just for fun:
def alternate(plot_result: bool) -> None:
    """Draw a circle with 2-dim coordinate as target variables."""
    from xgboost.callback import TrainingCallback

    class ResetStrategy(TrainingCallback):
        def before_iteration(self, model, epoch: int, evals_log) -> bool:
            strategy = "monolithic" if epoch % 2 == 0 else "composite"
            model.set_param({"multi_strategy": strategy})
            return False

    X, y = gen_circle()
    # Train a regressor on it
    reg = xgb.XGBRegressor(
        tree_method="hist",
        n_estimators=4,
        n_jobs=1,
        max_depth=8,
        subsample=0.6,
        callbacks=[ResetStrategy()]
    )
    reg.fit(X, y, eval_set=[(X, y)])

(Just seeing this for the first time, haven't put much brain power into it yet.)
Will it be easy to use this where the multiple targets are different parameters of a random variable?
E.g. shape and scale of a gamma variable.

@s-banach
Essentially, multi target trees can be used if there are more than one parameter to predict. This can be useful if you want to model all parameters of a univariate and multivariate parametric distribution, see
Multi-Target XGBoostLSS Regression
Distributional Gradient Boosting Machines
XGBoostLSS - An extension of XGBoost to probabilistic forecasting


fix(server): add mpa html fallback support (fix #10707)

Description
fixes  #10707
What is the purpose of this pull request?

[X] Bug fix
[ ] New Feature
[ ] Documentation update
[ ] Other

Before submitting the PR, please make sure you do the following

[X] Read the Contributing Guidelines.
[X] Read the Pull Request Guidelines and follow the Commit Convention.
[X] Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
[X] Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
[X] Ideally, include relevant tests that fail without this PR but pass with it.

I think the current behaviour is expected. See https://github.com/vitejs/vite/issues/10707#issuecomment-1296612236


Help

I initially installed ur website to see how it would be like and after that i deleted it but right now i can not access my port 80, which use apache index on my web browser

Make sure to stop the docker container. That will bring back port 80.


Spyder runs wrong script

Description
What steps will reproduce the problem?

Open script1.py, run it, get graph, close it
Open script2.py, run it

What is the expected output? What do you see instead?
Instead of getting figures, that are produced from script2.py, I get figures from script1.py, even though it is closed. The figures don't even save.
Please provide any additional information below
Version and main components

Spyder Version: 3.1.4
Python Version: 3.6.0
Qt Versions: 5.6.2, PyQt5 5.6 on Windows

Dependencies
pyflakes >=0.6.0 :  1.5.0 (OK)
pep8 >=0.6       :  1.7.0 (OK)
pygments >=2.0   :  2.2.0 (OK)
qtconsole >=4.2.0:  4.3.0 (OK)
nbconvert >=4.0  :  5.1.1 (OK)
pandas >=0.13.1  :  0.19.2 (OK)
numpy >=1.7      :  1.11.3 (OK)
sphinx >=0.6.6   :  1.5.5 (OK)
rope >=0.9.4     :  0.9.4-1 (OK)
jedi >=0.9.0     :  0.10.2 (OK)
matplotlib >=1.0 :  2.0.0 (OK)
sympy >=0.7.3    :  1.0 (OK)
pylint >=0.25    :  1.7.1 (OK)

That's because you're using the same console to run both scripts, I think.
You can avoid this by going to the menu
Preferences > Run > General Settings

and activate the option called
Clear all variables before execution (IPython consoles)


Allow relocation of VHDX for Mariner VM - honor HyperV Settings

Describe the bug
On a system with a small system drive but a larger second drive, it should be possible to install the VM using an alternate path for the VHDX or to honor the settings in HyperV.
It appears the installer script is simply comparing the requested "DataSizeInGB" with available space on the C: drive.
 "DataSizeInGB": 500
Drives:
C                 554.12        376.69 FileSystem    C:\
E                   0.13        894.13 FileSystem    E:\
HyperV is correctly configured to store VHDX files in a folder on the E: Drive.
To Reproduce
Set DataSizeInGB lrager than free space on C: while HyperV is configured to store VHDX on a drive with plenty of space.
Run: New-AksEdgeDeployment -JsonConfigFilePath .\aksedge-config-full.json
[05/04/2023 14:53:28] Verifying Host Requirements for Linux node(s)

 - Verifying static IP support for selected configuration
 - Verifying host requirements for selected configuration (510 GB disk size, 16884 MB memory, 4 CPUs)

[05/04/2023 14:53:28] Verifying Host OS can support requested configuration

[05/04/2023 14:53:28] Verifying required storage, RAM and number of cores are available

 - Drive 'C:' has 376 GB free
 - A minimum of 510 GB disk space is required on drive 'C:'

[05/04/2023 14:53:28] Exception Caught!!!

 - Not enough disk space is available on drive 'C:'. (AksEdge-Core.psm1:6734)

[05/04/2023 14:53:29] Host machine does not fulfill system requirements for Linux deployment

Expected behavior
Allow the user to configure where to store VHDX besides C: or honor current HyperV settings.
Environment (please complete the following information):

AKS Edge Essentials Version [e.g. 3.22]

  "SchemaVersion": "1.6",
  "Version": "1.0",
  "DeploymentType": "ScalableCluster",

Kubernetes version ??
Windows Host OS (please complete the following information):

Edition: Enterprise
Version: 21H2  22000.1817
Virtual Machine: Linux

Additional context
Add any other context about the problem here.

Hyper-V settings are not used here. Please refer to https://learn.microsoft.com/en-us/azure/aks/hybrid/aks-edge-howto-setup-machine#install-aks-edge-essentials for configuring the vhdxdir during the msi install process.

So more of a documentation issue.  I see the option in the msi command line. If I read the docs more carefully I see it mentioned as an option.  Maybe have a side note calling out, "If you want to locate the Mariner/Windows vhdx on another drive you should use the VHDXDIR option" might be helpful.
msiexec.exe /i AksEdge-kXs-x.x.xxx.x.msi INSTALLDIR=C:\Programs\AksEdge VHDXDIR=C:\vhdx
Thanks!  I think you can close this as "not a bug"....  Or resolved.
I did find the vhdx, it is in the "Program Files" folder, not where I expected it.


Improving and extending benchmarks

One area where we are lacking right now is the benchmarking coverage. I would like to improve that in the coming weeks.
Infrastructure for benchmarking
Benchmarks are an essential part of linfa. They should give feedback for contributors on their implementations and users confidence that we're doing good work. In order to automate the process we have to employ an CI system which creates a benchmark report on (a) PR (b) commits to master branch. This is difficult with wall-clock benchmarks (aka criterio.rs) but possible with valgrind.

[ ] use iai for benchmarking
[ ] add a workflow executing the benchmark on PR/commits to master and create reports in JSON format
[ ] build a script parsing reports and posting it as comments to PR (see here)
[ ] add a page to the website which displays reports in a human-readable way
[ ] (pro) use polynomial regression to find influence of predictors (e.g. #weights, #features, #samples, etc.) to targets (e.g. L1 cache misses, cycles etc.) and post the algorithmic complexity as well

While Iai is more consistent, it also hasn't been updated in almost 2 years and it also can't exclude setup code from the benchmarks. I'm also not sure how valid instruction-count benchmarks would be for multithread code. I believe we should stick with Criterion for future benchmarks. For most changes we can just do benchmark comparisons manually. For CI usage I'd rather set up a dedicated benchmarking machine like rustc-perf.


Possible Poly1305 modular reduction bug

Hello, so I was looking at out various libraries perform modular reduction for poly1305.
So I was looking at the assembly here:
line 110 of: poly1305-x86_64.pl
I decided to run test vector number 5 from here: IETF Test Vector through the poly1305_iteration code.
This test vector will set:
r0 = 0x02
r1 = 0x00
h0 = 0xffffffffffffffff
h1 = 0xffffffffffffffff
h2 = 0x01

After the multiplication stage in this code one does get:
0x3fffffffffffffffffffffffffffffffe

This is correct, but then the reduction stage here does not reduce it further. It should reduce to 0x03 but just remains the same.
0x3fffffffffffffffffffffffffffffffe mod (2^130 - 5) = 0x03

What is interesting is crandall's reduction normally requires a subtraction as you can see from this image here, but I do not see such a subtraction in the code, this code is just performing the first part of the reduction with shifts and adds.

While this seems highly unlikely to happen if R is chose randomly like it's supposed to be for poly1305. This seems like a bug unless there is something to correct the accumulator h0, h1, and h2 elsewhere but I don't see it.

I don't know how it is corrected,
but the test rector No. 5 is part of our test suite, see:
https://github.com/openssl/openssl/blob/2080da84a49b0c52fc8c6e6caef5d373235bd3e4/test/recipes/30-test_evp_data/evpmac_poly1305.txt#L36-L40
So in the end the result seems to be correct.

Interesting because it just returns here after calling the main loop. poly1305_iteration
It is possible to perform one final reduction on the partially reduced result and still be correct. Like I do see the function poly1305_emit, but I don't see how it's being called after poly1305_blocks. If that test vector is passing on the scalar assembly code I guess something outside of this file must being calling something like poly1305_emit. That's why I said possible bug since at least invoking these assembly routines directly was failing in this case.

@Keith-Cancel the function poly1305_emit() is always invoked in the final step of the mac calculation. See Poly1305_Final() implementation in poly1305.c.

Ah okay. I guess that's what I get for testing something too isolated from the rest of the code base.


Good plug-in

Thanks for a simple, yet very useful plug-in ! I always like my text to be justified; to me it is the equivalent of an orderly house, clean, neatly arranged.


ff

Challenge Understand String Immutability has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:

// Setup
var myStr = "Jello World";

// Only change code below this line

myStr = "Hello World"; // Fix Me
myStr[0] = "H";

@razaqfatiu Your code isn't right. Since strings are immutable, you cannot change individual characters. Please read this instruction

For example, the following code:
var myStr = "Bob";
myStr[0] = "J";
cannot change the value of myStr to "Job", because the contents of myStr cannot be altered

Please visit the Help Room if you're still stuck on this.


Initial tests for the DAP debugger

This adds a Lister struct, which replaces Probe::list_all() and Probe::open.  This helps with testing by making it easier to use Mocks instead of actual probes.
Some initial tests using the new Lister to test the debug adapter are added as well.

I love the concept, but won't have time to review in detail until Monday. If other reviewers want to approve in the interim, I'm OK with that :)


External Variables do not appear to work

I've followed along with the documentation for setting external variables.
https://learn.microsoft.com/en-us/microsoft-copilot-studio/guidance/pass-context-variables-from-webpage-to-copilot
I have tried a very simple example to pass in the global variable UserName as a string.
Here's the code for my conversational start topic:
kind: AdaptiveDialog
beginDialog:
  kind: OnConversationStart
  id: main
  actions:
    - kind: Question
      id: question_eQrwwA
      interruptionPolicy:
        allowInterruption: true

      variable: Global.UserName
      prompt:
      entity: StringPrebuiltEntity

    - kind: SendActivity
      id: sendMessage_M0LuhV
      activity:
        text:
          - |-
            Hello! 👋 I'm your Virtual Assistant. How can I assist you today?
            Enter your question to get started. 😊
        speak:
          - Thanks for calling, how can I help?

Here's the code for my greeting topic:
kind: AdaptiveDialog
beginDialog:
  kind: OnRecognizedIntent
  id: main
  intent:
    displayName: Greeting
    includeInOnSelectIntent: false
    triggerQueries:
      - Good afternoon
      - Good morning
      - Hello
      - Hey
      - Hi

  actions:
    - kind: SendActivity
      id: sendMessage_abmysR
      activity:
        text:
          - |
            Hello, how can I help you today {Global.UserName}?
        speak:
          - Hello, <break strength="medium" /> how can I help?

    - kind: CancelAllDialogs
      id: cancelAllDialogs_01At22

You can see in the screenshot that Global.UserName is configured to allow external sources to set it:

When I am running this testing solution, I have a very simple test that looks like this:

This is what the test result is, for the utterance "Hello"

The utterance is being assigned to Global.UserName for some reason.
Am I using External Variables JSON incorrectly? How should I be using it?

@adam-boosted The issue is that Copilot was capturing the first message (e.g., "hello") from the user as the value for the global variable (Global.UserName) during the Conversation Start event. Since this variable is intended to store the user's name in your case, Copilot appended the utterance to the response instead of asking for and storing the actual user’s name.
To resolve this, please replace the current logic that captures the global variable with a proper message prompt and test the behavior to ensure it works as expected.

@gulzarudheen you have explained why the result is showing what it is, but what you have not explained is the last line of my original post:

Am I using External Variables JSON incorrectly? How should I be using it?

You'll see in my screenshots I have set External Variables JSON to:
{
   "UserName": "Roy"
}

Again, how do I make the External Variables JSON function provided by Copilot Studio Kit actually work as intended?


[Docs] - Update LiteLLM Integration Docs

Hi i'm the LiteLLM (https://github.com/BerriAI/litellm) maintainer. Made some improvements to the doc section on using litellm with logfire

@Kludex @alexmojaki can I get a review on this PR ?

Let me know when you have applied the comments @ishaan-jaff 🙏

I thought LiteLLM was a library to give introp between different LLMs, why does it need a proxy?

@ishaan-jaff are you still interested here? If so, please apply comments, and reply the question above.

@ishaan-jaff Happy to continue this PR if you have time to reply the comments here. 🙏
For now, I'll be closing this PR.


Added pre-processor for the full text search index. It allows to modi…

…fy the original text of the index. It could be useful in case the text field is uriEncoded and you want to have decoded data in the index.

Closed as a preferred approach to have an extra field for search.


ConnectionRefused

So I am testing my web service with HTTpie and I am trying to issue a GET request with the following
http --json --auth <ADMIN_EMAIL>:<PASSWORD> GET http://<IP_ADDRESS>:5000/api/v1.0/posts

@api.route('/posts/')
def get_posts():
    page = request.args.get('page', 1, type=int)
    pagination = Post.query.paginate(
        page, per_page=current_app.config['POSTS_PER_PAGE'],
        error_out=False)
    posts = pagination.items
    prev = None
    if pagination.has_prev:
        prev = url_for('api.get_posts', page=page-1, _external=True)
    next = None
    if pagination.has_next:
        next = url_for('api.get_posts', page=page+1, _external=True)
    return jsonify({
        'posts': [post.to_json() for post in posts],
        'prev': prev,
        'next': next,
        'count': pagination.total
    })

api is a blueprint
And I am getting the following error
pythonhttp: error: ConnectionError: ('Connection aborted.', error(111, 'Connection refused'))
When visiting http://<IP_ADDRESS>:5000/api/v1.0/posts in the browser it works just fine I can see all the json.
Tried to google around but nothing came up about HTTpie in exact or anything related to flask.

I'd look at the output of the running Flask app to see if there is something useful there.

Start the server in a separate terminal window (if you have forgotten)


Added MeanShift_MaxAbsScaler

this code has sslight changes
X = df[]
keep this has X= df[features]


Update dependencies

Webpack to 4.x
Removed unnecessary Babel plugins

Codecov Report

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

@@          Coverage Diff          @@
##           master    #60   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files          16     16
  Lines         248    248
=====================================
  Hits          248    248

Continue to review full report at Codecov.

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


support metrics rename

https://github.com/open-cluster-management/backlog/issues/8918
Signed-off-by: Marco<EMAIL_ADDRESS>

/lgtm


On resize modifier

as discussed in #47, this PR uses ember-on-resize-modifier instead of ember-did-resize-modifier

Hi, @st-h. I hope all's well with you.
I want to keep you updated about the status of the issue and your pull request. I was able to fix the failing tests recently. If you'd like, you can rebase your branch to work with the latest CI workflow and npm packages.
I'm continuing to observe if it makes sense to change the underlying resize modifier. I want to ensure that the modifier is well maintained and prepared for upcoming possible changes to Ember, so I haven't made a quick move.
I wanted to clarify that the long wait for a PR review isn't on you. I much appreciate the initial investigation that you made in this PR. 🙂
If it's okay with you, I'd like to leave the PR open but change the status to draft mode for now. Will you let me know what you think?

Hey @ijlee2,
thanks for the update. If you want to merge the PR, I'll be happy to rebase it. As far as the observer goes, I have been using the addon for a few months in production now and haven't had any issues. The observer is fairly easy to swap out (as you can tell from this PR), in case this should be necessary.
For now I'll stay with my fork, in case this won't get merged. Reason is that good performance for the observer is critical in my app and I don't want to add any code, that can already be handled by browsers natively (increases loading times among other things).

@st-h I'm glad to hear that the ember-on-resize-modifier has been working well in your production app. I'll definitely use the pull request that you made if the {{on-resize}} modifier ends up replacing {{did-resize}}. Will keep you posted. 👍🏼

Had some trouble with rebasing, but I think it looks good now. Tests run fine locally now. Let's see what CI thinks about it 😁

@st-h Thanks. To be safe, can you recreate the code changes, by following these steps?

Step 1a. Set upstream
git remote add upstream git@github.com:ijlee2/ember-container-query.git

Step 1b. Check that upstream was set correctly
git remote -v

# Output
upstream  git@github.com:ijlee2/ember-container-query.git (fetch)
upstream  git@github.com:ijlee2/ember-container-query.git (push)

Step 2. Get the latest code changes in your main branch
git checkout main
git pull upstream main
yarn install

Step 3. Reset git history in on-resize branch
git checkout on-resize
git reset --hard HEAD~8

Step 4. Do a rebase (note, origin and upstream are now equal because of - Step 2)
git pull --rebase origin main

Step 5a. Add a 1st commit, which installs ember-on-resize-modifier (check that the addon is listed in dependencies)
ember install ember-on-resize-modifier

Step 5b. Add a 2nd commit, which adds debounce (run linting before committing the changes)

Step 5c. Add a 3rd commits, which uninstalls ember-did-resize-modifier
yarn remove ember-did-resize-modifier

Step 6. Force push the commits
git push -f origin on-resize

@ijlee2 many apologies. I somehow totally missed your comment. If you still want to merge this, I will updated this PR tonight. Would be great if we could merge this, as I don't want to maintain a fork and I honestly have troubles making up time to do so. And thanks a lot for the detailed instructions.

@st-h No worries. Yep, if you can rebase your branch, that'd be great!

@ijlee2 I followed your instructions and force pushed the result, however I am somewhat unsure if what we see here is the desired result. I can also create a new branch/PR, if that makes more sense.
Unrelated: Did you had a chance to take a look at removing the css files? https://github.com/ijlee2/ember-container-query/issues/82

As a result of merging this pull request, I think the rendering tests have become flakey in CI. I'll look into what's happening.


Text classification & other local scenarios should not have Train in Azure next step

For every scenario that only has a local option, let's remove the "Train in Azure" card from the Next Steps page

Duplicate https://github.com/dotnet/machinelearning-modelbuilder/issues/913


[lookaside][torch.autograd.Function lookaside] use shallow_copy iff forward is empty

What does this PR do?
As per #1221 description, we don't strongly need shallow_copy if a trace representing a custom torch.autograd.Function.forward has multiple bsyms.

@t-vi would you like to review this?


add --random flag to init

I'll do this one :)

Issue is fixed and merged in #66 should be good to resolve

^


Required property 'is_animated' not found in JSON

I found a bug to report
If you try to get a Sticker Set into the variable, then the specified in the title error occurs.
Earlier it worked correctly.
Steps to reproduce
Just use some code like this:
Task<StickerSet> stickerSet = telegramBotClient.GetStickerSetAsync("RickAndMorty");
stickerSet.Wait();
Expected  behavior
I was expecting to receive a list of stickers in stickerSet.Result.Stickers
Actual behavior
System.AggregateException: 'One or more errors occurred. (Required properties not found in response)'
JsonSerializationException: Required property 'is_animated' not found in JSON. Path 'result', line 1, position 18931.
Screenshots
Not needed
Environment data
NuGet Package Version: 20.0.0-alpha.1 (I tried the nearest others, the problem remains)
.NET Version: 6.0
IDE: Visual Studio Version 17
App: Desktop Windows Forms

This is a breaking change from Bot API, you need to install the latest release, read more on this here https://github.com/TelegramBots/Telegram.Bot/issues/1375

This is a breaking change from Bot API, you need to install the latest release of the library. Read more on this here #1375.

Oh yes, it worked. Thank you so much!


[Pointer interceptor] Mouse events are propogated through the drawer

Steps to Reproduce

Create a web project, add the following lines to the pubspec.yaml dependencies: html_editor_enhanced: ^2.4.0+1 and pointer_interceptor: ^0.9.3
Execute flutter run on the code sample
Open the drawer, then click on the  ListTile elements to see that the ones that overlaps with the editor can't be interacted with
Tap the FAB to make the editor disappear, then open the drawer and check that the red debug overlay is visible (and thus all the ListTile elements are working as expected)

Expected results: The click should be intercepted by the PointerInterceptor elements, not by the underlying HTML editor. Moreover, the red debug layer should be always visible, despite having an HTMLElementView in the widget tree. The fact that the debug layer is not there might help understand what's happening.
Actual results: All the interactions with widgets that overlap with the HTML editor are intercepted by it. Also, the red debug layer appears only if there is no HTMLElementView visible.

Code sample

import 'package:flutter/material.dart';
import 'package:html_editor_enhanced/html_editor.dart';
import 'package:pointer_interceptor/pointer_interceptor.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      title: 'Flutter Demo',
      home: MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({Key? key, required this.title}) : super(key: key);
  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  var htmlEC = HtmlEditorController();
  var showEditor = true;

  final lorem = "Lorem ipsum dolor sit amet.";
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text(widget.title)),
      drawer: PointerInterceptor(
          debug: true,
          child: Drawer(
            child: ListView(
              children: [
                ListTile(onTap: () => _onTap(1), title: const Text("List tile 1")),
                ListTile(onTap: () => _onTap(2), title: const Text("List tile 2")),
                ListTile(onTap: () => _onTap(3), title: const Text("List tile 3")),
                ListTile(onTap: () => _onTap(4), title: const Text("List tile 4")),
                ListTile(onTap: () => _onTap(5), title: const Text("List tile 5")),
              ],
            ),
          )),
      body: showEditor
          ? HtmlEditor(
              controller: htmlEC, //required
              htmlEditorOptions: HtmlEditorOptions(
                initialText: lorem,
              ),
              otherOptions: const OtherOptions(
                height: 650,
              ),
            )
          : const Text("Editor hidden"),
      floatingActionButton: FloatingActionButton(
        onPressed: () => setState(() => showEditor = !showEditor),
        tooltip: 'Increment',
        child: const Icon(Icons.add),
      ),
    );
  }

  void _onTap(int i) {
    ScaffoldMessenger.of(context).showSnackBar(SnackBar(content: Text("Tapped list tile #$i")));
  }
}

Logs

flutter doctor -v
[√] Flutter (Channel stable, 2.10.1, on Microsoft Windows [Versione 10.0.19044.1526], locale it-IT)
    • Flutter version 2.10.1 at D:\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision db747aa133 (6 days ago), 2022-02-09 13:57:35 -0600
    • Engine revision ab46186b24
    • Dart version 2.16.1
    • DevTools version 2.9.2

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
    • Android SDK at C:\Users\Luca\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.1
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.0)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.11.31605.320
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2021.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Versione 10.0.19044.1526]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 98.0.4758.82
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 98.0.1108.43

[√] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

Hi @boganiLuca, Thanks for filing the issue. I am able to tap on the ListTiles in drawer with editor enabled Please take a look at the below output.
https://user-images.githubusercontent.com/31410839/154260394-ec7b5e14-2cbc-4e5c-948a-34098caac70b.mov

flutter doctor -v
[✓] Flutter (Channel stable, 2.10.1, on macOS 12.1 21C52 darwin-arm, locale en-GB)
    • Flutter version 2.10.1 at /Users/mahesh/Documents/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision db747aa133 (7 days ago), 2022-02-09 13:57:35 -0600
    • Engine revision ab46186b24
    • Dart version 2.16.1
    • DevTools version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.10.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)

[✓] IntelliJ IDEA Community Edition (version 2021.2.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 61.2.4
    • Dart plugin version 212.5080.8

[✓] VS Code (version 1.63.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.34.0

[✓] Connected device (3 available)
    • Redmi K20 Pro (mobile) • <IP_ADDRESS>:5555 • android-arm64  • Android 11 (API 30)
    • macOS (desktop)        • macos            • darwin-arm64   • macOS 12.1 21C52 darwin-arm
    • Chrome (web)           • chrome           • web-javascript • Google Chrome 98.0.4758.102

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

Let me know if I am missing anything

I haven't tested it on mobile, the issue is happening with the web platform. On mobile I suppose this won't even exists as issue, since PointerInterceptor is existing specifically for the web part.

Ah, I see thanks I was able to reproduce the issue on stable and the master channel.  The Widgets below the drawer seems to receive mouse events when hovered over the ListTile.
https://user-images.githubusercontent.com/31410839/154421426-0c102331-727f-44ae-9368-cd3f0ce37252.mov

flutter doctor -v
[✓] Flutter (Channel stable, 2.10.1, on macOS 12.1 21C52 darwin-arm, locale en-GB)
    • Flutter version 2.10.1 at /Users/mahesh/Documents/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision db747aa133 (7 days ago), 2022-02-09 13:57:35 -0600
    • Engine revision ab46186b24
    • Dart version 2.16.1
    • DevTools version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.10.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)

[✓] IntelliJ IDEA Community Edition (version 2021.2.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 61.2.4
    • Dart plugin version 212.5080.8

[✓] VS Code (version 1.63.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.34.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-arm64   • macOS 12.1 21C52 darwin-arm
    • Chrome (web)    • chrome • web-javascript • Google Chrome 98.0.4758.102

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

[✓] Flutter (Channel master, 2.11.0-0.0.pre.582, on macOS 12.1 21C52 darwin-arm, locale en-GB)
    • Flutter version 2.11.0-0.0.pre.582 at /Users/mahesh/Documents/flutter_master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision<PHONE_NUMBER> (26 hours ago), 2022-02-16 00:00:11 -0500
    • Engine revision b09cf53269
    • Dart version 2.17.0 (build 2.17.0-105.0.dev)
    • DevTools version 2.10.0

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.10.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)

[✓] IntelliJ IDEA Community Edition (version 2021.2.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 61.2.4
    • Dart plugin version 212.5080.8

[✓] VS Code (version 1.63.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.34.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-arm64   • macOS 12.1 21C52 darwin-arm
    • Chrome (web)    • chrome • web-javascript • Google Chrome 98.0.4758.102

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

It seems the html_editor_enhanced uses an IframeElement under the wraps. There's a chance that this is the same as:
https://github.com/flutter/flutter/issues/81081

I'm experiencing this when updating to 0.9.3 only, the issue doesn't exist when using 0.9.1
In my case it's not from the drawer component, but very similar in that my affected widget is inside a SlideTransition widget.

I also faced this issue again after flutter upgrade to 2.10.2. earlier in flutter version 2.8.x it was working fine but now it is again creating issue. In my case I have video frame in htmlElementView and above video frame an alert dialog appears. but click event on dialog button is not working instead of perform action of button it worked on video frame of htmlElementView.

I can reproduce the issue with pointer_interceptor: ^0.9.1 too, the widgets below the drawer receive mouse events verified with the code sample in the original post.
  html_editor_enhanced: ^2.4.0+1
  pointer_interceptor: ^0.9.1

Downgrading to 0.9.1 worked for me. But I noticed I have the problem only when rendering using canvaskit, not html. I need canvaskit because of the RenderRepaintBoundary.toImage() feature but maybe this can be a workaround for others.

I'm experiencing same issue with PointerIntercepter not working using google_maps_flutter_web and pointer_intercepter version ^0.9.1 or ^0.9.3. ( Haven't tried any other ones ).
I have a file with following:
Consumer<Manager>(
  builder: (context, value, child) {
     return Stack(
      children: [
        Google Maps(),
        PointerIntercepter(height: height of screen, width: width of screen, intercepting: value.dynamicValue),
        Mobile()/Desktop() - responsive layout,
      ],
     );
  },
),

The mobile layout can open a showModalBottomSheet() which has a DraggableScrollableSheet() as child.
When the showModalBottomSheet() is opened, I set dynamicValue = true in Manager, and call notifyListeners(),
All events of click or drag are still registered by GoogleMaps() instead of the showModalBottomSheet().
Seems to not be an "issue" with intercepting, if intercepting is set to true in Stack from beginning, but as soon as intercepting is a dynamic value, it seems to break.
Ofcourse the GoogleMaps() won't register anything, once PointerIntercepter(intercepting: true) is set from beginning.

@Spyingaround I faced exactly the same issue you described here. I added key: UniqueKey(), to the GoogleMap widget. Doing this fixed the issue. I am able to scroll up/down on the EndDraower I have in the Scaffold of my scene and the GoogleMap doesn't get the zoom in/out.
However, I see a tone of issues in the log that says:
Error: Assertion failed: file:///Users/hesam/Library/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter_web-0.3.2+1/lib/src/google_maps_flutter_web.dart:31:12
controller != null
"Maps cannot be retrieved before calling buildView!"
...
Error: Bad state: Future already completed
...

@Hesamedin thank you, adding key: UniqueKey() fixed same problem for me. And I don't have the log issue.

     return Stack(
    children: [
      Google Maps(),
       PointerIntercepter(height: height of screen, width: width of screen, intercepting: value.dynamicValue),
       Mobile()/Desktop() - responsive layout,
     ],
    );

@Spyingaround is the Mobile()/Desktop() widget a children of the PointerInterceptor (as documented), or are you trying to completely cover the Map as needed?

adding key: UniqueKey() fixed same problem for me

@Hesamedin, @renanyoy: Can I see some code of how you're using UniqueKey()?
The last time I checked this, setting UniqueKey() directly on the key attribute of a Widget (especially tested with GoogleMap) guarantees that it'll get re-rendered over and over again (each time the render method is called, the UniqueKey() returns a unique key (which is different from the one in the previous frame).
TL;DR: Do not use UniqueKey() directly on the widget unless you want it to be re-rendered all the time.

Be careful with UniqueKey though! If you construct a newUniqueKey inside a build method, the widget using that key will get a different, unique key every time you the build method re-executes. This will eliminate any benefits of using keys!

Source: Keys! What are they good for?

yep, UniqueKey() isn't a fix. I think it just makes the PointerInterceptor() refreshing too.  so it overlaps the map has it must be. The real problem seems like the PointerInterceptor doesn't know exactly when googlemap
flutter code, create his frame, and sometime the map code create a new frame and the pointerinterceptor's frame is pushed under the map.

     return Stack(
    children: [
       Google Maps(),
       PointerIntercepter(height: height of screen, width: width of screen, intercepting: value.dynamicValue),
       Mobile()/Desktop() - responsive layout,
     ],
    );

@Spyingaround is the Mobile()/Desktop() widget a children of the PointerInterceptor (as documented), or are you trying to completely cover the Map as needed?

Sorry for the delayed answer.
The PointerIntercepter is trying to cover the entire screen, and the responsive layout is a child of the Stack() widget just like the GoogleMap() widget.

But I have also tried wrapping widgets with the PointerIntercepter() widget, and it works fine if the Layout doesn't change.
As soon as the layout goes from 1. Desktop -> 2. Mobile -> 3. Desktop, the PointerIntercepter widget stops working as expected.

Now that Flutter 3.0 is out and it is required to update this package to use 3.0, I decided to take a look at the 0.9.2 commit to see what changed and may have broken it.
https://github.com/flutter/packages/commit/0bcdbdfd4922e385d04387ce974abc00c560002f
It appears the HTML element is now being set as "invisible" which seems like a potential issue that's in line with the issue we are experiencing of it not actually intercepting events. @hterkelsen , do you think you might be able to give some insight into this since it was your commit?

Closing as duplicate of: https://github.com/flutter/flutter/issues/81081

@ditman I don't know that the issues are completely related. In my previous comment I mentioned that the offending commit is the one for the 0.9.2 release of pointer_interceptor. I have tested reverting this commit and it does fix the issue. I will say that I don't fully understand what the purpose of the 0.9.2 release was, but it appears to set an "invisible" property that does sound like an unwanted outcome.

@MatthewPatience that was an optimization for the canvaskit renderer. I don't think that changes the way the Pointer Interceptor behaves in the DOM (but it might!)
I'm not forgetting about this issue just because I de-duplicated elsewhere :)

@MatthewPatience I've created a new issue to track this problem at the engine level:

https://github.com/flutter/flutter/issues/105485

(It's either an issue with the isVisible optimization for the canvaskit renderer somewhere here, or we need to make the PointerInterceptor visible again.)


Problem: Withdraw Function

Currently, most of the project once they finished mint. They will run away with all the money and say bye bye to the community.
This is very bad for NFT space.
I thing we should do something for this.
In Venture Capitalist market, when a project raise a certain amount of money. The project owner would not be able to get the total amount directly. They will get it in a timeline/vesting period.
My suggestion is adding a vesting period inside the withdraw function.
For eg, if the NFT project raise USD100,000. Initially, the project owner can only take 30%, after a year, it can take another 40% and a year and a half, get the remaining.
In between the period, if the community are not happy, they can halt the project by voting. If 50% of the NFT token holder say no to the project. The smart contract will halt the project by returning all the remaining fund back to the token holder.
Calculation:
NFT: 10000
Raise USD 100,000
Initially, project take 30% -> 30,000
Then, if the community found out that, the owner take the money and do nothing for the community. They will vote and halt the project. If voting are more than 50% which is 5000 nft holder say "stop it".
Then, remaining USD70,000 will refund back to all the NFT owner equally (USD70,000/10000 = USD7000) and the NFT tokens will send it back to owner.
The project certified dead. End story.
Benefit of implement this,

Reduce the risk of NFT investor
Create more real NFT project rather than scam project
We can educate NFT investor and I believe eventually this will become a standard for NFT project.

Question Arises Would Be.
What if one whale are happy with the owner and he bought up 5000 nft token and shutting down the project?
Answered:
That why usually we will set a minimum cap for each owner address. Let say 5 nft token for each owner.
What if they can create 1000 accounts with 5 nft token each, then shut down the project. If he/she really did that, I am speechless and nothing I can do.

Hey,
Love the suggestion. I think this could be a very healthy approach too.
A few notes. The Podium has a version of ERC721R where it releases funds every 2 weeks, 20% at a time. So 100% refund option in first two weeks, then 80% from weeks 2-4, then 60% and so on.
It's still a fairly short period of time but the vesting idea holds.
Since the team can take out 20% after 2 weeks, holders can only get a 80% refund each.
Another point about what you wrote. It's possible to allow each individual to remove their funds when they choose. So it doesn't rely on whales or team voting to keep funds in.
I think overall the idea is good though and it would be great for us to add an implementation along these lines with a longer term view to vesting creators.


OpenSource : Finding Issues on Github

Documentation on

Understanding the Github Search Bar
Creating and Finding Issues
Adding Labels

Batch-1
Open Source Contributor
Can I try with this one for documenting?

Nice issue , We need that @Harshil-Jani Thanks for creating 🙌 . Assigning this to you . Happy Documenting 🎉

i wanna do it plz assign

You've already assigned one issue , please complete that first


NPE when dependency artifact name is not specified

When an artifact is attached to a dependency declaration and no value is provided for the artifact name property, the build fails with a NPE.
For example:
apply plugin: 'java'

dependencies {
    compile('my.lib:1.2') {
        artifact {
            classifier = 'test'
        }
    }
}

Expected Behavior
Either provide a default value for the name property or deal with a null value or fail with a better error message when the value is null.
Current Behavior
Using a null value for an artifact name (however this happens) results in a NPE when the artifact is added to the dependency declaration.

@jjohannes may I assign this to you?

@oehme sure. I will check this.


Fix extension bugs

Reviewer: @shakyShane @alistairjcbrown
Asana: https://app.asana.com/0/1200930669568058/1205206733038177/f
Description

Private address not refreshing
Autofill buttons sometimes not clickable
Fix flytap username

Steps to test
Please do test this as I'm having trouble with private address generation and need further validation.

Visit https://gravida.pro/ddg/blob-test.html from Chrome
Fill in a private address
Fill in another one
→ Ensure that the field is filled and that at the second attempt you are provided with a different private address

FYI, I am adding a test for the private address refresh so we're covered in the future.

Code looks good, local testing all working as expected. LGTM :shipit:


Make tests and docs push to private repos

Sometimes the repos we push during CI stay there and they're not removed by the CI. This is not very crucial since another job periodically removes old stale CI repos. But they're listed and indexed to the public and they pollute the production space. Once #112 is fixed, we should make all CI repos private to avoid this issue.

Despite merging #130, let's keep this open for now because the inference repos can't be set to private for now.

Since we don't run the inference tests all the time, we significantly have fewer number of public repos from the CI. So I think we can close this one. I'm also not sure if/when we'll have private repo support on the inference side.


Add React Spring to Animation on Styling FAQ

Spring is a popular library on top of motion with some useful developments

@JamesInnes2169 thank you!


Where to install npm, angular cli and more ?

Issue Type

Documentation Report

macOS (version)

Summary
Hi, I am new to Vagrant, so a little help will be fine! thanks and sorry for this question:
I want to know where to setup different package for my vagrant environment. For be more specific, the npm, node, angular, etc. I am working on an Angular site, that consumes services from Drupal.
Looking this  and I think that we need a bootstra.sh for installation of different packages... Where is that?

To install npm/node, uncomment nodejs in the installed_extras list.
# Comment out any extra utilities you don't want to install. If you don't want
# to install *any* extras, set this value to an empty set, e.g. `[]`.
installed_extras:
  - adminer
  # - blackfire
  # - drupalconsole
  - drush
  # - elasticsearch
  # - java
  - mailhog
  # - memcached
  # - newrelic
  - nodejs
  - pimpmylog
  # - redis
  # - ruby
  # - selenium
  # - solr
  # - tideways
  # - upload-progress
  - varnish
  # - xdebug
  # - xhprof # use `tideways` if you're installing PHP 7+

If you want to install other packages or set specific versions you can find more information in the docs.


Add Dutch math notation

In the Netherlands the math notation is designed by Dedicon. Dedicon is the only national organization that adapts educational books to be accessible to blind and visually impaired readers. Teh math notation is very similar to AsciiMath. Hence, it is neither a true braille code nor a true spoken notation. Probably more of the former than the latter actually. Because it is the dominant notation in the Netherlands, I think it is worth implementing. The question is: how?
Although the notation's documentation is in Dutch, you can see some typical examples here. Besides AsciiMath-like rules there are also symbol replacements, e.g. inf for infinity, ~a for Greek letter alpha, etc. A key point is that the notation defines text and not braille dots, e.g. inf and not ⠊⠝⠋. In schools, students will most likely be reading the notation in their preferred braille table (mostly US/American, German or the more recent Dutch 8-dot standard). While some people have created speech rules, e.g. speak / as divided by, this is not how Dedicon intended the notation.
For implementation in MathCAT I see two possible routes:

Add multiple braille rule files, each based on its own braille table.
Add braille rules using plain text as opposed to Unicode braille.

I would be interested to hear your thoughts on this subject.

Good timing. Coincidentally, I was exploring a site to links to braille codes and was in the process of writing up an issue (#232).
To make sure I understand the situation, the Dutch rules for brailling a notation are the same (generate some ASCIIMath-like notation), but the difference is that sometimes a Latin (extended) alphabet is used (a, b, /, maybe ü, etc), sometimes 6-dot braille is used, and sometimes 8-dot braille is used. Is that correct? If so, then I think adding an option for the user to choose (along with choosing a braille code) is best. The unicode.yaml file would then test the option and include an appropriate translation file. I'm not 100% certain this works, but if it doesn't, I can fix things to make sure it does work. This allows the implementation to share the common translation rules but have different character translation rules.

The situation in the Netherlands is that Dedicon produces the accessible text. For math it is only read digitally, not embossed as braille on paper. So the Dutch math notation is meant for digital use, where the screen reeader translates the ASCII into braille and/or speech (mostly braille as I wrote earlier). So ideally MathCAT should translate MathML --> ASCII. However, in the Nemeth rules and Unicode replacement files I see only braille dots (Unicode braille). If unicode.yaml also accepts plain ASCII that would be a good solution I think.
As for embossed braille, Dedicon only produces this for primary education, i.e. very basic math. Unfortunately, there is no formal specification for math in embossed braille in the Netherlands. I suppose that what Dedicon needs for the digital math translation is more akin to MathJAX. However, since MathCAT is appearing in screen readers and EPUB/DAISY readers there is a very good case for implementing it there as well. I might be able to work on that in 2024.

Implementation is definitely simpler if you only want ASCII output. If you look at any of the speech files, you'll will see that is what is in the unicode.yaml files. For example, "⊆" will turn into something like "subset of or equal to". MathCAT uses the same basic system for generating speech and braille, although braille has an extra post-processing step that does some cleanup.
I'm happy to work with you on the braille math translation. Writing the Unicode file should be straightforward for you, but the rule file might not be as obvious.

I suppose that what Dedicon needs for the digital math translation is more akin to MathJAX

Apologies for drawing this out, but I am not following your meaning. What is it that MathJax does that you can't do with MathCAT?
I suspect that if you want to also have a Dutch speech translation, then you may want to support two speech styles: one that generates "normal" speech and one that generates "Dutch braille" speech. Taking the first integral as an example, the speech for each might be (in English):
Normal:  integral from 1 half pi to pi, sine x d x
Dutch braille: I n t g open brace 1 slash 2 space p i dot dot p i close brace s i n x d x
Maybe the latter doesn't make sense. The MathTalk speech style (which I haven't yet implemented) is basically of the later form: each word corresponds to a Nemeth braille character. It's not the most natural style of speech. For example "x superscript 2 baseline plus 1". It is supposedly useful for people who know Nemeth.

Thanks for the elaborate reply, lots of interesting info in there!
Let me clarify the MathJAX comment. Dedicon mainly delivers two digital formats:

EPUB through VitalSource Bookshelf, which incorporates MathJAX. I was thinking that it would make sense to have MathJAX be able to output Dutch math (commonly referred to as linear notation) through the accessibility extension, but looking more closely at it now that may not be true. I'm reconsidering and thinking that it would be better/easier to send MathML through Bookshelf to the screen reader, which in turn uses MathCAT.
Digital plain text file formats. In this case Dedicon needs a way to produce the linear notation during automated XML --> text conversion. While this is not quite 'math capable assistive technology', I think that MathCAT will be useful in this scenario (especially if it gains a Java API).
Bonus: there may eventually also be digital talking books complemented by math using text-to-speech. This would require speech rules.

So to summarize, if there is no silent rule that braille rule files should only contain Unicode braille, then I am confident that we can make Dutch math work. You are correct that we should also incorporate proper speech rules, but in contrast to Sweden and Finland I think that that will be secondary for Dedicon.
For some background on the linear notation, my colleague Dorine and I wrote an article about it for DEIMS in 2016.

Thanks for the clarification.
MathCAT does have a Java interface. I believe it is being used with BrailleBlaster.
MathCAT is pretty efficient: about 3-4 ms for generating either speech or braille for a medium-sized MathML expression on my 6 year old core I7 machine. I don't think dealing with math will be much of a problem time-wise if you incorporate it into your production system.
I believe I read your paper around the time of the conference (it seems very familiar). But it wasn't in my working memory.

I am not sure if our software Sao Mai Braille would somehow address your requests.
It's as a free Word editor and Braille translation. We use MathCAT for speech and Braille output for Math equations.
It supports to output in both unicode and ascii Braille. For ascii Braille, it has several different optionss like German, UK, Euro Braille etc.
For math notation, it works rather like you input equations in MS Word. Hope it helps.

@dkager: Is this still something you want added to MathCAT or should the issue be closed?

Yes, I still want this to be added to MathCAT. I'm just not sure about who and when. Maybe Dedicon, as the author of the notation can help with this. But that is tentative for now.

If there's a spec, I can do the implementation, but I need someone to write tests (typically based on the examples in the spec).

The spec is currently rather informal. We will be working on that in the coming weeks. I will get back to you when we have something more formalized.

FYI: @dkager: the 0.5.0 build includes ASCIIMath output as a braille format. It makes use of the current output braille table, so it will work with either Dutch 6 dot or 8 dot braille. The user needs to set the braille table. It also supports LaTeX output (using the macro names and spacing "specified" by German LaTeX braille) in the same manner.

Thanks! I may go and convert/extend this to our Dutch notation at some point. Did you hear anything from Vispero regarding this yet?

I'm not sure what you think I will hear from Vispero. I assume that when they pick up the latest version of MathCAT, they will include the new braille codes, but I don't know what their plans are. I haven't played around with MathCAT in JAWS yet and am uncertain about what features they have surfaced. If you have a specific question/ask, I can ask my contact there.
FYI: if you convert/extend the ASCIIMath implementation, you can use "include:" and then just modify the whatever rules you care about. There is a little spacing cleanup in the Rust code, so you probably want to talk with me about spacing cleanups.
For both LaTeX and ASCIIMath, I've been considering a Spacing option with values Loose, Medium, and Tight. I would say that for my implementation of ASCIIMath, it tended toward medium loose. For example, you could have hat x + bar y,  hat x+bar y, or hatx+bary as loose/medium/tight output. I think MathCAT is currently doing the middle one (I didn't test it out).

To clarify, I believe Vispero is intending to add Dedicon's notation, seeing that that is what is being used in The Netherlands.

Thanks for the clarification. By "Dedicon's notation", do you mean its math notation or literary braille notation? If they are doing the math notation, I'll see if it is something I can port into MathCAT. Hopefully they won't be too protective of their work given they get all my MathCAT work for free.

I mean the ASCII-like notation as discussed in this GitHub issue and listed on wiskunde.dedicon.nl. The Netherlands has no true braille math notation.

So, for example: ⊇ should turn into "omvatOf="?
I haven't heard, but haven't asked, whether Vispero is working on Dedicon's notation.
If you could gather all the symbols and their ASCII equivalents into a single file with lines like (symbol, ascii_text) along with telling me what grouping symbols to use when a numerator or superscript isn't simple (parens, braces, ...), I could add it to MathCAT relatively easily. I'd need you to send me examples of MathML in, your notation out so I can know whether the code works as you intend. For example what happens with an arrow over a letter (a typical vector notation). In ASCIIMath, it is vec x. Does Dedicon's notation include things like this? If so, where do I find the info for that. If not, what should happen if MathML has that notation in it?
If Dedicon's notation is ASCIIMath with just a change in the name of the symbols (e.g. "omvatOf=" instead of "supe"), that's just a few hours to implement if you give me the symbol list.

This is what we discussed a little bit when I first opened the issue. Unfortunately Dedicon cannot prioritize on the implementation in MathCAT right now. That includes me. :-)
That is why I am very eager to learn what Vispero (or any other open source contributor!) will make of it. In good news, I will be working on the somewhat more formal specification of the notation soon. That's something I can then share with you.


manage configuration in one file

Just keep is DRY.

Coverage remained the same at 96.312% when pulling 25c0ed6f95a69ce0d1033e89831e018c74afb16a on SidKwok:master into 62fadefecfe8155883cb3a7f191bbb28fc4ac78c on cherow:master.

@SidKwok Thanks! Are you sure this will work both for Mac/Linux and Windows? In the past I had issues with NODE_ENV not working cross-browser.

@KFlash It seems good to me in Mac and Linux. I don't have windows to test if it works. I will use cross-env to avoid the unnecessary error.

Coverage remained the same at 96.312% when pulling bb0a1faa5bb6625e073f06974f9913d9d81dc3ae on SidKwok:master into 62fadefecfe8155883cb3a7f191bbb28fc4ac78c on cherow:master.

@SidKwok Thanks again! Merging now!

Happy to Help :)


Support custom routing keys per message

Please can you make it possible to define the routing key per-message. This is a common requirement of RabbitMQ message producers where specific properties of the message are used to determine how the key can be filtered.
A proposal could be to change the generic argument of RabbitMQAsyncCollector from byte[] to a RabbitMQMessage which exposes both a byte[] Body property, and a string RoutingKey.
If the latter is left null, then the routing key would be defaulted to the QueueName when added to the batch, else the message specific routing key would be used.

Hello,
To go further on this idea, we also need a way to push messages not only to "queues" but also to rabbitMQ "exchange".
Pushing only to queues seems a limitation on the usage of routing keys.

I'm very willing to implement this and open a PR - I just need guidance from the team as to how the meta data of the message should be provided (currently there's just a byte[], so assume there would need to be a parent object of that).

I think the way to go about about this would be, instead of introducing a custom wrapper like in the PR here https://github.com/Azure/azure-functions-rabbitmq-extension/pull/77, actually add support for IAsyncCollector<BasicDeliverEventArgs> along with introducing the respective converters for

Converting from string to BasicDeliverEventArgs (replacing the existing converter from string to byte[])
Converting from Poco to BasicDeliverEventArgs (replacing the existing converter from Poco to byte[])
Converting from byte[] to BasicDeliverEventArgs (this would be a new converter to prevent breaking changes)

Other points from further discussion

As publish method does not take BasicDeliverEventArgs directly, we therefore do not have a mechanism to expose this as part of output binding. Reference line https://github.com/Azure/azure-functions-rabbitmq-extension/blob/dev/src/Bindings/RabbitMQAsyncCollector.cs#L33

We will revisit this feature ask when the underlying SDK supports publishing to queue with BasicDeliverEventArgs as input.

Blocked. There is no current API to leverage

Blocked. There is no current API to leverage


[azk-core integration] Including azk-core

included azk-core as dependency
t() helper was moved to azk-core on config class
config is now a class and configured in azk index

config return this object:
return {
  configInstance: _configAzk,
  config        : _configAzk.getKey.bind(_configAzk),
  get           : _configAzk.getKey.bind(_configAzk),
  set           : _configAzk.setKey.bind(_configAzk),
  t             : _configAzk.t.bind(_configAzk),
};

log is a class too and configured on azk index; It receives config_getKey as a dependency
utils.net was extracted to azk-core class
utils.docker is now a class and receives config dependencies
changed timeout of test "should generate a valid image" to 50s
_.rest was replace by _.slice because lodash was updated

Can one of the admins verify this patch?

ok to test

ok to test

ok to test

ok to test

Although azk-core is an important change to help in azk's maintenance in the future, right now we're focusing on improving performance and a few other things, related to issues #379, #382, #385, #386, #387 and #388


Laggy window drag with Fluent background on Windows 1903

I just updated my pc to Windows 10 1903, but saw that terminus' window moved incredibly slow. I thought this was a problem with my pc, so I rebooted it. After rebooting, it was still laggy. You can see that shareX completely gives up when moving the window: link.
In this video, you can see my actual cursor appearing once I stopped dragging, while the window keeps moving: link
This might be an issue with windows, but I've also tested it with fluent terminal, and that app moves fine.

I have same problem. Video

I have same problem. Video

Turns out, this is a problem with Windows 1903. I found this: link.

Fixed in build 18917

Since the bug of windows is still exists, it might be better if Terminus can disable Fluent effect temporarily when draging and re-enable it after the drag completed.
Enable and Disable Arcylic background cost a very little time(< 0.1s)

@hv0905 good idea

@hv0905 done - looking forward to your feedback

Unfortunately, the patch can't fix the bug in windows 10 build 19041. check out video here
This is because in this code you disabled the feature at above build 18917.
However the dragging bug is still exist (at lease in build 19041), so we have to keep the arcylic blur disabled when dragging above build 18917.
for @IgnusG 's report, ms just fixed the latency bug in emoji panel (they just directly removed the arcylic effect in emoji panel, very hacking).

Sorry - I missed the build no in your reply. Is there anything else I could check to detect a "broken" system? (it just works on my recent Insider build)

I couldn't find a way to detect it. But if in your insider build it works fine, maybe 19041 is the last build has the bug. (19041 is the slow ring of windows insider build).

Still lagging ( 2004, 19569.1000 )
Only happens if Background type is in Fluent mode. Blur is ok.

Has the problem.

Confirmed that it only happened when the mouse report rate is too high (~500Hz or more).
It seems that a way should be found to reduce graphics usage when dragging or resizing.
Something might be helpful:
https://github.com/Microsoft/vscode/pull/52707
https://github.com/arkenthera/electron-vibrancy

Since it got broken again in the recent Windows Update, fluent blur is now disabled while the window is being dragging or resized

I'm a new user evaluating Terminus on a fresh install - for me it's laggy on window drag even with window transparency temporarily disabling on drag.
Other transparent apps (like Windows Terminal, which remains transparent on drag) do not have this issue for me.
Some details that might or might not be helpful:
Terminus version 1.0.134
Windows 10 Pro 20H2 (19042.804)
Dual 4K monitors
Wallpaper Engine live wallpaper running
Mouse polling @ 1000hz

Broken again for me


Upper unicode points not supported

net.razorvine.pickle.PickleException: invalid escape sequence char 'U' in string "seth rollins \U0001f455 [...]" (possibly truncated)
Python pickles any unicode char above \uffff to \U0001xxxx.
decode_unicode_escaped() doesn't currently support
case: 'U'
and throws.  Can this support be added?

I'll see what I can do, sounds like a simple fix. Thanks for reporting.

@platnumkid  in the meantime, don't use pickle protocol 0.  Try using one of the recent protocols. For instance on Python3.8 we're at protocol 4. These encode differently and more efficiently.

Thanks!

Just released pickle 1.1  java and .net version, with the \U fix .


Not able to verify the token? it giving undefined!!!

Check your JWT secret is same for encoding and decoding. I think we can resolve this issue if we have same secret globally for entire project.

yes, was able to resolve.


Create a garden in the browser

As a user, I want to create a Garden using the website so I can add entrypoints via the CLI later

Design this workflow- where should "create a garden" be?
Use the editing metadata page format from issue #107 to inform a "create garden" page
Communicate with the backend to create this garden in the database

Questions to consider:

how does a user find the "create a garden" CTA? is this on the homepage? the user profile page? on garden pages? in the nav bar?
do we give them more context about what each field means since this is their first time filling out information for this garden? Or just direct them to the "editing metadata page" we made for #107?

Add a CTA for making an entrypoint and adding it to the garden

Shane polishing current work that he demoed on Friday.
Next steps: How do we publish from here? Right now this is saving a draft. This is able to be done on the backend currently so no hold up there.
Note: making entrypoints that don't belong to a garden. This would require changes on the backend. KJ would like someone to map out a user flow of this so we can get the details right.


Preload fails until second time

I've two structs, Event and Planning. An event has many plannings.
type Event struct {
    ID        int        `json:"id"`
    UserID    int        `json:"user_id"`
    Name      string     `json:"name"`
    CreatedAt time.Time  `json:"created_at"`
    Plannings []Planning `json:"plannings"`
}

type Planning struct {
	ID         int           `json:"id"`
	EventID    int           `json:"event_id"`
	StartAt    time.Time     `json:"start_at"`
	EndAt      time.Time     `json:"end_at"`
	Recurrence sql.NullInt64 `json:"recurrence"`
	CreatedAt  time.Time     `json:"created_at"`
}

I also have an API-endpoint setup using gin.
func retrieveEvents(c *gin.Context) {
    var events []entities.Event
    db.Preload("Plannings").Where("user_id = ?", 1).Find(&events)
    c.JSON(200, events)
}

The first time I make a request to the endpoint, I get back events as expected, but plannings are null. My log spits out (can't find field Plannings in *[]entities.Event) and the PostgreSQL log spits out the following:
LOG:  execute <unnamed>: SELECT  * FROM "events"  WHERE (user_id = $1)
DETAIL:  parameters: $1 = '1'

The second time  (or any request after that) I make a request to the endpoint, I get back events as expected, but this time, plannings are set as expected. The log does not spit out any errors and the PostgreSQL log spits out the following:
LOG:  execute <unnamed>: SELECT  * FROM "events"  WHERE (user_id = $1)
DETAIL:  parameters: $1 = '1'
LOG:  execute <unnamed>: SELECT  * FROM "plannings"  WHERE (event_id IN ($1))
DETAIL:  parameters: $1 = '1'

If you need more details in how to reproduce this, feel free to ping me and I'll give you more context.

Providing a full failing unit-test to demonstrate what is broken would be ideal in situations such as this one.

@jaytaylor absolutely, I'll get to it later today.

@jinzhu @jaytaylor I'm having a bit of trouble reproducing it as a test case. On the other hand, I've debugged it further and I know see why it fails. The first time, scope.fields are already set to an array with all fields except the plannings field. The second time scope.fields are set accurately to include the plannings field as well.
I'm willing to hunt this down further if I can get some pointers to where in the codebase fields are being set initially.

@KevinSjoberg I had the same issue which I solved by adding a DB.AutoMigrate(&ModelA{}, &ModelB{}). The issue seems without automigrate (which I assume you did in your test), the model's associations aren't loaded until first access.

@ramyala you're correct. Running db.AutoMigrate(&entities.Event{}) first, resolves the issue. I'd say this is still a bug though, since I don't want nor need the AutoMigrate feature.

Just started seeing this problem myself after a recent update. I git-bisected to try to figure out with which commit the problem started. I was able to narrow it down to one of these four (can't pinpoint any further because they can't be tested individually due to compilation errors:
There are only 'skip'ped commits left to test.
The first bad commit could be any of:
dc428d2364789513875de77ecee30d3af9efbe1c
a29230c86f0849b51bbb3c19b71f108fbb74541d
fea291e796f796d9b9d4ff0305f768c0b3c320d2
4e8272cf9d764be31566aaea0e691816b67df8e0
We cannot bisect more!
Here's a [link] (https://github.com/jinzhu/gorm/compare/2fe185eb77a22a3dbdb42cebed976598162ec294...4e8272cf9d764be31566aaea0e691816b67df8e0#diff-954de6d7c840669472378e118a132334) to the diff of all of those commits.
Hope this helps!

@goddardcm thanks a lot for this! This will definitely help figuring out what the problem is. I'm going to investigate this even further after work today. :+1:

We see the same problem and also can confirm that revision 2fe185e (right before the one reported as first broken) works correctly.
User struct {
	Id            uint64        `json:"id" gorm:"column:USER_ID;primary_key"`
	// ...
	PhoneNumbers  []PhoneNumber `json:"phoneNumbers" gorm:"foreignkey:UserId"`
}
PhoneNumber struct {
	Id     uint64 `json:"id" gorm:"column:PHONE_NUMBER_ID;primary_key"`
	UserId uint64 `json:"userId gorm:"column:USER_ID"`
	// ...
}
usersFromDb := []User{}
db.Preload("PhoneNumbers").Find(&usersFromDb)

results in error with current git code:
(can't find field PhoneNumbers in *[]models.User)

Hi All,
This issue should be fixed, sorry for the problem.

Hi @jinzhu, I am having the same issue with the latest revision of gorm. I've created an example where you can reproduce it with a test sqlite db:
https://github.com/jrdnull/gormtest
This is the output:
(/Users/jrd/gormtest/main.go:40)
[2015-09-25 09:48:54]  [2.36ms]  SELECT  * FROM "events"

(/Users/jrd/gormtest/main.go:40)
[2015-09-25 09:48:54]  can't find field Plannings in *[]main.Event
2015/09/25 09:48:54 [{ID:1 Plannings:[]} {ID:2 Plannings:[]}]

(/Users/jrd/gormtest/main.go:44)
[2015-09-25 09:48:54]  [0.21ms]  SELECT  * FROM "events"

(/Users/jrd/gormtest/main.go:44)
[2015-09-25 09:48:54]  [0.40ms]  SELECT  * FROM "plannings"  WHERE (event_id IN ('1','2'))
2015/09/25 09:48:54 [{ID:1 Plannings:[{ID:1 EventID:1} {ID:2 EventID:1}]} {ID:2 Plannings:[{ID:3 EventID:2}]}]

Let me know if you need anymore info

Hi @jrdnull
Thank you for your script a lot, found the problem, and just fixed that.
Thank you.

Thanks for fixing that so quickly @jinzhu, really enjoying gorm so far. Tested in my project and works great now :+1:

Hello @jinzhu
Our team has started working with gorm a lot, and it is overall an enjoyable experience.
Unfortunately, we ran into this exact bug. Even more unfortunately, I can't seem to create a test case to reproduce the issue, so I will describe it as best as I can:

accounts have customers which have subscriptions
users have contacts which have subscriptions
a subscription has exactly one user and one customer

From the account side, the relations look like this:
Account has a slice of Customer as one-to-many relationship.
Customer has an AccountID and an Account for this.
Customer has a slice of Subscriptions as one-to-many relationship.
Subscription has a CustomerID and a Customer for this.
From the user side, things are exactly the same:
User has a slice of Contact as one-to-many relationship.
Contact has an UserID and a User for this.
Contact has a slice of Subscriptions as one-to-many relationship.
Subscription has a ContactID and a Contact for this.
** Where things get weird... **
We use preload for two queries:
db.Preload("Customers.Subscriptions").Find(&account)
db.Preload("Contacts.Subscriptions").Find(&user)
The error we encounter is: (can't find field Subscriptions in *[]Customer)
We tried everything from renaming, changing tags, removing fields, and in the end it all comes down to this:

If we simply remove the Customer struct field in Subscription, it works. Not the CustomerID, and not anything else from other relations, only the Customer struct field.

If we remove the Contact struct field, it doesn't work. Not even if we remove everything else except for the foreign IDs of oter relations.

Executing the same preload more than once does not solve the issue.

The issue does not exist in revision 2fe185e, as mentioned before. In other words, revision 2fe185e works fine.

It's really confusing because structurally, Customer and Contact can be exactly the same, and it still will work for Contact, but not for Customer. We even tried renaming everything, changing all the tags, and so on.
I will try to come up with a test case that actually shows this bug, but for now, after two days of investigating, I don't have the time anymore and we will just remove the customer reference and manually load it from ID as a workaround.

@jinzhu,
I am also experiencing this bug still with the latest code. Here is a simple code example to reproduce it:
package main

import (
	"github.com/jinzhu/gorm"
	_ "github.com/lib/pq"
	"log"
)

type Foo struct {
	ID int
	Bar Bar
	BarID int
}

type Bar struct {
	ID int
	Foos []Foo
}

func main() {
	DB, err := gorm.Open("postgres", "postgres://nourishdb:nour1sh@<IP_ADDRESS>:5432/nourish?sslmode=disable")
	if err != nil {
		log.Fatal(err)
	}
	DB.AutoMigrate(&Foo{}, &Bar{})
	var bars []*Bar
	if err := DB.Preload("Foos").Find(&bars).Error; err != nil {
		log.Fatal(err)
	}
	log.Println(bars)
}

When I run this code as is I get the following error:
$ go run main.go
2015/12/16 20:05:49 can't find field Foos in *[]*main.Bar
exit status 1

And just like @awishformore pointed out, if you simply remove the Bar struct field from Foo then it works.

Hi @murz
Thank you for your report, this should been fixed, thank you for your check.