Version 0.7.9 crashing on Windows10: need to fix

v0.7.8 is working, but v0.7.9:
C:\Users\Ivo\Desktop\db1000n-v0.7.9-windows-386>db1000n.exe
2022/03/15 12:40:03.255152 main.go:55: DB1000n [Version: v0.7.9][PID=4732]
2022/03/15 12:40:03.255152 countrychecker.go:28: Checking IP address, attempt #0
2022/03/15 12:40:06.134636 countrychecker.go:97: Current country: Netherlands (<IP_ADDRESS>)
2022/03/15 12:40:06.135413 prometheus.go:247: Can't get tls config
2022/03/15 12:40:06.186500 config.go:40: Loading config from "https://raw.githubusercontent.com/db1000n-coordinators/LoadTestConfig/main/config.v0.7.json"
2022/03/15 12:40:06.186500 config.go:125: New config received, applying
2022/03/15 12:40:06.188701 http.go:147: Attacking http://<IP_ADDRESS>:1050
.............
2022/03/15 12:41:23.742202 http.go:147: Attacking https://gos.etpgpb.ru/
2022/03/15 12:41:23.715137 http.go:147: Attacking https://etp.gpb.ru/
runtime: out of memory: cannot allocate 268435456-byte block<PHONE_NUMBER> in use)
fatal error: out of memory
goroutine 709 [running]:
runtime.throw({0x16cf71b, 0xd})
/usr/local/go/src/runtime/panic.go:1198 +0x64 fp=0x239cfc54 sp=0x239cfc40 pc=0xf68f54
runtime.(*mcache).allocLarge(0x2930528, 0x10000000, 0x0, 0x1)
/usr/local/go/src/runtime/mcache.go:229 +0x250 fp=0x239cfc88 sp=0x239cfc54 pc=0xf44ca0
runtime.mallocgc(0x10000000, 0x1607c40, 0x1)
/usr/local/go/src/runtime/malloc.go:1088 +0x48b fp=0x239cfcd8 sp=0x239cfc88 pc=0xf3bd1b
runtime.makeslice(0x1607c40, 0x4000000, 0x4000000)
/usr/local/go/src/runtime/slice.go:98 +0x4f fp=0x239cfcec sp=0x239cfcd8 pc=0xf7e1df
golang.org/x/crypto/scrypt.Key({0x131f4b10, 0x2c, 0x30}, {0x131cab00, 0x2c, 0x40}, 0x40000, 0x8, 0x1, 0x20)
/go/pkg/mod/golang.org/x/crypto@v0.0.0-20220214200702-86341886e292/scrypt/scrypt.go:204 +0x113 fp=0x239cfd4c sp=0x239cfcec pc=0x122f333
filippo.io/age.(*ScryptIdentity).unwrap(0x131ee9e0, 0x1329b920)
/go/pkg/mod/filippo.io/age@v1.0.0/scrypt.go:159 +0x311 fp=0x239cfdc0 sp=0x239cfd4c pc=0x1233331
.......
goroutine 1380 [runnable]:
text/template/parse.(*lexer).run(0x13426940)
/usr/local/go/src/text/template/parse/lex.go:228
created by text/template/parse.lex
/usr/local/go/src/text/template/parse/lex.go:223 +0x192

OOM errors again, it seems like even with the latest change to encrypt only part of the config it still doesn't have enough memory to parse it. You can temporarily get around it by passing --skip-encrypted via commandline args
on a bit different topic, @crocangIt does the app crash completely or does it print this error and continues generating at least some traffic?

It seems that some traffic is generated.
It is busy for a few seconds and then it crashes completely:
See the attachment.
log.txt

@crocangIt are you by any chance using a machine with somewhere around 1 GB of RAM or are there more resources? want to confirm a suspicion

I have 24 GB RAM, Win10 x64, same problems.

Crashing on AWS t3.small instances too.

@crocangIt not removed, just "optimized": we discovered that when multiple threads try to decrypt the data in parallel - each of them have to create their own decryption key copy and each copy takes roughly 256Mb of RAM. I've changed the config to only contain one encrypted part but I'm also working on making it so that no two threads can decrypt data in parallel (it's not crucial to performance as decryption is done only once when config changes but will eliminate this issue completely)


cabal: /Users//Library: does not exist

After following the instructions in the app, running cabal works, yielding:
cabal: no command given (try --help)

However running cabal update yields
Downloading the latest package list from hackage.haskell.org
cabal: /Users/rcurley/Library: does not exist

Have you installed Haskell Platform in the past? There may be an issue with your ~/.cabal/config

Yep, that was it. Removing my ~/.cabal file fixed it.


Carbon X: UI Shell Components

This epic is for tracking work related to the UI Shell component implementations in carbon-components-react. At a high-level, UI Shell is composed of the following standalone components or regions that we will need to bring over:

Standalone panels

Flexible
Fixed
Floating

Header
Navigation Menu
Side Navigation
Global Product Switcher

Will any of the discussion on the component(s) API take place outside of the core contributors? This would be fun to work on if you're open to other folks jumping in.

Hey @vpicone! Right now this is going to be a first pass to add in the presentational components, so the API should just be mostly for specifying the different variations of a component. Definitely want to open it up later down the road though when we start thinking about how to make it easier to use all the presentational components for product teams 😄
In the meantime, feel free to leave any feedback here! Always love to hear what folks are thinking.


chore: Use Bazel 6 and minimum tested Bazel version

Bazel 5 is out of support, so switch to using Bazel 6

@comius Hey Ivo, can you review/approve? This file isn't managed via copybara export


Beam compression format extension with Hadoop 4MC file format.

Please add a meaningful description for your change here
The 4MC (4 More Compression) is a library for hadoop providing a new splittable compressed file format (4mc) which lets you leverage the power of LZ4 and ZSTD algorithms.
It differs from other compressed file formats in a way that the output files can be read using HIVE partitioning. This PR allows Dataflow to write files in 4MC compression format.
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Thanks. Could you follow instructions in Beam contribution guide (for example, attach a Jira): https://beam.apache.org/contribute/get-started-contributing/
Also, could you add unit and integration tests to make sure that this works ?

BTW IIUC correctly, 4mc is a file format not just a compression format. Are you able to use this PR with existing Beam I/O connectors for various file formats (for example, FileIO and AvroIO). It's possible there's a misunderstanding about how Beam file-based I/O works.

Agree. 4mc is a file format but the codec worked for us using TextIO.
This is a sample pipeline which works with 4mc file format.
PCollection collection =  p
.apply("Read " + topic + " Messages", PubsubIO.readStrings().fromTopic(topicName))
.apply(Window.into(FixedWindows.of(Duration.standardMinutes(1))));
collection.apply(FileIO.<String, String>writeDynamic().withNumShards(1)
.by((SerializableFunction<String, String>) input -> input)
.via(TextIO.sink()).withCompression(Compression.MC4).to(options.getBucket()+"/output/")
.withDestinationCoder(StringUtf8Coder.of())
.withNaming( new SerializableFunction<String, FileNaming> () {
                    @Override
                    public FileNaming apply(String input) {
                        return (window, pane, numShards, shardIndex, compression) -> {
                            return input.toString() +".4mc";
                        };
                    }

                }));

Also,

Thanks. Could you follow instructions in Beam contribution guide (for example, attach a Jira): https://beam.apache.org/contribute/get-started-contributing/

https://issues.apache.org/jira/browse/BEAM-14452

Still unclear to me how this work. Do 4mc encoded text files written by TextIO somehow end up being same as 4mc files ? If so, that sounds like by accident for me and probably we should develop a 4mc source/sink instead.

It might be good to write a short design doc on this and share with Beam<EMAIL_ADDRESS>

Agree with @chamikaramj , a brief design doc would be very appreciated.

To clarify, next steps are.
(1) A brief design doc on why this approach works for reading/writing 4mc files (or propose an alternative approach)
(2) Make sure that the PR passes current tests
(3) Add new unit tests related to reading and writing with 4mc compression. See [1] and [2] for example tests.
(4) Add an integration test (optional)
[1] https://github.com/apache/beam/blob/master/sdks/java/core/src/test/java/org/apache/beam/sdk/io/TextIOWriteTest.java
[2] https://github.com/apache/beam/blob/master/sdks/java/core/src/test/java/org/apache/beam/sdk/io/TextIOWriteTest.java

@meetdestiny - Could you please follow up on the mentioned next steps?


Clarifying question: adding any functionality

Eric, any chance you have an example of the use of DataTables Add Row?  I've created the table using Tabular in common code but now figuring out where to add the code from DataTables to manipulate.  I've got the following in a client js file but no love.  Any examples of how this can be combined?
Template.Transactions.events({
$:(document).ready(function () {
    var t = $('#Transactions').DataTable();

    $('#addRow').on('click', function () {
        t.row.add([
            '1',
            '2',
            '3'
        ]).draw();
    })
})
});

I realized one issue with my previous code where I was still referencing the document.  Still having trouble adding any functionality though - table renders but I can't change anything.  I have Datatables installed on my machine (is that necessary for Tabular?), I assume no files need to be referenced in my project.
client/transactions.html

        <button id="addRow">Add new row</button>

        {{> tabular table=TabularTables.Transactions id="transactions" class="table table-striped table-bordered table-condensed"}}

client/transactions.js
Template.Transactions.rendered = function () {
var t = $('#transactions').DataTable();
$('#addRow').on( 'click', function () {
    t.row.add( [
        '1',
        '2',
        '3'
    ] ).draw();
});
};

lib
TabularTables.Transactions = new Tabular.Table({
name: "Transactions",
collection: Transactions,
columns: [
    {data: "target", title: "Target"},
    {data: "acquirer", title: "Acquirer"},
    {data: "enterpriseValue", title: "Enterprise Value"},
    {
        tmpl: Meteor.isClient && Template.precedentSelectCell
    }
]

});

Eric, apologies, I realized my issue was that this table is tied to a collection that is not populated. So there was nothing to add. If I link to a populated collection, I at least see the data. I need to work on writing the selectors for the next step


Failing to install on Google Colab

Hello, I am trying to install nvGraph on Google Colab. It was working fine yesterday, but Colab is now upgraded to CUDA 11.0 from 10.1 and the ./build.sh command is failing with error message from thrust. Similar errors are reported from a number of other source files.
In file included from /usr/local/cuda/targets/x86_64-linux/include/thrust/detail/config/config.h:27:0,
                 from /usr/local/cuda/targets/x86_64-linux/include/thrust/detail/config.h:23,
                 from /usr/local/cuda/targets/x86_64-linux/include/thrust/sequence.h:24,
                 from /root/nvgraph/cpp/src/triangles_counting.cpp:18:
/usr/local/cuda/targets/x86_64-linux/include/thrust/detail/config/cpp_dialect.h:104:13: error: Thrust requires C++14. Please pass -std=c++14 to your compiler. Define THRUST_IGNORE_DEPRECATED_CPP_DIALECT to suppress this message. [-Werror]
   THRUST_COMPILER_DEPRECATION(C++14, pass -std=c++14 to your compiler);
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

In file included from /usr/local/cuda/targets/x86_64-linux/include/thrust/system/cuda/detail/execution_policy.h:33:0,
                 from /usr/local/cuda/targets/x86_64-linux/include/thrust/iterator/detail/device_system_tag.h:23,
                 from /usr/local/cuda/targets/x86_64-linux/include/thrust/iterator/iterator_traits.h:111,
                 from /usr/local/cuda/targets/x86_64-linux/include/thrust/detail/sequence.inl:24,
                 from /usr/local/cuda/targets/x86_64-linux/include/thrust/sequence.h:295,
                 from /root/nvgraph/cpp/src/triangles_counting.cpp:18:
/usr/local/cuda/targets/x86_64-linux/include/thrust/system/cuda/config.h:78:2: error: #error The version of CUB in your include path is not compatible with this release of Thrust. CUB is now included in the CUDA Toolkit, so you no longer need to use your own checkout of CUB. Define THRUST_IGNORE_CUB_VERSION_CHECK to ignore this.
 #error The version of CUB in your include path is not compatible with this release of Thrust. CUB is now included in the CUDA Toolkit, so you no longer need to use your own checkout of CUB. Define THRUST_IGNORE_CUB_VERSION_CHECK to ignore this.
  ^~~~~

That stops cusparse build and then the identifiers are listed as undefined:
...
/root/nvgraph/cpp/include/matrix.hxx(772): error: identifier "cusparseScsrsm_solve" is undefined
/root/nvgraph/cpp/include/matrix.hxx(775): error: identifier "cusparseSolveAnalysisInfo_t" is undefined
/root/nvgraph/cpp/include/matrix.hxx(776): error: identifier "cusparseDcsrsm_solve" is undefined

nvGraph was designed to work with CUDA 9. In recent versions of CUDA (e.g. CUDA 11) NVIDIA broke the compatibility of cusparse API. As I understood, they wanted some kind of unification with other math libraries.  They don't give a thing about breaking hundreds of very useful computing software, such as PetSC. Why not to make a compatibility layer instead, NVIDIA? Sure, we have a lot of time to catch up with your changes, because you make a generous free donation, to us the poor people.

🤣 I was able to install it from anaconda though. https://anaconda.org/nvidia/nvgraph

Yes, because there at Anaconda they still use old CUDA runtimes for nvgraph.


#12 multiple lists

Value Proposition
As a user I would like to have multiple lists to store different entries (for example todos, shopping etc.)
Description

Acceptance Criteria

[ ] show overview page
[ ] show list page with the corresponding data, when i click on a list headline
[ ] show a back button inside the nav

Tasks

[ ] create feature feat/multiple-lists
[ ] create a overview page
[ ] create OverviewListEntry component
[ ] add example-data for lists and map over them with the OverviewListEntry component (on the overview page)
[ ] add references to each list on each OverviewListEntry component
[ ] add a NavLink component (back to Lists) for the nav

is OverviewListEntryreally a component or rather a page ?

@Mark-Krensel a component inside the lists page


Hide disabled flags per environment

At the moment, it's only possible to hide disabled flags on a per project basis. For organisations that are using our REST API, or are particularly sensitive to changes, we should allow this to be applied per environment so that the changes can be tested in a given environment before being applied to the whole project.

This needs implementing in Edge too.

@kyle-ssg environments now have a new field 'hide_disabled_flags' so that the setting (which currently exists at the project level) can be set at the environment level.
The one difference is that it can be (and is by default) null at the environment level. This signifies that it should 'inherit from the project'. If it's set at the environment level (whether true or false) it will override whatever is set at the project level.


Connections from binaries

Are you planning to add connection blocking for system binaries for example such as ping or curl?
It works in firewalls like that NoRoot Firewall and PCAPdroid. There is a block even if you run binaries under the root.

If you run the commands from the shell then this can be blocked by bocking the system app shell:

This certainly works for anything run under ADB shell. Is this what you mean? If not please give a specific example.
I do not have a rooted phone to test on.

If you run the commands from the shell then this can be blocked by blocking the system app shell

There is a block for all apps but..

This certainly works for anything run under ADB shell. Is this what you mean? If not please give a specific example.

$ adb shell
device $ su
device # ping github.com
PING github.com (<IP_ADDRESS>) 56(84) bytes of data.
64 bytes from <IP_ADDRESS>: icmp_seq=1 ttl=112 time=712 ms
64 bytes from <IP_ADDRESS>: icmp_seq=2 ttl=112 time=712 ms
64 bytes from <IP_ADDRESS>: icmp_seq=3 ttl=112 time=737 ms
64 bytes from <IP_ADDRESS>: icmp_seq=4 ttl=112 time=660 ms

As I mentioned, I do not have a rooted phone to try this on.
After su what is the output of these commands?
ps -aef
id
And if you do:
ping github.com &
What is the output of:
ps -aef
id
Thanks

After su what is the output of these commands?

Any applications running under root have its id: 0

I'm starting to guess why it's like this :)
Are you filtering by UIDs?
Then you need to add a separate item in the settings to block 0 and 1-9999 uids for system binaries, services and applications.

