Confine snap

This PR confines the OTBR snap by adding the necessary interfaces to each app:
otbr-setup requires:

network,  network-bind, network-control and firewall-control plugs to set up the network and firewall.
system-observe and system-config-files plugs to access system information and config files in order to set up iproute (/etc/sysctl.* and /etc/iproute2).

otbr-agent requires:

network,  network-bind, `network-control plugs to set up the network.
avahi-observe and  avahi-control plugs to allow DNS-SD-based discovery.
bluetooth-control and bluez plugs for device discovery over Bluetooth Low Energy (BLE).
raw-usb to discover physically connected RCP.
system-runtime-files to access system files (/run/openthread-wpan0.*) during runtime.

otbr-web requires:

network,  network-bind plugs to access and operate the network.
system-runtime-files plug to access system files (/run/openthread-wpan0.*) during runtime.

ot-ctl requires:

system-runtime-files plug  to access system files (/run/openthread-wpan0.*) during runtime.

This PR also removes sudo from scripts during build time, to prevent file permission issues during runtime.
Testing
Build and setup:
snapcraft clean && snapcraft -v --debug

sudo snap remove --purge openthread-border-router
sudo snap install ./openthread-border-router_0.1_amd64.snap --dangerous

# set this if your infra interface is different from the default wlp3s0
sudo snap set openthread-border-router infra-if="eno1"

sudo snap connect openthread-border-router:system-etc-run-files
sudo snap connect openthread-border-router:avahi-control
sudo snap connect openthread-border-router:avahi-observe
sudo snap connect openthread-border-router:firewall-control
sudo snap connect openthread-border-router:raw-usb
sudo snap connect openthread-border-router:network-control
sudo snap connect openthread-border-router:system-observe
sudo snap connect openthread-border-router:bluetooth-control
sudo snap connect openthread-border-router:bluez

sudo snap connections openthread-border-router

Start :
sudo snap start openthread-border-router

Following the steps here to form a Thread Network:

Connect the RCP dongle (A) to a USB port
Use the CTL tool to initialize the Thread network:

sudo openthread-border-router.ot-ctl
> dataset init new
Done
> dataset commit active
Done
> ifconfig up
Done
> thread start
Done

Could you please review this? @farshidtz

Did another test, this time only using the GUI. I could form a network and see the status without an issue.

The testing of commissioning a Thread device into a Thread network, formed by this PR's confined OTBR snap, has encountered several issues.
First, the nRF52840 dongle stores pairing information from previous connections and disable BLE advertisement upon the first successful pairing. This makes the second pairing test impossible. Moreover, after a factory reset (pressing the reset button), the pairing info and disabled BLE advertisement are sometimes left behind, indicating that the factory reset might not be cleaning enough.
Another difficulty is when attempting to commission the Thread device into the Thread network using chip-tool with OTBR snap. The commissioning process can be performed successfully once with the unconfined OTBR snap, but never succeeds when using confined OTBR snap from this PR. This means that some interfaces might be missing for the confined OTBR snap.
Pressing the factory reset button on the nRF52840 dongle sometimes results in a clean factory reset, while other times it does not. This inconsistency makes it challenging to do efficient testing now. So it is best to hold this PR until the testing of commissioning the Thread device into the Thread network passes successfully.

A factory reset of the dongle appears to clear the storage (but not the flash memory). Once done, the application is placed into discovery mode.
To do a factory reset, start the application by opening a serial console with minisim, then hold the large white button for more than 3 seconds.
You would see the following in the logs:
...
[00:00:00.370,941] <inf> chip: [SVR]Fabric already commissioned. Disabling BLE advertisement
...
[00:00:00.634,582] <inf> app: Factory Reset Triggered. Release button within 3000ms to cancel.
...
[00:00:00.971,984] <inf> chip: [DL]CHIP task running
[00:00:00.974,884] <inf> chip: [DL]CHIPoBLE advertising started
[00:00:00.976,684] <inf> chip: [DL]NFC Tag emulation started
[00:00:30.975,219] <inf> chip: [DL]CHIPoBLE advertising mode changed to slow

Discover from another device:
$ bluetoothctl scan le | grep Matter
[NEW] Device CA:5E:86:D1:47:92 MatterLight


IAM Permission list

Would be nice to have a way to get a list of the needed IAM Permissions.

Adding @jisham318 to keep him posted.


High CPU load on MacOS

VSCode Version: Code - Insiders 1.14.0-insider (5df9a157abe3243af639f8c1b9503f1b5e7a4a95, 2017-07-04T16:02:32.957Z)
OS Version: Darwin x64 16.5.0
Extensions: none
(1 theme extensions excluded)

Steps to Reproduce:

Open a git repo
Edit Text

This was happening to me with the non-insider build as well. CPU usage is consistently over 70% and spikes to as high as 200%,  as reported by Activity Manager. A sample of the offending process is below.
Reproduces without extensions: Yes
Sample of Code - Insiders Helper.txt

This issue was filed against the latest regular release already by another user. The suggestion was made to try the latest insiders build, so I'm re-filing against that. It is not fixed.
Cheers,

In Activity Manager, can you see which process exactly is causing the CPU spikes?

@hatrabbit  @joaomoreno   me too, But I found a clue.  First, i have disabled all extensions, then open the file "webpack.config.js" that content is empty,  finally CPU load 100% util forever...

In Activity Manager, can you see which process exactly is causing the CPU spikes?

The process was git... Atom was having similar issues with git as well...

I'm getting 120-140% CPU constantly on 1.14.1, even without extensions enabled.

These seemed to fix the issue for me:

Disabling Git and Gitlens
Using the system-installed Git with Gitlens instead of the one from homebrew
Upgrading to Git 2.13.3 and using that

To keep the number of issues in our inbox on a manageable level, we're closing issues that have been on the backlog for a long time but haven't gained traction: We look at the number of votes the issue has received and the number of duplicates issues filed.
Thanks for your understanding. Happy coding!


Folders with lots of objects loading significant time

Hi,
When a folder contains lots of objects it takes significant time to load. I've tested with few thousands elements and it loads almost forever. Would it be possible to speed things up somehow or maybe load the big amount of elements in batches?
Thanks!

I have no problems loading a folder containing 5,000 files

Hi @idleberg
Below are the timelines I'm getting:
$ time find . -mindepth 1 -maxdepth 1 -type d  -print0 | while read -d '' -r dir; do     files=("$dir"/*);     printf "%5d folders in directory %s\n" "${#files[@]}" "$dir"; done | sort -nr

 8297 folders in directory ./D
 7293 folders in directory ./S
 6641 folders in directory ./M
 5189 folders in directory ./A
 3816 folders in directory ./T
 3680 folders in directory ./C
 3660 folders in directory ./B
 3652 folders in directory ./P
 3523 folders in directory ./R
 3412 folders in directory ./J
 2671 folders in directory ./F
 2619 folders in directory ./L
 2485 folders in directory ./K
 2285 folders in directory ./E
 2273 folders in directory ./G
 2217 folders in directory ./N
 1901 folders in directory ./H
 1333 folders in directory ./I
 1243 folders in directory ./O
 1223 folders in directory ./V
 1101 folders in directory ./W
  624 folders in directory ./U
  476 folders in directory ./Y
  465 folders in directory ./Z
  307 folders in directory ./X
  207 folders in directory ./Q

real	0m0.202s
user	0m0.201s
sys	0m0.002s

Directory D (contains 8297 folders, load time: 18.76s of total page load 21.76s)

Directory S (contains 7293 folders, load time: 19.55s of total page load 20.43s)


Server API fails w/o throwing an error

registerXhrHandler should throw an error when called before startServer
In addition wemight add the capability to register handler even before the server was started (although they are handled only after the server was started)

The register methods can now be called before startServer: 00ee1a1c28e9dc9a84f258e741e38baca670db2c
The other methods do now properly throw an error: 2becc260e3c13aeed575115ced3eaad7837ba446


gsl::not_null<ATL::CComQIPtr not working?

This works ok:
#include "atlbase.h"

using PString = std::shared_ptr<std::string>;
using UString = std::unique_ptr<std::string>;

void foo(gsl::not_null<PString> str)
{
}

void fooUnique(gsl::not_null<UString> str)
{
}

void fooCComPtr(gsl::not_null<ATL::CComPtr<IUnknown>> someInterface)
{
}

however, this does not compile:
void fooCComQIPtr(gsl::not_null<ATL::CComQIPtr<IUnknown>> someInterface)
{
}

This is the message:
1>c:\program files (x86)\microsoft visual studio\preview\community\vc\tools\msvc\14.15.26720\atlmfc\include\atlcomcli.h(628): error C2535: 'ATL::CComQIPtr<IUnknown,& _GUID_00000000_0000_0000_c000_000000000046>::CComQIPtr(T *) noexcept': member function already defined or declared
1>        with
1>        [
1>            T=IUnknown
1>        ]
1>c:\program files (x86)\microsoft visual studio\preview\community\vc\tools\msvc\14.15.26720\atlmfc\include\atlcomcli.h(620): note: see declaration of 'ATL::CComQIPtr<IUnknown,& _GUID_00000000_0000_0000_c000_000000000046>::CComQIPtr'
1>c:\program files (x86)\microsoft visual studio\preview\community\vc\tools\msvc\14.15.26720\include\type_traits(890): note: see reference to class template instantiation 'ATL::CComQIPtr<IUnknown,& _GUID_00000000_0000_0000_c000_000000000046>' being compiled
1>d:\project\usinggsl\gsltestapplication2017\gsl-lite.hpp(1016): note: see reference to class template instantiation 'std::is_assignable<T &,std::nullptr_t>' being compiled
1>        with
1>        [
1>            T=ATL::CComQIPtr<IUnknown,& _GUID_00000000_0000_0000_c000_000000000046>
1>        ]
1>d:\project\usinggsl\gsltestapplication2017\gsltestapplication.cpp(25): note: see reference to class template instantiation 'gsl::not_null<ATL::CComQIPtr<IUnknown,& _GUID_00000000_0000_0000_c000_000000000046>>' being compiled
1>c:\program files (x86)\microsoft visual studio\preview\community\vc\tools\msvc\14.15.26720\atlmfc\include\atlcomcli.h(658): error C2535: 'T *ATL::CComQIPtr<T,& _GUID_00000000_0000_0000_c000_000000000046>::operator =(T *) noexcept': member function already defined or declared
1>        with
1>        [
1>            T=IUnknown
1>        ]
1>c:\program files (x86)\microsoft visual studio\preview\community\vc\tools\msvc\14.15.26720\atlmfc\include\atlcomcli.h(641): note: see declaration of 'ATL::CComQIPtr<IUnknown,& _GUID_00000000_0000_0000_c000_000000000046>::operator ='
1>Done building project "GSLTestApplication.vcxproj" -- FAILED.

Hi @janwilmans ,
It looks like this is unrelated to gsl::not_null<>: copy-construction and copy-assignment of ATL::CComQIPtr<IUnknown> are not allowed.
Unfortunately I'v no experience with ATL to offer any help.
Regards, Martin

This problem is unrelated to gsl-lite; I already get an error for the following code:
void fooNullableCComQIPtr(ATL::CComQIPtr<IUnknown> someInterface)
{
}

I'm not familiar with ATL either, but I think the problem is the following:
// atlbase.h
template <class T, const IID* piid = &__uuidof(T)>
class CComQIPtr :
    public CComPtr<T>
{
public:
    ...
    CComQIPtr(_Inout_opt_ T* lp) throw() :
        CComPtr<T>(lp)
    {
    }
    ...
    CComQIPtr(_Inout_opt_ IUnknown* lp) throw()
    {
        ...
    }
    ...
};

This is obviously a duplicate definition if T is IUnknown, so ATL defines a specialization for IUnknown:
//Specialization to make it work
template<>
class CComQIPtr<IUnknown, &IID_IUnknown> :
    public CComPtr<IUnknown>
{
    ...
};

But for some reason &__uuidof(IUnknown) ends up being different from &IID_IUnknown, at least for the sake of template specialization. It may be a compiler bug, or it may be sloppiness in ATL; I don't know.
You can work around by explicitly spelling out the second template argument:
void fooNullableCComQIPtr(ATL::CComQIPtr<IUnknown, &IID_IUnknown> someInterface)
{
}

void fooCComQIPtr(gsl::not_null<ATL::CComQIPtr<IUnknown, &IID_IUnknown>> someInterface)
{
}


Add sync modal to dashboard datasets listing

Fixes #4790
Refactored sync view to take into account the table state is not always loaded (like on the dashboard view).
@javierarce pretty please review? cc @saleiva

What happens when user changes sync interval? Item is re-rendered? Imagine if user removes sync state.

:+1:  Sorry for the late review. LGTM.

@xavijam that is covered in https://github.com/CartoDB/cartodb/pull/5094/files#diff-d05ff59eadc68b7a7abcf0bd86047d5aR172, by refetching the (vis) model which re-renders the item

:+1:


Fix package overwite cipher bug

When running a separate ingestion step that only gives a purl for a package, the previous node in the DB would get overriden with empy fields for all other properties.
This PR attempts a workaround while I'm working on a better solution that automates all this boilerplate.

Regarding testing, we don't have yet a function that will retrieve nodes from within the test since current implementation is generic in the returned query. I'll add tests with the query refactor


PHPstorm stubs

Jetbrains offers a repository for PHP extension stubs used in PHPstorm:
https://github.com/jetbrains/phpstorm-stubs
I expect that contributing the DS stubs there would help a significant portion of your users, and would (somewhat) relieve the need for maintaining the polyfill (#92)

I had no idea. :open_mouth:
I'll request that ds and decimal be added, thank you. :sparkles:

looks like this hasn't happened yet, agreed it would great if it could be organised

I've picked up the mantle and will be developing it right now. I've done this sort of stuff in the past.
I'll also (::gasp::) create the first Unit test in this project that will instantly check and confirm that the PhpStorm stub is up-to-date and current (using reflection).
it's actually pretty fun project for me.
I'll create a PR against the polyfill project and stick it in the root directory of the project, entitled "phpstorm-stub.php". It is a single file that contains all of the classes with their public constants, properties and methods.

Great use of my first 2 1/2 hours on this beautiful Saturday!
Thanks for such an awesome project, guys!! The datatypes of HackLang that seemingly inspired this project were my #1 reason for flipping over to that project, back when they were attempting to take on the PHP leadership mantle a few years ago.
I'm so happy I found this project today and can once again use Collections and actual functional data structures in actual PHP for the first time, without the idiosyncrasies of the unmaintained SPL.
Cheers!

This can be closed. PHPStorm has stubs for this extension now.
https://github.com/JetBrains/phpstorm-stubs/blob/master/ds/ds.php


Versioned url never used

https://github.com/lrills/helm-unittest/blob/695dac23a25c1e39836cf3c8273fab6baa924f69/install-binary.sh#L72
The versioned url is being set to the variable url but all the curl and wget commands only reference latest_url so the versioned url is never being used to download the correct binary

@brendarearden, i have updated the url to use latest_url.
Since it's not merged into this repo, you can download a version from my forked repo: https://github.com/quintush/helm-unittest/releases

Close due to archiving repository.
Sorry for not presenting so long. I've been working on another project and don't have time to for helm-unittest.
Please consider other working forks like quintush/helm-unittest.


What was the problem with links in react-router that affected react-router-redux

I vaguely remember a couple comments on a github issue that discussed some problems between links working with redux. I don't exactly remember the problem but I recently ran into an issue where I have a link in my redux application (using react-router-redux) and when I click the link it updates the location to /listings/boats the boats portion is an optional parameter. At that point theres a container component that checks the url has a parameter, if it does it fetches that parameter from the database. If I open a new tab with the same url the <Link> points to it will check the parameter and fetch the boat listings. However if I click the link that will send me to the url it still checks the link to see if it has a parameter and to make sure it was running the check I added some logging statements on the client, and logging statements on the server to see if there was anything going wrong. When clicking from the <Link>however doesn't fetch/hit the database for the boat listings. I'm wondering if this is the issue with the links working with redux. If it is has there been any solution found for this? If it's not do you have any idea why this may be occurring?

You need to implement componentWillReceiveProps. This isn't a react-router-redux issue, it's with React Router. And it's not even an issue, it's just something you need to implement.

If it has to do with react-router is there a documentation section on something like this, I've been looking through docs and can't find it. If theres not thanks for the information.


Unit tests for DataElementController

Description

renamed test project folder
added unit test for dataelement controller

Verification

[x] Your code builds clean without any errors or warnings
[x] All tests run green

Boiler plate code for unit testing platform access token. Merging to be able to start on logic development from main branch


Support another language Dotnet or Python

Describe the feature
I want driver support another language
Use Case
I have many project with Dotnet or Python.
Proposed Solution
No response
Other Information
No response
Acknowledgements

[ ] I may be able to implement this feature request
[ ] This feature might incur a breaking change

The AWS Advanced JDBC Driver version used
2.3.0
JDK version used
17
Operating System and version
amazonelinux

Hello @tieungao88,
Thanks for reaching out and bringing this topic up. For visibility, the team is currently looking at Python as another language for the driver to support. At this time, we cannot share exact timelines, but will make sure to update this issue when we have an update to share.
Thanks,
Matthew

Hello @tieungao88,
Following up regarding this, we have recently released a Python version of the driver. For more information, you can refer this Blog Post. It will contain all the relevant links to get you started with the driver.
Thanks,
Matthew

Will be closing this issue. As new language drivers are released, we'll be making official announcements.
Regarding Dotnet, thank you for the feedback. We have relayed this information to our product team. To re-iterate, if you're interested in Python, please check the previous reply in this thread for the official release announcement.
Thank you!


with_quality_and_params and ZStandard

new function async_compression::tokio::write::ZstdEncoder::with_quality_and_params is panic with such code
    let mut zstd_encoder = async_compression::tokio::write::ZstdEncoder::with_quality_and_params(
        Vec::new(),
        async_compression::Level::Precise(9),
        &[async_compression::zstd::CParameter::nb_workers(10)]
    );

There is an ugly unwrap() inside.
because zstd requires zstdmt feature to run multi core.
To workaround you can add this line to cargo.toml
zstd = { version = "0.12.3", features = ["zstdmt"] }

IMO there are several ways to fix this:

Enable zstd/zstdmt by default
Add a new feature which enables zstd/zstdmt
Call Encoder::set_parameter lazily on write

Add a new feature which enables zstd/zstdmt
second one is breaking change

Not necessaryily. Adding a new feature to forward zstdmt is fine. And we can document that the nb_workers fn needs the new crate feature without actually requiring it until the next breaking update.


unable to link to page headings

Hi there, thank you for this extension! I've been relegated to have to write in documentation in "wiki text/format" at my company and this extension has finally set me free. lol :smile:
I've noticed a couple of things that are different when writing pages in markdown. I'm wondering if they are configuration errors on my end.

I'm not sure if there are some table of contents specific tweaks that need to be made in order to support markdown, however it seems that the table of contents isn't created anymore.
if i link to other markdown headings within the same page, or on a different markdown page, the links don't actually take you to the heading. For example if i have a heading ## Delete a Branch, I would expect to be able to create a link later on in document like this [delete the branch](#delete-a-branch) and when I click on it, have it take me to on the point on the page where that heading is. However this doesn't happen; clicking the link does nothing when on the same page. When the link is a different markdown page, it just takes me to the top of that page.

Again, thanks for the great extension!

Sadly the extension is unable to add headings to the table of contents.  I had looked into this previously and tried my best to get it as close as possible to regular wikitext, but I believe that changes to the MediaWiki software would be required in order to accomplish this.
As for linking to headings, try appending markdown_ to the beginning of your heading name.  #markdown_delete-a-branch for example.

Thank you for taking the time to reply!

Sadly the extension is unable to add headings to the table of contents. I had looked into this previously and tried my best to get it as close as possible to regular wikitext, but I believe that changes to the MediaWiki software would be required in order to accomplish this.

Ah, that's too bad. Sounds like we might need another extension to automatically build a custom TOC based on which lines begin with  #; unfortunately in my searching for one, I didn't find one.

As for linking to headings, try appending markdown_ to the beginning of your heading name. #markdown_delete-a-branch for example.

This worked like a charm and even works across pages. Thank you!

The problem with the table of contents is that it is handled all internally by the MediaWiki software and there currently (as of MediaWiki 1.35) no way to have extensions hook into that.  There would need to be a hook added into the core MediaWiki software to allow this to work.


Issue with sending large-ish CSV files to Flask

I am trying to send a csv file as a base64 encoded string in the body of a post request to a flask server. It works find for small files. But when I try to post a file above ~150k the server does not respond and there is no error message. It seems to get hung up on body = request.get_json(). This non-responsiveness happens through postman and node. To throw a wrench into the problem, I can submit the file fine using pythons requests library. I am not sure what is causing this or what the difference between the three requests. The headers all look really similar and are included in the repo. I have included the minimal server (server.py), working python request (test.py), the not working node request (jstest.js) and the not working postman collection. Thanks for any help.
Here is a simple reproduction MCVE https://github.com/mdemin914/flask-largeish-csv-file-error-reproduction
Environment

Python version: 2.7.13
Flask version: 0.12.2
Werkzeug version: 0.14.1

Duplicate of pallets/werkzeug#875

Could you please clarify how this this related? I am sending a json request with a large string and not a multipart/form-data. I had issues with sending large files with multipart/form-data, which is why i switched to a json payload. Sorry if I missed something @davidism

150k is not "large", I guess it's not related to issue #875
get_json() might be the culprit. Try profiling more.

@lambdaq running the profiler it seems that posix.waitpid is what is taking up all the time. I am new to python and am not quite sure how to debug further.


draggableColumns does not work well with a sidebar and selectableRows none

The some columns on the datatable are not draggable or are dragged to incorrect positions when the selectableRows is set to none and the table does not take up the full viewport width. Even if a column is draggable, it may lose the ability to be dragged after moved.
Expected Behavior

When selectableRows is set to none, the column drag should behave identically to other values of selectableRows.
Current Behavior

SelectableRows is set to none and the table is an item in flexbox row.
Column drags may for for some columns but not others. After dragging, a column may also lose it's ability to be dragged.
Steps to Reproduce (for bugs)

https://codesandbox.io/s/interesting-blackburn-iv3mw?file=/examples/draggable-columns/index.js
Forked from demo sandbox.

Click on 'draggable columns' to see both the bugged table and a working one.
Make sure the viewport width of the browser is large enough to reveal the columns of each table.
Set the selectable rows to 'none'.
Drag columns on the table labeled 'Unable to Drag Columns' will work inconsistently. While the table below will work fine.
Set selectable rows to something other than 'none'
Drag columns will work on both tables.

Ah, I see what's going on. This is the problem:
https://github.com/gregnb/mui-datatables/blob/master/src/hooks/useColumnDrop.js#L9
The table calculates the offsetLeft of the table using the select cell. If it's not present, it uses an object with the offsetLeft set to zero. So tables without select cells that have an offset, will be not have the right calculation in place.

I think I have this fixed:
https://codesandbox.io/s/muidatatables-custom-toolbar-thms7?file=/index.js
If you have a moment and can verify, it's in<EMAIL_ADDRESS>npm install<EMAIL_ADDRESS>

yup it works perfectly as expected now. thanks!

Fixed in 3.1.5


Revolution Case skins have no "collections" data

Revolution Case skins have empty lists at their "collections" data. For example the mag7 Insomnia.

Fixed, should be deployed tomorrow morning.


Test on 3.11 instead of 3.11-dev

Fixes #67
Changes proposed in this pull request:

Test on 3.11 instead of 3.11-dev, by replacing 3.11-dev to 3.11 in .github/workflows/test.yml

Hi @hugovk.
Please check and advise on my PR the fixes #67,
cheers

Thanks for the PR!

Codecov Report

Merging #69 (7c4409b) into main (d906c7d) will decrease coverage by 1.72%.
The diff coverage is 96.29%.

@@            Coverage Diff             @@
##             main      #69      +/-   ##
==========================================
- Coverage   99.29%   97.57%   -1.73%
==========================================
  Files           9        9
  Lines         714      741      +27
==========================================
+ Hits          709      723      +14
- Misses          5       18      +13

Flag
Coverage Δ

macos-latest
96.76% <96.29%> (-0.86%)
:arrow_down:

ubuntu-latest
97.57% <96.29%> (-0.05%)
:arrow_down:

windows-latest
?

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

Impacted Files
Coverage Δ

src/humanize/number.py
96.96% <96.15%> (-0.16%)
:arrow_down:

tests/test_number.py
100.00% <100.00%> (ø)

tests/test_i18n.py
88.57% <0.00%> (-11.43%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Update sbt-sonatype to 3.9.3

Updates org.xerial.sbt:sbt-sonatype from 3.9.2 to 3.9.3.
GitHub Release Notes - Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.xerial.sbt", artifactId = "sbt-sonatype" } ]

labels: sbt-plugin-update, semver-patch

Coverage remained the same at 0.0% when pulling bd80859a5734316c91f7c7a421701f011cfe43e4 on scala-steward:update/sbt-sonatype-3.9.3 into 5a68c02aa0aea1b34c3c5d6df04ff41bb1248ab6 on andyglow:develop.


[APIv2] push: unauthorized: authentication required

Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description

I was using APIv2 to push an image to dockerhub, but got a 400. I think the steps are correct, if they are wrong please correct me.
Steps to reproduce the issue:

set up APIv2 service: podman system service --time 0 tcp:<IP_ADDRESS>:8081 &> ~/server.log &

podman tag alpine docker.io/edwardf0cus/testrepo:latest

XRA=`echo "{ \"username\": \"edwardf0cus\", \"password\": \"mypassword\", \"email\"<EMAIL_ADDRESS>\"serveraddress\":\"docker.io\"}" | base64 --wrap=0`

curl -v -X POST -H "X-Registry-Auth: $XRA" "http://localhost:8081/v1.40/libpod/images/docker.io/edwardf0cus/testrepo/push?tag=latest"

Describe the results you received:
# curl -v -X POST -H "X-Registry-Auth: $XRA" "http://localhost:8081/v1.40/libpod/images/docker.io/edwardf0cus/testrepo/push?tag=latest"
*   Trying ::1:8081...
* connect to ::1 port 8081 failed: Connection refused
*   Trying <IP_ADDRESS>:8081...
* Connected to localhost (<IP_ADDRESS>) port 8081 (#0)
> POST /v1.40/libpod/images/docker.io/edwardf0cus/testrepo/push?tag=latest HTTP/1.1
> Host: localhost:8081
> User-Agent: curl/7.69.1
> Accept: */*
> X-Registry-Auth: eyAidXNlcm5hbWUiOiAiZWR3YXJkZjBjdXMiLCAicGFzc3dvcmQiOiAiamhfMDI2MTM3IiwgImVtYWlsIjogInNoZW53ZWk2MDRAMTI2LmNvbSIsICJzZXJ2ZXJhZGRyZXNzIjoiZG9ja2VyLmlvIn0K
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 400 Bad Request
< Content-Type: application/json
< Date: Tue, 26 May 2020 08:33:32 GMT
< Content-Length: 462
<
{"cause":"errors:\ndenied: requested access to the resource is denied\nunauthorized: authentication required\n","message":"Error pushing image \"docker.io/edwardf0cus/testrepo\": Error copying image to the remote destination: Error writing blob: Error initiating layer upload to /v2/edwardf0cus/testrepo/blobs/uploads/ in registry-1.docker.io: errors:\ndenied: requested access to the resource is denied\nunauthorized: authentication required\n","response":400}
* Connection #0 to host localhost left intact

Describe the results you expected:
push successfully and have a correct 200 code returned.
Additional information you deem important (e.g. issue happens only occasionally):
Output of podman version:
podman version 2.0.0-dev

Output of podman info --debug:
host:
  arch: amd64
  buildahVersion: 1.15.0-dev
  cgroupVersion: v2
  conmon:
    package: conmon-2.0.15-1.fc32.x86_64
    path: /usr/bin/conmon
    version: 'conmon version 2.0.15, commit: 33da5ef83bf2abc7965fc37980a49d02fdb71826'
  cpus: 2
  distribution:
    distribution: fedora
    version: "32"
  eventLogger: file
  hostname: localhost.localdomain
  idMappings:
    gidmap: null
    uidmap: null
  kernel: 5.6.6-300.fc32.x86_64
  linkmode: dynamic
  memFree: 787238912
  memTotal:<PHONE_NUMBER>
  ociRuntime:
    name: crun
    package: crun-0.13-2.fc32.x86_64
    path: /usr/bin/crun
    version: |-
      crun version 0.13
      commit: e79e4de4ac16da0ce48777afb72c6241de870525
      spec: 1.0.0
      +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +YAJL
  os: linux
  rootless: false
  slirp4netns:
    executable: ""
    package: ""
    version: ""
  swapFree:<PHONE_NUMBER>
  swapTotal:<PHONE_NUMBER>
  uptime: 25h 16m 7.11s (Approximately 1.04 days)
registries:
  localhost:
    Blocked: false
    Insecure: true
    Location: localhost
    MirrorByDigestOnly: false
    Mirrors: []
    Prefix: localhost
  search:
  - registry.fedoraproject.org
  - registry.access.redhat.com
  - registry.centos.org
  - docker.io
store:
  configFile: /etc/containers/storage.conf
  containerStore:
    number: 1
    paused: 0
    running: 1
    stopped: 0
  graphDriverName: overlay
  graphOptions:
    overlay.mountopt: nodev,metacopy=on
  graphRoot: /var/lib/containers/storage
  graphStatus:
    Backing Filesystem: xfs
    Native Overlay Diff: "false"
    Supports d_type: "true"
    Using metacopy: "true"
  imageStore:
    number: 2
  runRoot: /var/run/containers/storage
  volumePath: /var/lib/containers/storage/volumes
version:
  APIVersion: 1
  Built:<PHONE_NUMBER>
  BuiltTime: Tue May 26 14:51:01 2020
  GitCommit: 1077d2d0b72d027a01080c0d3ebdb7d99a969661
  GoVersion: go1.14.2
  OsArch: linux/amd64
  Version: 2.0.0-dev

Package info (e.g. output of rpm -q podman or apt list podman):
(paste your output here)

Thanks for opening the bug, @Edward5hen!
https://github.com/containers/libpod/pull/6207 will add support for authentication.

ACK, my pleasure!


Add support for tvOS and watchOS

These would first depend on support for these targets in rustup, tracking here: https://github.com/rust-lang-nursery/rustup.rs/issues/1405
Support in cargo-lipo would require changing the "universal" output directory to distinguish between iOS, watchOS, and tvOS libraries.

Depends on this https://github.com/TimNN/cargo-lipo/issues/26


New project from EXF template fails to build in Visual Studio

Error:
/Users/sam.williams/Projects/SqueakyApp/SqueakyApp/FSC: Error FS0193: The module/namespace 'Microsoft.FSharp.Core' from compilation unit 'FSharp.Core' did not contain the namespace, module or type 'voption1' (FS0193) (SqueakyApp)`
Occurs in all projects - Core, Droid and iOS
Expected:
all projects build successfully
Steps:
dotnet new elmish-forms-app -lang F# -n SqueakyApp
create an sln file and add the three projects
open sln file in Visual Studio for Mac
build project (I used DEBUG | AnyCPU as the configuration)
also tried changed FSharp.Core version in the .NET Standard project using both 4.3.4 and 4.5.0. The .NET Standard project still fails to build.
also tried adding the fsc.props file
Environment:
=== Visual Studio Professional 2017 for Mac ===

