azure-storage-blobs example code does not compile on macOS

Describe the bug
The blobs example code on the azure-sdk-for-cpp landing page does not compile on macOS. I use CMake from the command line.
Exception or Stack Trace
cmake --build build/ --config Debug
[ 50%] Building CXX object CMakeFiles/blobs-demo.dir/blobs_demo.cpp.o
In file included from /Users/XXXX/Projects/azure/sdk_examples/blob/blobs_demo.cpp:1:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/iostream:37:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/ios:215:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__locale:14:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string:504:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string_view:175:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__string:56:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:4324:5: error: static_assert failed due to requirement
      'is_constructible<Azure::Storage::StorageSharedKeyCredential, Azure::Storage::StorageSharedKeyCredential>::value'
      "Can't construct object in make_shared"
    static_assert( is_constructible<_Tp, _Args...>::value, "Can't construct object in make_shared" );
    ^              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:4709:29: note: in instantiation of function template
      specialization
      'std::__1::shared_ptr<Azure::Storage::StorageSharedKeyCredential>::make_shared<Azure::Storage::StorageSharedKeyCredential>'
      requested here
    return shared_ptr<_Tp>::make_shared(_VSTD::forward<_Args>(__args)...);
                            ^
/Users/XXXX/Projects/azure/sdk_examples/blob/blobs_demo.cpp:25:37: note: in instantiation of function template
      specialization 'std::__1::make_shared<Azure::Storage::StorageSharedKeyCredential,
      Azure::Storage::StorageSharedKeyCredential>' requested here
    auto sharedKeyCredential = std::make_shared<StorageSharedKeyCredential>(
                                    ^
In file included from /Users/XXXX/Projects/azure/sdk_examples/blob/blobs_demo.cpp:1:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/iostream:37:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/ios:215:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__locale:14:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string:504:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string_view:175:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__string:56:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:2155:9: error: call to implicitly-deleted copy constructor of
      'Azure::Storage::StorageSharedKeyCredential'
      : __value_(_VSTD::forward<_Args>(_VSTD::get<_Indexes>(__args))...) {}
        ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:2258:9: note: in instantiation of function template
      specialization 'std::__1::__compressed_pair_elem<Azure::Storage::StorageSharedKeyCredential, 1,
      false>::__compressed_pair_elem<Azure::Storage::StorageSharedKeyCredential &&, 0>' requested here
        _Base2(__pc, _VSTD::move(__second_args),
        ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:3671:16: note: in instantiation of function template
      specialization 'std::__1::__compressed_pair<std::__1::allocator<Azure::Storage::StorageSharedKeyCredential>,
      Azure::Storage::StorageSharedKeyCredential>::__compressed_pair<std::__1::allocator<Azure::Storage::StorageSharedKeyCredential>
      &, Azure::Storage::StorageSharedKeyCredential &&>' requested here
            :  __data_(piecewise_construct, _VSTD::forward_as_tuple(__a),
               ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:4330:26: note: in instantiation of function template
      specialization 'std::__1::__shared_ptr_emplace<Azure::Storage::StorageSharedKeyCredential,
      std::__1::allocator<Azure::Storage::StorageSharedKeyCredential>
      >::__shared_ptr_emplace<Azure::Storage::StorageSharedKeyCredential>' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:4709:29: note: in instantiation of function template
      specialization
      'std::__1::shared_ptr<Azure::Storage::StorageSharedKeyCredential>::make_shared<Azure::Storage::StorageSharedKeyCredential>'
      requested here
    return shared_ptr<_Tp>::make_shared(_VSTD::forward<_Args>(__args)...);
                            ^
/Users/XXXX/Projects/azure/sdk_examples/blob/blobs_demo.cpp:25:37: note: in instantiation of function template
      specialization 'std::__1::make_shared<Azure::Storage::StorageSharedKeyCredential,
      Azure::Storage::StorageSharedKeyCredential>' requested here
    auto sharedKeyCredential = std::make_shared<StorageSharedKeyCredential>(
                                    ^
/Users/XXXX/Projects/vcpkg/installed/x64-osx/include/azure/storage/common/storage_credential.hpp:72:24: note: copy
      constructor of 'StorageSharedKeyCredential' is implicitly deleted because field 'm_mutex' has an inaccessible copy
      constructor
    mutable std::mutex m_mutex;
                       ^
2 errors generated.
gmake[2]: *** [CMakeFiles/blobs-demo.dir/build.make:76: CMakeFiles/blobs-demo.dir/blobs_demo.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/blobs-demo.dir/all] Error 2
gmake: *** [Makefile:91: all] Error 2

To Reproduce
Compile the code below with CMake.
Code Snippet
CMakeLists.txt
cmake_minimum_required (VERSION 3.17)
project (SDK-DEMOS VERSION 1.0 LANGUAGES CXX)

set (CMAKE_CXX_STANDARD 17)
set (CMAKE_CXX_STANDARD_REQUIRED ON)
set (CMAKE_CXX_EXTENSIONS OFF)

set ( target_app "blobs-demo" )

find_package (azure-storage-blobs-cpp CONFIG REQUIRED)
add_executable (${target_app} "blobs_demo.cpp")
target_link_libraries (${target_app} PRIVATE Azure::azure-storage-blobs)

blobs_demo.cpp (copied from GitHub website)
#include <iostream>

// Include the necessary SDK headers
#include <azure/core.hpp>
#include <azure/storage/blobs.hpp>

// Add appropriate using namespace directives
using namespace Azure::Storage;
using namespace Azure::Storage::Blobs;

// Secrets should be stored & retrieved from secure locations such as Azure::KeyVault. For
// convenience and brevity of samples, the secrets are retrieved from environment variables.
std::string GetEndpointUrl() { return std::getenv("AZURE_STORAGE_ACCOUNT_URL"); }
std::string GetAccountName() { return std::getenv("AZURE_STORAGE_ACCOUNT_NAME"); }
std::string GetAccountKey() { return std::getenv("AZURE_STORAGE_ACCOUNT_KEY"); }

int main()
{
  std::string endpointUrl = GetEndpointUrl();
  std::string accountName = GetAccountName();
  std::string accountKey = GetAccountKey();

  try
  {
    auto sharedKeyCredential = std::make_shared<StorageSharedKeyCredential>(
        StorageSharedKeyCredential(accountName, accountKey));

    auto blockBlobClient = BlockBlobClient(endpointUrl, sharedKeyCredential);

    // Create some data to upload into the blob.
    std::vector<uint8_t> data = {1, 2, 3, 4};
    Azure::Core::IO::MemoryBodyStream stream(data);

    Azure::Response<Models::UploadBlockBlobResult> response = blockBlobClient.Upload(stream);

    Models::UploadBlockBlobResult model = response.Value;
    std::cout << "Last modified date of uploaded blob: " << model.LastModified.ToString()
              << std::endl;
  }
  catch (const Azure::Core::RequestFailedException& e)
  {
    std::cout << "Status Code: " << static_cast<int>(e.StatusCode)
              << ", Reason Phrase: " << e.ReasonPhrase << std::endl;
    std::cout << e.what() << std::endl;
    return 1;
  }
  return 0;
}

Expected behavior
CMake creates the executable.
Setup (please complete the following information):

OS: macOS 10.15.7
IDE : VS Code (latest)
Version of the Library used: 12.0.1
CMake: 3.20.5
vcpkg: latest

vcpkg list output (azure subset)
azure-core-cpp:x64-osx                             1.1.0            Microsoft Azure Core SDK for C++
azure-core-cpp[curl]:x64-osx                                        Libcurl HTTP transport implementation
azure-core-cpp[http]:x64-osx                                        All HTTP transport implementations available on ...
azure-storage-blobs-cpp:x64-osx                    12.0.1           Microsoft Azure Storage Blobs SDK for C++
azure-storage-common-cpp:x64-osx                   12.0.1           Microsoft Azure Common Storage SDK for C++

Additional context
This code does not compile on Windows 10 because of the error described in issue #2579.
CMake created the cache files without complaint.
cmake -B build/ -S sdk_examples/blob/ -DCMAKE_TOOLCHAIN_FILE=/Users/XXXX/Projects/vcpkg/scripts/buildsystems/vcpkg.cmake
-- The CXX compiler identification is AppleClang <IP_ADDRESS>30032
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found LibXml2: /Users/XXXX/Projects/vcpkg/installed/x64-osx/debug/lib/libxml2.a (found version "2.9.10")
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found ZLIB: /Users/XXXX/Projects/vcpkg/installed/x64-osx/debug/lib/libz.a (found version "1.2.11")
-- Found ZLIB: /Users/XXXX/Projects/vcpkg/installed/x64-osx/debug/lib/libz.a (found suitable version "1.2.11", minimum required is "1")
-- Found OpenSSL: /Users/XXXX/Projects/vcpkg/installed/x64-osx/debug/lib/libcrypto.a (found version "1.1.1k")
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/XXXX/Projects/azure/build

Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

[X] Bug Description Added
[X] Repro Steps Added
[X] Setup information Added

In blobs_demo.cpp:
auto sharedKeyCredential = std::make_shared<StorageSharedKeyCredential>(accountName, accountKey);

@tgill880 Can you share the link to blobs_demo.cpp? We should update the demo.

It is copied from the landing page of azure-sdk-for-cpp.
https://github.com/Azure/azure-sdk-for-cpp

Fixed in https://github.com/Azure/azure-sdk-for-cpp/pull/2602

I can confirm the code now compiles. Many thanks.


Install observabilityclient

This patch adds python3-observabilityclient dependency to OpenStack images. The package is new Aodh dependency.

recheck

hmm, still the same error

Checking the logs I can see that delorean repo used was centos9-antelope [1], which doesn't have the package yet [2]. Antelope addition patch was merged on Friday, so maybe we still need some time to get the package built for antelope.
[1] https://logserver.rdoproject.org/04/104/4a68cbc1b433d3ed4a2c420e62bf7a6674ad2fb0/github-check/tcib-build-containers/b959cfd/ci-framework-data/artifacts/repositories/delorean.repo
[2] https://trunk.rdoproject.org/centos9-antelope/component/cloudops/de/40/de404710d4d218ff56ca99e351b342fa9549b4ce_64ba0850/

recheck

Exception information: Unexpected error while running command.
Interesting

recheck

recheck

recheck

recheck able to attach or mount volumes: unmounted volumes=[ring-data], unattached volumes=[swiftconf ring-data config-data-merged scripts kube-api-access-m4bd6 config-data]: timed out waiting for the condition


The change event is not firing

First of all, thanks a lot for this plugin!
I am trying to listen for the change event. Here is what I have done
// drilldown.js
const modelsMenu = document.querySelector('.drilldown-models-menu');

if(modelsMenu != null) {
    modelsMenu.addEventListener('change', e => {
        console.log('change was fired');
    });
}

// this works!
window.addEventListener("load", function () {
    var event = new Event('change');
    modelsMenu .dispatchEvent(event);
});

// activator.js
$(function () {
    // is there no way to this plugin without jQuery?
    $('.content-picker').each((_i, item) => {
        var menu = $(item);
        menu.bsMultiSelect({
            placeholder: menu.attr('placeholder') || ''
        });
    });

});

But for some reason the change event isn't firing. When I manually dispatch the change event on load, it works. But when I select an item from the content-picker menu the change event does not fire. Am I doing something wrong here?

I guess you have initiated the plugin as $(element).bsMultiSelect() And if you initiate it as jQuery plugin, use jquery events $.on. This is standard jquery plugins convention: jquery events for jquery plugin, dom events if you initiate without jquery. If you think I understand it wrong please show me opposite samples.

I guess I understood it wrong. Since this is a  bootstrap 5 plug-in, is there a way to not depend on jQuery? Is there a way to initialize it using vanilla js without jQuery?

https://dashboardcode.github.io/BsMultiSelect/snippetEsm.html

@rpokrovskij Thanks for your help. I am a bit struggling to initialize the plugin.
With out using Module/import, how can one create a new instance?
I am using gulp to concatenate js code into a single file. so in the gulp task I included BsMultiSelect.esm.js along with the below code. But, that did not work.
let menus = document.getElementsByClassName('content-picker');

for (let i = 0; i < menus.length; i++) {
    new BsMultiSelect(menus[i], {
        placeholder: menus[i].getAttribute('placeholder') || ''
    });
}

I also tried the following also, but that gives me dashboardcode undefined.
let menus = document.getElementsByClassName('content-picker');

for (let i = 0; i < menus.length; i++) {
    dashboardcode.BsMultiSelect(menus[i], {
        placeholder: menus[i].getAttribute('placeholder') || ''
    });
}

Thanks for your help

Use second method.

https://dashboardcode.github.io/BsMultiSelect/snippetUmd.html
If you load UMD module you have window.DashboardCode.BsMultiSelect as well as $.fn.BsMultiSelect (if there is $) - here I forward bootstrap 5 convention.

I included<EMAIL_ADDRESS><< is this the UMD? then added
let menus = document.getElementsByClassName('content-picker');

for (let i = 0; i < menus.length; i++) {
    dashboardcode.BsMultiSelect(menus[i], {
        placeholder: menus[i].getAttribute('placeholder') || ''
    });
}

but that gives me an error
Uncaught ReferenceError: dashboardCode is not defined

yes this is umd (you can open it and see the UMD template at the start)

dashboardCode  ?

I mean in error . Should be dashboardcode .   https://dashboardcode.github.io/BsMultiSelect/snippetUmd.html (open as source also, it is also usefull)

@rpokrovskij Thanks for your continuations help!
Its running with no error now, but the change event isn't firing. here is the code that I am using
let menus = document.getElementsByClassName('content-picker');

for (let i = 0; i < menus.length; i++) {
    menus[i].addEventListener('change', (e) => {
        console.log('change event was fired for BsMultiSelect ....');
    });

    dashboardcode.BsMultiSelect(menus[i], {
        placeholder: menus[i].getAttribute('placeholder') || ''
    });

    console.log('registering BsMultiSelect...');
}

I am including<EMAIL_ADDRESS>I am expecting the console.log('change event was fired for BsMultiSelect ....'); to get called every time I pick/remove an item from the menu. The BsMultiSelect is active on the element

Thank you for the report. It should work, going to check it.

It just works. Please fill snippet with yours specific https://codepen.io/rpokrovskij/pen/qBjJvwN

I guess it works with bs5 not 4. Here is a snippet where it does not work https://codepen.io/crestapps/pen/eYRPodN

No, it is just because of jquery is found (there I follow bootstrap - it have the same behaivour). Also bootstrap is seaching for 'data-bs-no-jquery' attribute to disable "attaching to jquery", decision which I do not like at all -> it forces plugins work after body is loaded .
Option that I would prefer developers load before jquery and after popper.
What works best for you?

The reason why I want to use the change event, is because I have another script that should work with all selectors and listens for the change event. I tried to fire a custom event and add that custom ever to my other script but that did not work. by did not work i mean my other script did not fire when the custom ever was triggers
$(function () {

    let menus = document.getElementsByClassName('content-picker');

    for (let i = 0; i < menus.length; i++) {
        let element = menus[i];
        var menu = $(element);
        menu.bsMultiSelect({
            placeholder: menu.attr('placeholder') || ''
        });

        menu.on('change', (e) => {
            console.log('js change');
            var event = new Event('manualChange');
            element.dispatchEvent(event);
        });
    }

});

in the other script
const modelsMenu = document.querySelector('.drilldown-models-menu');

if (modelsMenu != null) {

    modelsMenu.addEventListener('change manualChange', e => {

     console.log('a change or manualChange...');
    });
}

but that either did not work

bsmultiselect umd bundle for bootsrap 5 have the same logic - nothing would changed for you with migration to BS5 staying with UMD
let isJQyery = window.JQuery && !window.document.body.hasAttribute('data-bs-no-jquery'); // BS5 way
    if (isJQyery) {
        trigger = (e, eventName) => $(e).trigger(eventName);
    } else {
        trigger = composeEventTrigger(window);
    }

But I like your way: just stay with 'change' event not 'manualChange'. Why 'manualChange'?

@rpokrovskij  for some reason when I fire the new Event('change'); it seems to be going into infinite loop where the jquery calls the dom event and the dom event calls js change event. Is there a way to fix that?

As I said:  switch scripts places (put BsMultiSelect.js before jquery.js).

Thank you for trying BsMultiSelect.
you can go to my SO account  https://stackoverflow.com/users/506147/roman-pokrovskij?tab=questions  and "vote" for my questions - if I could get answers on them than BsMultiSelect become better


Missing TS Integration tests for Name Service JS bindings

There are no tests for the TS library for Solana Name Service program.
Solution: write tests

@stegaBOB are you working on this ? I can take this on if not.

I didn't have any concrete plans for when I was going to start on this, so feel free to take it if you'd like!


⚠ Samsung has degraded performance

In f254289, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2443 ms

Resolved: Samsung performance has improved in a00636e.


Shorten syntax for multiple continuous params with same type

Like in Go you can use:
func add(x, y int) int {
	return x + y
}

func main() {
	fmt.Println(add(42, 13))
}

This is really concise and readable at the same time, and helps to shorten the function declaration.
For example:
function store(file, section, attribute, field: string, value: any) {
}
// instead of
function store(file: string, section: string, attribute: string, field: string, value: any) {
}

This is really too specific case to introduce special syntax for it.

Even if it was possible, I find readability of this construct is pretty bad. If there are more than one or two parameters I instead use multiple lines, IMO much more readable:
function store(
    file: string,
    section: string,
    attribute: string,
    field: string,
    value: any
): void {
    // ....
}


[Audio]: Heli Wars

Check if this audio is already added to RetroStudio.

[X] The audio is not already in game.

Is this for the main-menu playlist?

[ ] Add to main-menu playlist.

Is this song from an old Roblox era or a sound effect?

[X] This song is from old Roblox or is a sound effect.

A link to the audio on Roblox
https://www.roblox.com/library/11675714608/Heli-Wars
A link to the audio file to download.
https://drive.google.com/file/d/1lQqJVJJkBf8aGWWnNvMye87C7R4culTu/view?usp=sharing
Notes
The music is actually "Pokemon Black & White - Relic Castle"

why does the song fade out at 2 mins and then continue with no noise for another 50 seconds?


GitHub oAuth doesn't work due to null e-mail address unless you set a public e-mail address on your profile

So I don't really think this is a bug but it might be worth documenting when using GitHub's oAuth you can't access the e-mail address on the user without setting it as your public e-mail address.
This breaks auto_properties checks such as:
                  auto_properties:
                      - field: email
                        pattern<EMAIL_ADDRESS>                        type: role
                        value: admin

in a not very useful way:
expected string or bytes-like object
Traceback (most recent call last):
  File "/var/lib/assemblyline/.local/lib/python3.9/site-packages/assemblyline_ui/api/v4/authentication.py", line 519, in oauth_validate
    data = parse_profile(user_data, oauth_provider_config)
  File "/var/lib/assemblyline/.local/lib/python3.9/site-packages/assemblyline_ui/helper/oauth.py", line 98, in parse_profile
    if re.match(auto_prop.pattern, value):
  File "/usr/local/lib/python3.9/re.py", line 191, in match
    return _compile(pattern, flags).match(string)
TypeError: expected string or bytes-like object

since the email is null.
This Stackoverflow answer details a little bit about it: https://stackoverflow.com/a/35387123 but basically the email field on that endpoint is only available if you set a public email address. Not really sure on the best way for you to handle this on your end, catching the TypeError on regex would be useful though.
Some documentation to cover it might be useful too, this config works for GitHub Enterprise, changing out the API endpoint for api.github.com on base and user_get and the auth/access to github.com would allow oAuth from GitHub.com although untested.
              github:
                  auto_create: true
                  auto_sync: true

                  client_id: idhere
                  client_secret: secrethere

                  access_token_url: https://ghe_hostname/login/oauth/access_token
                  api_base_url: https://ghe_hostname/
                  authorize_url: https://ghe_hostname/login/oauth/authorize

                  client_kwargs:
                      scope: read:user

                  user_get: https://ghe_hostname/api/v3/user

                  auto_properties:
                      - field: email
                        pattern<EMAIL_ADDRESS>                        type: role
                        value: user

I think we can definitely classify this as a bug. None type should be caught before doing the regex test. Will fix this today.

This will be fix by PR #294.
Basically, if the field mentioned by the auto_property is not in the profile or the field is the profile is None, auto_properties checks will be skipped for that field.


Support testsToRun and testsToSkip

This adds support for selecting tests that should be run. It's possible
to either focus (testsToRun) on some tests, or to exclude (testsToSkip)
some tests.
Format: "className/methodName"

First part that got extracted from #340.


Experimental

New algorithm
The cGy_to_distribute will be dispersed to integers and allocated by each beams weight

@celeron533 I apologize, but I had a branch that I should have already merged that addressed algorithm issues and added some means to more easily test.


Syntax error underlining

Added function to highlight/underline syntax errors
Updated syntax error highlighting feature to highlight/un-highlight syntax errors as the user's code changes
Updated line number that is highlighted

Here are screenshots of what the syntax error highlighting looks like right now. LMK if I need to make any adjustments.

The UI looks nice -- thanks @eledavi! I have a few more code comments.

@theresa-lee Done! LMK what you think of this highlight color.

@eledavi Looks good to me!

This PR is now irrelevant. All of these changes can be found on PR #384.


Blocks of Enderpearl be used as fuel for ender generator

No boost to power, just a 4x duration.

Are we talking about the Extra Utilities ender generator? I don't think I have the ability to modify that.

This cannot be done currently. If you want to push for it, suggest it on RWTema's Github issue tracker. Though, he appears to barely touch that tracker. I suppose you could also try Twitter, as he is more active there.


Dev branch update - Version bump 1.5.0 + crates update (#251)

Updating dev branch after the 1.5.0 release

Version bump 1.5.0 + crates update

Update client-js/CHANGELOG.md

@deuszex I made something wrong merging on dev I can not update this PR so closinb for https://github.com/casper-ecosystem/cep-78-enhanced-nft/pull/257


oanda lot sizes have now changed to 1/100, update of symbol database is required

Expected Behavior

Be able to place orders with lot sizes down to 0.01 (according to oanda documentation)
Actual Behavior

orders with fractional quantities are rounded to 1
Potential Solution

update symbol properties database for oanda symbols
Reproducing the Problem

place any order in oanda with a lot of 0.01 quantity
System Information

Checklist

[X] I have completely filled out this template
[X] I have confirmed that this issue exists on the current master branch
[X] I have confirmed that this is not a duplicate issue by searching issues

[X] I have provided detailed steps to reproduce the issue

Hey @ebengtso!
Can you please add an example algorithm reproducing the issue? Interested in seeing specifically which symbols are you trying to trade with quantity 0.01 and you are expecting to work

Be able to place orders with lot sizes down to 0.01 (according to oanda documentation)

Mind adding a link for this too?
Thanks, it will help us address the issue ASAP

Actually, I'm not trading fractional quantities, but Oanda changed this from weekend, for a few symbols, and now allow orders with fractional lots.
The below is an example of what is happening when I try to place fractional order.
To reproduce place an order with quantity of 0.1 for SPX500USD.
20210518 18:00:02.229 ERROR:: Warning: Due to brokerage limitations, orders will be rounded to the nearest lot size of 1
Please find attached the minimum size order for the oanda instruments
instruments.txt

By the way, you can get the information of lot sizes from Oanda by connecting to the URL:
"https://api-fxtrade.oanda.com/v3/accounts//instruments"
according to this documentation: http://developer.oanda.com/rest-live-v20/account-ep/


Why can absolute location paths start with a "." instead of a "^"?

The documentation says that

If location path starts with the root (^) you are using an absolute location path—your location path begins from the root items.

But all examples use the leading .—which locates a context items itself—at the beginning of an absolute path:
//The JSON data…
var doc = {
    "books" : [
            {
            "id"     : 1,
            "title"  : "Clean Code",
            "author" : { "name" : "Robert C. Martin" },
            "price"  : 7
        },
        {
            "id"     : 2,
            "title"  : "Maintainable JavaScript",
            "author" : { "name" : "Nicholas C. Zakas" },
            "price"  : 12
        },
        {
            "id"     : 3,
            "title"  : "Agile Software Development",
            "author" : { "name" : "Robert C. Martin" },
            "price"  : 15
        }
    ]
};
// and the query to find all books authors

JSPath.apply('.books.author', doc);
/* [{ name : 'Robert C. Martin' }, { name : 'Nicholas C. Zakas' }, { name : 'Robert C. Martin' }, { name : 'Douglas Crockford' }] */

instead of
console.log(JSPath.apply('^book.author', doc));

which leads to an syntax error since ^ expects a trailing popery starting with a ..
Therefore
console.log(JSPath.apply('^.books.author', doc));

yields the expected data.

I wonder now why and when a ^ should be used.
Thanks :smile:

I wonder now why and when a ^ should be used.

^ can be used in case of you need to locate something which is located in another part of your data, for instance:
.a.b.c{.d === ^.e.f}

Thanks :+1:
But AFAIK a JSON object may only have one root element—why does the ^ not return this document root?

why does the ^ not return this document root?

I'm not quote sure what you mean. ^ points to root.

^ points to root.

When you think of the above example JSON data book is the document root.
^ returns the entire JSON object, since ^.author yields an empty list.
Instead the ^ should return the same data as a .* query does IMO… :smile:

There could be more than one key on the top level:
var doc = {
    "books" : [...],
    "authors" : [...]
};

So I don't see how ^ could point to books.

Oops! You are completely right! I mixed up JSON with XML. Yes a JSON structure could be and is usually "anonymous" and doesn't necessarily have a "root member object".
Back to my question; the ^ is used to locate a property when another context (root) is already used in the location path and / or object predicate:
var doc = {
    "books" : {"a": 1},
    "authors" : {"b": 1}
};

JSPath.apply('.books{.a === ^.authors.b}', doc)
// yields  [Object { a=1}]

Many thanks for your support and for this great software :smile:

the ^ is used to locate a property when another context (root) is already used in the location path and / or object predicate?!

Yes, it is.


jest-haste-map: throw when trying to get a duplicated module

Summary
Right now, if a module is duplicated, we remove it from the module map, so that when we try to resolve it later, it doesn't return one or the other randomly, that would be incorrect, but instead nothing.
I realised this approach is better then returning a random module, but is still incorrect, because the callsite (resolution algorithm) could then try to resolve the module name as a Node.js package, and find some other module. This is just as random, and incorrect.
I believe the correct approach in case of duplicate modules for a single name is to prevent any further resolution by throwing an exception with sufficient metadata for the callsite, or the user, to make a decision. This changeset implements this correct behavior.
Test plan
yarn jest packages/jest-haste-map/src/__tests__/index.test.js

Looks solid to me. Nice work. I'm slightly worried that this is going to incur a minor overhead for looking up a module, because of the many more added assertions, but we are paying the price for correctness.

I'm slightly worried that this is going to incur a minor overhead for looking up a module, because of the many more added assertions, but we are paying the price for correctness.

Totally, I'm concerned about the same. But it's a pretty simple hashmap access + function call, so it should be nicely optimized. I was considering doing the map check first so that if it does resolves, we're done. But in practice I don't think that'd change much, especially as in most case, the first two conditions would be empty (platform is generic for most modules).

Codecov Report

Merging #3976 into master will increase coverage by 0.09%.
The diff coverage is 80.48%.

@@            Coverage Diff             @@
##           master    #3976      +/-   ##
==========================================
+ Coverage   59.84%   59.93%   +0.09%
==========================================
  Files         196      196
  Lines        6758     6787      +29
  Branches        6        6
==========================================
+ Hits         4044     4068      +24
- Misses       2711     2716       +5
  Partials        3        3

Impacted Files
Coverage Δ

packages/jest-haste-map/src/index.js
92.8% <50%> (ø)
:arrow_up:

packages/jest-haste-map/src/module_map.js
80% <82.05%> (+2.22%)
:arrow_up:

packages/jest-matchers/src/matchers.js
99.37% <0%> (-0.01%)
:arrow_down:

packages/jest-matchers/src/index.js
97.46% <0%> (+0.13%)
:arrow_up:

Continue to review full report at Codecov.

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

Whether this is a breaking change or not is to be discussed. I believe it's not really one, because having duplicate modules is broken anyway, as resolution algos would then try to do a Node.js-style resolve, that could pick up some random, unrelated module.
At the same time, I don't want to cause hard crash on people's project especially if the duplicates are in their transitive dependencies. So I'd suggest considering this a breaking change.

It shouldn't really matter for external folks, because haste is not really used outside of FB. Thanks for the fix!

Haste is used for the Windows React Native hack, afaik. But normally they use "windows" platform extensions and there's no module conflicts, that would resolve incorrectly anyway.


Some updates to segmentation CLI

[x] Support a custom model path
[ ] Parse out kwargs for the segmentation function
[x] Provide the available model in help for model type; parse model registry keys for this
[x] Handle rescaling based on the voxel size and or specified scale factors

Most of this was taken care of in #74


MapEntities reflect macro is unhygienic

Bevy version
0.11
What you did
Tried to reflect MapEntities as such:
use bevy::{prelude::*, ecs::entity::{EntityMapper, MapEntities}};

fn main() {

}

#[derive(Component, Reflect, Default)]
#[reflect(Component, MapEntities)]
pub struct A(Vec<Entity>);

impl MapEntities for A {
    fn map_entities(&mut self, entity_mapper: &mut EntityMapper) {
        for e in self.0.iter_mut() {
            *e = entity_mapper.get_or_reserve(*e);
        }
    }
}

What went wrong
Got error[E0412]: cannot find type ReflectMapEntities in this scope

This actually is expected behavior. All the #[reflect] macro does is prepend Reflect to the given identifier (in this case, MapEntities) and uses it as normal. Unfortunately, it's not possible for it to know where ReflectMapEntities comes from, and so the user needs to manually import it into scope themselves.
This is very briefly mentioned in the docs.

 It's an easy part to miss in the docs.


IndexOptimize fails with "Incorrect Syntax near 'BEGI'" when executed through agent job

Description of the issue
When using IndexOptimize with the SQL Server agent job it fails, however when manually executing the same query from a query window it completes sucessfully.
SQL Server version and edition
Microsoft SQL Server 2012 (SP1) - 11.0.3000.0 (X64)   Oct 19 2012 13:38:57   Copyright (c) Microsoft Corporation  Enterprise Edition (64-bit) on Windows NT 6.2  (Build 9200: ) (Hypervisor)
Version of the script
2019-01-13 13:51:41
What command are you executing?
EXECUTE dbo.IndexOptimize
@Databases = 'ALL_DATABASES',
@FragmentationLow = NULL,
@FragmentationMedium = 'INDEX_REORGANIZE,INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE',
@FragmentationHigh = 'INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE',
@FragmentationLevel1 = 5,
@FragmentationLevel2 = 30,
@UpdateStatistics = 'ALL',
@OnlyModifiedStatistics = 'Y',
@LogToTable = 'Y'

What output are you getting?
CommandLog Table: When this error occurs no entry is created
Log File:
Auftrag ''IndexOptimize - USER_DATABASES'' : Schritt ''1'', ''IndexOptimize - USER_DATABASES'' : Ausführungsbeginn ''2019-01-16 02:30:00''

Date and time: 2019-01-16 02:30:00 [SQLSTATE 01000]
Server: <REDACTED> [SQLSTATE 01000]
Version: 11.0.3000.0 [SQLSTATE 01000]
Edition: Enterprise Edition (64-bit) [SQLSTATE 01000]
Platform: Windows [SQLSTATE 01000]
Procedure: [master].[dbo].[IndexOptimize] [SQLSTATE 01000]
Parameters: @Databases = 'ALL_DATABASES', @FragmentationLow = NULL, @FragmentationMedium = 'INDEX_REORGANIZE,INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE', @FragmentationHigh = 'INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE', @FragmentationLevel1 = 5, @FragmentationLevel2 = 30, @MinNumberOfPages = 1000, @MaxNumberOfPages = NULL, @SortInTempdb = 'N', @MaxDOP = NULL, @FillFactor = NULL, @PadIndex = NULL, @LOBCompaction = 'Y', @UpdateStatistics = 'ALL', @OnlyModifiedStatistics = 'Y', @StatisticsModificationLevel = NULL, @StatisticsSample = NULL, @StatisticsResample = 'N', @PartitionLevel = 'Y', @MSShippedObjects = 'N', @Indexes = NULL, @TimeLimit = NULL, @Delay = NULL, @WaitAtLowPriorityMaxDuration = NULL, @WaitAtLowPriorityAbortAfterWait = NULL, @Resumable = 'N', @AvailabilityGroups = NULL, @LockTimeout = NULL, @LockMessageSeverity = 16, @DatabaseOrder = NULL, @DatabasesInParallel = 'N', @LogToTable = 'Y', @Execute = 'Y' [SQLSTATE 01000]
Version: 2019-01-13 13:51:41 [SQLSTATE 01000]
Source: https://ola.hallengren.com [SQLSTATE 01000]
	 [SQLSTATE 01000]
Date and time: 2019-01-16 02:30:00 [SQLSTATE 01000]
Database: [<REDACTED - name of first user DB of the server>] [SQLSTATE 01000]
Status: ONLINE [SQLSTATE 01000]
Standby: No [SQLSTATE 01000]
Updateability: READ_WRITE [SQLSTATE 01000]
User access: MULTI_USER [SQLSTATE 01000]
Is accessible: Yes [SQLSTATE 01000]
Recovery model: SIMPLE [SQLSTATE 01000]
Meldung ''102'', Schweregrad ''15'', Status ''1'', Zeile 1680: Falsche Syntax in der Nähe von 'BEGI'. [SQLSTATE 42000]

Profiler output:
One thing to note is that previously on this server a much older version of the maintenance solution was used. The following steps were used to upgrade:

All auto-created SQL server agent jobs were manually deleted
MaintenanceSolution.sql was executed with @CreateJobs = 'Y'

I have the same issue:
SQL Server version and edition
Microsoft SQL Server 2012 11.0.3153.0 (X64)
Windows Server 2012 R2
Version of the script
2019-02-10 10:40:47
Same line, seems to be this line:
IF @CurrentIsPartition = 1 SET @CurrentCommand02 = @CurrentCommand02 + 'IF EXISTS(SELECT * FROM sys.indexes indexes INNER JOIN sys.objects objects ON indexes.[object_id] = objects.[object_id] INNER JOIN sys.schemas schemas ON objects.[schema_id] = schemas.[schema_id] INNER JOIN sys.partitions partitions ON indexes.[object_id] = partitions.[object_id] AND indexes.index_id = partitions.index_id WHERE objects.[type] IN(''U'',''V'') AND indexes.[type] IN(1,2,3,4,5,6,7) AND indexes.is_disabled = 0 AND indexes.is_hypothetical = 0 AND schemas.[schema_id] = @ParamSchemaID AND schemas.[name] = @ParamSchemaName AND objects.[object_id] = @ParamObjectID AND objects.[name] = @ParamObjectName AND objects.[type] = @ParamObjectType AND indexes.index_id = @ParamIndexID AND indexes.[name] = @ParamIndexName AND indexes.[type] = @ParamIndexType AND partitions.partition_id = @ParamPartitionID AND partitions.partition_number = @ParamPartitionNumber) BEGIN SET @ParamIndexExists = 1 END'

Bumped into this issue as well. Note that it works fine when I run it manually and only fails when triggered via agent job.
Seems like it's related to SP1 bug: https://support.microsoft.com/en-ph/help/2829372/fix-incorrect-syntax-near-begi-error-message-when-you-run-a-transact-s
This is how I was able to make it work in agent job (without applying patches):
`        -- Does the index exist?
IF @CurrentIndexID IS NOT NULL AND EXISTS(SELECT * FROM @ActionsPreferred)
BEGIN
SET @CurrentCommand02 = ''
      IF @LockTimeout IS NOT NULL -- ADD BEGIN END
	  BEGIN
	  SET @CurrentCommand02 = 'SET LOCK_TIMEOUT ' + CAST(@LockTimeout * 1000 AS nvarchar) + '; '
	  END

      SET @CurrentCommand02 = @CurrentCommand02 + 'USE ' + QUOTENAME(@CurrentDatabaseName) + '; '

      IF @CurrentIsPartition = 0  -- ADD BEGIN END
	  BEGIN
	  SET @CurrentCommand02 = @CurrentCommand02 + 'IF EXISTS(SELECT * FROM sys.indexes indexes INNER JOIN sys.objects objects ON indexes.[object_id] = objects.[object_id] INNER JOIN sys.schemas schemas ON objects.[schema_id] = schemas.[schema_id] WHERE objects.[type] IN(''U'',''V'') AND indexes.[type] IN(1,2,3,4,5,6,7) AND indexes.is_disabled = 0 AND indexes.is_hypothetical = 0 AND schemas.[schema_id] = @ParamSchemaID AND schemas.[name] = @ParamSchemaName AND objects.[object_id] = @ParamObjectID AND objects.[name] = @ParamObjectName AND objects.[type] = @ParamObjectType AND indexes.index_id = @ParamIndexID AND indexes.[name] = @ParamIndexName AND indexes.[type] = @ParamIndexType) BEGIN SET @ParamIndexExists = 1 END'
      END

	  IF @CurrentIsPartition = 1  -- ADD BEGIN END
	  BEGIN
	  SET @CurrentCommand02 = @CurrentCommand02 + 'IF EXISTS(SELECT * FROM sys.indexes indexes INNER JOIN sys.objects objects ON indexes.[object_id] = objects.[object_id] INNER JOIN sys.schemas schemas ON objects.[schema_id] = schemas.[schema_id] INNER JOIN sys.partitions partitions ON indexes.[object_id] = partitions.[object_id] AND indexes.index_id = partitions.index_id WHERE objects.[type] IN(''U'',''V'') AND indexes.[type] IN(1,2,3,4,5,6,7) AND indexes.is_disabled = 0 AND indexes.is_hypothetical = 0 AND schemas.[schema_id] = @ParamSchemaID AND schemas.[name] = @ParamSchemaName AND objects.[object_id] = @ParamObjectID AND objects.[name] = @ParamObjectName AND objects.[type] = @ParamObjectType AND indexes.index_id = @ParamIndexID AND indexes.[name] = @ParamIndexName AND indexes.[type] = @ParamIndexType AND partitions.partition_id = @ParamPartitionID AND partitions.partition_number = @ParamPartitionNumber) BEGIN SET @ParamIndexExists = 1 END'
	  END

`
Hope this helps! Cheers!

Could you try updating to the latest SP and CU and let me know if that solves the problem.

@zcound, could you test if would have been enough to add the BEGIN END in just the last place?

I have been trying to reproduce this issue on SQL Server 2012 SP1 with no success. I was testing both with IndexOptimize and the script in the kb article. I guess that there has to be some other condition for it to happen.
I was thinking some more about it. Even if I could reproduce this issue and fix it in the code, I could very easily introduce it again. I would have to test for this issue every time I release a new version.
Now given that this is a SQL Server bug, I would like to ask anyone that is running into this issue to install CU4 for SP1, the latest CU for SP1, or the latest SP.


IntelliSense should detect return type when using eval statements

function multiply(a, b) {
	return eval('a*b');
}
multiply(3, 3);

In this case, we detect a and b to be of type number, but the return type of multiply is undefined when we expect it to be number.
That said, it's also possible that this limitation is by-design for performance reasons.

Marking this as external since in NTVS 1.2 Beta, ES6 IntelliSense is backed by Typescript / Salsa. Fixing this would likely require work on their side.

Closing as external. As noted, this is something the Typescript team would have to implement. I really don't see them getting around it anytime soon however, as there is basically zero use case for this. Besides just not being used all that often in modern js, eval is most often called with dynamic strings, which we could never provide proper intellisense for.


New --config option for the rails_best_practices command

Specify --config /path/to/custom_config.yml to load config from a custom location.
My reason for this change is related to my previous pull request, to have the rails_best_practices command take multiple arguments. I want to analyze a subset of my project (specifically files I'm about to commit). Some checks will give false positive, e.g. RemoveUnusedMethods*.
As I still want to be able to run rails_best_practices on my entire project will all checks, I don't want to comment out these checks in config/rails_best_practices.yml. Instead, this change lets me specify another yml-file with --config.
I hope this might be useful for others as well.

@martinsvalin are you still up with that? I would love to have this feature as well.

The PR was opened 5 years ago. I suggest closing it, and opening another to achieve the same purpose if there are people interested. I'm no longer using this tool.

@martinsvalin thanks. Did that already :)


not support two parameter？

in my configuration.json
"ReRoutes": [
    {
      "DownstreamPathTemplate": "/api/{customerid}/project/{id}",
      "DownstreamScheme": "http",
      "DownstreamPort": 5000,
      "DownstreamHost": "localhost",
      "UpstreamPathTemplate": "/{customerid}/project/{id}",
      "UpstreamHttpMethod": "Delete",
      "QoSOptions": {
        "ExceptionsAllowedBeforeBreaking": 3,
        "DurationOfBreak": 10,
        "TimeoutValue": 5000
      }
    }]

my request  url
HTTP/1.1 DELETE  http://apigatway/701/Project/1
my api server get request
HTTP/1.1 DELETE http://localhost:5000/api/701/project/%7Bid%7D
the second parameter {id} value was not find。

@maradonasu that should work. I will test this when I get a chance.
Maybe try the config with a trailing / after the {id} parameter, if that works then there is a bug.
These tests cover your scenario if you would like to investigate this yourself.
UpstreamUrlPathTemplateVariableReplacerTests.cs
RoutingTests.cs
This is the class most likely to have a bug
UrlPathPlaceholderNameAndValueFinder.cs

I try the config with a trailing / after the {id} parameter, it's not work


Support Elevenlabs as a TTS option

We would need to move away from local and remote terminology and towards different providers, like
VITS (free, local)
OpenAI (remote, paid)
Eleventlabs (remote, paid)

Done in https://github.com/Ebonsignori/tts-book-to-audio/commit/af827019072a0b670659e7e24c754a724ba55b96


Set favorites for Paste as Plain Text

Description of the new feature / enhancement
It would be nice to set favorites that can be paste with
Win+0, Win+1, ... Win+9
or Win+Alt+0...
Check out Hamsin Clipboard: https://ftparmy.com/80167-hamsin-clipboard.html
Scenario when this would be used?
Pasting things you always need like Name address or phone.
Supporting information
No response

/dup https://github.com/microsoft/PowerToys/issues/671


baoUSDpool mainnet

Description
Please include a summary of the change and if relevant which issue is fixed. Please also include relevant motivation and context.
Type of change

[ X ] Other; add stablepool on mainnet this time

@fabiaz84 Because this is merging into the develop branch it will only go live next Monday (27th) in our weekly release. If you'd rather it go live asap you need to checkout master, make your changes and push a PR based on master.


Revert golangci config

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Pull request type

Please check the type of change your PR introduces:

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, renaming)
[x] Refactoring (no functional changes, no api changes)
[x] Build related changes
[ ] Documentation content changes
[ ] Other (please describe):

What is the current behavior?

Issue Number: N/A
What is the new behavior?

Other information

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (74b968a) 67.47% compared to head (5691266) 38.50%.

Additional details and impacted files
@@             Coverage Diff             @@
##           master     #915       +/-   ##
===========================================
- Coverage   67.47%   38.50%   -28.97%
===========================================
  Files         261      207       -54
  Lines       24687    21411     -3276
===========================================
- Hits        16657     8245     -8412
- Misses       7167    12817     +5650
+ Partials      863      349      -514

Flag
Coverage Δ

?

go-1.17.x
38.50% <ø> (-27.41%)
:arrow_down:

go-1.20.x
?

go-1.21.x
?

integration
?

macOS
?

ubuntu
38.50% <ø> (-0.31%)
:arrow_down:

unit
38.50% <ø> (-0.39%)
:arrow_down:

windows
?

ydb-22.5
?

ydb-23.1
?

ydb-23.2
?

ydb-23.3
?

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

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


[Bug]: Can't create new source from BibTeX

Steps to reproduce the bug
When creating "New source" from "BibTeX"
Paste in BibTeX source (see example below) and click "Create" button

Screenshot
No response
Expected behavior
New source is created and move to soft validation
Observed behavior:
Failure beep and "fly up" window with text "Wrong data X"
BibTeX source example:
@Article{Park2021a,
author   = {Kyu-Tek Park AND J. B. Heppner},
title    = {Notes on Vietnam moths, 21. Athymoris in Vietnam, with two new species (Lepidoptera: Lecithoceridae: Torodorinae)},
journal  = {Lepidoptera Novae},
year     = {2021},
volume   = {13},
number   = {1-2},
pages    = {23--26},
issn     = {1941-1014},
abstract = {– Two new species of the genus Athymoris Meyrick, 1935, are described from Vietnam: Athymoris gilvimaculata Park & Heppner, sp. nov.,
and A. clinozonalis Park & Heppner, sp. nov.},
file     = {:VN-Athymoris.pdf:PDF},
}
Note:
Earlier this morning I created a source from BibTeX successfully with this BibTeX source (Although the drag and drop pdf document failed for which I'll add a second bug:
@Article{Park2021,
author   = {Kyu-Tek Park and J. B. Heppner},
title    = {Review of genus Adelomorpha of Southeast Asia (Malesia) and transfer from Gelechiidae (Lepidoptera: Lecithoceridae: Torodorinae)},
journal  = {Lepidoptera Novae},
year     = {2021},
volume   = {13},
number   = {1-2},
pages    = {13--22},
issn     = {1941-1014},
abstract = {– Notes and new records are given for the genus Adelomorpha Snellen, 1885, and the species A. ritsemae Snellen, 1885, from Sulawesi, and
are transfered from Gelechiidae to Lecithoceridae, with description of three related new species of Malesia, A. dumoga n. sp. and A. minahasa n. sp. from
Sulawesi (Indonesia), and A. perakensis n. sp. from Perak (Malaysia).},
file     = {:Adelomorpha.pdf:PDF},
}
Additional Screenshots
No response
Environment

[ ] Development (native)
[ ] Development (docker)
[ ] Sandbox
[X] Production

Sandbox Used
No response
Version
No response
Browser Used
Google Chrome Version 94.0.4606.54 (Official Build) (64-bit)

I just tried in sandbox, and everything works.
Suggested three potential issues:

The source is created, but not saved, you still have to save source after it is created:

You get logged out of the DB. I happens to me ocasionally, when I have window open on the source interface, and I try to create new source, the system fails to notify me, that the user is not logged into the system. Reloading the page and logging back helps to resolve the problem.
Source is already in the DB.

Good suggestions, but doesn't seem to be the case for me.
The source is not in Production based on a search.
I am definitely logged in.
There's no option to save the new source until after the BibTeX is processed.

We may have an open issue, if the field names in Bibtex have some space before, the Bibtex is not processed. When I copied the record from your example above, it just worked. I actually preffer to work with doi, that works very smooth. Besides, it can brings some additional metadata.

Replicated, but one of the records has to be present first.  Checking for details on "Wrong data".

First problem: @jlpereira Please replace "Wrong data" with the content of the JSON response, e.g. we're actually returning "{"identifiers.identifier":["has already been taken"]}" that.
Second problem- I suspect the identifier parsing of the leading identifier is stripping something.  Looking into that.

The problem is with issn, it should not be added as an identifier for type 'Article'.

Removing issn worked!
Not sure why that would be a bug since issn is the unique identifier for the journal.
The identifier journal is accepted for type 'Article'

The problem is with issn, it should not be added as an identifier for type 'Article'.

@mjy bibtex site says there are required, optional, and non-standard fields and that issn is "non-standard" for type @article. But that doesn't mean we have to refuse it does it? see https://www.bibtex.com/e/article-entry/

We are not refusing it, we are saying that if we take it, we must apply it to the thing that it identifies, in TaxonWorks' case this is a Serial that is linked to the Source, not the Source itself.

I believe it will be just ignorred if present.

I believe it will be just ignorred if present.

Yah, @mjy explained. But the user might be confused / and is then losing information if they don't realize it was ignored. So a good idea perhaps to be very clear we are taking the required level of bibtex elements for each type and not the non-standard elements for any given type.

probably, we should just hide this field in the interface.

I kept this issue open because we can set it up to NOT lose information.  That's the whole point.


New version: MolecularGraph v0.5.0

Registering package: MolecularGraph
Repository: https://github.com/mojaie/MolecularGraph.jl
Created by: @mojaie
Version: v0.5.0
Commit: d7f94acbacbc9701e8efe2d33d539a417057aa64
Reviewed by: @mojaie
Reference: https://github.com/mojaie/MolecularGraph.jl/commit/d7f94acbacbc9701e8efe2d33d539a417057aa64#commitcomment-38331326

There is known bug with Julia 1.4. I will fix the dependency to Julia=~1.3 and PR again.

AutoMerge's Julia version seems to be fixed to 1.4.0.
[noblock]


feat: Suppport Cosmostation app wallet

We have resolved the Node.js version issue from the previous PR and submitted a new PR. Please review it.
What is the purpose of the change:
support Cosmostation app wallet in Connect wallet popup component
Linear Task
previous PR
Brief Changelog

This supports connect Cosmostation app wallet feature

Testing and Verifying

This change has been tested locally by rebuilding the website with the Cosmostation app wallet (iOS and Android market versions).

@G-Gamja not seeing Cosmosation mobile option on mobile.

@G-Gamja not seeing Cosmostation option on mobile.

@CryptoAssassin1 Thank you for reviewing this PR.
This PR includes the implementation that allows connecting the wallet within our app's WebView. We will also check if it is possible to connect the wallet in non-WebView environments using the WalletConnect feature.

@G-Gamja is it possible for us to test it?

You can test by entering the local dev URL of the Osmosis front end in the Dev Mode under the Settings tab.


Changed 'http' to 'https'

SUMMARY

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Required feature flags:
[ ] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[ ] Introduces new feature or API
[ ] Removes existing feature or API

http is correct here.
localhost won't have SSL configured.

Okk


Rule to stop using s that are the same as their defaults

TypeScript code being linted
type StringContainer<TString extends string = string> = {
    data: TString
};

let container: StringContainer<string> = {
    data: "foo"
};

Actual behavior
No rule for this kind of behavior.
Expected behavior
Now that a generic defaults are a thing, it'd be great to have a rule & auto-fixer to get rid of unnecessary declarations.

this was added in 5.4.0 as use-default-type-parameter :)


No method server.Use in last version

To Reproduce
Steps to reproduce the behavior:

Go to example https://go-fuego.github.io/fuego/docs/guides/middlewares
Paste code from app-lvl example
Error, unresolved reference Use...

Expected behavior
I expected middlewares to work properly.
Screenshots

Framework version (please check if it happens with the last Fuego version before posting):0.10.4
Go version (please check if it happens with the last Go version before posting):1.21.0

Is this a bug of docs or code? I can fix it

I think this is a doc issue, this should be fuego.Use(s, middleware). Sorry about that!

fix plz))

This is fixed, to documentation page is now correct. You have to use this syntax
fuego.Use(s, myMiddleware)


Will blackjack use egui_node_graph ?

The reason I am asking : After playing and extending a bit the provided egui_node_graph_example I started to dive into the next stage: Adapting a minimal version of the blackjack PolyAsm based graph compiler, so I can do node traversal and finally get some executable instructions. Unfortunately this is a bit outside my comfort zone and I ran into an error about wrong lifetimes and at several places I was not  comfortable what I was doing to get things to compile and I was also in doubt how to adapt blackjack NodeData to egui_node_graph Node<NodeData>.user_data.
Anyway, if you plan to make blackjack use egui_node_graph, then I probably could figure out myself how to get my minimal compiler example to work, otherwise a minimal working example of something like a graph compiler would be great.

Thanks a lot. Gonna study that branch now ! Closing this.

Hey @rsaccon! Here's the PR swapping the old code in blackjack with egui_node_graph. The code is almost there, and I just need to take care of some unrelated thing before the merge. Feel free to have a look: https://github.com/setzer22/blackjack/pull/18

thanks a lot. I actually managed already yesterday to get a minimal compiler working based on your mind blowing elegant PolyAsm hECS thing you have in blackjack. Will update to latest egui_node, and once I have cleaned up the messy things in my experiment, hopefully have something to show ...

Happy to hear that! 😄  What project are you working on, by the way? If you build something nice, feel free to open an issue about it so I can showcase it on the README!

A NURBS based 3d modeling app based on truck CAD kernel, which still is very alpha status. But right now I am just experimenting with different approaches, like scripting the 3d models in rhai, node graph and I would like to combine node graph editing with direct modeling, but no idea where this journey will bring me. Will post here when I have something to share


OU-446: Support FIPS

This PR looks to add FIPS support to the console-dashboard-plugin. It updates the go version to 1.22, and uses recommended FIPS compliant images and tags. Due to some of the recommended images not being available publicly a Dockerfile.dev is added to the repo as a way to build and test images locally.

/lgtm


Path click navigate to current sources

When I build and run via nix, it see in console in case of failure of my code:
/nix/store/<hash>-foobar/my.ts
error: failed

my.ts is located in my my current local git folder in root (or it can be any other subfolder).
When I click file path it jumps  to store copy.
Is it possible to make ability to jump to original file from which store one was created for editing?
Or some command to jump from store to local if stored opened first?
Will donate 5 DOT for this feature.

Can you elaborate on "build and run via nix"? Do you mean that you have a VSCode build task? If so, can you share an example which reproduces this behavior?

  at async /nix/store/9imvysbavbib7l69cbscfha8cmr03xck-xcvm-demo-1.0.0/src/swap-program.ts:291:13

 nix run .#tests-up

So when I run via nix, I get error from nix store file, not from original as in IDE.
May be some Nix: Find source command could be to jump back to original source.

Oh, I see, you mean the new "nix command" (too many things called the same thing :smile:) which copies all files from the git index into the store before execution. So the issue isn't created by this extension but it would be nice to have an option that doesn't throw you into the store path.
I've slapped something together that should work in #275. Give it a whirl if you can and let us know whether it works for you.


Issue with Home Assistant integration

Following the instructions in the wiki, I'm mostly successful in integrating picframe with Home Assistant, but am seeing some errors (even though picframe appears to be functioning correctly):
After initiating picframe from the command line with this command:
export DISPLAY=:0 && /usr/bin/python3 /home/pi/picframe_data/run_start.py /home/pi/picframe_data/config/configuration.yaml
I get errors in the console which look like this:
<IP_ADDRESS> - - [19/Mar/2021 13:07:02] code 400, message Bad request version ('\x10Y9\x90ÜÓ\x06\x07ï¡2âx}') <IP_ADDRESS> - - [19/Mar/2021 13:07:02] code 400, message Bad request version ('£ÌbQÉ}¦\x0e;_\\Ár\x89ºÅHºJR*\x03\x01©\x16') <IP_ADDRESS> - - [19/Mar/2021 13:07:02] code 400, message Bad request version ('ç\x81\x00$\x13\x01\x13\x03\x13\x02À+À/Ì©Ì¨À,À0À')
(The .48 IP address is for the Windows desktop PC which is accessing Home Assistant via browser.)
Any ideas of what to look at to resolve this?
EDIT:
Just confirmed that this problem occurs only when use_http: True in configuration.yaml.

Hm, looks for me the url encoding in home assistant is not working probably.
Do you see the image in home assistant?
Under developer tools, there is a template editor in home assistant. When you paste ![Image](http://<IP_ADDRESS>:9000/{{ states('sensor.picframe_image') | urlencode }}) What do you  get for an url? Can you copy this url to your browser. Does the image show up?
One other thing. Check if you are using ssl. If you are using ssl you have to use https  otherwise 'http'

I do not see the image in Home Assistant.  (I was going to inquire about that.)  Also, I am not using SSL.
When I paste the template code into the template editor, the resulting URL ![Image](http://<IP_ADDRESS>:9000/Canadian%20Rockies_DSC_0614_3840x2160.jpg) does not work, but that's because <IP_ADDRESS> is the IP of my Windows desktop where I'm running HA in a browser.  The rPi4 running picframe is at <IP_ADDRESS>.  When I change the IP to .50, I do see the image in the browser.
So, where is the .48 IP coming from?  (The error messages being thrown use that IP, too.)
Thanks for your help!

Ah OK, that makes sense. .48 is logged where the request comes from. So to sort it out for me.

mqtt is up and running, because you see the image name in home assistant.
In the markdown card you have set in the yaml code http://<IP_ADDRESS>:9000. The ip from your picframe
home assistant does not use ssl (http://myhomeassistant:8123/lovelace). If you set up home assistant to use ssl it will always use ssl to query the image. No matter if you use 'http' or 'https' in your image url.
ssl is off on picframe

Can you post your yaml code? Shoud look like this:
cards:
  - type: markdown
    content: >-
      ![Image](http://<IP_ADDRESS>:9000/{{
      states('sensor.picframe_image') | urlencode }})

I deleted the rest in the card.

Your 1 -4 are all correct.
I discovered the problem preventing the image from showing in Home Assistant:  I had https instead of just http for the url in the yaml.  I've corrected that so the current yaml is:
cards:
  - type: markdown
    content: >-
      {% if state_attr("sensor.picframe_image", "IPTC Object Name") -%}

      ## {{ state_attr("sensor.picframe_image", "IPTC Object Name") }}
       {%- else -%}
      ## {{ states("sensor.picframe_image") }}

      {%- endif %}

      {% if state_attr("sensor.picframe_image", "IPTC Caption/Abstract") -%}
         {{ state_attr("sensor.picframe_image", "IPTC Caption/Abstract") }}
      {% endif %}

      ![Image](http://<IP_ADDRESS>:9000/{{ states('sensor.picframe_image') |
      urlencode }})

      {% if state_attr("sensor.picframe_image", "location") != None %}
        {{ state_attr("sensor.picframe_image", "location") }}
      {%- else -%}
        No GPS Data.
      {%- endif %}
  - type: glance
    entities:
      - entity: switch.picframe_back
        tap_action:
          action: toggle
      - entity: switch.picframe_paused
        tap_action:
          action: toggle
      - entity: switch.picframe_next
        tap_action:
          action: toggle
      - entity: switch.picframe_shuffle
        tap_action:
          action: toggle
      - entity: switch.picframe_delete
        tap_action:
          action: toggle
    show_name: false
    show_state: false
    state_color: true
    show_icon: true
  - type: entities
    entities:
      - entity: sensor.picframe_image
        name: Filename
      - entity: sensor.picframe_image_date
        icon: 'mdi:calendar-clock'
        name: Date
      - type: attribute
        entity: sensor.picframe_image
        attribute: EXIF ExposureTime
        unit: sec
        icon: 'mdi:camera-timer'
        name: Shutter speed
      - type: attribute
        entity: sensor.picframe_image
        attribute: EXIF FNumber
        unit: f
        icon: 'mdi:camera-iris'
        name: Aperture
      - type: attribute
        entity: sensor.picframe_image
        attribute: EXIF ISOSpeedRatings
        icon: 'mdi:film'
        name: ISO
      - type: attribute
        entity: sensor.picframe_image
        attribute: EXIF FocalLength
        unit: iso
        icon: 'mdi:signal-distance-variant'
        name: Focal length
      - type: attribute
        entity: sensor.picframe_image
        attribute: Image Model
        unit: mm
        icon: 'mdi:camera'
        name: Camera
      - type: attribute
        entity: sensor.picframe_image
        attribute: IPTC Keywords
        icon: 'mdi:tag'
        name: Tags
  - aspect_ratio: '3:2'
    dark_mode: false
    default_zoom: 11
    entities:
      - entity: sensor.picframe_image
    type: map
    hours_to_show: 0
type: vertical-stack

I'm still getting errors like this, though:
<IP_ADDRESS> - - [20/Mar/2021 12:58:10] code 400, message Bad request version ('3\x10\x00$\x13\x01\x13\x03\x13\x02À+À/Ì©Ì¨À,À0À') <IP_ADDRESS> - - [20/Mar/2021 12:58:10] code 400, message Bad request version ('à\x17ßUÀ\x00$\x13\x01\x13\x03\x13\x02À+À/Ì©Ì¨À,À0À') <IP_ADDRESS> - - [20/Mar/2021 12:59:17] code 400, message Bad request version ('\x16ùÊ\x00QõM¨Q¶VOÓ\x92=¹îh¬"6?\x91,\x8b0e\x7f\x00$\x13\x01\x13\x03\x13\x02À+À/Ì©Ì¨À,À0À') <IP_ADDRESS> - - [20/Mar/2021 12:59:17] code 400, message Bad request version ('\x9dµ\x07\x01\x12È\x7f±¾ØÁßßgm\x86Ë}èås±¨Ùñ*o\x12°\x91\x00$\x13\x01\x13\x03\x13\x02À+À/Ì©Ì¨À,À0À')

Oh, and is there supposed to be an entity created for the MQTT command:
stop: picframe/stop, message not used - just stops
or is there documentation for how to implement?  (I assume this exits the current slideshow?)
I can write this up as a separate issue if you'd like me to.

For me it looks like,  you are doing a ssl request (see discussion). I don't now why. This happend on my homeassistant setup, because I enabled ssl in 'configuration.yaml'

Same error messages here after activating the HTTP server:

INFO:model.Model:Open config file: /home/pi/picframe_data/config/configuration.yaml:
<IP_ADDRESS> - - [20/Mar/2021 17:05:19] code 400, message Bad request version ('jj\x13\x01\x13\x02\x13\x03À+À/À,À0Ì©Ì¨À\x13À\x14\x00\x9c\x00\x9d\x00/\x005\x01\x00\x01\x93ÊÊ\x00\x00\x00\x17\x00\x00ÿ\x01\x00\x01\x00\x00')
<IP_ADDRESS> - - [20/Mar/2021 17:05:19] code 400, message Bad HTTP/0.9 request type ('\x16\x03\x01\x02\x00\x01\x00\x01ü\x03\x03\x99=[M\x0ey\x8f<¶½U')

stop: picframe/stop, message not used - just stops
No, there is no entity for that. That will top PictureFrame. If you like to use it, you can just publish the topic manually from the mqtt integration. Just use topic: 'picframe/stop' and as message anything you like.

@sapnho Thanks for the info. I will do a clean setup and check, what's going on.
What version of Home Assistant are you all using? I'm running the latest version Home Assistant 2021.3.4

I am running core-2021.1.5 because I had issues with Z-Wave when I updated last time so I went back to the previous version.

@helgeerbe I also sent you some info via our Slack channel.

@helgeerbe I'm running core-2021.2.3 and can't upgrade due to some sort of incompatibility reported by the Check Home Assistant configuration add-in.

Well I think, the version doesn't matter. When I disable ssl I see the Bad Request in PictureFrame. But the image is loaded in home assistant and shows up.  If I load the image directly from the browser I don't see the Bad Request.

Could it have something to do with the fact that I am accessing HA through Nabu Casa? That is a secure connection. On the iPad app, the image is shown.

Wolfgang, Thanks for the feedback. The image will work only work in your local network. Not sure how Nabu Casa is working. But I doubt, that the local address is resolved correctly by Nabu Casa, if you are not connected to your local network.
When calling from the iPad do you see the Bad Request on PictureFrame?

Ha, that solved the problem! As soon as I used the "http://homeassistant.local:8123/lovelace/6" URL, the picture came up! Thanks, Helge!

Great. I'm just wondering if you see still any bad requests on the pictureframe output?

To make it working with nabu casa, you could use a camera entity in home assistant. So the image is pre-rendered by home assistant. But this will have a lack, when the image changes. So you wouldn't get feedback, when pushing next or prev image button.

Great. I'm just wondering if you see still any bad requests on the pictureframe output?

Nope. No more bad requests.

Good to know. Thanks for testing.
I turned all encryption off, but still get encrypted requests that result in Bad Requests. I think there is some caching in Home Assistant or the Browser. But I guess, this not worth  to analyse this further.

Do a lot of people use Nabu Casa? I just open an vpn from my smartphone and use the home assistant app in my local environment. So I don't have the need to use any cloud service.

@jeffalperin do you use something like Nabu Casa?

Do a lot of people use Nabu Casa? I just open an vpn from my smartphone and use the home assistant app in my local environment. So I don't have the need to use any cloud service.

I think Nabu Casa is very popular but as long as it remains in the home network, there is no real difference, so you can just use the normal URL.
I use it because it allows me to use Amazon Alexa with HA.

Ah OK. I wrote my own  home automation skill for Alexa integration and run it in within my developer account on AWS. But mainly to find out, how things work.

@sapnho To use it within nabu casa in you lokal network. You could use a selfsigned certificate and enable ssl in the server. But this would be a complete new article on your blog 😄

@helgeerbe I am very new to Home Assistant and am trialing Nabu Casa for remote access and access to Alexa.  From my reading in reddit and elsewhere, it seems to be quite popular.
I can confirm that when I access from outside my local network (via Nabu Casa), I do not see the image, but I do see the image when accessing from within the local network.
Now the strange thing:  When I started picframe this morning, I'm no longer getting the Bad Request messages in the console, and I am seeing the images in Home Assistant.  I haven't changed anything, so I'm puzzled.

@jeffalperin Thanks for the feedback. Glad to hear, that it works now. I think, that there might be some caching issue within the browser.
For remote access within Nabu Casa,  the only solution I can think off, is to setup a template camera entity in home assistant's configuration.yaml.  So the picture frame appears like an ip camera to home assistant.  But there is delay when the image change. So you wouldn't have the direct feedback when pushing the next or prev button.

@sapnho To use it within nabu casa in you lokal network. You could use a selfsigned certificate and enable ssl in the server. But this would be a complete new article on your blog 😄

I am all up for it! :-)