See how AFWall and PCAPdroid works with the system uids.
There are even unknowns uids being tracked as negative numbers.

https://github.com/ukanth/afwall/blob/beta/app/src/main/java/dev/ukanth/ufirewall/Api.java#L1351

Here is the main:
https://github.com/emanuele-f/PCAPdroid/blob/master/app/src/main/java/com/emanuelef/remote_capture/AppsResolver.java

I'll take a look.
The VPN works using addAllowedApplication(packageName) so I need a package name. Under the hood Android VPN works on UID so if you firewall using packageName a system app, and other package with the same UID will be firewalled. But the API does not allow me to VPN/Firewall by UID directly only Package Name.
https://developer.android.com/reference/android/net/VpnService.Builder#addAllowedApplication(java.lang.String)
adb shell pm list packages --uid 0
Returns nothing.
I currently get Installed packages (insluding system) by:
List<PackageInfo> packageInfoList = Global.getContext().getPackageManager().getInstalledPackages(0);
Then:
packageInfo = Global.getContext().getPackageManager().getPackageInfo(packageName, PackageManager.GET_PERMISSIONS);
I'll have a closer look at the code examples you sent and see how others cope with this.

But the API does not allow me to VPN/Firewall by UID directly only Package Name.

That's the bad news :(
System uids are just numbers.
So it turns out that it's impossible to create a full-fledged firewall without Internet permission :(

Probably PCAPdroid runs itself as VPN-service and works as a local MITM to filter all traffic

Check this again just in case
https://developer.android.com/reference/android/content/pm/PackageManager#getNameForUid(int)
https://developer.android.com/reference/android/content/pm/PackageManager#getPackagesForUid(int)

