Consider creating a project template for other teams

It would be nice if someone wanting to start a project modeled after our patterns, they could do so easily. Ideally, we could continuously build our own project from this template, since they otherwise tend to get out of date quickly.

Saturn is early phase and we are unprepared to take on support burden for non-product software. Something to revisit next quarter.


Could i ask you something?

Why do you use the difference in LUV colorspace?, not considering others spaces(RGB, HSV so on...)

The choice of LUV colorspace is mainly due to how it differentiates illuminance from chromaticity which will not be available in RGB colorspace.
Another main reason better explained under this link  is as follows:

More specifically 'Luv' was designed to be 'perceptually linear'. That is that a small change in color in one part of the colorspace looks to be about the same, as a similar change in another part of the colorspace. This makes LUV colorspace much better suited for image difference comparisons.

Thank you very much!


Install w/o Node (and is this toolkit still alive)?

Just wondering if this can be built locally on windows w/o Grunt/Node?
28 Open issues and to Pull request since August 2016 - Is this toolkit still alive?

@jasteele12 I haven't been able to give any time to this for the last few months. I don't intend to abandon this project, but at this point I advise against using this in production environments.
I would really like to improve some of the core concepts and change some architectural issues in a few months - making it easier to integrate and embed with Frameworks.


bugdown: Trigger test failure for invalid Markdown include statements.

Fixes #10947.
@timabbott: If you take an existing webhook doc (say zerver/webhooks/github/doc.md) and change one of the include statements to refer to a non-existent macro, zerver/tests/test_docs should fail and print an informative error message. Thanks! :)

@eeshangarg cool, this is great.  I have one question about the implementation -- could MarkdownIncludeWrapper subclass the main MarkdownInclude class, instead of being a separate extension?  I haven't looked at code, but I could imagine that doing a useful deduplication...

@timabbott: I just updated the code. The reason I implemented a separate extension instead of subclassing was that the resulting implementation (after subclassing) wasn't necessarily simpler or functionally better in any way. In addition, subclassing meant maintaining the extension on our end, which seemed more work than just maintaining a "wrapper" that just raised an exception and fulfilled our specific purpose for the time being. :) Ideally, this should be fixed upstream! If not, we can just keep this one! Thanks!

Merged, thanks @eeshangarg!  If it's easy, can you submit a PR upstream for raising this exception?  I think it'd increase the probability that we get to stop maintaining this eventually.


Update AMI and datagen instructions

Built a new public AMI based on the non-marketplace AMI to update the source and the boot kernel.
Remove the instructions for copying the data since it is now directly generated into the disk.

Thank you Jason @dotkrnl !


jhipster-lite-sample-app without maven wrapper

Since jhlite 1.3.0, the maven wrapper has been removed.
See: https://github.com/jhipster/jhipster-lite-sample-app/commit/2d7b322c7b56d5800f51d31304849f814e199855

thanks @DanielFran
Indeed, we need to update this: https://github.com/jhipster/jhipster-lite-sample-app/blob/main/generate.sh#L62


Added crypto tests

Added in some crypto tests.

Do you have an estimate of when you would approve existing pull requests?

I'll gladly approve it now! Thanks!

(I just saw I've been neglecting #4 ...I will revisit!)


Check multiple os

Codecov Report

Merging #5 (ddcb735) into main (c080377) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main       #5   +/-   ##
=======================================
  Coverage   60.16%   60.16%
=======================================
  Files           4        4
  Lines         359      359
=======================================
  Hits          216      216
  Misses        134      134
  Partials        9        9

Continue to review full report at Codecov.

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


lack of  support for target creation.

Hi,
Currently the module doesn't support the creation of the .target in case of instantiated services (declared by "PartOf" which I requested to merge #122).  the goal is to have let's say a service.target which controls other services like service@aa / service@bb. The ultimate goal is to start / stop all our sub-services using systemctl start|stop service@*
Kind regards

Hi,
I'm adding this as future reference:
https://www.freedesktop.org/software/systemd/man/systemd.target.html
root@shuvak:/etc/systemd/system# ls
apport-forward.socket                       display-manager.service<EMAIL_ADDRESS>  netdata.service                  snapd.socket          timers.target.wants
bluetooth.target.wants                      display-manager.service.wants  libvirtd.service         network-online.target.wants      sockets.target.wants  ufw.service
dbus-org.bluez.service                      getty.target.wants             lxd-containers.service   paths.target.wants               sshd.service
dbus-org.freedesktop.Avahi.service          gpu-manager.service            lxd.service              printer.target.wants             sysinit.target.wants
dbus-org.freedesktop.ModemManager1.service  graphical.target.wants         lxd.socket               queuelisteneypmergehook.service  syslog.service
default.target.wants                        iscsi.service                  multi-user.target.wants  remote-fs.target.wants           teamviewerd.service
root@shuvak:/etc/systemd/system# ls multi-user.target.wants/
atd.service             cups-browsed.service           lm-sensors.service      netfilter-persistent.service  queuelisteneypmergehook.service  ubuntu-fan.service
avahi-daemon.service    cups.path                      lxcfs.service           networking.service            remote-fs.target                 ufw.service
binfmt-support.service  docker.service                 lxd-containers.service  nfs-client.target             rsyslog.service                  unattended-upgrades.service
cgmanager.service<EMAIL_ADDRESS>ModemManager.service    nfs-server.service            smartd.service
cgproxy.service         libvirt-bin.service            mysql.service           open-vm-tools.service         ssh.service
cron.service            libvirt-guests.service         netdata.service         openvpn.service               teamviewerd.service
root@shuvak:/etc/systemd/system# ls -ld multi-user.target.wants/netdata.service
lrwxrwxrwx 1 root root 35 May 22  2016 multi-user.target.wants/netdata.service -> /etc/systemd/system/netdata.service

I believe we should be supporting the ability to manage a directory with symlinks to the actual services in addition to the .target file creation. Maybe it is even more useful to manage the symlink structure.
Thoughts?
kind regards,

Hi,
thank you for having merged. this issue can be closed as well.
Regards

Hi Vincent,
I believe we should be also supporting the the ability to link services to a target using symlinks just like in the example above.
If you don't mind I would like to keep this issue open for keeping track of these changes as well
thanks,


Object doesn't support property or method 'toBlob' on Microsoft EDGE

on Microsoft EDGE
stop after "NOW COLORING..."
SCRIPT438: Object doesn't support property or method 'toBlob'
paints_chainer.js (84,5)

oh, I see thanks for report.
( Currently, supporting all browsers is a little bit difficult.

close

Thanks for report


[SPARK-5125] Time major blocks of code in setup.sh

To make it easy to record and compare the performance of invocations of spark-ec2, print out some minimal timing information from setup.sh.

cc @shivaram This will be useful, for example, for the work being done in SPARK-3821.

LGTM. Just curious -- do you have a snippet of the output produced just to see how it looks ?

Voilà:
Deploying Spark config files...
RSYNC'ing /root/spark/conf to slaves...
ec2-54-165-187-102.compute-1.amazonaws.com
Setting up scala
RSYNC'ing /root/scala to slaves...
ec2-54-165-187-102.compute-1.amazonaws.com
[timing] scala setup:  00h 00m 04s
Setting up spark
RSYNC'ing /root/spark to slaves...
ec2-54-165-187-102.compute-1.amazonaws.com
[timing] spark setup:  00h 00m 24s
Setting up shark
RSYNC'ing /root/shark to slaves...
ec2-54-165-187-102.compute-1.amazonaws.com
File or directory /root/hive* doesn't exist!
[timing] shark setup:  00h 00m 00s

Looks good. Merging this.


Change spider service architecture

Make only one spider_app_svc service, because it doesn't have api at all, only spider.start command via message.

Added spider_app_svc service and removed api part of spider service
Changed scheduler job to send messages to spider_app_consume queue


lets add hydrus support

Is your feature request related to a problem? Please describe.
None
Describe the solution you'd like
To use a local database of images
Describe alternatives you've considered
¯_(ツ)_/¯
Additional context
hydrus

my god hydrus scares me jesus

we did it


[web][safari] Boxshadow render problem

So, I use ListView.builder with items that has box shadow. And when trying to drag the listview, that happens. If I don't put box shadow, it's fine.
I have only test on safari(Mac, iOS) and chrom. And the problem appear only on safari.

flutter doctor

I tried both flutter master and beta channel, it's the same.

Hi @chounry
Can you please provide your flutter doctor -v and a minimal complete reproducible code sample?
Thank you

Ok,

Oh, I forgot to create the sample code. I'll create it a bit later.

hi @pedromassangocode
Here is the code.
import 'package:flutter/material.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Quiz',
      home: ForGithubScreen(),
    );
  }
}

class ForGithubScreen extends StatefulWidget {
  @override
  _ForGithubScreenState createState() => _ForGithubScreenState();
}

class _ForGithubScreenState extends State<ForGithubScreen> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Text("Match List"),
        ),
        body: Column(
          children: [
            Expanded(
              child: Container(
                color: Colors.white,
                child: ListView.builder(
                  itemBuilder: (_, index) {
                    return Container(
                      margin: EdgeInsets.all(5),
                      decoration: BoxDecoration(color: Colors.white, boxShadow: [
                        BoxShadow(
                          color: Colors.grey,
                          offset: Offset(0, 0),
                          spreadRadius: 2,
                          blurRadius: 7,
                        )
                      ]),
                      child: ListTile(
                        title: Text("1 vs 1"),
                        leading: FlatButton(
                          color: Colors.blue,
                          onPressed: () {},
                          child: Text(
                            "Find",
                            style: TextStyle(color: Colors.white),
                          ),
                        ),
                      ),
                    );
                  },
                  itemCount: 1,
                ),
              ),
            ),
          ],
        ));
  }
}

Reproducible on master and beta channel.
flutter doctor -v (master)
[✓] Flutter (Channel master, 1.25.0-5.0.pre.108, on Mac OS X 10.15.7 19H2 darwin-x64, locale en)
    • Flutter version 1.25.0-5.0.pre.108 at /Users/pedromassango/dev/SDKs/flutter_master
    • Framework revision 995aa138cd (4 hours ago), 2020-12-08 09:18:02 +0530
    • Engine revision b0d31ae166
    • Dart version 2.12.0 (build 2.12.0-125.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/pedromassango/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.1, Build version 12A7403
    • CocoaPods version 1.9.3

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

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] IntelliJ IDEA Community Edition (version 2020.2.4)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 52.0.4
    • Dart plugin version 202.8070

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

[✓] Connected device (3 available)
    • sdk gphone x86 arm (mobile) • emulator-5554 • android-x86    • Android 11 (API 30) (emulator)
    • macOS (desktop)             • macos         • darwin-x64     • Mac OS X 10.15.7 19H2 darwin-x64
    • Chrome (web)                • chrome        • web-javascript • Google Chrome 87.0.4280.88

• No issues found!
Process finished with exit code 0