Thanks, Helge! https://www.thedigitalpictureframe.com/integrate-raspberry-pi-picture-frame-home-assistant

I would close this issue, if everything else is up and running?


Build error with build id #9019701

Details:

Project URL: https://readthedocs.org/projects/vhc/
Build URL(if applicable): https://readthedocs.org/projects/vhc/builds/9019701/
Read the Docs username(if applicable): hetdex

Expected Result
Tried to build documentation
Actual Result
Build fails during cloning stage, resetting build environment didn't help.

I think you have your project configured as Git repository instead of Subversion. Could you check that?

Under settings, it is configured as subversion… There was a mistake, that the Default Branch was set to latest, but that didn’t dix the problem

On 6. May 2019, at 17:50, Manuel Kaufmann<EMAIL_ADDRESS>wrote:
I think you have your project configured as Git repository instead of Subversion. Could you check that?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/rtfd/readthedocs.org/issues/5666#issuecomment-489671091, or mute the thread https://github.com/notifications/unsubscribe-auth/ABOURFJM4XSBRPD6XKJTDBLPUBHULANCNFSM4HK6YOCQ.

I tried to set the repository to git, and then back to subversion, after that I got a different error (build 9024091) I fixed that, but now I’m back at the original cloning error.

On 6. May 2019, at 17:50, Manuel Kaufmann<EMAIL_ADDRESS>wrote:
I think you have your project configured as Git repository instead of Subversion. Could you check that?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

