drivers: lora: sx1276: rework gpio configuration

Introduce sx1276_configure_pin() helper macro, which hide lots of
boilerplate preprocessor and C code. Doing so allows to uncover
inconsistent gpio initialization flow and prevent such in future.
It seems like output of gpio_pin_configure() for several
gpios (antenna_enable, rfi_enable, rfo_enable) was assigned to variable,
but its values was never checked. Return value from gpio_pin_configure()
of tcxo_power gpio was even not catched. The only output gpio
configuration that was handled properly was actually reset gpio.
Fix that inconsistent behavior by always checking return value of
sx1276_configure_pin().

Any chance you could move the macro and helper function to sx12xx_common.{c,h}? That'd simplify reuse it in the sx126x driver.


Add support for Linux ARM64

Connected to issue: #640
This adds support for platform detection of Linux ARM64 (AArch64).
I had to change code in the following places to make this works:

sdkman/sdkman-db-migrations#276
sdkman/sdkman-hooks#18
sdkman/sdkman-candidates#13

Hopefully I got all the places covered ;-)

I like where this is going, but not certain about the implementation.
It feels like we're muddying the waters between the OS name and architecture. Since these are two distinct concepts, I think we should represent them as such in the code. wdyt?

I like where this is going, but not certain about the implementation.
It feels like we're muddying the waters between the OS name and architecture. Since these are two distinct concepts, I think we should represent them as such in the code. wdyt?

Yeah, it is a bit muddled with the different OSs and architectures. With Windows and Apple now focusing on ARM as well, it might be beneficial to restructure the code to reflect that as well.

I'm happy for this to go in, provided the asSdkmanPlatform() method in the tests is changed.
We can look at refining the sdkman-init.sh at a later date.

Anxiously waiting for this PR to happen ! Would this mean that ARM64 JDKs can be targeted as per Amazon Corretto's one ?

@marc0der I believe this one is good to go now, what do think?

@pnavais it should be possible when Amazon Corretto AArch64 is added to the https://github.com/sdkman/sdkman-db-migrations

Just tested this build and installed the different java version and everything looks good 🥳

@dvdkruk Fantastic news, I'll release it shortly in the stable channel. Thank you for all your hard work to make this happen. Great job!

Merged in commits: 134d506e14031ba9dbb6ca6ba36a028ed86cadb1, cf436ed8f26ad3575ba44d4ecd2fe8bcbe90ab0f, eadbbe08401f03c382358232bcb1664830a7ce57, 443930d66d7f26aae74c37c15b5cb5c6c791ff96 & 3bae641050f54eac6ca97cbf612e798e98383827
And released with version 5.9.0 of SKDMAN! 🥳 Enjoy the Linux ARM64 support!


Builder 400 error

I have a dockerfile that uses:
FROM mono:onbuild

This used to work just fine, but after upgrading to Deis 1.10.1, it gets this error:(it was a migration update)
Error pulling image (latest) from mono, endpoint: https://registry-1.docker.io/v1/, HTTP code 400

sounds like https://github.com/docker-library/redis/issues/32

I got around this issue by creating our own version of the image and pulling from that instead.


How to train the network?

Hey! I was wondring how i would be able to train the network?

Hi. Although the scripts used to train the network is not as clean as I would like them to be, they should still be able to do the job. Firstly make sure to clone the repo and install the dependencies with pip. Basically you want to look in the subsync/model directory. Lets assume this your working directory from now on. Here you will find:
train_data.py: Used to plot the MFCC spectrograms of your training data
train_ann.py: Used to train the neural network on the training data
eval_ann.py: Used to plot the training history
eval_logloss.py: Used to plot the logloss values of your training data
eval_train.py: Used to plot the predictions of your training data (wether or not there is speech)
convert.py: Used to convert the final model from .hdf5 to .pb format
All the scripts above can be run as a module with python3. The scripts with prefix eval_* must be run after the model has been trained. First you will need some training data and put it in the training folder. Your training data must consist of video material and the corresponding (matching!) subtitle. The files must be named correctly, e.g.:
training/my_media_1.mp4
training/my_media_1.srt
Refrain from using spaces in filenames. Your video files will be automatically converted with ffmpeg which should support a decent amount of video codecs and containers. After you have found some training data run the train_ann.py file. Your model should now be training. Afterwards you may run any of the eval_* files to inspect the results. I hope this helps you out.
Cheers!


Wrong generation of discovery document when used behind reverse proxy and load balancer

This is our Discovery Document:
{
   "issuer":"https://oauth.test.example.com",
   "jwks_uri":"http://oauth.test.example.com/.well-known/openid-configuration/jwks",
   "authorization_endpoint":"http://oauth.test.example.com/connect/authorize",
   "token_endpoint":"http://oauth.test.example.com/connect/token",
   "userinfo_endpoint":"http://oauth.test.example.com/connect/userinfo",
   "end_session_endpoint":"http://oauth.test.example.com/connect/endsession",
   "check_session_iframe":"http://oauth.test.example.com/connect/checksession",
   "revocation_endpoint":"http://oauth.test.example.com/connect/revocation",
   "introspection_endpoint":"http://oauth.test.example.com/connect/introspect",
   "device_authorization_endpoint":"http://oauth.test.example.com/connect/deviceauthorization",
   "frontchannel_logout_supported":true,
   "frontchannel_logout_session_supported":true,
   "backchannel_logout_supported":true,
   "backchannel_logout_session_supported":true,
   "scopes_supported":[
      "openid",
      "profile",
      "roles",
      "offline_access"
   ],
   "claims_supported":[
      "sub",
      "name",
      "family_name",
      "given_name",
      "middle_name",
      "nickname",
      "preferred_username",
      "profile",
      "picture",
      "website",
      "gender",
      "birthdate",
      "zoneinfo",
      "locale",
      "updated_at",
      "role"
   ],
   "grant_types_supported":[
      "authorization_code",
      "client_credentials",
      "refresh_token",
      "implicit",
      "password",
      "urn:ietf:params:oauth:grant-type:device_code"
   ],
   "response_types_supported":[
      "code",
      "token",
      "id_token",
      "id_token token",
      "code id_token",
      "code token",
      "code id_token token"
   ],
   "response_modes_supported":[
      "form_post",
      "query",
      "fragment"
   ],
   "token_endpoint_auth_methods_supported":[
      "client_secret_basic",
      "client_secret_post"
   ],
   "id_token_signing_alg_values_supported":[
      "RS256"
   ],
   "subject_types_supported":[
      "public"
   ],
   "code_challenge_methods_supported":[
      "plain",
      "S256"
   ],
   "request_parameter_supported":true
}

I already check the oauth server configuration (latest version) and everything is set to https.
We have all this deployed on Docker Swarm over multiple EC2 (AWS). On top of that, a Load Balancer (AWS) with SSL enabled.
Any request passes through an NGINX API gateway and passed to the oauth microservice. The oauth server is set to listen only http (because the https is handled by AWS Load Balancer)... Perhaps this affects the generation of the Discovery Document.

Check the deployment docs - you are missing some headers from your reverse proxy

Solved.
Adding this setting on Startup.cs solve this issue:
services.AddIdentityServer(options =>
    {
        ...
        options.PublicOrigin = "https://oauth.test.example.com",
        ....
    }
);

Closing


Make third "i" menu item "Contact Cogeco Peer 1" and open Hubspot form

We'll need to style this slightly (@rachteo?) but we now have a Contact Sales form from the Cogeco folks in the form of a JavaScript snippet. We should embed this in the webview and it will create a mobile-friendly form, which should be much nicer than sending people to the desktop website.
<html>
<head>
</head>
<body>
<script charset="utf-8" type="text/javascript" src="https://js.hsforms.net/forms/v2.js"></script>
<script>
  hbspt.forms.create({
    portalId: '1935908',
    formId: 'efbb8fbc-249b-494a-ac28-8d1192d79a9c'
  });
</script>
</body>

What does the form look like at the moment? I can't figure out how to access it...

For now, to access it you need to paste that HTML into a blank .html file and open it in a browser 😬  It should be in the build fairly soon.

Default form style for reference:

Right now my menu order is:

Introduction
Contact Cogeco Peer 1
About Cogeco Peer 1
Open Source
Credits

@apike When you say "third menu item" do you want us to switch the order of Contact and About?

@ssawchenko Exactly.

Styled contact form:

Thoughts?

That looks good to me except it's not native so the toggle isn't practical - I'll send this over to their Hubspot expert and see if they can style it that way.

Android complete and merge to master, assigning to @jotkali for iOS

Unless I change the button style on the Android app, the button will look different than the other buttons we have in the app. Right now the app buttons are very rounded. Doubt this is a release blocker though, but something to keep in mind.

Right, forgot about the traceroute buttons! Updated to match those:


Disable sort

Hello,
thanks for your nice module!
Is it possible to disable sorting? I need this because I have two lists. In one list, I want to disable sorting so that I can only drag items from that list to the second list. In the second list, sorting is fine.

@jb-alvarado Supported now. Please update your package version. Usage:
new Sortable(el, {
  ...,
  sortable: true,
})

Thank you @mfuu! Now it works! Also the other issue disappear. Now I only notice:
Uncaught (in promise) Maximum recursive updates exceeded. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function. runtime-core.esm-bundler.js:257:6
    NuxtJS 129
        logError
        handleError
        checkRecursiveUpdates
        flushPostFlushCbs
        flushJobs
        ...
        flushJobs
    (Async: promise callback)
        queueFlush
        queueJob
        effect
        resetScheduling
        trigger
        set
        set value
        set
        2
        callWithErrorHandling
        callWithAsyncErrorHandling
        emit
        createSetupContext/get emit/<
        onDrop
        dispatchEvent
        onDrop
        onDrop
        T2
        _onEnd
        _onDrop
    (Async: EventListener.handleEvent)
        c2
        _onDrag
    (Async: EventListener.handleEvent)
        c2

But I have no idea from where it comes from. When I use sortablejs-vue3 in the same project I have not notice this.

@jb-alvarado If you use v-model, you don't need to do the assignment on drop

I need that event to recalculate the start time from each clip, when the oder has changed. But even when I remove it temporary this error message came.

@jb-alvarado Please check if the dataKey is unique, if it is I will fix it ASAP

Yes you are right! That was the problem. I needed to generate a new unique dataKey on add event. But because I process the target list on drop event I had to deep clone the list also.
Sorry for taking your time!

