run widget_test get Error: Not found: 'dart:ui'

here is the error message:
Failed to load "/Users/lpp/Documents/大前端/flutter/xxxxx/test/widget_test.dart":
Unable to spawn isolate: file:///Users/lpp/Documents/Flutter/flutter1.0.0/packages/flutter_test/lib/src/accessibility.dart:8:8: Error: Not found: 'dart:ui'
import 'dart:ui' as ui;
       ^
file:///Users/lpp/Documents/Flutter/flutter1.0.0/packages/flutter_test/lib/src/binding.dart:9:8: Error: Not found: 'dart:ui'
import 'dart:ui' as ui;
       ^
file:///Users/lpp/Documents/Flutter/flutter1.0.0/packages/flutter_test/lib/src/matchers.dart:8:8: Error: Not found: 'dart:ui'
import 'dart:ui' as ui;
       ^
file:///Users/lpp/Documents/Flutter/flutter1.0.0/packages/flutter_test/lib/src/matchers.dart:9:8: Error: Not found: 'dart:ui'
import 'dart:ui';
       ^
file:///Users/lpp/Documents/Flutter/flutter1.0.0/packages/flutter_test/lib/src/test_pointer.dart:12:1: Error: Not found: 'dart:ui'
export 'dart:ui' show Offset;
^
file:///Users/lpp/Documents/Flutter/flutter1.0.0/packages/flutter_test/lib/src/window.dart:6:8: Error: Not found: 'dart:ui'
import 'dart:ui' hide window;
       ^
file:///Users/lpp/Documents/Flutter/flutter1.0.0/packages/flutter/lib/src/cupertino/action_sheet.dart:5:8: Error: Not found: 'dart:ui'
import 'dart:ui' show ImageFilter;
       ^
file:///Users/lpp/Documents/Flutter/flutter1.0.0/packages/flutter/lib/src/cupertino/bottom_tab_bar.dart:5:8: Error: Not found: 'dart:ui'
import 'dart:ui' show ImageFilter;
       ^
file:///Users/lpp/Documents/Flutter/flutter1.0.0/packages/flutter/lib/src/cupertino/colors.dart:5:8: Error: Not found: 'dart:ui'
import 'dart:ui' show Color;
       ^
file:///Users/lpp/Documents/Flutter/flutter1.0.0/packages/flutter/lib/src/cupertino/dialog.dart:6:8: Error: Not found: 'dart:ui'
import 'dart:ui' show ImageFilter;
       ^

dart:isolate-patch/isolate_patch.dart 487:14          Isolate.spawnUri
===== asynchronous gap ===========================
dart:async/future_impl.dart 22:43                     _Completer.completeError
dart:async-patch/async_patch.dart 40:18               _AsyncAwaitCompleter.completeError
dart:isolate-patch/isolate_patch.dart                 Isolate.spawnUri
===== asynchronous gap ===========================
dart:async/zone.dart 1062:19                          _CustomZone.registerBinaryCallback
dart:async-patch/async_patch.dart 86:23               _asyncErrorWrapperHelper
dart:isolate-patch/isolate_patch.dart                 Isolate.spawnUri
package:test_core/src/util/dart.dart 28:24            runInIsolate
===== asynchronous gap ===========================
dart:async/zone.dart 1053:19                          _CustomZone.registerUnaryCallback
dart:async-patch/async_patch.dart 77:23               _asyncThenWrapperHelper
package:test_core/src/util/dart.dart                  runInIsolate
package:test_core/src/runner/vm/platform.dart 113:16  _spawnDataIsolate
===== asynchronous gap ===========================
dart:async/zone.dart 1053:19                          _CustomZone.registerUnaryCallback
dart:async-patch/async_patch.dart 77:23               _asyncThenWrapperHelper
package:test_core/src/runner/loader.dart              Loader.loadFile.<fn>
package:test_core/src/runner/load_suite.dart 98:31    new LoadSuite.<fn>.<fn>
===== asynchronous gap ===========================
dart:async/zone.dart 1045:19                          _CustomZone.registerCallback
dart:async/zone.dart 962:22                           _CustomZone.bindCallbackGuarded
dart:async/timer.dart 52:45                           new Timer
dart:async/timer.dart 87:9                            Timer.run
dart:async/future.dart 174:11                         new Future
package:test_api/src/backend/invoker.dart 399:21      Invoker._onRun.<fn>.<fn>.<fn>
Process finished with exit code 1

**here is the test content:**
import 'package:xxxxx/widgets/title_bar.dart';
import 'package:flutter_test/flutter_test.dart';

void main() {
  // with Widgets in the test environment.
  testWidgets('MyWidget has a title and message', (WidgetTester tester) async {
    // Create the Widget tell the tester to build it
    await tester.pumpWidget(TitleBar('T'));

    // Create our Finders
    final titleFinder = find.text('T');

    // Use the `findsOneWidget` matcher provided by flutter_test to verify our
    // Text Widgets appear exactly once in the Widget tree
    expect(titleFinder, findsOneWidget);
  });
}

@pingshui3
Paste result for flutter doctor -v please.

flutter doctor -v
`[✓] Flutter (Channel master, v1.5.9-pre.236, on Mac OS X 10.13.6 17G65, locale zh-Hans-CN)
• Flutter version 1.5.9-pre.236 at /Users/lpp/Documents/Flutter/flutter1.0.0
• Framework revision 894dca77b6 (2 hours ago), 2019-05-14 02:35:39 -0400
• Engine revision 49bc9c86c9
• Dart version 2.3.1 (build 2.3.1-dev.0.0 a0290f823c)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /Users/lpp/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• ANDROID_HOME = /Users/lpp/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.1, Build version 10B61
• ios-deploy 1.9.4
• CocoaPods version 1.6.0
[✓] Android Studio (version 3.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 31.3.1
• Dart plugin version 181.5656
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.1.4)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin version 31.3.1
• Dart plugin version 181.4892.1
[✓] Connected device (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)
• No issues found!
`

是不是没有配置环境变量，如果环境没问题试着用 flutter packages get

是不是没有配置环境变量，如果环境没问题试着用 flutter packages get

已经配置了
/Users/lpp/Documents/Flutter/flutter1.0.0/bin:/Users/lpp/Documents/Flutter/flutter1.0.0/bin/cache/dart-sdk/bin

I've solved the problem occured on @pingshui3 's mac via RemoteDesktop. It's a environment issue which can be fixed by reinstalling Intellij Idea and Flutter(Dart) plugin.

I've solved the problem occured on @pingshui3 's mac via RemoteDesktop. It's a environment issue which can be fixed by reinstalling Intellij Idea and Flutter(Dart) plugin.

thanks you very much @kangwang1988

have you solved this problem. same question occured~

@feiyang1235 I was getting a similar problem, only in Android Studio. The problem was my run configuration:: it was running as a 'Dart Command Line App', instead of a Flutter Test.  Open run configurations and remove the Dart one to fix.
bad

runs like /Users/me/tools/flutter/bin/cache/dart-sdk/bin/dart --enable-asserts --enable-vm-service:58029 /Users/jwarrick/projects/ecom_module/test/my_test.dart
good

runs like /Users/me/tools/flutter/bin/flutter --no-color test --machine test/my_test.dart
pick the flutter one!

related SO solution here:
https://stackoverflow.com/questions/52483773/dartui1-error-not-found-dartui-flutter-dart

dart:ui , runner not found ,
resolved :  Android Studio go to tools menu  and install flutter sdk.
then flutter option. Can't remember the option after that , but it will say no sdk found in RED.
The option no longer appears as I have now installed flutter sdk.
After that you will not have any issues when down loading or cloning git hub projects.
You may think  you have flutter sdk installed ,
but you if you are using git hub and cloning  a project but not creating a git hub project ,
you must installed flutter sdk  via tools menu . Then all is well.


Some fixes

Fixes electron vulnerability, fixes the tar.Extract issue, updates build tools, cleans up documentation.

ping @jourdain


consider making comma escapable ,

Currently if we have a rule that contains a ,, everything surrounding it is automatically parsed as array, even if we want to have a string that contains a comma.
schema:
{ name: 'Brockhaus,Peter' }

rule
name has to be Brockhaus\,Peter
cmd:
 java -jar openvalidation-cli/target/openvalidation.jar --culture en --language javascript --rule "name has to be Brockhaus\,Peter" --schema "{ name: 'Brockhaus,Peter'  }"

generates the code
            huml.appendRule("",
                   ["name"],
                   "name has to be Brockhaus\,Peter",
                   function(model) { return huml.NONE_OF(model.name, ["Brockhaus","Peter"]);},
                   false
                );

It might be useful if we could escape the comma inside a rule like so: \,

For this case we need a generic functionality that explicitly marks joined strings. FOR EXAMPLE
name has to be "Brockhaus, Peter"

or
name has to be 'Brockhaus, Peter'

it would solve many other problems ;-)


Shuffling then zip tf.data.Dataset

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 18.04
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
TensorFlow installed from (source or binary): binary
TensorFlow version (use command below): 2.2
Python version: 3.7
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version: None
GPU model and memory: None

You can collect some of this information using our environment capture
script
You can also obtain the TensorFlow version with:

TF 1.0: python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
TF 2.0: python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"

Describe the current behavior
When applying shuffling => warped copy => zip, shuffling is applied after the warping.
Describe the expected behavior
I would expect it to happen before the warping.
Standalone code to reproduce the issue
import tensorflow as tf
master = tf.data.Dataset.range(10)
master = master.shuffle(10)
warped = master.map(lambda x: -x)
dataset = tf.data.Dataset.zip((master, warped))
list(dataset.as_numpy_iterator())

We get
[(3, -1),
 (7, -9),
 (4, -2),
 (9, -5),
 (5, -4),
 (6, 0),
 (1, -8),
 (0, -3),
 (2, -6),
 (8, -7)]

When something like this was expected:
[(7, -7),
 (9, -9),
 (6, -6),
 (1, -1),
 (3, -3),
 (5, -5),
 (4, -4),
 (0, 0),
 (2, -2),
 (8, -8)]

Other info / logs Include any logs or source code that would be helpful to
diagnose the problem. If including tracebacks, please include the full
traceback. Large logs and files should be attached.

@mathieuorhan,
To get the excepted output, add the reshuffle_each_iteration=False argument to the shuffle function. Please check this gist for reference.
For more information, please take a look at these similar issues #27680, #35682. Thanks!

Thank you @amahendrakar.
After reading your links and the docs, I still don't get this reshuffle_each_iteration option. I only iterate the dataset once, so it looks like it's unrelated to the issue, except it isn't. Here is the documentation:

A boolean, which if true indicates that the dataset should be pseudorandomly reshuffled each time it is iterated over.

So this is what I would expect:
>>> import tensorflow as tf
>>> master = tf.data.Dataset.range(10)
>>> master = master.shuffle(10, reshuffle_each_iteration=False)
>>> warped = master.map(lambda x: -x)
>>> dataset = tf.data.Dataset.zip((master, warped))
>>> list(dataset.as_numpy_iterator())
 [(7, -7),
 (9, -9),
 (6, -6),
 (1, -1),
 (3, -3),
 (5, -5),
 (4, -4),
 (0, 0),
 (2, -2),
 (8, -8)]