flutter doctor -v (beta)
[✓] Flutter (Channel beta, 1.24.0-10.2.pre, on Mac OS X 10.15.7 19H2 darwin-x64, locale en)
    • Flutter version 1.24.0-10.2.pre at /Users/pedromassango/dev/SDKs/flutter_beta
    • Framework revision 022b333a08 (3 weeks ago), 2020-11-18 11:35:09 -0800
    • Engine revision 07c1eed46b
    • Dart version 2.12.0 (build 2.12.0-29.10.beta)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/pedromassango/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.1, Build version 12A7403
    • CocoaPods version 1.9.3

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

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] IntelliJ IDEA Community Edition (version 2020.2.4)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 52.0.4
    • Dart plugin version 202.8070

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

[✓] Connected device (3 available)
    • sdk gphone x86 arm (mobile) • emulator-5554 • android-x86    • Android 11 (API 30) (emulator)
    • Web Server (web)            • web-server    • web-javascript • Flutter Tools
    • Chrome (web)                • chrome        • web-javascript • Google Chrome 87.0.4280.88

• No issues found!
Process finished with exit code 0

Note: Its a bug in webkit. It leaves artifacts when you use filter/blur CSS on a dom node. Fixed it by switching to box shadow for webkit.

Note: Its a bug in webkit. It leaves artifacts when you use filter/blur CSS on a dom node. Fixed it by switching to box shadow for webkit.

Fixed in master

Fixed in master


devise_for path/format not passed to block

Sample working code:
devise_for :users, controllers: { omniauth_callbacks: 'users/omniauth_callbacks', registrations: 'users/registrations' }, format: false, path: 'account' do
  get '/account/thank_you', to: 'users/registrations#thank_you', as: :new_user_registration_thank_you, format: false
end

If in block I write the route without passing manually the path and format:
get 'thank_you', to: 'users/registrations#thank_you', as: :new_user_registration_thank_you

This is the result:
new_user_registration_thank_you GET    /thank_you(.:format)                               users/registrations#thank_you

As you can see both the path and format gets ignored and does not get inherited.
I'm not sure it is intended, so I'll report anyway.

Actually from the changelog:
Ensure passing :format => false to devise_for is not permanent

So I guess this is intended to some degree. Feel free to close.
Cheers

That was another bug, I believe the bug you reported here is still valid. Thanks!

I've written a patch https://gist.github.com/824eade2e10cb2501b41 so if only path and format should be inherited it works

To avoid confusion, I am deprecating the block usage.

Perhaps if the block usage is deprecated the code comments should at least mention this: https://github.com/plataformatec/devise/blob/master/lib/devise/rails/routes.rb#L185

Fixed, tks.


Added additional command line modes

In addition to the previous interactive mode , added another format which works in single command .
eg: python meme_generator.py --format=1 --image1="path" --text1="text"
and interactive mode is accessed using mode argument
like -> python meme_generator.py --mode=2

Changed it two modes now its 0 for command line and 1 for interactive

Looks great 😍
Hope you are enjoying your journey 🚆  with OpenGenus


LLVM IR branch labels are not decoded

I have the following snippet of LLVM IR:
"_ZN4core5slice77_$LT$impl$u20$core..ops..index..IndexMut$LT$I$GT$$u20$for$u20$$u5b$T$u5d$$GT$9index_mut17haf9727c2edfbc47bE.exit.i.i": ; preds = %_ZN4core3num6bignum8Big32x4013div_rem_small17h4cd75272a325743dE.exit.i.bb2.i.i_crit_edge, %start
  br i1 undef, label %_ZN4core3num6bignum8Big32x4013div_rem_small17h4cd75272a325743dE.exit.i, label %"_ZN50_$LT$u32$u20$as$u20$core..num..bignum..FullOps$GT$12full_div_rem17h5b7e3fb4b4ba9179E.exit.lr.ph.i.i"

Buried in there is this label:
_ZN4core5slice77_$LT$impl$u20$core..ops..index..IndexMut$LT$I$GT$$u20$for$u20$$u5b$T$u5d$$GT$9index_mut17haf9727c2edfbc47bE.exit.i.i

Ideally, I'd like to have it demangled to:
core::slice::<impl core::ops::index::IndexMut<I> for [T]>::index_mut::haf9727c2edfbc47b.exit.i.i

I am using rustfilt for this, so I'm not sure where it more appropriately belongs. I see some special handling of LLVM modifications, so I figured I'd ask here first.

Ah yeah this is primarily intended for symbols rather than "things with symbols inside them". The "llvm" treatment already there is actually for symbols generated by ThinLTO rather than these sorts of branches/symbols.
All that being said though seems fine by me to add support for this!

Rustfilt uses a regex to find symbols to demangle. Another path forward would be to find some way for this crate and that crate to agree on what should be processed. Do you have any feeling on if such a thing would be possible?


replyTo not being passed in publish

When calling amqp.publish() I am receiving an error from RabbitMQ that my message is missing the reply_to property.
Here is what I have as my publisher:
const publish = function () {
    amqp.publish({
      queue_name: queueName,
      body: myBody,
      replyTo: myReplyQueue,
      messageId: uniqueID,
      correlationId: uniqueID,
      content_type: "text/plain",
    });
  };

publish()

I have also tried passing the publish option as reply_to and ReplyTo but to no avail 🥲

Hello @aujamo44! I'm not able to reproduce your issue with the latest source.
When providing as replyTo, the value is not published. I noticed that your messageId and correlationId would have the same issue as replyTo.
Please try again with the latest code and use the following:
const publish = function () {
    amqp.publish({
      queue_name: queueName,
      body: myBody,
      reply_to: myReplyQueue,
      message_id: uniqueID,
      correlation_id: uniqueID,
      content_type: "text/plain",
    });
  };

publish()

Please let me know your results!


Feature/#216 subscription activity

Description
Finally the user can enter the activity pre-list.
Fixes #<216>
Status
READY
Type of change
Please delete options that are not relevant.

Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
Breaking change (fix or feature that would cause existing functionality to not work as expected)

How Has This Been Tested?
Implemented acceptance test
Checklist:

[ ] I have made corresponding changes to the documentation (if applicable)
[x] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes

Change that must be adressed:

[ ] There's no message indicating if the user is really inscribed in the activity.
[ ] After I inscribe myself in an activity the button 'PARTICIPAR' should be disable (the ideal is change to cancel, but is not in your scope) so I couldn't incribe me again in the same activity.


Typescript error displayed as warning

VSCode Version: Code - Insiders 1.19.0-insider (bd11a1f, 2017-12-06T06:07:57.990Z)
Repro steps:

Have tsconfig with "noUnusedLocals": true
Define and never use a variable in a ts file

Variable has green squiggle under it and a warning is shown in the problems panel.

Trying to compile results in an error, not a warning. In the stable 1.18 build, this is shown with a red squiggle and marked as an error in the problems panel.

Thanks. This change was intentional. See https://github.com/Microsoft/vscode/pull/37616  for more info


Allow IRSA Role IDs to be Specified on the ProviderConfig

What problem are you facing?
I see that in the IRSA example the eks.amazonaws.com/role-arn annotation is used. But this is on the controller config. Is there a way to specify this argument to the provider on the ProviderConfig?
i.e. given a single cluster w/ namespace1 and namespace2, xplane & the TF provider installed:

namespace1 has it's own ProviderConfig with IRSA set up between the cluster that's running xplane and aws-account-1
namespace2 has a different ProviderConfig also with IRSA set up. But it's provider config specifies an ARN for STS AssumeRole to aws-account-2

The reason why the barebones approach in the linked example is a problem is that it does not scale well when there are multiple AWS accounts that need to be synced to across multiple projects/namespaces.
How could Official Terraform Provider help solve your problem?
I know that ProviderConfigs are cluster-wide so maybe Im barking up the wrong tree. But either way, is there a way to inject this at the provider config level instead? Or are there any plans to support this? I believe that having role-arn be configurable at the ProviderConfig level (instead of the ControllerConfig level) would allow cluster operators that manage multi tenant/cluster setups the ability to provide an installation of the TF Xplane provider as a service.

@chr0n1x IRSA controls the AWS credentials that are made available to the pod/container via environment variables and volume mounts, so they can only be configured container-wide via ControllerConfig.   The typical use case is to have the ControllerConfig specify an account/role for the provider-terraform pod/container to run under by default, and then use the assume_role {role_arn= } in the provider configuration to switch to the account/role that the resources need to be applied to.   This can be done either via patching to an Inline workspace or in a ProviderConfig, though terraform does not merge provider configurations so you would need to specify the entire provider configuration block - including Region - in the same ProviderConfig configuration section.   Then of course you need to configure all of the ProviderConfig specified roles to be assumable by the IRSA role that the provider is running as.  So you would have a ProviderConfig per role/region that you want to deploy into.

@chr0n1x - is it ok to close this issue?  Thanks


Roll Engine from 7e252b58745f to af4fe610efb1 (12 revisions)

https://github.com/flutter/engine/compare/7e252b58745f...af4fe610efb1
2021-07-15<EMAIL_ADDRESS>JavaDoc error fix  (flutter/engine#27080)
2021-07-15<EMAIL_ADDRESS>Lint android scenario app (flutter/engine#27409)
2021-07-15<EMAIL_ADDRESS>Add the ability to change the CanvasKit url at runtime. (flutter/engine#27342)
2021-07-15<EMAIL_ADDRESS>Roll Skia from 3c8ae888b9d4 to 78aa969b2f75 (1 revision) (flutter/engine#27450)
2021-07-15<EMAIL_ADDRESS>Fix leak in CFRef's move assignment operator. (flutter/engine#27441)
2021-07-15<EMAIL_ADDRESS>Fixes some bugs when multiple Flutter VC shared one engine (flutter/engine#27320)
2021-07-15<EMAIL_ADDRESS>Fix duplicated keys with CONTROL key toggled (flutter/engine#27301)
2021-07-15<EMAIL_ADDRESS>Delete legacy focus platform message request handlers. (flutter/engine#27057)
2021-07-15<EMAIL_ADDRESS>Fix potential crash of "divide by zero" for invalid GIF image source. (flutter/engine#26855)
2021-07-15<EMAIL_ADDRESS>Add flutter test suites to test_suites.yaml. (flutter/engine#27417)
2021-07-15<EMAIL_ADDRESS>Roll Fuchsia Linux SDK from s2vrjrfuS... to dQkk1o8zS... (flutter/engine#27449)
2021-07-15<EMAIL_ADDRESS>Roll Skia from a2d22b2e085e to 3c8ae888b9d4 (3 revisions) (flutter/engine#27448)
Also rolling transitive DEPS:
fuchsia/sdk/core/linux-amd64 from s2vrjrfuSK4P to dQkk1o8zS3Pr
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.


Try and handle token type embeddings more elegantly

For simple cases, we dont actually use token embeddings, but allocating this as a zeros_like seems pretty wasteful.
There are basically 2 use-cases that seem to make sense

we dont care about token embeddings and so we really want the 0-weight from them.  This is just a bias then that can be added to the input embeddings (word_embeddings + pos_embeddings + bias`)
we do care about the token embeddings, which suggests that we could provide a vectorizer for each of the fields, so having them as 2 fields makes sense -- one for word and one for tokens (we can always get the positions internally).  In fact even if we wanted to provide all 3 as vectorizers, it should work with our EmbeddingsStack except that the EmbeddingsStack currently has no reduction operator.  This seems quite useful and straightforward to add as its a generalization of the current concat behavior.  The user could then indicate in the model block of the config what embeddings_reduction to use (and the default would remain concat).  This could also produce some interesting capabilities we havent yet been able to try as a user could provide custom reductions for custom use-cases.

Its possible to change the code a bit which makes this easier.  RN, the LayerNorm is typically executed afterward in the TransformerEncoderStack but when we are doign layer_norms_after we then make it the Identity.  The Embeddings then necessarily have to handle the LN but if we moved the LN up here, then we could potentially get around this which could allow us to move the LN outside of the Embeddings.  Then we can compose our features by having a TT-vectorizer and a feature vectorizer that maps to the Pos+Token embeddings.  This would prevent us from having to have a separate class with LN for embeddings

Here is the current BERT embedding object:

class BERTLookupTableEmbeddings(LookupTableEmbeddings):
    """
    BERT style embeddings with a 0 token type

    TODO: Get rid of this, we dont need it anymore
    If you want to use BERT with token types, make a LearnedPositionalLookupTableEmbeddings feature
    and a LookupTableEmbeddings feature (for the token type)
    and put them in an EmbedStack with an embeddings_reduction='sum' on the model
    And if you dont want that, use the LearnedPositionalLookupTableEmbeddingsWithBias, which
    will add the BERT token_type=0 weights into the pos + word_embed and is more efficient
    than this class, since it doesnt do any memory allocation on the fly
    """
    def __init__(self, **kwargs):
        super().__init__(**kwargs)
        self.dropout = nn.Dropout(kwargs.get('dropout', 0.1))
        self.mxlen = int(kwargs.get('mxlen', 512))
        self.tok_type_vsz = kwargs['tok_type_vsz']
        self.pos_embeddings = nn.Embedding(self.mxlen, self.get_dsz())
        self.tok_embeddings = nn.Embedding(self.tok_type_vsz, self.get_dsz())
        self.ln = nn.LayerNorm(self.get_dsz(), eps=1e-12)

    def forward(self, x):
        zeros = torch.zeros_like(x)
        x = super().forward(x)
        x = x + self.positional(x.size(1)) + self.tok_embeddings(zeros)
        x = self.ln(x)
        return self.dropout(x)

    def positional(self, length):
        return self.pos_embeddings(
            torch.arange(length, dtype=torch.long, device=self.pos_embeddings.weight.device)
        ).unsqueeze(0)

An observation that can simplify this drastically is that the EmbeddingsStack object already supports a reduction operator and does a dropout on the final result.
If we could provide an add-layer-norm reduction, we could support the token type embeddings compositionally:
EmbeddingsStack({'x': LearnedPositionalLookupTableEmbeddings(...), 'tt': PositionalLookupTableEmbeddings, dropout=kwargs.get('embeddings_dropout'), reduction='add-layer-norm')

This is just waiting on checkpoint generation to close


Make easier to debug exit before entry issues in app mark up

The error reporting when an application inserts a region exit message without previously inserting a region enter message is from the controller after it dumps the table.  Perhaps if configured with debug enabled we should do some application side checking of validity to make debug simpler.

It would be nice to also add an integration test of an app with bad markup and check for the failure message(s).

It would be nice to also add an integration test of an app with bad markup and check for the failure message(s).


Integration Test - Release - 2019/05/10 10:09:32

Auto create for integration test. IssueCommandFlow

@adunndevster : Thanks for your contribution! The author, @v-caxian, has been notified to review your proposed change.


MH-12747 Fix the JobProducerHeartbeat

This was failing on first run because of an NPE in AbstractUrlSigningProvider because the
organization context was not set for the URL.
Also add a try/catch block around the code so that errors are reported, and that an error
in one run doesn't prevent it from being invoked in future.

ServiceRegistryJpaImpl looks like a lot of changes but it's just a try/catch block and indentation for the code inside.

A git secret from https://blog.github.com/2011-10-21-github-secrets/! View diff ignoring whitespace:
https://github.com/opencast/opencast/pull/117/files?diff=unified&w=1

Code Looks good to me. I have seen the error in Opencast before. But i don't know how to reproduce this error. Any hint for me?

You could switch on debug logging for serviceregistry, in org.ops4j.pax.logging.cfg:
log4j.logger.org.opencastproject.serviceregistry=DEBUG

Then you should see the heartbeat start and stop every minute:
2018-03-08 16:11:26,537 | DEBUG | pool-33-thread-1 | (ServiceRegistryJpaImpl$JobProducerHeartbeat:3272) - Checking for unresponsive services
2018-03-08 16:11:26,946 | DEBUG | pool-33-thread-1 | (ServiceRegistryJpaImpl$JobProducerHeartbeat:3344) - Finished checking for unresponsive services

If you don't see that, then the JobProducerHeartbeat has stopped running.


add strict additionalProperties

What version of Ajv you are you using?
8.10
What problem do you want to solve?
We want to be able to pass data to validate() and without having to turn on any modifying functionality (removeAdditional) be sure that the data we're validating only has the requested properties unless specifically and explicitly asked for additional ones.
What do you think is the correct solution to problem?
extend the available strict mode options with a strictAdditional that forbids additional properties unless additionalProperties is set to true or a schema in the schema.
const ajv = new Ajv({ strictAdditional: true })
let validate = ajv.compileSchema({ properties: { a: { type: 'string' } } })
validate({ a: 'hi' })
// > true
validate({ a: 'hi', b: 'hello' })
// > false

validate = ajv.compileSchema({ properties: { a: { type: 'string' } }, additionalProperties: true })
validate({ a: 'hi' })
// > true
validate({ a: 'hi', b: 'hello' })
// > true

Will you be able to implement it?
If someone can point me in the right direction, maybe.

This is a change to JSON Schema specification - won’t be done, sorry. You may look into JTD spec that ajv also supports and that has exactly the semantics for additionalProperties that you ask - prohibited by default, only allowed with additionalProperties: true.
See this comparison: https://ajv.js.org/guide/schema-language.html#comparison
“Brand-new” is no longer the case - it’s supported since January 2021, and I used it on a high traffic service, both for validation and request body parsing.


patch-shebangs: use isScript to safely check for shebang start

Fixes commonly encountered errors about broken pipes or null-bytes in
command-substitution.
Fixing another source of errors in logs produced by our setup-hooks.
Have yet to push through full rebuild but using the modified setuphook
selectively in cases of my own showed the errors no longer occurring
and shebangs were fixed where found.

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

[ ] 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"
[ ] 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)
[ ] Fits CONTRIBUTING.md.

I'm surprised it hasn't been more problematic as well, and I think we do that correctly elsewhere although don't remember where offhand.  Makes sense to change that as well so only rebuild all the things once but might end up tackling separately as it's less "obviously correct" ;).

Nevermind, added all the mentioned fixups :).


perf(nuxt): use reducer array and avoid crashing if prototype is modified

🔗 Linked issue
resolves  https://github.com/nuxt/nuxt/issues/28769
📚 Description
devalue iterates over all properties (including prototype properties) of reducers passed to it (see https://github.com/Rich-Harris/devalue/pull/80). There may possibly be some valid use cases where users modify an object prototype, and this PR ensures that a Nuxt server won't crash in this case.
Regardless, for clarity, I would advise against mutating prototypes - plenty of other things may well crash in this case, without it being a bug or issue.
thanks to @lirantal for the original issue and working through this with me ❤

Thanks for working through all the examples and code reproduction code with me Daniel ❤❤❤


The split of QuickDraw train-test

If it is convenient, could you give us splits on Sketchy, Tu-Berlin and QuickDraw?

Both train and test, please

If it is convenient, could you give us splits on Sketchy, Tu-Berlin and QuickDraw?

Have you finally solved this problem? I also want to reproduce this paper


feature/testVariableEnviro

Is your feature request related to a problem? Please describe.
Feature to test enviro variables
Describe the solution you'd like
if tests fail then stop the pipeline build

Done


Demo application is missing dependencies

I was just in the process of forking the library and poking around the samples. When I tried to run npm run start I noticed that there are a couple of libraries missing. Specifically these are jsrsasign and express.
As these are dev dependencies it's probably worth adding them as currently the VanillaJS sample won't run.

Yea, someone just did a PR the other day to remove jsrsasign. I guess they didn't test this (nor did I).
I did one: https://github.com/IdentityModel/oidc-client-js/pull/767

Ok, and that fixed it. Thanks for letting me know.


c_str() / data() lifetime issues in generated targets

Some generated targets have the following bad pattern:
const char *server = stream.ConsumeRemainingBytesAsString().c_str();

The std::string returned by FuzzedDataProvider instantly goes out of scope, leading to UAF on use of the pointer.

We can potentially detect instances of this (and potentially more general issues) by checking if the ASan-reported free stack has LLVMFuzzerTestOneInput at the top, which indicates the freeing happened in the target.


Does anyone has documentation for rule engine processor?

Documentation which explains classes and its uses, flow of the code.
Thanks.

Hello, The rule engine base on Drools https://www.drools.org/.
The drl file syntax and specification you can read more @ https://www.tutorialspoint.com/drools/drools_quick_guide.htm


Factory Collector Minigame

A 4-player FFA minigame where each player fights to collect fuel cells and refuel their spaceship.

Required

[x] Throwing charge meter to increase velocity
[x] Thrown fuel objects that haven't hit the ground can stun if they hit a player
[ ] Use of right stick to change throw direction

[x] Show trajectory or directional vector

[ ] Change throw button to right trigger
[x] Attach a light object to fuel object
[x] Limit total number of fuel objects (somewhere around 10-12)
[x] Change fuel to spherical hitbox
[ ] Ending cutscene where the person with the most fuel goes the highest; person with least fuel goes the lowest
[ ] Starting sequence / intro
[x] Game timer
[ ] Add Minigame resource to minigame directory

Maze

[x] Remove procedural maze generation
[x] Static (prebuilt) maze system

[x] JSON or text grid
[x] Designate moving walls

Fuel Receptacle

[x] Update model
[ ] Add vacuum animation where the fuel gets sucked into a funnel or smth

Input

[ ] Trigger support
[x] Analog stick fix
[ ] More natural movement

Models

[x] Replace fuel generator with a ceiling tube / conveyor belt thing
[x] Light model

Wall mounted or hanging from the ceiling

[x] Rocket model

Possible
Ideas that we're not 100% sure if they will be added.

If a thrown object hits another player, it will come back towards the thrower

If they miss, the object will fall on the ground and not come back

Minimum throw strength value

Small Improvements
Smaller features that would be nice to have, but are not required.

Color the throw power meters based on player color (if the players end up being different colors)

Extras
Ideas that are completely conceptual and need further brainstorming.

Breakable walls
Throw fuel into walls to make them move
Moving furnaces (Goal point)
Fuel decays over time

Things to finish / polish by the end of the semester

[ ] Conveyors and launchers
[ ] Alternate combat

[ ] Punching to stun
[ ] Garbage items that can be thrown

[ ] Better background visuals


Fixed multiple iso mount points for VirtIO

If multiple images are generated using the same VirtIO ISO,
there is a chance that the imaging tool will dismount the VirtIO
ISO at a path in use, which triggers an error to apply the
drivers.
Copying the ISO to a backup file and mounting that ISO will
fix the issue.
This fix might be time / space consuming, but it is the only way
to make sure that the proper ISO is unmounted,
as there is no way to get the mount
point from the ISO file path itself, without making a persistance layer
logic to track which ISO file corresponds to which mount point and make
another persistence layer to track the mount points. Even if the mount
points and file paths are tracked, in highly used envs, there is a
probability that the mount points cannot be properly tracked due to
concurrency issues (when 2 ISOs are mounted at the +- epsilon time),
which is exactly what we want to avoid.

:white_check_mark: Build windows-openstack-imaging-tools 1.0.249 completed (commit https://github.com/cloudbase/windows-openstack-imaging-tools/commit/30d0098498 by @ader1990)


plot() method show two subplots

Checks

[x] I added a descriptive title to this issue
[ ] I have searched (Google, GitHub) for similar issues and couldn't find anything
[ ] I have read and followed the docs and still think this is a bug

Bug Description
Using the plot() method return two subplots.
Steps to Reproduce
network.plot()
network2.plot(nodes=p.iloc[1], links=f.iloc[1], fignum=0, robust=True)
Expected Behavior
If this is the default of plot(), how will the second plot be removed?
Screenshots

Additional context

Thank you for the issue!
This is not a bug in OOPNET but a general "issue" with matplotlib plots in jupyter notebooks, see for instance this statsmodels issue or this stack overflow post. The latter one also shows several options how to deal with this.
Closing the issue since there is nothing to fix.


Install-Package Microsoft.Windows.Compatibility // Unable to find dependent package(s) (System.Reflection.Emit.Lightweight)

Hello,
I am trying to install Microsoft.Windows.Compatibility package from NuGet with Powershell 6.0.2 console but I always get the same exception Unable to find dependent package(s) (System.Reflection.Emit.Lightweight)
I am not sure if I report this issue in the right place so please point me in the right direction if I am mistaken.
Steps to reproduce
Find-Package -Name Microsoft.Windows.Compatibility -ProviderName NuGet | Install-Package

Expected behavior
Installation of the package
Actual behavior
UnableToFindDependencyPackage Exception
Install-Package : Unable to find dependent package(s) (System.Reflection.Emit.Lightweight)
At line:1 char:74
+ ... ft.Windows.Compatibility -ProviderName NuGet | Install-Package -Force
+                                                    ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (System.Reflection.Emit.Lightweight:String) [Install-Package], Exception
+ FullyQualifiedErrorId : UnableToFindDependencyPackage,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

Environment data

> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      6.0.2
PSEdition                      Core
GitCommitId                    v6.0.2
OS                             Microsoft Windows 6.1.7601 S
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

WCP is already in PowerShell Core 6.1 - the PR was merged today.
So you get this in next preview or in release 6.1.

For 6.0.0-6.0.2, you can use PSCoreWindowsCompat https://www.powershellgallery.com/packages/PSCoreWindowsCompat/ if you just want to make the missing libraries loaded in powerShell.

Thanks.
I'll wait for the next release of 6.1.


[lookup] handle different table id 0

This PR moves the lookup constraint system to its own module so that we can specify it. It also refactors it as explained below.
We currently use an XOR table with id = 0 and the last dummy entry (0, 0, 0). We then generalize based on these assumptions:

we will always use the XOR table when doing lookups
the XOR table will always be the only table with id = 0

This is in part so that we can use the dummy entry.
This PR tries to improve the situation to avoid users shooting themselves in the foot:

it enforces that we cannot use different lookup tables with the same ID
it enforces that whatever is the table with ID = 0 then it has a dummy entry that is all zeros

This should allow us to do lookups without having to use the XOR table, as long as the first table has an entry with all-zeroes (BTW do we need this entry to be the last one? This is what we check in the XOR table but I don't see how it's important anymore)
If the tables you want to use don't have a single entry of all zeros, then create a DummyTable with ID=0 that has a single entry of all zeros.

cc @mrmr1993  I created this PR: https://github.com/o1-labs/proof-systems/pull/536 (in order to preserve this one)


In test_results.csv jobs ran with slurm are missing fields

The following is from my .csv file. The first two lines are from a test ran with slurm. The second two lines are from a test ran with moab.
StartDate,StartTime,EndDate,EndTime,TestName,JobId,SegmentName,NumNodes,NumCores,Params,Results,tdName,tdVal,tdUnits,Node
,,06-15-2016,17:11:47,hpl,,,1,16,"512m",Pass!,Time,67.06,seconds,0
,,06-15-2016,17:11:47,hpl,,,1,16,"512m",Pass!,Gflops,2.471e+02,Gflops,0
06-15-2016,17:09:57,06-15-2016,17:11:48,hpl,2861,ca005,1,16,"512m",Pass!,Time,62.62,seconds,0
06-15-2016,17:09:57,06-15-2016,17:11:48,hpl,2861,ca005,1,16,"512m",Pass!,Gflops,2.646e+02,Gflops,0
Anthony Agelastos is having this issue on sandia's solo cluster as well.

Ben Casses has fixed this with commit c538755d54b9cfbd2ab3eae7e739b57cf5deddaa.
I am assuming he has done his own testing.
My testing shows that it fixes the problem and does not introduce any new issues. Visual inspection of the code shows that the changes seem reasonable.


[Safari BUG] Persistent refresh with latest Safari 13.1 due to Basic Auth

Describe the bug
While accessing latest teslamate v1.19.1 from latest Safari v13.1 on Mac OS Mojave, and after the initial login, all pages including home, geo-fences and settings refresh in the browser non-stop and make teslamate unusable.   Firefox v75 and Google Chrome v81.0.4044.122 confirmed working fine, self-refresh issue seems limited to Safari
To Reproduce
Try to use latest teslamate with Safari 13.1
Expected behavior
Should work the same on all major browsers!
Relevant entries from the logs
n/a
Operating environment

TeslaMate Version: v1.19.1
Type of installation = Docker (Advanced Docker install (Traefik, Let’s Encrypt, HTTPS, HTTP Basic Auth))
Docker version = 19.03.7
Server OS: CentOS 7
Browser:  Safari 13.1
Client OS:  Mojave 10.14.6

Check out this comment (follow the bug report). It seems to be an unfixed bug regarding Safari + basic auth + websockets

@tacotran indeed.  However never had this issue (or noticed this issue) before now.

Expected behavior
Should work the same on all major browsers!

I agree. But the bug is in Safari, as @tacotran has correctly noticed, and has not been fixed for 8 years. Direct access to the web interface without basic authentication (from your home network) works in Safari. There are also alternatives to basic auth (#413) but that is not directly related to TeslaMate. That's why I'll close this.
Duplicate of #415

Hi @adriankumpf One more update on this, it seems the same issue that plagues Safari 13.1 on MacOS are also present in ALL the mobile browsers I test in iOS 13.3.  Chrome, Safari, Brave, Firefox, etc... all cannot use the teslamate web interface!

Yes, that's because Safari (and all other browsers) on iOS use the same WebKi engine as Safari on macOS.
As a workaround, you could configure Traefik so that the WebSocket traffic is not required to use basic auth:
       - "traefik.http.middlewares.auth.basicauth.usersfile=/auth/.htpasswd"
       - "traefik.http.routers.teslamate-insecure.rule=Host(`${FQDN_TM}`)"
       - "traefik.http.routers.teslamate-insecure.middlewares=redirect"
+      - "traefik.http.routers.teslamate-ws.rule=Host(`${FQDN_TM}`) && Path(`/live/websocket`)"
+      - "traefik.http.routers.teslamate-ws.entrypoints=websecure"
+      - "traefik.http.routers.teslamate-ws.tls"
       - "traefik.http.routers.teslamate.rule=Host(`${FQDN_TM}`)"
       - "traefik.http.routers.teslamate.middlewares=auth"
       - "traefik.http.routers.teslamate.entrypoints=websecure"

Thanks @adriankumpf I made the changes for Traffic under Teslamate in docker-compose.yml but now getting "bad gateway" when accessing teslamate.domain.com.  Here is the entire Traefik section in the teslamate section of docker-compose.yml:
   labels:
      - 'traefik.enable=true'
      - 'traefik.port=4000'
      - "traefik.http.middlewares.redirect.redirectscheme.scheme=https"
      - "traefik.http.middlewares.auth.basicauth.usersfile=/auth/.htpasswd"
      - "traefik.http.routers.teslamate-insecure.rule=Host(`${FQDN_TM}`)"
      - "traefik.http.routers.teslamate-insecure.middlewares=redirect"
      - "traefik.http.routers.teslamate-ws.rule=Host(`${FQDN_TM}`) && Path(`/live/websocket`)"
      - "traefik.http.routers.teslamate-ws.entrypoints=websecure"
      - "traefik.http.routers.teslamate-ws.tls"
      - "traefik.http.routers.teslamate.rule=Host(`${FQDN_TM}`)"
      - "traefik.http.routers.teslamate.middlewares=auth"
      - "traefik.http.routers.teslamate.entrypoints=websecure"
      - "traefik.http.routers.teslamate.tls.certresolver=tmhttpchallenge"

Can you try again w/ Safari 13.1.1?  Seems to finally work.

  Safari is still broken, I use Firefox and believe Chrome likely works as well.

@baylanger There is no Safari 13.1.1 for Mojave 10.14.6.  Apple's release notes page shows latest version is Safari 13.1, there is no mention of 13.1.1
I am hoping @adriankumpf has a fix for the Traefik options he provided above, as that will hopefully also fix the mobile browsers!

Catalina beta has Safari 13.1.1 but like I mentioned minutes ago the bug still hasn't been fixed.
The day an Apple employee installs Teslamate and complains it's not working, maybe it will get fix? 🤔

I hear ya @baylanger Let's hope one of them does :-). Intestinally your interface for teslamate on your sleeping TM3 that you posted above has additional info, like the 3 buttons on the top right and the "Charge Limit" info.  I am running latest teslamate v1.19.2 w/ same firmware, but am missing that info for my sleeping TM3. See below.  Any idea why?

Again, I was excited to see the feedback from @adriankumpf posted above, and if he can clarify/fix the Traefik options he provided we may have a temporary workaround.

  Safari is still broken, I use Firefox and believe Chrome likely works as well.

I have also gad this issue and cleared web cache/cookies to fix it but I also see this comment from a search on the subject:

HSTS Policy is now included in Safari's stored website data, and you can remove {webaddress} data to clear this issue.
command + ,
Privacy -> Manage Website Data...
Search {webaddress}
Click Remove
The trick here is that, at some point, you visited a {webaddress} with an HSTS policy, which means that it will never attempt to visit the HTTP version. This is a great security feature for websites generally, but problematic for local development.

@DrJohnM61 how does one figure out which website had an HSTS policy in order to remove it?  I checked and teslamate was NOT in my list.   Is there a way to remove any/all?

Since your browser defaulted to http and you were able to use https, there won't be an HSTS policy on that domain for you.
You should probably just not RP on port 80 and leave it open exclusively for LetsEncrypt traffic.

Does anyone have a fix for the Traefik section in the teslamate area of docker-compose.yml that Adrian posted but does not work?

Does anyone have a fix for the Traefik section in the teslamate area of docker-compose.yml that Adrian posted but does not work?

This may sound a little silly, but if you copied and pasted it from here, did you try re-typing it out manually? I've had quite awful experiences copying stuff (especially backticks) from various sources.

@tacotran nothing is silly when it comes to code :-)
I copied and pasted and then tried it manually too.  That's why I posted the full block of the Traefik section in the teslamate area of docker-compose.yml file.  Here it is again below.
If you try it does it work for you or fail with the "bad gateway" error like it did for me?
labels:
      - 'traefik.enable=true'
      - 'traefik.port=4000'
      - "traefik.http.middlewares.redirect.redirectscheme.scheme=https"
      - "traefik.http.middlewares.auth.basicauth.usersfile=/auth/.htpasswd"
      - "traefik.http.routers.teslamate-insecure.rule=Host(`${FQDN_TM}`)"
      - "traefik.http.routers.teslamate-insecure.middlewares=redirect"
      - "traefik.http.routers.teslamate-ws.rule=Host(`${FQDN_TM}`) && Path(`/live/websocket`)"
      - "traefik.http.routers.teslamate-ws.entrypoints=websecure"
      - "traefik.http.routers.teslamate-ws.tls"
      - "traefik.http.routers.teslamate.rule=Host(`${FQDN_TM}`)"
      - "traefik.http.routers.teslamate.middlewares=auth"
      - "traefik.http.routers.teslamate.entrypoints=websecure"
      - "traefik.http.routers.teslamate.tls.certresolver=tmhttpchallenge"

I don't use Traefik because I already had a pretty extensive apache/httpd setup prior to using TeslaMate.
I also switched away from using Basic Auth and slapped together a basic redirect login page so that I could save my password in my instead of logging in to the popup every single time.

@tacotran That sounds like a nice workaround, care to share the details on how you did the login page and what had to change in the teslamate config file to make it work?

@SemoTech Sure. Bonus Grafana under subpath so you don't need two FQDNS.
Follow the apache basic conf and in docker-compose.yml under grafana/environment:
    environment:
      - DATABASE_USER=${TM_DB_USER}
      - DATABASE_PASS=${TM_DB_PASS}
      - DATABASE_NAME=${TM_DB_NAME}
      - DATABASE_HOST=database
      - GRAFANA_PASSWD=${GRAFANA_PW}
      - GF_SECURITY_ADMIN_USER=${GRAFANA_USER}
      - GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_PW}
      - GF_AUTH_BASIC_ENABLED=true
      - GF_AUTH_ANONYMOUS_ENABLED=false
-     - GF_SERVER_ROOT_URL=https://${FQDN_GRAFANA}
+     - GF_SERVER_ROOT_URL=%(protocol)s://%(domain)s:%(http_port)s/grafana
+     - GF_SERVER_SERVE_FROM_SUB_PATH=true

From the teslamate.conf for apache:
+       Alias "/auth" "/path/to/your/webroot"
+       ProxyPass /auth !
        ProxyPass /live/websocket ws://<IP_ADDRESS>:4000/live/websocket
        ProxyPassReverse /live/websocket ws://<IP_ADDRESS>:4000/live/websocket
+       ProxyPass /grafana http://<IP_ADDRESS>:3000
+       ProxyPassReverse /grafana http://<IP_ADDRESS>:3000
        ProxyPass / http://<IP_ADDRESS>:4000/
        ProxyPassReverse / http://<IP_ADDRESS>:4000/

Same file:
        <Proxy *>
-           Authtype Basic
+           Authtype Form
+           AuthFormProvider file
+           SessionCookieName session path=/
+           AuthFormLoginRequiredLocation "https://teslamate.domain.com/auth/login.html"
+           ErrorDocument 401 "/auth/login.html"
            Authname "Password Required"
            AuthUserFile /etc/apache2/.htpasswd
            Require valid-user
        </Proxy>

You'll need to drop your login.html in "/path/to/your/webroot". Here's a really basic sample below, or you can find a free one online to drop in.
<html>
	<head>
		<title>Login page</title>
	</head>
	<body>
		<form method="POST" action="">
			User: <input type="text" name="httpd_username" value="" />
			Pass: <input type="password" name="httpd_password" value="" />
			<input type="submit" name="login" value="Login" />
		</form>
	</body>
</html>

Than you @tacotran very interesting and promising.  Only snag is that since I was unable to get this to work at all in a cPanel/WHM environment (hence why I posted HERE asking for some help), I ended up using a raw CentOS 7 compute instance with docker pre-installed, and followed the simpler Traefik tutorial for TeslaMate.  Therefore I have no  "teslamate.conf for apache" file, as there is no Apache.  Could you be so kind as to adjust the instructions for this configuration? Thanks!

Again, I have zero experience with Traefik. From a quick glance the only other two auth options it provides are ForwardAuth and DigestAuth and neither of those work with this method.

@tacotran No worries, all your help is much appreciated.  I managed to get it to work perfectly with the changes Adrian posted and updated the main docs with.  The "Bad Gateway" error was apparently related to browser caching, and is now resolved.
Now if I could only find someone to get this to work in cPanel with User Namespaces enabled, I can stop paying for 3rd party hosting...

Hi @tacotran, I have an issue to let TM work in a subpath of an existing web server.
I succeeded with grafana (it works like a charm) thanks to the same tricks as you in this thread but those possibilities seem to be natively absent in teslamate.
Is there any trick/workaround to let Apache2/Proxy transform URL with an leading /teslamate subpath (or any other approach that works) ?
Thanks in advance !


Flac files cause exception indicating wrong data shape for librosa stft

Description
Installed using pip install spleeter. Python version 3.9.9, tf version 2.5.0, spleeter 2.3.0. I pass a numpy array into an instantiation of a Separator class object to get the stem predictions. My unit tests pass with WAV, AIF and AIFF files but not with FLAC. I get the error below.
Error
Traceback (most recent call last):
File "C:\\\\src\handlers\scheduler\scheduler.py", line 198, in run_job
stems = separator.separate(audio_signal.signal.T)
File "C:\\\\venv\lib\site-packages\spleeter\separator.py", line 321, in separate
return self._separate_librosa(waveform, audio_descriptor)
File "C:\Users\Christian\Documents\cbhower\OriginAudio\SoundSeparatorApp\venv\lib\site-packages\spleeter\separator.py", line 260, in _separate_librosa
stft = self._stft(waveform)
File "C:\\\\venv\lib\site-packages\spleeter\separator.py", line 204, in _stft
np.concatenate((np.zeros((N,)), data[:, c], np.zeros((N,))))
IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\\\\src\handlers\scheduler\scheduler.py", line 239, in run_job
CosmosDBService.log_message(json.dumps({
File "C:\\AppData\Local\Programs\Python\Python39\lib\json_init_.py", line 231, in dumps
return _default_encoder.encode(obj)
File "C:\\AppData\Local\Programs\Python\Python39\lib\json\encoder.py", line 199, in encode
chunks = self.iterencode(o, _one_shot=True)
File "C:\\AppData\Local\Programs\Python\Python39\lib\json\encoder.py", line 257, in iterencode
return _iterencode(o, 0)
File "C:\\AppData\Local\Programs\Python\Python39\lib\json\encoder.py", line 179, in default
raise TypeError(f'Object of type {o.class.name} '
TypeError: Object of type IndexError is not JSON serializable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\\\\venv\lib\site-packages\parameterized\parameterized.py", line 533, in standalone_func
return func(*(a + p.args), **p.kwargs)
File "C:\\\\src\handlers\scheduler\test_scheduler.py", line 71, in test_schedule_jobs
JobScheduler.run_job()
File "C:\\\\src\handlers\scheduler\scheduler.py", line 276, in run_job
CosmosDBService.log_message(json.dumps({
File "C:\\\Programs\Python\Python39\lib\json_init_.py", line 231, in dumps
return _default_encoder.encode(obj)
File "C:\\\Programs\Python\Python39\lib\json\encoder.py", line 199, in encode
chunks = self.iterencode(o, _one_shot=True)
File "C:\\\Programs\Python\Python39\lib\json\encoder.py", line 257, in iterencode
return _iterencode(o, 0)
File "C:\\\Programs\Python\Python39\lib\json\encoder.py", line 179, in default
raise TypeError(f'Object of type {o.class.name} '
TypeError: Object of type TypeError is not JSON serializable
Environment
| OS | Windows |
| Installation type | pip |
| Hardware spec     | GPU=RTX2070 / CPU=i7-10750H/ |

Hi @cbhower,
it is quite strange that the tests fail only with flac files. All audio files are loaded with ffmpeg that is supposed to output the same format whatever the input file.
Can you double check that your flac file does load properly with ffmpeg?


URL in Prisma Client's error message is not ellipsified

Bug description
When Prisma Client encounters a Rust Panic, it crashes like so:

Here's the URL is supposed to be ellipsified, but isn't
How to reproduce
Use this (incorrect) schema:
model User {
  id    Int
  name  String
  email String

  @@unique([name, name])
}

Use this script:
await prisma.user.findOne({
      where: {
        name_name: {
          name: "Something",
        },
      },
    })

Expected behavior
The URL should be shortened / ellipsified
Environment & setup

OS: macOS
Database: Postgres
Prisma version: @prisma/cli          : 2.0.0-alpha.1299
Current platform     : darwin
Query Engine         : query-engine d88852ac341cdf3c7379a08fa1ebc5c444a4aa67
Migration Engine     : migration-engine-cli d88852ac341cdf3c7379a08fa1ebc5c444a4aa67
Introspection Engine : introspection-core d88852ac341cdf3c7379a08fa1ebc5c444a4aa67
Format Binary        : prisma-fmt d88852ac341cdf3c7379a08fa1ebc5c444a4aa67
Node.js version: v12.16.3

I can't reproduce this via that script. Please read: https://github.com/prisma/prisma/issues/2668#issuecomment-641689559


Swap eat for guzzle for the dwarven rock cake

Guzzling the Dwarven rock cake provides damage of 10% vs 1hp when eating. This should make reaching 1 player hitpoint much less click intensive.

As has been mentioned in the 3 closed issues (#1860, #7109, #9488) and the 3 closed PRs (#2118, #8521, #9138), we'd rather Shift Click configuration is used for this use case


AddressLowering: rewrite the call-site lowering logic.

This pass now canonicalizes results before lowering and handles all combinations
of direct and indirect multiple return values. The logic is much less ad-hoc and
more robust.
try_apply still isn't handled, but should be much easier now.
Add visitLoadInst, visitStoreInst, visitDebugValueInst, etc.

@swift-ci test and merge.

@swift-ci smoke test and merge

@swift-ci smoke test and merge.


[now dev] Fix directory listing race condition

Fix directory listing race condition

Codecov Report

Merging #2591 into canary will increase coverage by 0.01%.
The diff coverage is 28.57%.

@@            Coverage Diff             @@
##           canary    #2591      +/-   ##
==========================================
+ Coverage   13.82%   13.84%   +0.01%
==========================================
  Files         257      257
  Lines        9357     9359       +2
  Branches     1058     1058
==========================================
+ Hits         1294     1296       +2
  Misses       7941     7941
  Partials      122      122

Impacted Files
Coverage Δ

src/util/dev/builder.ts
74.69% <100%> (+0.15%)
:arrow_up:

src/util/dev/server.ts
64.44% <16.66%> (+0.06%)
:arrow_up:

Continue to review full report at Codecov.

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


JavaScript code blocks don't have syntax highlighting

Hi,
JavaScript (PascalCase) code blocks don't have syntax highlighting in Deno Third Party Modules.
```JavaScript
import Cron from "https://deno.land/x/cronnor/mod.js";
```

But javascript (lowercase) and js blocks do have highlighting.
Exemple with:

JavaScript (PascalCase): Deno:x: / GitHub:heavy_check_mark: / npm:heavy_check_mark: (source)
javascript (lowercase): Deno:heavy_check_mark: / GitHub:heavy_check_mark: / npm:heavy_check_mark: (source)
js: Deno:heavy_check_mark: / GitHub:heavy_check_mark: / npm:heavy_check_mark: (source)

Direct use of Prism.js (the tool used by dotland for syntax highlighting) is case insensitive: https://jsbin.com/xikurikeli/1/edit?html,output

^ this issue was upstream! I created a PR to resolve this, then all this project would need is a dependency bump.


Add support for physical keyboard on Android

Godot version:
All 3.0 branches (stable/master)
OS/device including version:
Android
Issue description:
Godot v3 does not support physical keyboards on Android. It does not recognize input events.
Steps to reproduce:

Create a Godot Android Project that prints input events
Connect a physical keyboard using an OTG cable to your phone
Run the project in the Android cellphone
Test it pushing the physical keyboard keys

Minimal reproduction project:
InputTester.zip

I've identified why this isn't working and am working on a sensible fix.
The problem is occurring in GodotView.java, about line 358:
if ((source & InputDevice.SOURCE_JOYSTICK) == InputDevice.SOURCE_JOYSTICK
|| (source & InputDevice.SOURCE_DPAD) == InputDevice.SOURCE_DPAD
|| (source & InputDevice.SOURCE_GAMEPAD) == InputDevice.SOURCE_GAMEPAD) {
// do a bunch of stuff
}
else
{
// keyboard input
}

The problem is occurring because according to the constants, SOURCE_GAMEPAD is a type of keyboard.
The constant for SOURCE_GAMEPAD is 1025
10000000001
and the constant for SOURCE_KEYBOARD is 257
100000001
Thus if it is keyboard input the test for gamepad is always passing (because bit zero is also set), and it never entering the 'else' part of the code.

Progress report:
Luckily the main functionality for keyboard input already exists (dating back to 2014 or so, some of it?) .. however it is currently broken by the above bug.
I've prepared a rather simple fix but I'm trying my best to ensure it does not impact on other input methods. I might need help on this, I may end up posting a test APK. I do have an android wireless gamepad myself but not tested it yet with Godot.
Anyway the fix so far is to replace the rather cumbersome if statement with a function, both in onKeyDown and onKeyUp (to avoid duplication of code):
private boolean isKeyEventSourceGameDevice(int source) {
	// Physical keyboard input (SOURCE_KEYBOARD) can also be a SOURCE_DPAD
	// We need to distinguish physical keyboard from DPAD
	if ((source & InputDevice.SOURCE_KEYBOARD) == InputDevice.SOURCE_KEYBOARD)
		return false;

	// Is the source from a non-keyboard game device we are interested in?
	return (source & InputDevice.SOURCE_JOYSTICK) == InputDevice.SOURCE_JOYSTICK
	|| (source & InputDevice.SOURCE_DPAD) == InputDevice.SOURCE_DPAD
	|| (source & InputDevice.SOURCE_GAMEPAD) == InputDevice.SOURCE_GAMEPAD;
}

Once this is in it correctly sends keyboard events to Godot.
However what made things rather difficult is there seems to be a bug in the google android emulator. It has keyboard support but seems to do repeats by repeatedly sending keydown and keyup events with repeat count of zero. Which is fine for typing, but rather confusing for game input.
Anyway I've tried it out on my android tv box with a wireless keyboard and it doesn't have this problem on actual device, it seems to work as expected.
Another issue I've just tracked down is the old code calls super.onKeyDown(keyCode, event); regardless of whether we have processed the keyboard input. This is doing something weird when the cursor keys are pressed, perhaps there is some default action for the cursors on Android causing it to lose focus. An easy fix for this for now is to simply return true and not call the super function - this is after all what the current broken code was doing.

Spent the day doing more work on this issue, thank you to @wombatstampede for helping me with testing.
I have prepared a test APK (arm only) that will show you the keys as you are pressing physical keyboard, and also shows you the source value for the keyEvent:
https://github.com/lawnjelly/GodotTweaks/blob/master/InputTests/KeyboardTest5.apk
wombatstampede reports that the existing godot keyboard input works for him on his phone (with in built physical keyboard) already in Godot 3.1, leading me to believe it is reporting a source of 257 (SOURCE_KEYBOARD). However, every other keyboard that I have attached either on the android emulator or via wireless on devices, or indeed the tv controller on my tv box reports a source of 769 (SOURCE_KEYBOARD | SOURCE_DPAD). This would explain why for some people keyboard input works, and not for others.
After getting some negative consequences from the technique in the previous post I am now currently of the view that the best way of getting keyboard input without interfering with joystick / gamepad buttons may be to change the if statement from:
// Is the source from a non-keyboard game device we are interested in?
return (source & InputDevice.SOURCE_JOYSTICK) == InputDevice.SOURCE_JOYSTICK
|| (source & InputDevice.SOURCE_DPAD) == InputDevice.SOURCE_DPAD
|| (source & InputDevice.SOURCE_GAMEPAD) == InputDevice.SOURCE_GAMEPAD;

to
// Is the source from a non-keyboard game device we are interested in?
return (source & InputDevice.SOURCE_JOYSTICK) == InputDevice.SOURCE_JOYSTICK
|| (source & InputDevice.SOURCE_GAMEPAD) == InputDevice.SOURCE_GAMEPAD;

i.e. remove the SOURCE_DPAD from consideration. It seems almost as if there has been a translation error by the Android developers where dpad has been translated to/from another language, and the value is now meaningless.
Please let me know the results of testing any keyboards / gamepad buttons / remote controls with the test APK, especially the 'onKeyDown source'.
Essentially the physical keyboard is working fine now I'm just trying to minimize the chance of knock on effects breaking something else in the Android input. If these tests go ok, then I'll prepare a pull request for the changes.


[Bug]: Add font wrap

Description
In the screenshot check the card problem. Need to add font wrap.
To Reproduce
In the project section.
My Browser: Brave
Anything else?

Code of Conduct

[X] I agree to follow this project's Code of Conduct

@priyankarpal can you tell me how you generated this bug so I can test it?

I just scrolling the website & found this problem

Hey! Will yo like to work on this @priyankarpal?

Hey! Will yo like to work on this @priyankarpal?

yeah sure. Just tell me the project structure. I confused

Ask on the Discord channel.

Ask on the Discord channel.

Just solved this issue. Going to create PR

Oh! Awesome! Great to hear that!

Any updates on this @priyankarpal?

Any updates on this @priyankarpal?

I will open a PR tomorrow. IST

Any updates on this @priyankarpal?

I will open a PR tomorrow. IST

Sounds good! Go ahead!


Remove zero column pixel cluster columns from cell clustering pipeline

What is the purpose of this PR?
Closes #882. Occasionally, there will be pixel cluster expression columns consisting of all zeros for cell clustering. This will happen when certain pixel clusters are not expressed in any cell of a cohort. During column normalization, this will set all the values to NA and subsequently throw errors during SOM training.
Instead, training should proceed as normal with these columns removed.
How did you implement your changes
In create_c2pc_data, which generates the input data to the cell SOM, we add a check at the end that removes all-zero expression columns prior to returning. This will apply to both the unnormalized version (which is used for weighted cell channel calculation) and normalized version (the SOM input data).

@cliu72 tested that this works. Tagged @HPiyadasa for additional testing purposes too.

@cliu72 updated to filter cell_counts_cluster_ids on the existing pixel cluster values in compute_p2c_weighted_cell_channel_avg. Let me know if this new version works.

@cliu72 just wanted to follow up on this one, let me know if you have any additional comments!


Validation Attributes do not apply to default values

Prerequisites

[X] Write a descriptive title.
[X] Make sure you are able to repro it on the latest released version
[X] Search the existing issues.
[X] Refer to the FAQ.
[X] Refer to Differences between Windows PowerShell 5.1 and PowerShell.

Steps to reproduce
Apologies if this is a dupe, I couldn't find one in the issues
I see this "mistake" made pretty commonly, but it feels like this should be caught as a runtime error or, at the very least, a PSSA rule.
function GetSomething () {
  Write-Verbose "I failed to get something and returned null"
}

function Test {
  param(
    [Parameter()][ValidateNotNullOrEmpty]$EmptyDefault = $(GetSomething -Verbose)
  )
  "EmptyDefault is null: $($null -eq $emptyDefault)"
}

Expected behavior
NotNullOrEmpty Validation Error

Actual behavior
VERBOSE: I failed to get something and returned null
EmptyDefault is null: True

Environment data
Name                           Value
----                           -----
PSVersion                      7.2.3
PSEdition                      Core
GitCommitId                    7.2.3
OS                             Microsoft Windows 10.0.22621
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

PSSA rule it is then :)


Use span.update_context to avoid DroppedSpan issues in Elasticsearch instrumentation

What does this pull request do?
We were setting the context directly instead of using span.update_context -- which meant if the span was dropped, it would throw a KeyError
Related issues
Closes #1689

:grey_exclamation: Build Aborted

There is a new build on-going so the previous on-going builds have been aborted.

the below badges are clickable and redirect to their specific view in the CI or DOCS

Expand to view the summary

Build stats

Start Time: 2022-11-07T16:08:58.198+0000

Duration: 5 min 34 sec

Steps errors
Expand to view the steps failures

Show only the first 10 steps failures

Restore files previously stashed

Took 0 min 0 sec . View more details here
Description: coverage-python-3.11-httplib2-newest

Restore files previously stashed

Took 0 min 0 sec . View more details here
Description: coverage-python-3.11-prometheus_client-newest

Restore files previously stashed

Took 0 min 0 sec . View more details here
Description: coverage-python-3.11-sanic-newest

Restore files previously stashed

Took 0 min 0 sec . View more details here
Description: coverage-python-3.11-aiomysql-newest

Restore files previously stashed

Took 0 min 0 sec . View more details here
Description: coverage-python-3.11-aiobotocore-newest

Restore files previously stashed

Took 0 min 0 sec . View more details here
Description: coverage-python-3.11-kafka-python-newest

Restore files previously stashed

Took 0 min 0 sec . View more details here
Description: coverage-3.7-none

Restore files previously stashed

Took 0 min 0 sec . View more details here
Description: coverage-3.8-none

Restore files previously stashed

Took 0 min 0 sec . View more details here
Description: coverage-3.9-none

python coverage

Took 0 min 0 sec . View more details here
Description: python3 -m coverage combine && python3 -m coverage xml

:robot: GitHub comments
Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

/test : Re-trigger the build.

/test linters : Run the Python linters only.

/test full : Run the full matrix of tests.

/test benchmark : Run the APM Agent Python benchmarks tests.

run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

:globe_with_meridians: Coverage report

Name
Metrics % (covered/total)
Diff

Packages
100.0% (68/68)
:green_heart:

Files
100.0% (230/230)
:green_heart:

Classes
100.0% (230/230)
:green_heart:

Lines
92.192% (18456/20019)
:+1:

Conditionals
75.244% (2854/3793)
:+1:


Fix wrong argument order in README.md

The command for creating the kernel had the wrong order.

Thanks Nelihan. The error is fixed. :)


created CODEOWNERS FILE

Closes: #74
Added CODEOWNERS FILE

@all-contributors please add @Xzm27 as code


Limit bucket name length in templates

Describe your changes
Checklist before requesting a review

[X] I updated CHANGELOG.MD with a description of my changes
[X] If the change was to a module, I ran the code validation script (scripts/validate.sh)
[X] If the change was to a module, I have added thorough tests
[ X If the change was to a module, I have added/updated the module's README.md
[X] If a module was added, I added a reference to the module to the repository's README.md
[X] I verified that my code deploys successfully using seedfarmer apply

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

AWS CodeBuild CI Report

CodeBuild project: AIOpsModuleTestsInfrastruct-doMLXEYsnmxr
Commit ID: a07fcde52f69402da55556f9c3f11b0b2a831900
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


Nuxt 1.4 to 2.6.3 upgrade made app slow

I've upgraded my nuxt version from 1.4 to 2.6.3. And it started to work great for development. But when we deployed it to the production it increased the initial load time for even static pages. Is there any way using which I can debug where the time is being taken for initial load?
My package.json (new) looks as below:
...
  "dependencies": {
    "@nuxtjs/axios": "^5.3.6",
    "@nuxtjs/moment": "^1.2.0",
    "@nuxtjs/proxy": "^1.3.3",
    "bootstrap": "^4.1.3",
    "bootstrap-vue": "^2.0.0-rc.11",
    "bytes": "^3.1.0",
    "cookie-universal-nuxt": "^2.0.14",
    "copy-to-clipboard": "^3.1.0",
    "cross-env": "^5.2.0",
    "exif-js": "^2.3.0",
    "express": "^4.16.4",
    "file-saver": "^2.0.1",
    "is-color": "^1.0.2",
    "load-script": "^1.0.0",
    "moment": "^2.24.0",
    "numeral": "^2.0.6",
    "nuxt": "^2.4.0",
    "query-string": "^6.5.0",
    "slugify": "^1.3.4",
    "svg.js": "^2.7.1",
    "url-parse": "^1.4.7",
    "uuid": "^3.3.2",
    "vee-validate": "^2.2.5",
    "vue-carousel": "^0.18.0",
    "vue-color": "git+https://github.com/Iconscout/vue-color.git",
    "vue-gtm": "^2.0.0",
    "vue-i18n": "^8.11.2",
    "vue-infinite-scroll": "^2.0.2",
    "vue-lazyload": "^1.2.6",
    "vue-observe-visibility": "^0.4.3",
    "vue-smoothscroll": "^0.2.0",
    "vue-social-sharing": "^2.4.3",
    "vue-typer": "^1.2.0",
    "vue2-transitions": "^0.3.0",
    "vuebar": "0.0.20",
    "vuedraggable": "^2.20.0",
    "vuejs-datepicker": "git+https://github.com/Iconscout/vuejs-datepicker.git"
  },
  "devDependencies": {
    "@nuxtjs/eslint-config": "^0.0.1",
    "babel-eslint": "^10.0.1",
    "dotenv": "^7.0.0",
    "eslint": "^5.15.1",
    "eslint-config-prettier": "^4.1.0",
    "eslint-config-standard": ">=12.0.0",
    "eslint-loader": "^2.1.2",
    "eslint-plugin-import": ">=2.16.0",
    "eslint-plugin-jest": ">=22.3.0",
    "eslint-plugin-node": ">=8.0.1",
    "eslint-plugin-nuxt": ">=0.4.2",
    "eslint-plugin-prettier": "^3.0.1",
    "eslint-plugin-promise": ">=4.0.1",
    "eslint-plugin-standard": ">=4.0.0",
    "eslint-plugin-vue": "^5.2.2",
    "fs-plus": "^3.1.1",
    "husky": "^2.1.0",
    "lint-staged": "^8.1.5",
    "node-sass": "^4.12.0",
    "nodemon": "^1.18.9",
    "prettier": "^1.16.4",
    "sass-loader": "^7.1.0",
    "vue-svgicon": "^3.2.6"
  },
...

Status page: https://status.iconscout.com/check/35179?timefilter=720
I've updated the framework on 7th.
Can anyone guide me on how to debug this issue?

This question is available on Nuxt community (#c9191)

@pi0 Can you help with this?


nginx 1.4.7 hangs on requests with eval

Nginx is compiled only with this module.
I've downloaded module from:
http://www.grid.net.ru/nginx/download/nginx_eval_module-1.0.1.tar.gz
And it hangs on request.
worker_processes  1;
error_log  logs/error.log  info;

events {
    use epoll;
    worker_connections 1024;
    multi_accept on;
}

http {
    include       mime.types;
    default_type  text/plain;
    sendfile        on;
    keepalive_timeout  5;

    server {
        listen 80;
        server_name test.local;

        location / {

            eval $res {
                proxy_set_header Host $http_host;
                proxy_pass http://<IP_ADDRESS>:8081/check;
            }

            if ($res = 'spam') {
                return 401;
            }
            if ($res != 'spam') {
                return 404;
            }
        }

    }

}

I can see communication with my upstream server:
<IP_ADDRESS>.42387-<IP_ADDRESS>.08081: GET /check HTTP/1.0
Host: test.local
Connection: close
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: pl,en-US;q=0.7,en;q=0.3
Accept-Encoding: gzip, deflate
Cache-Control: max-age=0

<IP_ADDRESS>.08081-<IP_ADDRESS>.42387: HTTP/1.1 200 OK
Content-Type: application/octet-stream
Content-Length: 11
Date: Sun, 30 Mar 2014 11:37:29 GMT
Connection: close

exampletext

Request and response are OK but after that nothing happend. Request hangs...
From port 80 perspective I have:
<IP_ADDRESS>.54814-<IP_ADDRESS>.00080: GET / HTTP/1.1
Host: test.local
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: pl,en-US;q=0.7,en;q=0.3
Accept-Encoding: gzip, deflate
Connection: keep-alive
Cache-Control: max-age=0

And after couple of seconds connection is closed.
Help me. Thanks!

As for me, it happens because nginx didn't read the request body yet. This is exactly why we use lua_need_request_body on; in ngx_lua module. Though, I don't know how to say to eval module to read the body in advance.


Does not work with browserify out of the box

I've installed phaser with npm, and used require in my app file, then browserified it.
In the browser I get this error:
Uncaught ReferenceError: PIXI is not defined

Yes it needs setting as a global, here's a package.json you can adapt:
{
  "main": "./main.js",

  "browser": {
    "phaser": "../../phaser/dist/phaser-test.js"
  },

  "browserify-shim": {
    "phaser": "global:Phaser",
    "pixi": "global:PIXI"
  },

  "browserify": {
    "transform": [ "browserify-shim" ]
  },

  "devDependencies": {
    "browserify": "^11.0.0",
    "browserify-shim": "^3.8.10"
  }
}

Thank you :+1:

I'm experiencing a similar problem (I'm running browserify using gulp).
Here's my package.json (with irrelevant entries removed):
{
  "dependencies": {
    "phaser": "^2.4.4",
    "pixi": "^0.3.1"
  },
  "browserify-shim": {
    "phaser": "global:Phaser",
    "pixi": "global:PIXI"
  },
  "browserify": {
    "transform": [
      "browserify-shim"
    ]
  },
  "devDependencies": {
    "browserify": "^12.0.1",
    "browserify-shim": "^3.8.11",
    "gulp": "^3.9.0",
    "vinyl-source-stream": "^1.1.0"
  }
}

Here's my gulpfile:
var gulp = require('gulp');
var browserify = require('browserify');
var source = require('vinyl-source-stream');

gulp.task('browserify', function() {
    return browserify('./src/js/main.js')
      .bundle()
      .pipe(source('bundle.js'))
      .pipe(gulp.dest('./dist/js/'));
});

gulp.task('default', ['browserify']);

Here's my main.js:
var PIXI = require('pixi');
var Phaser = require('phaser');

window.onload = function() {

  console.log('hey');

  var game = new Phaser.Game(800, 600, Phaser.AUTO, '', {
    preload: preload,
    create: create
  });

  function preload () {

    game.load.image('logo', 'phaser.png');

  }

  function create () {

    var logo = game.add.sprite(game.world.centerX, game.world.centerY, 'logo');
    logo.anchor.setTo(0.5, 0.5);

  }

};

The console tells me that Phaser is undefined. What am I doing wrong?

@benwiley4000 you're including pixi, it should be pixi.js

@benwiley4000 I think your problem is you have no alias for phaser in your package.json: https://github.com/thlorenz/browserify-shim#b-use-aliases. You also don't need to include pixi like mattstyles says. I'm currently trying to find out why I keep getting a call function property undefined involving Phaser.Device.__readyCheck after bundling. Unlike the original response though, I am not using globals since that would require including the required js files into your main html file.

I take that back my problem, I forgot to instantiate Phaser.Game as new Phaser.Game.


Updates for 2.13.0-RC3 [WIP]

I think we're just waiting on scodec-bits now (and scala-java-time, although that's not really a blocker).

I guess this can be renamed to be for 2.13.0
Issue to track scala-java-time release: https://github.com/cquiroz/scala-java-time/issues/101

@nafg Yep, just opened a new branch / PR.

scala-java-time 2.0.0-RC3 has been released for 2.13.0


Not working in WSL

I followed the instructions mentioned at https://wakatime.com/terminal but I get the following error on WSL:
: command not found
bash: /home/<username here>/bash-wakatime.sh: line 12: syntax error near unexpected token `$'{\r''
'ash: /home/<username here>/bash-wakatime.sh: line 12: `pre_prompt_command() {

This used to work fine in Git Bash. I recently came over to WSL2 and I am unable to get it to work.

Hi, which linux distro have you installed?

Duplicate of https://github.com/irondoge/bash-wakatime/issues/13.

Hi, which linux distro have you installed?

@gandarez I have Ubuntu.


scrollbar-y taking up space

taking up space the content when scrollbar is displayed

Fixed it with css
html {
  overflow-y: overlay;
}


Including html file

This time I want to use PlotlyJS (and its interactive plots) and can't figure out how to insert the generated html into a page. Did I miss a command that is for this purpose? Or should I write my own? 😄 😄
PS: what do you find a better option?

Adding plotly-latest.min.js to /libs or
Download on the fly (https://plot.ly/javascript/getting-started/)

So  to insert HTML on a  page, just do
~~~
THE HTML
~~~

if it's  generated and  in a  file myhtml.html you  can also do
some markdown
~~~
{{insert path/to/myhtml.html}}
~~~

I'll try to come up with a working example with Plotly  later, it's a good idea :-)

Ok here are simple steps to  a working example.

(optional) create a new website

newsite("plotly", template="sandbox")

download the plotly  file from https://plot.ly/javascript/getting-started/, put it in /libs/plotly/plotly.min.js

then

modify src/_html_parts/head.html to  have the lines (the first 2 are already  there, just  add  the 3d one)

{{if hasmath}} {{insert head_katex.html }}     {{end}}
{{if hascode}} {{insert head_highlight.html }}   {{end}}
{{if hasplotly}}  {{end}}

in src/index.md add

## Plotly

~~~

~~~

Now if you `serve()` you  get

Now something even fancier is to  have Julia code generating the plot in your markdown, there's a few more steps but it shouldn't be much more difficult. I'll get back soon with an  example


join() fails with ExitCodeException=255

A following query fails with spar-native-yarn:
val rdd1 = sc.textFile("hdfs:///user/ozawa/randomText20GB").flatMap(line => line.split(" ")).map(word => (word, 1))
val rdd2 = sc.textFile("hdfs:///user/ozawa/randomText20GB").flatMap(line => line.split(" ")).map(word => (word, 1))
rdd1.join(rdd2, 28).saveAsTextFile("hdfs:///user/ozawa/outs/tez/join/1")

14/11/27 01:27:02 INFO rpc.DAGClientRPCImpl: DAG: State: FAILED Progress: 63.16% TotalTasks: 76 Succeeded: 48 Running: 0 Failed: 1 Killed: 27
14/11/27 01:27:02 INFO rpc.DAGClientRPCImpl: VertexStatus: VertexName: 1 Progress: 100% TotalTasks: 24 Succeeded: 24 Running: 0 Failed: 0 Killed: 0
14/11/27 01:27:02 INFO rpc.DAGClientRPCImpl: VertexStatus: VertexName: 2 Progress: 100% TotalTasks: 24 Succeeded: 24 Running: 0 Failed: 0 Killed: 0
14/11/27 01:27:02 INFO rpc.DAGClientRPCImpl: VertexStatus: VertexName: 0 Progress: 0% TotalTasks: 28 Succeeded: 0 Running: 0 Failed: 1 Killed: 27
14/11/27 01:27:02 INFO rpc.DAGClientRPCImpl: DAG completed. FinalState=FAILED
14/11/27 01:27:02 INFO tez.DAGBuilder: DAG execution complete
14/11/27 01:27:02 ERROR tez.DAGBuilder: DAG diagnostics: [Vertex failed, vertexName=0, vertexId=vertex_1417036912823_0003_1_02, diagnostics=[Task failed, taskId=task_1417036912823_0003_1_02_000006, diagnostics=[TaskAttempt 0 failed, info=[Container container_1417036912823_0003_01_000002 finished with diagnostics set to [Container failed. Exception from container-launch: ExitCodeException exitCode=255:
ExitCodeException exitCode=255:
        at org.apache.hadoop.util.Shell.runCommand(Shell.java:538)
        at org.apache.hadoop.util.Shell.run(Shell.java:455)
        at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:702)
        at org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor.launchContainer(DefaultContainerExecutor.java:195)
        at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:300)
        at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:81)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)

With join being refactored, the problem can no longer be reproduced. An additional test was added (see commit message above).


fix: fix Darwin compilation

Addresses #27
Adding target configurations to ./.cargo/config, instead of ./Cargo.toml fixes the issues with compilation on Darwin.
Fixes compilation errors like the ones found in nixpkgs
nix flake check -L passed successfully.

+1 - I'd love to have this merged.

I missed this PR sorry, thank you for the fix!


Add throttling mechanism to limit the amount of fire request/sec to Kuberentes API server  in component reconciler

Description
To be reduce the amount of requests fired to a Kubernetes API server, the amount of requests per seconds have to be configurable. A throttling mechanism is required, which ensures that a particular threshold won't be exceed during the reconciliation of a Kyma component.
Goal is to avoid quotas or being able to reduce the load on clusters with a low-performing API server.
IT's recommended, to add such a throttling to the Kubernetes-Client API (see here). It should make sure that it's not firing more requests as configured per second.
AC:

Threshold of fired requests/sec is configurable per component-reconciler
The Kubernetes client is taking care, that its not sending more requests as defined per second.

Reasons
Give more control of the amount of fired requests to the Kubernetes API server.
Attachments

Functionalities of the Reconciler were migrated to the new architecture, this issue will not be worked on.


Added PHP Yorkshire elephpant

putting this in as a placeholder; will update with photos when I have some

What is the status of this elephpant? Is there a prototype or a campaign?

Great! In addition to the one change I noted, you also need to define a common and subspecies name here: https://github.com/carnage/afieldguidetoelephpants/blob/26e4622a953519c69b3e583ca94f9b00d1b5aa5c/app/config/sculpin_site.yml#L66
A little Googling suggests "Eboraci" as an appropriate subspecies, but it's up to you.

Thanks!

Is "Jorvik" a nickname for the user group, or the elephpant?


[P0] MSBOT Additional bot configurations - storage, appinsights, generic

Filing this issue to track work to the .bot schema as well as MSBOT CLI to support -
storage - should allow msbot connect, disconnect workflow, encryption for
Storage (CosmosDB)
"services": [
        {
            "type": "storage",
            "id": "mydocdb",
            "name": "stateStore",
            "storage-type": "cosmosDB",
            "documentDbUrl": "Your Doc DB URI",
            "documentDbKey": "Your Doc DB Key"
        }
]

Storage (Blob storage)
"services": [
        {
            "type": "storage",
            "id": "mystorage",
            "name": "stateStore",
            "storage-type": "BlobStore",
            "connectionString": "Your connection string",
            "containerName": "Your Container name"
        }
]

App insights should allow msbot connect, disconnect workflow, encryption for
"services": [
        {
            "type": "appinsights",
            "name": "myfirstCLITEstBotyqi7k4",
            "id": "48f27d42-1eec-4c5f-bb13-703ef3f6a97a",
            "instrumentation-key": "b61c9c80-b93c-4d79-81bb-ce29ba167e4c",
            "APIKey": "48f27d42-1eec-4c5f-bb13-703ef3f6a97a",
            "AppInsightsID": "48f27d42-1eec-4c5f-bb13-703ef3f6a97a"
        }
    ]

Generic should allow msbot connect, disconnect workflow, encryption for
"services": [
        {
            "type": "generic",
            "id": "xxxx",
            "name": "xxxxxxx",
            "configuration": {
                "key1": "value",
                "key2": "value"
            }
        }
    ]

Fixed.


Input/Output artifacts are not supported in dag

Pre-bug-report checklist
1. This bug can be reproduced using pure Argo YAML

[ ] Yes 👉 Please report a bug to the Argo Workflows GitHub 👈
[x] No

If yes, it is more likely to be an Argo bug unrelated to Hera. Please double check before submitting an issue to Hera.
2. I have searched for existing issues

[x] Yes

3. This bug occurs in Hera when...

[x] exporting to YAML
[ ] submitting to Argo
[ ] running on Argo with the Hera runner
[ ] other:

Bug report
Describe the bug
Argo workflow does not allow input/output artifact in dag.
https://github.com/argoproj/argo-workflows/blob/818fd90128f27daab5d35d8b1aa3afd9fee031e4/workflow/validate/validate.go#L629-L651
To Reproduce
https://github.com/argoproj-labs/hera/blob/main/examples/workflows/experimental/new_dag_decorator_artifacts.py
Expected behavior
Raise an erorr?
Environment

Hera Version: 5.X.X
Python Version: 3.X.X
Argo Version: 3.X.X

Additional context
Add any other context about the problem here.

Thanks Ukjae - I'm trying to keep most of the decorator bugs in #1162, so will close this as a duplicate. But thank you for confirming the code link! I think DAGs can take an Artifact but without a path set, so that the subtasks can use the Artifact. I am due to start working through the list of issues so will confirm.

Nice! thanks Elliot!


Support DeepSpeed FastGen

Is your feature request related to a problem? Please describe.

No.
Describe the solution you'd like

DeepSpeed FastGen is an inference framework developed by MicroSoft. They claim that it's two times faster than vllm.  https://github.com/microsoft/DeepSpeed/tree/master/blogs/deepspeed-fastgen
Describe alternatives you've considered

No.
Additional context

I haven't tested FastGen, just attracted by their blog. I searched in this repo, seems no one mentioned this framework yet, so I'd like to bring it to the attention of community.

Glad to see you have added it to the roadmap.

Glad to see you have added it to the roadmap.

sounds a solid backend to have, thanks for the tip :+1:


If the working node ip / proxy ip changed. We needs to update the workspace security group without deleting it

For my case, my AWS working node restart and get a new IP address, we need to update the security group with this new IP.

Implemented


crash with strange format on xlsx file

I received and xlsx file with this strange format
mini5.xlsx
#,##0\ "gche";[Red]\-#,##0\ "gche"

xlsx_drone crash when xlsx_open is called (in get_formetted function, called by get_related_category)
I'll subit a PR with a string length verification

@damian-m-g

@damian-m-g what do you think?

Hi Gilles, thanks for reporting the problem. I checked the XLSX, not in depth, but at least I found that cell category (aka format code):

I couldn't yet debug the lib to reproduce the error, but I've tried to follow the problem by bare eye. I see no way, in which the length of the cell category could cause a problem. So get_related_category() which in time calls get_formatter(), gets passed the length of the cell category:

And then on get_related_category(), the code never pass an index out of the bounds of the cell category length:

So your first check according to this analysis could be in vain. About your second check, I followed this specific case and it should work fine (without the fix). In conclusion, I need to set up my machine to debug this code, as it got formatted recently. This could even be a problem of the third hand libraries we are using (perhaps SXMLC), or something else. When I have some time available I'll do it.

Fixed on 0.4.0, @Neustradamus @gvollant.

@damian-m-g: Thanks! :)


This kext need update for ventura 13.3，something went wrong

my nuc update to ventura 13.3
display went wrong like this
pls help me,thanks very much.

I got exactly the same issue. Is there anyway to fix this ? Thanks

Awsome, it works well. Thank you so much.


Milestone 4

[ ] Step 1: Develop the API. @MacyChan (by the end of Friday, April 22)
[ ] Step 2: Deploy the API (copy the app.py file to the EC2 instance.) @jo4356 (by the end of Monday, April 25)
[ ] Step 3: Summarize your journey.  @zackt113 (already done.  being reviewed by @stevenleung2018 and finish by the end of Friday, April 22.)
[ ] Step 4: Wrap up, test and submit. @stevenleung2018 (by 6pm, Thursday, April 28)

For reference, the Milestone4 instructions:
https://github.ubc.ca/mds-2021-22/DSCI_525_web-cloud-comp_students/blob/master/release/milestone4/Milestone4.ipynb
Meeting before submission: 4pm, Tuesday, April 26.

@MacyChan @jo4356 @zackt113 Updated the issue per what we discussed just now.  Please let me know if there is anything wrong.

Submitted.  I also created a release for Milestone4.  Thanks for working together!