Sorry to bother you again @mfuu. Now when I use :sortable="false" on one list and I drag an item to a second list, and drag again to the source list (without releasing the mouse), I get this error trace, and the script crashes:
Uncaught TypeError: L is null
    NuxtJS 48
18 virtual-drag-list.min.js:12:17866
    NuxtJS 48
        _onInsert
        _onMove
        _nearestSortable
    (Async: EventListener.handleEvent)
        c2
        _onStart
        _onDrag
    (Async: EventListener.handleEvent)
        c2
        ot
        init
        v
        N
        setup
        createHook
        callWithErrorHandling
        callWithAsyncErrorHandling
        __weh
        flushPostFlushCbs
        flushJobs
    (Async: promise callback)
        queueFlush
        queuePostFlushCb
        resolve
        resolve
        registerDep
    (Async: promise callback)
        registerDep
        mountComponent
        processComponent
        patch
        componentUpdateFn
        run
        update
        setupRenderEffect
        registerDep
    (Async: promise callback)
        registerDep
        mountComponent
        processComponent
        patch
        componentUpdateFn
        run
        update
        setupRenderEffect
        mountComponent
        processComponent
        patch
        mountSuspense
        process
        patch
        componentUpdateFn
        run

@jb-alvarado sorry for late reply. Please update to the latest version to see if it has been solved.

Thank you @mfuu, I think now it works correctly!


Code auto completion in a Python module at commented lines

Prerequisites

[X] Put an X between the brackets on this line if you have done all of the following:

Reproduced the problem in Safe Mode: https://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
Followed all applicable steps in the debugging guide: https://flight-manual.atom.io/hacking-atom/sections/debugging/
Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages

Description
Atom performs code auto completion in Python modules at commented lines, this way changing the words in comments unexpectedly.
Steps to Reproduce

Open a Python module.
Start writing a commented line, starting with hash sign "#".
Finish your sentence with dot.

Expected behavior:
Code auto completion is disabled, I can write sentences, put dots without changing my words in the comment.
Actual behavior:
Code auto completion is enabled at commented lines and it changes my words.
Reproduces how often:
100%
Versions
Red Hat Enterprise Linux Workstation release 7.4 (Maipo)
Atom    : 1.28.2
Electron: 2.0.5
Chrome  : 61.0.3163.100
Node    : 8.9.3
Additional Information
Running Atom in safe mode:

The issue persists

Clearing the saved state of Atom:

The issue persists

Reset Atom configuration to factory defaults:

The issue persists

Check for linked packages
/home/pgeorgie/.atom/dev/packages (0)
└── (no links)
/home/pgeorgie/.atom/packages (0)
└── (no links)
Check for incompatible packages:

None

Check Atom and package settings:

Done

Have you tried adding the comment scope to the blacklist in
Settings -> Packages -> (search) autocomplete-plus -> Scope Blacklist ?
Additionally, if completion on enter is an issue (beyond just in comments), I recommend switching to "tab only". While it feels weird at first (I mae the swap), it becomes just as natural when you get used to it.

Now, I have tried Settings -> Packages -> (search) autocomplete-plus -> Scope Blacklist.
This solves the issue.
Thanks.


Package installation fails with files in top-level of archive

[ X ] are reporting a bug others will be able to reproduce and not asking a question. If you're not sure or want to ask a question do so on our Discourse: https://discourse.brew.sh
[ X ] ran a brew command and reproduced the problem with multiple formulae? If it's a problem with a single, official formula (not cask) please file this issue at Homebrew/homebrew-core: https://github.com/Homebrew/homebrew-core/issues/new/choose. If it's a brew cask problem please file this issue at https://github.com/Homebrew/homebrew-cask/issues/new/choose. If it's a tap (e.g. Homebrew/homebrew-php) problem please file this issue at the tap.
[ X ] ran brew update and can still reproduce the problem?
[ X ] ran brew doctor, fixed all issues and can still reproduce the problem?
[ X ] ran brew config and brew doctor and included their output with your issue?

Working brew config:
$ brew config
HOMEBREW_VERSION: 1.7.0
ORIGIN: https://github.com/Homebrew/brew
HEAD: 7e8fb9a0f8ab5e841763ec6c7fefa72a8462b594
Last commit: 2 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 1a0e4496243f6f8cd7c2ead65f7d9b0e640dedb9
Core tap last commit: 3 hours ago
HOMEBREW_PREFIX: /usr/local
CPU: quad-core 64-bit broadwell
Homebrew Ruby: 2.3.7 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby
Clang: 8.0 build 800
Git: 2.10.1 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.49.1 => /usr/bin/curl
Java: N/A
macOS: 10.12.1-x86_64
CLT: <IP_ADDRESS>.1.1480973914
Xcode: N/A
XQuartz: 2.7.11 => /opt/X11

$ brew doctor
Your system is ready to brew.

Non-working brew config:
» brew config
HOMEBREW_VERSION: 1.7.0-42-g41680cd
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: 41680cd23915e8a1cca5f4945d3ec34d7dea3e82
Last commit: 2 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 1a0e4496243f6f8cd7c2ead65f7d9b0e640dedb9
Core tap last commit: 3 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_DEV_CMD_RUN: 1
CPU: octa-core 64-bit haswell
Homebrew Ruby: 2.3.7 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby
Clang: 9.0 build 900
Git: 2.14.2 => /usr/local/bin/git
Curl: 7.54.0 => /usr/bin/curl
Java: 1.8.0_45
macOS: 10.12.6-x86_64
CLT: <IP_ADDRESS>.1.1510905681
Xcode: N/A
XQuartz: 2.7.11 => /opt/X11

» brew doctor
Your system is ready to brew.

To help us debug your issue please explain:

What you were trying to do (and why)

Install a locally-produced package that contains a single Go binary at the top-level of the archive.

What happened (include command output)

➜ ~❯ brew doctor
Your system is ready to brew.
➜ ~❯ brew upgrade gobinary-cli
==> Upgrading 1 outdated package, with result:
org/tap/gobinary-cli 0.32.1 -> 0.33.0
==> Upgrading org/tap/gobinary-cli
==> Downloading https://local.homebrew.tap/homebrew/gobinary-cli-darwin-v0.33.0.tar.gz
Already downloaded: /Users/morr/Library/Caches/Homebrew/gobinary-cli-0.33.0.tar.gz
Error: No such file or directory - gobinary
➜ ~❯

What you expected to happen

The installation of the binary to complete.

Step-by-step reproduction instructions (by running brew commands)

Produce a homebrew package that contains a file at the top level of the archive, e.g.:

~ $ tar -tvf gobinary-cli-darwin-v0.33.0.tar.gz
-rwxrwxr-x  0 root   root 30329808 Jul 17 15:12 gobinary
~ $

Generate and publish a homebrew formula for installing it, e.g. :

class GobinaryCli < Formula
  desc "gobinary-cli"
  homepage "https://local.git.ui/org/gobinary-cli"
  version "0.33.0"
  url "https://local.homebrew.tap/homebrew/gobinary-cli-darwin-v0.33.0.tar.gz"
  sha256 "459b3c52b96af66797907411f3ead0a4d43a9f74850f37a5ce601128485bd159"

  def install
    bin.install "gobinary"
  end
end

Using homebrew revision 41680cd23915e8a1cca5f4945d3ec34d7dea3e82, installation fails, as it appears the binary is never symlinked, then an exception is raised at:
https://github.com/Homebrew/brew/blob/master/Library/Homebrew/extend/pathname.rb#L94
Using homebrew revision 7e8fb9a0f8ab5e841763ec6c7fefa72a8462b594, all is well.
Looking at the diff between these two revisions, it looks like some nested archive handling was added, perhaps it was due to this.

Produce a formula that contains the same binary in a folder, e.g:

~ $ tar -tvf gobinary-darwin-v0.33.0.tar.gz
drwxr-xr-x  0 root  root       0 Jul 17 15:12 gobinary-darwin/
-rwxr-xr-x  0 root  root 30329808 Jul 17 15:12 gobinary-darwin/gobinary

Attempt to install this package using the same formula, and it works in both revisions.

I'm not certain if installation of top-level binaries in the archive is supported or not, but given that it used to work, and is now seemingly broken, I thought it'd be worth reporting.

This was probably also fixed by https://github.com/Homebrew/brew/pull/4511.

It does seem to be fixed after #4511, the unpack completes with:
» brew unpack gobinary-cli --verbose --debug
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FromPathLoader): loading /usr/local/Homebrew/Library/Taps/org/homebrew-tap/gobinary-cli.rb
==> Unpacking org/tap/gobinary-cli to: /Volumes/CaseSensitive/projects/org/repo/gobinary-cli-0.33.0
==> Downloading https://internal.brew.tap/homebrew/gobinary-cli-darwin-v0.33.0.tar.gz
Already downloaded: /Users/username/Library/Caches/Homebrew/gobinary-cli-0.33.0.tar.gz
==> Verifying gobinary-cli-0.33.0.tar.gz checksum
tar xf /Users/username/Library/Caches/Homebrew/gobinary-cli-0.33.0.tar.gz -C /var/folders/5g/r_p4k_hn74v_9f6lgl5k882r0000gp/T/d20180719-24264-1kd7q8l

The single go binary is present and linked. The install methods completes without error.

Thank you for confirming, @adamwallred.


[SPARK-9853][Core] Optimize shuffle fetch of continuous partition IDs

This PR takes over #19788. After we split the shuffle fetch protocol from OpenBlock in #24565, this optimization can be extended in the new shuffle protocol. Credit to @yucai, closes #19788.
What changes were proposed in this pull request?
This PR adds the support for continuous shuffle block fetching in batch:

Shuffle client changes:

Add new feature tag spark.shuffle.fetchContinuousBlocksInBatch, implement the decision logic in BlockStoreShuffleReader.
Merge the continuous shuffle block ids in batch if needed in ShuffleBlockFetcherIterator.

Shuffle server changes:

Add support in ExternalBlockHandler for the external shuffle service side.
Make ShuffleBlockResolver.getBlockData accept getting block data by range.

Protocol changes:

Add new block id type ShuffleBlockBatchId represent continuous shuffle block ids.
Extend FetchShuffleBlocks and OneForOneBlockFetcher.
After the new shuffle fetch protocol completed in #24565, the backward compatibility for external shuffle service can be controlled by spark.shuffle.useOldFetchProtocol.

