Tunneling issue

Hi,
I was working on a game in Love2D and decide to port it to Monogame. Finding Humper helped me a lot since I was using Bump in Love2D but I did run into a issue I didn't have in bump:

I start off with a world with a width of 480 and height of 280 and cell size of 64 and 56 spheres (a 16 by 16 AABB) falling, the green number counts the spheres in the world, and make them fall, most of them bounce back using the default collision response but some of them pass through the floor.  Am I doing something wrong or is this a bug?
The sphere have the following collision response:
            float nx = 0, ny = 0;
            float dt = (float)gametime.ElapsedGameTime.TotalSeconds;
            _vy = Math.Max(_vy + (_gravity * dt), _maxHeight);

            nx = Position.X + (_vx * dt);
            ny = Position.Y + (_vy * dt);

            var move = _box.Move(nx, ny, (collision) =>
            {
                if (collision.Other.HasTag(EntityType.Wall))
                {
                    return CollisionResponses.Bounce;
                }
                return CollisionResponses.Cross;
            });

            foreach (IHit hit in move.Hits)
            {
                if (hit.Box.HasTag(EntityType.Wall))
                {
                    if ((hit.Normal.X < 0 && _vx > 0) || (hit.Normal.X > 0 && _vx < 0))
                    {
                        _vx = _vx * -1;
                    }
                    if ((hit.Normal.Y < 0 && _vy > 0) || (hit.Normal.Y > 0 && _vy < 0))
                    {
                        _vy = _vy * -1;
                    }
                }
            }

            Position = new Vector2(_box.X, _box.Y);

            if (_box.Y > 480) // if they tunnel through the floor...
            {
                _entities.Remove(this);
            }

The walls don't have a response since they are static.

I think the problem is with the last part.

480 is a too accurate value. Maybe try with some bigger value? Like 600


Added SAN field.

1)Can you add the test o/p of gen-cert utility..

Also, is it possible the SAN field in the certs ?  Attach that as well..

Show the component logs of any container, to see if the warning is not there..


Create task-specific tutorials

For re-use in multiple projects e.g. a mark tutorial for use in all mark projects.
It should very briefly explain what the task is, why do it, and ideally include an animated gif of the process. Refer users to help for more specific information about what to include or exclude etc.

Some images for use in tutorials and help documents

Image of playbills in situ on the walls of a theatre in Portsmouth

'Agreeable surprise'!

So this is another duplicate of the various "update tutorial" issues we have scattered around...e.g. https://github.com/LibCrowds/project-playbills/issues/11


build: Update to header 1.2.180

Update known-good
Generate source

CI Vulkan-Tools build queued with queue ID 17004.

CI Vulkan-Tools build # 431 running.

CI Vulkan-Tools build # 431 passed.


Suggestions for paper

I (finally!) read the paper and have a few suggestions below. After this you have my 👍  to start the JOSS submission process.

Codecov Report

Merging #28 (e8cfdce) into main (9f9e9d7) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #28   +/-   ##
=======================================
  Coverage   92.88%   92.88%
=======================================
  Files           5        5
  Lines         225      225
=======================================
  Hits          209      209
  Misses         16       16

Flag
Coverage Δ

unittests
92.88% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Continue to review full report at Codecov.

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


Add line comment toggling hotkey

Resolves part of https://github.com/google/playground-elements/issues/148
Context
Add the Ctrl+/ and Cmd+/ hotkey to toggle line comments (such that it is supported for either Mac/Linux/Windows keyboard layout).
This was implemented by adding comment support via CodeMirror plugin. I omitted supporting the block comment as it's much more difficult to determine if it's toggling.
Testing
Manually tested (TypeScript) in the configurator checking that it is possible to select multiple lines and toggle them.
Also manually tested that undo works.
Unit tested:

Sending the hotkey in the automated tests and commenting ts, js, css, html.
readonly playground-code-editor will not toggle.

Strange. The readonly test failed in CI for chrome but not locally. Will make it more robust.

Tracking issue for documenting hotkeys - great suggestion: https://github.com/google/playground-elements/issues/285


test

What this PR does / why we need it
Which issue(s) this PR fixes

superseded by https://github.com/open-component-model/ocm-setup-action/pull/13


Feature Request: System Group/Accounts

Have y'all thought about adding account support?
Our system has the concept of accounts which are collections of users.  We would like to enable a feature for a account without having to add each individual user.

We do it by using another Rollout instance for the account IDs. There's no need for additional features.

How are you doing that?  We talked about that solution here, but it looks like you are using the same redis name spacing and would potentially have conflicts.

You can use Redis Namespaces as referenced in the README.

ah, thanks!

Alternatively... instead of passing the objects to rollout (ex: $rollout.active?(:feature, user)) you can pass in the id yourself. This way you can manipulate that the ids for users and accounts are different.
$rollout.active?(:feature, user.id)
$rollout.active?(:feature, "a:#{user.account.id}")

Also, i think we can close this ticket. No?


[WIP] Added fleetkick.sh to inject a kickstart into an ISO, added function …

…in go to call fleetkick.sh.
WIP!
Feature RHELPLAN-88548 & RHELPLAN-90204
Create a script that can inject a kickstart into an ISO,
Call the script in the correct locations.
Blocked by Pull #117
Co-author @loadtheaccumulator