It's unlikely to help but suddenly ;)
And so apparently another meanness from Google :(

I tried and the following returns null:
getContext().getPackageManager().getNameForUid(0);
I do not think there is a way for a non-root firewall, or a firewall which does not inspect packets to block binaries run as root.

I do not think there is a way for a non-root firewall, or a firewall which does not inspect packets to block binaries run as root.

I wrote about this above
Thanks to Google :(


Link to 1.0 documentation doesn't work

The link http://jameskleeh.com/groovy-excel-builder/1.0 dosen't work.

it's under development, the issue https://github.com/jameskleeh/groovy-excel-builder/issues/31
I guess this repo doesn't have much priority for a maintainer, pull requests are welcome


feat: define the regular and extensive coverages

We define the regular and extensive coverages on categories, and define typeclasses with the necessary properties categories need to have to be able to define these coverages.
Co-authored-by: Riccardo Brasca @riccardobrasca<EMAIL_ADDRESS>Co-authored-by: Filippo A E Nuccio @faenuccio<EMAIL_ADDRESS>

Is this ready for review?

I think it is!

bors r+


Upgrade MLAPI implementation to support MLAPI 0.1.0

Unsure if you are taking PRs, but I was planning on using this for my game which I am currently migrating to MLAPI and needed to upgrade this implementation to support the latest public release.

Thanks for the PR, this is great 😄 I'll give it a test when I get chance and merge if possible 👍

No problem!
I'm mid porting my old game from UNet across to MLAPI, so I have not even managed to test it myself yet... (1800 errors, down to 4). I should be able to test it my side properly soon
I also have an implementation of IDissonancePlayer for MLAPI which I will either add to this PR, or do another PR for later.

Amazing 👏 Feel free to comment here if you have any issue 👍

Here's a working implementation of IDissonancePlayer:
using Dissonance;
using MLAPI;
using MLAPI.NetworkVariable;
using UnityEngine;

/// <summary>
/// When added to the player prefab, allows Dissonance to automatically track
/// the location of remote players for positional audio for games using the
/// Unity MLAPI networking library.
/// </summary>
[RequireComponent(typeof(NetworkObject))]
public class MlapiPlayer : NetworkBehaviour, IDissonancePlayer
{
    public Transform voiceOrigin;
    private DissonanceComms _comms;

    public NetworkVariableString playerName = new NetworkVariableString(new NetworkVariableSettings { WritePermission = NetworkVariablePermission.OwnerOnly }, "");

    public string PlayerId
    {
        get { return playerName.Value; }
    }

    public Vector3 Position
    {
        get { return voiceOrigin.position; }
    }

    public Quaternion Rotation
    {
        get { return voiceOrigin.rotation; }
    }

    public NetworkPlayerType Type
    {
        get
        {
            if (_comms == null || PlayerId  == null)
                return NetworkPlayerType.Unknown;

            return IsLocalPlayer ? NetworkPlayerType.Local : NetworkPlayerType.Remote;
        }
    }

    public bool IsTracking { get; private set; }

    public void OnEnable()
    {
        _comms = FindObjectOfType<DissonanceComms>();
    }

    public void OnDisable()
    {
        if (IsTracking) {
            _comms.StopTracking(this);
            IsTracking = false;
        }
    }

    public override void NetworkStart()
    {
        base.NetworkStart();
        if (!_comms)
        {
            return;
        }

        if (IsLocalPlayer)
        {

            if (_comms.LocalPlayerName != null)
            {
                _comms_LocalPlayerNameChanged(_comms.LocalPlayerName);
            }
            else
            {
                _comms.LocalPlayerNameChanged += _comms_LocalPlayerNameChanged;

            }
        }
        else
        {
            if (playerName.Value != "")
            {
                OnPlayerNameChanged("", playerName.Value);
            }
            playerName.OnValueChanged += OnPlayerNameChanged;
        }
    }

    private void _comms_LocalPlayerNameChanged(string newPlayerName)
    {
        playerName.Value = _comms.LocalPlayerName;
        _comms.TrackPlayerPosition(this);
        IsTracking = true;
    }

    private void OnPlayerNameChanged(string oldName, string newName)
    {
        _comms.TrackPlayerPosition(this);
        IsTracking = true;
    }
}

I've built a game with this that's up and running, and I can confirm it works. The only other change I've had to make to this project is switching usage of IsHost to IsServer, since IsHost returns false if you're not also a client.

Awesome!
I have an implementation my side which I planned on merging into this PR, but feel free to open a seperate PR for your implementation. (I have been a bit busy porting my game to newer tech)

Good call on the IsHost -> IsServer changes. Ill have to review that before completing this PR

Thanks both, @Widdershin feel free to PR this :) I will get around to testing this one and merging.

Whoops, was not aware that was how it worked. Ill update it now
Not even been able to test as I got really busy with work / the project

Back on this today, got a release tomorrow which has required me to make the switch from UNET to MLAPI.
MLAPI is all different since I did this, but I just ported the games codebase over to MLAPI, now known as Netcode for Game Objects (NFGO? Lame acronym)
Going to rework this PR to handle NFGO 1.0s prerelease as I require it for my game. Should have it reworked today

Ported anyway. Still not tested though as my games just in an unusable state while I port other stuff
Will be attempting to implement IDissonancePlayer for a MlapiPlayer class as my game uses the HlapiPlayer class

MlapiClient: Caught fatal error: Attempted to write without first calling TryBeginWrite()
Looks like I am supposed to call that beforehand. I dont recall seeing that in the docs so....

Fixed. Tested and working!

Nice! Just as a heads up as well, there's an official implementation published on the Unity Store now :)
https://assetstore.unity.com/packages/tools/integration/dissonance-for-netcode-for-gameobjects-206514


segfault seen with 'openssl s_client -prexit -keymatexport abc'

'openssl s_client' dumps core after connection failure trying to export keying material.
% openssl s_client -prexit -keymatexport abc
connect: Connection refused
<...>
Keying material exporter:
Label: 'abc'
Length: 20 bytes
Segmentation Fault (core dumped)

+1

Thank you, Rich!

Should we print any of the export if there is no session?

Isn’t that what the added session-is-null test does?

No, I mean the whole if() before it

ah right.  yes i agree with you.

Should I move the session check to line 2634?

Yes

I moved the session check to line 2636 as SSL_SESSION_print() at line 2635 already handle the case where session is NULL.

+1

commit 1d8b4eb.  thanks!

Great! Thank you, Rich and Kurt!

🎉


Rename RaidenServiceBundle to ServiceRegistry

That name is more descriptive and less confusing.
See #480

Are these profiling files added on purpose? https://github.com/raiden-network/raiden-contracts/pull/489/files#diff-2a89d1d17eabca6a39aea3da17a42342

No, they are not! I'll remove the right away.


Add 'date' as alias to 'day' for startOf() and endOf().

Patch for #2974.

@icambron Sure, makes sense. Updated.

LGTM, @ichernev

I don't understand why the if statement is needed at all in the endOf function.  Shouldn't it just be handled by the case statement in the startOf function?
For that matter, looking closer here, I don't understand why in the existing code there's an inline if for treating an isoWeek as a locale-based week, or why endOf is shortcutting for undefined and millisecond but startOf doesn't.
IMHO, all of the logic should be in the startOf function.  The endOf function should be consistent in going to the start of the next unit and then back one millisecond.

Sorry for the delay, I've been busy lately.
The if statement sets the units to a valid value for the add method. Maybe the inline isoWeek handles the same case.
As for the units === undefined I think it isn't on startOf because startOf always returns this and ignores unhandled cases, but endOf returns by default a whole method chain, which is why it returns this on the undefined case, to avoid having to perform the operations with a wrong value. I'm not really sure about why the handling for the milliseconds..

I want to keep this pull request moving along, so:
I agree that undefined shortcutting is correct because of the return of the whole method chain.
Yes, date needs to be changed to day in endOf to make the add call valid.
This actually opens up a bit of a rabbit hole. Ideally, by this logic, date would be an alias for day in the add/subtract functions. And that code path will lead you down to making date and alias for day in durations. I am not sure if this spirals out further, and it's late enough at night that I don't want to find out right now.
If we don't want to go make the day/date aliasing thing work everywhere, I think this PR is generally fine. I'm open to the opinions of others on whether we should carry the aliasing through. Programatically it makes sense to carry it all the way through, but from an API design standpoint it's a little wonky. Why would one add a date? One adds a day.

We'll merge this, the code is not perfect, but it works :)

Merged in 53934858a08d0ab461ceffc0c44c1a8fe8054eb5


Added extradeploy for additional kubernetes resource

The change allows to deploy additional kubernetes deployment.
Added example of  encrypted  backend  configuration values.

Please review the RP and let me know if there is a issue
@Suave @davies @xiaogaozi @timfeirg

encryption support is something that we'd planned to support, but the "extraDeploy" part in your PR isn't a practice that's widely adopted by our users.
I'll draft encryption support in a separate PR, closing this for now but feel free to continue using your own fork if it works for your team.

close in favor of https://github.com/juicedata/charts/pull/108


Non US keyboard layouts unsupported for hotkey registering

I think at the moment Controlcast doesn't correctly read non US keyboard layouts when setting up a hotkey.
Whenever I enter a key/combination containing umlauts (äöü) or ß and ´, the last of which are located directly right of the zero on the keyboard for my German layout, Controlcast registers a different key.
OBS seems to support the German layout.
 I will attempt to support multi-language layout.

The fix for #12 worked, but since / * + and , on the numkey seem to be tied to the non-US (in my case: German) keyboard layout as well, multi-language layout support would be the next logical step to complete full accessibility to the num keyboard. Thanks!


Fatal errors not reported in vercel logs

I have a few basic "route all requests to php"-style deployments on vercel, and I am noticing that when these deployments encounter a Fatal Error (for ex, some silly type issue like trying to read from a null as if it was an array ;p), the Fatal error message does not appear in the Vercel logs.
Has anyone else encountered this? Is there a workaround?
My only php.ini tweak is "display_errors = Off", which shouldn't affect this.
Using this simple vercel.json, for reference:
{
    "functions": {
        "api/*.php":
        {
            "runtime"<EMAIL_ADDRESS>            "maxDuration": 60
        }
    },
    "rewrites": [
        {"source": "/(.*)", "destination": "api/routes.php"}
    ]
}

Hi @fascinated, so far I didn't check Vercel logs for this type of exceptions, I must take a look.

Thanks for the quick response <3.
Here's an example "fatal error" script, this will return 500 as expected, but the error itself will not be in the logs:
    $bad_var = null;
    if(in_array("test", $bad_var['not_array'])) {
        echo "we shouldn't be here ;)";
    } else {
        echo "TEST OK: value not found";
    }

It's also worth noting that if you change this script to something like [below] such that there's some output before the fatal error, then Vercel will not report a 500 at all (and the logging behavior is the same). I sorta get why this is (200 header + output already sent), but if memory serves right, the common nginx/php-fpm setup would still produce an error in this case. Is this one a buffering issue specifically?
    $bad_var = null;
    echo "OK";
    if(in_array("test", $bad_var['not_array'])) {
        echo "we shouldn't be here ;)";
    } else {
        echo "TEST OK: value not found";
    }

Under the hood, there is simple PHP built-in development server.
If you start your script like that php -S <IP_ADDRESS>:8080 api/index.php you can see what is on stdout and what on stderr. Maybe it's wrong in built-in server.

Yeah, I was thinking it's some stdout/stderr thing, but it seems all of the output from php -S just goes to stderr, so maybe there's something else.


not working

june 12th 2020 youtube non stop is not working on windows 10 x64 firefox 77.0.1 x64 addon version 0.8.0

Same for me, with the same setup @lawfx

Likewise, it isn't working unless that Tab is the focus window.
Firefox 77.0.1
Win 10


Pattern states with pseudo patterns fail to buile

I have a pattern with the @inprogress state and a few pseudo patterns off it it which also have their own states, but when the build happens there are patterns that can't be generated because the psuedo patterns are looking for the mustache file without the state. I tried including the state within the json file name, so<EMAIL_ADDRESS>and that didn't work. Any thoughts? Guessing I'm mixing up something in there.

@lostsatellites -
Could you give me the file names you're trying to use? Just want to be able to make sure my test matches your use case. Thanks.

I'm using…
<EMAIL_ADDRESS><EMAIL_ADDRESS>(also tried this without the status)
<EMAIL_ADDRESS>…

@lostsatellites -
Bad code on my part. Just did a quick test and the following should work but please test yourself. Replace line 739 in Builder.php with the following:
"patternSrcPath" => $this->patternPaths[$patternTypeDash][$patternBaseDash]["patternSrcPath"],

That should give the correct path to the parent pattern.

I replaced that and am still getting the same error.

@lostsatellites -
I duplicated your use case exactly and my fix worked on a clean install of PL so I'm unsure why it'd still be a problem. Can you please paste lines 738-742 from Builder.php here please? Thanks.

										 "patternSrcPath" => $this->patternPaths[$patternTypeDash][$patternBaseDash]["patternSrcPath"],
										 "patternName"    => ucwords($patternClean),
										 "patternState"   => $patternState,
										 "patternPartial" => $patternPartial);```

@lostsatellites -
I just downloaded a clean install and redid the test and, again, it works. I assume I'm missing something unique about your use case. If you can share further details I'll look into it more but for now I'm stuck. Sorry.

I appreciate you looking into it. I'll try a clean install and see if anything changes.


Clarification on cancellation

The documentation on cancellation seems a little lacking.

[ ] 1. How do IORING_OP_ASYNC_CANCEL and IORING_OP_LINK_TIMEOUT affect the result of the target operation?
[ ] 2. What is the effect of IORING_OP_ASYNC_CANCEL when there are multiple operations in flight with the specified user data?
[ ] 3. How is an IORING_OP_LINK_TIMEOUT operation affected by the successful cancellation via IORING_OP_ASYNC_CANCEL of the operation to which it is linked?
[ ] 4. What is the effect of IORING_OP_LINK_TIMEOUT on subsequent operations in a chain, after the successful completion of the operation to which it is linked?

I've actually wondered about these things myself.
Most specifically:

What is the effect of IORING_OP_ASYNC_CANCEL when there are multiple operations in flight with the specified user data?

An answer to this would be really appreciated.

It depends on if match all is set or not. If set, it'll match all of them and try to cancel them. If not, it'll match the first one it finds.

I suspect this is going to be an implementation detail, and subject to different states of the ring
I wouldnt make any assumptions on the ordering of completions for different requests


State Synchronization

Issue/clarification reported by @jachiam
the code snippet I'm looking at is in 'step' in the engine...
https://github.com/datalogai/recurrentshop/blob/master/recurrentshop/engine.py#L247
if self.state_sync:
x, new_states = layer._step(x, states[:len(layer.states)])
states[:len(layer.states)] = new_states
So, it looks like this uses the "states" variable to keep track of the hidden states of the system.
Let's say that h(t, l) denotes the hidden state after tick 't' at layer 'l'.
The code seems to indicate that h(t-1,L), where L is the last layer, goes as the input hidden state to the first layer at time t - that is, h(t-1,L) = h(t,1).
description sounds like you want it to be the case that h(t,2) ALSO equals h(t-1,L). But the code suggests that h(t,2) is output by layer 1 at time t, because you overwrite the content of the "states" variable after the layer._step, using its output.
Am I mistaken in my interpretation of the "states" variable?

Consider an LSTM stack with 5 LSTM cells. Such a stack would have 5 * 2 = 10 hidden states, 2 per each cell. When state synchronization is enabled, there will be only 2 states instead of 10. All the 5 cells share these 2 states. Hence the notation h(time, layer) does not make sense, since the "h" is common for all the layers. i.e, h(time, l1) = h(time, l2) = h(time, l3)....

Sorry for the delay in getting back to this, I haven't had the time to sit down and be thorough about it until now.

So, (a) is what a normal 3-hidden-layer RNN looks like. (b) is what your state synchronization code does, as far as I can tell. I ran this script to make a graph that I could inspect in TensorBoard. If you look in the While box in TensorBoard, you can see the SimpleRNNCell calculations - the output from the tanh following add_1 is what I have notated as h_t^1 in the picture above. Notice how it goes into two different MatMul operations, which correspond to the W_2 and U_2 matrix multiplies in the level-2 SimpleRNNCell. The same thing happens with the output of add_3 - the h_t^2 vector gets matrix multiplied by two different matrices, W_3 and U_3, whose outputs get added together. So, effectively, the equations that are getting computed are
h_t^1 = tanh( W_1 * x_t + U_1 * h_{t-1}^3 + b_1 )
h_t^2 = tanh( W_2 * h_t^1 + U_2 * h_t^1 + b_2 ) = tanh( (W_2 + U_2) * h_t^1 + b_2 )
h_t^3 = tanh( W_3 * h_t^2 + U_3 * h_t^2 + b_3) = tanh( (W_3 + U_3) * h_t^2 + b_2 )

I confess, I have a very difficult time interpreting the TensorBoard graph visualization for a dynamic RNN; there are plenty of bits and pieces which I don't understand. So if I am mistaken here, I'm happy to be corrected.
But, is (b) the correct / desired behavior? Or do you want (c)? Or is state synchronization meant to do something else? If you could draw a graph illustrating the intended behavior, or point to a reference in the literature that explains this, it would be greatly appreciated! Thanks.

** b ** is the intended behavior. It would make sense for custom rnn cells, where the output of the a cell is different from its state. This kind of behavior is mentioned in the Seq2seq paper.

Ah, okay. Thanks for the clarification!


add docker development regtest enviroment

full docker regtest setup with all services. could potentially used for automated testing.

lnbits
bitcoin-core
lnd
clightning
electrs
mempool
boltz

i can, you planning to leave gh?

Gave you commit access here, please add the files from this pr https://github.com/lnbits/legend-regtest-enviroment

done. https://github.com/lnbits/legend-regtest-enviroment/commit/b732fe4d43a3fa4c8b3e0cb021faad82d7e3dead


Update devices-usb-devices.md

https://github.com/MicrosoftDocs/OfficeDocs-SkypeForBusiness/issues/2050
Amended vendor name from Sennheiser 65T to Evolve 65T

@jambirk Hi James, changes look correct. Could you please confirm and merge? Thanks!

@scanum  and @lindspea
Please don't implement suggestions or approve updates to anything in that /certification/ folder without  approval from @dougand-MSFT or @dianavank
Device certification claims are bordering on legal contracts, this is something only the PMs should be updating.

Noted, thanks James.
[image: Picture]
On Wed, Apr 17, 2019 at 8:26 PM James Birkinshaw<EMAIL_ADDRESS>wrote:

@scanum https://github.com/scanum and @lindspea
https://github.com/lindspea
Please don't implement suggestions or approve updates to anything in that
/certification/ folder without approval from @dougand-MSFT
https://github.com/dougand-MSFT or @dianavank
https://github.com/dianavank
Device certification claims are bordering on legal contracts, this is
something only the PMs should be updating.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/OfficeDocs-SkypeForBusiness/pull/2053#issuecomment-484207339,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AK5QAXBMFK2F5PBXNX43B3DPQ5TU3ANCNFSM4HGSUUHA
.

approved for changing vendor name to Jabra on the product Evolve 65t.


Add notes per image

Consider the ability to add comments/ notes per image.
This is useful during development to track metadata, e.g. source, planned use, etc.
Comments should be exported in .h file.

You mean like what can already be done for frames with the 'edit text' item in the right click menu and F2?

The current per frame text is quite short, dictated by space in the GUI, and the intention to use it to name each frame.
I'm suggesting a 'note' function per individual frame (perhaps for sprites and other levels of the hierarchy?).
So this would add a 'Post It' note- to hold multiline text.


fix(mux-viewer-count): Add A11Y. Default contents to allow tab focus.

Adds a11y
Adds enabled/disabled (relates to a11y for tab focus behavior)
Adds default contents for viewer-count (relates to a11y for SR + focus behavior of empty vs. non-empty nodes)

@jaredsmith any reason not to merge this?


[rewriter] Create the Dropout->Identity rules

Fix #1776

@gramalingam could you remind me which option will enable matching any unspecified attributes?


External keyboard

I cannot get external keyboard to work.
It works in xochitl/rm default UI.
No response in netsurf.

There's no keyboard support currently.
Detection of keyboard + event handling could be added here: https://github.com/alex0809/libnsfb-reMarkable/blob/master/src/surface/remarkable/input.c


CNV-31551: Edit add bootable volume

📝 Description
Add bootable volume have a graphical structure different from Upload/PVC to registry.
With this pr I align everything.

Under Source details have only the registry URL and move the Volume name under Destination details (re-suing the same Volume name field that Upload/PVC use.
Remove the Size field and use the storageClassname/size fields.
Create the DataImportCron with the selected storageClassname

🎥 Demo
Upload/Registry

Before

After

/lgtm

Just a question about the new screenshot. Is "PVC image" really the correct term?

@apinnick in other pages we have 'Upload a new file to a PVC'


Drop Scala 2.10 support

maybe also bump 2.12.7 -> 2.12.8 while you're in there

That was quick :wink:


Fixing user retrieval from a refactor change

Description
Fixed all the locations that were using the old method retrieve instead of the new retrieveById checked that those tests that were failing and preventing the build have since been fixed
Fixes #85
How has this been tested?
Ran maven test and only tests that were already failing due to authorisation pr are still failing, but these tests now pass
Screenshots
Checklist
(Leave blank if not applicable)

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules
[x] I have checked my code and corrected any misspellings

May need to modify actions, it says all checks fail, but the build goes through now, its just the testing step that fails


feat: add columnar db

Please go the the Preview tab and select the appropriate sub-template:

Default
Extension Upgrade

thank you for opening and the PR looks good
The bar for adding new extensions to the platform is very high as it's a big commitment from us to maintain them indefinitely if the current authors become unavailable. In this case we the extension is fairly new (< 18 months old) and the platform already supports a comparable extension through TimescaleDB's column store. For those reasons, I'm going to close this for now. If we see a big uptick in requests for hydra we can revisit in the future

Thanks @olirice for the quick reply.
I understand your concern, to give some context, Hydra is a company running cloud DB like Supabase.
It's a fork of an older project, citus 7 years old.
Hydra isolated the extension before citus took a direction of Distributed DB, I could have used columnar from citus.
In my point of view (as Supabase cloud client) TimescaleDB is not doing the job, the license prevents any interesting use of TimescaleDB.
https://docs.timescale.com/about/latest/timescaledb-editions/
No compression, no Continuous aggregates, no retention policy, no Actions and automation.
So by adding an alternative, i'm resolving my current issue in Supabase Cloud.
So I would be grateful if you could consider this a bit further.
Columnar is "Next generation of cstore_fdw", using latest best practices of Postgres.
This could open many use cases in analytics for cloud user who cannot use TimescaleDB
I'm open to any alternative I found hydra was more close in philosophy that citus to supabase.
A good alternative could be to use https://pgxman.com/ for extension since it's made for install extension and has hydra listed.

thanks for the links, very interesting read
I think long term we are likely to revisit column storage in addition to timescale. Before we make any decisions we'll need to do an internal review of options that includes:

features
performance
alignment with our products' direction
supportability by our tech team
supportability by our support team (we handle support for our extensions as well as the supabase platform)

I'll make sure we include hydra in that comparison when we circle back to tackle to it, but its not something we can add for right now

@olirice okay, i will keep using clickhouse until i can put back my analytics into Supabase.
Thank for considering it !


help(datepicker range): no cell/day events available when using mat-date-range-picker-actions

What are you trying to do?
I am trying to disable the apply button inside mat-date-range-picker-actions until a range is selected
What troubleshooting steps have you tried?
tried to see if any events fire on day selection so I can determine if the range is correct
Reproduction
https://stackblitz.com/edit/angular-date-range-picker-actions?file=src/app/date-range-picker-forms-example.html
Well, here is a start point. I could not find a way to disable the Apply button until both dates are selected.
Reson is the form data is not updated until Apply is clicked and I could not find any events that trigger on day selection. There are some for year and month but not day.
Environment

Angular: 12
CDK/Material: latest
Browser(s): N/A
Operating System (e.g. Windows, macOS, Ubuntu): N/A

I'm not sure that I see the point in disabling the apply button when nothing is selected, because the user can still close the popup by pressing the cancel button, clicking outside or pressing the escape key.

@crisbeto  Hello, I have a method on that button that submits the data. I don't want to submit the data until both dates are selected. U user can click apply, the picker closes and only one data is selected.

I see. We don't have a good way to do this through the template, but you can get a hold of that information by jumping through some hoops. You'll have to get a hold of the MatDateSelectionModel that is associated with the datepicker. I can think of a couple of ways of doing it:

Create a custom directive that matches the "Apply" button and inject MatDateSelectionModel in its constructor.
Use something like @ViewChild(MatDateRangePicker, {read: MatDateSelectionModel})`.