>>> list(dataset.as_numpy_iterator())
 [(4, -4),
(6, -6),
(1, -1),
(7, -7),
(9, -9),
(3, -3),
(5, -5),
(0, 0),
(2, -2),
(8, -8)]

>>> import tensorflow as tf
>>> master = tf.data.Dataset.range(10)
>>> master = master.shuffle(10, reshuffle_each_iteration=False)
>>> warped = master.map(lambda x: -x)
>>> dataset = tf.data.Dataset.zip((master, warped))
>>> list(dataset.as_numpy_iterator())
 [(7, -7),
 (9, -9),
 (6, -6),
 (1, -1),
 (3, -3),
 (5, -5),
 (4, -4),
 (0, 0),
 (2, -2),
 (8, -8)]
>>> list(dataset.as_numpy_iterator())
 [(7, -7),
 (9, -9),
 (6, -6),
 (1, -1),
 (3, -3),
 (5, -5),
 (4, -4),
 (0, 0),
 (2, -2),
 (8, -8)]

@amahendrakar, I just had a similar issue, which is related to zip, not shuffle, as I first thought. Same system setup.
import tensorflow as tf
master = tf.data.Dataset.range(5)
master = master.map(lambda x: tf.cast(x, tf.float32) + tf.random.uniform(()) /10)
warped = master.map(lambda x: -x)
data = tf.data.Dataset.zip((master, warped))
list(data.as_numpy_iterator())

In my case, I'm warping images, then creating pairs (master, warped) using zip. I would like to apply image augmentations prior to the warping, something I cannot do, as the augmentation is sometimes applied to image, sometimes to other, sometimes to both of them.
If it's not a bug, how I am supposed to do this? and why am I getting this result?

@mathieuorhan,
tf.data.Dataset objects don't eagerly compute all of their data. They work like blueprints, where the data is computed on the fly every time you iterate through the dataset. As a result, iterating through the same dataset multiple times could result in different output.
The Dataset.zip transformation takes multiple datasets and iterates through them in parallel. If you want to iterate through the input just once, use map instead of zip:
import tensorflow as tf
master = tf.data.Dataset.range(10)
master = master.shuffle(10)
dataset = master.map(lambda x: (x, -x))
list(dataset.as_numpy_iterator())
[(3, -3),
 (9, -9),
 (7, -7),
 (5, -5),
 (2, -2),
 (8, -8),
 (1, -1),
 (4, -4),
 (0, 0),
 (6, -6)]

@aabadie, thank you, applying map is so simple I've missed it. Also, thank you for the general explanation. I think tough that zip deserves maybe a bit of documentation to warn about this, for instance quoting you:

The Dataset.zip transformation takes multiple datasets and iterates through them in parallel. If you want to iterate through the input just once, use map instead of zip

Closing this issue as it is answered by @aaudiber. Please feel free to reopen the issue if you still have a concern. Thanks!


[Hub Generated] Review request for Microsoft.ManagementPartner to add version preview/2018-02-01

If you are a MSFT employee you can view your work branch via this link.
Contribution checklist:

[x] I have reviewed the documentation for the workflow.
[x] Validation tools were run on swagger spec(s) and have all been fixed in this PR.

Automation for azure-sdk-for-ruby

Automation for azure-sdk-for-python

The changes have been signed off by Anu and Ryan in the private repo: https://github.com/Azure/azure-rest-api-specs-pr/pull/729

Automation for azure-sdk-for-js

Automation for azure-sdk-for-java

Automation for azure-sdk-for-go

Can one of the admins verify this patch?

Automation for azure-sdk-for-net
A PR has been created for you:
https://github.com/azure/azure-sdk-for-net/pull/5894
.NET SDK Commits:
https://github.com/adxsdknet/azure-sdk-for-net/pull/5894/commits/735b4f0aa1f56f22356f0636741d138258add8e3


scipy clustering seems to override the provided numpy dtype into float64

Describe your issue.
I am attempting to run seaborn.clustermap on an array of size (182440, 34) and continue to get the memory error documented below. In an attempt to reduce the memory overhead required for the array, I have tried to convert the numpy dtype of the arryaypassed to sns.clustermap in the code snippet below to a lower byte dtype, it is appears to get overwritten
Is there a particular step in scipy that defaults the array passed into float64? It appears that the clustermap function in seaborn is calling the linkage function in scipy/cluster/hierarchy as well as pdist_fn in scipy/spatial/distance, and it would be beneficial to be able to not have the dtype of the array overwritten to float64 due to memory constraints.
Reproducing Code Example
low_mem = anndata.AnnData(np.array(adata.X, dtype=np.float32))
sns.clustermap(low_mem.X)

