How to use RPC in real world?

Hi!
I like your library!
But your RPC framework very strange. How to use it in real world?
There are no any info how to use some transport, for example sockets.
Could you please add some examples?

The rpc is merely serializing a function call into data and serves a function call from a given data. You need to implement the transport in between, the library is not providing the transport

yes, I got you.
But I don't have any idea how to attach own transport to your framework.
Could you show?

Choose whatever transport you want, then in the server you receive a message into a std::vector of bytes, you send this vector to the rpc using the example in the readme, and then you call serve on it, which will deserialize the call and invoke the function in the server.
For the client side this is similar except you are sending an empty vector to the rpc then you call it which will serialize the function call into the vector. Then you send the vector of bytes using your transport.

@aPSopt let me know if you need more info

Oh, ok, I found where I can get serialized buffer. Thx!

@darkomenz https://github.com/eyalz800/zpp_bits/blob/main/test/src/test_rpc.cpp

/*
Example real world application. For https://github.com/eyalz800/zpp_bits/issues/69
/
#include
#include <zpp_bits.h>
using namespace zpp::bits::literals;
/
This class is a shared object and is accessed from multiple threads / coroutines.
Each function should be thread safe and implement locking.
/
class Application : public std::enable_shared_from_this
{
public:
Application()
{
std::cout << "Application::Application" << std::endl;
}
~Application()
{
std::cout << "Application::~Application" << std::endl;
}
std::string hello(std::string name)
{
std::cout << "Application::hello" << std::endl;
return std::string("Hello ").append(name);
}
};
/
This class implements socket communications. For this example data copying is used to simply the code;
/
class Socket
{
public:
std::vectorstd::byte data;
};
/
This class is for server rpc it is spawned inside multiple threads / coroutines (per connection) and accesses a shared object.
/
class Server : public Socket
{
public:
Server(std::weak_ptr application) : server_rpc(zpp::bits::in<std::vectorstd::byte, zpp::bits::endian::network>(data, zpp::bits::endian::network{}), zpp::bits::out<std::vectorstd::byte, zpp::bits::endian::network>(data, zpp::bits::endian::network{}), application)
{
std::cout << "Server::Server" << std::endl;
}
~Server()
{
std::cout << "Server::~Server" << std::endl;
}
public:
zpp::bits::rpc<
zpp::bits::bind<&Application::hello, "hello"_sha256_int>
>::server<
zpp::bits::in<std::vectorstd::byte, zpp::bits::endian::network>,
zpp::bits::out<std::vectorstd::byte, zpp::bits::endian::network>,
std::weak_ptr
> server_rpc;
};
/
This class is for client rpc it is spawned inside multiple threads / coroutines (per connection) and calls the server for responses.
/
class Client : public Socket
{
public:
Client(Server& socket) : socket(socket), client_rpc(zpp::bits::in<std::vectorstd::byte, zpp::bits::endian::network>(data, zpp::bits::endian::network{}), zpp::bits::out<std::vectorstd::byte, zpp::bits::endian::network>(data, zpp::bits::endian::network{}))
{
std::cout << "Client::Client" << std::endl;
}
~Client()
{
std::cout << "Client::~Client" << std::endl;
}
std::string hello(std::string name)
{
client_rpc.request<"hello"_sha256_int>(std::string("World")).or_throw();
socket.data = data;
socket.server_rpc.serve().or_throw();
data = socket.data;
return client_rpc.response<"hello"_sha256_int>().or_throw();
}
public:
Server& socket;
zpp::bits::rpc<
zpp::bits::bind<&Application::hello, "hello"_sha256_int>
>::client<
zpp::bits::in<std::vectorstd::byte, zpp::bits::endian::network>,
zpp::bits::out<std::vectorstd::byte, zpp::bits::endian::network>
> client_rpc;
};
/
Example RPC Call between classes.
*/
int main(int argc, char *argv[], char *envp[])
{
Application application;
Server server { application.weak_from_this() };
Client client { server };
try
{
std::cout << client.hello("World") << std::endl;
}
catch(...)
{
std::cout << "Caught Exception Aborted" << std::endl;
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}

The example listed above is not currently possible in the framework because the RPC subsystem depends on r-values.
Can we add support for managed pointers?

@darkomenz can you paste the code with indentation?

Like here
int main()
{
    return 0;
}

@eyalz800 formatting is fixed now.

@darkomenz I'm using phone at the moment can you point me to the line which has the error where it depends on rvalue

It would also be a good idea to add a optional message checksum such as crc32 for the on wire representation.
There have a been a few cases of large scale application faults due to hardware faults in the network card.
r-value required at zpp_bits.h: 3910

@darkomenz I think I see the issue.
All of the classes were designed with class template argument deduction and you were explicitly passing value type to the template which makes the constructor instantiate to require an rvalue.
If you used class template argument deduction it would have gone to the lvalue.
If you want to workaround you just make the rpc class with an lvalue reference to your input and output archives and it will make the constructor collapse to lvalue.
Does that make sense? @darkomenz

The workaround is like so:
zpp::bits::rpc<
      zpp::bits::bind<&Application::hello, "hello"_sha256_int>
    >::client<
      zpp::bits::in<std::vector<std::byte>, zpp::bits::endian::network> &,
      zpp::bits::out<std::vector<std::byte>, zpp::bits::endian::network> &
    > client_rpc;

/*

Example real world application. For https://github.com/eyalz800/zpp_bits/issues/69

*/
#include <iostream>
#include <zpp_bits.h>
using namespace zpp::bits::literals;
/*

  This class is a shared object and is accessed from multiple threads / coroutines.
  Each function should be thread safe and implement locking.

*/
class Application : public std::enable_shared_from_this<Application>
{
  public:
    Application()
    {
      std::cout << "Application::Application" << std::endl;
    }
    ~Application()
    {
      std::cout << "Application::~Application" << std::endl;
    }
    std::string hello(std::string name)
    {
      std::cout << "Application::hello" << std::endl;
      return std::string("Hello ").append(name);
    }
};
/*

  This class implements socket communications. For this example data copying is used to simply the code;

*/
class Socket
{
  public:
    std::vector<std::byte> data;
};
/*

This class is for server rpc it is spawned inside multiple threads / coroutines (per connection) and accesses a shared object.

*/
class Server : public Socket
{
  public:
    Server(std::weak_ptr<Application> application) : in{ data, {} }, out{ data, {} }, server_rpc{ in, out, application }
    {
      std::cout << "Server::Server" << std::endl;
    }
    ~Server()
    {
      std::cout << "Server::~Server" << std::endl;
    }
  public:
    zpp::bits::in<std::vector<std::byte>, zpp::bits::endian::network> in;
    zpp::bits::out<std::vector<std::byte>, zpp::bits::endian::network> out;
    zpp::bits::rpc<
      zpp::bits::bind<&Application::hello, "hello"_sha256_int>
    >::server<
      zpp::bits::in<std::vector<std::byte>, zpp::bits::endian::network>&,
      zpp::bits::out<std::vector<std::byte>, zpp::bits::endian::network>&,
      std::weak_ptr<Application>&
    > server_rpc;
};
/*

This class is for client rpc it is spawned inside multiple threads / coroutines (per connection) and calls the server for responses.

*/
class Client : public Socket
{
  public:
    Client(Server& socket) : socket(socket), in{ data, {} }, out{ data, {} }, client_rpc{ in, out }
    {
      std::cout << "Client::Client" << std::endl;
    }
    ~Client()
    {
      std::cout << "Client::~Client" << std::endl;
    }
    std::string hello(std::string name)
    {
      client_rpc.request<"hello"_sha256_int>(std::string("World")).or_throw();
      socket.data = data;
      socket.server_rpc.serve().or_throw();
      data = socket.data;
      return client_rpc.response<"hello"_sha256_int>().or_throw();
    }
  public:
    Server& socket;
    zpp::bits::in<std::vector<std::byte>, zpp::bits::endian::network> in;
    zpp::bits::out<std::vector<std::byte>, zpp::bits::endian::network> out;
    zpp::bits::rpc<
      zpp::bits::bind<&Application::hello, "hello"_sha256_int>
    >::client<
      zpp::bits::in<std::vector<std::byte>, zpp::bits::endian::network>&,
      zpp::bits::out<std::vector<std::byte>, zpp::bits::endian::network>&
    > client_rpc;
};
/*
  Example RPC Call between classes.
*/
int main(int argc, char *argv[], char *envp[])
{
  Application application;
  Server server { application.weak_from_this() };
  Client client { server };
  try
  {
    std::cout << client.hello("World") << std::endl;
  }
  catch(...)
  {
    std::cout << "Caught Exception Aborted" << std::endl;
    return EXIT_FAILURE;
  }
  return EXIT_SUCCESS;
}

ubuntu@ubuntu:~/C++/TestRPC$ make && ./TestRPC
ccache g++ -std=c++2b -fcoroutines -march=native -I ../Dependencies/zpp_bits -Wall -Og -c Application.cpp -o Application.o
In file included from Application.cpp:7:
../Dependencies/zpp_bits/zpp_bits.h: In instantiation of ‘constexpr auto zpp::bits::apply(auto:184&&, auto:185&&, auto:186&&) requires (std::remove_cvref<decltype(zpp::bits::apply::archive)>::remove_cvref_t<decltype(zpp::bits::apply::archive)>::kind)() == zpp::bits::kind::in [with auto:184 = std::weak_ptr&; auto:185 = std::__cxx11::basic_string (Application::)(std::__cxx11::basic_string); auto:186 = zpp::bits::in<std::vectorstd::byte, zpp::bits::options::endian::big>&]’:
../Dependencies/zpp_bits/zpp_bits.h:3626:25:   required from ‘static constexpr decltype(auto) zpp::bits::bind<Function, Id, MaxSize>::call(auto:189&&, auto:190&&) [with auto:189 = zpp::bits::in<std::vectorstd::byte, zpp::bits::options::endian::big>&; auto:190 = std::weak_ptr&; auto Function = &Application::hello; auto Id =<PHONE_NUMBER>; auto MaxSize = -1]’
../Dependencies/zpp_bits/zpp_bits.h:3930:73:   required from ‘constexpr auto zpp::bits::rpc_impl::server<In, Out, Context>::call_binding(auto:200&) requires !(FirstBinding::opaque) [with FirstBinding = zpp::bits::bind<&Application::hello,<PHONE_NUMBER>>; OtherBindings = {}; auto:200 = unsigned int; In = zpp::bits::in<std::vectorstd::byte, zpp::bits::options::endian::big>&; Out = zpp::bits::out<std::vectorstd::byte, zpp::bits::options::endian::big>&; Context = std::weak_ptr&; Bindings = {zpp::bits::bind<&Application::hello,<PHONE_NUMBER>, -1>}]’
../Dependencies/zpp_bits/zpp_bits.h:4152:49:   required from ‘constexpr auto zpp::bits::rpc_impl::server<In, Out, Context>::serve(auto:202&&) [with auto:202 = unsigned int; In = zpp::bits::in<std::vectorstd::byte, zpp::bits::options::endian::big>&; Out = zpp::bits::out<std::vectorstd::byte, zpp::bits::options::endian::big>&; Context = std::weak_ptr&; Bindings = {zpp::bits::bind<&Application::hello,<PHONE_NUMBER>, -1>}]’
../Dependencies/zpp_bits/zpp_bits.h:4162:38:   required from ‘constexpr auto zpp::bits::rpc_impl::server<In, Out, Context>::serve() [with In = zpp::bits::in<std::vectorstd::byte, zpp::bits::options::endian::big>&; Out = zpp::bits::out<std::vectorstd::byte, zpp::bits::options::endian::big>&; Context = std::weak_ptr&; Bindings = {zpp::bits::bind<&Application::hello,<PHONE_NUMBER>, -1>}]’
Application.cpp:89:30:   required from here
../Dependencies/zpp_bits/zpp_bits.h:3598:63: error: pointer to member type ‘std::__cxx11::basic_string (Application::)(std::__cxx11::basic_string)’ incompatible with object type ‘std::weak_ptr’
3598 |                     return (std::forward<decltype(self)>(self).
|                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
3599 |                             std::forward<decltype(function)>(function))(
|                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../Dependencies/zpp_bits/zpp_bits.h:3591:57: error: invalid use of void expression
3591 |             return value_or_errc<return_type>(std::apply(
|                                               ~~~~~~~~~~^
3592 |                 [&](auto &&... arguments) -> decltype(auto) {
|                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3593 |             // Ignore GCC issue.
|             ~~~~~~~~~~~~~~~~~~~~
3594 | #if defined GNUC && !defined clang
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3595 | #pragma GCC diagnostic push
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
3596 | #pragma GCC diagnostic ignored "-Warray-bounds"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3597 | #endif
| ~~~~~~
3598 |                     return (std::forward<decltype(self)>(self).*
|                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3599 |                             std::forward<decltype(function)>(function))(
|                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3600 |                         std::forward<decltype(arguments)>(arguments)...);
|                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3601 | #if defined GNUC && !defined clang
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3602 | #pragma GCC diagnostic pop
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
3603 | #endif
| ~~~~~~
3604 |                 },
|                 ~~
3605 |                 std::move(parameters)));
|                 ~~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:15: Application.o] Error 1

Try to dereference the application instead of sending it as a weak pointer

Ok cool that fixed it but can we add support for the Smart Pointer types?

Depends on whether there is any added value, when I work with reference it automatically supports the smart pointer as well with a simple dereference

I believe in the std::shared_ptr case that would be fine but with std::weak_ptr when the object goes out of scope that would lead to crash correct?

@darkomenz you anyway avoid calling serve on the rpc if server is dead so I don't thing there is an issue with it

No worries I appreciate your help. Thank you for the assistance.


fix: add linux dynamic library "lib" prefix

In case this change is made, wouldn't it be most consistent make a general update, instead just the dyn out on linux?
https://github.com/webui-dev/webui/blob/9f120e974fcb333bbc749790ea233c15e5494513/GNUmakefile#L5

In case this change is made, wouldn't it be most consistent make a general update, instead just the dyn out on linux?
https://github.com/webui-dev/webui/blob/9f120e974fcb333bbc749790ea233c15e5494513/GNUmakefile#L5

That is not what this is about. Only the Linux .so output is broken, I think.
Also, did someone forget to merge this? :?

I don't think it was broken either, it was just the name chosen so far. We can look into platform naming conventions get to the best possible state making a breaking change like this.


luci-mod-network: backport 802.11ax HE support

Can someone test this commit?

I can test it later.

I built immoralwrt-luci-18.06 with this patch #36  for my machine (Xiaomi CR6608).
AX mode showed. 2.4G is normal.

But there's no channel choice in 5G setting page.

The problem has been mentioned in official repository‘s master branch in this issue https://github.com/openwrt/luci/issues/5106 and actually solved in this commit https://github.com/openwrt/luci/commit/fb82e03635d9ea43d3f99f219dcdf2222c4aa675.

The problem has been mentioned in official repository‘s master branch in this issue https://github.com/openwrt/luci/issues/5106 and actually solved in this commit https://github.com/openwrt/luci/commit/fb82e03635d9ea43d3f99f219dcdf2222c4aa675.

Thanks, I‘ll backport it later. By the way, do you have an ax device and can test whether the place shown in the figure below is normal?

Sorry for my careless test, I found that after flashing this firmware, just doing one step --click "save" button on 5G setting page, the channel choices become normal.

Everything is OK now.

The figure below is normal. 1200Mbps

Sorry for my careless test, I found that after flashing this firmware, just doing one step --click "save" button on 5G setting page, the channel choices become normal.

Thank you very much for your test. No need to be sorry, the default display on luci is indeed problematic, because it does not recognize the newly added 'band' option.

But there's no channel choice in 5G setting page.

Fixed.


Error in FilterColorDescriptor example?

OK, admittedly I'm new to Android but I can't make any sense out of this: https://github.com/codepath/android_guides/wiki/Replacing-Enums-with-Enumerated-Annotations
In the FilterColorDescriptor example, you're defining int constants and initializing them with String values. What the hey?

Fixed, thanks!


translations bug fixed

The version of the package: "pxt-microbi" was changed automatically.
The fix was that the filename of the translations needs to have the same name in the beginning as the field "name" in the pxt.json file.


Poor performance

I am currently working on a project where we want to identify a small group of people on multiple cameras.
Currently we are using a small "DeepReId" model, but we are hoping to find an increased performance by switching to fast-reid.
However, on our own dataset we are finding significantly worse performance. Currently we are doing the following.

We rescale pictures from our detector using padding.
Images are converted from interleaved to planar RGB.
To compare two images we use cosine distance.

Our small test include 87 pictures of 6 different people in a realistic scenario. The goal is to make the overlap between matches and not-matches as small as possible so we will be able to more correctly group the pictures of each individual.
Our histogram and heatmap for the two models can be seen here: https://i.imgur.com/23yaxth.png
I assume it is possible to gain a better performance than this. So am I doing something wrong or is there steps I am missing in the data preparation or in the analysis of the output?
Best,
Martin

Your histogram and heatmap for those models are so cool. How do you plot that?

I am currently working on a project where we want to identify a small group of people on multiple cameras. Currently we are using a small "DeepReId" model, but we are hoping to find an increased performance by switching to fast-reid.
However, on our own dataset we are finding significantly worse performance. Currently we are doing the following.

We rescale pictures from our detector using padding.
Images are converted from interleaved to planar RGB.
To compare two images we use cosine distance.

Our small test include 87 pictures of 6 different people in a realistic scenario. The goal is to make the overlap between matches and not-matches as small as possible so we will be able to more correctly group the pictures of each individual. Our histogram and heatmap for the two models can be seen here: https://i.imgur.com/23yaxth.png
I assume it is possible to gain a better performance than this. So am I doing something wrong or is there steps I am missing in the data preparation or in the analysis of the output?
Best, Martin

How did you train reid model with fast-reid compared with your small "DeepReId" model?


Enhancement: Add a snapshot IDs directory to the FUSE mount

Currently we can see snapshots by hosts, date and tags.
It would be nice to be able to browse snapshots per ID in a FUSE mount, with  a special directory.
E.g.: ls -l /mnt/restic/ids/3662613c

Nice idea!

In order to better support automation I think it would make sense if ls -l /mnt/restic/ids would use the long versions of the IDs since this is what restic snapshots --json outputs.
Another option would be to use the short IDs but add the short ID as an additional field to the restic snapshots --json  output.

Hm, interesting. Let's discuss this with @mungomat, since he did the PR.

Thanks @mungomat !


Modified  Volunteer Page Bug Fixed

Hello Project Admin,
I have Fixed Bug Of Form Page Heading And its Submit Button Width Changing Bug which I mention in the issue no. #897  .
Screenshot -

Checklist:

[x] I have mentioned the issue number in my Pull Request.
[x] I have commented my code, particularly in hard-to-understand areas
[] I have created a helpful and easy to understand README.md

It is super ready to Merge

It's all set to merge


Installing the Library

Hey there, just wondering if this library is available on PyPi? I don't see anything in the docs about how to install this library.

Hello, thanks for reaching out. The library isn't currently available on PyPi, and I haven't had much time to work on it recently. The easiest way for you to use the package is probably to git clone it locally. Let me know if that works for you.

Got it, okay no problem. Appreciate the quick response.


Update nvc++ workaround in mem_fence()

Hi @illuhad,
It seems Nvidia has indeed fixed the compiler errors with empty if target statements.
See #767 (happy to close if you are) and #798.
Cheers :)