It's taking more that 15 minutes to do the svn checkout. That's why it's failing. My guess is that the server running the SVN is very slow and/or the repository too big.
(I tried to checkout it locally and it goes really slow in a 50mb connection)
The error message could be improved, though.

Aah,
thanks a lot, that solved the problem, I moved the test data out of the repository, now it works fine.

On 7. May 2019, at 12:23, Manuel Kaufmann<EMAIL_ADDRESS>wrote:
It's taking more that 15 minutes to do the svn checkout. That's why it's failing. My guess is that the server running the SVN is very slow and/or the repository too big.
(I tried to checkout it locally and it goes really slow in a 50mb connection)
The error message could be improved, though.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/rtfd/readthedocs.org/issues/5666#issuecomment-490024143, or mute the thread https://github.com/notifications/unsubscribe-auth/ABOURFMU3HO7AEYDK3TG4JTPUFKANANCNFSM4HK6YOCQ.


Correct the link of incubation-process at README.md

Motivation:
Correct the link of incubation-process at README.md. Currently it is showing "Not Found".
Modifications:

https://github.com/swift-server/sswg/blob/master/process/incubation.md => https://www.swift.org/sswg/incubation-process.html

Result:
Correct the link of sswg-security

Dear @FranzBusch ,
I does not have permission to run swift ci and merge. Could you help me to run swift ci?
Thanks,
Lam