Version 7.5.3 (build 7)
Installation UUID: 82dffde3-8fbe-456a-90d8-d8692da1f7d9
Runtime:
	Mono <IP_ADDRESS> (2017-12/ea8a24b1bbf) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)
	Xamarin.Mac <IP_ADDRESS> (master / eeaeb7e6)

	Package version: 510010057

=== NuGet ===

Version: <IP_ADDRESS>45

=== .NET Core ===

Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
	2.1.0
	2.0.5
	2.0.0
	1.1.2
	1.1.1
	1.1.0
	1.0.5
	1.0.4
SDK: /usr/local/share/dotnet/sdk/2.1.300/Sdks
SDK Versions:
	2.1.300
	2.1.4
	2.0.0
	1.0.4
	1.0.1
	1.0.0-preview2-1-003177
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.10.1/lib/mono/msbuild/15.0/bin/Sdks

=== Xamarin.Profiler ===

Version: 1.6.2
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Xamarin.Android ===

Version: <IP_ADDRESS> (Visual Studio Professional)
Android SDK: /Users/sam.williams/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		4.0.3 (API level 15)
		5.1   (API level 22)
		6.0   (API level 23)
		7.1   (API level 25)
		8.0   (API level 26)
		8.1   (API level 27)

SDK Tools Version: 26.1.1
SDK Platform Tools Version: 27.0.1
SDK Build Tools Version: 27.0.3