Why are the changes needed?
In adaptive execution, one reducer may fetch multiple continuous shuffle blocks from one map output file. However, as the original approach, each reducer needs to fetch those 10 reducer blocks one by one. This way needs many IO and impacts performance. This PR is to support fetching those continuous shuffle blocks in one IO (batch way). See below example:
The shuffle block is stored like below:

The ShuffleId format is s"shuffle_$shuffleId_$mapId_$reduceId", referring to BlockId.scala.
In adaptive execution, one reducer may want to read output for reducer 5 to 14, whose block Ids are from shuffle_0_x_5 to shuffle_0_x_14.
Before this PR, Spark needs 10 disk IOs + 10 network IOs for each output file.
After this PR, Spark only needs 1 disk IO and 1 network IO. This way can reduce IO dramatically.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Add new UT.
Integrate test with setting spark.sql.adaptive.enabled=true.

Test build #111831 has started for PR 26040 at commit 413120f.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/16810/
Test PASSed.

The difference between this PR and the original one is mainly caused by the following proposals from my side:

Instead of considering merged batch fetch as several blocks, this approach treats the combined batch id as a single block, so that we can not only keep the interfaces of FetchResult with no change in all places, but also delete the duplicated code of merge continuous block id in BlockManager and ExternalShuffleBlockHandler.
Extend the newly added shuffle fetch protocol by reusing the reduceIds for ShuffleBlockBatchId, it keeps both start and end reduce id for the range [startReduceId, endReduceId).

cc @yucai @cloud-fan @jiangxb1987

Test build #111831 has finished for PR 26040 at commit 413120f.