@swift-server-bot test this please

Dear @FranzBusch ,
Thank you for your support.
Best Regards,
Lam


all: replace uses of deprecated ioutil functions

Please take a look.
This is ready to apply when Go1.15 is no longer supported.

it's seems this CL is missing:
graph/formats/dot/internal/lexer/lexer.go:16:   "io/ioutil"
graph/formats/dot/internal/lexer/lexer.go:46:   src, err := ioutil.ReadFile(fpath)

That get's generated, so until gocc is updated, that remains.

ah, ok :)
perhaps file an issue for this?

They have a long tail of supported versions, so I don't think that would be worthwhile.

Codecov Report

Merging #1706 (d0c4946) into master (f12fdcf) will decrease coverage by 0.08%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1706      +/-   ##
==========================================
- Coverage   73.26%   73.17%   -0.09%
==========================================
  Files         510      504       -6
  Lines       60132    59809     -323
==========================================
- Hits        44057    43768     -289
+ Misses      13583    13567      -16
+ Partials     2492     2474      -18

Impacted Files
Coverage Δ

lapack/gonum/dlaqr1.go
40.62% <0.00%> (-15.63%)
:arrow_down:

optimize/listsearch.go
72.22% <0.00%> (-1.86%)
:arrow_down:

mat/offset_appengine.go