Java SDK: /usr
java version "1.8.0_151"
Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)

Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

=== Apple Developer Tools ===

Xcode 9.3.1 (14154.1)
Build 9E501

=== Xamarin.Mac ===

Version: <IP_ADDRESS> (Visual Studio Professional)

=== Xamarin.iOS ===

Version: <IP_ADDRESS> (Visual Studio Professional)
Hash: 64fece5f
Branch: d15-7
Build date: 2018-05-29 20:00:44-0400

=== Xamarin Inspector ===

Version: 1.4.0
Hash: b3f92f9
Branch: master
Build date: Fri, 19 Jan 2018 22:00:34 GMT
Client compatibility: 1

=== Build Information ===

Release ID: 705030007
Git revision: 13cecd02aceddf29a1ed57b86f81c02994df1483
Build date: 2018-06-14 15:48:08-04
Xamarin addins: 7065de97cf22c9038fdc39dd627f2c30790fd8af
Build lane: monodevelop-lion-d15-7

=== Operating System ===

Mac OS X 10.13.3
Darwin 17.4.0 Darwin Kernel Version 17.4.0
    Sun Dec 17 09:19:54 PST 2017
    root:xnu-4570.41.2~1/RELEASE_X86_64 x86_64

=== Enabled user installed addins ===

Straight8's SpecFlow Intergration <IP_ADDRESS>
Internet of Things (IoT) development (Preview) 7.5