On second thought, I think this is over complicating and adds nothing. Besides, it's the wrong place for a fix like this...
I would suggest either:

Adding a note to the comment saying it only applies to versions <= 22.7;
Editing cuda_backend.hpp to add printf(""); or int dummy; (void)dummy; and moving the compiler bug comment there;
Amending the documentation to say we require version 22.9 and above.

I think it would suffice to just add to the comment that this only affects these older nvc++ versions. We don't need to put in a lot of effort just to be able to express a no-op in an if target path :-)


ROCm installation for RX550

Hi,
I installed ROCm following the instructions here: https://rocmdocs.amd.com/en/latest/Installation_Guide/Installation-Guide.html#ubuntu .
I am using Ubuntu 18.04.5 and I downgraded the kernel to <IP_ADDRESS> to have the same reported in the instructions.
ROCm 4.3 fails with the problem reported in this issue: https://github.com/RadeonOpenCompute/ROCm/issues/1302
ROCm 4.1 fails with the following error
ERROR: rocprofiler_iterate_info(), Translate(), ImportMetrics: bad block name 'GRBM', GPU device_id(699f) is not supported
/usr/bin/rocprof: line 358:  2582 Aborted                 (core dumped) /opt/rocm-4.1.0/rocprofiler/tool/ctrl
I am trying to analyze an RX 550.
Could you please report which package versions (Ubuntu, kernel, ROCm, amdgpu) should be used for this GPU?

Try this:
https://github.com/boriswinner/RX580-rocM-tensorflow-ubuntu20.4-guide

I tried that (same ubuntu, kernel and rocm versions). I am still getting:
>>> Run:
ERROR: rocprofiler_open(), Translate(), ImportMetrics: bad block name 'GRBM', GPU device_id(699f) is not supported
/opt/rocm/bin/rocprof: line 275:  4824 Aborted                 (core dumped) "./main.x"
It seems that the counters are not supported for this GPU. The command rocprof --stats works fine.

Thanks @basileus93 for reaching out.
We do not support RX550 officially with ROCm and request to look at supported cards @ https://github.com/RadeonOpenCompute/ROCm#hardware-and-software-support
Hope this helps.
Thank you.


Feature Request: Hold Ctrl Key to Measure Distance without Dragging from Token

One feature of Show Drag Distance that I really liked was that it allowed you to have a token selected and just press Ctrl with the mouse pointer anywhere on the map to pop up a distance ruler to that spot.  I found that much more convenient than the default behavior of needing to Ctrl-drag from the token.

There is a standalone module called Rangefinder that provides this functionality.
Duplicate issue #6


Add option to disable list of presets

Users should be able to configure an array of presets that are ignored/disabled.

This perhaps needs to work in "reverse" order, otherwise if you load preset A then B, and preset B disables a preset that A extends, then it would be too late.

Yeap. Thought for that feature too.

Need to think more about this A - B use case mentioned above, with a real use case example for clarity.

Example config:
{
  "extends": ["config:base"],
  "ignorePresets": [":prHourlyLimit2"]
}

The above would mean that the user would get all the presets in config:base except :prHourlyLimit2.