mat/index_bound_checks.go

graph/iterator/lines_map_safe.go

graph/iterator/nodes_map_safe.go

...sp/fourier/internal/fftpack/array_bounds_checks.go

graph/internal/set/same_appengine.go

Continue to review full report at Codecov.

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


using eachRow() and stream() methods

hi, how can i select more number of rows then defined fetch size? cassandra dataStax dev site suggest to use stream or eachRow method with setting autoPage flag true.  link .
so is there anyway i can use existing sails-cassandra module to fetch data from large tables?

You most likely should be able to use .stream() method from sails/waterline. It was implemented long time ago and there should be a test case for it in test directory.
For other methods it is complicated. First of all Waterline ORM provides some abstract data model based on relational databases and MySQL in particular. This set of abstraction somewhat maps to a subset of cassandra features. The README page for the project outlines all these mappings in great details.
I think what is relevant to your case would be using skip and limit query options. Unfortunately, I was only able to implement limit. skip was not supported in v2.x driver and I did not have an opportunity to explore if situation is any different in v3.x. I may give it another look, but I'm quite busy at the moment and it may take awhile (especially given the dying state of the project).
One thing to keep in mind (and this is my understanding based on v2 of Cassandra) that pagination only works on naturally ordered data, i.e. data from a single big row. Otherwise, you may get different results on subsequent queries. So, whether or not you can do pagination also depends on your data model. So, even if this feature somehow available in the driver it may not work as expected.
What would help though, if you could provide a sample of your model and query using DataStax's driver that works the way you expect. Then I can see if it can be done in sails/waterline universe.

thanks for the reply, the case is lets say you have to select some rows based on a criteria.  and the number of rows satisfying that criteria is more than the max fetch size limit. in this case you will bee able to fetch only some rows and not all based on your fetch size limit. and yeah i gave a look at .stream() method and .eachRow mthod.
what i am doing now is the i have changed the small portion of code in .query() method in collection.js file.
`if (_.isString(queries)) {
// execute query
// this.client.execute(queries, params, { prepare: true }, function(err, result) {
//   if (err) return cb(err);
//   cb(null, result.rows);
// });
// get results
var results = [];
this.client.stream(queries, params, { prepare: true, autopage: true })
.on('readable', function () {
  var row;
    while (row = this.read()) {
    results.push(row);
    }
  })
  .on('end', function () {
      cb(null, results);
  })
  .on('error', function (err) {
    return cb(err);
});

}`
and using the .stream() method i can now retrieve all the rows irrespective of fetch size limit. is there any drawback of this method?

If .stream() works for you then this is the way to go. Streaming is still encouraged pattern in node.js community and it works quite well if done properly.
The only drawback I can think of is if you need the actual pagination and you whant ro retrieve page 48 out of 100. In that case you will be pulling and discarding first 47 pages since there is no way to skip to the beginning of page 48. If this is not your case then go with the .stream() 👍
Note, that I'm not up to date on cassandra development and I haven't touched it since this adapter was written few years ago, so take my opinions with a grain of salt.
Let me know if this addresses your issue and I can close the ticket.

for now i am fine with .stream() (the code i shared) but i will give it a try based on test case. Thanks for the reply :) 👍

Hi, reopen this issue as i have a doubt, how can i use .stream() method for streaming a response ? like if i have used a model.query method than how can i stream the response of that query?


[PF 61] Janitor track resource using pubsub. Also setup integration test environment

For now, I added a retrieveTrackedResource(CloudResourceUid uid) to verify resource are created. Will switch to the get endpoint once we have that.

per offline conversation, if we want to hard code things that are coming from vault, that's ok if we comment where we're copying from and a TODO some ticket to address eventually.


where is apm_UTF32Length?

I've got an error with crash.
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFConstantString apm_UTF32Length]: unrecognized selector sent to instance 0x103598930'

I have experience for similar situations that "gtm_httpArgumentsString..."... already fixed it with -force_load.
I didn't using Cocoapods, becuase my environment without Internet Connection.
So I did download frameworks "Firebase-6.0.0.zip" from https://firebase.google.com/docs/ios/setup?hl=ko#frameworks
How can I fix it?

Have you added the -ObjC linker flag to Other Linker Flags in Xcode?


SCB-127 Bug fix: Can not discovery the same domain service instances.

Coverage decreased (-0.04%) to 72.489% when pulling cfda1a6ea19d363503635aa19baf9b722edd48d6 on little-cui:master into dec81c0872de6471b78b9af8c5b90319c3195072 on apache:master.

Codecov Report

Merging #234 into master will increase coverage by 0.14%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #234      +/-   ##
==========================================
+ Coverage   68.72%   68.86%   +0.14%
==========================================
  Files          17       17
  Lines        3562     3562
==========================================
+ Hits         2448     2453       +5
+ Misses        938      935       -3
+ Partials      176      174       -2

Impacted Files
Coverage Δ

server/service/instances.go
70.38% <100%> (-0.17%)
:arrow_down:

server/service/tag.go
74.41% <0%> (+0.58%)
:arrow_up:

server/service/microservices.go
73.63% <0%> (+0.78%)
:arrow_up:

server/service/service_dependency.go
75.86% <0%> (+0.86%)
:arrow_up:

Continue to review full report at Codecov.

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

Coverage increased (+0.1%) to 72.646% when pulling cfda1a6ea19d363503635aa19baf9b722edd48d6 on little-cui:master into dec81c0872de6471b78b9af8c5b90319c3195072 on apache:master.


[Doc Issue][bookmark-fix-in-channel-tab]

Docs Build status updates of commit e5ef9c4:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

msteams-platform/tabs/how-to/create-channel-group-tab.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/tabs/how-to/create-channel-group-tab.md
95
16
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.


IO Exception: missing JSON for OFL-1.0-no-RFN

Just today I started getting this exception from the library:
17:44:13.904 [main] ERROR org.spdx.library.model.license.SpdxListedLicenseException: I/O Error reading license data for ID OFL-1.0-no-RFN
    org.spdx.storage.listedlicense.SpdxListedLicenseModelStore.fetchLicenseJson (SpdxListedLicenseModelStore.java:333)
    org.spdx.storage.listedlicense.SpdxListedLicenseModelStore.setValue (SpdxListedLicenseModelStore.java:455)
    org.spdx.library.model.ModelObject.setPropertyValue (ModelObject.java:386)
    org.spdx.library.model.ModelObject.setPropertyValue (ModelObject.java:401)
    org.spdx.library.model.license.SimpleLicensingInfo.<init> (SimpleLicensingInfo.java:69)
    org.spdx.library.model.license.License.<init> (License.java:78)
    org.spdx.library.model.license.SpdxListedLicense.<init> (SpdxListedLicense.java:71)
    org.spdx.library.model.SpdxModelFactory.getModelObject (SpdxModelFactory.java:202)
    org.spdx.library.model.SpdxModelFactory.createModelObject (SpdxModelFactory.java:175)
    org.spdx.library.model.license.ListedLicenses.getListedLicenseById (ListedLicenses.java:192)

    ...stack trace from my code omitted...

I wasn't sure if this was really an issue with Spdx-Java-Library or something else (and if so, what precisely).
This is coming from v1.1.7 of the library, running on JVM OpenJDK 64-Bit Server VM Temurin-17.0.7+7 (build 17.0.7+7, mixed mode, sharing).

Interesting ... I just tried to access the same license data and it worked.  I wonder if there may be a temporary internet issue.  You may want to try again and see if it reproduces in an hour or so.

Just out of interest, where is this data pulled from?  I had some weird issues earlier accessing github.com, and you now have me wondering if I have some kind of weird internet problem at my end.