Could you link a build log?  e.g. using
msbuild SqueakyApp.sln /v:n

from the command line, thanks.  I suspect some problem with package restore

Here is the log output from running msbuild SqueakyApp.sln /v:n
I can also attached a zip of the project if that is useful.
build.log

SqueakyApp.zip
Here is a zip of the files for the project, if that helps. (Note that packages are not restored, as that would have been too large).

This is  wrong, you definitely need 4.5.0 (though you said it doesn't compile if you change that?  I haven't tried yet, just searched for "4.3.4". Did you do a clean build after changing to 4.5.0?)
  <package id="FSharp.Core" version="4.3.4" targetFramework="xamarinios10" />

And here:
    <Reference Include="FSharp.Core">
      <HintPath>..\packages\FSharp.Core.4.3.4\lib\netstandard1.6\FSharp.Core.dll</HintPath>
    </Reference>

Could you send a new build log with those changed to 4.5.0, and use msbuild /v:d, thanks

@willsam100 : ugh, yes - this is a known issue in VSMac and was recently fixed

https://github.com/mono/monodevelop/pull/5137


How can 'most notable' events or lives be selected or displayed?

At present there is an issue with displaying the playwrights.csv file - an excessive number of trace lines are needed from the
20th century onwards. The file is currently around 50 people. These were selected as the list that Google returns on a search
for 'playwrights'. How can this be solved?
Fifty is reasonable for a number of playwrights, but the google results are mostly recent people whose lives overlap,
so needing a lot of lines to display.
Possible options:

Subjective trimming. This is unattractive, since unconscious bias is likely to be unavoidable
Display lives more compactly. This might be possible if we have years active (using hdate and hdate_end) for each playwright. Could this possibly be best derived from a linked list of works?
Find a shorter list. ChatGPT, for example, can easily be asked to give a more compact list, and seems to default to 20.

Colsed after implementation of max_rank functionality in 0.0.4


Update examples (Button, Checkbox, ChoiceGroup, Dropdown, Link, Message, DatePicker)

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: FeodorFitsner:x: InesaFitsnerYou have signed the CLA already but the status is still pending? Let us recheck it.


chore: update SCC profile_id to fe96bd4d-9b37-40f2-b39f-a62760e326a3

/run pipeline

/run pipeline

:tada: This PR is included in version 1.3.0 :tada:
The release is available on:

GitHub release
v1.3.0

Your semantic-release bot :package::rocket:


Correctly capture failures from the Subshell

Currently the -e option is turned off from inside the subshell - This fails though, as it remains on for the parent shell.
Thus, to capture (and handle) failures, we need to turn the option off in the top level shell correctly, rather than in a child shell, and restore this after our block of code has been run.
This manifests itself in the form of failed commands only invoking cleanup, and none of the rest of the code. The check on exit code is completely skipped and, for instance, docker logs from linked containers are never uploaded (which is far from ideal).

Thanks for this! I noticed that this was happening the other day and was trying to write some tests to prove what was going on. I'm going to try and commit those tests first to prove the breakage.

I'm going to merge this and add tests later. Thanks again @Sutto.

No problem! Thanks for looking at it so quickly. I also noticed that it's possible for the docker logs to fail in some cases - so it might be worth wrapping that with the same trick / ignoring their exit code (or else cleanup will be invoked early).

No problem! Thanks for looking at it so quickly. I also noticed that it's possible for the docker logs to fail in some cases - so it might be worth wrapping that with the same trick / ignoring their exit code (or else cleanup will be invoked early).

Do you mean check_linked_containers_and_save_logs?

Sorry, I missed your reply - yep. It's possible if a container had no output that it will exit with a non-zero error code - and likewise, it double prints the output (since it runs and prints to stdout, then uploads the artifact) - for the main container run.

Ah yup, I noticed that too. I'll look into it. Cheers @Sutto.


Use version of i18n ~> 0.6.6

Use version of i18n ~> 0.6.6 to fix security vulnerability https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-4492

Hum, need to fix the gem dependency stuff.


Guide to creating gems for new Isodoc standards

Audience:

Standards orgs ("SDOs")
Companies

Questions to answer in the guide:

How can I adopt the StanDoc specification for my own publications, i.e. "RiboseDoc" as inherited from StanDoc or IsoDoc? (will we provide a few templates for them to choose, like IsoDoc or even RfcDoc?)
How do I adopt this excellent publishing toolchain?
How can I style the resulting output? (HTML, Word, PDF)
How can I localize the resulting output?
I can translate my specifications into IsoDoc XML myself (i.e. I don't like AsciiDoc, or I already have my toolchain). Can I only use IsoDoc XML to produce pretty output?

https://github.com/riboseinc/asciidoctor-iso/wiki/Gem-Customisation-Guide


Can I disable the animation added due to issue #89?

I noticed you added an animation in release 1.5.8, in response to issue #89, to make the contents of the slide gracefully expand when the next slide does not have a button. This is adding some movement to the text/images in my slides whereas in Release 1.5.5, I had no jumping problem as mentioned in #89. Perhaps because I am using a custom layout for the SimpleSlide. Can I disable the animations so that text/images don't appear to be changing in size when I change to a slide without a button?

You can't disable the animation. This library really focusses on material guidelines and material motion. The button, a sheet if you spoke as in the material docs, can't appear immediately but instead has to be animated in. Before this change the appearance of the button caused a glitch whenever you slide from and to a button slide.
You can fix that problem by optimizing your layout. As the width would never change the only thing to keep in mind is that the height can vary a bit. I can help you with the layout if you want.

Thanks for the response. If you can give me some guidance on how to setup the layout that would be helpful. I am in fact using a custom layout file for each slide, both SimpleSlide's and FragmentSlide's. I can provide the resource file later in the day as I don't have my personal PC with me now.

Yeah that'd come in handy.

I have two layouts, one for portrait and the other for landscape mode. I used the ID's for the views that you used in the library.
 All TextViews have a wrap_content height, so the only thing that would change size is the ImageView and the Space.
Same goes for the landscape layout.

Ok, I fixed the problem. I was using somewhat large images for the ImageView and as you can see, I had a layout_weight attribute for the ImageView and the Space widget at the end. This caused the image to take up different amount of space depending on whether more space was available when the CTA button gets hidden. That is why there was some change in the position of text from one slide to the next and that caused the motion animation for the text. Now, I made the images smaller and removed the layout_weight attributes. Everything is a fixed size given by wrap_content and now there is no issue.
My only concern is some text may get cut off in really small screen scenarios but that is something else. I wish Android could allow us to specify percentage values in layouts, but I digress.


Pickle Failed to Deserialize on PBSCluster

When running a script using dask on a PBS Cluster, the workers exit prematurely with the following logged error message (truncated):
distributed.protocol.pickle - INFO - Failed to deserialize b'\x80\x05\x95c;\x00\x00\x00\x00\x00\x00\x8c\x17cloudpickle.cloudpickle\x94\x8 ...

This does not happened when running the same script on SLURM or LSF styles clusters.
What is the potential cause of this? I've checked that all the packages across the different systems are the same, and that the dask worker and scheduler are using the same package versions as well.
Environment:

Dask version: 2.16.0
Python version: 3.8.2
Operating System: CentOS 7
Install method (conda, pip, source): conda

Can you show what you were doing when this error happened, please?
Versions of other packages might be important too, such as cloudpickle. Are you certain that the versions are all the same? You could run client.get_versions() to check.
Also, is your code perhaps referring to an object that is in a local module on your client? That might only be importable if each worker can see the same disk and has the same working directory set.

The code is indeed attempting to import a local module that we have developed and that is not installed via pip or conda. Im not sure whether each workers can see the same disk or not.
Here is the output of client.get_versions(check=True):
>>> from dask.distributed import Client
>>> from dask_jobqueue import PBSCluster
>>> cl = PBSCluster()
>>> cl.scale(2)
>>> c = Client(cl)
>>> c.get_versions(check=True)

{'scheduler': {
     'host': {
          'python': '3.6.10.final.0',
          'python-bits': 64,
          'OS': 'Linux',
          'OS-release': '3.10.0-514.26.2.el7.x86_64',
          'machine': 'x86_64', 'processor': 'x86_64',
          'byteorder': 'little',
          'LC_ALL': 'None',
          'LANG': 'en_US.UTF-8'
     },
     'packages': {
          'dask': '2.13.0',
          'distributed': '2.13.0',
          'msgpack': '1.0.0',
          'cloudpickle': '1.5.0dev0',
          'tornado': '6.0.4',
          'toolz': '0.10.0',
          'numpy': '1.18.4',
          'lz4': None,
          'blosc': None}},
     'workers': {
          'tcp://<IP_ADDRESS>:35662': {
               'host': {
                    'python': '3.6.10.final.0',
                    'python-bits': 64,
                    'OS': 'Linux',
                    'OS-release': '3.10.0-514.26.2.el7.x86_64',
                    'machine': 'x86_64',
                    'processor': 'x86_64',
                    'byteorder': 'little',
                     'LC_ALL': 'None',
                    'LANG': 'en_US.UTF-8'
               },
               'packages': {
                    'dask': '2.13.0',
                    'distributed': '2.13.0',
                    'msgpack': '1.0.0',
                    'cloudpickle': '1.5.0dev0',
                    'tornado': '6.0.4',
                    'toolz': '0.10.0',
                    'numpy': '1.18.4',
                    'lz4': None,
                    'blosc': None
               }
          },
          'tcp://<IP_ADDRESS>:44521': {
               'host': {
                    'python': '3.6.10.final.0',
                    'python-bits': 64,
                    'OS': 'Linux',
                    'OS-release': '3.10.0-514.26.2.el7.x86_64',
                    'machine': 'x86_64',
                    'processor': 'x86_64',
                    'byteorder': 'little',
                    'LC_ALL': 'None',
                    'LANG': 'en_US.UTF-8'
               },
               'packages': {
                    'dask': '2.13.0',
                    'distributed': '2.13.0',
                    'msgpack': '1.0.0',
                    'cloudpickle': '1.5.0dev0',
                    'tornado': '6.0.4',
                    'toolz': '0.10.0',
                    'numpy': '1.18.4',
                    'lz4': None,
                    'blosc': None
               }
          }
},
'client': {
          'host': {
               'python': '3.6.10.final.0',
               'python-bits': 64,
               'OS': 'Linux',
               'OS-release': '3.10.0-514.26.2.el7.x86_64',
               'machine': 'x86_64',
               'processor': 'x86_64',
               'byteorder': 'little',
               'LC_ALL': 'None',
               'LANG': 'en_US.UTF-8'
     },
     'packages': {
               'dask': '2.13.0',
               'distributed': '2.13.0',
               'msgpack': '1.0.0',
               'cloudpickle': '1.5.0dev0',
               'tornado': '6.0.4',
               'toolz': '0.10.0',
                'numpy': '1.18.4',
               'lz4': None,
               'blosc': None
          }
     }
}

To send an object to the workers which is defined in a class in a module, that module must be importable by the workers for unpickling - otherwise we would have to send the whole source of all of your installed python libraries! You may be able to send just the one source file with client.upload_file, but generally it's better to have your own way to distribute environments, whether by sharing discs, using conda-pack, or something else.

Ok. The cluster in question was setup and is administered by a single individual (I don't know why my PI wants to use this cluster specifically), so its probably a disk sharing issue related to how the cluster was configured. The fact that there is no $SCRATCH volume further supports this idea. I will ask my PI and the cluster admin if this is the case.


[Algorand] Fix sending 0 amount issue

Fixes https://github.com/trustwallet/wallet-core/issues/1888, don't encode 0 amount

#1888


Unable to identify the device in case of Widevine DRM requests from windows electron application

Hi
We are using shaka player in our windows electron application to play Widevine DRM protected content. We need to identify the device uniquely to manage content access. In case of our android app, we are getting device_id in DRM license response but that is not the case with our electron application. Is there any way we can identify the device that is running our electron application ?

Hi,
I believe the CDM used on Android is not the same as the general desktop CDM, which is likely why you are seeing differences. We are not doing anything special beyond providing access to the CDM, so any approach that would work for shaka-player on Chrome should work here as well. There appear to be several threads with similar topics, here is one that may provide some useful insights: https://github.com/google/shaka-player/issues/1523

Closing due to inactivity, please feel free to reopen if your issue persists.


Set Mono permanently fails and locks user out of Monochromator after passing an invalid color

I did this accidentally with 0 wavenumbers when I meant 0nm. Had to restart the program.

It only happened because you passed infinity  nm to the monochromator. Any other number should work fine, the mono will simply go to the closest possible color.
I suppose I'll make a case to catch it.


Improve support of complex C types

Strings feature
Sequence feature
string sequence feature
n dimensional array feature
clean project

@lemunozm , can you rebase this PR?

It is already merged into develop, we can close the pull

As you wish :)


Add documentation for Wizard Options interface with examples

The Wizard wiki could include more examples of the different kinds of fields you can create in the UI.

Closing as complete


NVMe detection

This should reliably fix the /dev/nvme vs /dev/sda issue #20.

Thank you for this! What sort of setup do you have which is use /dev/nvme? I'd like to test this locally, before merging, but I'm interested in the use case.

I've got a Dell XPS 13 which comes with a nice NVMe SSD drive and I know a few other ultrabooks to do the same; other than customized desktops or servers with NVMe drives that is.
The format should be the NVMe character device /dev/nvme0 followed by the namespace block device /dev/nvme0n1 and finally the partition /dev/nvme0n1p2, for example.

Thank you!


downloaded file has extension .gi instead of .gif

It seems that the last letter is removed when downloading a file that has a long and complex filename.
example file:
https://images.squarespace-cdn.com/content/v1/6124a4fd689c806393eb581b/81dc0346-e123-4880-89dd-104e34a4f596/Kanalbyen+-+a+new+destination+in+Kristiansand%2C+Norway-high+(1)+(brugt+på+forsiden).gif
is saved as:
Kanalbyen+-+a+new+destination+in+Kristiansand%2C+Norway-high+%281%29+%28brugt+p%C3%A5+forsiden%29.gi
I'm using a mac

this is due to the default maxLength option from the module used to sanitise filename on save: https://github.com/sindresorhus/filenamify#maxlength
if the filename is longer than 100 characters, the module will truncate it. download does not seems to have options to update this default behaviour.
You can use this simple snippet as a replacement:
const fs = require('fs')
const https = require('https')

async function download(url, targetFile) {
    return new Promise((resolve, reject) => {
        https
            .get(url, (response) => {
                const code = response.statusCode ?? 0

                if (code >= 400) {
                    return reject(new Error(response.statusMessage))
                }

                const fileWriter = fs
                    .createWriteStream(targetFile)
                    .on('finish', () => {
                        resolve({})
                    })

                response.pipe(fileWriter)
            })
            .on('error', (error) => {
                reject(error)
            })
    })
}

await download('http://mywebsite.com/path/to/remotefile.gif', `${__dirname}/out/remotefile.gif`)


[Home] Reduce memory usage

Oops, seems I exaggerated the amount of memory usage before this change, nonetheless it’s a 30% reduction and, more importantly, the home view now tries to load those rails that are currently on screen instead of possibly those all the way down.

Before: 135MB
After: 92MB

In addition I made it so that the refresh control is only removed from screen until all Relay requests are finished.

Self-merging so a release can go out.

          1 Warning

:warning:
The following files do not have tests: lib/components/home/artist_rails/artist_card.js & lib/containers/home.js

  Generated by :no_entry_sign: danger


API not working

Hello,
We've been using the API for a long time now. It always worked until about 1-2 weeks ago when it stopped posting to our callback URL. After X confirmations it's supposed to send a string to our URL https://www.diamondcard.us/exec/sgnblockchain-ipn so we know a payment is confirmed.
Has anything changed on your system?
The responses we receive are intermittent. Sometimes we receive a response from your server and sometimes we do not. That's the problem. It used to be 100%.
Thanks.
Support

I have contacted the support on https://support.blockchain.com regarding an issue with the callback from blockchain.info to my server.
Support mentioned that I should redirect any questions regarding the API to the Github page (Create an issue).
I make use of the Receive Payments API.
Documentation of the API that I use is located on the following page:
https://www.blockchain.com/api/api_receive
I am having issue with processing the callback sent from blockchain.info.
The reason for this is that the callback that is send from blockchain.info does not arrive on my web server.
This worked for years until 9 February 2021.
The log files of my web server show that 0 callbacks are received by my web server from blockchain.info since +/- 9 February.
I receive callback requests almost daily using the blockchain.info API, this has stopped since 9 February.
The following status page mentions that there where API issues on 9 February 2021.
https://www.blockchain-status.com/
Does someone know the cause and fix for this.

I have contacted the support on https://support.blockchain.com regarding an issue with the callback from blockchain.info to my server.
Support mentioned that I should redirect any questions regarding the API to the Github page (Create an issue).
I make use of the Receive Payments API.
Documentation of the API that I use is located on the following page:
https://www.blockchain.com/api/api_receive
I am having issue with processing the callback sent from blockchain.info.
The reason for this is that the callback that is send from blockchain.info does not arrive on my web server.
This worked for years until 9 February 2021.
The log files of my web server show that 0 callbacks are received by my web server from blockchain.info since +/- 9 February.
I receive callback requests almost daily using the blockchain.info API, this has stopped since 9 February.
The following status page mentions that there where API issues on 9 February 2021.
https://www.blockchain-status.com/
Does someone know the cause and fix for this.

Welcome to the club. So far no one has received a response on any of these problem reports. It's like the company has no devs here.


Decl'HDF5 file chunking

In GitLab by @agueroud on May 27, 2021, 16:57
I suggest to add an option in Decl'HDF5 about writing chunked files, for the moment you can only write contiguous ones.

duplicate of #324


[BUG] Errors in multi-master node to get replica

Describe the bug
We are trying to setup Keydb as 4 node multi-master setup between two datacenters for disaster recovery.
Nodes trying to get the replica from master are producing errors
== CRITICAL == This replica is sending an error to its master: ‘Invalid MVCC Tstamp’ after processing the command ‘KEYDB.MVCCRESTORE’
Latest backlog is: ‘“b4-46fd-819b-a879a588c46d\r\n$153\r\n*5\r\n$17\r\nKEYDB.MVCCRESTORE\r\n$44\r\nmyvine:STAT:C271F2F6588DD73BE0530502020A5897\r\n$20\r\n18446744073709551615\r\n$13\r\n1626350182830\r\n$20\r\n\x00\b18763:10\t\x00H\xda\x1a\xd4\xcbZ\xd0\xa1\r\n\r\n$1\r\n0\r\n$19\r\n1700941248263623573\r\n\r\n$1\r\n0\r\n$19\r\n1700941309739532331\r\n”’
Sending these errors between the nodes and to push these to kibana will also cause the network to oversaturate and cause connections to clients to break => the nodes will bounce up and down and the clients will loose connections.
To reproduce

We have about 3GB data in Redis. One master, two replicas
We convert the replica nodes from redis to keydb, the master is still Redis
Take master Redis offline => Sentinel will make one of the keydb nodes master
upgrade last Redis to KeyDB
Take all other nodes offline but the one master
Change the config files to default keyDB + to multi-master
take first multi-master node online
=> errors are logged and the whole system bounces up and down

The more nodes I try to add, the worse the situation will get. It is possible to get two multi-master nodes online after waiting few hours for the situation to stabilise, but I cannot get the thirds node online + the unavailability of KeyDB will make it impossible to wait for long time.
Expected behavior
No error logging + the missing timestamp should be added on suitable place
Additional information
Investigated a bit of the Redis source code vs Keydb. Looks like Redis does not use timestamps at all
So maybe the problem is simply this:
the RDB file is from Redis and does not have timestamps and KeyDB is streaming it to new node which then complains about this
And solution would be
a) ignore the missing timestamp in initial replicaof-load in replica and just add new timestamp?
b) add the missing timestamp during the streaming from master
I guess the b) would be better so that the timestamps would be the same in both.

We have trouble with the same error, even when doing a FLUSHALL before starting the second node. In both multi-master and master-master modes (2 vs. 3 nodes).

I've got this problem setting up a master-master today but it was a fresh install (not a Redis before). I'm running KeyDB v6.0.18.
It seemed to happen after i configured ACLs for replication, but it might be a coincidence. Any clues on what causes this?
I might try a fresh install again and try to reproduce it later.