Correction for raw affiliation Ethical approval: The EPAC project, through the AAMC, was determined to be exempt from further institutional review board (IRB) review by the American Institutes for Research (IRB00000436, project number EX00338). The project was also reviewed and approved or exempted by the IRBs from each participating site.; Other disclosures: None reported.; is retired professor of pediatrics and vice chair of education, University of Colorado, Denver, Colorado.

Correction needed for raw affiliation Ethical approval: The EPAC project, through the AAMC, was determined to be exempt from further institutional review board (IRB) review by the American Institutes for Research (IRB00000436, project number EX00338). The project was also reviewed and approved or exempted by the IRBs from each participating site.; Other disclosures: None reported.; is retired professor of pediatrics and vice chair of education, University of Colorado, Denver, Colorado.
raw_affiliation_name: Ethical approval: The EPAC project, through the AAMC, was determined to be exempt from further institutional review board (IRB) review by the American Institutes for Research (IRB00000436, project number EX00338). The project was also reviewed and approved or exempted by the IRBs from each participating site.; Other disclosures: None reported.; is retired professor of pediatrics and vice chair of education, University of Colorado, Denver, Colorado.
new_rors: 02hh7en24
previous_rors: 00490n048;02hh7en24
works_examples: W2900646942
contact: 1c7aaa50bab89e4993a361296047df95:c3162aacfb8f7f @ air.org

This issue was accepted and ingested by the OpenAlex team on 2024-10-10. The new affiliations should be visible within the next 7 days.


what class should I use for alignement of Iframe ?

I'm implementating a custom youtube directive, following the work of https://gist.github.com/dbrgn/2922648 in my documentation.
It works like a charme but the alignment class seems to be broken or not compatible with the theme.
It's using : "align-%(align)s", which class should I use instead ?
In general where can I find the available class for alignment, flex, text coloring  when I use .. raw:: html ?