@AaronH88 How do you feel about abandoning this PR (or just removing the fleetkick.sh file from it? I need to include it with the Dockerfile change so it won't break the build.

@AaronH88 How do you feel about abandoning this PR (or just removing the fleetkick.sh file from it? I need to include it with the Dockerfile change so it won't break the build.

Which ever is easier!

We have some conflicts here, so if @loadtheaccumulator gets his PR #135 working he might get this piece of code on his PR too

I resolved the conflicts, but seeing different errors.


Add a item in CSS Layout: last item will all available height

Awesome snippet! Everything looks good. Thank you


XML schema definition file

The standard name XML file refers to a XSD file:

<standard_name_table xsi:noNamespaceSchemaLocation="cf-standard-name-table-1.1.xsd">

The only such file I have been able to locate is from the days of table version 13:
.../cf-convention.github.io/Data/cf-standard-names/13/src/cf-standard-name-table-1.1.xsd
Is this the currently used one, or is there a more recent one offline somewhere at CEDA?
I am asking because over at the cf-conventions repo there are three issues that likely involve modifications to this file:
cf-conventions/#132, cf-conventions/#367, cf-conventions/#500

Investigating this somewhat more in detail by looking at what .xsd files are available with which version of the standard name table, and what file is referred to in the xml file, the following emerges (see table below):

There are three filenames CFStandardNameTable-1.0.xsd, CFStandardNameTable-1.1.xsd, and cf-standard-name-table-1.1.xsd
CFStandardNameTable-1.0.xsd is applicable only for version 1.
CFStandardNameTable-1.1.xsd and cf-standard-name-table-1.1.xsd have exactly the same content.
In version 13 the name of the file changed from CFStandardNameTable-1.1.xsd to cf-standard-name-table-1.1.xsd. This change was not followed by a corresponding change of the format specification in Appendix B of the conventions document.
The xsd file has not been systematically transferred whne a new version was produced. Onwards from version 14 the file is not present.

Ver.
XSD pointed at in xml file
XSD file in directory
XSD file size
Duplicate (unused) file

1
CFStandardNameTable-1.0.xsd
CFStandardNameTable-1.0.xsd
3183

2
CFStandardNameTable-1.1.xsd
CFStandardNameTable-1.1.xsd
3696
CFStandardNameTable-1.0.xsd

3
CFStandardNameTable-1.1.xsd
CFStandardNameTable-1.1.xsd
3696
CFStandardNameTable-1.0.xsd

4
CFStandardNameTable-1.1.xsd

5
CFStandardNameTable-1.1.xsd
CFStandardNameTable-1.1.xsd
3696
CFStandardNameTable-1.0.xsd

6
CFStandardNameTable-1.1.xsd
--

7
CFStandardNameTable-1.1.xsd
CFStandardNameTable-1.1.xsd
3696

8
CFStandardNameTable-1.1.xsd
CFStandardNameTable-1.1.xsd
3696

9
CFStandardNameTable-1.1.xsd
--

10
CFStandardNameTable-1.1.xsd
CFStandardNameTable-1.1.xsd
3696

11
CFStandardNameTable-1.1.xsd
CFStandardNameTable-1.1.xsd
3696

12
CFStandardNameTable-1.1.xsd
--

13
CFStandardNameTable-1.1.xsd
cf-standard-name-table-1.1.xsd
3696

14
CFStandardNameTable-1.1.xsd
--

15
CFStandardNameTable-1.1.xsd
--

16-83
... and so on ...

Attached below is a suggestion for an updated version of the xsd file that takes care (I hope) of the changes proposed in
cf-/conventions/#132, cf-/conventions/#367, cf-/conventions/#500. Rather than removing elements I have for transparency commented them out (for later removal).
Note that the changes suggested in the three issues will require updates to the cf-vocab-editor as well as the file
...../xsl/html/cf-standard-name-table-1.3.xsl
The .txt extension was added just to allow uploading here, and it can/should be removed before any use.
CFStandardNameTable-1.2.xsd.txt

Instead of having the schema files scattered in various uncoordinated version subdirectories as per the table above I suggest that they are collected in one specifically designated subdirectory. This will help to get a better overview and facilitate their publication in the website. See associated ull request for technical details.

That looks sensible, thanks. I'm happy to support it if Alison @japamment supports it too.

All looks good to me, too.

Hi @larsbarring @JonathanGregory,
I am happy with the proposal in this issue to collect the xsd schema files into one directory. I'm also happy with pull request #458 which implements it - I think it is fine to go ahead and merge the pull request.
In addition, I have added some comments in cf-conventions/issues/132 which allows one alias to be split into two standard names and cf-conventions/issues/367 regarding removal of the grib and amip columns from the standard name table. Although simple in concept, conventions issue 367 is a larger change in practice, and I think it best to prioritise completion of this current issue and cf-conventions/issues/132 before tackling that one.

Many thanks Alison !
With this I think that we can start the countdown clock. If there are no more (substantial) comments regarding this enhancement proposal the associated PR could be merged on April 10.
I fully agree that removing the amip and grib columns of the standard name table is a larger undertaking that should wait until all these changes are completed.

As this enhancement proposal is supported by several (@JonathanGregory, @davidhassell, @japamment) and there have been no further comments during the count-down period, I think this proposal can now be accepted. Could someone please merge the associate PR #458.
Many thanks,
Lars


F# compiler bug in release mode in VS2015 Update 1

In F# compound loops where the sequences are defined locally, in release mode only, F# generates a compile-time error saying that the name of the sequence being looped over is not found, generating error FS0971: Undefined value. Bizarrely this seems to be the case only when the outer loop is over the elements of a set.
I am using Visual Studio 2015 Update 1 RTM - 14.0.24720.00
I have managed to repro this in a few simple lines of code. Please see below.

Code for the repro is below. The upload of zip files does not seem to be working.
// Learn more about F# at http://fsharp.org
// See the 'F# Tutorial' project for more help.
module Stuff =
/// Does not compile in release build
let f() =
    let currencies = set [ 1 ; 2 ; 3 ]
    let expiries = [ 3 ; 4 ]
    for ccy in currencies do
        for expiry in expiries do
            printfn "Done"

/// Does compile in release build
let f2() =
    let currencies = [ 1 ; 2 ; 3 ]
    let expiries = [ 3 ; 4 ]
    for ccy in currencies do
        for expiry in expiries do
            printfn "Done"

[]
let main argv =
Stuff.f()
Stuff.f2()
0 // return an integer exit code

Replacing 'set' with 'seq' above also causes the compile error.

This is the same as the bug fixed by https://github.com/Microsoft/visualfsharp/pull/756.  Let's use this as the tracking issue for the problem.

Fix merged:
commit:
https://github.com/Microsoft/visualfsharp/commit/c1e0bc806f00db5da90cc996871afae9bee047e6
PR:
https://github.com/Microsoft/visualfsharp/issues/759

Thank you for reporting this.  The fix is in, it will be in the next release of Visual F#.

f you do need to get your code to compile and you are using Update 1, it appears sufficient to place something benign prior to any loop where this problem is occurring, like this:
// do something that doesn't get optimized away
let workaround() = null |> ignore

let configure () =
 let aSequence = Microsoft.FSharp.Core.Operators.(..) 3 4
 let aString = new string('a',3)
 workaround()
 for _ in aSequence do
   System.Console.WriteLine(aString)

configure ()

That said I really hope a fix is made available as soon as possible.
Obviously these calls should be removed as soon as a fix release is made available.


Fix an error when a subdirectory exists in the image directory

#3

@dash14
Thank you very much for the great pull request.
I have no problem with the code, but the following file is not formatted, so please format it.

__tests__/index.test.ts

yarn install
yarn run format

@sonodar
Thank you for your prompt review!
Sorry, I forgot to format the code. I formatted it and replaced the commit.
Kind Regards,
dash14

@dash14
Thank you so much for your contribution!
Please wait for the next release (will be released soon).


No module named 'torch_sparse'

I have successfully run the installation cmd. But when I run from torch_sparse import coalesce, I got the error.
from torch_sparse import coalesce
ModuledNotFoundError: No module named 'torch_sparse'
📚 Installation
$ pip install --verbose --no-cache-dir torch-scatter
$ pip install --verbose --no-cache-dir torch-sparse
$ pip install --verbose --no-cache-dir torch-cluster
$ pip install --verbose --no-cache-dir torch-spline-conv (optional)
$ pip install torch-geometric
Environment

OS: Ubuntu 16.04 LTS
Python version: Python 3.6.6 | Anaconda
PyTorch version: 1.0.0
CUDA/cuDNN version: 9.0 / 7.0.5
GCC version: 5.4.0
How did you try to install PyTorch Geometric and its extensions (pip, source): pip

Thank you, I am closing this in favour of https://github.com/rusty1s/pytorch_geometric/issues/542#issuecomment-516681675

When I run pip install --verbose --no-cache-dir torch-scatter, the error occurs.
oot@hh-ubuntu:/home/hh# pip install --verbose --no-cache-dir torch-scatter
Created temporary directory: /tmp/pip-ephem-wheel-cache-ybrdqy7e
Created temporary directory: /tmp/pip-req-tracker-iissci7p
Created requirements tracker '/tmp/pip-req-tracker-iissci7p'
Created temporary directory: /tmp/pip-install-kkggeind
Collecting torch-scatter
1 location(s) to search for versions of torch-scatter:

https://pypi.org/simple/torch-scatter/
Getting page https://pypi.org/simple/torch-scatter/
Starting new HTTPS connection (1): pypi.org:443
https://pypi.org:443 "GET /simple/torch-scatter/ HTTP/1.1" 200 1104
Analyzing links from page https://pypi.org/simple/torch-scatter/
Found link https://files.pythonhosted.org/packages/29/96/566ac314e796d4b07209a3b88cc7a8d2e8582d55819e33f72e6c0e8d8216/torch_scatter-0.3.0.tar.gz#sha256=9e5e5a6efa4ef45f584e8611f83690d799370dd122b862646751ae112b685b50 (from https://pypi.org/simple/torch-scatter/), version: 0.3.0
Found link https://files.pythonhosted.org/packages/6a/b0/ecffacddf573c147c70c6e43ce05d24f007155ce3fb436959d3d2a24da46/torch_scatter-1.0.2.tar.gz#sha256=ccda794c25265b3450206b7fb0bf74f16a0b45f3f72d9547a42e44648a32faee (from https://pypi.org/simple/torch-scatter/), version: 1.0.2
Found link https://files.pythonhosted.org/packages/08/09/07b106f3e74246f4ecf6517013a053b6dd7486c4f889d81f39adc662431f/torch_scatter-1.0.3.tar.gz#sha256=e626993194819ba65cdf89a52fbbb7780569d9e157bc63dbef13ead6b7a33930 (from https://pypi.org/simple/torch-scatter/), version: 1.0.3
Found link https://files.pythonhosted.org/packages/2d/70/df2bc259d9606f00854ca43b6839f9047ec44900563435e0067584c93864/torch_scatter-1.0.4.tar.gz#sha256=ec004d687e47da9d5477407849d815629fc8b571ee87aeeebf6af8ed6f16defc (from https://pypi.org/simple/torch-scatter/), version: 1.0.4
Found link https://files.pythonhosted.org/packages/2f/97/c50a6aeaedc6924180c6f5810d2a7405ce11aa9b82ba4284badad549d665/torch_scatter-1.1.0.tar.gz#sha256=e534cc2ecb2f9d9b559b1513cd411737d26ea5585d1d65ff571fec55f42a49de (from https://pypi.org/simple/torch-scatter/), version: 1.1.0
Found link https://files.pythonhosted.org/packages/91/5f/eb1d3ef3810cb1165859d40db4d9ee6d7f1dfef97d7e5c34010055f43d95/torch_scatter-1.1.1.tar.gz#sha256=9db7f2c0a5cddf6cfde633e33db7c2c94eaab163e9f8edb46460d6414cc97917 (from https://pypi.org/simple/torch-scatter/), version: 1.1.1
Found link https://files.pythonhosted.org/packages/d4/83/67eeea00c2db1959e2ff95d8680dbd756977bfab254bda8658f09dc3bc11/torch_scatter-1.1.2.tar.gz#sha256=766c2476f5da5ffc25fa8e249ccf50f594031cdce3922abb23559e8e3b14337a (from https://pypi.org/simple/torch-scatter/), version: 1.1.2
Found link https://files.pythonhosted.org/packages/07/c0/f7ac424496f4a3bcb31aa993fba29077a6d42fc2624c66e90b58a566a98e/torch_scatter-1.2.0.tar.gz#sha256=3a0259105d07d264c740eec8e4267260a5c144cf55472abd26022fff4fd73281 (from https://pypi.org/simple/torch-scatter/), version: 1.2.0
Found link https://files.pythonhosted.org/packages/24/b7/680c3b392a4b55a0ebfb480aabb0d5c188e94bb21790104175c8cd614947/torch_scatter-1.3.0.tar.gz#sha256=bf7d561b8ef12b39a99f5797c90b989a0ce2c3ee4de74dff3b170f2d8566e1d4 (from https://pypi.org/simple/torch-scatter/), version: 1.3.0
Found link https://files.pythonhosted.org/packages/35/d4/750403a8aa32cdb3d2d05849c6a10e4e0604de5e0cc94b81a0d0d69a75f3/torch_scatter-1.3.1.tar.gz#sha256=54cbad248350165ddc921ded3fe7a69be5d30c6536273a1a3282e375289f86ec (from https://pypi.org/simple/torch-scatter/), version: 1.3.1
Using version 1.3.1 (newest of versions: 0.3.0, 1.0.2, 1.0.3, 1.0.4, 1.1.0, 1.1.1, 1.1.2, 1.2.0, 1.3.0, 1.3.1)
Created temporary directory: /tmp/pip-unpack-0jz27wyz
Starting new HTTPS connection (1): files.pythonhosted.org:443
https://files.pythonhosted.org:443 "GET /packages/35/d4/750403a8aa32cdb3d2d05849c6a10e4e0604de5e0cc94b81a0d0d69a75f3/torch_scatter-1.3.1.tar.gz HTTP/1.1" 200 12787
Downloading https://files.pythonhosted.org/packages/35/d4/750403a8aa32cdb3d2d05849c6a10e4e0604de5e0cc94b81a0d0d69a75f3/torch_scatter-1.3.1.tar.gz
Downloading from URL https://files.pythonhosted.org/packages/35/d4/750403a8aa32cdb3d2d05849c6a10e4e0604de5e0cc94b81a0d0d69a75f3/torch_scatter-1.3.1.tar.gz#sha256=54cbad248350165ddc921ded3fe7a69be5d30c6536273a1a3282e375289f86ec (from https://pypi.org/simple/torch-scatter/)
Added torch-scatter from https://files.pythonhosted.org/packages/35/d4/750403a8aa32cdb3d2d05849c6a10e4e0604de5e0cc94b81a0d0d69a75f3/torch_scatter-1.3.1.tar.gz#sha256=54cbad248350165ddc921ded3fe7a69be5d30c6536273a1a3282e375289f86ec to build tracker '/tmp/pip-req-tracker-iissci7p'
Running setup.py (path:/tmp/pip-install-kkggeind/torch-scatter/setup.py) egg_info for package torch-scatter
Running command python setup.py egg_info
running egg_info
creating pip-egg-info/torch_scatter.egg-info
writing pip-egg-info/torch_scatter.egg-info/PKG-INFO
writing dependency_links to pip-egg-info/torch_scatter.egg-info/dependency_links.txt
writing top-level names to pip-egg-info/torch_scatter.egg-info/top_level.txt
writing manifest file 'pip-egg-info/torch_scatter.egg-info/SOURCES.txt'
reading manifest file 'pip-egg-info/torch_scatter.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'pip-egg-info/torch_scatter.egg-info/SOURCES.txt'
Source in /tmp/pip-install-kkggeind/torch-scatter has version 1.3.1, which satisfies requirement torch-scatter from https://files.pythonhosted.org/packages/35/d4/750403a8aa32cdb3d2d05849c6a10e4e0604de5e0cc94b81a0d0d69a75f3/torch_scatter-1.3.1.tar.gz#sha256=54cbad248350165ddc921ded3fe7a69be5d30c6536273a1a3282e375289f86ec
Removed torch-scatter from https://files.pythonhosted.org/packages/35/d4/750403a8aa32cdb3d2d05849c6a10e4e0604de5e0cc94b81a0d0d69a75f3/torch_scatter-1.3.1.tar.gz#sha256=54cbad248350165ddc921ded3fe7a69be5d30c6536273a1a3282e375289f86ec from build tracker '/tmp/pip-req-tracker-iissci7p'
Installing collected packages: torch-scatter
Created temporary directory: /tmp/pip-record-dfotp6mk
Running setup.py install for torch-scatter ...     Running command /usr/anaconda3/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-install-kkggeind/torch-scatter/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-dfotp6mk/install-record.txt --single-version-externally-managed --compile
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/test
copying test/test_max_min.py -> build/lib.linux-x86_64-3.6/test
copying test/test_std.py -> build/lib.linux-x86_64-3.6/test
copying test/test_multi_gpu.py -> build/lib.linux-x86_64-3.6/test
copying test/test_backward.py -> build/lib.linux-x86_64-3.6/test
copying test/init.py -> build/lib.linux-x86_64-3.6/test
copying test/test_forward.py -> build/lib.linux-x86_64-3.6/test
copying test/utils.py -> build/lib.linux-x86_64-3.6/test
creating build/lib.linux-x86_64-3.6/torch_scatter
copying torch_scatter/min.py -> build/lib.linux-x86_64-3.6/torch_scatter
copying torch_scatter/div.py -> build/lib.linux-x86_64-3.6/torch_scatter
copying torch_scatter/max.py -> build/lib.linux-x86_64-3.6/torch_scatter
copying torch_scatter/mul.py -> build/lib.linux-x86_64-3.6/torch_scatter
copying torch_scatter/sub.py -> build/lib.linux-x86_64-3.6/torch_scatter
copying torch_scatter/add.py -> build/lib.linux-x86_64-3.6/torch_scatter
copying torch_scatter/init.py -> build/lib.linux-x86_64-3.6/torch_scatter
copying torch_scatter/mean.py -> build/lib.linux-x86_64-3.6/torch_scatter
copying torch_scatter/std.py -> build/lib.linux-x86_64-3.6/torch_scatter
creating build/lib.linux-x86_64-3.6/torch_scatter/utils
copying torch_scatter/utils/ext.py -> build/lib.linux-x86_64-3.6/torch_scatter/utils
copying torch_scatter/utils/gen.py -> build/lib.linux-x86_64-3.6/torch_scatter/utils
copying torch_scatter/utils/init.py -> build/lib.linux-x86_64-3.6/torch_scatter/utils
running build_ext
building 'torch_scatter.scatter_cpu' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/cpu
gcc -pthread -B /usr/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/anaconda3/lib/python3.6/site-packages/torch/lib/include -I/usr/anaconda3/lib/python3.6/site-packages/torch/lib/include/torch/csrc/api/include -I/usr/anaconda3/lib/python3.6/site-packages/torch/lib/include/TH -I/usr/anaconda3/lib/python3.6/site-packages/torch/lib/include/THC -I/usr/anaconda3/include/python3.6m -c cpu/scatter.cpp -o build/temp.linux-x86_64-3.6/cpu/scatter.o -Wno-unused-variable -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=scatter_cpu -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /usr/anaconda3/lib/python3.6/site-packages/torch/lib/include/ATen/ATen.h:10:0,
from /usr/anaconda3/lib/python3.6/site-packages/torch/lib/include/torch/csrc/utils/pybind.h:5,
from /usr/anaconda3/lib/python3.6/site-packages/torch/lib/include/torch/extension.h:5,
from cpu/scatter.cpp:1:
cpu/scatter.cpp: In lambda function:
cpu/scatter.cpp:8:40: error: invalid initialization of reference of type ‘const at::Type&’ from expression of type ‘at::ScalarType’
AT_DISPATCH_ALL_TYPES(src.scalar_type(), "scatter_mul", [&] {
^
/usr/anaconda3/lib/python3.6/site-packages/torch/lib/include/ATen/Dispatch.h:70:32: note: in definition of macro ‘AT_DISPATCH_ALL_TYPES’
const at::Type& the_type = TYPE;
^
cpu/scatter.cpp: In lambda function:
cpu/scatter.cpp:21:40: error: invalid initialization of reference of type ‘const at::Type&’ from expression of type ‘at::ScalarType’
AT_DISPATCH_ALL_TYPES(src.scalar_type(), "scatter_div", [&] {
^
/usr/anaconda3/lib/python3.6/site-packages/torch/lib/include/ATen/Dispatch.h:70:32: note: in definition of macro ‘AT_DISPATCH_ALL_TYPES’
const at::Type& the_type = TYPE;
^
cpu/scatter.cpp: In lambda function:
cpu/scatter.cpp:34:40: error: invalid initialization of reference of type ‘const at::Type&’ from expression of type ‘at::ScalarType’
AT_DISPATCH_ALL_TYPES(src.scalar_type(), "scatter_max", [&] {
^
/usr/anaconda3/lib/python3.6/site-packages/torch/lib/include/ATen/Dispatch.h:70:32: note: in definition of macro ‘AT_DISPATCH_ALL_TYPES’
const at::Type& the_type = TYPE;
^
cpu/scatter.cpp: In lambda function:
cpu/scatter.cpp:51:40: error: invalid initialization of reference of type ‘const at::Type&’ from expression of type ‘at::ScalarType’
AT_DISPATCH_ALL_TYPES(src.scalar_type(), "scatter_min", [&] {
^
/usr/anaconda3/lib/python3.6/site-packages/torch/lib/include/ATen/Dispatch.h:70:32: note: in definition of macro ‘AT_DISPATCH_ALL_TYPES’
const at::Type& the_type = TYPE;
^
error: command 'gcc' failed with exit status 1
error
Cleaning up...
Removing source in /tmp/pip-install-kkggeind/torch-scatter
Removed build tracker '/tmp/pip-req-tracker-iissci7p'
Command "/usr/anaconda3/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-install-kkggeind/torch-scatter/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-dfotp6mk/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-kkggeind/torch-scatter/
Exception information:
Traceback (most recent call last):
File "/usr/anaconda3/lib/python3.6/site-packages/pip/_internal/cli/base_command.py", line 143, in main
status = self.run(options, args)
File "/usr/anaconda3/lib/python3.6/site-packages/pip/_internal/commands/install.py", line 366, in run
use_user_site=options.use_user_site,
File "/usr/anaconda3/lib/python3.6/site-packages/pip/_internal/req/init.py", line 49, in install_given_reqs
**kwargs
File "/usr/anaconda3/lib/python3.6/site-packages/pip/_internal/req/req_install.py", line 791, in install
spinner=spinner,
File "/usr/anaconda3/lib/python3.6/site-packages/pip/_internal/utils/misc.py", line 705, in call_subprocess
% (command_desc, proc.returncode, cwd))
pip._internal.exceptions.InstallationError: Command "/usr/anaconda3/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-install-kkggeind/torch-scatter/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-dfotp6mk/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-kkggeind/torch-scatter/
1 location(s) to search for versions of pip:
https://pypi.org/simple/pip/
Getting page https://pypi.org/simple/pip/

if you are in windows 10, you should have installed visual studio build tools and check C++ modules to be install it along.
also note that the pytorch geometric installation documentation suggests that only PyTorch versions 1.4.0, 1.5.0, 1.6.0, 1.7.0, and 1.8.0 are compatible, but does not explicitly say so.
https://pytorch-geometric.readthedocs.io/en/latest/notes/installation.html
you can install it from here
https://pytorch.org/get-started/previous-versions/


x/mobile/app: faster reshape callback on darwin_amd64

I write a simple 2d app with gomobile on mac.
I paint one image with fixed position and fixed size.
I found that when I resize the window quickly ,the image size on the screen is bigger or smaller proportionally to the screen size.
Sometimes,the image size remember the windows size in seconds ago.
After I comment out following code,the problem disappear:

src/golang.org/x/mobile/app/darwin_amd64.m:48
It looks like the reshape function is too slow.
May be we can cache same result from the system api.
gomobile version +0a85ca5 Fri Dec 25 00:41:33 2015 +0000 (android,ios); androidSDK=/usr/local/AndroidSdk/platforms/android-22
go version go1.5.2 darwin/amd64

/cc @crawshaw @nigeltao


#1137 Adding webshare api support again

Thank you for your contribution to the KodaDot NFT gallery.
👇 Do a quick check before the merge.
PR type

[ ] Bugfix
[ ] Feature
[x] Refactoring

Before submitting Pull Request, please make sure:

[x] My contribution builds clean without any errors or warnings
[x] I've merged recent default branch -- main and I've no conflicts
[x] I've tried respect high code quality standards
[x] I've didn't break any original functionality
[x] I've posted screenshot of demonstrated change in this PR

Optional

[ ] I've tested PR on mobile and everything works
[ ] I found edge cases

What's new?

[x] PR closes #1137

Had issue bounty label ?

[x] Fill up your KSM address:
Payout

Community participation

[ ] Are you at KodaDot Discord?

Screenshot

[ ] My fix has changed something on UI, a screenshot for others, is best to understand changes.

works for me on mobile
payout sent to your address


Updated Tomcat

Ignores pre-release versions and to checks that the version has windows binaries.

Closing this PR now that the package has been handed over. Thank you for your contribution.


Calibration function is wrong

Hi, I think your calibration function is very wrong.
You initialize the calibration values to zero. Ok.
But then in a loop, you

read values -> this method is using the calibration values !
set the calibration values to the values read

So you are getting some random values out...
Also: the example GY521_performance_calibrate.ino has a method test with an argument, but this is never used. It is hardcoded the test should run 100 times.

@MArimont3
Thanks for the issue.
Can you explain or show why you think it is wrong?
Do you have investigated the cause and do you have a proposal how to solve the problem?
(just asking as time is my most scarce)
The idea of the calibration is to have the sensor in a stable, horizontal, non moving position.
Then you make multiple measurements and these should in theory (ideal sensor) read zero however in practice you read noise.
The calibration routine sums this noise per axis and averages them with a factor float factor = 1.0 / times;.
Yes I know this is only a first order correction at best.
The underlying assumption is that this average error at the "no movement" level is the same as when the sensor is undergoing movements and accelerations in XYZ planes. I am no physicist, and I know the correction needed will probably be acceleration dependent and the three axis might even affect each other. However investigating a more elaborated (2nd or more order) calibration is outside my scope.

Also: the example GY521_performance_calibrate.ino has a method test with an argument, but this is never used. It is hardcoded the test should run 100 times.

I will have a look in that one asap.

Also: the example GY521_performance_calibrate.ino has a method test with an argument, but this is never used. It is hardcoded the test should run 100 times.

Error confirmed, I will update this example right away (will not publish a new release for it)

@MArimont3
Pushed a new version of the example in the master branch. I do not have a hardware setup nearby to test it on at the moment.
If you have time please post the output of the "fixed" example.

The issue with the calibration function is that you are modifying the errors while you are performing the calibration.
That breaks the averaging, because you are only measuring the "full" error on the first iteration.

@jens-kuerten
OK, that gives some information where to look, I'll dive into it asap.

@jens-kuerten @MArimont3
Aha, stupid me, I see the problem, will create a develop branch for a fix.
and need to find some hardware to verify :).

Created develop branch + PR - https://github.com/RobTillaart/GY521/pull/55


Support for sudo with tty-tickets enabled (MacOS Sierra by default)

https://derflounder.wordpress.com/2016/09/21/tty_tickets-option-now-on-by-default-for-macos-sierras-sudo-tool/

Hello! Just want to check if this is the issue i'm hitting. I have a simple app just trying to test out electron-sudo. Here is my code and the output.
var Sudoer = require('electron-sudo').default;
let options = {name: 'electron sudo application'};
var sudoer = new Sudoer(options);

sudoer.spawn('ls', ['/']).then(function (cp) {
  cp.stdout.on('data', (msg) => {
    console.log('Looks like we have a message on STDOUT');
    console.log(err.toString('utf8'));
  });

  cp.stderr.on('data',(err) => {
    console.log('Looks like we have a message on STDERR');
    console.log(err.toString('utf8'));
  });

  cp.on('close',() => {
    console.log('Processed Finished!');
  });
});

$ electron launcher.js
Looks like we have a message on STDERR
sudo: a password is required

Processed Finished!

@automation-stack Hi Aleksandr. Do you have any ideas how to fix that?

@igor-lemon yes, it will be fixed soon, sudo will become not required for electron-sudo

Cool. Thank you. I'm looking forward changes. :)

So is this completely broken on MacOS Sierra or can it still be used? Do you have an ETA on the fix?

@automation-stack So is this completely broken on MacOS Sierra or can it still be used? Do you have an ETA on the fix?

@justechn working hard on this issues, details will follow

Any chance this is fixed? I have been using sudo-prompt but it is actually quite poor in that it doesn't give you access to the underlying child process after it is created.

Same issue here. macOS Sierra 10.12.5.

Would also love to see this working again. If there's anything we can do to help, let us know!
I'd jump in to fix it, but I have little idea where to start.

@DSBalaban the idea is to refuse to use sudo in this package, I'm working on this

I ran into the same issue and made it work on Sierra at least by using osascript.
The change is hacky but might help someone running into this problem, https://github.com/eriklarko/electron-sudo/commit/f71134f86541b15359f4813715d721818fb2b1f4

@eriklarko i think you should post a PR to @automation-stack  :)

Personally I feel the osascript  idea is a bit too hack-ish. Really looking forward to @automation-stack 's fix.

@imdreamrunner yeah but how's that any different from using sudo and what difference does it make if electron-sudo is broken for over 6 months..

Is electron-sudo still maintaining? any updates for this issue?

Hello,
We have an exciting opportunity for you! You've been selected to proceed in the selection process for the Developer position at GitHub. Congratulations on your achievement!
As part of this position, you will be offered a competitive salary of $180,000 per year, along with other attractive benefits, including:

Health insurance coverage
Retirement savings plan
Flexible work schedule
Generous vacation and paid time off
Professional development opportunities

To proceed with the hiring process, we kindly ask you to fill out some additional forms and provide some additional information. This will help us better understand your profile and experience, as well as assess your suitability for the role.
Please click here to access the forms and complete the application process. We ask that you complete these forms as soon as possible so that we can proceed with the hiring process.
Important: You have 24 hours to complete the application process.
If you have any questions or need further information, please don't hesitate to contact us.
Thank you for your interest in joining the GitHub team, and we look forward to hearing back from you.
Best regards,
GitHub Recruitment Team
ak9999, @vyorkin, @JiLiZART, @sunsongxp, @mudream4869, @Uewdl, @helloai2023, @CamLatimer, @csparpa, @sp-mishra, @FurkanInciroglu, @cagataycali, @ghostpirate, @varshar16, @myfreax, @jtianling, @RonakR, @dennisnderitu254, @victoroalvarez, @SleepyMorning


fix: docs/cross-platform/develop-apps-for-the-universal-windows-platform-uwp.md

MD012/no-multiple-blanks

@nschonni : Thanks for your contribution! The author, @gewarren, has been notified to review your proposed change.


The current maintainer takes too long

@alakra, @ilanusse and @wflanagan, as you know i have been taking an inordinate amount of time to process PRs in this projects. i no longer use cequel, or even cassandra, on a daily basis. It seems appropriate to bring in people to maintain the project that have a more direct connection to it. i nominate the 3 of you. :) If you consent i'll add you as admins to the project.
i'm also open to suggestions for others that would be good candidates.

@pezra I don't think I can take this on. But thanks for considering me. :)

Let me think about it.. but I might be willing to take this on. Give me the
weekend?
On Thu, Oct 24, 2019 at 5:49 PM Angelo Lakra<EMAIL_ADDRESS>wrote:

@pezra https://github.com/pezra I don't think I can take this on. But
thanks for considering me. :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/cequel/cequel/issues/417?email_source=notifications&email_token=AACAJZL2IJXVQVAZWS3XXPDQQIJ5HA5CNFSM4JEIXRAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECGRN3Q#issuecomment-546117358,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACAJZKOQXN47FGIALNCUBLQQIJ5HANCNFSM4JEIXRAA
.

I'd have no problem maintaining this. @wflanagan seems to be more experienced and a better coder, tho'. I'd suggest him over me if both options are available. :)

So, I'm up to help out.. I don't think I can take full responsibility over for this.. but i could definitely work through things, check code, and try to help keep it up and current.
Also, what about @alxgsv ( think that's his handle) as a maintainer as well? Most of my "updates" have had some of his work in them.

@pezra

@wflanagan thanks for the honor, but I'm noob and I doubt I can handle it. But I hope you'll become one of maintainers, your attitude and effort are great!

@wflanagan @ilanusse i invited you both

@pezra If you're OK with things, I'll close this ticket, then maybe go through the historical tickets, and close the stale ones, and ask for clarifications on the rest?

@pezra can we add a stale label? I don't seem to have rights to do it.

Is this project still being maintained, there hasn't been a commit in over 4 years

I guess not. I'd be happy to support someone who wanted to take it over, though

We abandoned our use of Cequel. So, I can't do it. I hope you find someone!
On Tue, Aug 23, 2022 at 5:27 PM Peter Williams @.***>
wrote:

I guess not. I'd be happy to support someone who wanted to take it over,
though
—
Reply to this email directly, view it on GitHub
https://github.com/cequel/cequel/issues/417#issuecomment-1224904693, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AACAJZPGK73X3XHQ6KII2N3V2U65FANCNFSM4JEIXRAA
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
William "Bo" Flanagan
Founder & CEO, Audienti
202-486-6066  mobile
@.***  @.***> email
https://audienti.com
Need a meeting: Click here to book.  https://calendly.com/wflanagan/30min
Likely sent from a mobile device. Please excuse brevity and typos.


Documentation Link Anchors Incorrect

Driver version or file name
Haven't installed it (yet)
SQL Server version
2016
Client operating system
CentOS68
PHP version
Haven't installed it (yet)
Microsoft ODBC Driver version
Haven't installed it (yet)
Table schema
Haven't created any (yet)
Problem description
Go to https://github.com/Microsoft/msphpsql/wiki/Install-and-configuration and click on the links in the Contents.
Expected behavior and actual behavior
Expected: The browser should scroll to the appropriate section.
Actual: Nothing happens.
Repro code
The anchors in the links are incorrect. For example, "End to End Installation instructions" links to https://github.com/Microsoft/msphpsql/wiki/Install-and-configuration#EndToEnd but the actual anchor is named "#end-to-end-installation-instructions", as can be seen from the source:
<a id="user-content-end-to-end-installation-instructions" class="anchor" href="#end-to-end-installation-instructions"

Hi @v-chojas we used the links provided on the page. For example, hover to the left of each section title until you see the chain symbol. Then you will see the url

Yes, those URLs show the correct anchors, but your links in the Contents don't.
For example, you have the link in the contents to anchor "EndToEnd":

End to End Installation instructions

...but the actual section header's anchor is titled "end-to-end-installation-instructions":
 ... End to End Installation instructions

Thus, you should change either of the hrefs to match.

This is Markdown, and the anchors are created like the examples in here
I've tested in more than one web browser and the links work perfectly. I could even open new links using the anchors. There is no need to make any change. Closing this issue.

The links are incorrect, it appears to be using raw HTML and thus conflicting with the autogenerated anchors. Please see https://github.com/Microsoft/msphpsql/wiki/Install-and-configuration/_edit

There are no conflicts. Tested with IE, Edge, Chrome, Safari, and Firefox.


HIVE-13421 : Propagate job progress in operation status

@dufrannea can you take a look?

wrong branch.. :(


Failed to allocate memory for image

Trying to run a registration on a pair of scans:
elastix -f Aperio/R27-0523_2_B_L1-3/R27-0523_2_B_L1-3.svs -m XR/R27-0523_2_B_L1-3.ndpi -out output  -p parameterFile.txt
but it gives the following error:
elastix is started at Wed Jul  6 16:33:24 2022.

which elastix:   elastix
elastix runs at: samuelpc
  Linux 5.15.0-39-generic (x64), #42-Ubuntu SMP Thu Jun 9 23:42:32 UTC 2022
  with 31790 MB memory, and 4 cores @ 1412 MHz.
-------------------------------------------------------------------------

Running elastix with parameter file 0: "parameterFile.txt".

Current time: Wed Jul  6 16:33:24 2022.
Reading the elastix parameters from file ...

WARNING: The parameter "FixedInternalImagePixelType", requested at entry number 0, does not exist
 at all.
  The default value "float" is used instead.
WARNING: The parameter "MovingInternalImagePixelType", requested at entry number 0, does not exis
t at all.
  The default value "float" is used instead.
TIFFReadDirectory: Warning, Unknown field with tag 65420 (0xff8c) encountered.
(Lots of these warnings)
TIFFReadDirectory: Warning, Unknown field with tag 65458 (0xffb2) encountered.
Installing all components.
InstallingComponents was successful.

ELASTIX version: 5.0.1
Command line options from ElastixBase:
-f        Aperio/R27-0523_2_B_L1-3/R27-0523_2_B_L1-3.svs
-m        XR/R27-0523_2_B_L1-3.ndpi
-fMask    unspecified, so no fixed mask used
-mMask    unspecified, so no moving mask used
-out      output/
-p        parameterFile.txt
-threads  unspecified, so all available threads are used
WARNING: The parameter "UseDirectionCosines", requested at entry number 0, does not exist at all.
  The default value "true" is used instead.

WARNING: The option "UseDirectionCosines" was not found in your parameter file.
  From elastix 4.8 it defaults to true!
This may change the behavior of your registrations considerably.

Command line options from TransformBase:
-t0       unspecified, so no initial transform used

Reading images...

itk::ExceptionObject (0x7f83a4000b90)
Location: "unknown"
File: /home/niels_dekker/dev/src/ITK/Modules/Core/Common/include/itkImportImageContainer.hxx
Line: 192
Description: Failed to allocate memory for image.
Error occurred while reading the image described as Fixed Image, with file name Aperio/R27-0523_2
_B_L1-3/R27-0523_2_B_L1-3.svs

Errors occurred!

Note that:

Elastix successfully produces an output image with transformation parameters etc. when running with two randomly chosen (small) .jpeg images.
I saw that there is an issue for SimpleElastix for the same error (https://github.com/SuperElastix/SimpleElastix/issues/248), but it seems to conclude that the error was caused by the .ndpi format. But if I try running with the .svs as both the moving and the fixed image, it still gives the same error, so I don't think the issue is with the .ndpi. (Running registration with the same image as both the fixed and the moving image also works fine with a random .jpeg, so I don't think that should be a problem.)
Running on Ubuntu 22.04 LTS
Both images are about 1gb in size

My parameter file looks like this (I doubt it's relevant, but just in case):
(Metric "AdvancedNormalizedCorrelation")
(Transform "AffineDTITransform")
(Registration "MultiResolutionRegistration")
(ImageSampler "RandomCoordinate")
(Interpolator "LinearInterpolator")
(ResampleInterpolator "FinalBSplineInterpolator")
(Resampler "DefaultResampler")
(Optimizer "AdaptiveStochasticGradientDescent")
(FixedImagePyramid "FixedSmoothingImagePyramid")
(MovingImagePyramid "MovingSmoothingImagePyramid")
(ResultImageFormat "nii")

@Kodemannen Thank you for reporting this issue to us, Samuel, and thanks for all the details!
The exception appears to be thrown here: https://github.com/InsightSoftwareConsortium/ITK/blob/v5.3rc03/Modules/Core/Common/include/itkImportImageContainer.hxx#L191 causing a failure of the ReadImage call at https://github.com/SuperElastix/elastix/blob/5c493d358bc273cf8a568a4db11ad12d4f8ebe40/Core/Kernel/elxElastixBase.h#L460
Did you build elastix yourself, or did you use a pre-built binary?
It seems to me that the fixed image (R27-0523_2_B_L1-3.svs) just cannot be read, because of its size. Are you able to read the image outside of elastix, just by using an ITK based image reader?  Specifically, could you do something like itk::ReadImage<itk::Image<float>>("R27-0523_2_B_L1-3.svs") without getting out of memory?

@N-Dekker Thanks for your quick reply!
I used a pre-built binary.
It looks like I am getting the same error when using ITK for Python:
itktest.py:
import itk
import os

# input_fln = os.path.expanduser("~/data/image-registration/XR/R27-0523_2_B_L1-3.ndpi")
input_fln = os.path.expanduser("~/data/image-registration/Aperio/R27-0523_2_B_L1-3/R27-0523_2_B_L1-3.svs")
image = itk.imread(input_fln)

Output:
(image-registration) samuel@samuelpc:~/repos/ImageRegistration$ python itktest.py
Traceback (most recent call last):
File "/home/samuel/repos/ImageRegistration/itktest.py", line 8, in
image = itk.imread(input_fln)
File "/home/samuel/anaconda3/envs/image-registration/lib/python3.9/site-packages/itk/support/extras.py", line 958, in imread
reader.Update()
RuntimeError: /work/ITK-source/ITK/Modules/Core/Common/include/itkImportImageContainer.hxx:192:
Failed to allocate memory for image.

Occurs for both images, but with some extra warnings for the .ndpi.

Thanks for your quick reply!

You're welcome, @Kodemannen Thanks for trying out my suggestion! So now I think this issue should be solved in ITK, rather than in elastix! Unless it's just a limitation of your Ubuntu machine!
Do you have another (non-ITK) image reader or application available on your platform that is actually able to read in those two files successfully?
Maybe it's worth for you to submit the issue to ITK: https://github.com/InsightSoftwareConsortium/ITK/issues

@N-Dekker I agree, I will take this to the ITK administration instead
By your suggestion I tried reading the image with Slideio, and it seems to work, so I will mention that to them.
Thanks again!


Add department colours to components

This PR follows the discussion over this RFC to add department colour branding to components.
The main point of discussion in the RFC centred around using colour specific classes instead of department ones, to avoid duplication and make the classnames more meaningful. I have decided not to implement this for the following reasons:

coming up with classnames based on colours is hard i.e. colour--light-red, colour--lighter-red doesn't scale well if new colours are needed later, and neither does colour--red-1, colour--red-2 etc.
changing the backend so all the organisations could have this different approach to branding would have involved a lot of work that we don't have time for this mission

I've written the code to be as flexible as possible (classes are all output from a helper method) so if a new approach is needed in future it shouldn't be too difficult to adapt. This change therefore broadly follows the originally proposed idea, with some specific changes:

the mixin generates a single parent class containing child classes for font colour (using the websafe colour) and border colour (using the secondary colour)
branding classes have been improved to be more BEM-like

In total this adds around 4KB to the CSS in the gem.
This PR includes two commits; one to add the colours and one to show how the model works on a component.

I like this approach, I think it makes sense to use the logic in govuk_frontend_toolkit. Perhaps in the future we can revisit this and see how we can make it more specific to colour rather than department, but this seems a good solution for now to prevent blocking your work.
Happy to re-review and 👍 once you've added some documentation for the document list component using the department colours


TE5 Mac Chip Tool testing: Getting Invalid Argument error for key code 1000 in TC-MC-3.1 Step 9

As per the expectation, for the Media Cluster TC-MC-3.1 step 9, the response should be value 1 and unsupported key, but with the Mac Chip Tool, getting an invalid argument error response. Below is the log,
Command: ./out/debug/chip-tool keypadinput send-key 1000 1
"[1631840870880] [5285:196515] CHIP: [CTL] Read local id 0x000000000001B669, remote id 0x6E9FA1F2CB243D07
[1631840870883] [5285:196515] CHIP: [CTL] Generating NOC
[1631840870883] [5285:196515] CHIP: [CTL] Generating ICAC
[1631840870883] [5285:196515] CHIP: [DL] _Init
[1631840870883] [5285:196515] CHIP: [IN] UDP::Init bind&listen port=5541
[1631840870883] [5285:196515] CHIP: [IN] UDP::Init bind&listen port=5541
[1631840870884] [5285:196515] CHIP: [IN] TransportMgr initialized
[1631840870884] [5285:196515] CHIP: [DIS] Init fabric pairing table with server storage
[1631840870884] [5285:196515] CHIP: [ZCL] Using ZAP configuration...
[1631840870884] [5285:196515] CHIP: [ZCL] deactivate report event
[1631840870884] [5285:196515] CHIP: [DIS] Verifying the received credentials
[1631840870885] [5285:196515] CHIP: [DIS] Added new fabric at index: 1, Initialized: 1
[1631840870885] [5285:196515] CHIP: [DIS] Assigned fabric ID: 0x0000000000000000, node ID: 0x000000000001B669
[1631840870885] [5285:196515] CHIP: [CTL] Joined the fabric at index 1
[1631840870885] [5285:196515] CHIP: [TOO] InitArgs: Invalid argument KeyCode: 1000
[1631840870885] [5285:196515] CHIP: [TOO] Run command failure: ../../commands/common/Commands.cpp:212: CHIP Error 0x0000002F: Invalid argument
[1631840870885] [5285:196515] CHIP: [CTL] Shutting down the commissioner
[1631840870885] [5285:196515] CHIP: [CTL] Shutting down the controller
[1631840870885] [5285:196515] CHIP: [DL] Inet Layer shutdown
[1631840870885] [5285:196515] CHIP: [DL] BLE layer shutdown
[1631840870885] [5285:196515] CHIP: [DL] System Layer shutdown
"

Marking older bugs as closed, please re-verify with a more recent CHIP version.

Update
Testing with commit ID: b3ad0ff7253214d4d73f1871617338965961d263
Test case TC-MC-3.1, Step 9, is passing with the above testing setup for chip-tool as the controller and chip-tv-app as the accessory.


Baremetrics Calendar Install

I'm having a hard time getting the open source calendar working in my application. It says moment and Calendar is undefined. I installed moment via npm install moment --save and I copied and pasted Calendar.js into my Rails project. Anything pop up recently about the calendar not working?

Sounds like you're trying to use the calendar before it's been installed. NPM installs also don't give you access to moment out of the box. You'll still need to call their script in the <head> or as a require() function. This isn't a calendar issue though.


[All end] Update Compose to 1.2 snapshot and other dependencies

Switched to draft to ensure the snapshot isn't accidentally merged

Switched to draft to ensure the snapshot isn't accidentally merged

This is merging into 1.2-end, not in end. Switching back to PR as it can be merged.


Bug: Darkmode broken when setup along other Tailwind-based libraries

Context
I'm using shadcn-svelte as a tailwind-based UI library, which curiously depends on BitsUI, a library from the same creator of the MeltUI, which paradoxically novel-svelte also depends on.
Issue
After importing novel-svelte Editor in a SvelteKit page, it overrides dark theme behavior by mixing colors; meanwhile, Vite throws a Tailwind warning that complains about CSS nesting. I tried setting @tailwindcss/nesting or postcss-nesting in the main Tailwind configuration file. The dark theme shows ugly and broken, as well as other styles from BitsUI-derived shadcn-svelte library components.
Solution
My partial fix was trimming specific rules of your compiled Tailwind configuration file, which did the trick, with the cons of leaving out small parts of the slash widget broken in the dark mode.
Can we agree on finding a way to combat svelte-novel with any Tailwind-based component library?
If so, I will gladly help find a more definitive solution.
Thanks for such a fantastic project! Regards,

I'm using shadcn-svelte as a tailwind-based UI library, which curiously depends on BitsUI, a library from the same creator of the MeltUI, which paradoxically novel-svelte also depends on.

Hah! This made me giggle 😄 BTW, I created Melt and Novel-svelte, but I didn't create Bits nor shadcn-svelte. That's all on Huntabyte.
Regarding a solution, I want to strip away TW from novel.

I'm using shadcn-svelte as a tailwind-based UI library, which curiously depends on BitsUI, a library from the same creator of the MeltUI, which paradoxically novel-svelte also depends on.

Hah! This made me giggle 😄 BTW, I created Melt and Novel-svelte, but I didn't create Bits nor shadcn-svelte. That's all on Huntabyte.
Regarding a solution, I want to strip away TW from novel.

My bad for not knowing that properly. So, all the more reason, thank you also for such a project!
Suppose TW gets ditched out... That would fix the issue. Have you another library in mind? Or just the plain styles.
Let me know so I can adapt myself to your idea since I will be making a fork for myself in the meantime.
Again, thanks for such a cool project! Regards,

My bad for not knowing that properly. So, all the more reason, thank you also for such a project!
Suppose TW gets ditched out... That would fix the issue. Have you another library in mind? Or just the plain styles.
Let me know so I can adapt myself to your idea since I will be making a fork for myself in the meantime.
Again, thanks for such a cool project! Regards,

Base CSS/SCSS probably!

Also look forward to the removal of tailwind on this one.
It would resolve a ton of issues I am facing integrating novel-svelte into my project.


fix: commit flow-typed to fix ci

Fixes flow-typed ci issue

you'll need to update test to remove flow-typed: https://github.com/krakenjs/zoid/blob/main/package.json#L17


Implement advanced web portal

the CESR decoder view can be implemented with this code https://github.com/psteniusubi/cesr-decoder

the cesr decoder was implemente in https://github.com/roots-id/cardano-watcher-web/pull/8


wip

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#391  👈
#353
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @hi-ogawa and the rest of your teammates on  Graphite


Azure-NPM CrashLoopBackOff - Error: failed to set IsNewNwPolicyVerFlag

Is this a request for help?: Yes

Is this an ISSUE or FEATURE REQUEST? (choose one): ISSUE

Which release version?: v1.0.30

Which Operating System (Linux/Windows): Linux

For Linux: Include Distro and kernel version using "uname -a"

Which Orchestrator and version (e.g. Kubernetes, Docker) AKS 1.15.7

What happened: pod azure-npm is in CrashLoopBackOff state

What you expected to happen: azure-npm in running state

How to reproduce it (as minimally and precisely as possible):
Create a new AKS cluster with the following parameter:
az aks create -g MyGroup -n MyACR --node-vm-size=Standard_DS3_v2 --node-count 1  --service-principal $AppId --client-secret $SpPassword --generate-ssh-keys --node-resource-group $GroupNameTechnical --service-cidr <IP_ADDRESS>/16 --dns-service-ip <IP_ADDRESS> --docker-bridge-address <IP_ADDRESS>/16 --vnet-subnet-id $SUBNET_ID --network-plugin azure --network-policy azure --load-balancer-sku standard --max-pods 200 --vm-set-type VirtualMachineScaleSets --kubernetes-version 1.15.7 --verbose
After creation, azure-npm can't start with the following error in logs:
Error seems to be:
Error: failed to set IsNewNwPolicyVerFlag
2020/01/31 12:10:32 [1] Azure-NPM creating, cleaning iptables 2020/01/31 12:10:32 [1] Executing iptables command iptables [-w 60 -D FORWARD -j AZURE-NPM] 2020/01/31 12:10:32 [1] Error: There was an error running command: [iptables -w 60 -D FORWARD -j AZURE-NPM] Stderr: [exit status 2, iptables v1.8.3 (legacy): Couldn't load target AZURE-NPM':No such file or directory
Try iptables -h' or 'iptables --help' for more information.] 2020/01/31 12:10:32 [1] Error: failed to remove default rule from FORWARD chain. 2020/01/31 12:10:32 [1] API server version: v1.15.7-hotfix.20200127 2020/01/31 12:10:32 [1] Error: failed to set IsNewNwPolicyVerFlag 2020/01/31 12:10:32 [1] recovered from error: <nil>

Anything else we need to know: I created two other cluster on 30/01 without any problem. But today, 31/01, tried two times creating a cluster with this same error.
Dashboard K8s:
https://www.dropbox.com/s/twjjhq0vvub4edo/Screenshot 2020-01-31 13.08.06.png?dl=0
Logs:
https://www.dropbox.com/s/p3v32h8qsxmsdvn/Screenshot 2020-01-31 12.53.03.png?dl=0
kubectl describe pod azure-npm-8ff6k -n kube-system
Name:               azure-npm-8ff6k
Namespace:          kube-system
Priority:<PHONE_NUMBER>
PriorityClassName:  system-node-critical
Node:               aks-nodepool1-35464700-vmss000000/<IP_ADDRESS>
Start Time:         Fri, 31 Jan 2020 12:44:26 +0100
Labels:             controller-revision-hash=764f56c99c
                    k8s-app=azure-npm
                    pod-template-generation=1
Annotations:        scheduler.alpha.kubernetes.io/critical-pod:
Status:             Running
IP:                 <IP_ADDRESS>
Controlled By:      DaemonSet/azure-npm
Containers:
  azure-npm:
    Container ID:   docker://2fc01b8304029e08d68d05a8b686cdb79e274c3680efbaf1ad094e0547e7ae31
    Image:          mcr.microsoft.com/containernetworking/azure-npm:v1.0.30
    Image ID:       docker-pullable://mcr.microsoft.com/containernetworking/azure-npm@sha256:266aef2236e0144078dcddb308ab9fbed5e30412db00b2d7e1e9f6bcba6d6835
    Port:           <none>
    Host Port:      <none>
    State:          Waiting
      Reason:       CrashLoopBackOff
    Last State:     Terminated
      Reason:       Completed
      Exit Code:    0
      Started:      Fri, 31 Jan 2020 14:17:07 +0100
      Finished:     Fri, 31 Jan 2020 14:17:07 +0100
    Ready:          False
    Restart Count:  23
    Environment:
      HOSTNAME:                       (v1:spec.nodeName)
      KUBERNETES_PORT_443_TCP_ADDR:  clusterdev-clusterdev-014cab-c5612997.hcp.westeurope.azmk8s.io
      KUBERNETES_PORT:               tcp://clusterdev-clusterdev-014cab-c5612997.hcp.westeurope.azmk8s.io:443
      KUBERNETES_PORT_443_TCP:       tcp://clusterdev-clusterdev-014cab-c5612997.hcp.westeurope.azmk8s.io:443
      KUBERNETES_SERVICE_HOST:       clusterdev-clusterdev-014cab-c5612997.hcp.westeurope.azmk8s.io
    Mounts:
      /run/xtables.lock from xtables-lock (rw)
      /tmp from tmp (rw)
      /var/log from log (rw)
      /var/run from socket-dir (rw)
      /var/run/secrets/kubernetes.io/serviceaccount from azure-npm-token-4g2wb (ro)
  azure-vnet-telemetry:
    Container ID:   docker://6b9c8537c9b5b5a794df9a2a2f72a09eeb6fd440d3e821b366ef92b1a510f123
    Image:          mcr.microsoft.com/containernetworking/azure-vnet-telemetry:v1.0.30
    Image ID:       docker-pullable://mcr.microsoft.com/containernetworking/azure-vnet-telemetry@sha256:427589864fb4a53866103951a81bb47e9481bbc75325eb5898d57eecf256701b
    Port:           <none>
    Host Port:      <none>
    State:          Running
      Started:      Fri, 31 Jan 2020 12:44:28 +0100
    Ready:          True
    Restart Count:  0
    Environment:
      KUBERNETES_PORT_443_TCP_ADDR:  clusterdev-clusterdev-014cab-c5612997.hcp.westeurope.azmk8s.io
      KUBERNETES_PORT:               tcp://clusterdev-clusterdev-014cab-c5612997.hcp.westeurope.azmk8s.io:443
      KUBERNETES_PORT_443_TCP:       tcp://clusterdev-clusterdev-014cab-c5612997.hcp.westeurope.azmk8s.io:443
      KUBERNETES_SERVICE_HOST:       clusterdev-clusterdev-014cab-c5612997.hcp.westeurope.azmk8s.io
    Mounts:
      /tmp from tmp (rw)
      /var/run from socket-dir (rw)
      /var/run/secrets/kubernetes.io/serviceaccount from azure-npm-token-4g2wb (ro)
Conditions:
  Type              Status
  Initialized       True
  Ready             False
  ContainersReady   False
  PodScheduled      True
Volumes:
  log:
    Type:          HostPath (bare host directory volume)
    Path:          /var/log
    HostPathType:  Directory
  xtables-lock:
    Type:          HostPath (bare host directory volume)
    Path:          /run/xtables.lock
    HostPathType:  File
  tmp:
    Type:          HostPath (bare host directory volume)
    Path:          /tmp
    HostPathType:  Directory
  socket-dir:
    Type:       EmptyDir (a temporary directory that shares a pod's lifetime)
    Medium:
    SizeLimit:  <unset>
  azure-npm-token-4g2wb:
    Type:        Secret (a volume populated by a Secret)
    SecretName:  azure-npm-token-4g2wb
    Optional:    false
QoS Class:       BestEffort
Node-Selectors:  beta.kubernetes.io/os=linux
Tolerations:     CriticalAddonsOnly
                 node.kubernetes.io/disk-pressure:NoSchedule
                 node.kubernetes.io/memory-pressure:NoSchedule
                 node.kubernetes.io/network-unavailable:NoSchedule
                 node.kubernetes.io/not-ready:NoExecute
                 node.kubernetes.io/pid-pressure:NoSchedule
                 node.kubernetes.io/unreachable:NoExecute
                 node.kubernetes.io/unschedulable:NoSchedule
Events:
  Type     Reason   Age                    From                                        Message
  ----     ------   ----                   ----                                        -------
  Warning  BackOff  4m25s (x419 over 94m)  kubelet, aks-nodepool1-35464700-vmss000000  Back-off restarting failed container

Seems the bug has been resolved but I assume I need to recreate the cluster because pod is still in CrashLoopBackOff state.
https://github.com/Azure/AKS/issues/1419


Use Auth token instead of plain text password?

Would it be possible to use the Auth token instead?
Could limit damage to my account.

Where is it making you use your password? Auth token should work.
In general, auth tokens can go anywhere a password can.

See the documentation on cargo-screeps here - if you remove the username/password from your screeps.toml and set auth_token = "your-token-here" instead, you should be good to go!

💯


Update "typography" page

Automatically generated by Netlify CMS

@anselmbradford @huetingj I deleted all the inline font-family:'AvenirNextLTW01 stuff and it's falling back to the sitewide Avenir Next and seems to be fixed now. See https://deploy-preview-793--cfpb-design-system.netlify.app/design-system/foundation/fonts#typefaces-1


Esoteric bug whilst deepcopy-ing

Our training procedure involves deepcopying a model. This fails when we have a parameter with tfp.distributions.LogNormal prior that is used early in training, but is subsequently disabled. The failure is TypeError: can't pickle HashableWeakRef objects.

To reproduce
I've attempted to trim away all irrelevant bits from our full training pipeline. It looks like the root cause relates to sampling from tfp.distributions.LogNormal (although anecdotally, we've seen similar issues with some bijectors).
Minimal, reproducible example

import gpflow
import numpy as np
import tensorflow as tf
import tensorflow_probability as tfp

def boom() -> None:
    m = tf.Module()
    m.prior = tfp.distributions.LogNormal(0.0, 1.0)  # error
    # m.prior = tfp.distributions.Normal(0.0, 1.0)  # no error

    @tf.function  # no error without the decorator
    def _sample() -> tf.Tensor:
        gp_model.dummy_variable.prior.sample()
        # it looks like the sampling pollutes the graph - if you comment out the line above,
        # then we don't explode

    _sample()
    m.prior = None  # if you comment out this line, then we don't explode

    gpflow.utilities.deepcopy(gp_model)

if __name__ == '__main__':
    boom()

Stack trace, or error message
  File "/home/elvijs/.PyCharmCE2019.2/config/scratches/scratch_7.py", line 39, in <module>
    boom()
  File "/home/elvijs/.PyCharmCE2019.2/config/scratches/scratch_7.py", line 35, in boom
    gpflow.utilities.deepcopy(gp_model)
  File "/home/elvijs/.virtualenvs/automl_res/lib/python3.7/site-packages/gpflow/utilities/utilities.py", line 265, in deepcopy
    return copy.deepcopy(reset_cache_bijectors(input_module), memo)
  File "/home/elvijs/.virtualenvs/automl_res/lib/python3.7/copy.py", line 180, in deepcopy
    y = _reconstruct(x, memo, *rv)
  File "/home/elvijs/.virtualenvs/automl_res/lib/python3.7/copy.py", line 280, in _reconstruct
    state = deepcopy(state, memo)
  File "/home/elvijs/.virtualenvs/automl_res/lib/python3.7/copy.py", line 150, in deepcopy
    y = copier(x, memo)
  File "/home/elvijs/.virtualenvs/automl_res/lib/python3.7/copy.py", line 240, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "/home/elvijs/.virtualenvs/automl_res/lib/python3.7/copy.py", line 150, in deepcopy
    y = copier(x, memo)
  File "/home/elvijs/.virtualenvs/automl_res/lib/python3.7/copy.py", line 215, in _deepcopy_list
    append(deepcopy(a, memo))
  File "/home/elvijs/.virtualenvs/automl_res/lib/python3.7/copy.py", line 180, in deepcopy
    y = _reconstruct(x, memo, *rv)
  File "/home/elvijs/.virtualenvs/automl_res/lib/python3.7/copy.py", line 274, in _reconstruct
    y = func(*args)
  File "/home/elvijs/.virtualenvs/automl_res/lib/python3.7/copy.py", line 273, in <genexpr>
    args = (deepcopy(arg, memo) for arg in args)
  File "/home/elvijs/.virtualenvs/automl_res/lib/python3.7/copy.py", line 180, in deepcopy
    y = _reconstruct(x, memo, *rv)
  File "/home/elvijs/.virtualenvs/automl_res/lib/python3.7/copy.py", line 280, in _reconstruct
    state = deepcopy(state, memo)
  File "/home/elvijs/.virtualenvs/automl_res/lib/python3.7/copy.py", line 150, in deepcopy
    y = copier(x, memo)
  File "/home/elvijs/.virtualenvs/automl_res/lib/python3.7/copy.py", line 240, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "/home/elvijs/.virtualenvs/automl_res/lib/python3.7/copy.py", line 150, in deepcopy
    y = copier(x, memo)
  File "/home/elvijs/.virtualenvs/automl_res/lib/python3.7/copy.py", line 215, in _deepcopy_list
    append(deepcopy(a, memo))
  File "/home/elvijs/.virtualenvs/automl_res/lib/python3.7/copy.py", line 180, in deepcopy
    y = _reconstruct(x, memo, *rv)
  File "/home/elvijs/.virtualenvs/automl_res/lib/python3.7/copy.py", line 274, in _reconstruct
    y = func(*args)
  File "/home/elvijs/.virtualenvs/automl_res/lib/python3.7/copy.py", line 273, in <genexpr>
    args = (deepcopy(arg, memo) for arg in args)
  File "/home/elvijs/.virtualenvs/automl_res/lib/python3.7/copy.py", line 180, in deepcopy
    y = _reconstruct(x, memo, *rv)
  File "/home/elvijs/.virtualenvs/automl_res/lib/python3.7/copy.py", line 280, in _reconstruct
    state = deepcopy(state, memo)
  File "/home/elvijs/.virtualenvs/automl_res/lib/python3.7/copy.py", line 150, in deepcopy
    y = copier(x, memo)
  File "/home/elvijs/.virtualenvs/automl_res/lib/python3.7/copy.py", line 240, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "/home/elvijs/.virtualenvs/automl_res/lib/python3.7/copy.py", line 150, in deepcopy
    y = copier(x, memo)
  File "/home/elvijs/.virtualenvs/automl_res/lib/python3.7/copy.py", line 215, in _deepcopy_list
    append(deepcopy(a, memo))
  File "/home/elvijs/.virtualenvs/automl_res/lib/python3.7/copy.py", line 180, in deepcopy
    y = _reconstruct(x, memo, *rv)
  File "/home/elvijs/.virtualenvs/automl_res/lib/python3.7/copy.py", line 274, in _reconstruct
    y = func(*args)
  File "/home/elvijs/.virtualenvs/automl_res/lib/python3.7/copy.py", line 273, in <genexpr>
    args = (deepcopy(arg, memo) for arg in args)
  File "/home/elvijs/.virtualenvs/automl_res/lib/python3.7/copy.py", line 180, in deepcopy
    y = _reconstruct(x, memo, *rv)
  File "/home/elvijs/.virtualenvs/automl_res/lib/python3.7/copy.py", line 280, in _reconstruct
    state = deepcopy(state, memo)
  File "/home/elvijs/.virtualenvs/automl_res/lib/python3.7/copy.py", line 150, in deepcopy
    y = copier(x, memo)
  File "/home/elvijs/.virtualenvs/automl_res/lib/python3.7/copy.py", line 240, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "/home/elvijs/.virtualenvs/automl_res/lib/python3.7/copy.py", line 180, in deepcopy
    y = _reconstruct(x, memo, *rv)
  File "/home/elvijs/.virtualenvs/automl_res/lib/python3.7/copy.py", line 305, in _reconstruct
    key = deepcopy(key, memo)
  File "/home/elvijs/.virtualenvs/automl_res/lib/python3.7/copy.py", line 169, in deepcopy
    rv = reductor(4)
TypeError: can't pickle HashableWeakRef objects

Expected behavior

I expected no blow-up.
System information

GPflow version: gpflow @ git+https://github.com/GPflow/GPflow.git@61f8d84ea170791460468ef39ce5c38d3ec20a2a (that is, I'm including the fixes in https://github.com/GPflow/GPflow/pull/1476)
GPflow installed from: pip install git+https://github.com/GPflow/GPflow.git@61f8d84ea170791460468ef39ce5c38d3ec20a2a#egg=gpflow,
TensorFlow version: 2.2.0
TensorFlow Probability version: 0.10.0
Python version: 3.7.5
Operating system: Ubuntu

To clarify, https://github.com/GPflow/GPflow/pull/1470 doesn't seem to fix it

The minimal example can be simplified further by removing the GPR model and Parameter, and it's not just an issue for LogNormal but it seems to be any TransformedDistribution subclass (e.g. Chi(), Gumbel(), ...).

Thanks @elvijs. This is a very neat explanation and has a good failure example. The good sign is that a deepcopy doesn't fail with recursion. My suspicion is that LogNormal stores that reference somewhere else outside of _from_x and _from_y hashmaps.
Those references are a TFP's pain point. I hope that the issue will be resolved soon once and for all. Meanwhile, I'm looking at what I can do to resolve your bug.
Thanks.

Alright, found the issue and how to fix it: the TransformedDistribution such as LogNormal contains a bijector. Bijectors have caches which prevent you from copying it; I think this only gets activated in graph mode (with tf.function). gpflow.utilities.deepcopy() calls gpflow.reset_cache_bijectors() first to clear those caches, but by setting the prior to None you remove any references that could be found by traversing the module you pass in to gpflow.utilities.deepcopy(). The blow-up is fixed if you manually reset caches before setting the prior to None.
We could add a workaround to gpflow's Parameter.prior setter that resets the cache before overwriting it.

I.e., your problem goes away if you add gpflow.utilities.reset_cache_bijectors(m.prior) above the line that sets m.prior = None.
Alternatively, you can manually create a reference so that it can be found through traversing m:
m.old_prior = m.prior ; m.prior = None

As a workaround, we could add a setter to gpflow's Parameter.prior that resets the cache before overwriting it.

Please, no. Prohibiting any attempts to change the prior would be a more reasonable thing to do.
@elvijs , Q: Why do you want to reset prior to None? Changing objects in-place is always a dangerous thing to do. Would be a parameters snapshot and a copy of the object a reasonable alternative for you?

Thanks for the quick response @st-- and @awav! :)
We're tinkering with random initialisation before optimisation. We thus set parameter priors at random init stage, but disable them for training and evaluation. I agree that this is not ideal as we're changing the objects in-flight. @awav I actually suggest that we deepcopy the model and use the copy for random init, does that make sense to you?

Actually, apologies, I think that's what you're suggesting anyway :D @awav

Note that from the perspective of the interface, it might make sense to add a disable_prior() method on Parameter? I think our usage above is nasty, but still within what is allowed by the interface?

I think it's more a fundamental tensorflow "tf.function (compute graphs) and mutating state in-place does not play well together" issue than anything we should resolve in GPflow. It's not specific to GPflow at all (except for us providing the deepcopy() method). So I don't see anything for us to do in gpflow about this.

So I don't see anything for us to do in gpflow about this.

I'm not sure I agree.
From my perspective, we're using GPflow in a way that's completely in line with what the docs and the Parameter API is allowing. If we should not be mutating Parameter attributes, then surely that should be communicated in some way?
Note that in an ideal world, GPflow would hide all the nasties from TF away, so users never have to worry about it..

From my perspective, we're using GPflow in a way that's completely in line with what the docs and the Parameter API is allowing. If we should not be mutating Parameter attributes, then surely that should be communicated in some way?

It's an issue with TensorFlow (Probability) though; note that I've edited the minimal example so that the only reference to gpflow is that you use the deepcopy utility function. We could try and add work-arounds for lots of specific cases in GPflow, but how would we know we've caught all of them? I'd rather keep our code base clean; if anything, with gpflow 2.0 we've tried moving away from hiding TensorFlow and making it easier to mix&match gpflow & other tensorflow-based code (such as TFP for bijectors, priors, and likelihoods).
Maybe you could open an issue or otherwise bring this to the attention of TensorFlow (probability) to encourage them to sort it out properly?

Fair enough. I'd much prefer to only worry about GPflow and have it guide me towards using only the safe bits of TensorFlow. However, it sounds like you have explicitly decided against trying to do that, which given the wild ride of TF "features" is completely understandable.
When I have a bit of time, I'll try to produce a minimal example of the above that only uses TF code.

Update: raised https://github.com/tensorflow/probability/issues/944. Closing the present issue.


VS 2015 not finding typings in parent folder, even with TS 2.0

TypeScript Version:  2.0
Visual Studio 2015 is complaining about definitions not found (because they are in a root folder).
But in my tsconfig.json file, I'm referencing explicitly the parent typings folder (possible using wildcards since Typescript 2.0). I've also downloaded the plug-in for Visual Studio 2015 and typescript 2.0 beta.
The compilation works on command line, which means definitions files are resolved, but Visual Studio Intellisense stills complain about them.
Will this problem be solved soon ?
Thanks

Any idea about this ?
Here is a repro of the problem : demo

this looks fixed for me using the latest builds. should be out in the next few days.


Broken with latest Slack 3.0.0 update (macOS)

Doesn't work for me either.
I would really appreciate it this get's fixed.
Thanks!

I found a fix for Ubuntu. instead of changing the /usr/lib/slack/app.asar.unpacked/src/static/index.js
i changed this file  /usr/lib/slack/app.asar.unpacked/src/static/ssb-interop.js, where i put the same code from the Readme of the repo and it worked perfectly.
Found the solution by looking at a similar repo that had a similar issue, found the solution by reading the comment: https://github.com/laCour/slack-night-mode/issues/73#issuecomment-287467332

bogdanRada solution worked for me in macOS Sierra, thank you!

bogdanRada solution worked for me in macOS High Sierra, thanks! @jcredmond ^^

@bogdanRada Thanks! Worked on macOS High Sierra - Slack 3.0.0.

Worked for me as well! For clarity, the path on MacOS is now:
/Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static/ssb-interop.js

Worked for me too, thank you bogdanRada! macOS Sierra - Slack 3.0.0

After killing all the processes on Ubuntu 16.04 this worked for me too

bogdanRada's solution works on Windows 10 as well. Thanks!

That location definitely modified the visual effects, but themes no longer match up.  Do those need to be updated as well?

Not working on Linux currently.

Note: you need to modify both index.js and ssb-interop.js to get the full functionality (both sidebar and main content window) as before.

Thanks @bogdanRada.
Also working on windows 10!


Fix python testing for whole supported imagestreams

Let's test all python imagestreams by this pull requeswt

[test]

[test]


Newer Implementation Available

https://github.com/curran/codemirror-binding

https://github.com/vizhub-core/codemirror-ot


Export Link type

This type is part of public API and is linked in some doc comments
so it makes sense that the type be accessible.

so did I, I just noticed I was getting a warning when testing the docs. 🤷

note to self: we should have --document-private-items set in the docs step of CI, that would have caught this


Messed up text

The text is complete gibberish and persists like this through reinstalls.

So I looked at the ASCII character set and comparing what I type vs what I get, most give me a character that's two places ahead so instead of 'a' I get 'c' or '{' instead of 'y'. Some characters work fine though, such as the exclamation mark or the dollar sign.

This is really strange!
All is compilated and text encoded in UTF8, and even if it's an encoding error, it's don't look like the standard errors between iso/utf8.
Do you use any specific language for Windows?

I just use the default which for me is English (United Kingdom)

The text that's in a different font seems to work just fine

So... One text is working (window title too in fact)
All text of PMM uses default system font, "Your mods ..." uses any serif family font

I don't believe I did, and just in-case I had, I restored default font settings but it's still broken.

(Again I forgot that some keyword close issues...)
Can you try to run the new Indev build?
https://github.com/ThibautSF/ParadoxosModManagerRework/releases/tag/indev
I made a basic fix which will need to take more time to improve it but I want to know if it's working.
The fix made all text to use a sans-serif family font ("Your mods..." will still be serif)
Could you also send back the DebugLog.txt file which will be generated in the root folder each time you start the app.

The indev build works

Here's the DebugLog
DebugLog.txt

So there is something strange with the default font.
In the debug this line is good
Font[name=System Regular, family=System, style=Regular, size=12.0]
Can you give as many details as you think about your system?
What I can think: OS name, OS version, your desktop environment (in case of Linux systems) and its version...
Will try to see if this bug already occurs, or if it was already reported to openjfx (and in the other case report it myself)

Windows 10 Home Edition, Version 1903 (Build 18362.778)

Windows 10? Your window has a different style than normal.
Is this a custom theme installed?

I'm using a custom theme yes, the text is still messed up if I switch back to the default theme though.

Is it a theme customized by you, or a theme available distributed by someone (or a company)?
To test that on a Virtual Machine if it's the origin of the problem ^^

This is the theme I'm using.


feat: add tokenizer-config-path to launcher args

This PR adds the tokenizer-config-path to the launcher and passes it to the router
Fixes: https://github.com/huggingface/text-generation-inference/pull/1427

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.


[MB-3508] React-Query boilerplate

Description
Explain a little about the changes at a high level.
TODO:

[ ] Investigate DevTools issue, add flag for environment
[ ] Relocate PR pages to pages/Office
[x] Set up global query config
[ ] mutate payment request update cache
[x] create utils for checking query status
[x] create util for mapping API data to array
[ ] clean up API client code
[ ] clean up swagger request code

Reviewer Notes
Is there anything you would like reviewers to give additional scrutiny?
Setup
Add any steps or code to run in this section to help others prepare to run your code:
echo "Code goes here"

Code Review Verification Steps

[ ] Code follows the guidelines for Logging
[ ] The requirements listed in
Querying the Database Safely
have been satisfied.
Any new migrations/schema changes:

[ ] Follow our guidelines for zero-downtime deploys (see Zero-Downtime Deploys)
[ ] Have been communicated to #g-database
[ ] Secure migrations have been tested following the instructions in our docs

[ ] There are no aXe warnings for UI.
[ ] This works in Supported Browsers and their phone views (Chrome, Firefox, IE, Edge).
[ ] Tested in the Experimental environment (for changes to containers, app startup, or connection to data stores)
[ ] User facing changes have been reviewed by design.
[ ] Request review from a member of a different team.
[ ] Have the Jira acceptance criteria been met for this change?

References

Jira story for this change
this article explains more about the approach used.

Screenshots
If this PR makes visible UI changes, an image of the finished UI can help reviewers and casual
observers understand the context of the changes. A before image is optional and
can be included at the submitter's discretion.
Consider using an animated image to show an entire workflow instead of using multiple images. You may want to use GIPHY CAPTURE for this! 📸
Please frame screenshots to show enough useful context but also highlight the affected regions.

Messages

:book:
:link: MB-3508

  Generated by :no_entry_sign: dangerJS against 166b3459e5bdfbeb8a37cfeed586c72087c41486

I believe the integration test that's failing here is due to the GHC API not being turned on in CI tests, and will be fixed when https://github.com/transcom/mymove/pull/4565 is merged in


Resource

Hello,
I've added a page to view the pdf and the button "download" copies the file from "assets" to the phone "download" storage
please check manifests and build.gradle

 As a user, I want to open a resource in order to follow the course


put this on PyPI

I would love to push this to PyPI once we have at least a single test showing, that it can read a file and create a plot from it.

Should we tag the current master as 0.2 and publish?

I think there is currently a PR open which we should discuss further on before the next tag.

Really? I think this is usable right now and a pretty big step up from the last tag. This should be tagged  imho.
The discussion in the pull request might be something for the version after that.

At least tag it, maybe not upload it to pypi. We increased the version number. A version number should be tagged.

Tagging it makes total sense, I agree.

Anything going in with this btw?
because
pip install pyeventio
does not work as advertised in the README. (not that this would be an urgent problem or anything. just wanted to mention it.)

Ah this is because one has to omit the superfluous py and just type:
pip install eventio

have a look here: https://pypi.python.org/pypi/eventio
We have to fix the README


Hassio 0.115.0 breaks integration

Hi,
after I updated to 0.115.0 Gardena integration is not working anymore.
After restart of Hassio it says:
_The following integrations and platforms could not be set up:
gardena_smart_system.sensor
gardena_smart_system.switch
gardena_smart_system.vacuum

Please check your config._
Within the logs I found:
Logger: homeassistant.setup
Source: setup.py:280
First occurred: 19:47:29 (3 occurrences)
Last logged: 19:47:31

    Unable to prepare setup for platform gardena_smart_system.sensor: Platform not found (cannot import name 'UNIT_PERCENTAGE' from 'homeassistant.const' (/usr/src/homeassistant/homeassistant/const.py)).
    Unable to prepare setup for platform gardena_smart_system.switch: Platform not found (cannot import name 'UNIT_PERCENTAGE' from 'homeassistant.const' (/usr/src/homeassistant/homeassistant/const.py)).
    Unable to prepare setup for platform gardena_smart_system.vacuum: Platform not found (cannot import name 'UNIT_PERCENTAGE' from 'homeassistant.const' (/usr/src/homeassistant/homeassistant/const.py)).

I have the same issue.

Me too

Hello,
I will update my home assistant to check what is the issue. I ll try to do
that this week end !
Jeremie
Le jeu. 17 sept. 2020 à 21:52, northpower25<EMAIL_ADDRESS>a
écrit :

Me too
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/py-smart-gardena/hass-gardena-smart-system/issues/43#issuecomment-694463506,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAARGI366H5JIL5Q6NBYZUTSGJSHNANCNFSM4RQZCBJA
.

I'm citing somebody from the HomeAssistant 0.115 release page:

UNIT_PERCENTAGE was changed to PERCENTAGE in 0.115.

Her the explanation for this problem -> https://github.com/home-assistant/core/pull/39383

The fix works properly. Well done and thx.

can we merge the PR and release it?


Create default values for the the appbuild.gradle TWA configuration

Currently, all configurations are specified on the top of the application's build.gradle. Values like  enableNotifications, useBrowserOnChromeOS and shortcuts are not frequently used and, as more configurations are added, the configuration ends up with a lot of visual pollution, making it harder for developers to understand.
For the values that can have defaults specified, those should be specified in the build script, and should only be added to the configuration section if a developer wants to override the default value.
This will make the configuration section shorter and easier understand.
@PEConn, WDYT?

On the other hand, I think that the relevant part of the config file still fits onto a page (it's only 20 lines now) and it acts as a nice way to advertise TWA features. I could see a developer going to build.gradle to enter their host name and theme colour, spotting the shortcuts entry and trying it out.
If the twaManifest structure doubles or triples in size, I'd agree that we need to cut it down, but for now I think it's a nice place to find all the levers a developer can play around with.

Fair enough. I'll re-raise this if this becomes an issue in the future.


how to write a correct bank transfer check

Hi @anishathalye
I want to use porcupine in our bank transfer case. Our case has two operations:

read: read all account balances
transfer: random select two accounts and transfer some money

For simplicity, let's assume we only have two accounts 0 and 1. And I try to use porcupine like this:
package main

import (
	"reflect"

	"github.com/anishathalye/porcupine"
)

type bankRequest struct {
	// 0: read
	// 1: transfer from -> to with amount
	op     int
	from   int
	to     int
	amount int
}

type bankResponse struct {
	// read result
	balances []int64
        // read or transfer ok
	ok       bool
}

func newBankEvent(v interface{}, id uint) porcupine.Event {
	if _, ok := v.(bankRequest); ok {
		return porcupine.Event{Kind: porcupine.CallEvent, Value: v, Id: id}
	}

	return porcupine.Event{Kind: porcupine.ReturnEvent, Value: v, Id: id}
}

func getBankModel() porcupine.Model {
	return porcupine.Model{
		Init: func() interface{} {
                        // account 0 and 1 both have 1000 at first
			v := make([]int64, 2)
			for i := 0; i < 2; i++ {
				v[i] = 1000
			}
			return v
		},
		Step: func(state interface{}, input interface{}, output interface{}) (bool, interface{}) {
			st := state.([]int64)
			inp := input.(bankRequest)
			out := output.(bankResponse)

			if inp.op == 0 {
				// read
				ok := !out.ok || reflect.DeepEqual(st, out.balances)
				return ok, state
			}

			// for transfer
			if out.ok {
				newSt := append([]int64{}, st...)
				newSt[inp.from] -= int64(inp.amount)
				newSt[inp.to] += int64(inp.amount)
				return true, newSt
			}

			return false, st
		},
		Equal: func(state1, state2 interface{}) bool {
			return reflect.DeepEqual(state1, state2)
		},
	}
}

func main() {
	m := getBankModel()

	events := []porcupine.Event{
		newBankEvent(bankRequest{op: 0}, 1),
		newBankEvent(bankResponse{ok: true, balances: []int64{1000, 1000}}, 1),
                // try to transfer 500 from 0 to 1
		newBankEvent(bankRequest{op: 1, from: 0, to: 1, amount: 500}, 2),
		// In our case, the transfer may return fail because of some reasons, but the balance
		// is already transfered, so for next read, we will read the corrent data.
		newBankEvent(bankResponse{ok: false}, 2),
		newBankEvent(bankRequest{op: 0}, 3),
		newBankEvent(bankResponse{ok: true, balances: []int64{500, 1500}}, 3),
	}

	if !porcupine.CheckEvents(m, events) {
		panic("must be linearizable")
	}
}

Sadly, the check fails, but I have no idea how to fix this. Can you help me figure it out why the check can't work? Thank you.

I don't think this comment:
// In our case, the transfer may return fail because of some reasons, but the balance
// is already transfered, so for next read, we will read the corrent data.

makes sense. For event 2, how could ok == false but the amount is transferred anyways? This isn't an invalid step even in the single-threaded model.

@anishathalye
It can be, for a MySQL execution, like update accounts set balance = balance + 1 where id = 0, after we send this query to the MySQL, and the MySQL executes it, but at this time, the connection is broken with timeout, so we will get an error in the client, but the MySQL can still execute the query successfully.
Maybe here I must add a timeout field in the response, but if the timeout is true, what do I return?

Ah, I see. Yeah, I think the right way to handle this is to add a timeout field in the response, and add the event as executing sometime between invocation time and infinity (because you can't tell when in the future a timed out operation will appear to execute).
You can see how the "unknown" case is handled here: https://github.com/anishathalye/porcupine/blob/master/porcupine_test.go#L96

Thanks @anishathalye
It works now, I will add more tests later.


Add support for pydantic 2.x

Make pykoplenti compatible for pydantic 1.x and pydantic 2.x.
See also #12

Add tox for testing the code with pydantic 1.x and pydantic 2.x
Write a small wrapper around the deprecated parse_obj_as function in pydantic 1.x
Apply suggestions from sourcery
Add python 3.11 tests to tox.

@bvanelli
Thank you for remembering. I have just created a release.


sven's new tsunami-simulations (next week)

will probably need new wrapper for deus that accepts the tsunami data as input

Example tsunami data provided by Sven:
RG_C00002798_mw9.25_04h.zip


[Feature][Plugin] Support spark streaming sink to apache iceberg

Search before asking

[X] I had searched in the feature and found no similar feature requirement.

Description
Support spark stream sink to apache iceberg
Usage Scenario
No response
Related issues
No response
Are you willing to submit a PR?

[X] Yes I am willing to submit a PR!

Code of Conduct

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

Discuss on #794


Poor path planning / obstacle avoidance.

Describe the bug
When using TrajectoryPlannerROS as my base_local_planner, the robot would not follow the desired path (green line) accurately and would take a long time to converge to it. This caused the robot to almost crash into a static obstacle in AIMS.

Fixed. @shivamtrip added move-back recovery plugin that allows the robot to get unstuck.
Further improvements can be made through map updates.


Add auto indentation based on current indent level

Description

Added auto indent when pressing enter
Calculates the current indent level and inserts the same indent on newline

Fixes (if any) #(71)
Have you read the Contributing Guidelines on Pull Requests?

[x] Yes
[ ] No

Type of change

[x] New feature (non-breaking change which adds functionality)

Checklist:

[x] My works and is relatively clean.
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas

Great work! :+1:


Creating account associated with MSA account doesn't work for me

I am able to log in to azure portal with my personal account. But when I open Azure Active Directory i get popup informing about error (without any further details about this error). And when I try to open "Users" section of Azure Active directory, I see following error message: "Unable to complete due to service connection error, please try again later." and no button to create new user.
After logging in to azure portal, in developer tools console I can see following errors:
{"odata.error":{"code":"Request_InvalidRequestUrl","message":{"lang":"en","value":"Request url was invalid. The request should be like \/tenantdomainname\/Entity or \/$metadata. Tenant domain name can be any of the verified, unverified domain names or context id."}}}

It looks like it is associated with 400 Bad request to following call: https://graph.windows.net/isDirectoryFeatureEnabled?api-version=1.6-internal request-id: 55083909-66e3-46ea-925a-b1487675dd43
When entering azure active directory i get:

403 response to https://main.iam.ad.ext.azure.com/api/FeatureConfigurations
400 response to https://main.iam.ad.ext.azure.com/api/Common/GetDiagnosticsServiceToken
403 response to https://main.iam.ad.ext.azure.com/api/MsGraph/v1.0/organization/?$select=onPremisesSyncEnabled,onPremisesLastSyncDateTime

When entering users pane i get following errors:

403 response to https://graph.windows.net/myorganization/isDirectoryFeatureEnabled?api-version=1.6-internal
403 response to https://main.iam.ad.ext.azure.com/api/Users?searchText=&top=25&orderByThumbnails=false&maxThumbnailCount=999&filterValue=All&state=All&adminUnit=&searchByObjectId=false

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

ID: a5cac582-108f-ed21-5ebd-02d35aaf6c3d
Version Independent ID: 47d7bf64-ece8-a0c1-b2b7-3b6b447f9a03
Content: Account requirements for Azure Sphere
Content Source: AzureSphere/articles/install/azure-directory-account.md
Product: azure-sphere
GitHub Login: @pennyo
Microsoft Alias: azurespheredocs

@emgieer  Thanks for the feedback! We are currently investigating and will update you shortly.

@emgieer This would require further investigation to find out the root cause. Can you please file a support request @ https://aka.ms/azsupt? If you do not have access to a support plan, please reach out<EMAIL_ADDRESS>with a link to this Doc/Issue as well as your subscription ID and we can help get the support ticket opened for this issue.

Please reach out the support as per the above email. We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.

@emgieer @AshokPeddakotla-MSFT  Hi! I'm experiencing the same problem. Did you solved it? Thanks!

@agschipor Can you please create a new issue with the detailed error message and the documentation which you are following?

I can do it, but it is exactly the same issue & documentation - I'm receiving the same errors. It will be better to create a new issue?

@agschipor I didn't solved it. I created new azure account. After that I went back to my existing account and this time everything worked OK. I'm not sure if creating new account influenced anything. I suspect that simply waiting 30 minutes after receiving error was sufficient to fix that issue for me.

I have the same issue. I see POST request https://graph.windows.net/isDirectoryFeatureEnabled?api-version=1.6-internal with body
{directoryFeature: "B2CFeature"}
And response with status 400 is

Hello @dirzhov the document that this issue refers to no longer exists or was substantially changed. Can I kindly ask you to open a new issue under the proper doc so we can follow-up with the right context?
Thanks!