Update: it's working now, so I'm going to chalk this up to a connectivity gremlin on my end. Sorry for wasting your time!

Just out of interest, where is this data pulled from? I had some weird issues earlier accessing github.com, and you now have me wondering if I have some kind of weird internet problem at my end.

https://spdx.org/licenses/licenses.json for the table of contents and https://spdx.org/licenses/[license-id].json for the details (where [license-id] is the license ID.


psen_scan_v2: 0.1.6-1 in 'melodic/distribution.yaml'

Increasing version of package(s) in repository psen_scan_v2 to 0.1.6-1:

upstream repository: https://github.com/PilzDE/psen_scan_v2.git
release repository: https://github.com/PilzDE/psen_scan_v2-release.git
distro file: melodic/distribution.yaml
bloom version: 0.10.2
previous version for package: 0.1.5-1

psen_scan_v2
* Separate ROS and standalone CMakeLists: Closes #169
* Minor restructuring. Closes #175
* Contributors: Pilz GmbH and Co. KG

@martiniil @mabelzhang @clalancette
This fails in rosdistro CI:
https://github.com/shr-project/rosdistro/runs/2507409702?check_suite_focus=true
======================================================================
ERROR: test.test_build_caches.test_build_caches
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.8.9/x64/lib/python3.8/site-packages/nose/case.py", line 198, in runTest
    self.test(*self.arg)
  File "/home/runner/work/rosdistro/rosdistro/test/test_build_caches.py", line 57, in test_build_caches
    raise RuntimeError('\n'.join(errors))
RuntimeError: melodic: missing package.xml file for package "psen_scan_v2"

I don't see any 0.1.6-1 tag in the v2 repo:
https://github.com/PilzDE/psen_scan_v2-release/tags
but it does exist in older version:
https://github.com/PilzDE/psen_scan-release/tags
did you upgrade the wrong component? Or were some tags deleted from these repositories (for some very strange reason)? Because they don't show older 0.1.5-1 tags in either of these repos :/.

@martiniil @mabelzhang @clalancette
This fails in rosdistro CI:
https://github.com/shr-project/rosdistro/runs/2507409702?check_suite_focus=true
======================================================================
ERROR: test.test_build_caches.test_build_caches
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.8.9/x64/lib/python3.8/site-packages/nose/case.py", line 198, in runTest
    self.test(*self.arg)
  File "/home/runner/work/rosdistro/rosdistro/test/test_build_caches.py", line 57, in test_build_caches
    raise RuntimeError('\n'.join(errors))
RuntimeError: melodic: missing package.xml file for package "psen_scan_v2"

I don't see any 0.1.6-1 tag in the v2 repo:
https://github.com/PilzDE/psen_scan_v2-release/tags
but it does exist in older version:
https://github.com/PilzDE/psen_scan-release/tags
did you upgrade the wrong component? Or were some tags deleted from these repositories (for some very strange reason)? Because they don't show older 0.1.5-1 tags in either of these repos :/.

Actually, we newly set up the release-repo and just pushed the newest tags. We are sorry for the inconveniences.
If it helps, we could rebuild the whole repo?


Error: incorrect header check

I'm using node-fetch to fetch a URL that returns a JSON and I'm getting an error when parsing the response with response.json().
The error I'm getting is: Error: incorrect header check
i curled the URL and there are no redirects or anything, this is the response header from curl:
HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 57338
Content-Type: application/json; charset=utf-8
Server: Microsoft-IIS/8.5
X-AspNetMvc-Version: 5.2
X-AspNet-Version: 4.0.30319
Set-Cookie: WebApplication.Context=Culture=he-IL&UICulture=he-IL&AddressId=0&SearchCityId=0&SearchStreetId=0&SearchStreetAddress=&SearchStreetName=&SearchCityName=&SearchHouseNumber=&SearchCountryCode=&SearchFullAddress=&ShoppingCartGuid=00000000-0000-0000-0000-000000000000&WebsiteId=10bis&DomainId=10bis&BrowsingRestaurantId=0&SearchPhrase=&NavigationStartPoint=&HideAllPoups=False&IsKosher=False&DesiredDateAndTime=01/01/0001 00:00:00&CouponCode=&CompanyPreferredSite=&CompanyAdminPermissionLevel=&PreferredResList=List&PreferredResListSitting=Map; expires=Thu, 24-Mar-2016 13:11:08 GMT; path=/
X-Powered-By: ASP.NET
Date: Thu, 24 Mar 2016 09:11:08 GMT

using latest node-fetch version<EMAIL_ADDRESS>any idea how to fix this?

This error is coming from node.js zlib, similar to #45 (also a IIS server, if I recalled correctly)
But it has nothing to with http headers, instead, it's complaining about the header of response body (which would be in gzip or deflate compression in order to trigger this error).
If you must handle this page, option compress: false should cause server to send back a non-compressed version, which node-fetch should be able to read.
Note that curl might not send content-encoding header by default, so to properly test if that server is returning valid gzip/deflate. See this:
http://stackoverflow.com/questions/9140178/how-can-i-tell-if-my-server-is-serving-gzipped-content

closing as issue is from lower level
though with v1.5.0 you might be able to handle this error more gracefully (still, you need to correct the response to be able to extract with built-in zlib)

I just passed the options object to the fetch call and it worked.
const options = {
compress : false
}
Thanks a lot @bitinn .


busy loop when waiting on Stream::buffered()

Consider the following program:
extern crate futures;
extern crate futures_io;
extern crate futures_mio;

use futures::Future;
use futures::stream::Stream;
use futures_io::{copy, TaskIo};

pub fn main() {
    let mut l = futures_mio::Loop::new().unwrap();
    let srv = l.handle().tcp_listen(&"<IP_ADDRESS>:5000".parse().unwrap());

    let future = srv.and_then(move |server| {
        server.incoming()
            .and_then(|s| TaskIo::new(s.0))
            .map(|i| i.split())
            .map(|(a,b)| copy(a,b).map(|_| ()))
            .buffered(10)
            .collect()
    });

    let _ = l.run(future);
}

Before https://github.com/alexcrichton/futures-rs/commit/9804cec6d61969f1961aa57ae0e2541f8057a804, this program successfully acted as a TCP echo server. Now it hangs, pegs a CPU, and fails to echo any data sent to it.

Oops! Thanks for the report!

Thanks, but I think some bugginess remains. Now my program works if there is only ever one concurrent connection, but fails as soon as it receives more than one concurrent connection.

Aha! Fixed in https://github.com/alexcrichton/futures-rs/commit/bce2ad2655db67728a1f7334919d689f334e7d48

Yay tests!


Alert dialog box show

When users basically press the logout button on Main Activity , they directly logout from app , but it will be very good if there exists one alert dialog box , when users click on logout button.
Basically , it shows are you sure want to exist or not ?

Hey @maityamit , I am interested in contributing to this issue.
But can you explain do we need to write the code and submit it.
Thanks
Afreena.

@afreenabegum Yes , I hope you know the basics about the git and github , how to contribute .
So , as per Please fork this project and change means create a alert dialog box at when users will click the logout button .
Thats the task .
I mentioned that where you need to add : https://github.com/maityamit/Tracky-Track-your-goals-or-targets/blob/master/app/src/main/java/achivementtrackerbyamit/example/achivetracker/MainActivity.java#L73
In this line you need a Alert Dialog box .
If you want to do this please comment , I will assign you this task.
And I am always here for help.
Amit Maity
Thanks.

Please assign it to me. I'll work on this.
I'll ping you if I needed help.
Thank you.

@afreenabegum Yes , I hope you know the basics about the git and github , how to contribute . So , as per Please fork this project and change means create a alert dialog box at when users will click the logout button . Thats the task .
I mentioned that where you need to add : https://github.com/maityamit/Tracky-Track-your-goals-or-targets/blob/master/app/src/main/java/achivementtrackerbyamit/example/achivetracker/MainActivity.java#L73
In this line you need a Alert Dialog box . If you want to do this please comment , I will assign you this task. And I am always here for help.
Amit Maity Thanks.

i would like to work on it ?

Hello! I would like to work on this. Can you please assign it to me?

Hello! I would like to work on this. Can you please assign it to me?

Sorry @SaarthakMaini . As per first cum first serve basis , this issue already assigned to someone , you can choose another issue , which I will today / tommorow .

Okay, thank you!!

@afreenabegum
Thanks for contribute ..

@afreenabegum Thanks for contribute ..

Thank you so much  for guiding me.


OLM fails to install CRDs on k8s 1.18.2

Type of question
Are you asking about community best practices, how to implement a specific feature, or about general context and help around the operator-sdk?
OLM Installation fails and leaves errors behind in api-server log
Question
What did you do?
A clear and concise description of the steps you took (or insert a code snippet).
applied the CRD and and ORM manifests.
What did you expect to see?
A clear and concise description of what you expected to happen (or insert a code snippet).
OLM running and CRDs available for creating operators
What did you see instead? Under which circumstances?
A clear and concise description of what you expected to happen (or insert a code snippet).
E0429 19:03:05.498051       1 customresource_handler.go:652] error building openapi models for clusterserviceversions.operators.coreos.com: ERROR $root.definitions.com.coreos.operators.v1alpha1.ClusterServiceVersion.properties.spec.properties.install.properties.spec.properties.deployments.items.<array>.properties.spec.properties.strategy.properties.rollingUpdate.properties.maxSurge has invalid property: anyOf ERROR $root.definitions.com.coreos.operators.v1alpha1.ClusterServiceVersion.properties.spec.properties.install.properties.spec.properties.deployments.items.<array>.properties.spec.properties.strategy.properties.rollingUpdate.properties.maxUnavailable has invalid property: anyOf ERROR $root.definitions.com.coreos.operators.v1alpha1.ClusterServiceVersion.properties.spec.properties.install.properties.spec.properties.deployments.items.<array>.properties.spec.properties.template.properties.spec.properties.containers.items.<array>.properties.lifecycle.properties.postStart.properties.httpGet.properties.port has invalid property: anyOf
Environment

operator-lifecycle-manager version:
0.14.1

Kubernetes version information:
1.18.0

Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.3", GitCommit:"06ad960bfd03b39c8310aaf92d1e7c12ce618213", GitTreeState:"clean", BuildDate:"2020-02-11T18:14:22Z", GoVersion:"go1.13.6", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.0", GitCommit:"9e991415386e4cf155a24b1da15becaa390438d8", GitTreeState:"clean", BuildDate:"2020-03-25T14:50:46Z", GoVersion:"go1.13.8", Compiler:"gc", Platform:"linux/amd64"

Kubernetes cluster kind:

Additional context
Add any other context about the question here.

Hi,
This seems to be related to a v1 CRD support bug that we encountered recently. It has been resolved. The new (coming) release should no longer have this issue.
Thanks,
Vu

Closing as this has been fixed, as Vu mentioned.

Closing as this has been fixed, as Vu mentioned.


It costs 1 credit per sentence !? too expensive

It costs 1 credit per sentence, which is too expensive. It is completely different from the chat on the official website. Will anyone use it?

the API pricing is minutes based and can reach less than 35c / min on certain plans
https://www.d-id.com/pricing/api/
Social impact projects and PoCs can contact support and get additional credits