Do you have a live link available of your documentation? (that's always easier to check / inspect)
In general, I am not sure adding a class="align-left" will work, if you don't add CSS that styles that specific class.

yes I have :

my documentation live here : https://github.com/openforis/sepal-doc
the extention is here : https://github.com/openforis/sepal-doc/blob/master/docs/source/extentions/video.py

As the theme surely have its own embeded css, my question can be rephrased in : "Is there a class that I can use to change the alignment of a html tag ?"

Can the online docs be viewed without signing up? (on https://sepal.io/ I don't see a link to the docs)

The documentation is not yet published online. I build it locally (sorry). A little screenshot of this top page (https://github.com/openforis/sepal-doc/blob/master/docs/source/setup/setup.rst):

I would like to have the video centered on the page

If you are using the align-center class in the video div, I suppose you can add some css yourself for this class to ensure it is aligned in the middle, eg:
.align-center {
  margin: auto;
  padding: 10px;
}

See eg https://www.w3schools.com/css/css_align.asp

this is were I was going, but Before adding extra css, I wanted to know what bootstrap classes were available to avoid reinventing the wheel.
I've just tested the bootstrap 4 : d-flex justify-content-center and it didn't work

Hehe, got it the secret was wrapping AND the bootstrap 4 classes are available
I changed my youtube iframe to :
    <div class="d-flex justify-content-%(align)s">
        <iframe
            src="http://www.youtube.com/embed/%(video_id)s"
            width="%(width)u"
            height="%(height)u"
            frameborder="0"
            webkitAllowFullScreen
            mozallowfullscreen
            allowfullscreen
        >
        </iframe>
    </div>

and now it works
thanks for your time !

Good to hear!


fix: fix vultr node count

just ran into an issue with a vultr provision where we started with 2 nodes but argocd couldn't schedule because it was waiting on a 3rd for scale up
10:14
i hadn't run into this before, but i'm gonna change gitops-template for vultr to start with 3 nodes and scale up to 5


TASK#119 create add member button at the top of the screen

Description
Please include a summary of the change.
USE CASES
En la opción añadir socio, al pasar el cursor debe tener una reacción ( subrayar).
In the member add option, when you mouse over, you should have a reaction (underline).
fixes # (issue)
(119)
Screenshots

If applicable, add screenshots about your changes
Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How to test it
If applicable, describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.

Go to '...'
Click on '....'
Scroll down to '....'

Checklist:

[ ] Doesn't break the current code.
[ ] Passes linters and test, also is building.
[ ] Doesn't have spelling or grammatical problems.
[ ] Doesn't have unnecessary comments or debugging code.
[ ] The branch is updated with the last dev branch changes.

With the change it is working

✔ Test in chrome and firefox in both browsers works fine for me, some other details of the bug to help identify it

@JuanParraIV please check why "npm run build" is not working

looks good @JuanParraIV do you want to add anything else?

can you please resolve conflicts?

when everything is in order merge this before #126


add decrypt support

Decrypts the repo, and leaves it arround:
match decrypt  -r<EMAIL_ADDRESS>

i think the test-fail has nothing todo with this pr?

@hjanuschka
We had an issue with CI earlier, you’ll need to bring in a fix so the tests will pass on CI, please run:
git cherry-pick f6a7d2100b639c27ecd70c51f59f3542b9dc5cea

and push again to update this request.

This looks great, thanks @hjanuschka. Could you cherry pick and let us know when the PR was updated? :+1:

ok rebased master - should work now.
@KrauseFx  https://twitter.com/KrauseFx/status/710157140137095168 that broke the CI?

@hjanuschka Haha, no, this tweet was in its own branch :wink:

Great, thank you so much for your contribution @hjanuschka :+1:


Remove newline in bin/tus causing extra output

This was causing additional output from commands even when passing the --quiet flag. Any output from commands used as a cronjob causes cron to notify the administrator via email.
To test, run vendor/bin/tus tus:expired -q. Before, it'd print an empty line. After, there is no output at all. (Alternatively, run vendor/bin/tus without any arguments to get the usage message, and notice the difference in newlines above the message.)

Thanks!


Prefer c++ system headers

Any reason why these should be preferred?
Also AFAIK, using headers like <cstring> guarantees that symbols exist in the std namespace, but not necessarily in the global namespace.

Any reason why these should be preferred?
Also AFAIK, using headers like <cstring> guarantees that symbols exist in the std namespace, but not necessarily in the global namespace.

given that godotengine uses modern c++, the changes proposed comply  better with modern c++ standards. C++ headers provide stricter typing rules.
Like you point out, the changes increase namespace safety, which is desirable.
Additionally the C++ headers are already widely used in the code base, so these changes make the code base more consistent.

does anybody know what causes that one workflow check to fail? I only have linux, so its a bit hard to reproduce the issue

No idea:
x86_64-w64-mingw32-g++ -o platform\windows\os_windows.windows.template_release.x86_64.o -c -std=gnu++17 -fno-exceptions -Wctor-dtor-privacy -Wnon-virtual-dtor -Wplacement-new=1 -msse2 -ffp-contract=off -mwindows -O3 -Wall -Wextra -Wwrite-strings -Wno-unused-parameter -Wshadow -Wno-misleading-indentation -Wno-return-type -Walloc-zero -Wduplicated-branches -Wduplicated-cond -Wstringop-overflow=4 -Wattribute-alias=2 -Wlogical-op -Werror -Wno-unknown-pragmas -isystem thirdparty\glad -DNDEBUG -DSTRICT_CHECKS -DWINDOWS_ENABLED -DWASAPI_ENABLED -DWINMIDI_ENABLED -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -DVULKAN_ENABLED -DRD_ENABLED -DD3D12_ENABLED -DGLES3_ENABLED -DEGL_STATIC -DMINGW_ENABLED -DMINGW_HAS_SECURE_API=1 -DMINIZIP_ENABLED -DBROTLI_ENABLED -DTHREADS_ENABLED -DCLIPPER2_ENABLED -DZSTD_STATIC_LINKING_ONLY -DUSE_VOLK -DVK_USE_PLATFORM_WIN32_KHR -DGLAD_ENABLED -DEGL_ENABLED -Ithirdparty\freetype\include -Ithirdparty\libpng -Ithirdparty\directx_headers\include\directx -Ithirdparty\volk -Ithirdparty\vulkan -Ithirdparty\vulkan\include -Ithirdparty\zstd -Ithirdparty\zlib -Ithirdparty\clipper2\include -Ithirdparty\brotli\include -Ithirdparty\angle\include -Iplatform\windows -I. -Ithirdparty\d3d12ma platform\windows\os_windows.cpp

This is what says fails.

There's no clear error in the log, so might be CI runner issue, I have restarted the failed job.

There's no clear error in the log, so might be CI runner issue, I have restarted the failed job.

It still fails, unfortunately.

I'm closing this PR and related PRs #98905, #98906, and #98908 because these kind of big changes usually require a proposal first. This is because, there, the community and core Godot maintainers can discuss on the merit of such proposals.
I'm closing #98880 and #98563 too because, like the previous ones, they are are essentially doing nothing. By nothing, I mean that they don't seem to solve real problems. I highly suggest you to read the Best practices for engine contributors from our docs, especially the best practices section. Number 2 says: "To solve the problem, it has to exist in the first place".
Are you actively using Doxygen and had issues with the current formatting? Did you get actually get problems with C functions clashing with C++ namespaces? If so, please state it in the description.
Talking about descriptions: especially if it's not a simple bug fix, it is vital to describe your PRs. This forces reviewers to checkout your code and try to understand what's the intent.
Don't hesitate to join our Developers' Chat if you have questions or if you need help for your next PRs. We do even have a #new-contributors channel!
See you there!


0.3.1 release?

Hi @ypresto, any chance to get a new release with fresh changes anytime soon?

Please!

While it's not perfect, you can get the latest build via JitPack as mentioned in #86.


Chore/2.0.0 rc.1

Types of changes

[ ] Bug fix (a non-breaking change which fixes an issue)
[ ] New feature (a non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Description

Closes https://github.com/Baroshem/nuxt-security/pull/441
Closes https://github.com/Baroshem/nuxt-security/issues/447
Closes https://github.com/Baroshem/nuxt-security/issues/444
Closes https://github.com/Baroshem/nuxt-security/issues/446
Closes https://github.com/Baroshem/nuxt-security/issues/433
Closes https://github.com/Baroshem/nuxt-security/issues/232
Checklist:

[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have added tests to cover my changes (if not applicable, please state why)

Wonderful !
Looking forward to RC release 🎉🎉🎉

Hi @GalacticHypernova
We have a typescript error on type OptionalThrowError<T> = Pick<T, 'throwError'>; which prevents the release.

src/types/module.ts(9,38): error TS2344: Type 'string' does not satisfy the constraint 'keyof T'.
Would you mind having a look at this ?

Would you mind having a look at this ?

Looks like TS needs a stricter type constraint. I believe doing something like this will solve it
type OptionalThrowError<T extends Record<string, any>> = 'throwError' extends keyof T ? Pick<T, 'throwError'> : never;
``

After review, I am setting all fields optional and falling back to default config values in nested route rules.
This is because Nuxt internally forces our NuxtSecurityRouteRules fields to be optional. There is nothing we can do about this, as the Nuxt Module Builder internally overwrite our types with a DeepPartial<> utility.
This allows the user to use optional fields, while our code thinks they are mandatory - leading to potential type errors. I prefer to let our code know that they are in fact optional, and provide a fallback value.

Sorry for the late response, sounds good!


no function clause matching in :logger_config.less_or_equal_level/2

Environment

Elixir version (elixir -v): 1.12.3
Database and version (PostgreSQL 9.4, MongoDB 3.2, etc.): CockroachDB 21.1.9
Ecto version (mix deps): 3.7.0
Database adapter and version (mix deps): postgrex 0.15.11 / db_connection 2.4.0
Operating system: OS X 12

Current behavior
Upon invocation of this code:
Ecto.Adapters.SQL.query(__MODULE__, "SAVEPOINT cockroach_restart", [], log: log) with log = true
The following error occurs:

** (FunctionClauseError) no function clause matching in :logger_config.less_or_equal_level/2
(kernel 8.1) logger_config.erl:75: :logger_config.less_or_equal_level(false, 6)
(logger 1.12.3) lib/logger.ex:767: Logger.should_log/2
(ecto_sql 3.7.0) lib/ecto/adapters/sql.ex:924: Ecto.Adapters.SQL.log/4
(db_connection 2.4.0) lib/db_connection.ex:1460: DBConnection.log/5
(postgrex 0.15.11) lib/postgrex.ex:287: Postgrex.query_prepare_execute/4

I am not exactly sure when it got broken or the behavior changed, but this used to work before.
Expected behavior
Invoking Ecto.Adapters.SQL.query/4 with log:false in the opts should work without raising any error

Ha i found the culprit and what actually changed on my side to trigger this:

config :backend, MyRepo, log: false in config/prod.exs

I am not exactly sure what is the expected behavior here. I disable the logging globally at the repo level but i ask to log when I invoke a pretty low level function such as Ecto.Adapters.SQL.query/4.

Can you please try master? I believe this has been recently addressed.

Sure thing @josevalim, let me try, i keep you posted, many thanks.

Unfortunately, I got the same issue on master @josevalim

@tlvenn if I understand you correctly, you're passing log: true?
The :log option is supposed to be either a logger level (see https://hexdocs.pm/logger/1.12/Logger.html#module-levels) or false.

Good catch @v0idpwn, that was indeed as trivial as this but was somehow masked down the line because the error was on a no clause matching on false.
Sorry for the noise @josevalim.

This is really confusing behaviour - if it was up to me then I would remove the boolean part of the value entirely or create a function clause matching it and then log out a proper error explaining that the configuration is wrong.


Multiple Projects within single git repository

Hi,
I am working in a repository, hosted on GITHUB.  I have no control here to make multiple repositories.
Originally, I only had one output, so I made a general project at the top of the repository.  I realized that part of what I was doing could be split out.  Switched to 2 projects, at the directory level which they start.   I deleted the old .project file @ the repository level.
The Git part worked fine from either project, except that commits / fetches / merges  worked on the whole repository.  No big deal.
The project which became the broken out subset builds fine.  I copy its d.ts to a directory in the larger project.  When I try to build the larger project there is a quick flash in the bottom right, but nothing is ever built.
Is there any audit trail inside of Eclipse?  Nothing is written anywhere (Am used to Ant inside of Netbeans).  I made an non-repository project of this and it builds fine.  Could then copy output to repository version, but a error prone kludge.

Each project needs to be configured for TypeScript separately. Perhaps only one of the projects is configured to build via TypeScript?

Typescript is listed as a builder for the project, and also has a section in project properties.

That just enabled TS for the project but doesn't turn on the build-on-save support. That needs to be enabled via the UI explicitly.

Was not doing auto build.  Just tried deleting the other project (not the files).  Reloaded, but no build.  Is nothing ever written to some "console" during a build?

Nothing is written to the console during a build.

Could you share a screenshot of your projects' TypeScript settings?

Easier to get everything on one shot to list the .prefs file.  I actually listed the non-repository version right afterward to make sure they were the same.

Oh I think I might see an issue: you've specified asynchronous modules but single file outputs. Those aren't compatible with one another (AMD modules need to be output to individual files). Wanna try removing the output file or changing to a different module type?

This is what I have been doing for a while.  Code is going to run in a browser, not server.  Played anyway. Could never get repository to write a single file, regardless of module type, & also changed the file name.
Could get individual files, but I would now need to write a Java program or script to put it together.

Hmm weird, I'm not entirely sure then. It should work with single file output and module type set to none.

If there is a GitHub project I could look at, I might be able to load it and figure out what is going on.

It is BabylonJS/Extensions, but the split out has not been done at github, yet.  Also, the non-repository version is not working now.  I did update plugin today from about a week ago.
Could .zip on Google drive tomorrow the non-repository version.  It now works exactly the same.

Cool, yeah, would love to check it out. It could very well be a plugin bug since we don't often build to single file outputs. You'll also want to make sure you have the latest plugin version since there have been some fixes recently that could impact the built files.

Ok.  Will notify with link.  AM Eastern time.

Here is a link:  (Google drive inspects a zip, not provide download)
https://www.dropbox.com/s/6bkc2dq9xba1t8e/proj.zip?dl=0
What about node dependency versions?

Just got notice that there is a Java 8 update, does this matter as well?  My plugin is 1.5.0v20150129-2148

I don't see any Eclipse settings in the zip file. What is the project structure supposed to look like?
I'd suggest the latest Nodejs (whatever that is). If you are seeing auto-completion or syntax highlighting, you should be good though.
Java 8 isn't related.
Consider downgrading to the 1.4 plugin - 1.5 is unstable. Downgrading requires uninstalling the plugin, rebooting, then reinstalling from the official release site (vs the develop site).

Went back to production, 1.4.  Was pointing to test at your request a while back for something else.  Building slow first time, like doing something, but still nothing.  Switched to directory output, and get individuals.
I made project as File > New > Project ...  , then selected General Project.  typed "non-repository" for project name.  Copied the Source & References dir from repository.  There is a .project file in zip.
Am getting auto-completion menus with cntrl-space.

Ok, can you remind me of the thing you'd like this to do which isn't working? single file output?

Single file output is working for me with these settings:

In my system the Generate corresponding .d.ts files is also checked,  see in def file:
compiler.generateDeclarationFiles=true
The project will not build a single file, only a directory of single files.

Weird - I just checked that off here and its working fine. Can you check out the error view to see if there are some exceptions?

There were errors in the BabylonJS repository in a different project.  It is built with gulp, and seems to do less checking.
Closed everything but this, restarted.  Nothing.  Going to take this over to my Mac, on Ubuntu now.

using the same dropbox you used.  I built completely new workspace & project and in worked on Mac.
Plugin is older there: 1.0.1.v20140918, but Eclipse is 4.4.1, while Ubuntu is 4.4.0.  Checking for updates does show the newer version, but will not allow to check, says insufficient privileges.  To the shell!

Uncle.  Yesterday, I rebuilt my Eclipse system on Ubuntu.  Tried a whole bunch of stuff & no success.  The fact that you got it to work on Windows, and I got to work on Mac is not encouraging.  I even tried the other Eclipse Typescript plug-in.  Massive errors, but have to admit I was drooling at the code collapsing features.
Got up and just built an Ant script to do the combine, & added it onto the end of the build.  Got extra "__extends" stuff, but it runs. (can manually delete for my infrequent commits).

        combine separate .js and .d.ts files

<target name="combine">

	<concat destfile="morph.1.2.-debug.js" fixlastline="true">
    	<filelist dir="out"
    	    files="ReferenceDeformation.js, EventSeries.js, Mesh.js, ShapeKeyGroup.js, MakeHuman/Sentence.js, AudioRecorder.js"/>
	</concat>

	<concat destfile="morph.1.2.d.ts" fixlastline="true">
    	<filelist dir="out"
    	    files="ReferenceDeformation.d.ts, EventSeries.d.ts, Mesh.d.ts, ShapeKeyGroup.d.ts, MakeHuman/Sentence.d.ts, AudioRecorder.d.ts"/>
	</concat>

</target>
<!-- ===================== Copying Section ============================ -->
<target name="copy_js">
    <copy file="morph.1.2.-debug.js" tofile="Blender/blender-test/lib/morph.js"/>
</target>
<!-- ================================================================== -->
<target name="full" depends="combine,copy_js"></target>


Replace npm with yarn

While npm is improving, it still has some problems. See #543 for example.
I propose switching to yarn as default.
They should be compatible, so everybody can still continue using npm if they like. However, the yarn.lock file will be the reference, so no guarantee for npm behaviours.
Plus, yarn feels faster than npm! 🐎

Codecov Report

Merging #592 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #592   +/-   ##
=======================================
  Coverage   98.55%   98.55%
=======================================
  Files         265      265
  Lines        4288     4288
=======================================
  Hits         4226     4226
  Misses         62       62

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 1b245da...61fbd4a. Read the comment docs.


Runtime error when running tests with coverage on Github actions

Hi,
Mimic version: 1.8.1

Erlang/OTP 27 [erts-15.0] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [jit:ns]
Elixir 1.17.1 (compiled with Erlang/OTP 27)

I'm getting the following error when running tests with coverage on Github actions. You can see the error if you expand the "Verify" section in this github action run in this sample project:
https://github.com/navinpeiris/mimic-elixir-1.17-issue/actions/runs/9630569414/job/26561270358

IMPORTANT: I'm unable to reproduce this on my local Mac OS machine. Only happens when running on Github Actions.

Note: Although the run is successful in this sample project, it gets marked as an error in my source repo.
Error:
Analysis includes data from imported files
["/home/runner/work/mimic-elixir-1.17-issue/mimic-elixir-1.17-issue/Elixir.HelloWorld-1922.coverdata",
 "/home/runner/work/mimic-elixir-1.17-issue/mimic-elixir-1.17-issue/Elixir.HelloWorld.Mimic.Original.Module-1922.coverdata"]
Error: 03:48:30.967 [error] Process #PID<0.2325.0> raised an exception
** (ArgumentError) errors were found at the given arguments:
  * 1st argument: must be one of: function or line
    (kernel 10.0) :code.get_coverage(:cover_id_line, HelloWorld.Mimic.Original.Module)
    (tools 4.0) cover.erl:2367: :cover.native_move/1
    (tools 4.0) cover.erl:2318: :cover.move_counters/2
    (stdlib 6.0) lists.erl:2077: :lists.map/2
    (tools 4.0) cover.erl:[30](https://github.com/navinpeiris/mimic-elixir-1.17-issue/actions/runs/9630569414/job/26561270358#step:5:31)38: anonymous fn/2 in :cover.pmap_spawn/4
Generated HTML coverage results in "cover" directory

The reason that the run passes in the sample repo and fails on my source repo is because this error caused the coverage to fall below the coverage threshold.

Thanks for the report!
The issue seems to only trigger when JIT is enabled and it's not always that I can trigger it. Anyway I think the issue has been fixed with Mimic 1.8.2.

Thanks for that @edgurgel, and yes, can confirm that the issue is fixed in Mimic 1.8.2. Thanks a ton for the quick turnaround, especially on a weekend! 🔥


Inference time lower than Edge TPU performance benchmarks

**- Architecture: armv7l

Running using: Tflite_runtime API
USB 2.0**

I have mainly two questions about the EgdeTPU runtime Libraries. As I created a simple benchmark application using the Tflite_runtime C++ API to compare the performance on an embedded CPU with a USB2.0 connected EdgeTPU accelerator and the performances listed here : https://coral.ai/docs/edgetpu/benchmarks/ I'm surprised that for the mobilenetv1_244 compiled, I'm getting 9.5ms instead of 2.4ms, do you think is this huge difference normal ?
A second question, I'm a little bit worried since I'm getting the same results for both Edge TPU runtime libraries (Throttled and direct). I started thinking they are the same. Any clarifications ?
Thank you,

@othmaneAZ possible duplication of https://github.com/google-coral/edgetpu/issues/115?
One big factor would be due to the USB2.0, as much data would be bottle necked by that transfer speed. What platform are you running these benchmarks on?
We found that on a pi3 it is normal to see ~9 seconds for a 224 mobilenet v1 and ~12 seconds for v2.
The benchmarks on  our page were run on a robust x86 machine with usb3.0

According to my experience the USB accelerator is some how sensitive to the port speed. Even with USB3 ports. Because of the extra wire length, the USB3 ports on the front panel of a PC are sometimes slower than the ports on the back panel. It is more likely to happen if the computer case is a cheap one (which means awkward wires with higher resistance). My funny observation is, the accelerator runs faster on the front panel of my PC than on the back panel. And the ports theoretically with the same technical specification!
Yeah, always make sure to use a fast port.


[Feature]:Snippet to remove trailing numbers from string

Contact Details
Snippet to remove trailing number from string
It would be nice to have a snippet which could remove trailing number from a string
Snippet prefix (name) suggestion string remove trailing number
#Function: removeTrailingNumber()
#
#Brief: Removes a trailing number from a string
#Argument 1($1): Input string
#Returns: Echos the input string with no trailing number
#
#Usage example:
#    NO_TRAIL_NUMBER=$(removeTrailingNumber "asdf123")
#    echo "NO_TRAIL_NUMBER: $NO_TRAIL_NUMBER"
removeTrailingNumber() {
    if [ $# -ne 1 ]; then
        echo "Invalid number of parameters provided to $FUNCNAME"
        exit 1
    fi
    declare PREV_STATE="$(shopt -p extglob)"
    if [[ $PREV_STATE != "shopt -s extglob" ]]; then shopt -s extglob; fi
    declare NO_DIGIT=$(echo "${1%%+([[:digit:]])}")
    if [[ $PREV_STATE != "shopt -s extglob" ]]; then shopt -u extglob; fi
    echo "$NO_DIGIT"

}

If this feature is Operating System specific, please select it?
Linux - Fedora/Centos/Rocky linux
Other operating system(s)
No response
Notes
No response

released


[Bug]  Whenever I wake my PC from sleep or hibernate, SpaceTheme (Steam) freezes, but weirdly I can still scroll?

Before Reporting

[X] I found no existing issues matching my bug
[X] I completely restarted Steam and checked if the bug is still there
[X] I have checked if I use the latest version

Describe the Bug!
Title. It only happens when I turn on my PC. I have no experimental features enabled. I can't click on anything, but I can still scroll. When I restart Steam, it does not happen anymore. Only when I turn my PC on. I get that this is in alpha, but it's pretty annoying.
Expected Behavior
I can't click on anything, but I can still scroll. It's like Steam is semi-frozen.
Steps To Reproduce

Open Steam with the SpaceTheme skin
Turn off your PC by sleep/hibernate.
Turn it back on again.
Steam freezes.

Operating System
Windows

Is Steam slightly smaller when you start your pc for the first time than when you restart steam?

@SpaceEnergy
Yes, it's not in fullscreen when I wake my PC up from sleep.

i rather meant that it looks as if you had set the zoom level to 90 or 80% in the browser on a website

@VJGamz04 ?


Cosmos DB No SQL Vector Search

Read more about CosmosDB NoSql Vector Search here

merge latest of main branch


compile *.d.ts files in CI so that consumers don't have compilation issues #201

@davidkpiano I see travis pipeline last ran one month ago, do you plan to put it back?

This is now using Azure CI.

Ok, then the link from the readme is outdated. What's the Azure one?


Wrong information on user-impersonation API permissions for application user

In
Configure service connections using a service principal it is instructed to follow Azure application registration, which advise to add Dynamics CRM user_impersonation API permissions to the app registration.
This does not make any sense, as the app will not act on behalf on another user who would then need to consent to it.
The application user gets an identity from the Azure AD app registration (AuthN) but will not need any permissions assigned (AuthZ). Privileges are handled exclusively by security roles.
This additional permission will not prevent the app from running, but the docs should be accurate, as many people  now wrongly think that they need user_impersonation.
I explained this here in more detail: Why your Power Platform service principal doesn't need a Dynamics user_impersonation scope
Happy to provide more feedback :-)

user_impersonation scope is only relevant if you are using Implicit grant.

Without adding the scope to the App Registration, you get this error.

Below is the sample code I used using MSAL
var builder = PublicClientApplicationBuilder.Create("b744159c-a2eb-450d-96ca-244efeeb2b2d").WithAuthority("https://login.microsoftonline.com/57ffb2ab-2d19-4129-9a36-c17cf7c06bb4/").WithDefaultRedirectUri().Build();
var token = await builder.AcquireTokenInteractive(new string[] { "https://mydv.crm6.dynamics.com/.default"}).ExecuteAsync();

But, I haven't used implicit grant for a long time. I am only using App Registration + App User + Roles method. So, I guess the documentation should be updated to reflect that. I also only found this out last year from another MVP and I was quite surprised to find this out as well.

@LuiseFreese This documentation was fixed a few months ago. Under Azure application registration step 7 it says:
Note that Delegated permissions are not required for this server-to-server scenario.


Order enum not exported

I'm submitting a...

[ ] Regression (a behavior that used to work and stopped working in a new release)
[X] Bug report
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:

Current behavior
The docs says that, to user the sortByOrder in the QueryConfig decorator, I must import the Order enum like that:
import { Order } from '@datorama/akita';
But I get this error:
Module '"@datorama/akita/datorama-akita"' has no exported member 'Order'.
Visual Studio suggests importing from this path:
import { Order } from '@datorama/akita/src/internal/sort';
But, again, I get an error:
Module not found: Error: Can't resolve '@datorama/akita/src/internal/sort'
I'm using Akita version 1.3.1.
Expected behavior
import { Order } from '@datorama/akita';

:tada: This issue has been resolved in version 1.3.2 :tada:
The release is available on npm package (@latest dist-tag)
Your semantic-release bot :package::rocket:


Drop requirement for "Access your data for all websites" permission

The addon required the new permission "Access your data for all websites" to update (in addition to the reasonable "Clipboard access" one). I don't want to grant such a general permission.
Could you clarify why is it needed for RESTClient? Can you drop it or make it optional?

Access your data for all websites permission is used for OAuth 2.0 authentication. In OAuth 2.0 RESTClient need to intercept the OAuth2 web service redirect endpoint, inject a content script for obtaining the access token. That redirect endpoint could be any website.
I don't know how to request a permission only when you need it (e.g. before you use OAuth 2.0), any pull request are welcome!


beancount fails to build since updated to 3.1.6

Issue description
The beancount pkg fails to install since it was upgraded to 3.1.6 in https://github.com/NixOS/nixpkgs/commit/5b91e4abf890641dbf041f02b34d67c239b212a5 due to missing pytest dependency with the following message:

No matching distribution found for pytest

I am not very familiar with python and I am unsure of the nature of this failure. The pkg definition seems to disable running the tests with doCheck = false;, but it still requires the pytest pkg to build for some reason.
Steps to reproduce

nix-shell -p beancount
Adding beancount to the system pkgs in configuration.nix and trying to build the system.

Technical details

OS - Nixos
Nixpkgs - https://github.com/NixOS/nixpkgs/commit/032a2b3907fe3db59d7d7839c395a01140d1a478

Fixed with https://github.com/NixOS/nixpkgs/commit/fe30cce533f38ff44af8f884a4594cc3155d96d4


Add Azure Pipelines

@markbates Do we really need all these builds for this project?

Probably not. That’s just the generic one I added to every project. Up to you what you want to test. That’s why I didn’t merge it.

Mark Bates
On Feb 25, 2019, 4:08 AM -0500, Stanislas Michalak<EMAIL_ADDRESS>wrote:

@markbates Do we really need all these builds for this project?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.


A lot of nni_zalloc didn't handle failure cases(From Code Review)

Describe the bug
A lot of nni_zalloc didn't handle failure cases.(Code Review)
Expected behavior
Check and fix all nni_zalloc().
Actual Behavior
Not handle failure cases.
To Reproduce
** Environment Details **
Client SDK
Additional context

For example
void
dbtree_create(dbtree **db)
{
	*db = (dbtree *) nni_zalloc(sizeof(dbtree));
	memset(*db, 0, sizeof(dbtree));


feat: Move util functions from echoInfield (array, string, disposable)

Suggestion, all utils which has a category/helper should be exported directly from EchoUtils, instead of EchoUtils.Utils.
Example:
EchoUtils.Array.distinct
instead of
EchoUtils.Utils.Array.distinct
which is unnecessary long..
What do you think?
Hooks are still in
EchoUtils.Hooks.*
And I haven't done anything to clean up old EchoUtils.Utils.*
Tested with unit tests
Also updated all npm packages.

I really like these changes: thanks for the effort Ove! 👏
I think we could time a breaking change somehwere in the future, when we cleanup the EchoUtils.Utils.*


How to Contribute to DP-600 Training Modules

Hello!
I've been working my way through all of the modules in the DP-600 training collection recently, and I've noticed a fair amount of inaccurate/outdated material.
Example: The Understand calculation groups training module claims that "Power BI Desktop doesn't have the user interface to create calculation groups."

However, Power BI Desktop gained native support for creating calculation groups in October 2023 with the introduction of the Model explorer view, so that claim is now inaccurate/outdated.
I've contributed to several other Microsoft docs repositories in the past, so when I discovered these issues, I started looking for the source code in hopes that I could fork the repo, fix the issues, and submit a PR. Unfortunately, the closest thing I could find is this repository, which contains links to the training modules in question, but doesn't contain their source code.
TL;DR: I'd like to help correct the inaccuracies in these training modules, but I can't find the source code for them. Can someone point me in the right direction?
Thank you!
James

Hi @JamesDBartlett3
Referencing the same documentation source, there is a pencil icon up above the documentation, please proceed to log the issue on the PowerBI documentation Repository

Hi @JamesDBartlett3 Referencing the same documentation source, there is a pencil icon up above the documentation

Hi @AnthonyByansi, the link you provided points to an MS Learn documentation article, whereas the inaccuracies that I pointed out in my comment above are in an MS Learn training module, which does not feature a pencil icon at the top of the page. This is why I opened this issue, because there does not appear to be a way for me to contribute edits to MS Learn training modules in the same way that I can contribute edits to MS Learn documentation articles.


Add Brady Sutton to Contributors List

I added my name to the Contributors.md File.

@bsutt123, I'm quite elated about your pull request. I wanna evolve this project to addresses various problems faced by first-time contributors. I'd love to learn about your journey in open source community, the problems, pain points you had etc.
Could you explain how you felt when you went through the tutorial, made a pull request and learned that I merged it?
We’ve recently added Facebook share and tweet feature to our web app. Could you please go to https://roshanjossey.github.io/first-contributions/#social-share and share your first contribution to open source?
Also, check out projects with easy issues while you’re there.


alias xschem as "xschem -b" prevent the other alias xschemtcl to enter tcl cmd mode

Describe the bug
the original xschem cmd from stefan when used, will return a TCL cmd. The default setting in iic-osic is to alias xschem as "xschem -b" in ~/.bashrc file. This setting results in the other alias "xschemtcl", which is supposed to behave like original, output TCL cmd, doesn't work and behave the same as "xschem -b".
To Reproduce
Steps to reproduce the behavior:

I use icc-osic-tool-xserver in windows OS
after start it, the cmd shows up, type "xschemtcl"
the return doesn't have TCL cmd and hence I must have & to send it to the background.

Expected behavior
The below results are obtained via the tricks in the Additional context.

Screenshots
If applicable, add screenshots to help explain your problem.
Environment:

OS: Windows
Operating mode: both mode, X11 and xvnc (http://localhost)
Version tag : where to find this info? I download from github last month on Dec/2023

Additional context
One workaround is to define "xschem -b" as something else, like xschem_b, but not replace the app name "xschem". What I show below in .bashrc is a possible work around. The line of "unalias xschem" is needed for de-link the existing xschem from 'xschem -b'

It looks like even xschemtcl will call the "xschem -b" if alias xschem is renmaed as 'xschem -b' no matter I put the xschemtcl alias definition before or after the 'xschem -b' alias. I have tried to code in the below two ways but xschemtcl still doesn't function properly.

or

I don't plan to file a Pull request because I think it's kind of personal preference to overwrite 'xschem' as 'xschem -b' and not using xschem_b or something like that. It's just unfortunately that somehow the defined "xschemtcl" doesn't work anymore. A more fundamental solution should fix this issue somewhere else, maybe in xschem or BASH. It sounds to me maybe this work previously but not now.

Thank you, you raised an important point. The solution is rather simple, as using \ an alias is not used. So we will update this accordingly in the next release:
alias xschemtcl='\xschem --rcfile $PDKPATH/libs.tech/xschem/xschemrc'

Fixed: https://github.com/iic-jku/IIC-OSIC-TOOLS/commit/726e50996e26d552ea49209da09603568848eb1f


Update CNI conflist versions to 1.0.0

Cilium CNI expresses support for CNI spec 1.0.0:
https://github.com/cilium/cilium/blob/main/plugins/cilium-cni/main.go
Many of the configurations that Cilium writes use 0.3.1:
$ git grep '0\.3\.1' -- 'plugins/' 'daemon/'
daemon/cmd/cni/config.go:  "cniVersion": "0.3.1",
daemon/cmd/cni/config.go:  "cniVersion": "0.3.1",
daemon/cmd/cni/config.go:  "cniVersion": "0.3.1",
plugins/cilium-cni/05-cilium-cni.conf:    "cniVersion": "0.3.1",
plugins/cilium-cni/main.go:             cniVersion.PluginSupports("0.1.0", "0.2.0", "0.3.0", "0.3.1", "0.4.0", "1.0.0"),
plugins/cilium-cni/types/types_test.go:  "cniVersion":"0.3.1",
...

CNI 1.0.1 has been out for over two years now, so we can probably bump the above references at this point.
https://github.com/containernetworking/cni/releases/tag/v1.0.1
cc @squeed for any upgrade nuances / whether any specific container runtimes may impact this decision.

I could maybe see an argument that by keeping this as low as we can for as long as we can, that avoids breaking compatibility with older container runtimes. Maybe enough time has passed by this point to bump it.
If Cilium starts heavily relying on newer commands like CHECK or GC then we may need to bump the version newer.


[FLINK-23144][metrics] Add percentiles to checkpoint statistics

What is the purpose of the change
Add percentiles to checkpoint statistics to better understand backends and checkpointing behaviour.
In particular, compare checkpoint times when using different backends.
Percentiles are computed using histogram (from apache commons-math) which in turn is computed over a sliding window (size = 10000).
I used sliding window histogram because:

no new dependencies (or algorithm implementations) required
forcing out old values makes sense to me

I didn't use history.size as sliding window size as I think some users may need histograms but not long history.
With 10K values memory overhead is around 300Kb per job (4 arrays of 10K doubles).
Verifying this change

Added CompletedCheckpointStatsSummaryTest.testQuantiles, StatsSummaryTest.testQuantile, updated ArchivedExecutionGraphTest.compareExecutionGraph
Tested manually via UI
Tested history server

Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): no
The public API, i.e., is any changed class annotated with @Public(Evolving): no
The serializers: no
The runtime per-record code paths (performance sensitive): no
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn/Mesos, ZooKeeper: no
The S3 file system connector: no

Documentation

Does this pull request introduce a new feature? no
If yes, how is the feature documented? no

Thanks for the review @Myasuka!
I've squashed the commits and merged into master as b4244e1708e18d8979abb049877e33f625f3d95a..329bed8f1f650a9b6329c30a935867a0558bed21.


update documentation

This PR overhauls most of the project's documentation to make things explicit. This includes:

What we look at
How to add a license
How to enable README or package manager detection
How to contribute

Most of the changes here is just moving/organizing existing documentation, with a bit of additional clarity. Docs now live in the /docs folder.
I'm going to go ahead and merge this PR, to get the documentation updated immediately (since it's linked from the GitHub blog post), but very open to feedback on this PR, which I'd be glad to address in a subsequent iteration.
Fixes https://github.com/benbalter/licensee/issues/123.
Fixes https://github.com/benbalter/licensee/issues/122.

@benbalter I've left some comments inline -- let me know what you think :)


I can't get possible moves for black pieces

When I use the .moves() function from the Chess object and pass in the type, color and square, it only returns possible moves for white pieces, never the black ones. Any help will be great

The Chess object is stateful and currently does easily support switching colors without making a move. You can use this in a pinch:
const side = "b";
const [position, _, castling] = chess.fen().split(" ");
const fen = `${position} ${side} ${castling} - 0 1`;
chess.load(fen);
console.log(chess.moves());

Keep in mind this code could allow undefined/illegal behavior (e.g. switching sides while one side is in check).

I appreciate the response. I tried it and it worked. Thank you!

I think I know the issue in my code, When I create an instance of Chess(), a board is initialized and it has the pieces set to their default positions. To correct this I have to use a single instance and update it whenever a move is made, Help me confirm if this is right. Thanks.


Update code.gitea.io/git

Closes #1836
/cc @ethantkoenig

Did you update correctly with fetch command? CI fails with localy modified file error

@lafriks No, I did a go get -u code.gitea.io + govendor update +external. I just tried govendor fetch code.gitea.io/git and nothing changed.
/cc @tboerger

@andreynering I don't have anything to debug. But I think that you may have change in GOPATH that make a different hash and govendor update +external import form GOPATH. govendor fetch maybe not update from remote because it is the same git commit id ...
Remove folder before or simply govendor remove code.gitea.io/git to force fetch and just do govendor fetch code.gitea.io/git. You should have a different hash in vendor.json.

And don't hesitate to test make test-vendor locally.

@sapk Thank you for the help.
make test-vendor don't work on Windows, it seems. I tried recloning code.gitea.io/git, updating govendor, etc..., there's no change. 🤔
If no one create a new PR, I'll try on Ubuntu later.

@andreynering maybe this is related to windows. I will make a PR from a linux os. Sorry for the inconvenience.


New VLC 3.0.7 to solve sublibrary security vulnerability

We'd really like to get on the newer VLC in an appimage for EL7.6, specifically to address the sublibrary security issue recently reported.

Please request such an AppImage from the VLC developers at https://forum.videolan.org/viewforum.php?f=7.

Here is a script that generates a VLC Appimage imported from snap repositories.
https://github.com/cmatomic/RecipesAppimage/blob/master/VLCplayerSnap/VlcPlayerSnap.sh


Retrieving Id token from Cognito inside the Container

I'm using Cognito as open ID provider. The access is provided based on role attached to user group to which the user belongs to in the Cognito User pool. The user should be able to access S3 resources according to what his role permits. For this, the user should be able to generate credentials inside the container, so that the scripts call only that bucket and nothing else. For generating these AWS credentials we would be needing the Id token generated during Cognito Authentication. Is there anyway we can set the Id token also as an env variable similar to access token that we're setting at SHINYPROXY_OIDC_ACCESS_TOKEN ?
Any help is greatly welcome. Let me know if application.yml or any configuration details is needed

This is now possible with ShinyProxy 2.6.0 (ContainerProxy 0.8.10).
See https://shinyproxy.io/documentation/spel/ for more documentation.
Thank you for the suggestion!


Cake 2.x: Add /vendor and /composer.lock to .gitignore

The composer.lock file should never be ignored, as it contains essential version information about the vendor packages. Also see the bold line in the documentation about this.
So, could you remove that line please? Thanks!

The composer.lock file has no effect for libraries (see post by Seldaek), but I understand it's a controversial topic. I'll remove the line.

@adduc Thanks!


[BUG] Inconsistent Virtualization Management Experience w/v2.6.8 Rancher & v1.1.0-rc3 Harvester

Describe the bug
Inconsistent UI experience working with a v1.1.0-rc3 Single Node Harvester instance that has been imported into v2.6.8 Rancher.
Might have something to do with:
https://github.com/harvester/dashboard/blob/master/pkg/harvester/config/harvester.js#L441-L443
To Reproduce
Steps to reproduce the behavior:

Import a v1.1.0-rc3 Harvester instance into Rancher v2.6.8, be sure to change Global Settings in Rancher v2.6.8 of "ui-offline-preffered: Remote" & "ui-dashboard-index: https://releases.rancher.com/dashboard/latest/index.html"
Visually audit the "side-nav" not having consistent naming.

Expected behavior
That the labels would be consistent for "Networks" & "Backup & Snapshot"
Environment

Harvester ISO version: v1.1.0-rc3
Rancher single node, docker: v2.6.8

Additional context

Closing this out as v2.6.8 Rancher is not supported as a minimum version for v1.1.0, per:
https://github.com/harvester/harvester/issues/3013#issuecomment-1288284294


minio: Add to cluster.

Add S3 compatible storage to the cluster, most likely will do NFS backed storage on the NAS.
Take a look at https://github.com/billimek/k8s-gitops/tree/master/default/minio for a reference.

Looks like this method/chart for minio from the billimek example has been deprecated, may need to look into using https://github.com/minio/operator/tree/master/helm/minio-operator instead.

#38 Solves this in the existing (soon to be deprecated) pattern so that I can continue with other integrations. I will most likely revisit this in the future when I have more time to focus on the implementation.


Problem with Sollet.io account ?

Hi, in order to be involved with SPL token whitelist, I created a sollet account and created a new account (not main account) I transferred my SOL to this account but while I was doing KYC, I froze and I shut the page down and opened again but there is not that account and I cant see my money.. Anyone who can help me? thanks

@KebapMaster Did you backup your seed phrase? That's your key to your solana funds on the blockchain, you can restore from this seed


Problem with installation

I try to get this package in pubspec.yaml but it return me an error. The error message is this:
"Because every version of flutter_test from sdk depends on xml 3.6.1 and podcast_exemple depends on xml ^4.2.0, flutter_test from sdk is forbidden.
So, because podcast_exemple depends on flutter_test any from sdk, version solving failed.
pub get failed (1; So, because podcast_exemple depends on flutter_test any from sdk, version solving failed.)"
I've the last version of Flutter stable channel: 1.17.5
Can someone help me? Thanks

I do not control what version of the xml package other packages depend on, report the problem to flutter_test and/or podcast_exemple.


Why do you use Evcache ?

Hi, why you use Evcache for caching instead of other caches like Ehcache or Redis, what are diffrence between them

We use evcache in production mostly for caching small results like DNS and database queries. Compared to other caching solutions, it has no external dependencies outside of the go standard library and the main feature that makes it suitable is the key-granular locking Fetch which acts as a deduplicator.
Here's an example of a caching lookup. If multiple goroutines concurrently resolve the same host, then only a single lookup request is made and everybody gets the cached result.
type CachedResolver struct {
	cache    *evcache.Cache
	resolver *net.Resolver
}

func (r *CachedResolver) LookupHost(ctx context.Context, host string) (addrs []string, err error) {
	result, c, err := r.cache.Fetch(host, time.Minute, func() (interface{}, error) {
                // Do an expensive query or lookup here.
		return r.resolver.LookupHost(ctx, host)
	})
	if err != nil {
		return nil, err
	}

	defer c.Close()

	return result.([]string), nil
}

u mean to avoid Duplicating data, and i see Redis can do it, and it also has library to connect to Golang


i2c: address format

I've encountered i2c addresses both in on-the-wire format (typically given as an even number, between 0 and 254, to which 1 is ORed for reads)  and in 7-bit format (a number between 0 and 127).
Which one of those is addr in the read/write/write_read functions supposed to be?
If it's 7-bit, I'd add a "Slave addresses are always given as 7-bit numbers (0 <= address < 128)." in the module documentation, and maybe change "SAD+R = slave address with 8th bit set to 1" to "SAD+R = slave address followed by bit 1" and similar at the function level. (Can provide a PR if that's the intention).

:+1: to making this point clear in docs

@chrysn Please be aware that potentially devices may use the long address format, too. I haven't seen any and we don't support addressing them at the moment but if we're clarifying the API that might be worth a mention. Please create a PR.

@therealprof, devices that use the other format need to convert the address either way. When using 7-bit style, implementations with 7-bit addresses will just use them, and others will do addr << 1 for writes and (addr << 1) | 0x01 reads. (If we went for 8-bit addresses, some could just use them and others would have to right-shift).
Or are you talking about 10-bit addresses? They are a completely different beast, but yes, I can add a note about them (haven't used them yet).

Talking about 10bit addresses here. I think there's no ambiguity about 7bit addresses except for the fact that the ones we take are the unshifted ones rather than how they appear on the bus.


[8.0] The extension is not installed in default directory

Describe the bug
The extension is not installed in the /usr/lib/php/20200930/ directory
Version

[ ] I have checked releases, and the bug exists in the latest patch version of v1 or v2.
[x] v2
[ ] v1

Runners

[x] GitHub Hosted
[ ] Self Hosted

Operating systems

ubuntu 18.04
PHP versions

8.0
To Reproduce

https://github.com/SkyAPM/SkyAPM-php-sdk/blob/issue-312/.github/workflows/ci.yml
Expected behavior

Screenshots/Logs

Additional context

Are you willing to submit a PR?

/usr/lib/php/PHP_API_VERSION for extension directory is not a PHP default but a convention that ppa:ondrej/php packages follow.
For PHP 8, setup-php will shift to ppa:ondrej/php packages once it is pre-installed on the runner.
Also in next release I will add support to install php-fpm in setup-php. Till then you can make the following changes

Install php-fpm only when it is not there.

- sudo apt-get install -y php${{ matrix.php-version }}-fpm
+ if ! [ -e /usr/bin/php-fpm ]; then
+  sudo apt-get install -y php${{ matrix.php-version }}-fpm
+  sudo cp /usr/sbin/php-fpm${{ matrix.php-version }} /usr/bin/php-fpm
+ fi

Do not hard code conf.d scan directories.

- sudo cp e2e/99-skywalking.ini /etc/php/${{ matrix.php-version }}/cli/conf.d/
- sudo cp e2e/99-skywalking.ini /etc/php/${{ matrix.php-version }}/fpm/conf.d/
+ sudo cp e2e/99-skywalking.ini $(php -i | grep additional | sed -e "s|.*=> s*||")
+ sudo cp e2e/99-skywalking.ini $(php-fpm -i | grep additional | sed -e "s|.*=> s*||")

$(php -i | grep additional | sed -e "s|.*=> s*||")

Got
/etc/php/7.3/cli/conf.d 1

So.
cp: target '1' is not a directory

After we added pdo_sqlsrv, that adds pdo_sqlsrv.report_additional_errors to phpinfo which broke this.
Change it to
sudo cp e2e/99-skywalking.ini $(php -i | grep 'additional .ini' | sed -e "s|.*=> s*||")
sudo cp e2e/99-skywalking.ini $(php-fpm -i | grep 'additional .ini' | sed -e "s|.*=> s*||")


Change Menu file [Pre-requisite : Solve issue #5]

Hi,
after resolving #5 You need to attach files in a dynamic fashion. Our system can change Menu Items based on type of logged in user. You can achieve this goal by including menu files based on which type of user is currently logged in.
I did the same thing in ad29724 commit (Lec 30)
Regards,

Menu and Top bar is now Dynamic according to user type


Property does not exist on type {} | {}

I've recently tried upgrading the contentful library to version 10.6.1.
As a result, it seems like the Entry type has been changed to the point that all newly-generated types have the property field as a {} | {}, meaning that I cannot access any of the fields properties without casting each field prop as the approproate field type.
Is this a known issue, do you perhaps have an ETA on when it's going to be fixed?
Thanks in advance.
p.s. I'm attaching a screenshot with the typecheck error for clarity.

TypeStoryField certainly has the title property as well as a few others but is inaccessible

And this is from the automatically generated type

Hey @sibin-sedlan-symphony,
Did you generate the types with the -X flag.
This is currently required to get the right types for contentful@10.
This will generate skeleton types for every content type. You can use these Skeleton types as Generic type values when calling get Entries:
// your entries object will be typed correctly
const entries = await contentful.getEntries<TypeStorySkeleton>({content_type:'story'})

It does seem to work, thanks for your help, don't know how I missed this.


Improve zkvm Hello World tutorial & Rust Starter Template

Hello RISC Zero Team!
Going through the zkVM Hello World Tutorial I tried to improve a couple of things to provide a smoother learner experience:

Updated Rust Starter Template to

Do not commit input into the journal as it appears to give a vicious practice example:
that input is basically the only thing which should be kept in secret, right?
Generate some rustdoc which might help to understand it better.

Updated the Tutorial and fixed a couple of broken links in Quickstart.

Thank you, we'll take this into consideration in the next improvements made to the template.


Invalid request: AADSTS9002326

Hello,
I'm trying to follow the doc to get an access Token to consume my resource. (https://docs.microsoft.com/en-us/azure/app-service/configure-authentication-provider-aad) - Daemon client application (service-to-service calls) and I followed the link to get the access token
: Service-to-service access token request - First case: Access token request with a shared secret
My goal is to call an app service from another one (no user impersonation here)
I did the registrations in AAD, the secret etc.
I'm trying the application/x-www-form-urlencoded in Postman with the 4 elements grant_type, client_id,client_secret et resource replaced by my values of course.
I' get from the response:
{     "error": "invalid_request",     "error_description": "AADSTS9002326: Cross-origin token redemption is permitted only for the 'Single-Page Application' client-type.\r\nTrace ID: abfefc27-429a-49e2-8972-300957ab3e00\r\nCorrelation ID: 1797e213-6c54-4abc-b80b-578e0374f92e\r\nTimestamp: 2021-06-07 05:16:25Z",     "error_codes": [         9002326     ],     "timestamp": "2021-06-07 05:16:25Z",     "trace_id": "abfefc27-429a-49e2-8972-300957ab3e00",     "correlation_id": "1797e213-6c54-4abc-b80b-578e0374f92e" }
I tried to set CORS with * just in case, but still the same error. And I don't know what should I do.
In Postman my only header is Content-Type:application/x-www-form-urlencoded
Can you help please :/?

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

ID: 8ff85e6a-de91-9d72-cd30-5a5519e3f775
Version Independent ID: a29b799e-bd1c-35b5-191e-c9bde3feda5a
Content: Azure AD Service to Service Auth using OAuth2.0
Content Source: articles/active-directory/azuread-dev/v1-oauth2-client-creds-grant-flow.md
Service: active-directory
Sub-service: azuread-dev
GitHub Login: @rwike77
Microsoft Alias: ryanwi

@Continuitis Thank you for your query . We will investigate and update the thread.

Just an update:
I manage to get my token by using this code:https://github.com/Azure-Samples/active-directory-dotnetcore-daemon-v2/blob/df2e402ace323f63f543d52f7694b73d6f8185f5/2-Call-OwnApi/daemon-console/Program.cs
A bit different as I think it's using the V2 +  lib.
Would you suggest to use this code in my case?
Anyway it doesn't explain why I get this CORS issue above.
Also should you consider changing the doc to use V2 instead of V1 and add a link to this example?

@Continuitis Yes, the sample is good for your case. We suggest using V2 endpoint. Refer to Why update to Microsoft identity platform (v2.0)? for more details.
Here is the V2 document for Microsoft identity platform and the OAuth 2.0 client credentials flow
Feel free to tag me in your reply if you have any question.


feat: support updated overrides for alchemy request gas and paymaster and data

https://www.notion.so/alchemotion/2023-08-10-Alchemy-Gas-and-Paymaster-Update-020b41bee84641db98210cb71bca96af?pvs=4
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "alchemy_requestGasAndPaymasterAndData",
  "params": [
		{
			"policyId": "string",
			"entryPoint": "string",
			"dummySignature": "string",
			"userOperation": {
				"sender": "string",
				"nonce": "string",
				"initCode": "string",
				"callData": "string"
			},
			// OPTIONAL
			// Each value is either:
			// 1- absolute (hex) or
			// 2- percentage between 1 -> 1000
      // Note: For backward compatiblity, we will process at feeOverrides
      // if "overrides" is not provided.
			"overrides": {
				"maxFeePerGas": "hex string" | { "percentage": number },
				"maxPriorityFeePerGas": "hex string" | { "percentage": number },
        "callGasLimit": "hex string" | { "percentage": number },
				"verificationGasLimit": "hex string" | { "percentage": number },
				"preVerificationGas": "hex string" | { "percentage": number }
			}
		}
  ]
}

<!-- start pr-codex -->

---

## PR-Codex overview
This PR introduces changes related to the `SmartAccountProvider` in the codebase.

### Detailed summary:
- Added `overrides` parameter to `ClientWithAlchemyMethods` interface in `alchemy/src/middleware/client.ts`
- Modified `gas-manager.ts` to use `overrides` instead of `feeOverride`
- Added `PercentageSchema` in `schema.ts`
- Updated `SmartAccountProviderOptsSchema` to use `PercentageSchema` in `schema.ts`
- Added `applyOverride` and related utility functions in `utils/index.ts`
- Updated `applyUserOperationOverrides` method in `base.ts` to apply overrides correctly

> The following files were skipped due to too many changes: `packages/core/src/provider/base.ts`

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->

@avasisht23 @moldy530 this PR is now ready for review. Requires some close look and expecting discussion.


Add pytorch dependencies to CI Dockerfile and enable test

Dependencies added:

torch nightly version
torchdistx nightly version
functorch master

Closes #501

LGTM


Travis: Use xenial build dist + tiny cleanup

Hi 👋, I was checking out img and it seems cool so I thought I'd try make a super minor contribution.
This updates Travis to use the Xenial environment, which Travis reckons is now "ready for a wider audience". This makes using trusty-backports unnecessary.
Other very minor changes:

sudo: true is now unnecessary. All Travis builds have sudo now.
Moved the deploy debug message to before_deploy which only gets run if deploy will be. Alternatively, could skip the build stage completely if there is no tag, but that'd mean make release would be run much less often.

Can we test both xenial and trusty?

cool thanks!


Backlog: Use ISO-8859-1 encoding in System test compilation tasks

Using ISO-8859-1 encoding value for the system test compilation tasks allows system tests to be compiled without having the step to copy gitattributes.zos properties files in the common.xml script.
We should get rid of the copy steps from the common.xml and update all the build files in openjdk-systemtest openj9-systemtest and stf repos to use ISO-8859-1 as compilation encoding.
This will mean we will also no longer require to set the src-encoding property in top.xml

Why ISO-8859-1 rather than UTF-8?

Since ISO-8859-1 and UTF-8 both encode ASCII the same way, but UTF-8 allows multibyte encoding, we could use UTF-8 as well. I guess ISO-8859-1 was chosen here as we use this encoding in build.xml files of other projects too (e.g functional tests) .


[Feature request] Add format to PointDimensionParams

Can you add format to Point 3D/4D similar Number
https://github.com/cocopon/tweakpane/blob/c69ddc543845edc72f1f20a9ca4c8baf70218417/packages/core/src/common/params.ts#L13
I think it will be useful!

Implemented in #515, and will be released in the next major version 4.

Released in v4.0.0.


AbsoluteAcceleration small bug

seems like there is a copy&paste bug here as it should refer to acceleration instead of velocity in the quantity and the comment.
model AbsoluteAcceleration
  "Measure absolute acceleration vector of origin of frame connector"
  extends Internal.PartialAbsoluteSensor;
  Modelica.Blocks.Interfaces.RealOutput a[3](each final quantity="Velocity", each final
            unit =                                                                    "m/s2")
    "Absolute velocity vector resolved in frame defined by resolveInFrame"

Closed by commit c47861376b6495e41a59011ac59072b1695305c3.

I have realized my changes to units and quantities are completely wrong since the output vectors are a combination of position and rotation. Consequently, all units and quantities shall be removed from all position, velocity and acceleration sensors.
For the next major version, the output vectors shall even be renamed to omit any doubt, e.g.

AbsolutePosition.r -> AbsolutePosition.r_phi

Yes, that is true. I recently stumbled over this inconsistency, when I had to look up the implementation to understand whether acc[3] is the planar angular acceleration or a 3D linear acceleration.
An alternative approach could be to define a dedicated record type.


Webpack 5 cache - typings not cached

Bug report

What is the current behavior?
d.ts files are not emitted after removing the output folder and running webpack again.
I use ts-loader and have set declaration: true and outDir: 'dist' in tsconfig.json.
If the current behavior is a bug, please provide the steps to reproduce.
Run webpack build for the first time - bundle.js and typings are emitted. Remove 'dist' folder and run webpack again.
webpack.config.js:
{
  mode: isDevelopment ? 'development' : 'production',
  entry: {
    main: ['./src/index.tsx'],
  },
  output: {
    filename: 'bundle.js',
    path: path.resolve(__dirname, 'dist'),
    publicPath: '/',
  },
  cache: {
    type: 'filesystem',
    buildDependencies: {
      sources: [path.resolve(process.cwd(), 'src') + '/'],
      tsConfig: [path.resolve(process.cwd(), 'tsconfig.json')],
      config: [__filename]
    },
  },
  module: {
    rules: [
      {
        test: /\.tsx?$/,
        include: path.join(__dirname, 'src'),
        use: {
          loader: 'ts-loader'
        }
      },
      {
        test: /\.jsx?$/,
        include: path.join(__dirname, 'src'),
        use: 'babel-loader',
      },
    ],
  },
  resolve: {
    extensions: ['.ts', '.tsx', '.js', '.jsx'],
  },
};

What is the expected behavior?
I expect idempotent behavior - set of files emitted by webpack build is the same regardless if the cache is utilized or not.

Other relevant information:
webpack version:  5.37.1
Node.js version: 14.15.4
Operating System: Ubuntu 20.04
Additional tools: ts-loader: 9.2.2, typescript: 4.0.3

@webpack-bot move to TypeStrong/ts-loader


SPK docs should strings as unquoted in docs, strings should be quoted

Describe the bug: In the docs for introducing spk infra, the example definition.yaml shows strings as unquoted.  This will cause errors.  The example should be updated.
https://github.com/microsoft/bedrock/blob/docs_spk/docs/infrastructure.md

@yradsmikham @NathanielRose

This should be a quick fix in the documentation.

Is this work worth doing giving the upskilling documentations tasks. @yradsmikham @NathanielRose is there a task in this milestone that covers https://github.com/microsoft/bedrock/blob/docs_spk/docs/infrastructure.md ?
https://github.com/microsoft/bedrock/issues/1038 Look like it covers infra. Can we make sure that the same issue doesn't exist?
cc @jred55

@andrebriggs @NathanielRose @jmspring @jred55
We can tack this onto #1038. I think it makes sense to close this issue, and add a comment to #1038 to ensure that the documentation resolves quotations for consistency.

Closing,. Added a comment to #1038


NameError: uninitialized constant PredictionIO::EventClient::Net

Here is the issue:
[3] pry(main)> client.create_event(
[3] pry(main)*   '$set',
[3] pry(main)*   'user',
[3] pry(main)*   'myuser', {
[3] pry(main)*     'properties' => {
[3] pry(main)*       'attr0' => 100,
[3] pry(main)*       'attr1' => 500,
[3] pry(main)*       'attr2' => 1000,
[3] pry(main)*       'plan' => 300,
[3] pry(main)*     }
[3] pry(main)*   }
[3] pry(main)* )
NameError: uninitialized constant PredictionIO::EventClient::Net
from /home/unshadow/.rvm/gems/ruby-2.2.2/gems/predictionio-0.9.1/lib/predictionio/event_client.rb:326:in `sync_events'

I have the same problem here.

I tested this with the latest from 'develop' just now [using ruby 2.2.2], and I can't reproduce this error.
Can you pull and try again ?

It's not published to RubyGems, just here, so you need to:
gem uninstall predictionio
gem build predictionio.gemspec
gem install predictionio-0.9.1.gem

from the project root

Actually, I suspect you also missed doing a
require 'predictionio'

which is missing in the doc, I'll add it


[feat] Lazy evaluation of job-related attributes and environments

This PR introduces two major enhancements.
Lazy evaluation of the job-related attributes
The job associated with the test is only minimally created inside setup(). Any attributes related to its run configuration (e.g., num_tasks, num_tasks_per_node etc.) are set when preparing the job script and just before launching the test. This change required that these attributes become writeable in Job's interface.
This enhancement allows you to set the num_tasks of a test based on the current partition or the environment in a cleaner way anytime after setup. For example:
@rfm.run_before('run')
def set_num_tasks(self):
    if self.current_partition.fullname == 'foo:part':
        self.num_tasks = 8
    else:
        self.num_tasks = 4

In case of flexible tests, the test's num_tasks attribute is set to the actual number of tasks assigned to it, after the test has been launched. This eliminates the need of defining a separate sanity function to retrieve the number of tasks:
# old way, but still valid

def __init__(self):
    self.sanity_patterns = sn.assert_eq(sn.count(sth), self.num_tasks_assigned)

@sn.sanity_function
@property
def num_tasks_assigned(self):
    return self.job.num_tasks    # or now simply self.num_tasks

# new way

@rfm.run_before('sanity')
def set_sanity(self):
    self.sanity_patterns = sn.assert_eq(sn.count(sth), self.num_tasks)

Re-evaluate the test's environment whenever needed
The mechanism of loading environments has changed completely. Environment objects are now really immutable: they are just placeholders for modules and environment variables. They don't carry any state. Responsible for loading environments is the load(*environs) free function. This function returns a tuple consisting of an environment snapshot just before loading environs and the commands needed to load the environments. There is no explicit mechanism for unloading an environment as in the past. Instead, an environment or a set of environments are implicitly unloaded by restoring the environment snapshot returned by the load() function.
There is also the emit_load_commands(*environs) function, which essentially loads environs, restores the original environment and returns the required load commands. In  the past this was accomplished by the _setup_environ() method of RegressionTest and the internal state of the Environment. Now, every time emit_load_commands(*environs) is called, all the environments will be loaded and the command sequence will be recorded. In addition to that, we construct a new user environment (from self.modules and self.variables) before the build and run phase of the pipeline. This allows a user to define different compilation and running environments. An example follows:
@rfm.run_before('run')
def set_num_threads(self):
    self.variables = {'OMP_NUM_THREADS': '16'}

This will define OMP_NUM_THREADS only inside the generated job script and not in the build phase.
Due to this feature, this PR fixes #58.

@jenkins-cscs retest this please

Codecov Report

Merging #961 into master will increase coverage by 0.18%.
The diff coverage is 85.98%.

@@            Coverage Diff             @@
##           master     #961      +/-   ##
==========================================
+ Coverage   91.67%   91.86%   +0.18%
==========================================
  Files          80       80
  Lines       10575    10481      -94
==========================================
- Hits         9695     9628      -67
+ Misses        880      853      -27

Impacted Files
Coverage Δ

unittests/test_pipeline.py
96.71% <ø> (-0.01%)
:arrow_down:

unittests/test_modules.py
83.17% <100%> (ø)
:arrow_up:

reframe/core/schedulers/__init__.py
95.58% <100%> (-0.22%)
:arrow_down:

unittests/test_schedulers.py
96.85% <100%> (ø)
:arrow_up:

reframe/core/schedulers/pbs.py
65.88% <100%> (ø)
:arrow_up:

unittests/test_cli.py
93.27% <100%> (ø)
:arrow_up:

reframe/frontend/executors/policies.py
97.04% <100%> (ø)
:arrow_up:

reframe/core/schedulers/local.py
98.87% <100%> (ø)
:arrow_up:

reframe/frontend/cli.py
80.38% <100%> (+0.06%)
:arrow_up:

reframe/frontend/executors/__init__.py
98.23% <100%> (ø)
:arrow_up:

... and 5 more

Continue to review full report at Codecov.

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


[CLEANUP] Rest plugin not to be released separately; version should

track to project.

 Note:

Frogbot also supports Contextual Analysis, Secret Detection, IaC and SAST Vulnerabilities Scanning. This features are included as part of the JFrog Advanced Security package, which isn't enabled on your system.

🐸 JFrog Frogbot


fix undefined variable in s1_rdr2geo.py, unit tests

Also

Adds a smoke test which runs the static layers script
add unit test for geocode stack script

@LiangJYu
tests/test_s1_geocode_stack.py F                                         [ 85%]
tests/test_s1_static_layers.py
CondaError: KeyboardInterrupt

Too long with no output (exceeded 10m0s): context deadline exceeded

the geocode tests took too long, and I don't have permissions to restart on CircleCI

fixed by making the command `pytest --capture=tee-sys`

@vbrancat @seongsujeong I just added a version bump to 0.4.1 to this so that we can have a new conda-forge version with a working s1_geocode_stack.py. let me know if there's any problem with that