Once you have a reference to the date selection model, you can call the isComplete method to check if the full range has been selected.


Code outline does not work on remote ssh filesystem

Environment data

VS Code version: 1.30.1
Extension version (available under the Extensions sidebar): 2018.12.1
OS and version: Win10 Pro
Python version (& distribution if applicable, e.g. Anaconda): Anaconda, Python 3.6.6
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): None
Relevant/affected Python packages and their versions:

Expected behaviour
Outline view should show symbols from open Python file
Actual behaviour
Outline view shows greyed-out message "There are no editors open that can provide outline information"
Steps to reproduce:

Connect to remote filesystem using SSH protocol (e.g. using kelvin.vscode-sshfs extension)
Open any Python file
Outline panel shows text "There are no editors open that can provide outline information"

Logs
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
Starting Jedi Python language engine.

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)
I have no idea what do you mean by "running Enable...". Running how?

We are working in collaboration with the VS Code team itself on getting remote scenarios up and running. Please see issue #79.
However, your issue seems to be working on a remote filesystem while editing your local project? This would suggest to me that the support for WSL #67 (workspaces outside of the environment where VS Code and the extension are installed) would satisfy what you are looking to do.
We realize you are trying to make use of kelvin.vscode-sshfs extension to accomplish this, but our extension does not know about nor use any extensions to supply it with information about the workspace at this time.