Hi all.
The 'Invalid MVCC Tstamp' error was due to a bug where we were interpreting the MVCC_INVALID code incorrectly when attempting to restore it (The MVCC_INVALID timestamp exists if a key was written by either Redis or KeyDB without active replication enabled). This has been fixed with #334 which is slated to be included in the next release.
In addition, if you're noticing KeyDB specifically is killing connections and causing up and down behaviour, it may be tied to the client-output-buffer-limit replica being set too low (similar to #309). In that case, you can try increasing them past the default, or even setting it to "0 0 0" to remove the limits entirely.

Hi again all,
The fix has been included with the release of v6.2.0, you should now no longer have your logs flooded with Invalid 'MVCC Tstamp errors' upon loading in a Redis .rdb file while in active-replication mode.


added possibility to re-generate client configs

added possibility to re-generate client configs

Sorry, not interested in merging this.


Sad

MacOS Catalina.

Yes, very unfortunate 😞
Apple has killed the old "standard" javascript browser extensions. 🤷♂


License

Hey, could we add a license to this - just curious if I can fork it and add some features to the billboards that might alter how this entire thing works.

Sure thing.. I've added MIT license.
If you prefer, I can just add you as a contributor with full permissions..
Have a great time @bipolalam!

@netanelgilad either works with me - whatever you'd prefer.  I'd just to add features like, auto-updating the positions on the billboards and labels and such.
Thanks for the license.

Go ahead and fork it :)
I'm not maintaining it any way at the moment, and if you plan on maintaining it then it should be under your name :beers:

@netanelgilad sure, I'd love to be contributor!  Thanks Netanel. :beers:


Maximum row reach?

I am having a problem. While, not many rows works ok, when I have many of them it doesn't work, showing the no data message.
I am calling the json with the load data method of controller
 controller: {
            loadData: function (filter) {
                return $.ajax({
                    type: "GET",
                    url: urlLoadData,
                    data: filter,
                    dataType: "json"
                });
            },
        },

The json in both cases is ok. Is any limit on characters length? (it has 1265496 characters)
Thanks

Probably this is just to much for the browser to render. Virtual scrolling is not supported out-of-box.
I suggest you considering loading data by pages, loading huge amount of data to the client at once is not the best design anyway, for instance what's going to happen on mobile...


Create relayer deployable configuration