Error message
warnings.warn(msg)
Traceback (most recent call last):
  File "/home/matt/github/ccramic/sandbox/dendrogram_multiple_levels.py", line 81, in <module>
    sns.clustermap(low_mem.X)
  File "/home/matt/github/ccramic/venv/lib/python3.10/site-packages/seaborn/matrix.py", line 1258, in clustermap
    return plotter.plot(metric=metric, method=method,
  File "/home/matt/github/ccramic/venv/lib/python3.10/site-packages/seaborn/matrix.py", line 1129, in plot
    self.plot_dendrograms(row_cluster, col_cluster, metric, method,
  File "/home/matt/github/ccramic/venv/lib/python3.10/site-packages/seaborn/matrix.py", line 974, in plot_dendrograms
    self.dendrogram_row = dendrogram(
  File "/home/matt/github/ccramic/venv/lib/python3.10/site-packages/seaborn/matrix.py", line 687, in dendrogram
    plotter = _DendrogramPlotter(data, linkage=linkage, axis=axis,
  File "/home/matt/github/ccramic/venv/lib/python3.10/site-packages/seaborn/matrix.py", line 495, in __init__
    self.linkage = self.calculated_linkage
  File "/home/matt/github/ccramic/venv/lib/python3.10/site-packages/seaborn/matrix.py", line 562, in calculated_linkage
    return self._calculate_linkage_scipy()
  File "/home/matt/github/ccramic/venv/lib/python3.10/site-packages/seaborn/matrix.py", line 530, in _calculate_linkage_scipy
    linkage = hierarchy.linkage(self.array, method=self.method,
  File "/home/matt/github/ccramic/venv/lib/python3.10/site-packages/scipy/cluster/hierarchy.py", line 1060, in linkage
    y = distance.pdist(y, metric)
  File "/home/matt/github/ccramic/venv/lib/python3.10/site-packages/scipy/spatial/distance.py", line 2233, in pdist
    return pdist_fn(X, out=out, **kwargs)
numpy.core._exceptions._ArrayMemoryError: Unable to allocate 124. GiB for an array with shape<PHONE_NUMBER>0,) and data type float64

SciPy/NumPy/Python version and system information
1.9.1 1.23.4 sys.version_info(major=3, minor=10, micro=12, releaselevel='final', serial=0)
lapack_mkl_info:
  NOT AVAILABLE
openblas_lapack_info:
    libraries = ['openblas', 'openblas']
    library_dirs = ['/usr/local/lib']
    language = c
    define_macros = [('HAVE_CBLAS', None)]
    runtime_library_dirs = ['/usr/local/lib']
lapack_opt_info:
    libraries = ['openblas', 'openblas']
    library_dirs = ['/usr/local/lib']
    language = c
    define_macros = [('HAVE_CBLAS', None)]
    runtime_library_dirs = ['/usr/local/lib']
blas_mkl_info:
  NOT AVAILABLE
blis_info:
  NOT AVAILABLE
openblas_info:
    libraries = ['openblas', 'openblas']
    library_dirs = ['/usr/local/lib']
    language = c
    define_macros = [('HAVE_CBLAS', None)]
    runtime_library_dirs = ['/usr/local/lib']
blas_opt_info:
    libraries = ['openblas', 'openblas']
    library_dirs = ['/usr/local/lib']
    language = c
    define_macros = [('HAVE_CBLAS', None)]
    runtime_library_dirs = ['/usr/local/lib']
Supported SIMD extensions in this NumPy install:
    baseline = SSE,SSE2,SSE3
    found = SSSE3,SSE41,POPCNT,SSE42,AVX,F16C,FMA3,AVX2
    not found = AVX512F,AVX512CD,AVX512_KNL,AVX512_KNM,AVX512_SKX,AVX512_CLX,AVX512_CNL,AVX512_ICL

scipy.spatial.distance.pdist does seem to output a float64 dtype for float32 input. I'll have a look to see if this seems intended or not.

@matt-sd-watson the conversion to float64 is intended. gh-11280 already requested that pdist support lower-precision dtypes a few years ago, but nothing has happened yet (still in the picture though by the sounds of it).
I'm going to close this as a duplicate now, but please follow gh-11280 or add any thoughts there if you have them. Note that this wouldn't immediately fix your issue, as reduced-precision support would then need to be added to scipy.cluster.hierarchy.linkage (and maybe seaborn.clustermap?) too, but at least it would be a step in the right direction. For backwards compatibility reasons, the default of using higher precision would be maintained, so the reduced-precision decision would have to be explicit throughout,


ImportError when running code on Jupyter extension

Environment data

VS Code version: 1.29
Extension version (available under the Extensions sidebar): Jupyter 1.0.0
OS and version: macOS 10.13.3
Python version (& distribution if applicable, e.g. Anaconda): Python 3.6.3 |Anaconda custom (64-bit)
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
Relevant/affected Python packages and their versions: pandas 0.22.0

Actual behavior
Using the run cell button as below, the jupyter kernel is not aware of any of my installed packages:

Source of the problem:
Running this:

Returns the following:

Seems like the extension is using a different interpreter than the defined one:

Fixed in PR #3433

@ronglums when can we expect this to be released?

@edoson, it is already in the development build. It will be in the next official update shortly (we generally ship on monthly cadence).


StringIndexOutOfBoundsException crashing on startup.

Crash report
https://pastebin.com/aNd7UsLr
I'm playing with the modpack Exoria v1.3.0c in single player survival mode.
The error crashed the game while initializing today.
The game had no problem last night, the only one weird behavior was that the game took quite a few minutes without being responsive when I stopped and saved the game with the ingame menu triggered via esc. Without waiting patiently I shut it down by the red cross button on the top right of the game window. Not sure if this caused any files corrupt or not.

Thank you for message.
This is a minor bug.
I will release a fix in the next update.
I do not think that this will ever be done at all.

Did you change something in the .lang file?
This could be due to the fact that the names of some blocks/items are shorter than 2 characters.
What I mean is that if this happens again, you can fix it quickly.

No, I did not change anything but installed the modpack and launched it.
My minecraft language was set to zh_TW (Traditional Chinese). But it seems there's no zh_TW, so the language of this mod should fallback to en_US.

I did some simple searches in the en_US.lang. Since the error stack said
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(String.java:1948)
    at ru.liahim.mist.block.MistBlockWettableFalling.func_190948_a(MistBlockWettableFalling.java:49)

I picked up three keywords, "block", "wettable", "falling", to search for, but saw nothing that would be the problem.

Very strange.
But, if the error did not repeat, maybe it was just an accidental failure?
Anyway, I added a check for the string length.

I have more clues about this.
First of all, it's not an accidental failure, it always crashes when I try to launch the game.
I've successfully launched this game instance for only once; that is, the first time that I created a new world. After I shut the game down, I've never successfully relaunched it again.
The only difference between the first launch and the latter one is that I changed the language settings from en_US to zh_TW, before I shut the game down, there was no problem. But I cannot relaunch the game with the language set to zh_TW.
After coming up with this thought, I decide to have a try. I change the lang field in the options.txt to en_US, and the game successfully launches again!!!!
Hope this info helpful.


PGP Key Expired

The PGP key (D0BC747FD8CAF7117500D6FA3746C208A7317B0F) used to sign the Ubuntu/Debian packages expired in 2018 and installing the agent on those OS's fails.

Submitted PR with updated key.
https://github.com/GoogleCloudPlatform/puppet-google-logging/pull/5

Now that the new key has been merged, can we get a new release on the forge so we can use it?


Quote marks

What does exactly this package do? Curious if I should use it

Instead of inserting so called inch marks, it inserts left or right double quote marks.


REQUEST: New membership for sicoyle

GitHub Username
sicoyle
Requirements

[X] I have reviewed the community membership guidelines (https://github.com/dapr/community/blob/master/community-membership.md)
[X] I have enabled 2FA on my GitHub account. See https://github.com/settings/security
[X] I have subscribed to the Dapr community Discord server
[X] I am contributing (any of the following apply: issues, discussions, PRs, reviews) to 1 or more Dapr repositories

List of contributions to the Dapr project
external service invocation feature: https://github.com/dapr/dapr/pull/6227
https://github.com/dapr/dapr/issues?q=is%3Aissue+sicoyle+is%3Aclosed

+1 binding

+1 non-binding

+1

I've been added to the org. Thank youuuu!


Gas optimization

Removed unnecessary code
Optimized gas cost of commits/proofs/asset features

Gas estimation before update:

Gas estimation after update:


Remove nunit.v2.driver.addins?

I don't understand why the NuGet package for this extension includes it's own .addins file. None of our other extensions do.
It wouldn't be picked up by any of the default location methods, as far as I can tell, and I'm not aware of anything which makes this extensions need different location logic to any of our others.
Was it a legacy way of installing? Should i be removed?

No it belongs there because the extension directory includes other support assemblies, which are not extensions. It avoids spending extra time scanning those assemblies and, in rare cases, throwing an exception.

The file is found when another .addins file refers to the directory. This is exactly the case when the runner itself is installed as a nuget package.
When repackaging, you need to figure out your own set of references to allow all extensions to be found. You could include such addins in one strategy or exclude them in a different strategy. You could also use them when deciding what to include in your own addins file.
By the way, no addins file implies all dll are extensions.

Ah ok - I didn't realise .addins files could be chained. Cool, thanks!


[CMake] Limit copy-legacy-layouts dependency to the stdlib

When we do standalone overlay builds, they should rely on these layouts already being in the toolchain. (In particular, the target is never created.)
No tests because this configuration isn't (currently) being tested outside of Apple.

@swift-ci Please test


Translation cn

@robekeane Just checking in here - I see the PR was opened but then closed?

@dzello I have translated the introduction, catalogue, and part of chapter I, as the main content is not yet completed, so I don't know if it is appropriate to submit the PR.

@robekeane Got it. It's okay with me if you want to do it incrementally with multiple PRs or all in 1 big one when the whole thing is ready. However you prefer.


Error in getting images

Hi,
I have just installed aerialgym and ran the save_camera_stream.py example, but encountered a problem with generating images, which I am at a complete loss about. I would greatly appreciate your help, thanks!

Here is my detailed runtime information:
Importing module 'gym_38' (/home/admin/IsaacGym_Preview_4_Package/isaacgym/python/isaacgym/_bindings/linux-x86_64/gym_38.so)
Setting GYM_USD_PLUG_INFO_PATH to /home/admin/IsaacGym_Preview_4_Package/isaacgym/python/isaacgym/_bindings/linux-x86_64/usd/plugInfo.json
PyTorch version 1.13.1
Device count 1
/home/admin/IsaacGym_Preview_4_Package/isaacgym/python/isaacgym/_bindings/src/gymtorch
Using /home/admin/.cache/torch_extensions/py38_cu117 as PyTorch extensions root...
Emitting ninja build file /home/admin/.cache/torch_extensions/py38_cu117/gymtorch/build.ninja...
Building extension module gymtorch...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
ninja: no work to do.
Loading extension module gymtorch...
Warp 1.0.0-beta.5 initialized:
CUDA Toolkit: 11.5, Driver: 12.5
Devices:
"cpu"    | x86_64
"cuda:0" | NVIDIA GeForce RTX 4060 Ti (sm_89)
Kernel cache: /home/admin/.cache/warp/1.0.0-beta.5
[3626 ms][main] - WARNING :
Environment to save a depth/range and segmentation image.
(save_camera_stream.py:12)
[3627 ms][env_manager] - INFO : Populating environments. (env_manager.py:73)
[3627 ms][env_manager] - INFO : Creating simulation instance. (env_manager.py:87)
[3627 ms][env_manager] - INFO : Instantiating IGE object. (env_manager.py:88)
[3628 ms][IsaacGymEnvManager] - INFO : Creating Isaac Gym Environment (IGE_env_manager.py:41)
[3628 ms][IsaacGymEnvManager] - INFO : Acquiring gym object (IGE_env_manager.py:73)
[3628 ms][IsaacGymEnvManager] - INFO : Acquired gym object (IGE_env_manager.py:75)
[3634 ms][IsaacGymEnvManager] - INFO : Fixing devices (IGE_env_manager.py:89)
[3634 ms][IsaacGymEnvManager] - INFO : Sim Device type: cuda, Sim Device ID: 0 (IGE_env_manager.py:96)
[3634 ms][IsaacGymEnvManager] - INFO : Graphics Device ID: 0 (IGE_env_manager.py:110)
[3634 ms][IsaacGymEnvManager] - INFO : Creating Isaac Gym Simulation Object (IGE_env_manager.py:111)
[3634 ms][IsaacGymEnvManager] - WARNING : If you have set the CUDA_VISIBLE_DEVICES environment variable, please ensure that you set it
to a particular one that works for your system to use the viewer or Isaac Gym cameras.
If you want to run parallel simulations on multiple GPUs with camera sensors,
please disable Isaac Gym and use warp (by setting use_warp=True), set the viewer to headless. (IGE_env_manager.py:118)
[3634 ms][IsaacGymEnvManager] - WARNING : If you see a segfault in the next lines, it is because of the discrepancy between the CUDA device and the graphics device.
Please ensure that the CUDA device and the graphics device are the same. (IGE_env_manager.py:123)
Not connected to PVD
+++ Using GPU PhysX
Physics Engine: PhysX
Physics Device: cuda:0
GPU Pipeline: enabled
[6406 ms][IsaacGymEnvManager] - INFO : Created Isaac Gym Simulation Object (IGE_env_manager.py:127)
[6406 ms][IsaacGymEnvManager] - INFO : Created Isaac Gym Environment (IGE_env_manager.py:43)
[15771 ms][env_manager] - INFO : IGE object instantiated. (env_manager.py:109)
[15771 ms][env_manager] - INFO : Creating warp environment. (env_manager.py:112)
[15771 ms][env_manager] - INFO : Warp environment created. (env_manager.py:114)
[15771 ms][env_manager] - INFO : Creating robot manager. (env_manager.py:118)
[15771 ms][BaseRobot] - INFO : [DONE] Initializing controller (base_robot.py:26)
[15771 ms][BaseRobot] - INFO : Initializing controller lee_velocity_control (base_robot.py:29)
[15771 ms][base_multirotor] - WARNING : Creating 2 multirotors. (base_multirotor.py:32)
[15772 ms][env_manager] - INFO : [DONE] Creating robot manager. (env_manager.py:123)
[15772 ms][env_manager] - INFO : [DONE] Creating simulation instance. (env_manager.py:125)
[15772 ms][asset_loader] - INFO : Loading asset: quad.urdf for the first time. Next use of this asset will be via the asset buffer. (asset_loader.py:71)
[15772 ms][asset_loader] - INFO : Loading asset: panel.urdf for the first time. Next use of this asset will be via the asset buffer. (asset_loader.py:71)
[15774 ms][asset_loader] - INFO : Loading asset: 0_5_x_0_5_wall.urdf for the first time. Next use of this asset will be via the asset buffer. (asset_loader.py:71)
[15775 ms][asset_loader] - INFO : Loading asset: small_cube.urdf for the first time. Next use of this asset will be via the asset buffer. (asset_loader.py:71)
[15776 ms][asset_loader] - INFO : Loading asset: 1_x_1_wall.urdf for the first time. Next use of this asset will be via the asset buffer. (asset_loader.py:71)
[15777 ms][asset_loader] - INFO : Loading asset: cuboidal_rod.urdf for the first time. Next use of this asset will be via the asset buffer. (asset_loader.py:71)
[15778 ms][asset_loader] - INFO : Loading asset: left_wall.urdf for the first time. Next use of this asset will be via the asset buffer. (asset_loader.py:71)
[15778 ms][asset_loader] - INFO : Loading asset: right_wall.urdf for the first time. Next use of this asset will be via the asset buffer. (asset_loader.py:71)
[15779 ms][asset_loader] - INFO : Loading asset: back_wall.urdf for the first time. Next use of this asset will be via the asset buffer. (asset_loader.py:71)
[15780 ms][asset_loader] - INFO : Loading asset: front_wall.urdf for the first time. Next use of this asset will be via the asset buffer. (asset_loader.py:71)
[15781 ms][asset_loader] - INFO : Loading asset: bottom_wall.urdf for the first time. Next use of this asset will be via the asset buffer. (asset_loader.py:71)
[15782 ms][asset_loader] - INFO : Loading asset: top_wall.urdf for the first time. Next use of this asset will be via the asset buffer. (asset_loader.py:71)
[15783 ms][env_manager] - INFO : Populating environment 0 (env_manager.py:179)
[16603 ms][robot_manager] - WARNING :
Robot mass: 0.2500003944120692,
Inertia: tensor([[8.4501e-04, 0.0000e+00, 3.3087e-24],
[0.0000e+00, 8.4501e-04, 3.3087e-24],
[3.3087e-24, 3.3087e-24, 1.6900e-03]], device='cuda:0'),
Robot COM: tensor([[0.0000e+00, 0.0000e+00, 1.3411e-14, 1.0000e+00]], device='cuda:0') (robot_manager.py:415)
[16603 ms][robot_manager] - WARNING : Calculated robot mass and inertia for this robot. This code assumes that your robot is the same across environments. (robot_manager.py:418)
[16603 ms][robot_manager] - CRITICAL : If your robot differs across environments you need to perform this computation for each different robot here. (robot_manager.py:421)
[16637 ms][env_manager] - INFO : [DONE] Populating environments. (env_manager.py:75)
[16644 ms][IsaacGymEnvManager] - WARNING : Headless: False (IGE_env_manager.py:415)
[16644 ms][IsaacGymEnvManager] - INFO : Creating viewer (IGE_env_manager.py:417)
[18167 ms][IGE_viewer_control] - WARNING : Instructions for using the viewer with the keyboard:
ESC: Quit
V: Toggle Viewer Sync
S: Sync Frame Time
F: Toggle Camera Follow
P: Toggle Camera Follow Type
R: Reset All Environments
UP: Switch Target Environment Up
DOWN: Switch Target Environment Down
SPACE: Pause Simulation
(IGE_viewer_control.py:153)
[18167 ms][IsaacGymEnvManager] - INFO : Created viewer (IGE_env_manager.py:423)
*** Can't create empty tensor
[18764 ms][asset_manager] - WARNING : Number of obstacles to be kept in the environment: 9 (asset_manager.py:32)
WARNING: allocation matrix is not full rank. Rank: 4
/home/admin/workspaces/aerial_gym_ws/src/aerial_gym_simulator/aerial_gym/control/motor_model.py:38: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).
torch.tensor(self.min_thrust, device=self.device, dtype=torch.float32).expand(
/home/admin/workspaces/aerial_gym_ws/src/aerial_gym_simulator/aerial_gym/control/motor_model.py:41: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).
torch.tensor(self.max_thrust, device=self.device, dtype=torch.float32).expand(
[30814 ms][control_allocation] - WARNING : Control allocation does not account for actuator limits. This leads to suboptimal allocation (control_allocation.py:48)
Traceback (most recent call last):
File "save_camera_stream.py", line 74, in
255.0 * env_manager.global_tensor_dict["depth_range_pixels"][0, 0].cpu().numpy()
KeyError: 'depth_range_pixels'
(aerialgym) admin@admin-IdeaCentre-GeekPro-17IRB:~/workspaces/aerial_gym_ws/src/aerial_gym_simulator/aerial_gym/examples$ python3 save_camera_stream.py
Importing module 'gym_38' (/home/admin/IsaacGym_Preview_4_Package/isaacgym/python/isaacgym/_bindings/linux-x86_64/gym_38.so)
Setting GYM_USD_PLUG_INFO_PATH to /home/admin/IsaacGym_Preview_4_Package/isaacgym/python/isaacgym/_bindings/linux-x86_64/usd/plugInfo.json
PyTorch version 1.13.1
Device count 1
/home/admin/IsaacGym_Preview_4_Package/isaacgym/python/isaacgym/_bindings/src/gymtorch
Using /home/admin/.cache/torch_extensions/py38_cu117 as PyTorch extensions root...
Emitting ninja build file /home/admin/.cache/torch_extensions/py38_cu117/gymtorch/build.ninja...
Building extension module gymtorch...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
ninja: no work to do.
Loading extension module gymtorch...
Warp 1.0.0-beta.5 initialized:
CUDA Toolkit: 11.5, Driver: 12.5
Devices:
"cpu"    | x86_64
"cuda:0" | NVIDIA GeForce RTX 4060 Ti (sm_89)
Kernel cache: /home/admin/.cache/warp/1.0.0-beta.5
[4785 ms][main] - WARNING :
Environment to save a depth/range and segmentation image.
(save_camera_stream.py:12)
[4786 ms][env_manager] - INFO : Populating environments. (env_manager.py:73)
[4786 ms][env_manager] - INFO : Creating simulation instance. (env_manager.py:87)
[4786 ms][env_manager] - INFO : Instantiating IGE object. (env_manager.py:88)
[4786 ms][IsaacGymEnvManager] - INFO : Creating Isaac Gym Environment (IGE_env_manager.py:41)
[4786 ms][IsaacGymEnvManager] - INFO : Acquiring gym object (IGE_env_manager.py:73)
[4786 ms][IsaacGymEnvManager] - INFO : Acquired gym object (IGE_env_manager.py:75)
[4787 ms][IsaacGymEnvManager] - INFO : Fixing devices (IGE_env_manager.py:89)
[4787 ms][IsaacGymEnvManager] - INFO : Sim Device type: cuda, Sim Device ID: 0 (IGE_env_manager.py:96)
[4787 ms][IsaacGymEnvManager] - INFO : Graphics Device ID: 0 (IGE_env_manager.py:110)
[4787 ms][IsaacGymEnvManager] - INFO : Creating Isaac Gym Simulation Object (IGE_env_manager.py:111)
[4787 ms][IsaacGymEnvManager] - WARNING : If you have set the CUDA_VISIBLE_DEVICES environment variable, please ensure that you set it
to a particular one that works for your system to use the viewer or Isaac Gym cameras.
If you want to run parallel simulations on multiple GPUs with camera sensors,
please disable Isaac Gym and use warp (by setting use_warp=True), set the viewer to headless. (IGE_env_manager.py:118)
[4787 ms][IsaacGymEnvManager] - WARNING : If you see a segfault in the next lines, it is because of the discrepancy between the CUDA device and the graphics device.
Please ensure that the CUDA device and the graphics device are the same. (IGE_env_manager.py:123)
Not connected to PVD
+++ Using GPU PhysX
Physics Engine: PhysX
Physics Device: cuda:0
GPU Pipeline: enabled
[7149 ms][IsaacGymEnvManager] - INFO : Created Isaac Gym Simulation Object (IGE_env_manager.py:127)
[7149 ms][IsaacGymEnvManager] - INFO : Created Isaac Gym Environment (IGE_env_manager.py:43)
[7734 ms][env_manager] - INFO : IGE object instantiated. (env_manager.py:109)
[7734 ms][env_manager] - INFO : Creating warp environment. (env_manager.py:112)
[7734 ms][env_manager] - INFO : Warp environment created. (env_manager.py:114)
[7734 ms][env_manager] - INFO : Creating robot manager. (env_manager.py:118)
[7734 ms][BaseRobot] - INFO : [DONE] Initializing controller (base_robot.py:26)
[7734 ms][BaseRobot] - INFO : Initializing controller lee_velocity_control (base_robot.py:29)
[7734 ms][base_multirotor] - WARNING : Creating 2 multirotors. (base_multirotor.py:32)
[7734 ms][env_manager] - INFO : [DONE] Creating robot manager. (env_manager.py:123)
[7734 ms][env_manager] - INFO : [DONE] Creating simulation instance. (env_manager.py:125)
[7734 ms][asset_loader] - INFO : Loading asset: quad.urdf for the first time. Next use of this asset will be via the asset buffer. (asset_loader.py:71)
[7735 ms][asset_loader] - INFO : Loading asset: panel.urdf for the first time. Next use of this asset will be via the asset buffer. (asset_loader.py:71)
[7736 ms][asset_loader] - INFO : Loading asset: small_cube.urdf for the first time. Next use of this asset will be via the asset buffer. (asset_loader.py:71)
[7737 ms][asset_loader] - INFO : Loading asset: 0_5_x_0_5_wall.urdf for the first time. Next use of this asset will be via the asset buffer. (asset_loader.py:71)
[7738 ms][asset_loader] - INFO : Loading asset: cuboidal_rod.urdf for the first time. Next use of this asset will be via the asset buffer. (asset_loader.py:71)
[7739 ms][asset_loader] - INFO : Loading asset: 1_x_1_wall.urdf for the first time. Next use of this asset will be via the asset buffer. (asset_loader.py:71)
[7740 ms][asset_loader] - INFO : Loading asset: left_wall.urdf for the first time. Next use of this asset will be via the asset buffer. (asset_loader.py:71)
[7741 ms][asset_loader] - INFO : Loading asset: right_wall.urdf for the first time. Next use of this asset will be via the asset buffer. (asset_loader.py:71)
[7742 ms][asset_loader] - INFO : Loading asset: back_wall.urdf for the first time. Next use of this asset will be via the asset buffer. (asset_loader.py:71)
[7743 ms][asset_loader] - INFO : Loading asset: front_wall.urdf for the first time. Next use of this asset will be via the asset buffer. (asset_loader.py:71)
[7743 ms][asset_loader] - INFO : Loading asset: bottom_wall.urdf for the first time. Next use of this asset will be via the asset buffer. (asset_loader.py:71)
[7744 ms][asset_loader] - INFO : Loading asset: top_wall.urdf for the first time. Next use of this asset will be via the asset buffer. (asset_loader.py:71)
[7746 ms][env_manager] - INFO : Populating environment 0 (env_manager.py:179)
[10050 ms][robot_manager] - WARNING :
Robot mass: 0.2500003944120692,
Inertia: tensor([[8.4501e-04, 0.0000e+00, 3.3087e-24],
[0.0000e+00, 8.4501e-04, 3.3087e-24],
[3.3087e-24, 3.3087e-24, 1.6900e-03]], device='cuda:0'),
Robot COM: tensor([[0.0000e+00, 0.0000e+00, 1.3411e-14, 1.0000e+00]], device='cuda:0') (robot_manager.py:415)
[10050 ms][robot_manager] - WARNING : Calculated robot mass and inertia for this robot. This code assumes that your robot is the same across environments. (robot_manager.py:418)
[10050 ms][robot_manager] - CRITICAL : If your robot differs across environments you need to perform this computation for each different robot here. (robot_manager.py:421)
[10081 ms][env_manager] - INFO : [DONE] Populating environments. (env_manager.py:75)
[10089 ms][IsaacGymEnvManager] - WARNING : Headless: False (IGE_env_manager.py:415)
[10089 ms][IsaacGymEnvManager] - INFO : Creating viewer (IGE_env_manager.py:417)
[11200 ms][IGE_viewer_control] - WARNING : Instructions for using the viewer with the keyboard:
ESC: Quit
V: Toggle Viewer Sync
S: Sync Frame Time
F: Toggle Camera Follow
P: Toggle Camera Follow Type
R: Reset All Environments
UP: Switch Target Environment Up
DOWN: Switch Target Environment Down
SPACE: Pause Simulation
(IGE_viewer_control.py:153)
[11200 ms][IsaacGymEnvManager] - INFO : Created viewer (IGE_env_manager.py:423)
*** Can't create empty tensor
[12160 ms][asset_manager] - WARNING : Number of obstacles to be kept in the environment: 9 (asset_manager.py:32)
WARNING: allocation matrix is not full rank. Rank: 4
/home/admin/workspaces/aerial_gym_ws/src/aerial_gym_simulator/aerial_gym/control/motor_model.py:38: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).
torch.tensor(self.min_thrust, device=self.device, dtype=torch.float32).expand(
/home/admin/workspaces/aerial_gym_ws/src/aerial_gym_simulator/aerial_gym/control/motor_model.py:41: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).
torch.tensor(self.max_thrust, device=self.device, dtype=torch.float32).expand(
[13408 ms][control_allocation] - WARNING : Control allocation does not account for actuator limits. This leads to suboptimal allocation (control_allocation.py:48)
[15392 ms][main] - ERROR : Error in getting images (save_camera_stream.py:83)
[15392 ms][main] - ERROR : Seems like the image tensors have not been created yet. (save_camera_stream.py:84)
[15392 ms][main] - ERROR : This is likely due to absence of a functional camera in the environment (save_camera_stream.py:85)
Traceback (most recent call last):
File "save_camera_stream.py", line 86, in
raise e
File "save_camera_stream.py", line 79, in
255.0 * env_manager.global_tensor_dict["depth_range_pixels"][0, 0].cpu().numpy()
KeyError: 'depth_range_pixels'

Hello,
Thank you for opening an issue for this error.
A quick fix would be to set enable_camera = True in this file.
Apologies for this error. A fix will be implemented soon that will allow running all examples without an error.

Thks,it works.


I can't navigate through my code using the space bar

Using the space bar to navigate through my code isn't possible.

What do you mean? Can you describe how it's supposed to work?

If i press my spacebar ( Ipad keyboard ) i can freely move arround in my code Example
PS: copy pasting and selecting is difficult do performe without an extra keyboard


Rename DEBUG to DEBUG_PRINT

Turns out the DEBUG env variable is used by kubectl (and probably
some of K8s go libraries) to control debug printing of network
connections.
Renaming our variable to DEBUG_PRINT to avoid this noise.
Example prints:
I0809 13:29:36.492157    5475 log.go:195] (0xc0006ee000) (0xc0008d6140) Create stream
I0809 13:29:36.492225    5475 log.go:195] (0xc0006ee000) (0xc0008d6140) Stream added, broadcasting: 1
I0809 13:29:36.493575    5475 log.go:195] (0xc0006ee000) Reply frame received for 1
I0809 13:29:36.493595    5475 log.go:195] (0xc0006ee000) (0xc0008d61e0) Create stream
I0809 13:29:36.493603    5475 log.go:195] (0xc0006ee000) (0xc0008d61e0) Stream added, broadcasting: 3
I0809 13:29:36.494109    5475 log.go:195] (0xc0006ee000) Reply frame received for 3
...

Signed-off-by: Mike Kolesnik<EMAIL_ADDRESS>

./scripts/shared/lib/debug_functions: line 17: trap: DEBUG_PRINT: invalid signal specification

@dfarrell07 I added a small commit to the PR, to allow turning off debug printing only for specific functions, please re-review


Please add a section that describes and illustrates the use of data-preload

The data-preload option was added in the 1.2 version of the page layout contract: https://docs.microsoft.com/en-us/azure/active-directory-b2c/page-layout#120
There has been some uncertainty expressed in a few places about its use, what it does/does-not do, and very few examples. It would be helpful to include a section in here (following "Custom HTML and CSS section? Or perhaps after the Get started with custom HTML and CSS section, since it is the first to include HTML examples) that mentions data-preload, and includes link(css) and maybe script(JS) elements that illustrate its precise usage, such as:
<link href="https://YOUR_PAGE_MARKUP_LOCATION/css/styles.css" rel="stylesheet" type="text/css" data-preload="true"/>

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

ID: 0b1a5dbe-3776-6cbf-41b1-a2b00dcfe95e
Version Independent ID: 14bb0adf-b9d0-7f70-1d35-ba38e85e0f65
Content: Customize the user interface - Azure AD B2C
Content Source: articles/active-directory-b2c/customize-ui-overview.md
Service: active-directory
Sub-service: b2c
GitHub Login: @mmacy
Microsoft Alias: marsma

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

Without data-preload=true, a page is constructed in view.  This means that Azure AD B2C first loads the referenced HTML file, display it on the page and then download each reference and update the page with the contents. With data-preload=true, a page is constructed before being shown to the user.  This means that we first download the HTML file, then all of its references before constructing the page and displaying it. This helps getting rid of the ‘flicker’ that may occur on a page by ‘preloading’ the CSS file, without the unstyled HTML being shown to the user.
The correct format for both CSS and JS external files is:
<link href="https://path-to-your-file/sample.css" rel="stylesheet" type="text/css" data-preload="true"/>

We'll update the documentation as soon as possible. Hope that clarifies your question. Should you have any questions, please don’t hesitate to contact us (otherwise please close this issue). Again thank you very much for your feedback and cooperation.
Yoel

I'm doing some work on the UI customization this week. So, I'm going to include this section as well.

Thanks for your feedback, the data-preload=true is documented. Please see Guidelines for using custom page content.
Yoel

#please-close


[ALLUXIO-2815] Update AlluxioTException and preserve FS API

Rebased version of https://github.com/Alluxio/alluxio/pull/5178
https://alluxio.atlassian.net/browse/ALLUXIO-2815

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/14626/
Test PASSed.


Merge the Processors portion of the Processors client/server

Passes all tests on my machine. Working with Reach.

Ok to merge is tests pass.


Method to change API endpoint?

Currently the API endpoint is hardcoded into wikipedia/wikipedia.py on line 15: API_URL = 'http://en.wikipedia.org/w/api.php'.
This constrains access to other wiki sites accessible with the Wikimedia API, but at different API endpoints.
For example, I would like to use the Wikimedia API to access Wikiquote data––this would involve changing the API endpoint to http://en.wikiquote.org/w/api.php (link).
This is a problem I'm running into with my project; I'd like to access quotes for a specific person, and I'm missing some good way to access the WikiQuote API from Python, save wrapping it myself. Would you be open to a pull request that allows the user to override the API endpoint to access other Wikimedia sites?

Update––I've forked this repo and modified it for my new usage, so someone with this problem should feel free to install my package from the GitHub source.
Better documentation//code coming soon––I'm at a hackathon so this is super bootstrapped.

lol jk I can just reassign API_URL


chore: update deps

remove lumos from optional deps
update typescript from rc to stable

Codecov Report

Merging #551 (d264d7d) into develop (2f9cf82) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop     #551   +/-   ##
========================================
  Coverage    96.27%   96.27%
========================================
  Files           50       50
  Lines         1555     1555
  Branches       297      297
========================================
  Hits          1497     1497
  Misses          58       58


Book of the dead Oversight

Once you have finished the questline involving Kharedsts Memoirs, the item becomes the Book of the Dead and the plugin no longer recognizes it. The teleport menu reverts back to the vanilla entries at that point.

I accounted for the Book of the Dead already:

If you mean the chat dialog, that one isn't supported on either book since I felt it was descriptive enough already.


Switch to Scala 2.12.7

Switches Scala version to 2.12.7 as part of apache/incubator-openwhisk#3952
To validate that build passes fine this PR build against the scala-2-12 branch. Following sequence of steps would happen

apache/incubator-openwhisk#4062 is merged
Change the git url in install scripts
Merge this PR

Build failed due to
./tools/travis/build.sh: line 34: jshint: command not found

Last CRON build failed with same error


Changes in JS file, is not deploying.

Describe the bug
Whenever make any changes in JS file, it is not deploying. Also, I tried changing the port to 8080 first time it was deploying properly but then again the same issue.
Expected behaviour
It should deploy properly and show the changes.

+1
Whenever I make some changes in the application, if I deploy, I am not able to get the latest code that is deployed. This Happens while I run my app using services or docker.

Whenever I make some changes in the application, if I deploy, even the consoles are not seen as it not deploying.
Same issue as above

Clear the cache files on disk? In the webroot folder?

does this webroot refers to below one ?

To overcome this issue, we try these steps
-First you need to be ensure that your Mongo and BMP service is running and you are able to get connect with these
    -I noticed that sometimes we are not able to get connect with mongo even it showing as "Started"
    -For mongoDb: We can verify it either by mongo shell or MongoCompass
    -BMP server can be verify by hitting its URL in the browser
-If facing issue to start the BMP server than you may follow these steps
-add "express-session and debug" in its package.json

-Clear your earlier configuration
    -Setup it manually using ".\bpmn-server.ps1 -setup"
    -now you can start it either from CMD or GUI
-Now you may put your changes and deploy it
-If you still not seeing the console than you may disable your browser cache.


Implement IMD_TRATE setting in simulation engines

IMD_TRATE should be configurable BEFORE the simulation starts in LAMMPS, Gromacs, NAMD

This is implemented in all forks


cassandra - Datastax4x upgrade

Fixes #2090
Problem
Cassandra Datastax driver upgrade - 4.x version APIs and configuration adjustments
Solution
Implemented changes and and refactoring in the modules:

quill-cassandra
quill-cassandra-zio
quill-cassandra-monix

the module origina library (lagom) uses oder (3.6x) version of datastax driver/
quill-cassandra-lagom

Adjusted sbt options to be able to run unit tests locally
https /apache site for the cassandra 3.11 binaries
minor/cosmetic changes to docker files.

Notes
Additional notes.
Checklist

[x] Unit test all changes
[X] Update README.md if applicable
[ ] Add [WIP] to the pull request title if it's work in progress
[x] Squash commits that aren't meaningful changes
[x] Run sbt scalariformFormat test:scalariformFormat to make sure that the source files are formatted

@getquill/maintainers

Also, thanks so much for this really, really great work!!!

Looks like the CI failed. Could you please double check the test configs?

could it be due to missing entries in docker-compose-m1?
I ran all tests locally last night...

Slightly different scripts are used for the Github Actions CI. It's the setup_bigdata.sh and some others. I don't think docker-compose-m1 is used.

Be sure to include CASSANDRA_CONTACT_POINT_0, CASSANDRA_CONTACT_POINT_1 and other new env vars into build.sh.

Be sure to include CASSANDRA_CONTACT_POINT_0, CASSANDRA_CONTACT_POINT_1 and other new env vars into build.sh.
Thank you for the lead!
added. definitely missed the point - I ran the tests via docker-compose sbt directly.


create arch package

i was wondering how to publish an arch package, i.e. result of makepkg?

This action's only concern is publishing PKGBUILD and .SRCINFO to the AUR.
You may create your own Docker action for this.


Why does the running speed of triton in automatic tuning mode be much faster than that of directly giving the optimal configuration?

By printing the results of autotune, I got the best configuration, but if I use the best configuration directly and test within do_bench funciton, the speed is not as fast as in autotune mode, and the speed difference is much different. I want to know what additional operations have done by autotune. Does this mean I can't achieve the speed of autotune in production? Here is autotune give me the result:
BLOCK_M: 64, BLOCK_N: 64, num_warps: 4, num_ctas: 1, num_stages: 3, enable_warp_specialization: False, enable_persistent: False

In theory it should be running exactly the same code, but without a reproducer it's hard to tell. It's possible your benchmarks are confused by external factors like the caches being more warm for one run or the clock rate of the GPU changing between runs.

I'm pretty sure it's not affected by other factors, because I tested it many times on an empty GPU, and the performance gap between with and without autotune is huge. The fused-attention given by the official website of my previous test was also better than flash- Attention.I suspect that it can only reach this speed in autotune, but I have not tested it

Could it be that it caches some data when selecting the best configuration?

Could you provide a script that reproduces the performance difference you're seeing?


Use Slynk over Swank for Common-Lisp

Consider using Slynk instead of Swank, or allow user to configure whichever they prefer.

What's the argument for one over the other? Both would be offered as entirely separate clients no matter what happens since they require different implementations. So you'd swap the client out for the language as per the documentation / help files.
I'm fine just having one is one of them is far better at being a generic remote interface with well defined messages. So far I haven't seen that with swank, it seems very minimal and makes it hard to match results up to requests. It also doesn't seem to really be documented but I could be missing something obvious.

So Slynk is a fork of Swank that is better maintained and has a few more features. In terms of it having well defined messages I'll have to dig a bit deeper and get back to you.

Seems like this work is already is progress: https://github.com/Olical/conjure/pull/348

New PR is #400


Gauge min and max label positions

Hi @gionkunz and community,
I am struggling with positioning mix and max labels with gauge and don't really know where to start.
I need them to be positioned at the bottom of the mix and max sections, for example:

Any ideas, advice or working code (if someone did that before).
Thank you.

Maybe this "plugin" will help you? Sorry for the late reply, this issue slipped through my attention. http://jsbin.com/boqonawufi/2/edit?js,output
I hope this will help anyone else who faces the same issue.
Once we've documented events better #90 , this should help a lot.


MongoDB 5.0+ requires a CPU with AVX support. Container failed to start

Docker container is not starting and It only shows warning on docker logs
Docker version : 23.0.4, build f480fb1
Docker-compose version: v2.17.2
docker-compose.yml
services:
  mongo-db:
    container_name: mongo-db
    image: mongo:6
    volumes:
      - ../psvolumes/mongo6:/data/db
    environment:
      - COMPOSE_PROJECT_NAME=mongo
      - MONGO_INITDB_ROOT_USERNAME=
      - MONGO_INITDB_ROOT_PASSWORD=
    ports:
      - 27017:27017
    networks:
      - mongo_network
    restart: unless-stopped
networks:
    mongo_network:
        driver: bridge

Output:

[+] Running 2/1
✔ Network ams-api_mongo_network  Created                                                                                0.1s
✔ Container mongo-db             Created                                                                                0.0s
Attaching to mongo-db
mongo-db  |
mongo-db  | WARNING: MongoDB 5.0+ requires a CPU with AVX support, and your current system does not appear to have that!
mongo-db  |   see https://jira.mongodb.org/browse/SERVER-54407
mongo-db  |   see also https://www.mongodb.com/community/forums/t/mongodb-5-0-cpu-intel-g4650-compatibility/116610/2
mongo-db  |   see also https://github.com/docker-library/mongo/issues/485#issuecomment-891991814
mongo-db  |
mongo-db exited with code 0

This same code is running well on
docker: 20.10.23, build 7155243
docker-compose: 1.29.2, build 5becea4c

The warning is there to let you know why the container is mysteriously crashing (since there is no output from the crashing MongoDB binaries).
I'm a little confused 😕. Are you saying that on one machine that you upgraded docker from 20.10.23 to 23.0.4 and now the mongo:5 image doesn't run?
If these are separate machines, then it is expected that one might not run it even though it is on a newer version of Docker. The version of Docker is not relevant to this error. The mongo:5 image requires a CPU that is new enough (one with AVX support). The MongoDB 5+ binaries released by MongoDB are compiled with a -march=sandybridge, which roughly means "sandybridge or newer", but there are newer CPUs that don't have the required instructions (https://www.mongodb.com/community/forums/t/mongodb-5-0-cpu-intel-g4650-compatibility/116610/2).

I am trying to run on totally new server.

I'm a little confused . Are you saying that on one machine that you upgraded docker from 20.10.23 to 23.0.4 and now the mongo:5 image doesn't run?

Also tried downgrading the docker to the old version i.e. 20.10.23 and got the same issue. So yes it is not a docker version problem. This same code was running well in another server (container with older mongo images were also running here)  which has almost a similar configuration to the newer one. While trying to setup in totally fresh new server I am having issues. T
Since we are running on the container can we solve this by adding some configuration to it?

If the CPU doesn't have that avx capability, you can pin mongo to an older version like mongo:4.4.18

Since we are running on the container can we solve this by adding some configuration to it?

Nope, the compiled MongoDB binaries (5.0+) require a CPU with specific instruction support. There is nothing we can do from the Docker side.

FWIW I worked around this by replacing the binaries in the MongoDB docker image with self-compiled versions with a different '-march' flag.
More details and links to a docker image to help with mongodb compilation on the linked issue here: https://github.com/docker-library/mongo/issues/485#issuecomment-1524109050


Don't show warning if children in attrs is a component

Hi!
RIght now I get a lot of warnings when using children in attrs.

It looks like you've used a component as value for the children prop in the attrs constructor.
You'll need to wrap it in a function to make it available inside the styled component.
For example, { children: () => InnerComponent } instead of { children: InnerComponent }

E.g. here:
const Comp = styled(OtherComponent).attrs({
  children: props =>
props.showYes ? "yes" : "no"

})``

Though it seems to be a valid use case for me, and in fact it works just fine.
I added a (failing) test to illustrate what I mean. Would it be it to add a change that prevents warnings if children is a Component?

Change your code to props => () =>
props.showYes ? "yes" : "no"
 or better yet, use the new attrs(props => ({ children:
props.showYes ? "yes" : "no"
  }) syntax in 4.1

@probablyup the first version didn't work, but the second does!


hugo doesn't produce .html files when using the shell theme

Describe the bug
I've created a basic page for hosting on a lighttpd webserver.  I'm expecting to see .html files in the public directory after running the "Hugo" command, however I only see .xml files in the final build.
I do get errors when running the hugo command:
Start building sites …
hugo v0.109.0+extended darwin/amd64 BuildDate=unknown
WARN 2023/01/04 17:21:10 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2023/01/04 17:21:10 found no layout file for "HTML" for kind "home": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2023/01/04 17:21:10 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2023/01/04 17:21:10 found no layout file for "HTML" for kind "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2023/01/04 17:21:10 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2023/01/04 17:21:10 found no layout file for "HTML" for kind "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
To Reproduce
Steps to reproduce the behavior:

hugo new site Tutorial
git submodule add https://github.com/Yukuro/hugo-theme-shell.git themes/hugo-theme-shell
create some content
hugo
ls public/:  categories  index.xml sitemap.xml tags

Expected behavior
I'm expecting .html files.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: macos
hugo v0.109.0+extended darwin/amd64 BuildDate=unknown
GOOS="darwin"
GOARCH="amd64"
GOVERSION="go1.19.4"
github.com/sass/libsass="3.6.5"
github.com/webmproject/libwebp="v1.2.4"

I failed to run the following command:
hugo --theme='hugo-theme-shell'


Do I need observer?

From the documentation is clear that I should wrap react components with observer if I want to observe some property of the component. It also says that when using inject I don't really need to wrap component with observer too. But what if I use inject to pass a prop to the component but I also pass an observable prop at the component by its parent? Should I use the observer for the second prop, or inject tracks changes at both props?
From this example it seems that both props are tracked because of the use of inject.
So do I really need observer when using inject in my app?

Inject takes care of injecting (like useContext), but it doesn't take care of observability, those two things are completely unrelated. If your component is rendering observables, you will need observer.

Thanks for the answer.
I made some test and found that inject updates the view without the observer when it is passed primitive types, but not with Objects and Arrays. I guess because some shallow equality check returns true for Objects and Arrays with changed content.


Morphing effect isn't enabled when the label is added programmatically

I can't see any morphing effect when there is no storyboard used

clear the text and input the message again

It didn't work. I've done this:
textView.text = ""
textView.text = "Some New String"

Without any luck

I got a weirder result, where the morph finally happened, but in super slow-motion (i.e. 15 seconds to complete).


Implement error boundary to improve error handling in debugger UI

related to https://github.com/ballerina-platform/ballerina-lang/issues/8153


Migrate to Typescript

refactor: migrate all codes to Typescript
chore: optimize repo structure
fix: package dependencies
test: extract testcase for readability
chore: clean up some redundant code and optimize some logic

Wrong branch


Signal.trap not implementation on Windows

The runtime error occurs with many frameworks
Unhandled exception: Not Implemented: Crystal::System::Signal.trap (NotImplementedError)
  from A:\Scoop\apps\crystal\current\src\crystal\system\win32\signal.cr:5 in 'trap'
  from A:\Scoop\apps\crystal\current\src\signal.cr:117 in 'trap'
  from A:\Scoop\apps\crystal\current\src\crystal\main.cr:115 in 'main_user_code'
  from A:\Scoop\apps\crystal\current\src\crystal\main.cr:101 in 'main'
  from A:\Scoop\apps\crystal\current\src\crystal\main.cr:127 in 'main'
  from A:\Scoop\apps\crystal\current\src\crystal\system\win32\wmain.cr:37 in 'wmain'
  from D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288 in '__scrt_common_main_seh'
  from C:\WINDOWS\System32\KERNEL32.DLL +75437 in 'BaseThreadInitThunk'
  from C:\WINDOWS\SYSTEM32\ntdll.dll +371192 in 'RtlUserThreadStart'

Is that a part missed?
Crystal / 1.8.1

This is by design. If it is Signal::INT.trap, try Process.on_interrupt instead

This is by design. If it is Signal::INT.trap, try Process.on_interrupt instead

Well, that works actually.
Are there any plans to implement that for Windows yet?🤔

It looks like Signal isn't very portable, which is why Process is a better choice here.


Blank page displayed in Preferences and Profile page in Microsoft Edge

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Open Microsoft Edge
Navigate New Expensify
Navigate to Profile or Preferences in settings

Expected Result:
Profile or preferences should load.
Actual Result:
Blank page displayed for both preferences and profile page.
Error in console:
react-dom.production.min.js:216 TypeError: e.slice(...).replace is not a function
    at index.web.js:27
    at Jg (index.web.js:40)
    at ev (index.js:6)
    at tv (index.js:22)
    at ni (react-dom.production.min.js:157)
    at Bs (react-dom.production.min.js:267)
    at Ac (react-dom.production.min.js:250)
    at Sc (react-dom.production.min.js:250)
    at _c (react-dom.production.min.js:250)
    at pc (react-dom.production.min.js:243)

Workaround:
Use another browser to access the pages.
Platform:

Where is this issue occurring?

Web (Microsoft Edge)

Version Number: 1.0.98-0
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

Expensify/Expensify Issue URL:
Issue reported by: @Hanaffi
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1631641061257600
View all open jobs on GitHub

Triggered auto assignment to @laurenreidexpensify (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

Triggered auto assignment to @Beamanator (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@laurenreidexpensify My mistake I accidentally created the issue with the AutoAssignerTriage label 🤦 I really need to stop pressing ctrl + enter when editing

This issue is coming from my code. the function I wrong to get the Browser name is faling. :scream: on edge.

Proposal

There are multiple solutions:

We could use https://github.com/arasatasaygin/is.js to check the browser name (with version as well) like is.chrome('>80').
Use indexOf instead of match,  Something like this:

var browserName = (function (agent) {        switch (true) {
            case agent.indexOf("edge") > -1: return "MS Edge";
            case agent.indexOf("edg/") > -1: return "Edge ( chromium based)";
            case agent.indexOf("opr") > -1 && !!window.opr: return "Opera";
            case agent.indexOf("chrome") > -1 && !!window.chrome: return "Chrome";
            case agent.indexOf("trident") > -1: return "MS IE";
            case agent.indexOf("firefox") > -1: return "Mozilla Firefox";
            case agent.indexOf("safari") > -1: return "Safari";
            default: return "other";
        }
    })(window.navigator.userAgent.toLowerCase());

We can just fix that bug as @parasharrajat stated.

Looks like we're putting this one on hold, I'll review proposals once we take this off hold

@Beamanator I think this should be processed now as this is crashing the app and making it unusable for Opera or Edge.

@parasharrajat thanks for bringing this back up, good point, let's get this fixed. @kadiealexander I think we can take this off hold since it's pretty critical for Microsoft Edge users (& probably Opera too).

@parasharrajat please move forward with your PR, I'll assign this to you 👍
@Hanaffi thanks for your proposal, we try not to use 3rd party libraries as much as possible so I'd like to not introduce https://github.com/arasatasaygin/is.js. Your function for checking the agent looks a bit complex so I'd like to make minimal changes to fix this small issue

Triggered auto assignment to @MitchExpensify (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@Beamanator PR is up. Thanks

Holding on making externals for n6-hold

Sure @MitchExpensify but PR for this is just merged as we thought this issue is a priority.

Yeah @MitchExpensify this "blank page" was really the app crashing, so I merged this fix as it's very small & could be considered a deploy blocker since the app easily would break on Microsoft Edge and Opera browsers

Yeah @MitchExpensify this "blank page" was really the app crashing, so I merged this fix as it's very small & could be considered a deploy blocker since the app easily would break on Microsoft Edge and Opera browsers

Thanks for catching me up!

Upwork job created and hired @parasharrajat

@MitchExpensify Hi, I was wondering If I would get paid for figuring out the issue?
According to Proposing a job that Expensify hasn’t posted in your Contribution guide

In this scenario, it’s possible that you found a bug or enhancement that we haven’t posted to the Github repository. This is an opportunity to propose a job, and (optionally) a solution. If it's a valid job proposal that we choose to implement — either internally or via an external contributor — then we will compensate you $250 for identifying and proposing the improvement. Note: If you get assigned the job you proposed and you complete the job, this $250 for identifying the improvement is in addition to the reward you will be paid for completing the job.

@Hanaffi yes you should get paid for reporting the issue! I believe @MitchExpensify already has that under control :D And I also believe you will get paid at the same time as the person fixing the issue (Rajat)

@Beamanator Thanks for clarification :D

The PR has been deployed to production. This did not work, because we have forgotten to add Exported label to this issue when the Upwork job was created. That is requirement for the AwaitingPayment label to be added. We might look into updating this behaviour.

Ping for

Payment made @parasharrajat

@MitchExpensify @mallenexpensify
Hi, I didnt get paid for identifying/reporting the bug !

Thanks for notifying us @Hanaffi , I will follow up with @MitchExpensify about this (fyi he has been quite busy lately) - rest assured you'll get paid :)

@Beamanator Thanks, I appreciate your help 🥇

Sorry about the delay @Hanaffi , that was my mistake. Can you please apply here and I'll issue your payment - https://www.upwork.com/jobs/~01ea1d440e53d9749d. Thanks for you patience!

@MitchExpensify No problems :) I have just applied for the job on Upwork.

Payment made! Thanks again @Hanaffi

@MitchExpensify Thanks so much :)


[Snyk] Upgrade @spectrum-web-components/field-label from 0.42.5 to 0.43.0

This PR was automatically created by Snyk using the credentials of a real user.![snyk-top-banner](https://github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)
Snyk has created this PR to upgrade @spectrum-web-components/field-label from 0.42.5 to 0.43.0.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

The recommended version is 1 version ahead of your current version.

The recommended version was released on 22 days ago.

Release notes

Package name: @spectrum-web-components/field-label

0.43.0 - 2024-06-11v0.43.0

0.42.5 - 2024-05-24v0.42.5

    from @spectrum-web-components/field-label GitHub release notes

[!IMPORTANT]

Check the changes in this PR to ensure they won't cause issues with your project.
This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:

🧐 View latest project report
📜 Customise PR templates
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Run report for 28a2f4e6
Total time: 13.9s | Comparison time: 14.6s | Estimated savings: 705.5ms (4.8% faster)

Action
Time
Status
Info

🟩
SyncWorkspace
0ms
Passed

⬛
SetupToolchain(node:~20.12)
1.7s
Skipped

🟩
InstallWorkspaceDeps(node:~20.12)
8.4s
Passed

🟩
SyncProject(node, visualizer)
0.7ms
Passed

🟩
SyncProject(node, root)
0.7ms
Passed

🟩
RunTask(visualizer:typescript)
2.1s
Passed

🟩
RunTask(root:test)
1.5s
Passed

🟩
RunTask(visualizer:build)
1.8s
Passed

Touched files
docs/visualizer/package.json
pnpm-lock.yaml


Issue240 pr

Clean branch with currently failing test for issue  #240

This was the cause, basically: https://github.com/bridgedb/datasources/issues/37


Comments page updated styles

@leozz37 Hello! Thanks for making the Dracula theme for Hacker news!
I found that the comments page could use some love as the comment text contrast was a bit hard to read for me personally. This PR represents the style changes I made that make the comments page to make it a bit more pleasent to use while keeping it consistent with the overall theme.
Here is what the comments page looks like now:

And with the suggested changes:

Please let me know your thoughts! This is of course a PR and doesn't need to get merged in. Simply wanted to spin up a PR as a thank you for making the style available to the public in the first place 😃

Hello @Teyler7!
Nice catch! I ended up not noticing the comments sections.
Thank you very much for your contribution, I'll be implementing it!

Just implemented your PR. Thank you very much @Teyler7!

You're most welcome. Thank you!


how to get the number of hits by search?

Having a vue3-easy-data-table with search options. Now I want to display the number of hits by search. Which variable or array can I use for this to get the length of the array? I didn't find anything about this in the documentation. Thanks.

I'm not sure what you meant by "hits", but if you are (were) looking for the number of results of a search, you can check the clientItemsLength property of the dataTable ref.
<script setup lang="ts">
    //...
    const productsDataTable = ref()
    const clientItemsLength = computed(() => productsDataTable.value?.clientItemsLength);
    //...
</script>

<template>
    <!-- ... -->
    <EasyDataTable ref="productsDataTable" ... />
    <!-- ... -->
</template>

If it helps, here are what I believe are all the exposed variables/properties :
currentPageFirstIndex
currentPageLastIndex
clientItemsLength
maxPaginationNumber
currentPaginationNumber
isLastPage
isFirstPage
nextPage
prevPage
updatePage
rowsPerPageOptions
rowsPerPageActiveOption
updateRowsPerPageActiveOption


Subscription connection using "Sec-WebSocket-Protocol" : "graphql-transport-ws" for "graphql-ws"

I've been unable to get a Houdini subscriptions working due to browser not being able to connect to the GraphQL API websocket.
After digging in further, it looks like Houdini is making the connection request with the Sec-WebSocket-Protocol header set to graphql-transport-ws when the client is graphql-ws.
I've tried overriding this by manually setting the header to graphql-ws in the createClient connectionParams object but the request continues to use a graphql-transport-ws value.
Is there another way the Sec-WebSocket-Protocol header value can be set?
My API requires this header to be present to connect. Thanks

My current environment settings -
import { browser } from '$app/env';
import { Environment } from '$houdini';
import { createClient } from 'graphql-ws';
import * as config from '$lib/config-public';

// this function can take a second argument that will
// contain the session data during a request or mutation
async function fetchQuery({ text, variables = {} }) {
	const result = await this.fetch(config.API.GRAPHQL_URL, {
		method: 'POST',
		headers: {
			'Content-Type': 'application/json'
		},
		body: JSON.stringify({
			query: text,
			variables
		})
	});
	// parse the result as json
	return await result.json();
}

// this client is used to handle any socket connections that are made to the api
// since websockets only exist on the client, set to null on the server
const socketClient = browser ? createClient({
	url: config.API.GRAPHQL_WS,
	connectionParams: () => {
		return {
			headers: {
				'Sec-WebSocket-Protocol': 'graphql-ws'
			},
		};
	},
 }) : null;

export default new Environment(fetchQuery, socketClient);

The connection request headers sent by Houdini in the browser (same whether connectionParams setting set in enviroment, or not) -

The connection request headers sent by Houdini in the browser.
This is the same whether the connectionParams setting is present or not -

Hey @ClaytonFarr - sorry you are running into this. I'm not really sure what the root cause is since houdini doesn't really set any custom headers or configure the websocket client (it just calls the subscribe.next function). Could this be an issue with the version of graphql-ws you are using?

Hey @AlecAivazis, thanks for the quick reply and clarification. That helps to know.
I'll double-check at graphql-ws as well. After looking at the package initially, I presumed it would default to the latest protocol name, but crazier things have happened.
I'll circle back with what I find out.

For future folks who might be banging their heads against this particular wall...
From graphql-ws author @enisdenjo: https://github.com/enisdenjo/graphql-ws/issues/185#issuecomment-847234413 -

The sub-protocol of graphql-ws is graphql-transport-ws (new GraphQL over WebSocket Protocol)
The sub-protocol graphql-ws belongs to subscriptions-transport-ws (deprecated Apollo client / Protocol)

The sub-protocol of each one includes the key words of the other protocol's name 😭
I'm sure graphql-ws hands were tied here, but how many sunny afternoons have been consumed by this sad artifact of history?
Thanks again @AlecAivazis for the quick help to look in the right direction.


[Fix #200] Make SchemaLoader aware of Rails 5 expression index

This pull request fixes #200
The error occurred on Rails 5 expression index.

Before submitting the PR make sure the following are checked:

[x] Wrote good commit messages.
[x] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[x] Added tests.
[ ] Added an entry to the Changelog if the new code introduces user-observable changes. See changelog entry format.
[x] The PR relates to only one subject with a clear title
and description in grammatically correct, complete sentences.
[x] Run bundle exec rake default. It executes all tests and RuboCop for itself, and generates the documentation.

Thanks!


[add-resource] New Plugin

I would like to add my new plugin to the Grav Repository.
Here are the project details: cron-ix/grav-plugin-pi-cpu-temp
If GRAV is running on a Raspberry Pi, the plugin can show the cpu core temp in degree celsius
Thanx,
Thomas

@cron-ix, I have had a quick view at your plugin and noticed the following:

The plugin does not conform the plugin guides set by Grav

It does not have a composer.json file
It uses require instead of composer autoloader

See Plugins tutorial and the Developer section in the 1.7 Upgrade guide
The easiest way to conform to these guides is by creating a plugin using the Devtools plugin:
$ bin/gpm install devtools
$ bin/plugin devtools new-plugin

The Twig extension is loaded at every request including Admin and CLI.
See the onPluginsInitialized() event-handler in the plugin generated by Devtools and above mentioned guides.

The temperature show on the page will not be updated when page has been cached.

Instead of returning an Exception message thrown by the system, a more descriptive message might be more helpful to the user.

README:

Instructions should mention how to circumvent the caching issue mentioned above.
"Set Process Twig to true for your page" could be more descriptive using a snippet.

@pamtbaau Thank you for your review.
I used this plugin recipe to build my plugin. Now I updated the code with devtools newplugin.

composer.json added
README.md updated with detailed information on how to to configure and use (eg disable caching)
used 'file_get_contents()' with detailled error handling/reporting (thx for the hint - it can be that easy...), if file not found or return value is NULL

repo updated and new initial release
Thomas

I've added this to GPM so should be available soon.  Cheers!


some enhancements

docker image is round about 50MB smaller
UID is customizable

cheers Lars

Thanks @lkwg82! This is great! Any reason why you removed the docker badge from the readme?

Oh… I see what you mean by "broken link"…

I'll take a look at an alternative. Thank you!


Add docs on alembic migration

Add docs on how to run migrations manually.

Disregarding this issue, because I've already added on the initialization of the migrations commit.


⚠ Bofrost.be has degraded performance

In 6201481, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1237 ms

Resolved: Bofrost.be performance has improved in 6169554 after 20 minutes.


pm: device_runtime: return -ENOSYS if PM not supported

Return -ENOSYS on calls to device_runtime functions if the underlying
device does not support power management.
Fixes #45648.
Signed-off-by: Jordan Yates<EMAIL_ADDRESS>

Return value has been changed to -ENOTSUP.
Return options have been documented in the header
A Test for the new return values has been added.


[WASM] Not receiving websocket messages

Describe the bug
WebSocket message is received on VM & JS environments but not on WASM.
i.e. webSocketClient.stream.json or webSocketClient.stream.text or webSocketClient.stream.bytes doesn't emit any data when flutter app is compiled to WebAssembly
Expected behavior
WebSocket message is received.
Desktop (please complete the following information):

OS: Windows 10
Browser Chrome

Yes, wasm is a pretty fresh compilation target; I'll take a look at that problem in the near future.


Fix is_sharded setting for loading quant model

Type of Change
bug fix
Description
raise EnvironmentError(
OSError: hugging-quants/Meta-Llama-3.1-8B-Instruct-GPTQ-INT4 does not appear to have a file named model.safetensors. Checkout 'https://huggingface.co/hugging-quants/Meta-Llama-3.1-8B-Instruct-GPTQ-INT4/tree/main' for available files.

is_sharded not changed
Expected Behavior & Potential Risk
the expected behavior that triggered by this PR
How has this PR been tested?
how to reproduce the test (including hardware information)
Dependency Change?
any library dependency introduced or removed

workaround transformers issue in version 4.47.0

/azp run UT-3x-Torch


Connect-DbaInstance - Fail on PowerShell Core when using a Windows account as SqlCredential

Type of Change

[x] Bug fix (non-breaking change, fixes #7514 )
[ ] New feature (non-breaking change, adds functionality, fixes # )
[ ] Breaking change (effects multiple commands or functionality, fixes # )
[ ] Ran manual Pester test and has passed (.\tests\manual.pester.ps1)
[ ] Adding code coverage to existing functionality
[ ] Pester test is included
[ ] If new file reference added for test, has is been added to github.com/sqlcollaborative/appveyor-lab ?
[ ] Unit test is included
[ ] Documentation
[ ] Build system

As always: If you have a better wording, I'm happy if you change that.

Thank you! I'm currently working on replacing SMO but I had to re-learn how to build the dbatools library 🥵  I'm closer to getting it all built for Microsoft.Data.SqlClient and the SMO 16 version, which requires a huge upgrade on the dbatools library. If I fail at that within the next 4 days, I'll merge this 👍🏼

We will not need this once I get the new SMO PR merged 🥳

Super! Then I'll close this one....


[UBS user. Orders] The order forms with partial payment when the user clicks "back" bttn in the browser on the payments service page

Environment:
Windows 10 Home (Version 22H2)
Chrome version 108.0.5359.71
MacOS version 12.6.1 (21G217)
Chromе version 107.0.5304.110
Reproducible: always
Build found: 05/01/2023
Preconditions

The registered user is logged in
The user has filled all needed fields in 1 and 2 steps of the order
The user used bonuses for partial payment of the order
The user clicks "Замовити" bttn at step 3 "Підтвердження" and is redirected to the Fondy payment service

Steps to reproduce

User wants to make changes in the order and click "Back" bttn in the browser
Pay attention that the user didn't provide any payment for the order: the order is formed with partial payment, bonuses are withdrawn, and the user can't cancel this order

Actual result
The order forms with partial payment when the user clicks "back" bttn in the browser on the payments service page
Expected result
The user is redirected to the previous page (step 3 "Підтвердження") and can provide changes in order
User story and test case links
E.g.: "User story #3478, 2200,3625
Labels to be added
"Bug", Priority ("pri: high "), Severity ("severity: major"), Type ("Functional")
https://user-images.githubusercontent.com/110603507/210773399-961ad217-c04f-4e5b-8bdc-3ce0e8ccfb5c.mp4

not a bug


Lime 1154 test pre

Proposed changes
What changed

Why did it change

Issue tracking

LIME-XXXX

Other considerations

Testing pre-commit issue


Off-chain membership requirements

:tada: This PR is included in version 1.28.1-dev.8 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

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


Better error message if wiki file/folder doesn't exist

A traceback error message here is ugly and scares users, and it isn't obvious what the problem is from looking at it. Even I sometimes don't realize it's that the wrong path was selected for a couple of minutes.

Looks like I fixed this at some point and forgot to close this.


Received SSL challenge for host. Host: https://app-measurement.com/a

Step 0: Are you in the right place?

For issues or feature requests related to the code in this repository
file a Github issue.

If this is a feature request please use the Feature Request template.

For general technical questions, post a question on StackOverflow
with the firebase tag.
For general (non-iOS) Firebase discussion, use the firebase-talk
google group.
For backend issues, console issues, and other non-SDK help that does not fall under one
of the above categories, reach out to
Firebase Support.
Once you've read this section and determined that your issue is appropriate for
this repository, please delete this section.

[REQUIRED] Step 1: Describe your environment

Xcode version: 12.5 (12E262)
Firebase SDK version: 8.4.0
Installation method: Swift Package Manager
Firebase Component: Analytics

[REQUIRED] Step 2: Describe the problem
My app (do not know why) has suddenly started to receive the following ssl connection error.
2021-07-29 12:57:18.489467+0100 BM[13331:3500274] 8.4.0 - [Firebase/Analytics][I-ACS900000] Uploading data. Host: https://app-measurement.com/a
2021-07-29 12:57:18.711389+0100 BM[13331:3500074] 8.4.0 - [Firebase/Analytics][I-ACS901006] Received SSL challenge for host. Host: https://app-measurement.com/a
2021-07-29 12:57:18.727727+0100 BM[13331:3500085] [connection] nw_endpoint_handler_set_adaptive_read_handler [C6.1 <IP_ADDRESS>:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: pdp_ip0, ipv4, dns, expensive)] unregister notification for read_timeout failed
021-07-29 12:57:18.727829+0100 BM[13331:3500085] [connection] nw_endpoint_handler_set_adaptive_write_handler [C6.1 <IP_ADDRESS>:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: pdp_ip0, ipv4, dns, expensive)] unregister notification for write_timeout failed
2021-07-29 12:57:18.830713+0100 BM[13331:3500288] 8.4.0 - [Firebase/Analytics][I-ACS023044] Successful upload. Got network response. Code, size: 204, -1
2021-07-29 12:57:18.835255+0100 BM[13331:3500073] 8.4.0 - [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): -0.4699039459228516
2021-07-29 12:57:18.845523+0100 BM[13331:3500073] 8.4.0 - [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2021-07-29 12:57:20.504687+0100 BM[13331:3500074] [connection] nw_resolver_start_query_timer_block_invoke [C6] Query fired: did not receive all answers in time for app-measurement.com:443
Consequently no data seems to be getting through to GA in the debug view and also seemingly in real time data. Some data does get through.
Steps to reproduce:
This happens whenever I run the app in development with regard to the debug view. Real time data is affected in production apps.
Prior to the past week I have had no issues with firebase/ga and this has occurred without a release or any change on my part.

Looks like it could be linked to this one https://github.com/firebase/firebase-ios-sdk/issues/8447

Hard to tell from the firebase log..

Since this is almost certainly a backend issue, like #8447, please file a ticket with  Firebase Support

I have.
They seem to think it’s my issue.
On Sat, 31 Jul 2021 at 00:27, Paul Beusterien @.***>
wrote:

Since this is almost certainly a backend issue, like #8447
https://github.com/firebase/firebase-ios-sdk/issues/8447, please file a
ticket with Firebase Support https://firebase.google.com/support
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/firebase/firebase-ios-sdk/issues/8455#issuecomment-890251509,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACB5XSNQLMJQ2WVQCO4KJDTT2MYM7ANCNFSM5BGKPACQ
.

--
Sent from Gmail Mobile

Who knows. I filed a ticket. The people seem to not give much consideration.
That I can simply create a new project attach it to the app and have that new project run in debug mode with no SSL issues or problem whatsoever does suggest there is a problem with individual projects. I have now one (my most important) has that this issue, whilst all other projects run with no problem.

Is this still an issue? There were some Analytics backend issues fixed in the last few weeks?


Error with authorization

Hey Guys
This is basically more of question if i'am doing something wrong.
After intialization and putting key into
      ```
  Filepicker.setKey(WebConstants.FILE_STACK_API_KEY);
        Filepicker.setAppName("Android");

and after that i am calling by
Intent intent = new Intent(getActivity(), Filepicker.class);
     intent.putExtra("multiple", true);
     startActivityForResult(intent, Filepicker.REQUEST_CODE_GETFILE);

now the problem is the error which i am getting of authorization
but our web team is using this key successful
now please tell me what is going wrong,

Can you provide the log output with the error?

thanks man for replying back, filestack support team was able to help me on that.
Thanks


Implement CLI for deploying controller

Supports #37
Lyra needs a way to deploy the controller from the CLI. This could be lyra init similar to Helm or could be something else.

Did we decide on this one: To do something like lyra init or leave it all to Helm?

Per discussion with JD, I put some thoughts down on some options we have with the controller:
https://github.com/kenazk/lyra/blob/proposal/docs/lyra-controller-proposal/proposal.md

Workflow: https://puppet.invisionapp.com/share/7XQAKKBV84Z#/screens/344988282

I think there's a implicit requirement that lyra is runnable inside the cluster, which isn't possible at the moment but would be worth looking at.

You can accomplish this today using @lyraproj/lyra-operator but it's not built into the CLI - removing this issue from the 0.1 release target - we should continue to work on a nicer CLI for this!


Eval detekt or other static code anaysis tools for integration into CI

purpose: better code quality
acceptance critera: either show compelling value w/out serious cods and integrate detekt into CI or do not integrate based on tradeoffs or limitations.

We've integreated Snyk and Sonarcloud since this issue was opened.


[Feature Request] Deploy Flow to Azure AI Studio UI

Is your feature request related to a problem? Please describe.
My use case primarily uses the Azure AI Studio to create, develop, and evaluate promptflows. Some of my flows are getting complicated so I tried the VS Code Extension. I can develop/run flows in VS Code, but I cannot save new flows to the Studio and make them visible. I can adjust an existing flow and changes show up though, just not create new flows in VS code and push to the Studio UI. I also tried developing in the code folder but this also isn't in the UI.
I am sure this is user error or I'm misunderstanding. I cannot seem to find how to do this basic task in the documentation. This request is to ideally add deploy options in the VS Code extension and/or improve the documentation.
Describe the solution you'd like
A better way of developing flows in VS Code and using the UI to run/evaluate.
Describe alternatives you've considered
Copy/Paste existing flow in shared/users/<user name> but still nothing.
Additional context
Add any other context or screenshots about the feature request here.

Ok I still cannot get this working from the VS Extension, but just running in a juptyer notebook I see pf.flows.create_or_update() is the SDK for deploying, however the flex.flow I'm developing is not supported. So back to square one again. I'm not sure how to configure/customize flex flows in VS code and have those flex flows available in Azure AI Studio.
flow = f"\copilot_sdk_flow"
flow_name = "test_from_local"
flow_type = "standard"
flow_description = "Flow created from local"
flow_tags = ["local", "test"]
pf.flows.create_or_update(flow=flow, display_name=flow_name, type=flow_type, description=flow_description, tags=flow_tags)

UserErrorException: Flow source 'C:/.../copilot_sdk_flow'. is flex flow. Creating it to cloud is not supported.

@hayescode If you created a flow in VS Code and want to upload it to AI Studio, you must select "Prompt flow" from left side menu and click on the blue "+ Create" button. Then select "Upload from local" option.

@dpolac This is from Azure AI Studio UI, right? Is there no way to deploy from VS Code? It looks like 'Upload from local' requires flow.dag.yaml so this doesn't work with flex flows ( flow.flex.yaml ) yet?

pf.create_or_update_flow() works. The documentation has an issue with the credential code it's supposed to be credential.token not just credential.