I have no idea what do you mean by "running Enable...". Running how?

You can open the Command Pallete (ctrl+shift+p, or on Windows, f1) and type in Enable source map support for extension debugging and that will enable this feature.

Thanks for quick response. Actually I do not care much about remote projects or running Python interpreter remotely, all I do is editing files on remote filesystem. We have our own build system which I'm running from a terminal window on remote Linux server, so I only use vscode as a dumb editor running on my local Windows machine. Still it would be nice to support the same features as for the files on local file system (code outline, spell check) in this case if possible.

Closing in favour of #79

Maybe worth to mention here too that our development is multi-language, in addition to Python we have C++, JavaScript, some YAML, etc. on remote end, and I need to edit all those files. Python-only solution (e.g. running remote Python interpreter indexing Python files) won't probably help me.

Closing as this is related to remote interpreter,
Code navigation, intellisense, code outlive, etc are all related.


How many epochs does the vehicle dataset need to be trained?

Do all 600,000 training epochs in vehicle.sh need to be completed? I conduct experiment on 4 A40 and 800+hours are needed, much more than twice the 36 hours.

Sorry for this misunderstanding.
Actually, we didn't train the model 600,000 iterations. After you find there is no quality improvement, you could stop it manually.

Sorry for this misunderstanding.
Actually, we didn't train the model 600,000 iterations. After you find there is no quality improvement, you could stop it manually.

Thank you very much for your reply. How many epochs can we stop after? Roughly speaking?

Sorry for this misunderstanding.
Actually, we didn't train the model 600,000 iterations. After you find there is no quality improvement, you could stop it manually.

Thank you very much for your reply. How many epochs can we stop after? Roughly speaking?

Maybe 200 epoches for IF, and another 100 epoches for IF+IF2.
It depends on your batch_size and learning rate.


pre-commit pygrep hooks fail: Error while finding module specification for 'pre_commit.languages.pygrep'

Describe the bug
pre-commit hooks with language: pygrep work by executing [sys.executable, "-m", "pre_commit.languages.pygrep"]. This fails because sys.executable is a plain ${pkgs.python39}/bin/python3.9 binary that doesn’t have pre_commit in its environment.
/nix/store/wnrc4daqbd6v5ifqlxsj75ky8556zy0p-python3-3.9.12/bin/python3.9: Error while finding module specification for 'pre_commit.languages.pygrep' (ModuleNotFoundError: No module named 'pre_commit')
Steps To Reproduce
Steps to reproduce the behavior:
$ git clone https://github.com/python-poetry/poetry-plugin-export.git
$ cd poetry-plugin-export
$ pre-commit run -a
trim trailing whitespace.................................................Passed
fix end of files.........................................................Passed
check for merge conflicts................................................Passed
check for case conflicts.................................................Passed
check json...........................................(no files to check)Skipped
check toml...............................................................Passed
check yaml...............................................................Passed
pretty format json...................................(no files to check)Skipped
check python ast.........................................................Passed
debug statements (python)................................................Passed
check docstring is first.................................................Passed
check for not-real mock methods..........................................Failed
- hook id: python-check-mock-methods
- exit code: 1

/nix/store/wnrc4daqbd6v5ifqlxsj75ky8556zy0p-python3-3.9.12/bin/python3.9: Error while finding module specification for 'pre_commit.languages.pygrep' (ModuleNotFoundError: No module named 'pre_commit')

type annotations not comments............................................Failed
- hook id: python-use-type-annotations
- exit code: 1

/nix/store/wnrc4daqbd6v5ifqlxsj75ky8556zy0p-python3-3.9.12/bin/python3.9: Error while finding module specification for 'pre_commit.languages.pygrep' (ModuleNotFoundError: No module named 'pre_commit')

check blanket noqa.......................................................Failed
- hook id: python-check-blanket-noqa
- exit code: 1

/nix/store/wnrc4daqbd6v5ifqlxsj75ky8556zy0p-python3-3.9.12/bin/python3.9: Error while finding module specification for 'pre_commit.languages.pygrep' (ModuleNotFoundError: No module named 'pre_commit')

Strip unnecessary `# noqa`s..............................................Passed
pyupgrade................................................................Passed
isort (python)...........................................................Passed
isort (pyi)..........................................(no files to check)Skipped
black....................................................................Passed
flake8...................................................................Passed
validate pre-commit manifest.........................(no files to check)Skipped

Notify maintainers
@borisbabic
Metadata
 - system: `"x86_64-linux"`
 - host os: `Linux 5.17.7, NixOS, 22.05 (Quokka), 22.05.git.cfe8bba6dd5`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.8.1`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

A workaround is to use the pre-commit binary from (python3.withPackages (_: [ pre-commit ])) instead.

It seems the above fix is insufficient.  While pre-commit run --all works correctly, the hook installed into .git/hooks/pre-commit doesn't have the Python environment with the pygrep package.
1 winston@stargate ~/.emacs.d $ pre-commit run --all
Trim Trailing Whitespace.................................................Passed
Fix End of Files.........................................................Passed
Check Yaml...............................................................Passed
Check for added large files..............................................Passed
Ensure no custome-set-* forms are committed..............................Failed
- hook id: emacs-no-custom-set-forms
- exit code: 1

init.el:15:(custom-set-variables
init.el:16: ;; custom-set-variables was added by Custom.
init.el:24:(custom-set-faces
init.el:25: ;; custom-set-faces was added by Custom.

1 winston@stargate ~/.emacs.d $ rm .git/hooks/pre-commit
winston@stargate ~/.emacs.d $ pre-commit install
pre-commit installed at .git/hooks/pre-commit
winston@stargate ~/.emacs.d $ git commit
[WARNING] Unstaged files detected.
[INFO] Stashing unstaged files to /home/winston/.cache/pre-commit/patch1686186067-99444.
Trim Trailing Whitespace.................................................Passed
Fix End of Files.........................................................Passed
Check Yaml...............................................................Passed
Check for added large files..............................................Passed
Ensure no custome-set-* forms are committed..............................Failed
- hook id: emacs-no-custom-set-forms
- exit code: 1

/nix/store/rpri9nb8xpwwqakyrqbg8zdslkjs2hd3-python3-3.10.11/bin/python3.10: Error while finding module specification for 'pre_commit.languages.pygrep' (ModuleNotFoundError: No module named 'pre_commit')

[INFO] Restored changes from /home/winston/.cache/pre-commit/patch1686186067-99444.
1 winston@stargate ~/.emacs.d $ .git/hooks/pre-commit
[WARNING] Unstaged files detected.
[INFO] Stashing unstaged files to /home/winston/.cache/pre-commit/patch1686186082-99715.
Trim Trailing Whitespace.................................................Passed
Fix End of Files.........................................................Passed
Check Yaml...............................................................Passed
Check for added large files..............................................Passed
Ensure no custome-set-* forms are committed..............................Failed
- hook id: emacs-no-custom-set-forms
- exit code: 1

/nix/store/rpri9nb8xpwwqakyrqbg8zdslkjs2hd3-python3-3.10.11/bin/python3.10: Error while finding module specification for 'pre_commit.languages.pygrep' (ModuleNotFoundError: No module named 'pre_commit')

[INFO] Restored changes from /home/winston/.cache/pre-commit/patch1686186082-99715.

Still same problem...

Hello, referenced a workaround for this issue https://github.com/winny-/nixos-configs/commit/829b75f74e42f24a262f89bdab33af26bafe9208 .  I'll copy-paste it here to be extra clear:
nix-shell -p '(python3.withPackages (_: [ pre-commit ]))'

or add (python3.withPackages (_: [ pre-commit ])) to your systemPackages, flake, or shell.nix.

If you pull in the above mentioned (python3.withPackages (_: [ pre-commit ])) into your environment, it should work.  For best results, I recommend putting it into your flake/shell.nix or systemPackages.

Potential fix which doesn't require changing the python provided in the nix shell: https://github.com/NixOS/nixpkgs/pull/267499


Sprint 1

Decide on general image and goals of the website
start initial drafts of the main features we would like to implement
brainstorm additional features for originality

Meeting at 12:00 on Jan 31st


Whois lookup of ip

Ref: Conversation #3537 / Peter

https://twitter.com/smbelyea/status/652566398556852224

Ref: Conversation #5054 / Alex

Ref: **Conversation #4186 / **


CI Functional Test Error "workflows_del_active' and "teardown"

Seeing roughly 4% failures during CI Functional Test.
======================================================================
ERROR: Testing node DELETE:id/workflows/active
Traceback (most recent call last):
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
compatability.capture_type_error(s_func)
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
func()
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/case.py", line 350, in func
func(test_case.state.get_state())
File "/home/jenkins/workspace/Continuous-Test/Continuous-Functional/build/test/tests/api/v1_1/nodes_tests.py", line 376, in test_node_workflows_del_active
raise e
ApiException: (500)
Reason: Internal Server Error
HTTP response headers: HTTPHeaderDict({'Content-Length': '55', 'X-Powered-By': 'Express', 'Connection': 'keep-alive', 'ETag': 'W/"37-32h0Iskbe720fGrbE/H+GA"', 'Date': 'Thu, 28 Apr 2016 06:47:20 GMT', 'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json; charset=utf-8'})
HTTP response body: {"message":"Failed to cancel 5721b1f426815a2f8a36d1b9"}
-------------------- >> begin captured logging << --------------------
urllib3.connectionpool: WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', BadStatusLine("''",))': /api/1.1/nodes
urllib3.connectionpool: INFO: Starting new HTTP connection (11): localhost
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: restore test environment
Traceback (most recent call last):
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
compatability.capture_type_error(s_func)
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
func()
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/case.py", line 350, in func
func(test_case.state.get_state())
File "/home/jenkins/workspace/Continuous-Test/Continuous-Functional/build/test/tests/api/redfish_1_0/session_service_tests.py", line 38, in teardown
Auth.disable()
File "/home/jenkins/workspace/Continuous-Test/Continuous-Functional/build/test/modules/redfish_auth.py", line 67, in disable
del config.api_client.default_headers['X-Auth-Token']
KeyError: 'X-Auth-Token'
-------------------- >> begin captured logging << --------------------
modules.redfish_auth: INFO: auth already disabled.
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: Test GET:/api/2.0/pollers/:identifier/data
Traceback (most recent call last):
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
compatability.capture_type_error(s_func)
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
func()
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/case.py", line 350, in func
func(test_case.state.get_state())
File "/home/jenkins/workspace/Continuous-Test/Continuous-Functional/build/test/tests/api/v2_0/pollers_tests.py", line 157, in pollers_data_get
assert_false(poller.get('lastFinished', False))
AssertionError: Condition was True.

Closing this issue.  As of 5/18/16, frequency is 0% and no longer seeing these failures in CI.


Instructions refer to a zip file - does it exist?

The instructions (both method 1 and method 2) refer to a zip file: "Download the .zip file...". As far as I can tell, the repository does not contain any zip files.

Does download the zip file actually mean to clone repository? I see now that there is an option to download the repository as a zip file. Maybe this is obvious but I don't want to guess with a script like this that needs to be run as administrator.

So, clone or download -> download .zip and then:

Hello, I am not familiar to this, but I somehow was able to follow [stanoychev]'s example above, and I wanted to say thank you. Because this has helped me out immensely.
Okey, you basically download the Zip file into the chosen folder. I had chosen download folder.
Then you right click over the file, and it'll have the option to "Extract all" option.
Click that option. It'll ask you to choose a place to extract the file to, I had chosen the same folder.
However, after this step is a bit tricky because I can't seem to find the administrator option to allow to run this program. But instead, I right clicked and it showed run the three programs that have debloater in their names and ran them under PowerShell option. I clicked onto this option and ran the program.
Unfortunately, I am coming across lots of issues with mine for some reason.  I hope this helps. :)
I am running this on Windows 10 and wouldn't know if this would work on apple products.
I ended up getting this
Execution Policy Change
The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose
you to the security risks described in the about_Execution_Policies help topic at
https:/go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): Y
Name           Used (GB)     Free (GB) Provider      Root                                               CurrentLocation

HKCR                                   Registry      HKEY_CLASSES_ROOT
Initiating Sysprep
Removing bloatware apps.
Get-AppxPackage : Access is denied.
Access is denied.
At C:\Users*****\Downloads\Windows10Debloater-master\Windows10Debloater-master\Windows10SysPrepDebloater.ps1:42 char:5

Get-AppxPackage -AllUsers | Where-Object {$_.Name -NotMatch $Whit ...

~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : NotSpecified: (:) [Get-AppxPackage], UnauthorizedAccessException
FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.Windows.Appx.PackageManager.Commands.GetApp
xPackageCommand

Get-AppxPackage : Access is denied.
Access is denied.
At C:\Users*****\Downloads\Windows10Debloater-master\Windows10Debloater-master\Windows10SysPrepDebloater.ps1:44 char:5

Get-AppxPackage -AllUsers | Where-Object {$_.Name -NotMatch $Whit ...

~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : NotSpecified: (:) [Get-AppxPackage], UnauthorizedAccessException
FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.Windows.Appx.PackageManager.Commands.GetApp
xPackageCommand

Get-AppxProvisionedPackage : The requested operation requires elevation.
At C:\Users*****\Downloads\Windows10Debloater-master\Windows10Debloater-master\Windows10SysPrepDebloater.ps1:45
char:20

$AppxRemoval = Get-AppxProvisionedPackage -Online | Where-Object  ...

               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : NotSpecified: (:) [Get-AppxProvisionedPackage], COMException
FullyQualifiedErrorId : Microsoft.Dism.Commands.GetAppxProvisionedPackageCommand

Removing leftover bloatware registry keys.
Removing HKCR:\Extensions\ContractId\Windows.BackgroundTasks\PackageId\46928bounde.EclipseManager_<IP_ADDRESS>_neutral__a5h4egax66k6y from registry
Removing HKCR:\Extensions\ContractId\Windows.BackgroundTasks\PackageId\ActiproSoftwareLLC.562882FEEB491_<IP_ADDRESS>_neutral__24pqs290vpjk0 from registry
Removing HKCR:\Extensions\ContractId\Windows.BackgroundTasks\PackageId\Microsoft.MicrosoftOfficeHub_17.7909.7600.0_x64__8wekyb3d8bbwe from registry

To add this further, I was able to access the administrator area, one of these 3 programs gave me the option to run them as the administrator, hence the last picture. I was able to reach to this stage.
However, I am now facing this popup asking
Would you like to remove everything that was preinstalled on your Windows Machine? Select Yes to remove everything, or no to remove the apps via BlackList?
I am going to choose No and see if I can select some apps and have them removed.

To add this further, I was able to access the administrator area, one of these 3 programs gave me the option to run them as the administrator, hence the last picture. I was able to reach to this stage.
However, I am now facing this popup asking
Would you like to remove everything that was preinstalled on your Windows Machine? Select Yes to remove everything, or no to remove the apps via BlackList?
I am going to choose No and see if I can select some apps and have them removed.

I have selected No but I can't see the last pop up box that is shown in the example picture where you can choose which apps to remove.

Hello, I am not familiar to this, but I somehow was able to follow [stanoychev]'s example above, and I wanted to say thank you. Because this has helped me out immensely.
Okey, you basically download the Zip file into the chosen folder. I had chosen download folder.
Then you right click over the file, and it'll have the option to "Extract all" option.
Click that option. It'll ask you to choose a place to extract the file to, I had chosen the same folder.
However, after this step is a bit tricky because I can't seem to find the administrator option to allow to run this program. But instead, I right clicked and it showed run the three programs that have debloater in their names and ran them under PowerShell option. I clicked onto this option and ran the program.
Unfortunately, I am coming across lots of issues with mine for some reason. I hope this helps. :)
I am running this on Windows 10 and wouldn't know if this would work on apple products.


/author/:id API Call

Hey guys, an /author/:id route in your API would be great so we can view all your cool author profiles.

@derekdowling I think this already exists


Fix invalid option no-ri-no-rdoc

Fix issue someone may meet:

ERROR: While executing gem ... (OptionParser::InvalidOption) invalid option: --no-ri

it works for me.

The heroku/ruby buildpack now supports bundler 2, please switch over to receive regular updates and support from Heroku.


Update Scylla data direcotry

@syuu1228 do we need to update
https://github.com/scylladb/cassandra-test-and-deploy/blob/master/roles/scylla-config/vars/main.yaml#L4
to match
https://github.com/scylladb/scylla/commit/f0a6c33b6d1f24862fa461bb01d004c130a792e8
or will both works for now?

Fix by https://github.com/scylladb/cassandra-test-and-deploy/pull/52


Fix for api-client-helpers.js file

Please implement on lines 33-40. Didn't have time to put something more official together but will fix the error that is currently getting thrown.
I've added the content-type here Amazon requires.
const { accessToken, credentials, region, roleArn } = exports.ApiClientHelpers.validateRegion(parameters);
			axiosInstance = axios_1.default.create({
				headers: {
					"user-agent": constants_1.USER_AGENT,
					"x-amz-access-token": accessToken !== null && accessToken !== void 0 ? accessToken : "",
					"Content-Type": "application/json; charset=utf-8",
				},
			});

but will fix the error that is currently getting thrown.

What error is that?
Note that all of the code is auto-generated from OpenAPI specs.

I was getting a content type error so I manually edited this file:

Could you please share the entire error? I am curious to see what it was. Maybe we do need to fix something.
Btw, unless you use a patching mechanism, e.g. patch-packge or pnpm's built-in feature, then the next time you install the package(s), your manual change will be reset.


feat: add terminal color in onedark

I chose cyan because it didn't have a unique color when in terminal mode.

LGTM. Thanks again :)


Regression in object browser Volto 18?

The object browser for main (Volto 18) seems to have a bug. Except for the single item select, multiple select and other storybooks show the following error for the object browser widget. In a project where we try multiple select we see similar issues:
https://6.docs.plone.org/storybook/?path=/story/edit-widgets-object-browser--placeholder

@fredvd I couldn't reproduce it on main using the related items field.
It's not immediately obvious to me what causes the error. It looks like it would happen if the object browser nav component is passed a value for selected which is truthy but not an Array.


Comapion does not send short (single?) commands

I'm sure about this but it seems that the Companion or the DCC-EX module doesn't send short commands like <#> or <=>. I have checked this in parallel with the EX-Installer Devoce Monitor and I cannot see any response or command comming from the Companion. Other commands like  are running.

OK, finally I also send the commands <1> and <0> via Companion and it really switches ON and OFF the track power. Also I can see everything in the Companion LOG including the responses from the Command Station. This means all commands are send from Companion but single charakter commands and their resonses like <#> or <=> are not shown in the Device Monitor.
That means this will be a problem in the DCC-EX Installer Device Monitor I think. So I will close this issue here.
Thanks a lot for your help!!!


azdevify chat sample

Azdevify this chat sample.
Finished:
Create the required resources with /infra, and the resources were successfully created. Run azd deploy, the apps can be deployed normally.
Questions:
Use containerapp to deploy, it cannot achieve complete interaction.
Besides, we have tried use appservice to deploy apps, but the app startup failed.
The relevant code is here: https://github.com/v-jiaodi/chat-with-your-data-solution-accelerator/tree/convert-azd-with-appservice
@jongio , @ruoccofabrizio and @gmndrg Do you have any ideas on these two issues?

Can you include information about why it fails to start?  What are the symptoms?

@jongio We are currently investigating whether this chat sample uses appservice or containerapp, and we are currently experiencing some issues with both.

For appservice: We used js appservice host when deploying the frontend module. The app startup failed, because it cannot match the ts module in the code. Currently, we use ts staticwebapp host and find that it can run normally. We will try to deploy other services as appservice later.

For containerapp: Currently, this PR uses container app. The app can be deployed normally, but there is no data on front-end and back-end interactions.

Which one do you think is appropriate? At present, after investigation, we think that appservice is more suitable and are trying to modify it.
Regarding the comments on this PRs, if we decide to use the containerapp, we will resolve these comments ASAP .

Which one do you think is appropriate?

Please follow what is here: https://github.com/jongio/chat-with-your-data-solution-accelerator/blob/main/infrastructure/deployment.bicep

@jongio Sorry, we no longer use this PR, and we will close this PR. We have created a new PR https://github.com/jongio/chat-with-your-data-solution-accelerator/pull/2 to replace it, and PR https://github.com/jongio/chat-with-your-data-solution-accelerator/pull/2 is ready, please review.


Exporter exports wrong dependencies, unlike Installer, do.

[x] I am on the latest Poetry version.
[x] I have searched the issues of this repo and believe that this is not a duplicate.

OS version and name: 10.15.2 macOS
Poetry version: 1.0.2
Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/linw1995/3132491fd3adabccc4adaf48ab51544a#file-pyproject-toml

Issue

Execute
cat pyproject.toml

[tool.poetry]
name = "tmp"
version = "0.1.0"
description = ""
authors = ["Your Name<EMAIL_ADDRESS>
[tool.poetry.dependencies]
python = "^3.8"
pytest-cov = {version = "^2.8.1", optional = true}

[tool.poetry.dev-dependencies]
coverage = "^5.0.3"

[tool.poetry.extras]
dev = ["pytest-cov"]

[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"

Execute
poetry show --tree

coverage 5.0.3 Code coverage measurement for Python
pytest-cov 2.8.1 Pytest plugin for measuring coverage.
├── coverage >=4.4
└── pytest >=3.6
    ├── atomicwrites >=1.0
    ├── attrs >=17.4.0
    ├── colorama *
    ├── more-itertools >=4.0.0
    ├── packaging *
    │   ├── pyparsing >=2.0.2
    │   └── six *
    ├── pluggy >=0.12,<1.0
    ├── py >=1.5.0
    └── wcwidth *

In this small demo, the only dependency in the section[tool.poetry.dependencies] is pytest-cov, and it's optional. After adding coverage (that is the sub dependency of pytest-cov) in the section [tool.poetry.dev-dependencies], I execute poetry export without --dev option should output nothing but coverage==5.0.3.
$ poetry export -f requirements.txt --without-hashes
coverage==5.0.3

export produces empty output today, this is fixed.

I believe an issue I have with dev dependency moto and optional main dependency boto3 leads to the same problem as described here.
Given the state of this gist: https://gist.github.com/kbakk/bd0ab6720d24bcefa65fda09eaa7e93a/c4d4b1ef8917d3d1ab6c637d7b4764e16a6fb61e
pyproject.toml
[tool.poetry]
name = "ppe-42"
version = "0.1.0"
description = ""
authors = ["Kristoffer Bakkejord<EMAIL_ADDRESS>readme = "README.md"

[tool.poetry.dependencies]
python = "^3.10"
boto3 = {version = "^1.26.7", optional = true}

[tool.poetry.extras]
b = ["boto3"]

[tool.poetry.group.dev.dependencies]
moto = "^4.0.9"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

Current state of boto3:
$ grep -B1 -A5 'name = "boto3"' poetry.lock
[[package]]
name = "boto3"
version = "1.26.7"
description = "The AWS SDK for Python"
category = "main"
optional = false
python-versions = ">= 3.7"

Then run poetry remove moto ... boto3 will become optional:
grep -B1 -A5 'name = "boto3"' poetry.lock
[[package]]
name = "boto3"
version = "1.26.7"
description = "The AWS SDK for Python"
category = "main"
optional = true
python-versions = ">= 3.7"

It seems to be this code that's responsible for including/excluding boto3:
https://github.com/python-poetry/poetry-plugin-export/blob/679e6a71d6cc7f3bf3f9d801c5b66bb8f13bd68b/src/poetry_plugin_export/walker.py#L95-L99
However, the evaluation becomes (when both boto3 and moto are in the lock file):
>>> extra_package_names is not None
True
>>> package.optional
False
>>> package.name not in extra_package_names
True
>>> extra_package_names is not None and ( package.optional and package.name not in extra_package_names)
False

So it misses the continue statement.

this issue is fixed and should have been closed, if you have another then please raise a new one

but not before checking whether it's a duplicate of https://github.com/python-poetry/poetry-plugin-export/issues/34#issuecomment-1140243586


Kind of random pauses? (More information welcome)

I get them some times when waking up. Game pauses but shows no pause screen. Pressing pause button resumed the game normally.
Someone else got it while getting on the elevator, but couldn't get out of it.

Have not seen this in a long time so I'll close it.


flutter analyze needs tests

Right now, the analyze command is super hard to test because all dependencies are hard-coded and not injected.
Tests should include a test to catch the fix in https://github.com/flutter/flutter/pull/7828

flutter analyze does indeed have tests now, unit and integration


Inconsistency in yii\web\Session setFlash and addFlash

What steps will reproduce the problem?
Different behavior on yii\web\Session for setFlash() & andFlash() when empty flashes.
In setFlash:
 $_SESSION[$key] = $value;
In addFlash there is surplus [ ]:
if (empty($_SESSION[$key])) {
            $_SESSION[$key] = [$value];
 }

What is the expected result?
Should behave the same!

Q
A

Yii version
<IP_ADDRESS>

PHP version
php 5.6

Operating system
Linux/GNU Debian

andFlash supports multiple flash messages for the same key, setFlash only supports one message per key.


Fix positional argument deprecations with ERB.new

Extracted from #23225
Drop second argument as safe_level was removed.
Change third argument for trim_mode to keyword argument.
Oops, this PR doesn't need cross repo.  😅

@miq-bot cross-repo-tests /all

@jrafanie I thought we couldn't do this PR cause it doesn't work on Ruby 3.0 (I'm surprised tests are passing, which tells me we're not testing this path?)  This is similar to https://github.com/ManageIQ/manageiq-appliance_console/pull/267

@jrafanie I thought we couldn't do this PR cause it doesn't work on Ruby 3.0 (I'm surprised tests are passing, which tells me we're not testing this path?) This is similar to ManageIQ/manageiq-appliance_console#267

hmm, I thought it sounded familiar.  I'll have to take a look.  The deprecation was certainly raised by the test suite as that's how I found it.  Perhaps the test is exercising the code but somehow still passing.  Let me see if I can see what erb is being used in the passing 3.0 tests.

The Gemfile.lock.release on radjabov doesn't show erb directly, which tells me it's the default gem which is 2.2.0, which doesn't have the keyword args.

Actually, radjabov is 3.1, I think, so maybe it doesn't matter except for quinteros?


[FEAT]: Create a billboard on Inkplate 5

Description
Let us try loading some sample images contributed by @KHDraged
Additional Information
Once the OpenCV Live! is broadcast, publish a writeup of the installation steps and share it with the kind souls at @solderedElectronics who provided us support

FYI @pitdagosti

Testing sample images shared by @KHDraged and currently stored in https://github.com/B-AROL-O/FREISA/tree/gmacario-test-KHDraged-contribution/assets/inkplate5-images

Here is the result:


Help: the code can not generate a curve

Hi,
Thanks for the amazing project. Based on this, I code up a mini-example to compute 4D trajectory from (0,0,0,0) to (3,3,3,3). However, when I output the sample points along this trajectory, it is a straight line. If I understand correctly, the trajectory should be a curve.
I attached my code and the sample points below. Please point out the my mistake. Thank you very much.
Eigen::VectorXd start_pos(4);
start_pos << 0, 0, 0, 0;
Eigen::VectorXd end_pos(4);
end_pos << 3, 3, 3, 3;
const int dimension = start_pos.size();
mav_trajectory_generation::Vertex::Vector vertices;
const int derivative_to_optimize = mav_trajectory_generation::derivative_order::SNAP;
mav_trajectory_generation::Vertex start(dimension), end(dimension);
start.makeStartOrEnd(start_pos, derivative_to_optimize);
vertices.push_back(start);
end.makeStartOrEnd(end_pos, derivative_to_optimize);
vertices.push_back(end);
const double v_max = 2.0;
const double a_max = 2.0;
std::vector segment_times;
segment_times = estimateSegmentTimes(vertices, v_max, a_max);
mav_trajectory_generation::NonlinearOptimizationParameters parameters;
parameters.max_iterations = 1000;
parameters.f_rel = 0.05;
parameters.x_rel = 0.1;
parameters.time_penalty = 500.0;
parameters.initial_stepsize_rel = 0.1;
parameters.inequality_constraint_tolerance = 0.1;
const int N = 10;
mav_trajectory_generation::PolynomialOptimizationNonLinear opt(dimension, parameters);
opt.setupFromVertices(vertices, segment_times, derivative_to_optimize);
opt.addMaximumMagnitudeConstraint(mav_trajectory_generation::derivative_order::VELOCITY, v_max);
opt.addMaximumMagnitudeConstraint(mav_trajectory_generation::derivative_order::ACCELERATION, a_max);
opt.optimize();
mav_trajectory_generation::Trajectory trajectory;
opt.getTrajectory(&trajectory);
trajectory.scaleSegmentTimesToMeetConstraints(v_max, a_max);
int derivative_order = mav_trajectory_generation::derivative_order::POSITION;
double edgeTraversalTime = trajectory.getMaxTime();
int sampleNum = ceil(edgeTraversalTime / 0.5);
if (sampleNum == 0) sampleNum = 1;
for (int sample_id = 0; sample_id <= sampleNum; sample_id++)
{
double traversalTime = edgeTraversalTime * sample_id / sampleNum;
if (traversalTime > edgeTraversalTime) traversalTime = edgeTraversalTime;
Eigen::VectorXd sample = trajectory.evaluate(traversalTime, derivative_order);
std::cout<<"sample(x,y,z,yaw): "<<sample(0)<<", "<<sample(1)<<", "<<sample(2)<<", "<<sample(3)<<endl;
}
The sample points are shown below:
sample(x,y,z,yaw): 0, 0, 0, 0
sample(x,y,z,yaw): 0.000396279, 0.000396279, 0.000396279, 0.000396279
sample(x,y,z,yaw): 0.00997142, 0.00997142, 0.00997142, 0.00997142
sample(x,y,z,yaw): 0.0587443, 0.0587443, 0.0587443, 0.0587443
sample(x,y,z,yaw): 0.189248, 0.189248, 0.189248, 0.189248
sample(x,y,z,yaw): 0.434537, 0.434537, 0.434537, 0.434537
sample(x,y,z,yaw): 0.799703, 0.799703, 0.799703, 0.799703
sample(x,y,z,yaw): 1.25536, 1.25536, 1.25536, 1.25536
sample(x,y,z,yaw): 1.74464, 1.74464, 1.74464, 1.74464
sample(x,y,z,yaw): 2.2003, 2.2003, 2.2003, 2.2003
sample(x,y,z,yaw): 2.56546, 2.56546, 2.56546, 2.56546
sample(x,y,z,yaw): 2.81075, 2.81075, 2.81075, 2.81075
sample(x,y,z,yaw): 2.94126, 2.94126, 2.94126, 2.94126
sample(x,y,z,yaw): 2.99003, 2.99003, 2.99003, 2.99003
sample(x,y,z,yaw): 2.9996, 2.9996, 2.9996, 2.9996
sample(x,y,z,yaw): 3, 3, 3, 3

Hey, why do you think that you should get a curve? The simplest trajectory connecting two waypoints (without specifying. other constraints like higher derivatives at the waypoints) lies on a line.

Hey, why do you think that you should get a curve? The simplest trajectory connecting two waypoints (without specifying. other constraints like higher derivatives at the waypoints) lies on a line.

Hi, thanks for the reply. I understand now. I have several questions:
In the sample points of the 6D trajectory from (2,0,0,0,0,0) to (4,0,0,0,0,0), the pitch is always zero.
Q1. Based on my understanding, if the quadcopter moves from x=2 to x=4, its front-end should point downward a little bit (pitch angle is negative) and then input thruster force to move forward. Is it because this libary does not simulate the actual orientation of the quadcopter when tracking the trajectory?
Q2. To get the actual orientation, I need 1) trajectory tracker (e.g., MPC) takes the derired 6D trajectory and outputs velocity command, and 2) quadcopter simulation takes velocity command and computes force and position of each thruster. Is that right?


[Release] remove prerelease step that is no longer being used

Summary
We don't seem to be using this step for our "prereleases". The current workflow
is to make a tag with -dev, like 0.4.9-dev.
How was it tested?
didn't test

Current dependencies on/for this PR:

main

PR #979   👈

This comment was auto-generated by Graphite.

discussing internally, will assign reviewers when ready

Is this superseded by Mike's weekly release PR?


To what extent do we want to implement IIIF?

#337 started this discussion during the 2016 MVP sprint, but now that we have an IIIF image server and viewer, maybe we can think about compliance with other aspect of the spec. For example, what is our compliance with the Image API? Do we care at all about implementing the Presentation API?
I am not suggesting that we provide compliance with the spec without viable use cases. If anyone has any use cases fuller IIIF support will help meet, let's hear them.

@jonathangreen suspects that the Cantaloupe image server endpoints provides the Image API, but that we'd need to do some work to implement the Presentation API.

I've added IIIF to the 1.1.0 documentation sprint list of topics and signed up as documenter.
Also, once we can point to this documentation, we should add Islandora to the IIIF Awesome list at https://github.com/IIIF/awesome-iiif/blob/master/implementations.md.

I'd like to take advantage of IIF's ability to superimpose images (example color image, the infra-red and the X-ray of the painting).

http://merovingio.c2rmf.cnrs.fr/iipimage/showcase/StJohnTheBaptist/

@DonRichards exellent example. Digging around that example, it appears that it uses the IIPImage server (https://iipimage.sourceforge.io), whose demos page (https://iipimage.sourceforge.io/demo/) lists OpenSeadragon as a compatible viewer. However, I'm not sure which feature of OpenSeadragon could be used for this but the overlays feature (https://openseadragon.github.io/examples/ui-overlays/) might be able to do this sort of thing. Closest thing I can find for Mirador is https://github.com/ProjectMirador/mirador/issues/699, which suggests it can't yet support superimposition.
IIPImage is open source.

Would be useful to see if what IIPImage is providing to make that example work is also supported by Cantaloupe.

I'm not sure what you guys are seeing, when I choose X-Ray and move the slider the image does not change for me. What should I be seeing?
Regardless, Cantaloupe does support overlays. https://cantaloupe-project.github.io/manual/4.1/overlays.html

@whikloj It looks like it's broken. It was working when I commented. I sent them a comment letting them know it isn't working.


unable to start selenoid on mac

Hi  Team
I am unable to start up the selenoid service. Could please help by fixing this.
Getting error as "IMAGE MAY HAVE POOR PERFORMANCE, OR FAIL, IF RUN VIA EMULATION"

@maheshsamudrala241 we currently do not support Mac M1.

Could please let us know by when it will be available

@maheshsamudrala241 Selenoid binaries and Docker images for M1 are available in latest release. Browser image for Chrome can be built from these sources: https://github.com/aerokube/images/tree/master/static/chromium

@vania-pooh I downloaded latest linux binary (1.8.1) but when I try to execute ./cm selenoid start --vnc, I get error on Mac M1.

FYI, I downloaded the binary using wget -o cm https://github.com/aerokube/cm/releases/download/1.8.1/cm_linux_amd64

@amit-chaudhary4 obviously for M1 binary architecture should be arm64. This was fixed in https://github.com/aerokube/cm/pull/316, but not yet released.

could please lets us know when it will be released

@vania-pooh  Hello, I have the same error when trying to run the aerokube image on ARM architectures.
Is there a version where this is fixed? thanks! 😄

@cbasdev not yet fixed.

@vania-pooh Any idea when we can expect ARM?

@mjevtovic ARM binaries of Selenoid are already attached to latest releases. However, we don't have ARM browser images yet. You can build Chromium image using this source code: https://github.com/aerokube/images/tree/master/static/chromium

@vania-pooh thanks for sharing.
To use selenoid vnc on arm64_linux
You already shared sskorol/selenoid_chromium_vnc:100.0 this image for running on arm. The problem is CM executable file for arm.
here is the cm distributions but I cant find linux_arm64  or how can I execute with extracted zip file. you call cm but inside of zip there is no cm file.
https://github.com/aerokube/cm/releases/tag/1.8.2

@kemalgoekhan it's there.


Add a link back to your client docs

The GoDoc is great for API documentation, but sometimes users just want to be able to see what it looks like in action. You actually have a great example of this on your website, but it's not documented anywhere in the repo :smile:

Thanks. :)

+1 for HTTPS
+1 for excellent Markdown
Thanks @sethvargo!


Fixes to nicolet. Added seeg to raw.plot.

Related to discussion at https://github.com/mne-tools/mne-python/pull/2676.
Check if this is how you want it. Now nicolet reader has a mandatory field for setting channel type (accepts eeg and seeg). For eog, emg and ecg there is 'auto' option which tries to guess these channels.
Also, raw.plot now accepts seeg channels.

looks good.
should it be changed too in other readers?

Can you update tests?

travis is not happy

@jaeilepp ready for merge from your end?

closing favor of https://github.com/mne-tools/mne-python/pull/2676
Thanks @jaeilepp for helping out :)

It would be better to merge this PR instead. That way we don't have to re-review/ignore his changes as part of your PR.

Although I guess this one is only +58/-44, and somewhat related to your PR so it isn't so bad.

okay good ;) That was my reasoning too ...


Four new sounds

If you made a script which randomized which of these 4 sounds to play, when you hit a cauldron, our wizards will have a blast.
Party pops!

Could you send a zip instead?


appWindow.show doesn't bring focus to window

Is your feature request related to a problem? Please describe.
Calling win.show() in the frontend does not bring the window (or at least not the app) to focus
Describe the solution you'd like
Electron handles this by having win.show() and win.showInactive(). I would personally prefer win.show(focus: true)

what is your OS info ?

macOS 10.14.6

On linux: we can use present_with_time() https://gtk-rs.org/docs/gtk/trait.GtkWindowExt.html#tymethod.present_with_time
On windows: there is a lot of functions to try and maybe combine them SetForegroundWindow, SetActiveWindow and SetFocus.
On Macos: google search reveals this [NSWindow makeKeyAndOrderFront: nil]; https://discourse.libcinder.org/t/how-to-bring-a-window-to-foreground-and-or-have-focus/1176/4

We should check if it’s related to https://github.com/tauri-apps/wry/issues/184

Closed by #220

@wusyong What's the intended solution in #220? Assuming it's supposed to make appWindow.show() focus the window, it doesn't seem to be doing it

We should expose focus to the Window. When window is already open, but hidden behind other windows, calling focus should bring the window at the top.


OpenData and minor fixes.

Hi,
I added a link to OpenDatasets and made some minor typo fixes.
Thanks!

Hey @svaksha thank you for your pull request. I do not agree about the changes to "typos." As for the link, I do not think we need another dataset link as we already link to Awesome Public Datasets. That list would be a better place to add more dataset links.
Thanks again.


Made install script hands-off, more dynamic to handle later releases.

The current install script requires the user to download the DLL manually.
This update will check if the module is installed. If it's not, it will go through the install process and also checks for if the DLL is already downloaded.

If it turns out that @frgnca is no longer maintaining the project, it'd be awesome if you continued it. Integrating #25 and #30 would be good too.

Yeah I could really use this with SteamVR - please pick it up 🙏

Hi @nicballarini, sorry for the late reply.

The current install script requires the user to download the DLL manually.

Since it is available and will be updated from the PowerShell Gallery, I actually intended to replace the installation section with a single command like so
Install-Module -Name AudioDeviceCmdlets

I hope you also think this will help simplify the installation process the most.

@ImportTaste

If it turns out that @frgnca is no longer maintaining the project

I do not intend to abandon the project, but I do admit having some difficulty finding the time to work on it. My goal would be to add support for enabling/disabling AudioDevice first, and then add mixer support (volume control per app).

Hi @nicballarini, sorry for the late reply.

The current install script requires the user to download the DLL manually.

Since it is available and will be updated from the PowerShell Gallery, I actually intended to replace the installation section with a single command like so (see pull request #45)
Install-Module -Name AudioDeviceCmdlets

I hope you also think this will help simplify the installation process the most.

Oh, that's awesome, I was not aware. Obviously much easier, thanks!

Yeah I could really use this with SteamVR - please pick it up 🙏

If you weren't aware SteamVR has audio switching built-in with the ability to choose what audio in/outs you want to use while in SteamVR and when you exit.

@ImportTaste

If it turns out that @frgnca is no longer maintaining the project

I do not intend to abandon the project, but I do admit having some difficulty finding the time to work on it. My goal would be to add support for communication AudioDevice and also enabling/disabling AudioDevice first, and then add mixer support (volume control per app).

This has been quite useful for me, I wouldn't mind trying to help, though now sure how well I'd do. Most of my experience is with Powershell & Python.

@frgnca That's good to hear. Could you possibly upload a dev version to Powershell Gallery that includes the other PRs? I'm particularly needing the -ShowDisabled feature.

see pull request #45


[R] Failure to install from source when cmake is found but is too old

Describe the bug, including details regarding any error messages, version, and platform.
Hi,
Attempting to install "arrow" on R v4.4 produces this error:

install.packages('arrow')
[...]

installing source package ‘arrow’ ...
** package ‘arrow’ successfully unpacked and MD5 sums checked
** using staged installation
*** pkg-config found.
*** Found local C++ source: 'tools/cpp'
*** Building libarrow from source
For build options and troubleshooting, see the install guide:
https://arrow.apache.org/docs/r/articles/install.html
**** Not using cmake found at /usr/bin/cmake
Error in .make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version) :
invalid non-character version specification 'x' (type: double)
Calls: build_libarrow ... as.numeric_version -> numeric_version -> .make_numeric_version
Execution halted
[...]

The failure seems to occur in r/tools/nixlibs.R, in find_cmake,  at line 718: https://github.com/apache/arrow/blob/1f2479908323daff3b08d1d585517239cae637d2/r/tools/nixlibs.R#L718
which should rather be:
    if (found_version > "0") {

I hope this helps.
Razvan
Component(s)
R

Thank you. I've revised the title of the issue to clarify what's failing. Would you be interested in making a PR to fix this? I believe you've identified exactly the issue.
A workaround, if you still need it, would be to upgrade cmake on your system, or download a newer version and set the environment variable CMAKE=/path/to/your/downloaded/cmake