Summary
The IBC relay is an important part of the blockchain infrastructure that should be run by multiple parties to ensure seamless transfer of assets between Provenance and Cosmos Hub (or other Cosmos chains).  In order to ensure this capability is provided a reference deployment of the Hermes relay should be provided.
Problem Definition
If there is not continuous and reliable relay between chains funds can be lost/locked.  To ensure this does not occur at least one instance of the IBC relayer must be running on a continuous basis.
Proposal
Create a deployment configuration and associated documentation for running an IBC relayer for the Provenance Blockchain against the CosmosHub (reference implementation.  Run a reference relayer instance within the provenance-io infrastructure.
Relay documentation
https://hermes.informal.systems
Releases
https://github.com/informalsystems/ibc-rs/releases

For Admin Use

[ ] Not duplicate issue
[ ] Appropriate labels applied
[ ] Appropriate contributors tagged
[ ] Contributor assigned/self-assigned

@channa-figure please update/attach information from your work on this.


Implement the 'frontend' of public-private dependencies

This is part of https://github.com/rust-lang/rust/issues/44663
This implements the 'frontend' portion of RFC 1977. Once PRs https://github.com/rust-lang/rust/pull/59335 and https://github.com/rust-lang/crates.io/pull/1685 are merged,
it will be possible to test the full public-private dependency feature:
marking a dependency a public, seeing exported_private_dependencies
warnings from rustc, and seeing pub-dep-reachability errors from Cargo.
Everything in this commit should be fully backwards-compatible - users
who don't enable the 'public-dependency' cargo feature won't notice any
changes.
Note that this commit does not implement the remaining two features of
the RFC:

Choosing smallest versions when 'cargo publish' is run
Turning exported_private_dependencies warnings into hard errors when 'cargo publish' is run

The former is a major change to Cargo's behavior, and should be done in a separate PR with some kind of rollout plan.
The latter is described by the RFC as being enabled at 'some point in the future'. This can be done via a follow-up PR.

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nrc (or someone else) soon.
If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.
Please see the contribution instructions for more information.

Note that this PR requires https://github.com/rust-lang/rust/pull/59335 to be merged for the tests to pass, since rustc's handling of --extern-private is currently broken.

:umbrella: The latest upstream changes (presumably #6759) made this pull request unmergeable. Please resolve the merge conflicts.

@nrc: Now that https://github.com/rust-lang/rust/pull/59335 has been merged, this PR is ready for review.

:umbrella: The latest upstream changes (presumably #6840) made this pull request unmergeable. Please resolve the merge conflicts.

Maybe this is a question for @Eh2406, but when using renamed dependencies with this feature, I am getting a resolver error:
error: failed to select a version for `priv_dep`.
    ... required by package `foo v0.0.1 (/Users/eric/Proj/rust/cargo/target/cit/t0/foo)`
versions that meet the requirements `= 0.2.0` are: 0.2.0

all possible versions conflict with previously selected packages.

  previously selected package `foo v0.0.1 (/Users/eric/Proj/rust/cargo/target/cit/t0/foo)`

failed to select a version for `priv_dep` which could resolve this conflict

My dependencies are:
[dependencies]
priv_dep = "0.1.0"
priv_dep2 = {version="0.2.0", package="priv_dep"}

This does not happen if the feature is turned off.

@ehuss the rename thing is a known unresolved question, see discussion at https://github.com/rust-lang/cargo/issues/6129#issuecomment-464845052

Ah!  Hopefully it won't be too difficult to fix.
Also, I noticed that the diagnostic lint uses the original crate name with renamed dependencies (when there is only one rename).  I'm wondering if that might be confusing.  For example, if you have:
[dependencies]
my_much_better_name = {version="0.1.0", package="priv_dep"}

You get a message like:
warning: type `my_much_better_name::FromPriv` from private dependency 'priv_dep' in public interface

It's probably fine, just contemplating out-loud.

@ehuss:

Are you planning to add the public field to the publish code after rust-lang/crates.io#1685 is done in a separate PR?

Yes, I am. There was some discussion around what the exact index format should be (in regard to how it will interact with renamed dependencies).

I think maybe it needs to only issue warnings for library targets? Otherwise, you'll get unwanted warnings for leaking in binaries, tests, etc. I think, maybe, just check unit.target.is_lib() to determine if --extern-private should be used?

I think it makes more sense to emit it unconditionally, at least for now. Binary crates can still 'export' types (to the rest of the crate) by marking them as pub. I don't know how useful the lint will end up being for binary crates in practice, but I think it should be on by default to allow people to easily try it out.

@ehuss: I've made the changes you requested, and respoded to your questions.

@ehuss: I've modified the PR to only pass --extern-private or --extern. There's currently a spurious macOS failure affecting all Cargo prs, so the build isn't passing atm.

:umbrella: The latest upstream changes (presumably #6860) made this pull request unmergeable. Please resolve the merge conflicts.

Sorry about the delay.  The travis issues were related to rustup, they should be fixed now.
Can you add the restrictions noted in https://github.com/rust-lang/cargo/pull/6772#discussion_r276779828?  I think it makes sense to reject public in dev or build dependencies for now (probably somewhere in the toml parsing).
After rebasing, addressing the minor style nit, and the restrictions, I think this should be ready to go. Thanks so much!

@ehuss: Rebased and updated

Nice!  I can't think of anything else, so let's do it!  Let us know if you need any help with the publishing side of things.
@bors r+

:pushpin: Commit f4aac94f12b293d51064babdefd1c8c3e3d593b0 has been approved by ehuss

:hourglass: Testing commit f4aac94f12b293d51064babdefd1c8c3e3d593b0 with merge 7b13469ee90a24fa5aa06166d447dac3370846ef...

:sunny: Test successful - checks-travis, status-appveyor
Approved by: ehuss
Pushing 7b13469ee90a24fa5aa06166d447dac3370846ef to master...


Restore identicon to their former beauty

Abstract
Fix identicons
Testing

Open MPW
Stare in awe at the new identicons

master:

This PR:

Fixed


Transformers/harvesters ground markers are invisible

In item_transformer.cfg there is an option to change color (r=0,g=125,b=255, -- color), but the ground marker do not appear to be visible. Even with default config, water_tree harvester is invisible.

Hello, base when you ask for something, it's politeness
(Hello, hello, good night, etc ...)
If you want to get answers

@Bandit33800 I consider GitHub to be a developer chat - the shorter the better, cut straight to the point. You know, it saves a lot of time when you do not need to not read through a wall of text of "politeness".

I think especially that when one is a minimum educated one uses the rules of politeness
And if you would be a minimun developer you will not ask a question on this subject
Also easy
Read the description of the GitHub

Item transformers doesn't have markers, the color is for the menu.


MiLoPyP particle refined localization training

Hi,
I am using the MiLoPyp for the rubisco particle picking.  I directly used the particle position coordinates and cryocare-denoised ( around 7 A/pixel) tomograms for the MiLoPyP particle refined localization module training. However, I faced the following problems: Loss value became NaN. Do you guys have some suggestions?
(MiLoPYP2) petervan@GLaDOS:~/Software/cet_pick/cet_pick$ python main.py semi --down_ratio 2 --num_epochs 10 --bbox 22 --exp_id rubiscosample_refinement --dataset semi --arch unet_5 --save_all --debug 4  --thresh 0.85 --cr_weight 0.1 --temp 0.07 --tau 0.01 --lr 5e-4 --train_img_txt rubiscotest_img.txt --train_coord_txt rubisco_training_coordinates.txt  --K 1000 --compress --order xyz  --last_k 3 --gpus 0 --val_interval 1 --val_img_txt rubiscotest_img.txt --val_coord_txt rubisco_training_coordinates.txt --contrastive
Using tensorboardX
Training chunk_sizes: [1]
The output will be saved to  /home/petervan/Software/cet_pick/cet_pick/exp/semi/rubiscosample_refinement
heads {'hm': 1, 'proj': 32}
Creating model...
Setting up data...
 Is the tomogram in x-y-z order and the particle coordinates in x y z order as well? A possible way to test it out is to use the same files for both training and validation and set --val_intervals to 1  and check the debug folder for *_gt_hm.png files

will be adding a function to visually check if input tomogram and coordinates match

Is there anything in the debug folder?
On Wed, Oct 30, 2024 at 6:36 PM petervan @.***> wrote:

Hi Qinwen,
the tomogram and particle coordinates are both in x y z order. I also used
these for the cryolo training. I also set the same file for both training
and validation and set --val_intervals to 1. But I didn't find *_gt_hm.png
files in my debug folder.
—
Reply to this email directly, view it on GitHub
https://github.com/nextpyp/cet_pick/issues/6#issuecomment-2448830582,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AC6WUGCZMSXLBHGWKR6LCLLZ6GCTJAVCNFSM6AAAAABQ5IZOMKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBYHAZTANJYGI
.
You are receiving this because you commented.Message ID:
@.***>

Just to quickly test if it’s the input file problem - for the header row
can you change x_coord to y_coord and y_coord to x_coord? And rerun to see
if the nan error still exists?
On Wed, Oct 30, 2024 at 6:36 PM petervan @.***> wrote:

Hi Qinwen,
the tomogram and particle coordinates are both in x y z order. I also used
these for the cryolo training. I also set the same file for both training
and validation and set --val_intervals to 1. But I didn't find *_gt_hm.png
files in my debug folder.
—
Reply to this email directly, view it on GitHub
https://github.com/nextpyp/cet_pick/issues/6#issuecomment-2448830582,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AC6WUGCZMSXLBHGWKR6LCLLZ6GCTJAVCNFSM6AAAAABQ5IZOMKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBYHAZTANJYGI
.
You are receiving this because you commented.Message ID:
@.***>

Hi Qinwen,
I changed the x_coord to y_coord and y_coord to x_coord on the header row. it still exist the nan value in the loss. I haven't seen anything in the debug folder.  Another question regarding the bb_boxize. Additionally, I have a question about bb_boxize. I used the particle diameter in voxels calculated from my tomogram. Is it appropriate?

we updated the code and hopefully it will solve the problem/or give us a clear picture on why NaNs are happening. can you retry using the following command:
python main.py semi --down_ratio 2 --num_epochs 10 --bbox 22 --exp_id rubiscosample_refinement --dataset semi --arch unet_5 --save_all --debug 4 --thresh 0.85 --cr_weight 0.1 --temp 0.07 --tau 0.01 --lr 5e-4 --train_img_txt rubiscotest_img.txt --train_coord_txt rubisco_training_coordinates.txt --K 1000 --compress --order xyz --last_k 3 --gpus 0 --val_intervals 1 --val_img_txt rubiscotest_img.txt --val_coord_txt rubisco_training_coordinates.txt --contrastive --translation_ratio 0.2

OK, I will try it. Thank you Qinwen!


Source Maps for Release Build

Short description of the problem:
I am using an error logging provider (Sentry) which allows uploading source maps. Benefit would be, that I don't see the minified stacktrace if any errors occur, but the original stacktrace, which would help much sorting out problems.
But currently I cannot find a way to generate SEPARATE source maps while using a release build like
ionic cordova build android --release --prod
I do not want the source maps to be included in the APK/IPA, but I want them to be available separately, so I can upload them to Sentry.
What behavior are you expecting?
I would like to have an option like
ionic cordova build android --release --prod --sourcemap C:\someCustomPath\
Which does the release build (as currently) but additionally stores a source map at the provided path NOT included in the APK

https://forum.ionicframework.com/t/error-logging-with-sentry-io-and-sourcemap/109469

Sorry I forgott to comment it. I opened a forum request for sentry integration have a look on it.
https://forum.ionicframework.com/t/error-logging-with-sentry-io-and-sourcemap/109469


Font sizes

I would like to use this gauge in a project currently using Swift Gauge. The Apple version requires iOS 16+ and I need compatibility with older devices that cannot run 16. I use 3 gauges in my project, all on the same view.  So they are reduced considerably.
Is there a way to change the font sizes?
The numeric value is about half the size of the Apple gauge, and the title is downright microscopic. Setting the Title to ""  caused the Value to be displayed on the top third of the gauge.
Thanks!

First of all, sorry about the late response to your issue. I have been a little bit "afk" when it comes to development of GaugeKit in the last six months for several reasons, but I will gladly have a look this soon.
At the moment I'm not entirely sure how I would implement custom font sizes, but I'll have a look and see what I can come up with. How would you prefer it would work? View modifiers?


feat: implement self-balance & update gas table

Purpose
EVM PR: https://github.com/Taraxa-project/taraxa-evm/pull/131
also depends on previous PR
How does the solution address the problem

Changes made

prnet cleaned-up successfully


Can we specify the layers you are interested in for a custom nn ?

I am currently deploying a custom neural network on a DepthAI device, leveraging a RegNet backbone followed by two fully connected layers. Based on its architecture, I anticipated a superior frame rate performance compared to traditional object detectors. For context, models like MobileNet SSD achieve around 30 FPS on the same setup. However, my custom model is significantly underperforming in terms of speed, yielding only about 2 FPS.
I suspect the bottleneck may be due to the model's output handling, where the device waits for the entire neural network (NN) message before proceeding. This leads me to question if there's a method to predefine the layers of interest, allowing me to streamline the output process by focusing only on specific layers' data before executing the xout function. Such a capability would presumably reduce processing time and enhance frame rate efficiency.
Is there an existing feature within the DepthAI API or a workaround that facilitates this selective output processing? Any guidance on optimizing the FPS by limiting the output to certain layers would be greatly appreciated.

@tersekmatija do you perhaps know if there are any tools from openvino that would "benchmark" model's layers?

Just to add on to it, the output layers in my network are 217 and 222, I want to just access them with xout nothing else.

Not sure how your code currently looks like (where the post-processing of the outputs happen), but when you are compiling the model, you can provide --output flag to model optimizer. You should name the output layers there, and this will essentially cut away all the layers that follow. I assume this is what you are looking for?
If you want to define multiple outputs and get results from an earlier layer sooner than from the last layer, this is not something that we currently expose.

I'm using blobconvertor, from_onxx function. It appears that this function doesn't take the outputs argument.

Not directly, but you can pass it as part of model optimizer arguments.

Can you point me to an example ?

You should be able to do it in the same manner as for TensorFlow described here

Can I have multiple outputs ?


[Feature Request] 3-Pane View

It would be nice if it had an option to show 3 panes which would consist of the following:

The folder list in the left one.
The message list of the selected folder in the upper right one.
The selected message's content in the lower left one.

The design overhaul will probably allow this when it makes the folder view a drawer rather than a separate screen. On a tablet this will probably result in 3 effective panes.
I think this is really a k9mail/k-9-design issue.

However, it would be nice if the email list could be above the message view, instead of to the left. I might look at this.

I would like to know how development on this is going, I wanna sue k9 for my tablet as the default e-mail app but as of right now I cannot find the option.
The way outlook does it on a tablet is the way to go in my opinion.
Example of Outlook's layout:


Can't create GraphClient with latest json.net.

Updating json.net to 8.x causes the Graph Client creation to fail - it's looking for 6.x. Rolling back to 6.x fixes the issue

Thanks for pointing this out. I'm following up with the library engineers for more background. Just so that I can have a fuller picture of the issue, is the inability to upgrade your JSON.NET package preventing you from doing anything specific in your code?

I just upgraded the JSON.NET package to 8.0.3 in my own copy of the solution, and I can't reproduce the problem you're seeing. I authenticate, get a Graph client, and send the message successfully. I don't see any change in the app's behavior after the upgrade. Could you pass along the error that you see when you upgrade and try to create a Graph client?

I can repo this by deleting the 6.x folders under c:\users<myname>.nuget\packages\Newtonsoft.Json and doing a clean on the project. Seems there's a hard-coded dependency on the 6.x libraries somewhere

I have reproduced this after following those steps. I've passed this (and the corresponding exception) up to the SDK team.

I filed an SDK bug for this one. Thanks for catching it.

This should be fixed now. Please reopen if it recurs.


Can't Figure Out How to Pass Cookies to Youtube-dl

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

[X] I'm asking a question and not reporting a bug or requesting a feature
[X] I've looked through the README
[X] I've verified that I have updated yt-dlp to nightly or master (update instructions)
[X] I've searched known issues and the bugtracker for similar questions including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue

Please make sure the question is worded well enough to be understood
I can't figure out how to pass cookies to youtube-dl. The commands I've tried:
yt-dlp --cookies F:\Youtube F\ffmpeg-master-latest-win64-gpl\archive\cookies.txt --audio-quality 0 --no-abort-on-error --download-archive downloaded2.txt -o "%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s - %(channel)s.%(upload_date)s" "https://www.youtube.com/watch?v=8JLc7-DrtBQ"
I get ERROR: [generic] 'F\ffmpeg-master-latest-win64-gpl\archive\cookies.txt' is not a valid URL. and ERROR: 'F:\Youtube' does not look like a Netscape format cookies file.
yt-dlp --cookies F:/Youtube F/ffmpeg-master-latest-win64-gpl/archive/cookies.txt --audio-quality 0 --no-abort-on-error --download-archive downloaded2.txt -o "%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s - %(channel)s.%(upload_date)s" "https://www.youtube.com/watch?v=8JLc7-DrtBQ"
same errors as previous
yt-dlp --cookies cookies.txt --audio-quality 0 --no-abort-on-error --download-archive downloaded2.txt -o "%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s - %(channel)s.%(upload_date)s" "https://www.youtube.com/watch?v=8JLc7-DrtBQ"
I get WARNING: [youtube] YouTube said: ERROR - Request contains an invalid argument. and ERROR: [youtube] 8JLc7-DrtBQ: Requested format is not available. Use --list-formats for a list of available formats.
yt-dlp --cookies cookies --audio-quality 0 --no-abort-on-error --download-archive downloaded2.txt -o "%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s - %(channel)s.%(upload_date)s" "https://www.youtube.com/watch?v=8JLc7-DrtBQ"
I get ERROR: [youtube] 8JLc7-DrtBQ: Sign in to confirm you’re not a bot. This helps protect our community. Learn more.
My issue is that I am seemingly ip banned as every time I try to use youtube-dl I get the "sign in to confirm you're not a bot error."
I read that passing in cookies is the only way to solve this, but cannot get the command line to work. For extra context, the cookies file is in the folder path F:\Youtube F\ffmpeg-master-latest-win64-gpl\archive and is a text file named "cookies"
Provide verbose output that clearly demonstrates the problem

[ ] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[ ] If using API, add 'verbose': True to YoutubeDL params instead
[ ] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
No response

If F:\Youtube F\ffmpeg-master-latest-win64-gpl\archive\cookies.txt is actually your exported cookie file, you need to "quote it"; otherwise replace that string by the correct pathname, quoted if it contains spaces. Or use the --cookies-from-browser ... option instead

If F:\Youtube F\ffmpeg-master-latest-win64-gpl\archive\cookies.txt is actually your exported cookie file, you need to "quote it"; otherwise replace that string by the correct pathname, quoted if it contains spaces. Or use the --cookies-from-browser ... option instead

I renamed the file path to remove spaces and then tried the commands
yt-dlp --cookies "F:\Youtube-F\ffmpeg-master-latest-win64-gpl\archive\cookies.txt" "https://www.youtube.com/watch?v=8JLc7-DrtBQ"
and
yt-dlp --cookies-from-browser firefox "https://www.youtube.com/watch?v=8JLc7-DrtBQ"
but both commands give me
WARNING: [youtube] YouTube said: ERROR - Request contains an invalid argument.
WARNING: [youtube] HTTP Error 400: Bad Request. Retrying (1/3)...
WARNING: [youtube] Unable to download API page: HTTP Error 400: Bad Request (caused by <HTTPError 400: Bad Request>)
WARNING: [youtube] 8JLc7-DrtBQ: nsig extraction failed: Some formats may be missing
n = S9JjgMWe3H5drOa98 ; player = https://www.youtube.com/s/player/03dbdfab/player_ias.vflset/en_US/base.js
WARNING: Only images are available for download. use --list-formats to see them
ERROR: [youtube] 8JLc7-DrtBQ: Requested format is not available. Use --list-formats for a list of available formats

I can download that video without cookies: yt-dlp  "https://www.youtube.com/watch?v=8JLc7-DrtBQ" - I suspect you are actually running into another issue (possibly the rate limiting one, but that should say http 403 and not http 400)
But to get support here you need the verbose log as indicated in the issue template, so please try this:
yt-dlp -vU --cookies-from-browser firefox "https://www.youtube.com/watch?v=8JLc7-DrtBQ"

I get WARNING: [youtube] YouTube said: ERROR - Request contains an invalid argument. and ERROR: [youtube] 8JLc7-DrtBQ: Requested format is not available. Use --list-formats for a list of available formats.

The cookies are working in this attempt; but your yt-dlp is out-of-date


[Feature] Drag and drop with multi-directional scrollable behavior

The idea is that the GridView of cards is too large for the screen so I have 2 SingleChildScrollView, one for each direction. It's best to test with a phone rather than a tablet. There are 2 issues.

The enableScrollingWhileDragging doesn't seem to work
The drag and drop reordering doesn't work after you scroll the window. In the gif below you can see it works at first, then after you scroll the window, the drag and drop position is off.

I tried moving the SingleChildScrollView to the top after the body, same result. Portrait and Landscape orientation produces the same result. Tried it with InteractiveViewer as well and that seems to exhibit buddy behavior as well.
Am I doing something wrong? Thanks!!!!
Updated my example repo.
https://github.com/tsquillario/flutter-reorderable-grid-view-example1

Hi @tsquillario
Thanks for opening the issue. I never used it that way that I had 2 SingleChildScrollView. I have to check if that is even possible with my code. I think currently I just use the scroll position of one of your SingleChildScrollView which means that the drag and drop would be buggy in one scroll direction if you have two. If I can get access to both, then I think it should be possible to drag and drop in both scrolling directions.
I will check that this week, possibly on the week-end.

Found another potential issue. I added a zoom control to resize the GridView. When you zoom in or out the size of the card changes but the drag preview doesn't.
Create a separate branch for InteractiveViewer I think that may be the better widget to use for this.
https://github.com/tsquillario/flutter-reorderable-grid-view-example1/tree/interactiveviewer

Yeah the main issue is that I always expected that you return a GridView directly and not any other widgets like InteractiveViewer. So that's the reason why it does not work well with a zoom because at the beginning I save the size of every item but when the size changes, I don't get any notification about that.
I think that might be a feature in the future like your other request having a two dimensional scrolling. I think this evening I have some time to think about a solution and if it's easy to implement or not.
But thank you already for testing these things, that helps me a lot! :) @tsquillario

Found this, seems related
https://github.com/flutter/flutter/pull/73143

Realizing even if you can figure out how to get InteractiveViewer working it's probably going to be a lot of work and will take a while. I need a short term solution so I decided to hold off on InteractiveViewer. I can get away with vertical scrolling only (for use when in landscape orientation) and leave the GridView to fit to the screen width. I can readjust the fontSize accordingly when flipping from portrait to landscape.
I'm experiencing 2 issues here:

When you scroll the GridView down in landscape orientation on a phone emulator the drag and drop is incorrectly offset. Similar to the original issue.
The enableScrollingWhileDragging isn't working

Maybe I'm doing something wrong here....
Updated the master branch to reproduce the issue.
https://github.com/tsquillario/flutter-reorderable-grid-view-example1

Was fixed by adding a ScrollController.
Still an issue

Update. When I remove ConstrainedBox enableScrollingWhileDragging works but the drag offset is off like in 1.

Thank you for testing so much, tomorrow I will also investigate that and come back if I have some news for you :) @tsquillario

So one issue was that the widget you return doesn't have a key because usually I would expect a GridView with a key. If you add the key to the Padding, the scrolling works but there seems to be a bug because the position changes are incorrectly. @tsquillario

Update: I fixed your issue, I did something wrong using the scrolling values and always calculated the positions in both directions with the same values. That leaded to wrong values in one direction.
I faced another issue, that items aren't correctly visible, so I will try to fix that too and will release an update after that. @tsquillario

I released version 5.0.0-dev.5 that should fix your issue. Make sure that the child, you return in builder has a key that you declared at the top. @tsquillario

Sweet, works great now! I'll leave this open and update the issue to be specific to InteractiveViewer support. That would be a nice feature but low on the priority list. None of the other reordable gridview packages support it either.

Well, we're so close! While implementing the changes in my app I have the GridView inside a Column as a child of a SingleChildScrollView. This breaks the drag auto scroll.
Updated the example
https://github.com/tsquillario/flutter-reorderable-grid-view-example1

Ill check that on Sunday 👍 @tsquillario


"En Passant" Move Not Functioning Correctly

Description
While playing a game in the Normal game mode, I attempted to perform an "en passant" move with a black pawn to capture a white pawn that had moved forward two squares in the previous turn. Although the black pawn moved to the correct position, the white pawn did not disappear from the board as it should have according to the rules of chess.
To Reproduce

Clone the repository using git clone https://github.com/thomas-mauran/chess-tui.git
Run the project using cargo run.
Select the Normal game mode from the main menu.
Play the following moves:

♟ e2-e4     ♙ e2-e4
♚ e1-e2     ♙ e4-d5
♟ f2-f4     ♙ d5-c6

Expected behavior
The white pawn should be removed from the board when the black pawn moves to its capture position during the "en passant" move.
Screenshots

Environment

OS: MacOS
Terminal Emulator: kitty
Font: Hack Nerd Font
Crate version: 1.4.0

Nice catch, fixing that tonight


Circular alias error

this fixes a stack overflow when resolving aliases on imported modules.

:+1:

Thinking about this more, I think the following code may be negatively affected by your fix:
module outer {
    export module mod { }
    export import alias = mod;
    export var alias: number;
}
import im = outer.alias; // Try to get the type of 'im'

I haven't tried this out. But if I'm not mistaken, before your fix, the type of im would be computed from the type of the var alias, which is number. Whereas now, it would obtain the alias symbol, see that it's an alias, and continue on to the module mod, which does not have a type.

In that case, I think the best fix will involve some additional plumbing meaning parameters.


Can't parse headers when using .options()

The following is the test definition:
api = supertest(url);

describe('when OPTIONS', function () {
    it('should return only method GET', function (done) {
      api
        .options('/')
        .expect('Allow', 'GET')
        .expect(200, done);
    });
  });

Its keeping triggering the following error:
Uncaught TypeError: Cannot read property 'header' of undefined
      at _stream_readable.js:944:16

I already tried a lot of things without being able to make this work.
I 'm using supertest ^1.0.1 and it worked fine with version ~0.13.0.

When
 api
        .options('/')
        .end(function(error,res){
          if (error) return done(error);
          done()
        });

It says:
SyntaxError: Unexpected token G
      at Object.parse (native)
      at _stream_readable.js:944:16

I already detected the issue, it was that in the API I was returning an OPTIONS response with Content-Type: application/json but the body was an invalid JSON (it was GET,HEAD).
There is away that the library  can improve the error message for this case? If such a message would be Invalid JSON response or Can parse body it would be detected easier.
Thanks


fix: address sonar major issues

Description

Addresses some of the issues marked as "major" in our sonar report

:tada: This PR is included in version 1.17.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Flattening without Default

Hi,
Thanks for this great project, it save me a lot of time mapping DTOs/BOs !
I was wondering if there could be a way to generate Into with struct flattening without relying on Default, ex:
// Source, built from my API, and is missing some ids extracted from auth or other sources
struct EntityNew {
    name: String
    description: String
}

// this struct is built within the Domain layer just for o2o mapping, wrapping the API object and extracted fields
#[owned_into(EntityNewBO)]
struct EntityNewWrapper {
   #[flatten]
    wrapped: EntityNew
    id: Uuid
    user_id: Uuid
    computed_field: Int
}

// Target object. A default on this doesn't make much sense and bear the risk of missing compilation errors when adding fields
struct EntityNewBO {
    id: Uuid
    user_id: Uuid
    computed_field: Int
    name: String
    description: String
}

Hi, thanks for such high evaluation of o2o!
The problem with theoretic #[flatten] attribute is that there is no way for proc macro to know what fields wrapped: EntityNew has. It may even not be a struct. So you have to somehow let o2o know about those fields. Since you need to do Into, you can do this:
#[owned_into(EntityNewBO)]
#[ghosts(name: { @.wrapped.name }, description: { @.wrapped.description })]
struct EntityNewWrapper {
    #[ghost]
    wrapped: EntityNew,
    id: Uuid,
    user_id: Uuid,
    computed_field: Int,
}

If there is an option to put o2o macro on the other side of a mapping, you can also do this:
#[from_owned(EntityNewWrapper)]
struct EntityNewBO {
    id: Uuid,
    user_id: Uuid,
    computed_field: Int,
    #[child(wrapped)] name: String,
    #[child(wrapped)] description: String,
}

Please post here or create new issue if you have any other questions!

Actually I had an idea that can make things a little better in such cases, so I`ll keep this one open)

Hi @utomdht, it took me a long time to implement this, but there's finally a version v0.5.0 that can help in your case.
struct EntityNew {
    name: String,
    description: String
}

// this struct is built within the Domain layer just for o2o mapping, wrapping the API object and extracted fields
#[derive(o2o::o2o)]
#[map_owned(EntityNewBO)]
struct EntityNewWrapper {
    #[parent(name, description)] // <--- parent instruction here does what you want
    wrapped: EntityNew,
    id: Uuid,
    user_id: Uuid,
    computed_field: i32
}

// Target object. A default on this doesn't make much sense and bear the risk of missing compilation errors when adding fields
struct EntityNewBO {
    id: Uuid,
    user_id: Uuid,
    computed_field: i32,
    name: String,
    description: String
}

This example will generate following code:
impl ::core::convert::From<EntityNewBO> for EntityNewWrapper {
    fn from(value: EntityNewBO) -> EntityNewWrapper {
        EntityNewWrapper {
            wrapped: EntityNew { name: value.name, description: value.description },
            id: value.id,
            user_id: value.user_id,
            computed_field: value.computed_field,
        }
    }
}
impl ::core::convert::Into<EntityNewBO> for EntityNewWrapper {
    fn into(self) -> EntityNewBO {
        EntityNewBO {
            name: self.wrapped.name,
            description: self.wrapped.description,
            id: self.id,
            user_id: self.user_id,
            computed_field: self.computed_field,
        }
    }
}

You can check out this section of readme for a little bit more info.

Hey @Artem-Romanenia , that's great !  Thanks for working on this :raised_hands: