Create a command bar component

┆Issue is synchronized with this Asana task

Do you agree to solve these stuff later in dedicated tasks @einari ?

Sure thing. Probably good idea to register an issue for the composition part - so we don't forget :)


⚠ ClamAV has degraded performance

In fb5ffdd, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 198 ms

Resolved: ClamAV performance has improved in e5d8f62.


Device view is empty in 2.3.6

Issue type
[ ] Feature request
[X] Bug report
[ ] Documentation
[ ] Housekeeping

Environment

Python version:  3.5.2
NetBox version:  2.3.6

Description
I just upgraded to version 2.3.6 from version 2.3.5. I executed the upgrade.sh script and the db migration before launching the new version. The Device view is empty as shown in the image below. I have 239 devices.

When a filter is active the device view is populated.

Please post your installed Python packages (pip freeze or pip3 freeze).

I'm not able to replicate this issue with the specified environment. Do you have any unusually named devices? Does this happen with any other object lists?

I'm sorry, it's my bad. I had bad value in one of my devices in one site. It caused a server side error. The whole device list could not be created because of it.


Pending contexts are output repeatedly before each assertion.

For example:
context["incomplete context"] = null;
it["does something"] = () => { };
it["does something else"] = () => { };

will output
incomplete context [PENDING]
does something
incomplete context [PENDING]
does something else

Fixed by 905b89e


update action to use 1.17 of likec4

Hi any chance of merging this so we can use the latest features in a GH build? @davydkov   - thanks!

Hey @simonwfarrow
New release published to marketplace


glfwInit() fails on Ubuntu 14.04 on EC2 server

glfwInit() fails on a Ubuntu 14.04 on EC2 server, where the same code runs fine on a local computer, I am guessing this might be related to #482 because the only difference between the EC2 server and the local computer is there are no monitors on the EC2 server. Please advice.
EDIT: I am on the latest glfw trunk

What does "fails" mean exactly? Do you have glfw 3.1.2 which has the fix for #482 in it?

Fails means GL_FALSE is returned by glfwInit(), and I am on the latest trunk

Any messages sent to the error callback?

The error message is X11: The DISPLAY environment variable is missing
But I am not running X11. I use ssh to connect to the server.

If you want the program to use the display server on the client machine (the one you're connecting from), use ssh -X to connect with. How could GLFW create windows (or really do anything) if it can't access an X11 server?

I am creating an invisible window in order to create context for offscreen rendering unit tests. Is there a way to not create a window but just create a context? Here is my code
  if (!glfwInit()) exit(EXIT_FAILURE);

  glfwWindowHint(GLFW_VISIBLE, GL_FALSE);

  glfw_window_ = glfwCreateWindow(10, 10, "", NULL, NULL);

  if (!glfw_window_) glfwTerminate();

  glfwMakeContextCurrent(glfw_window_);

  glewExperimental = GL_TRUE;
  if (glewInit() != GLEW_OK)
  {
    std::cout << "glewInit() error" << std::endl;
    exit(EXIT_FAILURE);
  }

  uint32_t id;
  glGenTextures(1, &id);

  // and so on

I'm not sure if it is possible - I think you at least need an X11 server connection. But if all you want this for is for testing, you could use something like Xvfb to setup a "fake" X11 server before running your tests.

Thanks for all the help. xvfb is showing Xlib:  extension "GLX" missing on display ":99", and I have no idea how to debug it. I will just take a step back and figure out how to use glx/wgl to create a context without a window.

Woops I forgot Xvfb doesn't implement GLX. You could try Xdummy, which is newer and a bit more complicated - I've never tried it before though.

GLX is an extension of X11. It cannot be used without a running server.


[Misc]: huggingface_hub.errors.HFValidationError using LLama3.1-405b

Anything you want to discuss about vllm.
Using vllm with LLama3.1-405b, I get the following error:
huggingface_hub.errors.HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': '****/models/Llama-3.1_405B-Instruct'. Use repo_typeargument if needed.
The dataset is downloaded from official repo:
https://huggingface.co/meta-llama/Llama-3.1-405B-Instruct
Could you help me to define the problem? Thanks.
Before submitting a new issue...

[X] Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

Hi, I'm having the same issue. How did you solve this?

I didn't, just moved the discussion here: https://github.com/vllm-project/vllm/discussions/9657
with no response yet.


Dotnet core Support

Is there a plan to support .net core?

Close this because I just know this library is base on user32.dll and kernel32.dll


Check for a license in GitHub

Assuming it is not too hard, the script could also check for the presence of a license file in a GitHub repo when importing mods from it.
The contents don't matter, just that there should be a license.md, LICENSE.txt or any other format GitHub recognizes.
Then that could be written as a warning next to the row in linked_mods.md, or possibly as a separate category altogether ("GitHub mods without license"?).

What's the point?

The point is to not accidentally include mods that are not FOSS, but instead source-available ARR.

I can get info about license shown in right corner of the page, but not more than that. And it will cost another API call, so will decrease amount of mods that can be searched on GitHub with unauthorized access from 60 to 30, and it's near unusable

Is it really worth it?

30 requests is kinda useless, so if I willing to implement this, I'll probably remove unauthorized version.
Which is not good idea, because not everyone have GitHub account nor want to authorize with it in some random CLI app.


📦feat(VirtualBlox): use UTF8 fork of Adafruit_GFX lib

Problem
Cannot build VirtualBlox for #16  blockware/matrix demo
Solution

It mostly works, I think some characters are blanks but it's good enough? 😂

Basically I just copied wholesale the UTF8 fork of the Adafruit_GFX lib. There are just two commits in the fork

customizing the font to include just two blocks (30 and FF) from the unifont to support full width hiragana and half width katakana,

https://github.com/magus/Adafruit-GFX-Library-UTF8/commit/a70cb9d968c2a6ceb1fc244cb54ceb0e5ff47126

the faster writePixels from @johnboiles  fork

https://github.com/magus/Adafruit-GFX-Library-UTF8/commit/d8baded6cbe76bc39ebc48eeef2edab97e0d07aa

There were other changes I made in the blockware/matrix PR to fix some other compilation issues such as defining PROGMEM and including <memory> because I use memcpy and that seems to be globally available in block land and works fine on the block but needs to be explicitly defined in VirtualBlox

https://github.com/bountylabs/blocks-with-screens/pull/16/commits/e46f8389e302921d011e491f47b8a6cde5b963b1

Tests
Ran make test from the PlatformIO CLI and it completed with a 0 exit code, so I figure this will pass CI here too
Also ran the fireworks demo to ensure I didn't regress anything and it seems okay?

LGTM!


fixed issue #989

@marcj , travis-ci failed because composer fails to download.
[Composer\Downloader\TransportException]
Could not authenticate against github.com

Thanks :)

@marcj Article about github api limit http://blog.wyrihaximus.net/2015/09/github-auth-token-on-travis/


loss_wt_grad

At line 133 of main.py, the variable 'loss_wt_grad' is not define.I can't find a definition about this variable.
total_seg_cons_loss_2 = (wt_ramp * loss_wt_grad) + ((1 - wt_ramp) * loss_wt_simple_l2)

I have updated the code. Thanks for pointing it out.


primary not the same color as the seed when using Material 3

I was playing around with the new Material3 colors and the theme data, and I noticed primary in the ColorScheme is not the same color as the one I provided as colorSchemeSeed. It is significantly darker.
It looks ok for the theme when using Brightness.dark, but it differs slightly too.
How do I get them to be the same? Or is this by design?

seed: Color(0xff93c741)
(Brightness.light) primary: Color(0xff436900)
(Brightness.dark) primary: Color(0xffa2d74f)

my code:
  @override
  Widget build(BuildContext context) {
    var color = const Color(0xFF93C741);
    return Scaffold(
      body: ListView.builder(
        itemCount: 1,
        itemBuilder: (_, __) {
          return Theme(
            data: ThemeData(
              colorSchemeSeed: color,
              brightness: context.theme.brightness,
              useMaterial3: true,
            ),
            child: Builder(
              builder: (context) {
                print(color.toString());
                print(context.theme.colorScheme.primary.toString());
                return Column(
                  children: [
                    Text(
                      color.toString(),
                      style: context.bodyText1!.copyWith(
                        fontSize: 18,
                        backgroundColor: color,
                      ),
                    ),
                    Text(
                      'Theme',
                      style: context.bodyText1!.copyWith(fontSize: 18),
                    ),
                    Column(
                      children: List.generate(
                        context.theme.allColors.length,
                        (index) {
                          final MapEntry<String, Color> colorEntry =
                              context.theme.allColors.entries.elementAt(index);
                          return Container(
                            color: colorEntry.value,
                            width: double.infinity,
                            child: Text(
                              colorEntry.key,
                              style: TextStyle(backgroundColor: context.theme.canvasColor),
                            ),
                          );
                        },
                      ),
                    ),
                    Text(
                      'ColorScheme',
                      style: context.bodyText1!.copyWith(fontSize: 18),
                    ),
                    Column(
                      children: List.generate(
                        context.theme.allColors.length,
                        (index) {
                          final MapEntry<String, Color> colorEntry = context
                              .theme.colorScheme.allColors.entries
                              .elementAt(index);
                          return Container(
                            color: colorEntry.value,
                            width: double.infinity,
                            child: Text(
                              colorEntry.key,
                              style: TextStyle(backgroundColor: context.theme.canvasColor),
                            ),
                          );
                        },
                      ),
                    ),
                  ],
                );
              },
            ),
          );
        },
      ),
    );
  }

extension ThemeDataExtension on ThemeData {
  Map<String, Color> get allColors => {
        'primaryColor': primaryColor,
        'primaryColorLight': primaryColorLight,
        'primaryColorDark': primaryColorDark,
        'focusColor': focusColor,
        'hoverColor': hoverColor,
        'shadowColor': shadowColor,
        'canvasColor': canvasColor,
        'scaffoldBackgroundColor': scaffoldBackgroundColor,
        'bottomAppBarColor': bottomAppBarColor,
        'cardColor': cardColor,
        'dividerColor': dividerColor,
        'highlightColor': highlightColor,
        'splashColor': splashColor,
        'selectedRowColor': selectedRowColor,
        'unselectedWidgetColor': unselectedWidgetColor,
        'disabledColor': disabledColor,
        'secondaryHeaderColor': secondaryHeaderColor,
        'backgroundColor': backgroundColor,
        'dialogBackgroundColor': dialogBackgroundColor,
        'indicatorColor': indicatorColor,
        'hintColor': hintColor,
        'errorColor': errorColor,
        'toggleableActiveColor': toggleableActiveColor,
      };
}

extension ColorSchemeExtension on ColorScheme {
  Map<String, Color> get allColors => {
        'surface': surface,
        'onSurface': onSurface,
        'surfaceVariant': surfaceVariant,
        'onSurfaceVariant': onSurfaceVariant,
        'inverseSurface': inverseSurface,
        'onInverseSurface': onInverseSurface,
        'background': background,
        'onBackground': onBackground,
        'primary': primary,
        'onPrimary': onPrimary,
        'inversePrimary': inversePrimary,
        'secondary': secondary,
        'onSecondary': onSecondary,
        'tertiary': tertiary,
        'onTertiary': onTertiary,
        'primaryContainer': primaryContainer,
        'onPrimaryContainer': onPrimaryContainer,
        'secondaryContainer': secondaryContainer,
        'onSecondaryContainer': onSecondaryContainer,
        'tertiaryContainer': tertiaryContainer,
        'onTertiaryContainer': onTertiaryContainer,
        'error': error,
        'onError': onError,
        'errorContainer': errorContainer,
        'onErrorContainer': onErrorContainer,
      };
}

@cirediew This is expected behavior when using a primary color as seed color. What happens is that the provided color, functions as a single key color to generate 3 different tonal palettes with 13 different tones each.
Primary Tonal Palette
The seed color is used directly to create the tonal palette for primary tones. The ColorScheme.primary is then assigned tone 40 for light mode and tone 80 for dark mode, from the same tonal palette. Neither of these colors will be an exact match for the "primary" seed color you used, it will be a color from a tonal palette that matches the seed color, since it is the primary one.
Branding challange
If you for branding purposes require it to exactly match the provided seed color, you can always override ColorScheme.primary you got with copyWith using the original seed color. And then use that ColorScheme as input to your apps ThemeData. A bit of an extra step, but it will work and look OK too, because for primaries the other colors will still match and be in sync with this color.
Secondary and Tertiary Tonal Palette
When using the ColorScheme.fromSeed, it also uses color math to from the seed color, generate key colors that are used to generate the two tonal palettes for secondary, tertiary and their related colors. that it in similar fashion uses given tones from those palettes to assign appropriate tone color values from for light and dark brightness to the produced ColorScheme.
Using ColorScheme.fromSeed does however not provide any properties that you could use to optionally pass in key colors to use as specific seed colors for the accent and tertiary tonal palettes. This is doable, but you then have to look into how ColorScheme.fromSeed is working and make custom version of it and he CorePalette it uses. (Or you can extend the CorePalette but only via its cumbersome fromList constructor, it is not very extension friendly).
More info
More info about principles of M3 tonal palettes can be found here: https://m3.material.io/styles/color/the-color-system/key-colors-tones
The algorithms that ColorScheme.from uses can be found in this package: https://pub.dev/packages/material_color_utilities
When you dig (click into) into what ColorScheme.fromSeedactually does, it is using that package. The Flutter SDK actually currently depends on this package in its pubspec yaml and ColorScheme class uses it.
A bit off topic
I'm working on some updates to may FlexColorScheme package to provide built in support for tonal palettes, while also providing key colors for primary and optional ones for secondary and tertiary, plus optionally keeping  select color values at given input values, for branding purposes obviously. While still getting the benefits of auto seeded colors and shade for all things that that should just be in general tone of the "brand" color. That is why I kind of had to dig a bit deeper into this to understand how it works.

/cc @darrenaustin

@rydmike Thank you so much for your answer and extended explanation. I figured I could use copyWith to get my desired results. It just didn't work as I thought it would and that made me curious. Your answer will definitely help others with the same question.
Maybe the docs could do with a little more clarification to void confusion on the working of it.

As @rydmike already pointed out in detail above (thx Mike!), this is a possibility of given the algorithm used to generate the the color scheme. This is working as intended.

Maybe the docs could do with a little more clarification to void confusion on the working of it.

It is part of the documentation for ColorScheme.fromSeed:
  /// Given the nature of the algorithm, the seedColor may not wind up as
  /// one of the ColorScheme colors.

A little terse perhaps, but I am not sure what more we should add here to make it clearer.
I'm going to close this as working as intended. If you have suggestions for doc enhancements for this, please open a separate issue with the suggestions. Thx.


update pipeline e2e tests and enable docker tests in github actions

Reorganize pipeline e2e tests and enable docker tests in CI.
Add diff of actual diff and expected diff to output when test fails.
close #1555

looks good to me, I'll let others approve.

The code LGTM.
@Shell32-Natsu Can you please paste a example output when it dismatches? Trying to see the UX.

            Actual
            ===
            diff --git a/resources.yaml b/resources.yaml
            index 10cd18b..254b9cd 100644
            --- a/resources.yaml
            +++ b/resources.yaml
            @@ -11,11 +11,11 @@
             # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
             # See the License for the specific language governing permissions and
             # limitations under the License.
            -
             apiVersion: apps/v1
             kind: Deployment
             metadata:
               name: nginx-deployment
            +  namespace: staging
             spec:
               replicas: 3
             ---
            @@ -23,5 +23,6 @@ apiVersion: custom.io/v1
             kind: Custom
             metadata:
               name: custom
            +  namespace: staging
             spec:
               image: nginx:1.2.3
            Diff of Diff
            ===
            --- /tmp/kpt-e2e-diff-665531941/expected    2021-03-30 16:10:43.224505161 -0700
            +++ /tmp/kpt-e2e-diff-665531941/actual      2021-03-30 16:10:43.224505161 -0700
            @@ -1,8 +1,8 @@
             diff --git a/resources.yaml b/resources.yaml
            -index 10cd18b..c77c357 100644
            +index 10cd18b..254b9cd 100644
             --- a/resources.yaml
             +++ b/resources.yaml
            -@@ -11,17 +11,29 @@
            +@@ -11,11 +11,11 @@
              # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
              # See the License for the specific language governing permissions and
              # limitations under the License.
            @@ -10,25 +10,14 @@
              apiVersion: apps/v1
              kind: Deployment
              metadata:
            -+  labels:
            -+    tier: backend
                name: nginx-deployment
             +  namespace: staging
              spec:
                replicas: 3
            -+  selector:
            -+    matchLabels:
            -+      tier: backend
            -+  template:
            -+    metadata:
            -+      labels:
            -+        tier: backend
              ---
            - apiVersion: custom.io/v1
            +@@ -23,5 +23,6 @@ apiVersion: custom.io/v1
              kind: Custom
              metadata:
            -+  labels:
            -+    tier: backend
                name: custom
             +  namespace: staging
              spec:

It's not very easy to read since it's a diff of diff, but it makes difference easier to find.


Hasura configurations continuously deployed

Describe the feature you'd like to request
Right now, anytime the schema changes, we need to manually configure Hasura to resync the schema, and setup access control.
Describe the solution you'd like
It'd be nice if this was continuously deployed anytime we make changes.
I think there is a Hasura terraform provider, but not sure if that suits this purpose
Describe alternatives you've considered
Keep manually configuring

@ravenac95
Notes from today. We should try to use the Hasura CLI metadata migrations
https://hasura.io/docs/latest/migrations-metadata-seeds/manage-metadata/

From @ravenac95
find dbt/models/marts/ -name "*.sql" -type f -exec sh -c 'basename $0 .sql' {} \; | xargs -n1 xargs -0 printf "bq_%s\n"

https://hasura.io/docs/latest/migrations-metadata-seeds/migrations-metadata-setup/
https://hasura.io/docs/latest/cloud-ci-cd/github-integration/#initial-setup
https://hasura.io/docs/latest/migrations-metadata-seeds/metadata-format/#tablesyaml

Here's a start to the metadata config
https://github.com/opensource-observer/oso/pull/851
Remaining things:

Auto-generated tables based on the dbt models
GitHub action to deploy on merge to main
Auth hooks for checking API keys
API rate limits based on your role

Auto-generated tables here via a script
https://github.com/opensource-observer/oso/pull/861

GitHub workflow here
https://github.com/opensource-observer/oso/pull/869


Fix incorrect typehint for Text class's color property

Overview: What does this pull request change?

The type should be str instead of color. If we check line 475 how it is used:
color = Color(color) if color else VMobject().color

The color class is created there.

Motivation and Explanation: Why and how do your changes improve the library?

Links to added or changed documentation pages

Further Information and Comments

Reviewer Checklist

[x] The PR title is descriptive enough for the changelog, and the PR is labeled correctly
[ ] If applicable: newly added non-private functions and classes have a docstring including a short summary and a PARAMETERS section
[ ] If applicable: newly added functions and classes are tested

Not sure if I agree with that @Darylgolden. Color is being used as string everywhere I can see:
https://docs.manim.community/en/stable/examples.html
Same as here, it is just an error in the type hint. The implementation below is also expecting color to be a string.
If we do want to add support for a strong Color type in the public facing APIs, it should probably be a wider effort to change them all (as well as the documentation) instead of just this Text class here?

That's true, such efforts have already started as seen here. Most of the time, these incorrect typehints are overlooked by reviewers reviewing the PRs introducing them, which explains the inconsistencies.

That sounds great! Can we merge this? I ran into issue using color for Text here and I just don't want others to run into the same bug. I am happy to close this for now too to avoid conflicts with the broader effort.

To elaborate, something like Color(Color(RED))  works perfectly fine.

To elaborate, something like Color(Color(RED)) works perfectly fine.

Thanks for clarifying. Didn't know it works this way!


Theme Tweaks

It would be cool if:

[ ] Address dark theme conformity for Natsuki's theme

[ ] Address dark theme conformity for Monika's theme

 Theme Tweaks #125


Java binding issue with MinGW GCC on Windows

Environment: Windows, MinGW-64 GCC compiler, cygwin or msys2 shell.
When compiling blst_wrap.cpp via bindings/java/run.me the following error appears:
blst_wrap.cpp:194:21: error: 'long long long' is too long for GCC
  194 |   typedef long long __int64;

Just commenting that line in generated blst_wrap.cpp does the trick - everything builds fine
Here is what found out:
MinGW GCC has the header _mingw.h which does #define __int64 long long
The above breaks that some very old SWIG tweak (it was added more than 16 years ago):
/* Fix for jlong on some versions of gcc on Windows */
#if defined(__GNUC__) && !defined(__INTEL_COMPILER)
  typedef long long __int64;
#endif

The above code comes from the SWIG javahead.swg include
FYI: the _mingw.h is included via the following dependencies:
. ../blst.hpp
.. E:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/9.2.0/include/c++/string
... E:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/9.2.0/include/c++/bits/char_traits.h
.... E:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/9.2.0/include/c++/bits/postypes.h
..... E:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/9.2.0/include/c++/cwchar
...... E:/TDM-GCC-64/x86_64-w64-mingw32/include/wchar.h
....... E:/TDM-GCC-64/x86_64-w64-mingw32/include/corecrt.h
........ E:/TDM-GCC-64/x86_64-w64-mingw32/include/_mingw.h

It actually looks more like a SWIG issue. They should probably add something like && !defined(__int64) to their macro condition.
Though I'd like to ask you guys first as C/C++ gurus if we can fix/workaround this on Blst or our Teku side?

See if following helps
--- a/bindings/blst.swg
+++ b/bindings/blst.swg
@@ -478,6 +478,9 @@ extern const blst::P2_Affine BLS12_381_NEG_G2;
 %begin %{
 #ifdef __cplusplus
 # include "blst.hpp"
+# ifdef __MINGW32__
+#  undef __int64
+# endif
 using namespace blst;
 #else
 # include "blst.h"

See if following helps
--- a/bindings/blst.swg
+++ b/bindings/blst.swg
@@ -478,6 +478,9 @@ extern const blst::P2_Affine BLS12_381_NEG_G2;
 %begin %{
 #ifdef __cplusplus
 # include "blst.hpp"
+# ifdef __MINGW32__
+#  undef __int64
+# endif
 using namespace blst;
 #else
 # include "blst.h"

On related note, I'd argue that MinGW might be suboptimal choice in the context. Because MinGW C++[!] leaves references to mingw-specific .dlls. So that if you move .dll to another system, you'd have to drag along those extra .dlls. Again, this is C++-specific problem, in sense that C is OK. It might be possible to resolve C++ by using more -static-this-or-that options... Could you see if you can come up with something? Otherwise Visual C would be more suitable...

On related note, I'd argue that MinGW might be suboptimal choice in the context. Because MinGW C++[!] leaves references to mingw-specific .dlls. So that if you move .dll to another system, you'd have to drag along those extra .dlls. Again, this is C++-specific problem, in sense that C is OK. It might be possible to resolve C++ by using more -static-this-or-that options... Could you see if you can come up with something? Otherwise Visual C would be more suitable...

See if following helps

Just in case, "helps" means that the JNI module works with your application. I mean I can confirm that I can compile blst_wrap.c with x86_64-w64-mingw32-gcc on Linux, but question is if the whole thing works.

See if following helps

Just in case, "helps" means that the JNI module works with your application. I mean I can confirm that I can compile blst_wrap.c with x86_64-w64-mingw32-gcc on Linux, but question is if the whole thing works.

See if following helps

Yeah, thanks 👍 That helped on Win as well. Java printed "OK"
Will check on a clean Windows a bit later, however I've checked with depends.exe and the resulting DLL depends only on

kernel32.dll
msvcrt.dll

The latter should be a part of OS starting from win 10. Earlier Wins would need to additionally install MSVC redistributables (if I'm not missing anything)

See if following helps

Yeah, thanks 👍 That helped on Win as well. Java printed "OK"
Will check on a clean Windows a bit later, however I've checked with depends.exe and the resulting DLL depends only on

kernel32.dll
msvcrt.dll

The latter should be a part of OS starting from win 10. Earlier Wins would need to additionally install MSVC redistributables (if I'm not missing anything)

Are you OK with integrating this patch on your side?

Are you OK with integrating this patch on your side?

kernel32.dll and msvcrt.dll are 100% "green."  What are your versions? I mean compilers...
As for integrating, yes, but I'll think about it a bit longer. I mean it will be integrated in some form, not necessarily in exactly suggested one...

kernel32.dll and msvcrt.dll are 100% "green."  What are your versions? I mean compilers...
As for integrating, yes, but I'll think about it a bit longer. I mean it will be integrated in some form, not necessarily in exactly suggested one...

I've double-checked on my virtual machine and I do get additional dependencies on  libgcc_s_seh-1.dll and libwinpthread-1.dll. This is gcc-10.2.0 msys2 package, installed with pacman -S mingw-w64-x86_64-gcc. Your TDM thing is clearly different. It ought to boil down to how exception support is implemented. There are different options, but I don't see any specifics chosen in "configured with" lines. It might happen that some default has changed between 9 and 10. Either way, if compiler is configured in a way that resulting .dll refers only to kernel32.dll and msvcrt.dll, then there is no reason to not use it:-) Go TDM!

I've double-checked on my virtual machine and I do get additional dependencies on  libgcc_s_seh-1.dll and libwinpthread-1.dll. This is gcc-10.2.0 msys2 package, installed with pacman -S mingw-w64-x86_64-gcc. Your TDM thing is clearly different. It ought to boil down to how exception support is implemented. There are different options, but I don't see any specifics chosen in "configured with" lines. It might happen that some default has changed between 9 and 10. Either way, if compiler is configured in a way that resulting .dll refers only to kernel32.dll and msvcrt.dll, then there is no reason to not use it:-) Go TDM!

It might happen that some default has changed between 9 and 10.

Oh! Whole idea behind TDM is to not have migw-specific .dlls. It's not about defaults, but about alternative goal. Cool!

It might happen that some default has changed between 9 and 10.

Oh! Whole idea behind TDM is to not have migw-specific .dlls. It's not about defaults, but about alternative goal. Cool!

Whole idea behind TDM is to not have migw-specific .dlls.

Oh nice, so it turns out that TDM-GCC is a separate compiler build atop of MinGW-GCC. Good to know :) Thanks for that info 👍

Whole idea behind TDM is to not have migw-specific .dlls.

Oh nice, so it turns out that TDM-GCC is a separate compiler build atop of MinGW-GCC. Good to know :) Thanks for that info 👍

🚀 Thanks for the prompt fix!

🚀 Thanks for the prompt fix!


Index all files in open folders for intellisense

Perhaps there's already a way to force, this but none that I've found.  I'd really like to get intellisense code-completion, and since I'm opening the folders which contain all the relevant code I'd like to be able to use those files for this feature.
Alternatively, I'd like to be able to reference local modules (in the case of node.js) by relative or absolute path, as opposed to having just a few presets that I can choose from in the jsconfig.json file.
If there's a better way to get code-completion for javascript code in VSC then please let me know :)

Also hope this feature being added, refer to below screen capture of Atom after adding a new directory into it.

Without indexing, the ctrl + p will be really slow for large projects.

Any news about this feature? Thanks!

I'm in for this feature. This is the feature that keep me from switching to VScode from Sublime 3. I want to have a quick way to jump to all function definitions across all source files in my javascript project folder.

Like @hungkhuu said... I want to drop Sublime for good and go VSCode all the way! This is the only feature stopping me

Try creating a jsconfig.json file at the root of your project with the contents:
{
    "compilerOptions": {
        "target": "ES6"
    },
    "exclude": [
        "node_modules",
        "**/node_modules/*"
    ]
}

This tells VS Code to treat all js files in the workspace as part of the same project. This will ensure that workspace symbol search returns results from these as well
Closing this issue as file indexing itself is an implementation detail. Creating a jsconfig is the recommended way to achieve what file indexing does in other editors


Bad error message when ModuleResolver::resolve returns Err

From what I can tell, no matter what EvalAltResult is returned from resolve, the error returned from .consume is always "Module not found", even when the underlying error is actually a syntax error in the imported module - not that it wasn't found.

Yes, I have enhanced FileModuleResolver to return a new ErrorInModule.


Bug fixed with n_ctx=0

If the n_ctx parameter is set to 0 the function should use the maximum context length of the selected model, but it didn't work. There was a problem with the initialization of this parameter and a related problem with n_batch.
I know that the code is not the best one, but in order to get the model information about the context I needed to add it after the creation of the model instance at line 923 of the file  llama.py.
self._model = _LlamaModel(
    path_model=self.model_path, params=self.model_params, verbose=self.verbose
)

Unfortunately, different objects were already initialized, therefore in the fix I had to change the n_ctx, self.n_batch, self.context_params.n_ctx and self.context_params.n_batch variables even if they already had a value.
Tell me if you find a smarter or more elegant solution to change the code and i will implement it.
This change should also fix #988.
Thank you

Another approach can be to use the code in the llama.cpp repo to read the metadata from the gguf file before loading the model. In the json format the context length is related to the key llama.context_length.

@DanieleMorotti does the metadata value differ from n_ctx_train? I think this approach is good though, maybe worth changing to the default in a future major release.

I think n_ctx_train is the same value that we can read from the metadata. Tell me if I should try to implement the other approach, we would need to add gguf-py directory of llama.cpp in this repo and call the function that returns the json with the information.
Thanks


Other website text changes

Can we add the GEM logo to the bottom of the main pages? Let me know who can tackle this and I will send them the high resolution logo.
Can we remove 'daytime' from all the injuries parameters listed in the scenario section?

Can we change 'financial loss to assets' to 'economic loss to building contents' in the scenarios section? and
'Financial loss to buildings' to 'Economic loss to buildings', also in the scenarios section?

2nd and 3rd requests are done:

if you could post the GEM logo here @jvandevalk then i'll add it

Fantastic! The logo is below:

Hello, another request - can you help me with the formatting of the 'table' in the glossary page? I've put a table into the text content and the formatting appears to be working, but I can't make the table boundaries show up so it looks fairly jumbled. I've managed to add a border around the whole table, but not internal borders yet.

Two landing page changes I wasn't able to make:

add 'Tools to help Canadians build resiliency to seismic risk through planning and emergency management.' as a byline somewhere near the 'Earthquake risk information for disaster risk reduction in Canada' if possible.
For the 'Learn More' carousel on the bottom of the main page, the boxes should say and direct to the following:
Understand the project - Read about this project and appropriate use of RiskProfiler information. (http://riskprofiler.habitatseven.work/learn-more/)
Explore training materials - Use resources designed to help you understand and navigate RiskProfiler. (http://riskprofiler.habitatseven.work/learn-more/training-materials/)
Read Frequently Asked Questions - Understand the data through ‘FAQs’ (http://riskprofiler.habitatseven.work/learn-more/frequently-asked-questions/)
See glossary - find clarification on all acronyms and terms used throughout RiskProfiler (http://riskprofiler.habitatseven.work/learn-more/glossary/)
Additional documentation - Looking for technical documentation of the data and modelling? Download all published documents here. (http://riskprofiler.habitatseven.work/learn-more/additional-documentation/)
Take action - Explore these resources to learn about how to to take risk reduction action in your community (http://riskprofiler.habitatseven.work/learn-more/taking-action/)
Contact Us - Get connected to additional resources and ask questions to the team.   (http://riskprofiler.habitatseven.work/contact/)

Can the order of the 'Learn More' and 'Download Data' buttons be reversed?

i believe this one's ready to close


Lock in DistributedMemoryRunner

Pull Request Description
What issue does this change request address?
Closes #1881
What are the significant changes in functionality due to this change request?
Adds a lock in DistributedMemoryRunner to prevent two threads stepping on each other.

For Change Control Board: Change Request Review
The following review must be completed by an authorized member of the Change Control Board.

[x] 1. Review all computer code.
[x] 2. If any changes occur to the input syntax, there must be an accompanying change to the user manual and xsd schema. If the input syntax change deprecates existing input files, a conversion script needs to be added (see Conversion Scripts).
[x] 3. Make sure the Python code and commenting standards are respected (camelBack, etc.) - See on the wiki for details.
[x] 4. Automated Tests should pass, including run_tests, pylint, manual building and xsd tests. If there are changes to Simulation.py or JobHandler.py the qsub tests must pass.
[ ] 5. If significant functionality is added, there must  be tests added to check this. Tests should cover all possible options.  Multiple short tests are preferred over one large test. If new development on the internal JobHandler parallel system is performed, a cluster test must be added setting, in  XML block, the node <internalParallel> to True.
[x] 6. If the change modifies or adds a requirement or a requirement based test case, the Change Control Board's Chair or designee also needs to approve the change.  The requirements and the requirements test shall be in sync.
[x] 7. The merge request must reference an issue.  If the issue is closed, the issue close checklist shall be done.
[x] 8. If an analytic test is changed/added is the the analytic documentation updated/added?
[x] 9. If any test used as a basis for documentation examples (currently found in raven/tests/framework/user_guide and raven/docs/workshop) have been changed, the associated documentation must be reviewed and assured the text matches the example.

Possible test (currently running on regression machines) https://github.com/idaholab/raven/pull/1898/commits/9c159b8f55406e7344ba213e3b50a6c1d5b76cc9
@PaulTalbot-INL Does this look reasonable to test this? (I checked via throwing an exception in terminateJobs that it is called)

Possible test (currently running on regression machines) 9c159b8

That looks good to me! Note the <TestInfo> of the new outer optimization file probably needs updating.

Possible test (currently running on regression machines) 9c159b8

That looks good to me! Note the <TestInfo> of the new outer optimization file probably needs updating.

Thanks, I will update TestInfo in #1899


Issue legal information for distribution missing

This PR serves to help keep our project aligned with the TRGs and other open-source policies.
In this case, we have configured the main  pom.xml file for generating the legal information to the .jars.
fix #47

Hi @Bailonis,
this PR also contains stuff, that does not belong to the fix.
The NOTICE.md files have already been added in #53


add x-kubernetes-validations tests template field

Description
Add x-kubernetes-validations tests for not supported template field in function api.
Template support was disabled in:
https://github.com/kyma-project/serverless/pull/481
Related issue(s)
See also #250

/test pre-serverless-operator-build


Couldn't derive type ...

case class Result2(name : String,
                   whatever : String,
                   types : List[String]
                    )

case class GeoCoding2(results : List[Result2], status: String)

object UPickleNewVersionService {
  def getSample() = {
    val g = read[GeoCoding2]("")
    g
  }
}

//mytest case
test("testderiveType") {
   UPickleNewVersionService.getSample()
  }

error :
/UPickleNewVersionService.scala:9: Couldn't derive type (List[Result2], String) [error]     val g = read[GeoCoding2]("")

I am facing the same error in my (closed-source) project with upickle v0.3.0.
However, creating a minimal test-case is a challenge. I tried the above code by @chandu0101 and it didn't fail, in a fresh project.

Odd, this works for me in both 2.10.4 and 2.11.7 in the REPL:
scala> case class Result2(name : String,
     |                    whatever : String,
     |                    types : List[String]
     |                     )
defined class Result2

scala>

scala> case class GeoCoding2(results : List[Result2], status: String)
defined class GeoCoding2

scala>

scala> read[GeoCoding2]("")
<console>:15: error: not found: value read
       read[GeoCoding2]("")
       ^

scala> upickle.default.read[GeoCoding2]("")
upickle.Invalid$Json
  at upickle.json.package$.read(package.scala:11)
  at upickle.Types$class.read(Types.scala:133)
  at upickle.default$.read(Api.scala:25)
  ... 43 elided

Ok, I figured it. If the classes (like GeoCoding and Result) are defined in another file, and UPickleNewVersionService is defined and used in a different file, I get the error.

Here's a further minimalised test:
file1.scala
package test
case class C1(name : String, types : List[String])
case class C2(results : List[C1])

file2.scala
package test

import upickle.default._

object Test {
  object Service {
    def getSample() = {
      read[C2]("")
    }
  }

  //mytest case
  def xyz(x:String) {
    Service.getSample()
  }
}

build.sbt
libraryDependencies += "com.lihaoyi" %% "upickle" % "0.3.0"

scalaVersion := "2.11.7"

Output
[error] test.scala:8: Couldn't derive type (List[test.C1],)
[error]       read[C2]("")

@lihaoyi it works in REPL but fail in the test. Just add the code in https://github.com/lihaoyi/upickle-pprint/blob/master/upickle/shared/src/test/scala/example/ExampleTests.scala and see this:
 uPickle does not know how to read [example.OtherSuffs.GeoCoding2]s; define an implicit Reader[example.OtherSuffs.GeoCoding2] to teach it how
[error]       read[GeoCoding2]("")
[error]                       ^
[error] /Users/binh/codes/scalajs/upickle-pprint/upickle/shared/src/test/scala/example/ExampleTests.scala:84: uPickle does not know how to read [example.OtherSuffs.GeoCoding2]s; define an implicit Reader[example.OtherSuffs.GeoCoding2] to teach it how
[error]       read[GeoCoding2]("")
[error]                       ^

FYI...I hit this too but for a different reason.  I had >21 params on my case class.


Set soft limit for content cache while connecting to server in kopia client options

Change Overview
Currently while connecting to kopia server using client we are setting only hard limits in the connectOptions . But this kopia function which is called while connecting to server has the logic of setting caching as specified here. It checks if the soft limit for contenct cache is set. If it is not set, caching options are not initalized and is returned as empty struct. Hence hard limits for cache can never be set while connecting to server. This makes it compulsory to set soft limit for the content cache while connecting to server
This PR sets soft limit of content cache(It uses same value as hard value)
Pull request type
Please check the type of change your PR introduces:

[ ] :construction: Work in Progress
[ ] :rainbow: Refactoring (no functional changes, no api changes)
[ ] :hamster: Trivial/Minor
[ ] :bug: Bugfix
[ ] :sunflower: Feature
[ ] :world_map: Documentation
[ ] :robot: Test

Issues

fixes #issue-number

Test Plan

[ ] :muscle: Manual
[ ] :zap: Unit test
[ ] :green_heart: E2E

@julio-lopez Could you please take a look at kopia upstream and confirm if it's a bug or intentionally done?


Get source address of the message (TZ-295)

How can I get the address of the client, which sent data to coordinator. I want to get the log like following line.
Is there any method, which gives the source address of the message?
ESP_LOGI(TAG, "Receive temperature Value: %d from source short: 0x%04hx", temperature, XXX);

XXX should given the source address.
In following line you see  my attribute_handler.
static esp_err_t zb_attribute_handler(const esp_zb_zcl_set_attr_value_message_t *message)
{
    esp_err_t ret = ESP_OK;
    uint8_t temperature = 0;
    ESP_RETURN_ON_FALSE(message, ESP_FAIL, TAG, "Empty message");
    ESP_RETURN_ON_FALSE(message->info.status == ESP_ZB_ZCL_STATUS_SUCCESS, ESP_ERR_INVALID_ARG, TAG, "Received message: error status(%d)",
                        message->info.status);
    ESP_LOGI(TAG, "Received message: endpoint(%d), cluster(0x%x), attribute(0x%x), data size(%d)", message->info.dst_endpoint, message->info.cluster,
             message->attribute.id, message->attribute.data.size);
    if (message->info.dst_endpoint == HA_ESP_LIGHT_ENDPOINT) {
        if (message->info.cluster == ESP_ZB_ZCL_CLUSTER_ID_LEVEL_CONTROL) {
        if (message->attribute.id == ESP_ZB_ZCL_ATTR_LEVEL_CONTROL_CURRENT_LEVEL_ID && message->attribute.data.type == ESP_ZB_ZCL_ATTR_TYPE_U8) {
            temperature = message->attribute.data.value ? *(uint8_t *)message->attribute.data.value : temperature;

            light_driver_set_power(1);
            // Blink during get data from client
            ESP_LOGI(TAG, "Receive temperature Value: ", temperature, message->info.dst_endpoint);
            vTaskDelay(20 / portTICK_PERIOD_MS);
            light_driver_set_power(0);
        } else {
            ESP_LOGW(TAG, "Level Control cluster data: attribute(0x%x), type(0x%x)", message->attribute.id, message->attribute.data.type);
        }
        }
    }
    return ret;
}

Hello @vedatbotuk,
I'm afraid that the source address has not been provided for the ESP_ZB_CORE_SET_ATTR_VALUE_CB_ID message. This is because this message only indicates that the stack informs the application layer about which attribute needs to be set in the actual driver, and the application doesn't need to be concerned about where the message originates. In other words, for the ESP_ZB_CORE_SET_ATTR_VALUE_CB_ID message, the application only needs to execute the corresponding operation, as the correctness of the message has already been verified by the stack.

Thanks, I will continue see if I can find another solution.


AIRFLOW-1649 - Adding xcom_push to S3KeySensor wildcard matches.

…essible to future tasks
Dear Airflow maintainers,
Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!
JIRA
My PR addresses the following Airflow JIRA issue.
Description
This PR allows for wildcard matches in S3KeySensor to write the matched files to the xcom of the ti.
Tests
I haven't added a test, as there was no test for the S3KeySensor to extend, and writing from scratch is currently beyond my time commitment.

You are pulling into the wrong branch.  Needs to pull into master.
Also please see the community guidelines for commit messages.
https://github.com/apache/incubator-airflow/blob/master/CONTRIBUTING.md#pull-request-guidelines

also do we want to add a flag to make this optional?  there could be a lot of matches that people may not want to flood into the database via xcom.

Thanks for your advice.  I'll close, add a flag to make this optional, and reopen a new PR into the master branch with a better commit message.

Did you re-open this elsewhere @andylockran? I'd like this functionality :)

Sorry I missed this.
I’be been using it as an airflow plug-in as I was too busy to shepherd it through.
Feel free to do the same and I’ll try and work on getting it into the standard codebase.
Andy
Sent from my iPhone

On 15 Nov 2017, at 17:33, Ash Berlin-Taylor<EMAIL_ADDRESS>wrote:
Did you re-open this elsewhere @andylockran? I'd like this functionality :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@andylockran any chance to revisit this?


New dart2 async timing different on VM and Browser

Using dart 2.0.0-dev.56 on Ubuntu 16.04
The following code:
bool _isDart2AsyncTiming;
Future<bool> isDart2AsyncTiming() async {
  if (_isDart2AsyncTiming == null) {
    // Create an async function
    // in dart1 the first line won't be executed directly
    // in dart2 it should
    method() async {
      if (_isDart2AsyncTiming == null) {
        _isDart2AsyncTiming = true;
      }
    }

    // Calling the async function not waiting for it
    method();
    if (_isDart2AsyncTiming == null) {
      _isDart2AsyncTiming = false;
    }
  }
  return _isDart2AsyncTiming;
}

main() async {
  print('isDart2AsyncTiming ${await isDart2AsyncTiming()}');
}

prints true (correct) when compiled to js and false (incorrect according to new timing specifications) on the dart vm

Actually it now prints true when using --preview-dart-2


Add some basic unit tests and update CI workflow

Hi there! Noticed you guys were using the GitHub action I wrote for running Helm
template unit tests, and decided to come check out your repository. I noticed
the test suite added by @TehreemNisa  in #214 wasn't actually running due to the
filename used, and decided to fix that.
I realize this is a somewhat large first PR, but I figured it was worth adding
some unit tests and refactoring some of the existing templates to improve
readability and maintainability.
The CI workflow was updated to use v2 of my unit test action. This version
points to the now official repository, taken over by the plugin maintainer.
Here is a breakdown of the changes, as a list of commits:

chore: set chart api version to v2
docs: point chart home to correct repo
test: fix deployment test so it's run & passing
ci: update to helm-unittest action v2
test: add unit tests for horizontal autoscaler
refactor(hpa): use deployment.enabled in tpl conditional
refactor(hpa): use autoscaling/v2 when available
refactor(hpa): adjust indentation and whitespace
test: add unit tests for service acc template
refactor(sa): adjust indentation, spacing, lines
test: add unit tests for pvc template
test: add unit tests for pdb template
refactor(pdb): adjust indentation and whitespace

If this pull request is accepted and merged, I'd be happy to implement more unit
tests and improve readability for the chart overall.

@d3adb5 Yikes!  Build has Failed!

I imagine the build failing has something to do with me not having access to repository / organization secrets. As for the unit test job, while it claims to be passing, the logs suggest my changes to the workflow weren't applied for this run, since it still uses v1 of d3adb5/helm-unittest-action, and shows no test suite being executed.

thank you @d3adb5 for such a thorough PR! we are fixing the pipelines runtime and then we would really appreciate more PRs which can improve the readability of the chart and have more unit tests; we are also thinking to add integration tests

thank you @d3adb5 for such a thorough PR! we are fixing the pipelines runtime and then we would really appreciate more PRs which can improve the readability of the chart and have more unit tests; we are also thinking to add integration tests

Sure thing! I'd be happy to do some refactoring and security touch ups soon! Do you guys know what's going on with the CI builds, @rasheedamir? Maybe I could help with that effort.

@d3adb5 the pipelines are fixed now! can you please update this PR or create new one? now we are using self hosted github runners on full blown openshift cluster to ensure stuff works

Seems like plenty changed in the repository. Well, I rebased my changes and hopefully everything's working fine. A careful review would be much appreciated! Thanks, @rasheedamir.

@aslafy-z Conflicts resolved! Turns out #221 did what one of my previous commits was doing. I changed my unit tests and commit messages accordingly.

Is it okay to merge this, @rasheedamir?


UP-4826:  Remove deprecated code that isn't used or can be easily ref…

…actored
https://issues.jasig.org/browse/UP-4826
Checklist

[x] the individual contributor license agreement is signed
[x] commit message follows commit guidelines

Description of change

This is the low-hanging-fruit of deprecated code removal.

Coverage decreased (-0.004%) to 23.183% when pulling 4e9a6214f0ff0b76feca57b9c7d97d54e7a56cdf on drewwills:UP-4826 into a516f66bf19add527163b546cc3ced9e2f842d36 on Jasig:master.

Coverage decreased (-0.0003%) to 23.187% when pulling 232ebc58ba3fcdaa03ce2e3972c9c99347aa2c18 on drewwills:UP-4826 into a516f66bf19add527163b546cc3ced9e2f842d36 on Jasig:master.

Coverage increased (+0.009%) to 23.197% when pulling 232ebc58ba3fcdaa03ce2e3972c9c99347aa2c18 on drewwills:UP-4826 into a516f66bf19add527163b546cc3ced9e2f842d36 on Jasig:master.


changed the links

resolve #10

is it ok?

Why did you closed it? Its looking good but please reopen the PR thus I can merge the changes 🚀

wait I will do it using a new branch


add function setResistorRange to allow different shunt resistors

Hi @wollewald
I made my own sensor board with the INA226 (https://github.com/generationmake/stromsensor6mm). Unfortunately this uses a different shunt resistor and can measure higher current.
So I took your library and added the function setResistorRange to allow different current sense resistor values and current ranges than the predefined. The function calculates the internal variables (calVal, currentDivider_mA, pwrMultiplier_mW) on its own.
I also added an example based on your continuous mode example to show the usage. The example works fine on my hardware and the results are reasonable.
Could you please review my changes and add them to your code? I could also make some changes if necessary.
Thank you
Bernhard

@generationmake: Great thanks - this makes sense. Good contribution. I will have a closer look and try it within the next days.

just take the time you need. I will also do some more tests with different boards in the next days.

@generationmake:  This works absolutely fine - thanks for the great contribution!


How to delete Node?

Nothing works:
a.delete_all
a.delete
a.destroy

NoMethodError: undefined method `delete' for #Node:0xb9db6e38

Also wasn't able to find in documentation

destroy should work.  What sort of node is it?  Is it an ActiveNode model object or a CypherNode object?

ah, sorry destroy works.
I was confused by old docs:
https://github.com/neo4jrb/neo4j/wiki/Neo4j::Rails-Persistence#destroy-and-delete

p1.friends.find(p2).delete  # deletes p2 and the friend relationship

And wasn't able to find in new docs how to delete records.

Sorry about the docs.  I think one of the next things I'd like to do it start moving the docs to readthedocs.org.  There it's clear what version is what.  Also, you can have two levels of navigation.  The GitHub wiki is just a bit more limiting.
We might even remove all of the v2 docs.  @subvertallchris waddaya think (no rush, I know you're on holiday ;)?

I'm down for that. Still not sold on readthedocs.org but I'll follow your lead. ;-)
If nothing else, I think we should remove them from the sidebar or keep them on an old branch of the wiki.


feat(sliceview): Support per-layer blend functions

This commit adds a new blend property to each layer, allowing the user to change the blend function used on a per-layer basis. Currently, only additive blending is supported, but others modes could be added in the trackable_blend file. Note that additive blending is always enabled, whereas the default blend mode is only enabled after the first layer has been added. This mirrors existing behavior.
It might make sense to add none as an option, for layers that have blending totally disabled. It would seem like the default should continue to be gl.blendFunc(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA); for backwards compatibility.

Overall this looks good!  It makes sense to preserve the existing special behavior for the first layer until we figure out something better, but it would be nice to do something different.  Also, for annotations like skeletons and vector graphics it probably makes sense in most cases to always draw them last, since you wouldn't want them covered up by an image.

Should be updated to address your comments.


Boxes with 0 intensity pixels appear in only one channel after stitching

Hi,
I have been used ashlar to stitch my image (https://datacloud.helsinki.fi/index.php/apps/files/?dir=/Ada&fileid=19217901) and I suddenly realized that one of the channels has boxes with 0.000 intensity pixels in various points of the image, following some pattern. This happens just in the last channel of the last cycle, the rest of the channels in this and other cycles look normal.

The tiles do also look normal, you can see a comparison of the area with a tile from a non-affected channel and from the affected one, and these holes in the image are not appreciated.

This is an example on the command I write for the stitching. In this image´s case I did not include the cycle3.

Thanks for giving me access to your images. I examined the output OME-TIFF and I think this some kind of bug in writing the tiled TIFF format, and not a problem with stitching or registration at all. I'm not sure whether the bug is in Ashlar or tifffile, but I will say nobody has ever reported anything like this before. The most recent version of Ashlar uses an updated method for writing OME-TIFF output, and as a consequence also requires a very recent version of tifffile. Could you try again with Ashlar v1.15.3+? If the bug is in either package, hopefully the new versions will have fixed it.

Actually, could you tell me what exact version of tifffile you have installed before updating? Perhaps the problem is reproducible.

Hi! After updating to the last version of ashlar and tifffile the resulting image looks perfectly normal and none of the channels is showing these boxes. Before the update my tifffile version was 2021.11.2, and the ashlar version was 1.13.1.
Thanks for your help!


DropdownMenu leaks memory

Hi,
i create a function which will create the DropdownMenu.
Every time i run this function 2mb of ram will get lost.
if i open a view like in you example close it an reopen it 5-10mb of ram are lost.
hope you understand what i mean.
i think it has something to do with "closures and strong reference cycle",
but i didn´t find the error.
Thanks.

An [unowned self] is required in the init
 self.tableView.selectRowAtIndexPathHandler = { [unowned self] (indexPath: Int) -> () in
            self.didSelectItemAtIndexHandler!(indexPath: indexPath)
            self.layoutSubviews()
        }

@kyro38 i still have the same issue that @Skyb0rg  even with this modification. Any update?
Thanks
Christophe

Created a custom menu on my own, sorry.
Von meinem iPhone gesendet

Am 23.02.2016 um 16:42 schrieb csurbier<EMAIL_ADDRESS>@kyro38 i still have the same issue that @Skyb0rg even with this modification. Any update?
Thanks
Christophe
—
Reply to this email directly or view it on GitHub.

@Skyb0rg don't worry, i think i'm gonna to do the same or try to correct this library

Seems, that #45 fixes this

PR #45 merged. Thanks @andykog for your pull request :)


Draw overlays below NPC's not working properly on Linux

In this image you can see that the rendering of NPC's over tiles doesn't fully seem to work on Linux laptop. (Graphics card: GeForce GTX 1650, Linux distro: Pop!_OS (based on Ubuntu)). I'd be happy to further supply any needed system information if needed.

This only seems to happen when GPU plugin isn't enabled, which sometimes can't be enabled due to a needed GPU drivers update. Updating the GPU drivers and enabling the GPU plugin solved this for me. The bug still occurs when GPU plugin is disabled however.


Update formatAttachments

resolve #57

@Markoudstaal, can you look into this? At least 3 users interested in resolving #57. Thanks in advance


drivers: spi: spi_ll_stm32: manage slave select and long line cleanup

Allow the user to use software slave select instead of the hardware pin, in order to free the related GPIO and avoid unwanted SS triggering on the hardware pin. The default SS is still the hardware pin.

@galak, this one won't pass get shippable pass.
But otherwise is good.

Merging by hand since we don't feel like this will ever complete CI.


Vote command for discordbot.org

https://discordbots.org/api/docs#jslib

API does not include method for users to vote. Instead give users a link and a call to action.


Walletlink + etherjs?

Is there any plans to support etherjs? it's a much faster and lighter library than web3...

First time I’m seeing it .. it’s actually really good although integration.
What did you have mind ?
On Tue, 6 Apr 2021 at 07:34 Fayelure @.***> wrote:

Is there any plans to support etherjs? it's a much faster and lighter
library than web3...
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/walletlink/walletlink/issues/75, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AS3AD2FDF7TGFSJ4QG5OOMDTHKFNNANCNFSM42N6KDTA
.

Same thought.

Does initializing ethers with WalletLinkProvider not work for you?

Does initializing ethers with WalletLinkProvider not work for you?

What do you mean? WalletLinkProvider is not an option as a provider?
However I got it to work using
let walletlink = walletLink.makeWeb3Provider(ETH_JSONRPC_URL, CHAIN_ID)
this.provider = new ethers.providers.Web3Provider(walletlink , 'any')

accounts = await walletlink.request({ method: 'eth_requestAccounts' })

It successfully creates a provider. and I can obtain accounts.
However, that provider is super broken.
For example, If I decide to check the chainId I'm currently connected to :
this.provider = new ethers.providers.Web3Provider(walletlink , 'any')
// (using metamask)
this.provider.network //returns {name: "homestead", chainId: 1, ensAddress: ".....", _defaultProvider: ƒ}
await this.provider.getNetwork() //returns {name: "homestead", chainId: 1, ensAddress: ".....", _defaultProvider: ƒ}

// using wallellink
this.provider.network //returns undefined
await this.provider.getNetwork() // (apparently doesn't exist) => Error: could not detect network (chainId="[object Object]",

ethers also has the app.provider._networkPromise function which I guess is used internally and running that function returns the following (in the console for walletlink):
Promise { <state>: "rejected", <reason>: Error }

<state>: "rejected"
<reason>: Error: could not detect network (chainId="[object Object]", event="invalidNetwork", serverError="Error: invalid BigNumber value (argument=\"value\", value=\"[object Object]\", code=INVALID_ARGUMENT, version=bignumber/5.3.0)", code=NETWORK_ERROR, version=providers/5.3.1

Ok, I think I was at fault here. When doing
this.provider = new ethers.providers.Web3Provider(walletlink , 'any')

walletlink was somehow badly instanciated. It seems to work nicely now

What is this? Daniel Wayne coen

[ETH address]
0x981da518c405f33846018186abfe13491850f482
Daniel wayne coen

What is this? Daniel Wayne coen


Cannot run example/signalr

OS: Ubuntu 20.04
Node: 14.18.1
Logs:
><EMAIL_ADDRESS>prestart /home/vbox/graphql-azure-subscriptions/example/signalr
> npm run build

><EMAIL_ADDRESS>build /home/vbox/graphql-azure-subscriptions/example/signalr
> tsc

src/resolvers.ts:1:31 - error TS2307: Cannot find module '@aaronpowell/graphql-signalr-subscriptions' or its corresponding type declarations.

1 import { SignalRPubSub } from "@aaronpowell/graphql-signalr-subscriptions";
                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Found 1 error.

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR<EMAIL_ADDRESS>build: `tsc`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!  Exit status 2
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>prestart script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/vbox/.npm/_logs/2021-10-19T07_47_31_349Z-debug.log

Did you run npm install and npm run build on the packages/graphql-signalr-subscriptions folder before trying to start the sample?
It's not properly setup as a monorepo (I should get to that) so you need to do a bit of stuff to get is all prepared

Did you run npm install and npm run build on the packages/graphql-signalr-subscriptions folder before trying to start the sample?

No before creating this issue, and I have run install and build just now, it complained with the same error message


Preliminary Scopes Implementation

An initial attempt at implementing scopes to get some ideas and discussions going. I'm wondering if there is a better way to do the instantiation using Needle...

I think we need some additional docs for this change which details about how messages propagate up and down scopes.

What are we doing about scope disposal.  I think it needs to be part of this process.

What are we doing about scope disposal. I think it needs to be part of this process.

That's a good point, there should be a mechanism for disposing of a scope similar to what exists for channels. This also made me realise another point - given that messages on a channel trickle down to the same channel in child scopes, the existing disposal logic should dispose of the same channels in the children.

Some minor suggestions. Where do we stand on destroy or scopes?

Yes sorry I had forgotten about the scope destroying my bad.  What do you think, is this the kind of thing you had in mind or am I misunderstanding?


"Marshalls" singleton has type Reference in @GlobalScope page

Godot version:
v3.2.beta6.official
Issue description:

I tried changing this line, but nothing changed, which is a bit strange.
https://github.com/godotengine/godot/blob/1bafd2d2c8824570310e63686cfad42a879452a6/doc/classes/%40GlobalScope.xml#L48
Perhaps related: #35090

Fair warning for anyone looking into this: this is not a junior job, fixing it requires changes some of the core bindings of the engine and is likely best left to @reduz / @vnen. Feel free to investigate and propose solutions nevertheless though :)


the silides cannot autoplay

I have used the ionic2 slides in my app,but it cannot autoplay,the code is below:

    <ion-slides loop="true" autoplay="true">
      <ion-slide style="background-color: green">

Slide 1

      </ion-slide>
      <ion-slide style="background-color: blue">

Slide 2

      </ion-slide>

      <ion-slide style="background-color: red">

Slide 3

      </ion-slide>
    </ion-slides>

This is resolved by this issue - https://github.com/driftyco/ionic/issues/5189 so it will be in the next release. Attributes are being removed in favor of passing them all through options so you can use any of the swiper options. Thanks for the issue!


Support Arithmetic function ROUND

Motivation

Support Arithmetic function ROUND.

Modifications

Create Jpql model and serializer for ROUND And Create JpqlRound, Expressions, Serializer Test

Commit Convention Rule

Please commit your modification based by conventional commit:

Commit type
Description

feat
New Feature

fix
Fix bug

docs
Documentation only changed

ci
Change CI configuration

refactor
Not a bug fix or add feature, just refactoring code

test
Add Test case or fix wrong test case

style
Only change the code style(ex. white-space, formatting)

chore
It refers to minor tasks such as library version upgrade, typo correction, etc.

If you want to add some more commit type please describe it on the Pull Request

Result

The arithmetic function round is created.

Closes

#594

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

I would modify a bit from what you wrote, just the method names and such. Thanks for the help!

Oh, and I was expecting you to use the example module to test that Double and Int work with JPA locally.


Create integration test suites for devfile support

Currently there's no integration test suites for the devfile support in odo. While this isn't much of an issue right now, when there isn't much in terms of devfile support (at this moment, just creating a deployment), as we add more features and as the devfile-mode becomes more complete, this will become a bigger and bigger issue. Additionally, adding integration tests for devfile support will require more work the longer that we delay it (as more and more functionality needs to be tested).
So, we should create integration test suites for odo's devfile support sooner rather than later.

[ ] Create new test suites under tests/integration for the devfile/experimental features in odo

Need to add some sample devfiles and projects under tests/examples

[ ] Get the integration tests running in Travis

Update the makefile with the new test suites
Update the .travis.yml to run those tests

[ ] Get the integration tests running in OpenShift CI

@kadel What needs to be done for this step? For Travis it's pretty clear, but I'm not sure how/where to tell the OpenShift CI which tests to run.

/area testing
/area devfile

I took a crack at writing integration test suites for devfiles (mostly just odo push and syncing) and hit https://github.com/openshift/odo/issues/2684 as a blocker.

My sync PR does the following:

Adds a —namespace flag to odo push, meaning #2684 is no longer a blocker for integration tests (though we should still fix #2684)
Adds integration tests for devfile push and syncing.

Once my sync PR has been delivered, this issue can be closed out.

/assign

This can be closed out - looks like my PR didn't close it when it was merged


Clipping

Clipping is enabled by setting the clipping property to true on a Node.
Clipping while a node is rotated or scaled currently leads to undesired results. More work with transforms in general is needed before we can improve how it works with clipping.
The clipping example tests various clipping scenarios. A new test example utility component PageContainer along with a special function called paginateTestRows() makes it easy to create multi-row / multi-page test examples which we can use in the future to create regression snapshots.
Upgrade to threadx 0.3.1 to fix issue where text does not work in ThreadX mode.

I'm aware of a misalignment issue between rendered quad bounds and their clip bounds that sometimes appears. I've spent a lot of time on it already and am continuing to look into it. It's a bit of a head scratcher and I think is related to rounding differences between CPU and GPU.

Sounds about right (pretending to understand that comment) - I'm checking out clipping now in Solid


incorrect data

in some cases,  memory values for a node will not include the 'Mi' suffix:
<IP_ADDRESS>   42125m (75%)     148700m (265%)     221838Mi (82%)          416923Mi (154%)
<IP_ADDRESS>   45325m (80%)     121200m (216%)     62346Mi (23%)           180263Mi (66%)
<IP_ADDRESS>   14425m (25%)     37700m (67%)       45346Mi (16%)           100345Mi (37%)
<IP_ADDRESS>   13790m (24%)     45700m (81%)<PHONE_NUMBER>0000m (29%)<PHONE_NUMBER>08000m (78%)
<IP_ADDRESS>   13790m (24%)     39700m (70%)<PHONE_NUMBER>8000m (28%)<PHONE_NUMBER>0000m (67%)
<IP_ADDRESS>   16790m (29%)     42700m (76%)<PHONE_NUMBER>6000m (34%)<PHONE_NUMBER>8000m (72%)
<IP_ADDRESS>   12490m (22%)     39200m (70%)<PHONE_NUMBER>2000m (28%)<PHONE_NUMBER>4000m (68%)

In these cases, the report is wrong. need to change the logic here:
https://github.com/robscott/kube-capacity/blob/master/pkg/capacity/resources.go#L356
for example, use more specific requestString and limitString so the code does not fall on the wrong unit:
Example: add requestStringM() and limitStringM() that only converts Memory units to avoid the problem::
func (tp *tablePrinter) printClusterLine() {
	tp.printLine(&tableLine{
		node:           "*",
		namespace:      "*",
		pod:            "*",
		container:      "*",
		cpuRequests:    tp.cm.cpu.requestString(tp.availableFormat),
		cpuLimits:      tp.cm.cpu.limitString(tp.availableFormat),
		cpuUtil:        tp.cm.cpu.utilString(tp.availableFormat),
		memoryRequests: tp.cm.memory.requestStringM(tp.availableFormat),
		memoryLimits:   tp.cm.memory.limitStringM(tp.availableFormat),
		memoryUtil:     tp.cm.memory.utilString(tp.availableFormat),
		podCount:       tp.cm.podCount.podCountString(),
	})
}

func (tp *tablePrinter) printNodeLine(nodeName string, nm *nodeMetric) {
	tp.printLine(&tableLine{
		node:           nodeName,
		namespace:      "*",
		pod:            "*",
		container:      "*",
		cpuRequests:    nm.cpu.requestString(tp.availableFormat),
		cpuLimits:      nm.cpu.limitString(tp.availableFormat),
		cpuUtil:        nm.cpu.utilString(tp.availableFormat),
		memoryRequests: nm.memory.requestStringM(tp.availableFormat),
		memoryLimits:   nm.memory.limitStringM(tp.availableFormat),
		memoryUtil:     nm.memory.utilString(tp.availableFormat),
		podCount:       nm.podCount.podCountString(),
	})
}

Hey @christiancadieux, thanks for reporting this! I'm not sure how soon I'll be able to fix this, but very open to PRs.

The same. I wil try to fix this

Seems to happen when the deployment requests / limits has been specified using M rather than Mi
eg. we have a deployment where it's been entered as:
        resources:
          requests:
            cpu: 500m
            memory: 500M
          limits:
            cpu: 500m
            memory: 500M

Then kubectl resource-capacity --pods displays that deployment erroneously compared to all the others:
NODE                                NAMESPACE                POD                                                               CPU REQUESTS   CPU LIMITS       MEMORY REQUESTS      MEMORY LIMITS

aks-core-35064155-vmss000000        aqua                     aqua-sec-enforcer-fsdev-aks-foresight-muse2-ds-kkg7r              500m (12%)     500m (12%)<PHONE_NUMBER>00m (3%)<PHONE_NUMBER>00m (3%)
aks-core-35064155-vmss000000        kube-system              azuredefender-collector-ds-n2kwh                                  60m (1%)       210m (5%)        64Mi (0%)            128Mi (1%)
aks-core-35064155-vmss000000        kube-system              azuredefender-publisher-ds-9jz77                                  30m (0%)       60m (1%)         32Mi (0%)            200Mi (1%)

@christiancadieux  You should try, this issue was fixed by #71


VSCode is just eating CPU cycles

VS Code Version: code-1.55.2-1618307357.el8.x86_64.rpm
OS Version: Linux xxx 3.10.0-1160.2.1.el7.x86_64 #1 SMP Mon Sep 21 21:00:09 EDT 2020 x86_64 x86_64 x86_64 GNU/Linux

Steps to Reproduce:

Install the rpm $ sudo yum install ./Downloads/code-1.55.2-1618307357.el8.x86_64.rpm
Start VSCode $ code

Does this issue occur when all extensions are disabled?: Yes

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
14782 peter     20   0 5008764  92876  52040 R 105.9  0.6   0:10.22 code
14878 peter     20   0 4666032  80420  32148 R  94.1  0.5   0:09.56 code

Please see https://github.com/Microsoft/vscode/wiki/Performance-Issues for creating actionable performance problem issues.

I cannot open the help menu.

Even if I disable extensions:

Where can I go for support?

Can you provide the output of code --verbose


Add spec files for view and controller in taxonworks:task generator

The taxonworks task generator builds a simple task with view and controller. It would be helpful if it also generated the spec test files as well.

We're moving away from view/controller tests to integration and unit tests.  Going to close this.


Update http extension

Description

Screencast

Checklist

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

Thanks for your contribution. Have you seen this extension, which appears similar yet possesses a lot of features? Maybe enhancing that one would be preferable, so we avoid having two similar extensions.

This extension has slightly different goals. Calling predefined requests with substitution of variables from the profile. I also plan to add the ability to save queries in collections.
But if you want to reject this PR, I understand you.

I agree it's not 100% the same, but it would be something that would fit right into the other extension, what do you think @jonathangiardino - wouldn't it make sense to enhance instead of adding a new one?

Haven't sen what the other extension does to be honest, but if there's something that can be added to cURL and can be an enhancement for all the users, I am all for it! @pernielsentikaer

I think it would fit right in, what I understand is that it will be possible to make profiles and have variables - but I'm not sure how easy it will be to merge, what do you think @negasus

I'm afraid that this will require quite a lot of modification of the cURL extension. I think it would be better if the author decides for himself whether this functionality should be added.
I suppose, this PR can be closed?

I'm afraid that this will require quite a lot of modification of the cURL extension. I think it would be better if the author decides for himself whether this functionality should be added.
I suppose, this PR can be closed?

@negasus unfortunately I do not have time for this implementation at the moment, but since it's all open source, feel free to add features if you want and open a PR, @pernielsentikaer also contributed to it before.

Closing for now, let's get some of the features implemented in the current extension when there is time for it


feat: update banner description

Change the ticket button description, to specify that it's free

/ptal

/rtm


Infinite spin loop at initializing Timer in SyncExecutor (before entry funtion)

I am making a simple firmware that connects a sensor to the GPIO of a Raspberry Pi Pico W and sends its data via TCP to a server.
The spin loop is in the result of expanding the #[embassy_executor::main] macro before entering the entry function.
I use the latest embassy cloned from Github.
The call stack looks like this.

Call Stack
1. __cpsie #[inline] (c:\Users\Me\.cargo\registry\src\index.crates.io-6f17d22bba15001f\cortex-m-0.7.7\asm\inline.rs:52)
2. enable #[inline] (c:\Users\Me\.cargo\registry\src\index.crates.io-6f17d22bba15001f\cortex-m-0.7.7\src\call_asm.rs:11)
3. <unknown function @ 0x10018284> #[inline] (c:\Users\Me\develop\MyFirmware\embassy\embassy-rp\src\critical_section_impl.rs:66)
4. acquire #[inline] (c:\Users\Me\develop\MyFirmware\embassy\embassy-rp\src\critical_section_impl.rs:28)
5. _critical_section_1_0_acquire #[inline] (c:\Users\Me\.cargo\registry\src\index.crates.io-6f17d22bba15001f\critical-section-1.1.2\src\lib.rs:282)
6. acquire #[inline] (c:\Users\Me\.cargo\registry\src\index.crates.io-6f17d22bba15001f\critical-section-1.1.2\src\lib.rs:183)
7. with<core::result::Result<u8, u8>, atomic_polyfill::polyfill::{impl#21}::fetch_update::{closure_env#0}<embassy_rp::timer::{impl#1}::allocate_alarm::{closure_env#0}>> #[inline] (c:\Users\Me\.cargo\registry\src\index.crates.io-6f17d22bba15001f\critical-section-1.1.2\src\lib.rs:226)
8. <unknown function @ 0x10018284> #[inline] (c:\Users\Me\.cargo\registry\src\index.crates.io-6f17d22bba15001f\atomic-polyfill-1.0.3\src\polyfill.rs:134)
9. allocate_alarm @0x0000000010018278 (c:\Users\Me\develop\MyFirmware\embassy\embassy-rp\src\timer.rs:47)
10. _embassy_time_allocate_alarm @0x100191b4 (c:\Users\Me\develop\MyFirmware\embassy\embassy-time\src\driver.rs:162)
11. allocate_alarm @0x1001997c (c:\Users\Me\develop\MyFirmware\embassy\embassy-time\src\driver.rs:134)
12. <unknown function @ 0x100160e4> #[inline] (c:\Users\Me\develop\MyFirmware\embassy\embassy-executor\src\raw\mod.rs:335)
13. <unknown function @ 0x100160e4> #[inline] (c:\Users\Me\develop\MyFirmware\embassy\embassy-executor\src\raw\mod.rs:496)
14. <unknown function @ 0x100160e4> @0x00000000100160e0 (c:\Users\Me\develop\MyFirmware\embassy\embassy-executor\src\arch\cortex_m.rs:78)
15. __cortex_m_rt_main @0x1000cac0 (c:\Users\Me\develop\MyFirmware\src\main.rs:35)
16. __cortex_m_rt_main_trampoline @0x1000cab0 (c:\Users\Me\develop\MyFirmware\src\main.rs:35)
17. <unknown function @ 0x100001e6> @0x100001e6 (Unknown Source:0)
18. <unknown function @ 0x100001e6> @0x100001e6 (Unknown Source:0)

It seems to be trying to initialise the alarm in the SyncExecutor(embassy/embassy-executor/src/raw/mod.rs line 335), calls _embassy_time_allocate_alarm(embassy-time/src/driver.rs line 162), and try to allocate alarm. After that it keeps trying to get the critical section for atomic processing and fails, resulting in an infinite loop. As far as I can tell,  embassy/embassy-rp/src/critical_section_impl.rs line 49 to 68 is looping.
I have nothing connected to the pins of the Pico except SWDIO, SWLCLK (and GND) for debugging.
The program is based on examples/rp/src/bin/wifi_tcp_server.rs, but I have modified it for my own use.
I have a feeling that this may be due to the settings in Cargo.toml, so I'm posting the dependencies.
[dependencies]
cortex-m = { version = "0.7.6", features = ["inline-asm"] }
cortex-m-rt = "0.7"
embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-rc.1" }
defmt = "0.3"
defmt-rtt = "0.4"
panic-probe = { version = "0.3", features = ["print-defmt"] }
embassy-executor = { version = "0.3.0", path = "embassy/embassy-executor", features = ["nightly", "arch-cortex-m", "executor-thread", "executor-interrupt", "defmt", "integrated-timers"] }
embassy-rp = { version = "0.1.0", path = "embassy/embassy-rp", features = ["defmt", "unstable-traits", "nightly", "unstable-pac", "time-driver", "critical-section-impl"] }
embassy-time = { version = "0.1.3", path = "embassy/embassy-time", features = ["nightly", "unstable-traits", "defmt", "defmt-timestamp-uptime"] }
embassy-net = { version = "0.1.0", path = "embassy/embassy-net", features = ["defmt", "nightly", "tcp", "udp", "dhcpv4", "medium-ethernet"] }
embassy-futures = { version = "0.1.0", path = "embassy/embassy-futures" }
cyw43 = { path = "embassy/cyw43", features = ["defmt", "firmware-logs"] }
cyw43-pio = { path = "embassy/cyw43-pio", features = ["defmt", "overclock"] }
static_cell = { version = "1.2.0", features = ["nightly"] }
embedded-io-async = { version = "0.5.0", features = ["defmt-03"] }
heapless = "0.7.16"
embedded-hal-async = { version = "1.0.0-rc.1", features = ["defmt-03"] }

I'm not even sure if this is an embassy issue, but if anyone else has had a similar situation, I'd be grateful for a solution.

This is probably #1736 / https://github.com/probe-rs/probe-rs/pull/1603

I unplugged Pico's USB to try it out, plugged it in while holding down BOOTSEL, and started debugging with VSCode, and it worked.
So, yes, this is the problem you mentioned.
I should have asked you sooner!
Thanks for your reply!


[SyntaxParse] Re-apply move-only ParsedRawSyntaxNode

Revert #27203 with a fix.
Locally confirmed this successfully compiles stdlib with asan+ubsan in both debug and release build.
rdar://problem/55421369

@swift-ci Please test

@swift-ci Please test ASAN

@swift-ci Please ASAN test

https://ci.swift.org/job/swift-PR-osx-ASAN-test/96/ Infrastructure issue?

@swift-ci Please ASAN test

The ASAN bot builds in release with debug info. It shouldn't catch this.

@CodaFi  As I noted in the description, I confirmed this change successfully compiles stdlib with asan+ubsan in both debug and release build.
@shahmishal Is there a way to invoke pull request CI with debug+ASAN ?

@swift-ci Please test Windows

preset=buildbot_incremental,tools=DA,stdlib=DA,build
@swift-ci Please test with preset macOS Platform


Implement Enumerable#min, Enumerable#max

Related to https://github.com/myst-lang/myst/issues/57

Looks great! Thanks :)


[Merge pull request] Add support for SSA MarginL, MarginR, MarginV

Use case description
Better SSA/ASS subtitle formatting support. This is an area where ExoPlayer/Media3 has lagged behind VLC.
There was this issue tracker for SSA format support: https://github.com/google/ExoPlayer/issues/8435#issuecomment-762449001
VLC achieves SSA rendering via https://github.com/libass/libass however because it was written in C, there was reluctance to use it.
A pull request has been sitting in the ExoPlayer report without being merged: https://github.com/google/ExoPlayer/pull/10169
Proposed solution
Merge https://github.com/google/ExoPlayer/pull/10169 and further improve SSA styling support using libass as reference and complete the support matrix here: https://github.com/google/ExoPlayer/issues/8435#issuecomment-762449001
Alternatives considered
Use libass like VLC

We can't merge google/ExoPlayer#10169 in its current form because the ExoPlayer GitHub project is deprecated and no longer updated.
When I tried merging it back in 2022 I'm afraid it became too complex and I didn't have the capacity to resolve all the open questions.
If someone would like to re-open a PR in this project with the open questions on https://github.com/google/ExoPlayer/pull/10169 resolved then we can take another look.
I'm going to close this issue as a duplicate of https://github.com/google/ExoPlayer/issues/8435 since it has more info.
I'm afraid we continue to not consider using native code for handling user-generated content except where performance concerns preclude this. This adds technical complexity to our build process, and also introduces security risks due to lack of memory safety in C(++).


Save state of child templates on hot code pushes

Only the state of the parent template gets saved at the moment.
When using the child template without a parent template, it works.

It should work if you give each child's view model a unique name.
On Apr 20, 2015 8:56 AM, "zimt28"<EMAIL_ADDRESS>wrote:

Only the state of the parent template gets saved at the moment.
When using the child template without a parent template, it works.
—
Reply to this email directly or view it on GitHub
https://github.com/ManuelDeLeon/viewmodel/issues/39.

Strange. I have one component that I use on multiple pages, but just include it once per page. I've set names as I do ViewModel.byId to access the component.

Please make a small repro...

Tried to reproduce it but couldn't. Looks like it's a problem with one of the component's properties. So it's because of my code. I will update here when I find the reason.
Maybe you cold have a look at https://github.com/ManuelDeLeon/viewmodel/issues/37 and let me know what you think. And sorry for opening so many issues, I'm currently porting my whole app to viewmodel and love it so far, but I have so many questions and ideas. So please let me know if I can give something back :)

Don't worry about it. This is great feedback for both the library and the documentation. I'll be making some changes based on your feedback. To give you a heads up, I'll make it so you can use vm functions in the bindings:

Where getName and isPublic are functions of the view model.

Amazing :) One small detail, maybe it's possible to leave out the parentheses there, so that it looks consistent? Or doesn't the interpreter allow this?

Great news anyway, looking forward to using this :+1:

Yep, you'll be able to leave out the parenthesis. I'll answer #37 with an example when I have the time. The summary is that right now the parameters are passed as strings so doSomething(true) is interpreted as doSomething("true"). I'll fix that too.


Environment too strict

Hi, docker-compose handles values other than string in environment (as a map), including boolean and number. For example, docker compose run test with the file below prints true and 1234 without any complaints:
version: "3.4"

services:
  test:
    image: busybox
    environment:
      foo: true
      bar: 1234
    command: sh -c 'echo $$foo && echo $$bar'

Tested with Docker version 20.10.17

Resolved with #16


sway-beta module: add missing pieces

Motivation for this change
Add missing pieces from main module. See comments below.
cc @colemickens @primeos
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Fits CONTRIBUTING.md.

LGTM. Fixes at least one problem for me and likely more I didn't know about. Thanks!

Thanks again :)
BTW: I just noticed that I forgot to check the commit message, according to CONTRIBUTING.md#submitting-changes it should've been "nixos/sway-beta: ...", but it's not really enforced in nixpkgs AFAIK (at least there are many commits without the "nixos/" prefix). It might be something to keep in mind for the next time though (for the consistency).

@primeos Got it, thanks!


Improve test coverage

I know! This shouldn't be an issue. It's the the first and last time, I promise!

@guicassolato should we close this issue now?

@guicassolato should we close this issue now?

@maleck13, this started almost as a joke... A tragic/funny one considering it's been 3.5 years and nobody's picked the issue since then 🙂
Obviously our test coverage has improved significantly since then, though with tons of work ahead yet to be completely honest. But let's close the issue.


Bug: Link to "V2 topics and message presentation flow" on invitation page not working

Describe the bug
On the page Invitation and message encryption with XMTP the link to "XMTP V2 topics and message presentation flow" is not working.

Steps to Reproduce
Steps to reproduce the behavior:

Go to Invitation and message encryption with XMTP
Scroll down to the header "XMTP V2 invitation and message encryption"
Observe in the second paragraph the link to "XMTP V2 topics and message presentation flow"
Notice that a click doesn't work

Expected behavior
Interacting with the link should take me to XMTP V2 topics and message presentation flow
Additional context
Line 15 on the invitation document reads:
To learn more about invitations and messages, see [XMTP V2 topics and message presentation flow](#xmtp-v2-topics-and-message-presentation-flow).
<!--once specs are published, add link to Client Layer in The XMTP Protocol specifications.-->

I believe the link needs to read something like…
(../architectural-overview#xmtp-v2-topics-and-message-presentation-flow)

Thank you for this @galligan - fixed this in https://github.com/xmtp/xmtp-dot-org/pull/232.
I apologize that I am so late in getting to this! I've been relying on Slack GitHub notifications and this did not come through that channel. I will get my workflow fixed ASAP. Again, so sorry for the delay! =(


Update QD to QL 1

@chapulina tagging you here because this is in the ros-tooling org.
Signed-off-by: Stephen Brawner<EMAIL_ADDRESS>

All upstream PRs are in. Could some maintainer take a quick look and get this in? Maybe @dabonnie ? Thanks!

Looks like we're close to merging! :smirk:  :innocent:


Implement execute_liquidation in liquidation handler contract

resolve #274

Please add the labels corresponding to the type of changes your PR introduces:

Feature

What is the current behavior?

Resolves: #274
What is the new behavior?

-add execute_liquidation in liquidationHandler contract
Does this introduce a breaking change?

No

Other information
All the functions for testing are not yet implemented, so I can't do it.

LGTM :rocket:


Remove depedency on servo-freetype-sys

This is the last major project depending on the servo-freetype-sys
library. By removing the depedency, the entire ecosystem should now
hopefully rely on only a single system binding for the freetype library.

From the mac CI:
  = note: /usr/bin/ld: /home/travis/build/servo/skia/target/debug/deps/libfreetype_sys-0e1ca7f1fe5d3845.rlib(ftgzip.c.o): undefined reference to symbol 'inflateInit2_'

          //lib/x86_64-linux-gnu/libz.so.1: error adding symbols: DSO missing from command line

          collect2: error: ld returned 1 exit status

I've triggered a new build on master (https://travis-ci.com/servo/skia/builds/151766139) to see if this is a preexisting problem.

It's surprising to me that this wouldn't have failed any other of the CI runs in the different servo projects and I've personally written and tested this on Linux, so it might depend on the actual system used by CI.
I'll try to look into what might be going wrong here.

Yeah, I'm unlikely to spend any time investigating it because Servo doesn't actually rely on skia any more.

Seems like it's only the tests failing too. I'll check it out though I can't promise anything either.

I'll have to give up on this for now, if anyone else wants to pick it up, feel free.
But since I don't have any need for this myself I'd rather spend my time on other things.

I've found the issue and fixed it here: https://github.com/PistonDevelopers/freetype-sys/pull/83
I'll create a new PR as soon as that's merged and a new version is released.


Dom: Add support for Inline Styles

If anyone is interested in contributing to the adapter, this issue would be a good place to start. Feel free to comment here or contact me for assistance.


AssertionError when using example

I have tried to use the example here:
from __future__ import print_function, unicode_literals
from PyInquirer import prompt, print_json

questions = [
    {
        'type': 'input',
        'name': 'first_name',
        'message': 'What\'s your first name',
    }
]

answers = prompt(questions)
print_json(answers)  # use the answers as input for your app

But I keep getting the following error and not sure why
Traceback (most recent call last):
  File "/Users/paul/Developer/pycharm/pp_npi_api/app.py", line 28, in <module>
    answers = prompt(step_one)
  File "/Users/paul/.local/share/virtualenvs/pp_npi_api-yfFkFqSk/lib/python3.9/site-packages/PyInquirer/prompt.py", line 69, in prompt
    answer = run_application(
  File "/Users/paul/.local/share/virtualenvs/pp_npi_api-yfFkFqSk/lib/python3.9/site-packages/prompt_toolkit/shortcuts.py", line 576, in run_application
    output=create_output(true_color=true_color))
  File "/Users/paul/.local/share/virtualenvs/pp_npi_api-yfFkFqSk/lib/python3.9/site-packages/prompt_toolkit/shortcuts.py", line 124, in create_output
    return Vt100_Output.from_pty(
  File "/Users/paul/.local/share/virtualenvs/pp_npi_api-yfFkFqSk/lib/python3.9/site-packages/prompt_toolkit/terminal/vt100_output.py", line 424, in from_pty
    assert stdout.isatty()
AssertionError

;cvl;cljc


Python: AttributeError: 'Kernel' object has no attribute 'run_async'

Describe the bug
running await kernel.run_async(summary_function, input_str=sk_input) gives the error
Platform

OS: Windows
IDE: anaconda terminal
Language: Python

@sv-youn this was replaced by kernel.invoke in the latest versions, which version are you using?

We met exactly the same issue.

@sv-youn, @sunner in 0.5.1.dev0, it is indeed kernel.run (we removed the _async suffix from methods that don't have a sync counterpart). Now, as of 0.9.0b1 (our first beta release) the kernel method is invoke.

@moonbox3 thanks for the update. The Python tutorial doesn't align with the current version, which presents a challenge.

@sv-youn our Python notebooks/kernel examples are always updated to use the latest code. We're now on version 0.9.0b1 where the kernel uses methods like invoke and invoke_stream. Thus, one can use a poetry virtual environment, and utilize that latest code or one can install the latest pip package as shown in the notebook.

Thanks for responding @moonbox3. It seems the Python tutorial notebooks are not synchronized with the latest code version. Despite cloning the latest version (0.9.0b), I encountered an error when attempting the first notebook: semantic-kernel/python/notebooks/00-getting-started.ipynb

@sv-youn, thanks for the screenshot. I'll create a PR to fix the small bug that is present. To run this cell, please remove the service_id argument from the import_plugin_from_prompt_directory call.

Thanks for responding, @moonbox3. Removing that argument did indeed fix the error. However, I encountered another error in the subsequent cell.

@sv-youn, I've got a PR out to fix that as well. :) Right now, you can update the service_id to be default as I have done here. The sample plugins have their service_ids as 'default' so I am leaving them as default as well (one can customize the service_ids if needed).

Wow, that works. Thank you @moonbox3. I encountered another error while running cell #10 (skipping the 1st installation cell) in the 06-memory-and-embeddings notebook.

@sv-youn that create_function_from_prompt needs a function_name str and a plugin_name str. I'll add that to the PR (and other notebooks that may be missing it). Thanks for the heads up.

Again thanks for your response @moonbox3. While working on implementing a permanent solution, is there any stopgap fix we can apply in the meantime?

Everything I have been mentioning here, you can implement it on your end. Provide a function_name/plugin_name for the create_function_from_prompt and it'll work. We'll make a new release in the next day or two with these fixes.

Thanks for the suggestion @moonbox3. I was able to fix it by providing names in create_function_from_prompt per your suggestion. I encounter another error. Are you able to see if we can quickly fix it?


Question about the rcnn boxes

Hello,
I am confused a little bit about the following :
in : https://github.com/vmurahari3/visdial-bert/blob/master/dataloader/dataloader_visdial.py#L241
in the line :
features, num_boxes, boxes, _ , image_target = self._image_features_reader[img_id]
the shape of boxes is [37 x 5] , what does the 5 values mean? I expected it to be a 4 coordinates indicating x1 , x2 , y1 , y2 , can you clarify? thanks!

5th value is the percentage of the area of the rectangular box in the image i.e area of image / (x1 - x2) (y1 - y2). For more details, check out the ViLBERT paper and the following code repository https://github.com/jiasenlu/vilbert_beta.