This patch fails due to an unknown error code, -9.
This patch merges cleanly.
This patch adds the following public classes (experimental):
case class ShuffleBlockBatchId(

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/111831/
Test FAILed.

retest this please

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/16814/
Test PASSed.

Test build #111835 has started for PR 26040 at commit 413120f.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/16815/
Test PASSed.

Test build #111835 has finished for PR 26040 at commit 413120f.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
case class ShuffleBlockBatchId(

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/111835/
Test FAILed.

Test build #111891 has started for PR 26040 at commit 407b1e0.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/16872/
Test PASSed.

Test build #111891 has finished for PR 26040 at commit 407b1e0.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/111891/
Test PASSed.

@xuanyuanking @cloud-fan thanks for taking care of this!

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/16930/
Test PASSed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/17141/
Test PASSed.

Test build #112148 has started for PR 26040 at commit d9ea5af.

Test build #112148 has finished for PR 26040 at commit d9ea5af.

This patch fails to build.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/112148/
Test FAILed.

Merged build finished. Test PASSed.

Test build #112153 has started for PR 26040 at commit 8a323ab.

Test build #112153 has finished for PR 26040 at commit 8a323ab.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/112153/
Test FAILed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/17160/
Test PASSed.

Test build #112170 has started for PR 26040 at commit fa7c272.

Test build #112170 has finished for PR 26040 at commit fa7c272.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/17186/
Test PASSed.

Test build #112196 has started for PR 26040 at commit afd74e5.

Test build #112196 has finished for PR 26040 at commit afd74e5.

This patch fails to build.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/112196/
Test FAILed.

Test build #112197 has started for PR 26040 at commit 8f855a7.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/17187/
Test PASSed.

Test build #112197 has finished for PR 26040 at commit 8f855a7.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/112197/
Test PASSed.

I'm merging it. We can have a followup PR to address the last code style comment. Thanks for the work @yucai and @xuanyuanking !

Thanks for solving this! @xuanyuanking @cloud-fan


Mixed OS cluster attempting to schedule components on Windows nodes

Is this a request for help?:
Yes
Is this an ISSUE or FEATURE REQUEST? (choose one):
Issue
What version of acs-engine?:
All

Orchestrator and version (e.g. Kubernetes, DC/OS, Swarm)
Kubernetes 1.10.4
What happened:
As many of you know, for acs-engine clusters with Linux and Windows nodes, we are in a constant state of whack-a-mole with adding nodeSelector: statements everywhere to try and get workloads not to schedule on Windows nodes - 99% of the time things are unable to run, and most solutions dont even have windows container images to run yet (Prometheus, Elasticsearch, Kibana, Grafana, etc etc).
What you expected to happen:
I expect there to be a way with acs-engine to configure the default node type from a specific agentpool for all resources to be scheduled by default. Is there away to achieve this through a scheduler default within Kubernetes?
How to reproduce it (as minimally and precisely as possible):
Deploy anything and dont define nodeSelector, you'll probably get scheduled on a Windows node and the container will fail to deploy.
Anything else we need to know:

This isn't really an acs-engine issue, it's a Kubernetes one. It doesn't offer the functionality to select a default node.
What I have ended up doing is apply a taint to my windows nodes which prevents any pods being run unless I specify a toleration on them. Yes it does mean I have to add that toleration to my Windows pods, but at least I am only doing it on one OS, and it deals with things like helm packages that are not configured to allow a node selector.

#3407 will fix some of the addons that were missing node selectors.
For other workloads, I think you'll have to rely on either adding node selectors or using taints as Sam suggested. I usually go ahead and put the node selector in my helm charts.


Add Internal Boundary Conditions

Summary
Add internal boundary conditions in the form:
bcs = {N_e: {"negative electrode": {"left": 0, "right": N_e}, ...,
           c_e: {"negative electrode":{ "right": c_e} }

These bcs can be processed by discretisation so that N_e = grad(c_e) and c_e are found in terms of the values either side of the internal boundary (i.e. are just given as combinations of y_slice components).

a separate name for these internal boundary conditions might be better than just N_e and c_e
how the values are found will likely depend on the spatial_method (finite_volumes, finite_element) so should be implement there instead of basediscretisation
We can let the user insert boundary conditions in the old form (i.e. no  internal boundary conditions) and then convert them automatically instead of requiring the continuity conditions to be inserted.
Checking well-posedness of the model will have to be changed

Motivation
Currently, we always combine submeshes when discretising a variable. This is okay when the domain is ["negative electrode", "separator", "positive electrode"]. But if the domain is ["negative particle", "positive particle"], or ["negative electrode", "positive electrode"] both of which come up in the standard models, we do not want to do this.
Additionally in the boundary conditions for variables in the particles will be of the form:
   bcs = {N: {"negative particle": {"left": 0, "right": G}, "positive particle": {"left":0, "right": G}}

as opposed to just
 bcs = {N_e: {"left": 0, "right": 0}}

on the macroscale.
I think it would be best if we discretise in a consistent way and therefore have boundary conditions by subdomain.
Additional Context

Ignore for now. We can enter separate equations and variables for each particle until this is implemented.


404 page

Now it looks like this when user try to open a wrong page

Checked.
At the moment the following design is implemented:


 container too narrow

dependencyBrowseGraph generates HTML that has this container:
<svg height="7438.9375" width="1280">

However, that was too narrow. I had to manually widen it for my project:
<svg height="7438.9375" width="12800">

Is there some additional control that might be applied, perhaps by running a bounds check and setting svg width accordingly?

Hi @mslinn, what happens when the container is too narrow? Is the graph cut off at the border?

Yes, the image is clipped at the bounding box

Why not just have it take 100% of width available?


Blink Mini don't work, Blink Ourdoor works (with minor Problem)

Hello.
I have three Problems using the Library (Version blinkpy-0.19.0 without HA):
1.) Camera Type Mini does not work.
2.) Warnings "Could not extract camera info" with all Cameras.
3.) Timing between camera.snap_picture and camera.image_to_file
This is my Test-Script:
auth = Auth({"username"<EMAIL_ADDRESS>"password": "ABC"}, no_prompt=True)
blink.save("blink.credentials")
blink.auth = auth
blink.start()
camera = blink.cameras['Werkstatt']
#camera = blink.cameras['Hof']
camera.snap_picture()
blink.refresh()
time.sleep(3)
camera.image_to_file('/var/www/html/x.jpg')

First Problem:
Cameras of Type Outdoor working (with some Warnings), but with Cameras of Type Mini I've got no Picture. Running the Script with 'Werkstatt' (Type Mini), I've got these Errors:
Could not extract camera info: {'message': 'Camera not found', 'code': 500}
Could not find thumbnail for camera unknown
Could not extract camera info: {'message': 'Camera not found', 'code': 500}
Could not find thumbnail for camera unknown
Could not extract camera info: {'message': 'Camera not found', 'code': 500}
Could not find thumbnail for camera unknown
Could not extract camera info: {'message': 'Camera not found', 'code': 500}
Could not find thumbnail for camera unknown
Could not extract camera info: {'message': 'Camera not found', 'code': 500}
Could not find thumbnail for camera unknown
Traceback (most recent call last):
  File "./blink.py", line 35, in <module>
    camera.image_to_file('/var/www/html/x.jpg')
  File "/usr/local/lib/python3.7/dist-packages/blinkpy/camera.py", line 239, in image_to_file
    response = self.get_media()
  File "/usr/local/lib/python3.7/dist-packages/blinkpy/camera.py", line 119, in get_media
    timeout=TIMEOUT_MEDIA,
  File "/usr/local/lib/python3.7/dist-packages/blinkpy/api.py", line 315, in http_get
    is_retry=is_retry,
  File "/usr/local/lib/python3.7/dist-packages/blinkpy/auth.py", line 195, in query
    req = self.prepare_request(url, headers, data, reqtype)
  File "/usr/local/lib/python3.7/dist-packages/blinkpy/auth.py", line 91, in prepare_request
    return req.prepare()
  File "/usr/local/lib/python3.7/dist-packages/requests/models.py", line 267, in prepare
    hooks=self.hooks,
  File "/usr/local/lib/python3.7/dist-packages/requests/models.py", line 316, in prepare
    self.prepare_url(url, params)
  File "/usr/local/lib/python3.7/dist-packages/requests/models.py", line 390, in prepare_url
    raise MissingSchema(error)
requests.exceptions.MissingSchema: Invalid URL 'None': No schema supplied. Perhaps you meant http://None?

Second Problem:
These warnings occurs also when using a Camera of Type "Outdorrs", but Picture is taken:
Could not extract camera info: {'message': 'Camera not found', 'code': 500}
Could not find thumbnail for camera unknown
Could not extract camera info: {'message': 'Camera not found', 'code': 500}
Could not find thumbnail for camera unknown
Could not extract camera info: {'message': 'Camera not found', 'code': 500}
Could not find thumbnail for camera unknown
Could not extract camera info: {'message': 'Camera not found', 'code': 500}
Could not find thumbnail for camera unknown
Could not extract camera info: {'message': 'Camera not found', 'code': 500}
Could not find thumbnail for camera unknown

Third Problem:
Without "time.sleep(3)" I've got only an old Snapshot. It seems the "camera.image_to_file" is too fast.
I think camera.snap_picture() is asycron (blink servers has to send the command to camera in you home network) and it needs some time before getting the picture.

I'm so glad that to hear Mini are working. I tried it also using the api calls from MattTW/BlinkMonitorProtocol with curl to find out what's wrong. But I run into the same problem. I tried debugging for hours and didn't find the problem. I'm sure the Name is correct, I tried also with other Blink Cameras I have. I've checked all twice, also Blanks or upper and lower case Letters.
The json of Homescreen shows the Outdoor cameras are below "Cameras", the Mini below "Owls".
Here the Parts for Account, Networks and Sync Module of the Homescreen:
{
  "account": {
    "id": 16YYY,
    "email_verified": true,
    "email_verification_required": false,
    "amazon_account_linked": false
  },
  "networks": [
    {
      "id": 16ZZZ,
      "created_at": "2020-12-01T17:56:15+00:00",
      "updated_at": "2022-04-12T06:12:00+00:00",
      "name": "Markus und Siggi zuhause",
      "time_zone": "Europe/Berlin",
      "dst": true,
      "armed": true,
      "lv_save": false
    }
  ],
  "sync_modules": [
    {
      "id": 23DD99,
      "created_at": "2021-07-06T16:55:15+00:00",
      "updated_at": "2022-04-12T06:10:36+00:00",
      "onboarded": true,
      "status": "online",
      "name": "My Blink Sync Module",
      "serial": "G8T1LPFFF4023S6S",
      "fw_version": "4.4.8",
      "type": "sm2",
      "subtype": "vinnie",
      "last_hb": "2022-04-12T10:17:45+00:00",
      "wifi_strength": 5,
      "network_id": 16ZZZ,
      "enable_temp_alerts": true,
      "local_storage_enabled": false,
      "local_storage_compatible": true,
      "local_storage_status": "active",
      "revision": "00"
    }
  ],

Here one Outdoor Camera:
  "cameras": [
    {
      "id": 23AA79,
      "created_at": "2021-07-26T08:17:07+00:00",
      "updated_at": "2022-04-12T10:14:15+00:00",
      "name": "Hof",
      "serial": "G8T1GJ000ABCAUGT",
      "fw_version": "10.56",
      "type": "catalina",
      "enabled": false,
      "thumbnail": "/api/v3/media/accounts/16YYY/networks/16ZZZ/catalina/23AA79/thumbnail/thumbnail.jpg?ts=1649753180&ext=",
      "status": "done",
      "battery": "ok",
      "usage_rate": false,
      "network_id": 16ZZ7,
      "issues": [],
      "signals": {
        "lfr": 1,
        "wifi": 3,
        "temp": 65,
        "battery": 3
      },

Here the Mini:
  "owls": [
    {
      "id": 19XX99,
      "created_at": "2021-06-29T13:38:15+00:00",
      "updated_at": "2022-04-12T08:18:46+00:00",
      "name": "Werkstatt",
      "type": "owl",
      "onboarded": true,
      "serial": "G8T194DEF1731XEF",
      "fw_version": "9.78",
      "enabled": true,
      "thumbnail": "/api/v3/media/accounts/16YYY/networks/16ZZZ/owl/19XX99/thumbnail/thumbnail.jpg?ts=1649751526&ext=",
      "status": "online",
      "network_id": 16ZZZ,
      "local_storage_enabled": false,
      "local_storage_compatible": true,
      "snooze": false,
      "snooze_time_remaining": null,
      "revision": "00"
    },

This is the Rest Call for new thumbnail which failed with :
curl --request POST --url "https://rest-e004.immedia-semi.com/network/16ZZZ/camera/19XX99/thumbnail" --header "TOKEN_AUTH: 6BX8_yvBzqFuu1la3xMsdwe"

Here the response:
{
  "message": "Camera not found",
  "code": 500
}

Here the Output for the Mini:
Werkstatt: <blinkpy.camera.BlinkCameraMini object at 0x7fc782351198>
{'name': 'Werkstatt', 'camera_id': '19XX99', 'serial': 'G8T194ABCABC1XEF', 'temperature': None, 'temperature_c': None, 'temperature_calibrated': None, 'battery': None, 'battery_voltage': None, 'thumbnail': 'https://rest-e004.immedia-semi.com/api/v3/media/accounts/16YYY/networks/16ZZZ/owl/19XX99/thumbnail/thumbnail.jpg?ts=1649751526&ext=', 'video': None, 'motion_enabled': True, 'motion_detected': False, 'wifi_strength': None, 'network_id': 16ZZZ, 'sync_module': 'Markus und Siggi zuhause', 'last_record': None, 'type': 'owl'}

Seems ok.

Hi,
a had almost the same problem with the timing, try instead:
time.sleep(10) blink.refresh(force=True)

Hi,
a had almost the same problem with the timing, try instead: time.sleep(10) blink.refresh(force=True)
Triggering a Snapshot is an asyncon command. You have to poll the API for the command has been finished and then you can get the thumbnail. Or waiting some time and hope the snapshot is ready for download. The time depends on speed of camera wifi signal, you internet connection and the response time of the blink cloud. For me it's about 3 seconds.

Yes, I tried also:
blink.auth = auth
blink.start()
camera = blink.cameras['Outdoor Neu']
camera.snap_picture()
blink.refresh(force=True)
camera.image_to_file('/var/www/html/x.jpg')

And it's still the picture before last camera.snap_picture(). Only waiting some seconds  (2 sec is too less, 3 sec works most time for me).
Very Interessting: I've got for my 5 Mini this messages:
Could not extract camera info: {'message': 'Camera not found', 'code': 500}
Could not find thumbnail for camera unknown
Could not extract camera info: {'message': 'Camera not found', 'code': 500}
Could not find thumbnail for camera unknown
Could not extract camera info: {'message': 'Camera not found', 'code': 500}
Could not find thumbnail for camera unknown
Could not extract camera info: {'message': 'Camera not found', 'code': 500}
Could not find thumbnail for camera unknown
Could not extract camera info: {'message': 'Camera not found', 'code': 500}
Could not find thumbnail for camera unknown`

But if I add a time.sleep(4) between blink.start() and camera.snap_picture(), these errors disappears:
blink.auth = auth
blink.start()
camera = blink.cameras['Outdoor Neu']
time.sleep(4)
camera.snap_picture()
blink.refresh(force=True)
camera.image_to_file('/var/www/html/x.jpg')

And the Mini works now if I put the time.sleep(4)
I tried a shorter time.sleep(3) and it doesn't  work anymore for Mini:
blink.auth = auth
blink.start()
camera = blink.cameras['Outdoor Neu']
time.sleep(3)
camera.snap_picture()
blink.refresh(force=True)
camera.image_to_file('/var/www/html/x.jpg')

Here the output using time.sleep(3):
Could not extract camera info: {'message': 'Camera not found', 'code': 500}
Could not find thumbnail for camera unknown
Could not extract camera info: {'message': 'Camera not found', 'code': 500}
Could not find thumbnail for camera unknown
Could not extract camera info: {'message': 'Camera not found', 'code': 500}
Could not find thumbnail for camera unknown
Could not extract camera info: {'message': 'Camera not found', 'code': 500}
Could not find thumbnail for camera unknown
Could not extract camera info: {'message': 'Camera not found', 'code': 500}
Could not find thumbnail for camera unknown
Traceback (most recent call last):
  File "./blink.py", line 36, in <module>
    camera.image_to_file('/var/www/html/x.jpg')
  File "/usr/local/lib/python3.7/dist-packages/blinkpy/camera.py", line 239, in image_to_file
    response = self.get_media()
  File "/usr/local/lib/python3.7/dist-packages/blinkpy/camera.py", line 119, in get_media
    timeout=TIMEOUT_MEDIA,
  File "/usr/local/lib/python3.7/dist-packages/blinkpy/api.py", line 315, in http_get
    is_retry=is_retry,
  File "/usr/local/lib/python3.7/dist-packages/blinkpy/auth.py", line 195, in query
    req = self.prepare_request(url, headers, data, reqtype)
  File "/usr/local/lib/python3.7/dist-packages/blinkpy/auth.py", line 91, in prepare_request
    return req.prepare()
  File "/usr/local/lib/python3.7/dist-packages/requests/models.py", line 267, in prepare
    hooks=self.hooks,
  File "/usr/local/lib/python3.7/dist-packages/requests/models.py", line 316, in prepare
    self.prepare_url(url, params)
  File "/usr/local/lib/python3.7/dist-packages/requests/models.py", line 390, in prepare_url
    raise MissingSchema(error)
requests.exceptions.MissingSchema: Invalid URL 'None': No schema supplied. Perhaps you meant http://None?

Seems it's race condition.

Do you think it solves both problems (I can't test it anymore, until this client is blocked)?

Yes, it solves both problems I had.


Thanks for the project

I just wanted to let you know I used this client primarily on my Sony Ericsson W910i when I was a kid in secondary school!
Thanks for the awesome work.

Hi! Thanks for sharing a bit of memories :) time flies doesn't it it?


Menu totall hidden on ipad

The problem is that the menu is totally hidden on iPad. The space is still used and causes whitespace on the page.
It seems to be caused by the media-query where max-width: 768px.
The grid-break for bootstrap is at min-width: 768px for tablets (sm-device). If I set the media-query to max-width: 767px (as it is in bootstrap for xs-devices) it works as expected.

Pull request are done #5 #6 #7


vue-strap/src/main.js Line 1: Unexpected token

file:a.vue
<template>

This is page B.

I'm... a bit less complicated.

    <alert/>
</template>

]

Error info
./~/vue-strap/src/main.js
Module parse failed: /Users/apple/Documents/codes/im-web-admin/node_modules/vue-strap/src/main.js Line 1: Unexpected token
You may need an appropriate loader to handle this file type.
| export {alert}  from './Alert.vue'
| export {carousel} from './Carousel.vue'
| export {slider} from './Slider.vue'
 @ ./~/babel-loader!./~/vue-loader/lib/selector.js?type=script&index=0!./src/views/b.vue 7:16-36

What's your webpack config file? This error is telling you that you are not using the babel loader to compile vue-strap code.

@amanpatel
// webpack.config.js
var webpack = require('webpack')
var CommonsChunkPlugin = webpack.optimize.CommonsChunkPlugin
var ExtractTextPlugin = require("extract-text-webpack-plugin");
var path = require("path");
module.exports = {
  cache: false,
  entry: {
      index:'./src/js/index.js',
      im:'./src/js/im.js'
  },
  output: {
    path: path.join(__dirname,'dist'),
    publicPath: "/dist/",
    filename: "[name].js"
  },
  plugins: [
    new CommonsChunkPlugin('vendor.js'),
    new ExtractTextPlugin('vendor.css')
  ],
  babel: {
    presets: ['es2015'],
    plugins: ['transform-runtime']
 },
  module: {
    loaders: [
      { test: /bootstrap\/js\//, loader: 'imports?jQuery=jquery' },
      { test: /\.(woff|woff2)$/,   loader: "url?limit=10000&minetype=application/font-woff" },
      { test: /\.ttf$/,    loader: "url?limit=10000&minetype=application/octet-stream" },
      { test: /\.eot$/,    loader: "file" },
      { test: /\.svg$/,    loader: "url?limit=10000&minetype=image/svg+xml" },
      {
      	test: /\.js$/,
        exclude: /node_modules|vue\/src|vue-router\/|vue-loader\/|vue-hot-reload-api\//,
      	loader: 'babel'
      },
      {test:/\.css$/, loader: ExtractTextPlugin.extract("style-loader", "css-loader")},
      {test: /\.scss$/, loader: "style!css!sass"},
      {test: /\.less$/, loader: "style!css!less"},
      {test: /\.(png|jpg)$/,loader: 'url?limit=4096'}, // 图片低于 4MB 时转换成 inline base64，非常神奇！
      {test:/\.vue$/,loader:'vue'}
    ]
  }
}

Where did you get this line from?
      {
        test: /\.js$/,
        exclude: /node_modules|vue\/src|vue-router\/|vue-loader\/|vue-hot-reload-api\//,
        loader: 'babel'
      },

The exclude should not contain "node_modules" (AFAIK). This is what causing the problem. I'd suggest removing or updating it as needed, something like below might work:
        exclude: /vue\/src|vue-router\/|vue-loader\/|vue-hot-reload-api\//,

@amanpatel
He got it in here.
@henjue
You can try require components in ES5 way. eg:
var alert = require('vue-strap/src/Alert');

@amanpatel Do not rule out node_modules, other modules will be reported to the wrong
@yuche I want to use the other modules, such as require ('path'); require ('vue');

@yuche: It mentions on babel-loader's GitHub to add node_modules to the exclude list since it may cause babel-loader to be very slow if the app has tons of dependencies. I was able to use var VueStrap = require('vue-strap/dist/vue-strap'); which solved the webpack issue.
I would suggest pointing the main script in your package.json file to the vue-strap/dist/vue-strap.js.

@EricPMulligan Your suggested fix makes so much sense. So thanks for mentioning it here. By the way the correct value for main in package.json will be dist/vue-strap.js (its relative to the modules directory).
Since this might break user's import code, I'm going to wait until @yuche can chime in. But I'm all for this change. (BTW, I tried this on my fork, and it worked fine for my project, albeit, almost all my import statements broke because I was requiring individual components like so: import Typeahead from 'vue-strap/src/Typeahead.vue'; had to change to import {typeahead as Typeahead} from 'vue-strap';

@amanpatel: Awesome! :-)

Well. After a lot more testing with the new setting, I'm satisfied. I think the old require() code will continue to work since they are using relative path and specifying the src/ folder.
This has been pushed. I'm going to create a 1.0.3 version/tag. This also includes an update to the Select component which allows searching!

Awesome! Out of curiosity, has NPM been updated? It says that the latest version is 1.0.2.
I'm unfamiliar with the process so my apologies if it's normal that it takes a few days for it to be updated.

@yuche Please do a npm publish when you get a chance.

1.0.3 now shows up on npmjs.org. I updated to 1.0.3 and I changed my require to require('vue-strap') and it worked! Thanks so much everyone!

Closing this.

I am trying both the require and import syntax but get a similar error.
My code:
// import Carousel from 'vue-strap/src/Carousel.vue'
// import Slider from 'vue-strap/src/Slider.vue'
var Carousel = require('vue-strap/src/Carousel.vue');
var Slider = require('vue-strap/src/Slider.vue');

Error:
Hash: f74c06386dd5e663a202                                                    b Version: webpack 2.7.0
Time: 5114ms
                                             Asset     Size  Chunks                    Chunk Names
 violin1_back.jpg?59392fd277f63c7110a8aa419d7f4923  62.8 kB          [emitted]
violin1_front.jpg?b3dcdd2112d9694ef3b3a95f75285f89    63 kB          [emitted]
 violin1_head.jpg?5e99ab2f89c85ef20eef2fa268fb2d4f  59.3 kB          [emitted]
                                          build.js   759 kB       0  [emitted]  [big]  main
                                      build.js.map   986 kB       0  [emitted]         main

ERROR in build.js from UglifyJs
Unexpected token: name (blurEvent) [./~/vue-strap/src/utils/NodeList.js:3,0][build.js:27291,4]
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I am using the webpack-simple Vue.js starter template config file. Everything run in development. The above error happens when I try to build for deployment

I commented out the Uglify section of my webpack config and everything worked:
    // new webpack.optimize.UglifyJsPlugin({
    //   sourceMap: true,
    //   compress: {
    //     warnings: false
    //   }
    // }),


How to get version without RTD

Hello, thanks for your great work which support my work a lot!
I wonder that if there is a simple way to get version for "version-match" in version-switcher component?
I have searched a lot of materials where they all get version by RTD'env which cannot fit my work.

There is an entire documentation section about the version switcher, you should have a look: https://pydata-sphinx-theme.readthedocs.io/en/stable/user_guide/version-dropdown.html
change the url in the switcher.json file to the one used by your documentation and it should work. Note that all the version you want to wire will need to have a dedicated url to work. You cannot have multiple versions build at once. If you still face issue please share your documentation repositlry and what you are trying to do, we might be able to help.

There is an entire documentation section about the version switcher, you should have a look: https://pydata-sphinx-theme.readthedocs.io/en/stable/user_guide/version-dropdown.html
change the url in the switcher.json file to the one used by your documentation and it should work. Note that all the version you want to wire will need to have a dedicated url to work. You cannot have multiple versions build at once. If you still face issue please share your documentation repositlry and what you are trying to do, we might be able to help.

Thank you for your generous answer!
Actually I am trying to build multi versions at once by sphinx-multiversion plugin. Since there're multiple versions wait for build, I wonder if there is more convenient way to build all versions.
As for building documentation one by one, your answer completely do me a favor.

If you build all version at the same time, you'll need to make sure the switcher.json is shared among all of them for consistency. if not you won't be able to jump from one version to another but only previous ones. Also you will be forced to rebuild all versions everytime a new version is released as it will change the values stored in the said switcher.json.

If you build all version at the same time, you'll need to make sure the switcher.json is shared among all of them for consistency. if not you won't be able to jump from one version to another but only previous ones. Also you will be forced to rebuild all versions everytime a new version is released as it will change the values stored in the said switcher.json.

Thanks for reminding me!
I did put the switcher.json on a public url which can be shared by all versions. If the multiple versions can be built at once, the version after now can be build separately(but I should slightly edit the switcher.json).
Since the package doesn't have __version__ variable, it's hard for me to fill the version_match filed in version-switcher.


Long loop (infinite?) while typechecking

I'm trying to check the following proof
Nat.add.cancel_right (a: Nat) (x: Nat) (y: Nat) (e0: Equal (Nat.add x a) (Nat.add y a)) : Equal x y {
  let p0 = Nat.add.comm a x
  let p1 = Equal.chain p0 e0
  let p2 = Nat.add.comm y a
  let p3 = Equal.chain p1 p2
  let p4 = Nat.add.cancel_left a x y p2
  p4
}

The p3 expression gets stuck in a loop when checking, causing an oob error after the worker's node array is exhausted (thread 'main' panicked at 'index out of bounds: the len is 805306368 but the index is 805306368', src/builder.rs:599:11).
Checking the expansion with hvm debug, it seems that it just gets longer and longer with useless duplication nodes, somewhat resembling https://github.com/Kindelia/HVM/issues/60
dup * b6897 = b6898;
dup * b2730 = b2731;
dup * b1090 = b1091;
dup * b870 = b871;
dup * b617 = b618;
dup * b2745 = b2746;
dup * b2847 = b2848;
dup a2038 * = a2039;

Maybe this program would actually eventually finish, but since it always runs out of memory I have no way of knowing if it's actually stuck in a loop or not.
I can solve this problem by avoiding type inference in e0, defining it's type fully as Equal Nat ... instead of just Equal ...

This is missing the definition of Nat.add.cancel_left

This was fixed at some point in the last week


Redundant and contradictory entries

I noticed there are some contradictory entries with the same name, for example the Kadas Opening: Kadas Gambit:
A00	Kadas Opening: Kadas Gambit	1. h4 c5 2. b4
A00	Kadas Opening: Kadas Gambit	1. h4 d5 2. d4 c5 3. Nf3 cxd4 4. c3
A00	Kadas Opening: Kadas Gambit	1. h4 e5 2. d4 exd4 3. c3

Also, some entries seem redundant; for example, of the following, I suspect it would be sufficient to only include the final one:
A01	Nimzo-Larsen Attack: Modern Variation	1. b3 e5
A01	Nimzo-Larsen Attack: Modern Variation	1. b3 e5 2. Bb2
A01	Nimzo-Larsen Attack: Modern Variation	1. b3 e5 2. Bb2 Nc6
A01	Nimzo-Larsen Attack: Modern Variation	1. b3 e5 2. Bb2 Nc6 3. e3

Are these intentional? If so, what is the rationale behind them?

Duplicate entries can be useful to correctly label common transpositions. However that doesn't appear to be the case for these examples, so the useless and/or incorrect (will require some investigation) entries should be removed.


Angular5: Can't import i18n locale files with A5 new methodology

With Angular 5 there is a new methodology to import locale files to use with pipe (date, number...).
Doc: https://angular.io/guide/i18n#i18n-pipes
So now you need to import the locale you want to use and add it to your app.module.ts:
import { registerLocaleData } from '@angular/common';
import localeFr from '@angular/common/locales/fr';

registerLocaleData(localeFr);

When I do that I get a  Uncaught SyntaxError: Unexpected token export in my browser console
Following the link (module.js?hash=blabla...) from the console I can see the export has been added to the module:
"locales":{"fr.js":function(){

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//                                                                                //
//<EMAIL_ADDRESS>                                                                        //
//                                                                                //
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
                                                                                //
/**                                                                                // 1
 * @license                                                                                // 2
 * Copyright Google Inc. All Rights Reserved.                                                                          // 3
 *                                                                                // 4
 * Use of this source code is governed by an MIT-style license that can be                                             // 5
 * found in the LICENSE file at https://angular.io/license                                                             // 6
 */                                                                                // 7
// THIS CODE IS GENERATED - DO NOT MODIFY                                                                              // 8
// See angular/tools/gulp-tasks/cldr/extract.js                                                                        // 9
export default [                                                                                // 10
    'fr',                                                                                // 11
    [                                                                                // 12
        ['AM', 'PM'],

I believe this is due to the way angular2-compilers converts files contents into a string.
PS1: I hope this is just me and not a real issue ;)
PS2: Sorry for my english

can you try the new angular-compilers package instead of angular2-compilers?

Thank you for your reply (and all your work)
I didn't knew about angular-compilers and was still using angular2-compilers from the old days.
So I have migrate my code to use angular-compilers instead of angular2-compilers... everything works great until I try to import that file

It is working with my own import (a copy of the angular file) but not when I do it as mentioned in the angular documentation:
//import localeFr from '@angular/common/locales/fr';    ---> KO
import { localeFr } from './locale.fr';                 ---> OK

I ran into the same problem, I think it is not related with Meteor, it is an Angular 5 issue as explained here:
https://github.com/angular/angular/issues/20605

Thank you for your collaboration. I think it will be fixed in Angular’s v6 release.


Warning on terraform apply - [DEPRECATED] variable names

Repro steps
Executed terraform apply using:

Terraform v0.12.23
provider.azurerm v2.0.0

Expected results:
No warnings or errors
Actual results:
Received the following warnings:

Warning: "arm_tenant_id": [DEPRECATED] arm_tenant_id has been replaced by tenant_id
Warning: "arm_client_id": [DEPRECATED] arm_client_id has been replaced by client_id
Warning: "arm_client_secret": [DEPRECATED] arm_client_secret has been replaced by client_secret
Warning: "arm_subscription_id": [DEPRECATED] arm_subscription_id has been replaced by subscription_id

@charleszipp Do we wanna set both for the time being and drop the ARM_* ones later on?

@norelina @favoretti should be resolved with #136
I was not able to repro this in the pipelines or locally. I was using azurerm 0.2.10 and cli version 0.12.25. I suspect they have made a change recently to suppress the warnings. If you look at the terraform.tfstate file that gets created on the node where the cli runs, it pulls in both the arm_* configs as well as the ones in the current docs.
I went ahead and updated to be consistent with whats documented. Verified this still works as expected.
If users happen to be using older versions that dont support the latest config names, then they can use the self-configured option @favoretti added along with secure .env files to configure in a way thats compatible with the version they need.

Reopening this issue as the changes that were made for #136 had to be rolled back. See #139 for details. TLDR; for those on 0.11 or lower, this change causes init to fail.
Will need to make this change so that the existing configs are still used when terraform 0.11 or lower is being used.

@charleszipp there's no easy way to fetch used TF version in TFCli task, or am I overlooking something obvious?

@favoretti at the beginning of each execution, we run terraform version. That will write the version to stdout. To make this work, we need to capture the version from output of executing that command. Then, pass it as a parameter into the subsequent command. To get it into the command (since we pull the inputs currently from the tasks lib), it would probably need to be set as an env variable.
After accomplishing that, the command could access the version and make decisions about how to execute based on the discovered version.
Does that make sense?

FYI these values have now been removed in 0.15 (also see https://github.com/charleszipp/azure-pipelines-tasks-terraform/issues/268)

Fixed with 0.6.20 in #273


Can I use this with Inertia and Laravel?

It works with Inertia but I noticed that the loading of a page is extremely long compared to the usual amount of time... why is this?

Sorry for not being able to respond immediately. I reduced the size of the component by 10 times and refactored the code a bit. Hopefully, it will load faster now. Please try again. I would appreciate it if you could describe the result.


[Bug]: device_info_plus - iOS 16+ UIDevice.name api changed

Platform
iOS 16
Plugin
device_info_plus
Version
8.0.0
Flutter SDK
3.3.8
Steps to reproduce
After iOS16, Apple change UIDevice.name API, see https://developer.apple.com/documentation/uikit/uidevice/1620015-name

iOS 16+, Apple enhances privacy control, UIDevice.name always return "iPhone", If need to fetch  user-assigned device name, please check this:https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_developer_device-information_user-assigned-device-name
Code Sample
No response
Logs
ignore

Flutter Doctor
[✓] Flutter (Channel stable, 3.3.8, on macOS 13.0.1 22A400 darwin-arm, locale
    zh-Hans-CN)
    • Flutter version 3.3.8 on channel stable at
      /Users/codingiran/Flutter/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 52b3dc25f6 (12 days ago), 2022-11-09 12:09:26 +0800
    • Engine revision 857bd6b74c
    • Dart version 2.18.4
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/codingiran/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0
    • ANDROID_HOME = /Users/codingiran/Library/Android/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.1)
    • Xcode at /Applications/Xcode 14.1.app/Contents/Developer
    • Build 14B47b
    • CocoaPods version 1.11.3

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

[✓] Android Studio (version 2021.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      11.0.13+0-b1751.21-8125866)

[✓] IntelliJ IDEA Ultimate Edition (version 2022.2.3)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • 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

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

[✓] Connected device (3 available)
    • Iran’s iPhone 14 Pro (mobile) • 00008120-0009648C023B401E • ios
      • iOS 16.1.1 20B101
    • macOS (desktop)               • macos                     • darwin-arm64
      • macOS 13.0.1 22A400 darwin-arm
    • Chrome (web)                  • chrome                    • web-javascript
      • Google Chrome 107.0.5304.110

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

• No issues found!

Checklist before submitting a bug

[x] I Google'd a solution and I couldn't find it
[X] I searched on StackOverflow for a solution and I couldn't find it
[X] I read the README.md file of the plugin
[X] I'm using the latest version of the plugin
[X] All dependencies are up to date with flutter pub upgrade
[X] I did a flutter clean
[X] I tried running the example project

iOS 16+, Apple enhances privacy control, UIDevice.name always return "iPhone", If need to fetch user-assigned device name, please check https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_developer_device-information_user-assigned-device-name

According to the doc provided in the link your project needs to have a proper entitlement added. It is not a bug of device_info_plus, but something to configure in the iOS part of the project.


Add a change log describing the changes since the Swift 5.1 release

This adds a change log to the repository in which we can collect the changes since the Swift 5.1 release.

\cc @rintaro please add syntax structure changes in a separate PR.


Update<EMAIL_ADDRESS>

Build<EMAIL_ADDRESS>

:beers: @BrewTestBot has triggered a merge.

:warning: @shivammathur bottle publish failed.

:beers: @BrewTestBot has triggered a merge.

:beers: @BrewTestBot has triggered a merge.

:warning: @shivammathur bottle publish failed.


KCCSD inefficiency issue with multiple threads

I'm trying to do a KRCCSD test as follows, which is modified from examples/pbc/22-k_points-ccsd.py.
from functools import reduce
import numpy
from pyscf.pbc import gto, scf, cc
from pyscf import lib

lib.num_threads(36)

cell = gto.Cell()
cell.atom='''
C 0.000000000000   0.000000000000   0.000000000000
C 1.685068664391   1.685068664391   1.685068664391
'''
cell.basis = 'gth-szv'
cell.pseudo = 'gth-pade'
cell.a = '''
0.000000000, 3.370137329, 3.370137329
3.370137329, 0.000000000, 3.370137329
3.370137329, 3.370137329, 0.000000000'''
cell.unit = 'B'
cell.verbose = 6
cell.max_memory = 200000
cell.build()

kpts = cell.make_kpts([4,4,4])
kmf = scf.KRHF(cell).rs_density_fit()
kmf.kpts = kpts
ehf = kmf.kernel()

mycc = cc.KCCSD(kmf)
mycc.kernel()
print("KRCCSD energy (per unit cell) =", mycc.e_tot)

RSGDF is applied. 2x2x2 works smoothly, but when I set the kpoints to 4x4x4, some steps seem not parallelized at all and some of them runs with a cpu/wall ratio much less than 36. The timer output looks like
    CPU time for CCSD integral transformation  91921.85 sec, wall time   1301.06 sec
    CPU time for init mp2     34.50 sec, wall time     20.88 sec
    CPU time for intermediates     28.06 sec, wall time     28.06 sec
    CPU time for t1     13.95 sec, wall time     13.95 sec
    CPU time for t2 oooo   3456.62 sec, wall time    556.84 sec
    CPU time for t2 vvvv    333.99 sec, wall time    333.99 sec
    CPU time for t2 voov  19275.87 sec, wall time   3367.00 sec
    CPU time for update t1 t2  23135.94 sec, wall time   4327.31 sec
    CPU time for CCSD iter  23148.17 sec, wall time   4339.56 sec

I cannot do a fully analyze for the corresponding codes quickly, but my guess is, as pointed out by issue #835, some np.einsum and reshape or transpose in kccsd_rhf.py and kintermediates_rhf.py run in single thread and cause the problem.
I'm using master branch, pulled at Feb 14. TBLIS is enabled.
By the way, I found that some steps run in 72 threads (maximum in the machine) instead of 36, set by my input, like get_k_kpts. I'm confused why they are not controlled by lib.num_threads().

Hi @hebrewsnabla , thanks for pointing this out. Since it has been some time since this was posted, I was wondering whether this behaviour still exists?

I can reproduce this behavior with pyscf 2.4


How to change the position of the toaster element?

I'm trying out evergreen for a new project and it seems very fresh. Loving it so far!
But I can't seem to position the toaster element from its default center position. And there doesn't seem to be anything in the docs about positioning it either. I want to position it to the top right instead of dead center. I can do it by overriding the CSS but is there any evergreen way of doing it? Any props or options I'm missing here?

Dupe: https://github.com/segmentio/evergreen/issues/759
Let's centralize the discussion. There is a PR open if you want to provide some feedback/review: https://github.com/segmentio/evergreen/pull/760


chore: increase max line-length to 120

This cannot be merged due to all the conflicts.   Please open a new issue if we want to change the line length.


Remove rest_client gem

Change the rest_client gem to rest-client...

All references to the old gem are gone =)


gpt-4-1106-preview 500 errors

Describe the bug
Using gpt-4-1106-preview (gpt-4-turbo) seems to produce an unusually high amount of 500 errors. The discrepancy in error rate may be related to how we're calling the API (possibly due to using deprecated functions kwargs?).

[ ] Reproduce high 500 error occurrence on gpt-4-turbo (isolate)
[ ] Patch the bug either by changing the request format or adding extra error handling for gpt-4-turbo specifically

Example:
💭 Here's Chad, signing in for the first time. Interesting, I have no prior record of him, blank slate. Let’s fix that and give a warm welcome. I wonder what brings him here
today. Foster a striking first impression. “More human than human”—fitting. Show curiosity, enthusiasm, a dash of wit maybe? Ready to engage.
🤖 Hey Chad! Welcome to... well, right here! I'm pretty stoked to have you join me.  First Chad, now Nicholas. He seeks a D&D adventure. I must be the illustrious Dungeon Master in a world we'll forge together. Excitement bubbles within. Let's weave a
tale of legend with Nicholas as the hero. Ask for his character, set the first scene—make it vivid, intriguing. A spark to ignite our journey. Your move, Dungeon Master.
⚡🧠 [function] updating memory with core_memory_append
💭 Ready with Nicholas' details as our quest begins. The mystery of the naming is a story for another time. Now, to craft a world that breathes life into Nicholas's imagination.
Start simple, yet brimming with potential—a tavern, a rumor, a call to action? Engage him, encourage participation. This is our canvas, and together we'll paint it with the tales
of heroes.
🤖 Grand starts hail from humble origins, Nicholas. Your character finds themselves in 'The Gilded Griffin', a tavern buzzing with rumors of a lost citadel that houses a treasure
beyond comprehension. (What's your character's name and their reaction to such whispers? Feel free to add any traits or backstories you deem fit.)
> Enter your message: (i said lets make the world together not just throw me in...)
An exception ocurred when running agent.step():
Traceback (most recent call last):
  File "C:\Users\.\AppData\Local\Programs\Python\Python310\lib\site-packages\memgpt\main.py", line 284, in run_agent_loop
    new_messages, user_message, skip_next_user_input = process_agent_step(user_message, no_verify)
  File "C:\Users\.\AppData\Local\Programs\Python\Python310\lib\site-packages\memgpt\main.py", line 260, in process_agent_step
    new_messages, heartbeat_request, function_failed, token_warning = memgpt_agent.step(
  File "C:\Users\.\AppData\Local\Programs\Python\Python310\lib\site-packages\memgpt\agent.py", line 683, in step
    raise e
  File "C:\Users\.\AppData\Local\Programs\Python\Python310\lib\site-packages\memgpt\agent.py", line 614, in step
    response = self.get_ai_reply(
  File "C:\Users\.\AppData\Local\Programs\Python\Python310\lib\site-packages\memgpt\agent.py", line 812, in get_ai_reply
    raise e
  File "C:\Users\.\AppData\Local\Programs\Python\Python310\lib\site-packages\memgpt\agent.py", line 793, in get_ai_reply
    response = create(
  File "C:\Users\.\AppData\Local\Programs\Python\Python310\lib\site-packages\memgpt\openai_tools.py", line 334, in wrapper
    return func(*args, **kwargs)
  File "C:\Users\.\AppData\Local\Programs\Python\Python310\lib\site-packages\memgpt\openai_tools.py", line 384, in create
    return openai_chat_completions_request(
  File "C:\Users\.\AppData\Local\Programs\Python\Python310\lib\site-packages\memgpt\openai_tools.py", line 201, in openai_chat_completions_request
    raise http_err
  File "C:\Users\.\AppData\Local\Programs\Python\Python310\lib\site-packages\memgpt\openai_tools.py", line 193, in openai_chat_completions_request
    response.raise_for_status()  # Raises HTTPError for 4XX/5XX status
  File "C:\Users\.\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://api.openai.com/v1/chat/completions

Tagging @ndisalvio03 for visibility

I get these in the preview, too.  Again this is PREVIEW, not ready for production use.

I tried running gpt-4-turbo with the tool calling spec instead, but am still running into the same 500 errors:
error = 500 Server Error: Internal Server Error for url: https://api.openai.com/v1/chat/completions
HTTPError occured, but unknown error message: {'message': 'The server had an error processing your request. Sorry about that! You can retry your request, or contact us
through our help center at help.openai.com if you keep seeing this error. (Please include the request ID ... in your email.)', 'type':
'server_error', 'param': None, 'code': None}
step() failed with an unrecognized exception: '500 Server Error: Internal Server Error for url: https://api.openai.com/v1/chat/completions'

So it doesn't seem to be related to PR #619. Maybe there are other parameters that could be passed to the call that might help? Eg seed?

Could potentially be resolved using the new JSON mode: https://platform.openai.com/docs/guides/text-generation/json-mode


feat: add getStatus and getStatusContext methods (issue #23)

1.  Checklist

[x] The title of my PR starts with a Conventional Commit prefix (fix:, feat:, docs: etc).
[x] I have read the Contributor Guide and followed the process outlined for submitting PRs.
[x] I have updated/added tests for ALL new/updated/fixed functionality.
[x] I have updated/added relevant documentation in docs and added dartdoc comments with ///.
[ ] I have updated/added relevant examples in examples.

1.2. Breaking Change

[ ] Yes, this is a breaking change.
[x] No, this is not a breaking change.

1.3. Related Issues
https://github.com/mastodon-dart/mastodon-api/issues/23

Hi @Kraigo ,
LGTM!
Thanks for your contribution :) I will check this PR as soon as possible!


fix(logger): change logging to use stdout

Description of your changes
As reported by user @olanb7 on the community Slack and in #747 before this PR Logger would output logs like this:
2022-04-08T10:58:44.811Z	b6511ee9-4873-404e-b60c-a23cb45d3ff2	INFO {"cold_start":false,"function_arn":"arn:aws:lambda:eu-west-2:12345:function:test","function_memory_size":1024,"function_name":"test","function_request_id":"b6511ee9-4873-404e-b60c-a23cb45d3ff2","level":"INFO","message":"test message","service":"test","timestamp":"2022-04-08T10:58:44.811Z"}

These logs, although containing a structured JSON, are not JSON as they are always prefixed by 2022-04-08T10:58:44.811Z	b6511ee9-4873-404e-b60c-a23cb45d3ff2	INFO.
This also confirmed by a line in the Lambda docs (emphasis mine):

The Node.js runtime logs the START, END, and REPORT lines for each invocation. It adds a timestamp, request ID, and log level to each entry logged by the function.

This behaviour works well with CloudWatch but the presence of these prefixes was an issue for customers wanting to use these structured logs elsewhere (both 3rd party services and AWS Managed Grafana).
From this PR onwards Logger will be using its own internal and private version of the Console class that only outputs the structured JSON log without any prefix:
{"cold_start":false,"function_arn":"arn:aws:lambda:eu-west-2:12345:function:test","function_memory_size":1024,"function_name":"test","function_request_id":"b6511ee9-4873-404e-b60c-a23cb45d3ff2","level":"INFO","message":"test message","service":"test","timestamp":"2022-04-08T10:58:44.811Z"}

Aside from 3-lines change in the Logger class, all the rest of the changes in this PR are related to the unit and integration tests.
How to verify this change
See the results of checks inside this PR and e2e tests (to be run).
Also see screenshot below:

Related issues, RFCs
#747
PR status
Is this ready for review?: YES
Is it a breaking change?: NO
Checklist

[x] My changes meet the tenets criteria
[x] I have performed a self-review of my own code
[x] I have commented my code where necessary, particularly in areas that should be flagged with a TODO, or hard-to-understand areas
[x] My changes generate no new warnings
[x] The code coverage hasn't decreased
[x] I have added tests that prove my change is effective and works
[x] New and existing unit tests pass locally and in Github Actions
[x] Any dependent changes have been merged and published in downstream module
[x] The PR title follows the conventional commit semantics

Breaking change checklist
N/A

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

e2e test results here (passing) https://github.com/awslabs/aws-lambda-powertools-typescript/actions/runs/2162686619

I'm curious does this change break tracing in cloudwatch? I thought that the default console log formatting is used to correlate logs across traces in cloudwatch tracing and x-ray.


vulkaninfo has been running for 20 minutes at full throttle

Starting it causes the fans to spin up without stopping. First time I've run it, but I was expecting it fetch some info and promptly output it.
vulkan-tools: 1.3.217
OS: Archlinux
graphics card: AMD Radeon RX 6700 XT

xorg-server: 21.1.4

I tried upgrading to the latest releases, but 1.3.22{2,3} wouldn't build. I was able to build and install 1.3.221. It has the same problem.

Checking with GDB, it seems this is where I'm infinitely looping:
https://github.com/KhronosGroup/Vulkan-Tools/blob/v1.3.221/vulkaninfo/vulkaninfo.h#L229
Here's an excerpt from my GDB session:
(gdb) c
Continuing.
^C
Thread 1 "vulkaninfo" received signal SIGINT, Interrupt.
0x00007fe8cc35ff2b in ?? () from /usr/lib/libc.so.6
(gdb) bt
#0  0x00007fe8cc35ff2b in ?? () from /usr/lib/libc.so.6
#1  0x00007fe8cc4ae6ec in ?? () from /usr/lib/libvulkan.so
#2  0x00007fe8cc4c245a in ?? () from /usr/lib/libvulkan.so
#3  0x00007fe8cc414998 in ?? () from /usr/lib/libVkLayer_MESA_device_select.so
#4  0x00007fe8cbc23dcf in ?? () from /usr/lib/amdvlk64.so
#5  0x00007fe8cc4cd15e in vkEnumeratePhysicalDevices () from /usr/lib/libvulkan.so
#6  0x000055833a5124e7 in GetVectorInit<VkPhysicalDevice_T*, VkResult (*&)(VkInstance_T*, unsigned int*, VkPhysicalDevice_T**), VkInstance_T*&> (func_name=func_name@entry=0x55833a52302c "vkEnumeratePhysicalDevices", f=@0x7ffe7c354120: 0x7fe8cc4cd0e0 <vkEnumeratePhysicalDevices>, init=<optimized out>, init@entry=0x0) at /usr/src/debug/Vulkan-Tools-1.3.221/vulkaninfo/vulkaninfo.h:233
#7  0x000055833a49d335 in GetVector<VkPhysicalDevice_T*, VkResult (*&)(VkInstance_T*, unsigned int*, VkPhysicalDevice_T**), VkInstance_T*&> (f=@0x7ffe7c354120: 0x7fe8cc4cd0e0 <vkEnumeratePhysicalDevices>, func_name=0x55833a52302c "vkEnumeratePhysicalDevices") at /usr/src/debug/Vulkan-Tools-1.3.221/vulkaninfo/vulkaninfo.h:242
#8  AppInstance::FindPhysicalDevices (this=0x7ffe7c354100) at /usr/src/debug/Vulkan-Tools-1.3.221/vulkaninfo/vulkaninfo.h:720
#9  main (argc=1, argv=0x7ffe7c354b48) at /usr/src/debug/Vulkan-Tools-1.3.221/vulkaninfo/vulkaninfo.cpp:1097
(gdb) c
Continuing.
^C
Thread 1 "vulkaninfo" received signal SIGINT, Interrupt.
0x00007fe8cc30111e in fstatat64 () from /usr/lib/libc.so.6
(gdb) bt
#0  0x00007fe8cc30111e in fstatat64 () from /usr/lib/libc.so.6
#1  0x00007fe8cc425333 in drmGetDevice2 () from /usr/lib/libdrm.so.2
#2  0x00007fe8cc4150e1 in ?? () from /usr/lib/libVkLayer_MESA_device_select.so
#3  0x00007fe8cbc23dcf in ?? () from /usr/lib/amdvlk64.so
#4  0x00007fe8cc4cd15e in vkEnumeratePhysicalDevices () from /usr/lib/libvulkan.so
#5  0x000055833a512527 in GetVectorInit<VkPhysicalDevice_T*, VkResult (*&)(VkInstance_T*, unsigned int*, VkPhysicalDevice_T**), VkInstance_T*&> (func_name=func_name@entry=0x55833a52302c "vkEnumeratePhysicalDevices", f=@0x7ffe7c354120: 0x7fe8cc4cd0e0 <vkEnumeratePhysicalDevices>, init=<optimized out>, init@entry=0x0) at /usr/src/debug/Vulkan-Tools-1.3.221/vulkaninfo/vulkaninfo.h:230
#6  0x000055833a49d335 in GetVector<VkPhysicalDevice_T*, VkResult (*&)(VkInstance_T*, unsigned int*, VkPhysicalDevice_T**), VkInstance_T*&> (f=@0x7ffe7c354120: 0x7fe8cc4cd0e0 <vkEnumeratePhysicalDevices>, func_name=0x55833a52302c "vkEnumeratePhysicalDevices") at /usr/src/debug/Vulkan-Tools-1.3.221/vulkaninfo/vulkaninfo.h:242
#7  AppInstance::FindPhysicalDevices (this=0x7ffe7c354100) at /usr/src/debug/Vulkan-Tools-1.3.221/vulkaninfo/vulkaninfo.h:720
#8  main (argc=1, argv=0x7ffe7c354b48) at /usr/src/debug/Vulkan-Tools-1.3.221/vulkaninfo/vulkaninfo.cpp:1097
(gdb) c
Continuing.
^C

Note frame 6 in the first backtrace and frame 5 in the second backtrace above. The lowest part of the stack that changes each time I check it is in that loop I linked.

This appears to be a driver issue, as all vulkaninfo does is call vkEnumeratePhysicalDevices and keep calling it until VK_INCOMPLETE is gone. However, an infinitely looping vulkaninfo is no good, and should also be fixed.
I suggest you report this to the amdvlk driver team, as it is most likely an issue with the driver. In the mean time, I have created a PR to fix vulkaninfo's infinite looping issue.


Add support to distribute blackbytes

Though the blackbytes asset is defined, it is not yet possible to withdraw them. Add an RPC endpoint to allow sending of blackbytes to other wallets.

It appears that the witness cannot deliver messages to a paired device because it detects that it tries to connect to itself since the hub is the witness (see self-connect error in network.js). As a result, the witness is not able to deliver messages such as private payments to other wallets. If the witness and hub runs separately (with separate databases), it works.


Irrelevant authorities error?

I've deployed the tic tac toe example and am now trying to create a new game with eosjs, but I'm getting errors about irrelevant authorities?
Here's the code I'm trying to run:
eos.contract('tictactoe').then(c => c.create({ host: 'inita', challenger: 'initb' }))

But when I run that I get these errors:

Here's the payload for that push_transaction request:
{
    "ref_block_num":8158,
    "ref_block_prefix":1085591932,
    "expiration":"2017-11-23T08:13:11",
    "scope":[
        "inita",
        "initb"
    ],
    "read_scope":[

    ],
    "messages":[
        {
            "code":"tictactoe",
            "type":"create",
            "authorization":[
                {
                    "account":"initb",
                    "permission":"active"
                }
            ],
            "data":{
                "challenger":"initb",
                "host":"inita"
            }
        }
    ],
    "signatures":[
        "1f5d41e3077f3d71b0155203a62d4ab86317cd8bbedb48f37b12471e0da0bdb1111852576e65fa9ffbaf860969f363b280b9971ce5c7012e84edcc002e2de33cf9"
    ]
}

I also tried creating the transaction manually like this:
eos.transaction({
  scope: ['inita', 'initb'],
  messages: [
    {
      code: 'tictactoe',
      type: 'create',
      authorization: [],
      data: {
        host: 'inita', challenger: 'initb'
      }
    }
  ]
})

But then I get different errors about missing required keys:

Any idea what's causing this? Am I doing something wrong? Thanks.

Here's the tic-tac-toe.wast file: https://gist.github.com/liamcurry/8c107e14fe05a5a2fa9befee2f72a976

Okay I think I've partially figured out the issue. I have the contract account named tictactoe, but there's a check in the contract for code tic.tac.toe here: https://github.com/EOSIO/eos/blob/master/contracts/tic_tac_toe/tic_tac_toe.cpp#L195
I changed that to be tictactoe and now I can create games with eosc and with eos.transaction like this:
eos.transaction({
  scope: ['inita', 'initb'],
  messages: [
    {
      code: 'tictactoe',
      type: 'create',
      authorization: [{ account: 'inita', permission: 'active' }],
      data: {
        host: 'inita', challenger: 'initb'
      }
    }
  ]
})

However I'm still getting errors when I try this code:
eos.contract('tictactoe').then(c => c.create({ host: 'inita', challenger: 'initb' }))

eosjs could not figure out the correct authorization in this case..  As a work-around, try supplying your own "authorization"  as an option (last parameter) to c.create({}, options)
https://github.com/EOSIO/eosjs#options

Related: https://github.com/EOSIO/eos/issues/401

    const create = await game.create(
      {challenger: 'inita', host: 'initb'},
      {
        scope: ['inita', 'initb'],
        authorization: ['initb@active']
      }
    )

const game = await eos.contract('tic.tac.toe')

SyntaxError: await is only valid in async function


Feature/cmjd 126 calendar

close #126
This PR includes #125
We used the simple_calendar gem for the visualization. We also added a model for events which are also stored in the database.
For now you can view calendars for each room, which query the database in that moment

There seems to be a problem with showing the names of the weekdays when the language is switched to german.

Looks really neat, good job!
The only thing that I noticed is that success messages are shown twice: as an alert and again as notice below. Happens for creating, updating as well as destroying events. Could you remove the non-alert-notices?

The additional notices have been removed


Collect coverage jest llm

📝 Description
Collect coverage from LLM.
It does not work in the CI today (I reproduce locally with a Docker) because with latest version Jest it exists an issue with Babel. The proposed solution is to switch to swc.
Removed collectCoverage: true from jest configuration as you want to run tests without collecting the coverage by default and only do it on demand or in the CI.
Introduced a common pattern to exclude warnings and errors when you replay your tests (from libraries you can't control, the goal is not to prevent errors/ warnings from our code). The goal is to avoid noise and at the end we might to prevent merge with errors and warnings when you replay your tests.
❓ Context

Impacted projects: llm
Linked resource(s): ``

✅ Checklist

[ ] Test coverage
[ ] Atomic delivery
[ ] No breaking changes

📸 Demo

🚀 Expectations to reach
Please make sure you follow these Important Steps.
Pull Requests must pass the CI and be internally validated in order to be merged.

@gre , @valpinkman, I discovered that if you update babel/core in LLM and have a different version in ui/packages/native you will end up with two references of react-native-reanimated in pnpm.lock and it breaks the app. The symptom is that you can't have the Transfer Drawer and other Drawers in the app (detected with e2e tests).

@KVNLS it's a classical problem in our stack unfortunately. it's very easy to break the dedup of our libs. pnpm dedupe is the way to globally fix this, however we diverged way too much to make this realistic to directly jump to a pnpm deduped version, but it's a goal we need to keep in mind https://github.com/LedgerHQ/ledger-live/pull/5223


fix: rm auto-running MaC related setup [sc-00]

Affected Components

[ ] Content & Marketing
[ ] Pricing
[ ] Test
[ ] Docs
[ ] Learn
[ ] Other

Pre-Requisites

[ ] Code is linted (npm run lint)

Notes for the Reviewer

I've reverted the checks changes from (https://github.com/checkly/checklyhq.com/pull/799), because those changes are for the new marketing site (see upcoming checks copied there)
Remove GH Action for MaC checks. This will remove auto-running the checks on any PR's. We will most likely be making very little changes to this repo going forward anyway. But if we do, we'll have the checks still here, passing on the contents of this repo (i.e. the old site), and they can be run manually
Removed the checkly:deploy npm script from this repo to avoid someone potentially accidentally deploying these checks back to the cloud.
These checks are going to be replaced/relocated into the checkly/checkly-marketing-website repo shortly (PR incoming as soon as I have the rights).

New Dependency Submission

Screenshots

Unnecessary due to Tim's https://github.com/checkly/checklyhq.com/pull/801


Remove .vscode folders, update .gitignore

Remove unnecessary folders:

[x] Remove folder \en\manual\.vscode\
[x] Remove folder \jp\manua\.vscode\
[x] Correct in .gitignore from  .vscode/** to **/.vscode/ - to match any level of subdirectories

Resolved.


Update README.md

a

Coverage remained the same at 51.064% when pulling 58d1588dbf7708d0f957216c027e4a7b568d998e on Geroshabu-patch-1 into 4ea61b873376f77a23b3a2ae6b6f15fa847ea075 on master.