Secure cloud config

Can we secure cloud config server deployed on AWS ECS with ECS task role so that only spring cloud gateway (deployed on ECS) can access it? If not what are the other mechanisms to protect cloud config server without use of username/password?

I have no experience with aws eks

@spencergibb , are there any mechanisms to protect cloud config server without use of username/password?

Anything you can do with spring security

@spencergibb , we are using Spring Cloud Config with Spring Boot 2.0 and I configured spring security as below. This is not validating the username/password. If I don't password it does say 401, but with incorrect password also it is working.
Do we need to do anything specific for cloud config?
spring:
   security:
   user:
       name: test
       password abc
       roles: USER

@Override
        protected void configure(HttpSecurity http) throws Exception {
                http.csrf().disable().authorizeRequests().antMatchers("/**").hasRole("USER").and().httpBasic();
        }

No that is all spring security


[POC] Add host validation to yii\web\Request

Q
A

Is bugfix?
yes

New feature?
yes

Breaks BC?
no

Tests pass?
yes

Fixed issues
#13050

Closes #13050
Alternative to #13063 with approach more similar to CSRF validation. It still fails by default if host is invalid, but there are no additional filters -  allowed hosts are set at Request level which makes configuration easier and (IMO) more logical. Also validation is performed in Request::getHostInfo() so there is no risk that we will have corrupted host in Request::$hostInfo - at worst case it will be empty (false to be exact).
It still is only POC and mostly copy-paste from #13063. If there will be interest of this approach, I will update phpdoc and add more test cases.

Thank you for this proposal! This approach however has several drawbacks:

I do not see why this should be configurable on a controller level, you either allow your application to deal with unlimited host names or not.
Adding this to the Request class will make this class even more complex. It already contains a lot of methods with different purpose. The deny method including validation etc is a lot of code added for a feature that should not be needed on a well configured server. The decision made here is not an easy one. We had a long discussion about this topic and decided that the separation into a behavior is the better solution for it.


  I had a slight bug in my application where the component would render on construction and disappear instantly due to a componentDidMount update changing the conditional logic to render it. After fixing that, the issue went away.

Yep, that's it. I was conditionally removing the component from the page after theverifyCallback, which triggered the timeouts. I've changed the component to use visibility: hidden for now. However, removing the component probably shouldn't throw these console errors?


Support in ts-jest as a transformer, without babel?

Fantastic library. I would love to use it in my project, however we don't directly use babel-jest at all and stick with ts-jest for transformation and typechecking. Should we make an effort to support it as an AST transformer in addition to the babel toolset chain?
https://kulshekhar.github.io/ts-jest/user/config/astTransformers

@wh1t3cAt1k
I will look into it and see how much work it is to port the babel ast transformation to ts ast transformation.

It seems it is too much work for what it's worth.
I've tested @userlike/joke with ts-jest + babel and it works if tsconfig's module is set to ES*.
For those that have module: commonjs can just create a tsconfig.test.json and do:
{
  "extends": "tsconfig.json",
  "include": ["src/**/*.ts"],
  "exclude": ["src/**/*.test.ts"],
  "compilerOptions": {
    "module": "ES2015"
  }
}

Thank you. It's a good idea to add this as a tutorial for someone like me. Thanks @anilanar !


[Bug] topk (43930832) is larger

Checklist

[ ] 1. I have searched related issues but cannot get the expected help.
[ ] 2. The bug has not been fixed in the latest version.
[ ] 3. Please note that if the bug-related issue you submitted lacks corresponding environment info and a minimal reproducible demo, it will be challenging for us to reproduce and resolve the issue, reducing the likelihood of receiving feedback.

Describe the bug
2024-07-24 17:10:22,528 - lmdeploy - WARNING - kwargs request_output_len is deprecated for inference, use GenerationConfig instead.
[WARNING] topk (43930832) is larger than max supported number (1024) for token 0 clip to max supported number 1024.
[WARNING] topk (43930832) is larger than max supported number (1024) for token 0 clip to max supported number 1024.
[WARNING] topk (43930832) is larger than max supported number (1024) for token 0 clip to max supported number 1024.
[WARNING] topk (43930832) is larger than max supported number (1024) for token 0 clip to max supported number 1024.
Reproduction
我这里用了批处理，调用的lmdeploy = 0.5.1，模型是internlm2_5-7b-chat，在推理过程中服务崩溃了，其实主要是想问模型服务崩溃的问题，想请问有没有办法可以避免模型服务崩溃，想要稳定为主，因为想用lmdepoly框架部署模型到生产
Environment
sys.platform: linux
Python: 3.8.19 (default, Mar 20 2024, 19:58:24) [GCC 11.2.0]
CUDA available: True
MUSA available: False
numpy_random_seed:<PHONE_NUMBER>
GPU 0,1,2,3: NVIDIA A800 80GB PCIe
CUDA_HOME: /usr/local/cuda
NVCC: Cuda compilation tools, release 12.1, V12.1.105
GCC: gcc (Debian 10.2.1-6) 10.2.1 20210110
PyTorch: 2.2.2+cu121
PyTorch compiling details: PyTorch built with:
  - GCC 9.3
  - C++ Version: 201703
  - Intel(R) oneAPI Math Kernel Library Version 2022.2-Product Build 20220804 for Intel(R) 64 architecture applications
  - Intel(R) MKL-DNN v3.3.2 (Git Hash 2dc95a2ad0841e29db8b22fbccaf3e5da7992b01)
  - OpenMP 201511 (a.k.a. OpenMP 4.5)
  - LAPACK is enabled (usually provided by MKL)
  - NNPACK is enabled
  - CPU capability usage: AVX512
  - CUDA Runtime 12.1
  - NVCC architecture flags: -gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_80,code=sm_80;-gencode;arch=compute_86,code=sm_86;-gencode;arch=compute_90,code=sm_90
  - CuDNN 8.9.2
  - Magma 2.6.1
  - Build settings: BLAS_INFO=mkl, BUILD_TYPE=Release, CUDA_VERSION=12.1, CUDNN_VERSION=8.9.2, CXX_COMPILER=/opt/rh/devtoolset-9/root/usr/bin/c++, CXX_FLAGS= -D_GLIBCXX_USE_CXX11_ABI=0 -fabi-version=11 -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -DNDEBUG -DUSE_KINETO -DLIBKINETO_NOROCTRACER -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -O2 -fPIC -Wall -Wextra -Werror=return-type -Werror=non-virtual-dtor -Werror=bool-operation -Wnarrowing -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-unused-parameter -Wno-unused-function -Wno-unused-result -Wno-strict-overflow -Wno-strict-aliasing -Wno-stringop-overflow -Wsuggest-override -Wno-psabi -Wno-error=pedantic -Wno-error=old-style-cast -Wno-missing-braces -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-stringop-overflow, LAPACK_INFO=mkl, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, TORCH_VERSION=2.2.2, USE_CUDA=ON, USE_CUDNN=ON, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=1, USE_NNPACK=ON, USE_OPENMP=ON, USE_ROCM=OFF, USE_ROCM_KERNEL_ASSERT=OFF,

TorchVision: 0.17.2+cu121
LMDeploy: 0.5.1+
transformers: 4.40.1
gradio: Not Found
fastapi: 0.110.2
pydantic: 2.7.1
triton: 2.2.0
NVIDIA Topology:
        GPU0    GPU1    GPU2    GPU3    CPU Affinity    NUMA Affinity   GPU NUMA ID
GPU0     X      PIX     PIX     PIX     0-27,56-83      0               N/A
GPU1    PIX      X      PIX     PIX     0-27,56-83      0               N/A
GPU2    PIX     PIX      X      PIX     0-27,56-83      0               N/A
GPU3    PIX     PIX     PIX      X      0-27,56-83      0               N/A

Legend:

  X    = Self
  SYS  = Connection traversing PCIe as well as the SMP interconnect between NUMA nodes (e.g., QPI/UPI)
  NODE = Connection traversing PCIe as well as the interconnect between PCIe Host Bridges within a NUMA node
  PHB  = Connection traversing PCIe as well as a PCIe Host Bridge (typically the CPU)
  PXB  = Connection traversing multiple PCIe bridges (without traversing the PCIe Host Bridge)
  PIX  = Connection traversing at most a single PCIe bridge
  NV#  = Connection traversing a bonded set of # NVLinks

Error traceback
No response

Could you share a complete log with us?

Maybe related to #2201

Please upgrade to v0.5.3.


Methods to_usize() etc should be const-fn

The methods [to_usize()](Methods to_usize() etc should be const-fn) etc should be const-fn.

Nevermind, trait fns cannot be declared const :/

On nightly, one can impl const Trait for T. Perhaps something like that could be used.

I'm not having a huge amount of success. Here's where I'm at: playground


Hanges on Intel hd 530 graphics

Setup:
Windows 10
node v4.4.3
Latest Intel OpenCL drivers
Intel HD 530 graphics
The tests and examples and any other small nooocl program never gets a response back from the enqueueReadBuffer call after a kernel is launched.
I have successfully tested on gtx 970, and intel cpu, but my intel hd 530 graphics don't ever produce a response after the kernel is launched, just hangs the node process waiting for the callback.  Seems similar in nature to #2
One interesting thing to note: if the node process is run from "Generate New Session" from the opencl tools in visual studio, it does successfully execute the node application.  not sure what the difference is.

This also happens in MacOS. I've tried Node 7.2.1 with Intel Iris 5100 Graphics.
Just hangs during CLBuffer test.
If I comment out GPU testing, it works when testing on the CPU. Willing to help in debugging. May have something to do with buffer size?

Output from clinfo on my Late 2013 13" Macbook Pro

Please try v0.12.4+, I believe that's got fixed. Open up this issue if still presents at you side.

Yes works on my mac now! A+


Discussion

You have C# syntax in the readme.
filterIf(Expresson<(r: TRecord) => boolean> expression, condition: boolean): Queryable<TRecord> {}

What's the difference betweenfilterIf and filter?

Apply that filter expression, only if the seco d parameter is true.

that's actually nice.

filterWhen might make more sense though. like in pattern matching.

It's from dotnet, where are XxxIf used all around so I keep that naming. But When sounds good too.


better documentation/readme

need to make it clear what its gonna do- which files it creates, which folders, etc

added what files and all are being created in the readme for now.

update to date for now.


Metaclient refactor: move core module to top level

Resolves #6201.

@arielshaqed, it has become part of the core project, under the io.treeverse.examples package. Not sure anyone uses them, though.


Week 6 Review Ticket

Score: /5 Graded by
Link to Individual Github Page: here
GH Team Page and Individual Work

[ ] Project task on scrum board for week, due EOD Monday

[ ] Tangible coding artifacts for week

[ ] Comments, runtime, and drivers/testers for review

[ ] Project task used as review ticket, show sponsor objective completed, and coding reflection for week

[ ] Watch 2 of the 10 CB University Faculty Lectures to strengthen your foundation and make notes on your indi GH Pages

Score: 4.7/5 Graded by Alex Do
Comment: Had most of the requirements for the week's coding + CollegeBoard notes. Liked your project task, but seems to need a little more comments on codes.
GH Team Page and Individual Work

[x] Project task on scrum board for week, due EOD Monday
[x] Tangible coding artifacts for week
[x] Comments, runtime, and drivers/testers for review
[x] Project task used as review ticket, show sponsor objective completed, and coding reflection for week
[x] Watch 2 of the 10 CB University Faculty Lectures to strengthen your foundation and make notes on your indi GH Pages


KAFKA-5853: implement WindowedKStream

Add the WindowedKStream interface and implementation of methods that don't require Materialized

@guozhangwang, @bbejeck, @mjsax  - i still need to add docs

Thanks, @dguy, just a couple of nits otherwise LGTM

once this one is merged i'll do the SessionWindowedKStream as there will be some functionality that can be shared across the both of them.

LGTM!

merged to trunk


[Suggestion] Add more version-specific FAQ content to the documentation

Note: This repository is ONLY used to solve issues related to DOCS.
For other issues, please move to other repositories.

Is there anything that's missing or inappropriate in the docs? Please describe.
We can add more version-specific FAQ content to store questions and answers about the product. This will help users troubleshoot problems themselves and save the effort of customer support.

Fixed.


GRSIProof on analysis tree

Turns out that proof is REALLLLLY slow on our analysis trees. Like 800 seconds to loop through a tree using a selector that takes 30 seconds to loop through with a single threaded selector. I don't have a good feeling for what is causing this to occur right now. I've been playing a bit with TTreePerfStats and Cache sizes (although changing the cache just wipes out proof for some reason) just to see what it causing this issue. This hasn't resulted in any useful info yet. I am going to push a version of grsiproof tomorrow that just runs a single-threaded selector on analysis trees. It would be beneficial to figure this out instead instead of using our own multithreaded analysis tree analyzer because PROOF can be used to distribute data remotely which would be useful for the very very large GRIFFIN datasets of the future.
I have also learned how to use ROOT's TThread class to multi-thread histogram fills, so this will be built in to the examples eventually as well. I'm going to let this sit for a bit and move on to helping @VinzenzBildstein complete the necessary pieces of the parallel loop code.

I tried setting branches to point at the members of the class and not treat the branches as classes themselves, ie
// Fixed size dimensions of array or collections stored in the TTree if any.
   const Int_t kMaxfGriffinHits = 60;
   const Int_t kMaxfSceptarHits = 8;

class AnalysisSelector : public TSelector {
public :
   TTree          *fChain;   //!pointer to the analyzed TTree or TChain

   // Declaration of leaf types
 //TGriffin        *TGriffin;
   Int_t           fGriffinHits_;
   UInt_t          fGriffinHits_fAddress[kMaxfGriffinHits];   //[fGriffinHits_]
   Float_t         fGriffinHits_fCharge[kMaxfGriffinHits];   //[fGriffinHits_]
   Short_t         fGriffinHits_fKValue[kMaxfGriffinHits];   //[fGriffinHits_]
   Int_t           fGriffinHits_fCfd[kMaxfGriffinHits];   //[fGriffinHits_]
   Long_t          fGriffinHits_fTimeStamp[kMaxfGriffinHits];   //[fGriffinHits_]

And it flew! 700 MB/s processing time! However, running like this will take some smart coding, so this isn't ideal. Seems like there is something about using the classes that doesn't mesh nicely with proof.

#include "TGRSISelector.h"
seems to be missing from master
On Fri, Oct 28, 2016 at 10:17 AM, Ryan Dunlop<EMAIL_ADDRESS>wrote:

I tried setting branches to point at the members of the class and not
treat the branches as classes themselves, ie
// Fixed size dimensions of array or collections stored in the TTree if any.
const Int_t kMaxfGriffinHits = 60;
const Int_t kMaxfSceptarHits = 8;
class AnalysisSelector : public TSelector {
public :
TTree          *fChain;   //!pointer to the analyzed TTree or TChain
// Declaration of leaf types
//TGriffin        *TGriffin;
Int_t           fGriffinHits_;
UInt_t          fGriffinHits_fAddress[kMaxfGriffinHits];   //[fGriffinHits_]
Float_t         fGriffinHits_fCharge[kMaxfGriffinHits];   //[fGriffinHits_]
Short_t         fGriffinHits_fKValue[kMaxfGriffinHits];   //[fGriffinHits_]
Int_t           fGriffinHits_fCfd[kMaxfGriffinHits];   //[fGriffinHits_]
Long_t          fGriffinHits_fTimeStamp[kMaxfGriffinHits];   //[fGriffinHits_]
And it flew! 700 MB/s processing time! However, running like this will
take some smart coding, so this isn't ideal. Seems like there is something
about using the classes that doesn't mesh nicely with proof.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/GRIFFINCollaboration/GRSISort/issues/807#issuecomment-256932298,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAacI8xr0uVBWvbs8vDzhZ4EZXjPHO97ks5q4gQIgaJpZM4Ki-Nb
.

Which file is saying this? I don't have that anymore, maybe I didn't commit the fix?

I think it should be resolved now

yep, all appears good now. things compile again :)
On Fri, Oct 28, 2016 at 11:04 AM, Ryan Dunlop<EMAIL_ADDRESS>wrote:

I think it should be resolved now
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/GRIFFINCollaboration/GRSISort/issues/807#issuecomment-256945205,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAacIz4MCMch5xetmQ-FppxUNtLwZGWqks5q4g74gaJpZM4Ki-Nb
.


KNL-1499 upgrade HikariCP to 2.6.0

Changes in 2.6.0

Redesign of the contention code path resulting in doubling contended throughput; now
contended pool access retains 98% of the uncontended throughput.

issue 793 add new HikariConfig method, setScheduledExecutor(ScheduledExecutorService),
and deprecate method setScheduledExecutorService(ScheduledThreadPoolExecutor). It is
unfortunate that the deprecated method has the more accurate name, but its signature
cannot be changed without breaking binary compatibility.

issue 770 add a new property initializationFailTimeout, and deprecate configuration
property initializationFailFast.

issue 774 significantly improve spike load handling.

issues 518/769 add new metric for tracking how long physical connection acquisition is
taking.  DropWizard histogram name "ConnectionCreation", and Prometheus summary name
"hikaricp_connection_creation_millis".

issue 741 cancel HouseKeeper task on pool shutdown. If the ScheduledExecutor being used
did not belong to HikariCP, this task would remain scheduled after shutdown, causing a
memory leak.

issue 781 more technically accurate wording of pool startup and shutdown log messages.

This dependency is in master now since #4013

Yeah the version is now in master's dependencyManagement.


Incorrect lag when a consumer group is subscribed to topics with no traffic

If a CG consumes from multiple topics, and if over time some of these topics don't have traffic produced to them - the calculated lag will become huge:

This is a big problem, because if you monitor lag on the group level, you will have wrong info about lag - about lag which basically doesn't exist.
Here is the lag info from Burrow:

You can see that at the same time when Kafka Lag Exporter metric shows lag, there is no lag.
How to reproduce:

Create two topics with very low retention. TopicA and TopicB.
Start producing to TopicA.
Start a Consumer group which is subscribed to TopicA and TopicB.
Observe lag metric over time and in one point the lag will increase for an order of magnitude on the TopicB. Not sure exactly when this happens, but I think it's connected with retention.ms params on the topic with no traffic, because maybe then Kafka segments are rotated, or something like that.

Thanks @dpoldrugo.  If I understand correctly, you're saying when a topic has a short retention and the topic hasn't been produced in awhile (so that some segments are evicted) you observe a strange anomaly with reported lag.  The group you're monitoring has no lag up until this point?
Also, can you clarify what you mean with this statement:

This is a big problem, because if you monitor lag on the group level, you will have wrong info about lag

By "monitoring lag on the group level" are you summing lag across all partitions?

@dpoldrugo Please let me know if this fixes the issue in the latest release 0.5.0


Document why superglobals can appear empty

I had a case on a shared hosting setup that the $_ENV variable was not being set. This was due to the variables_order setting in php.ini.
Maybe it is a good idea to document this in the README?

Sure, thanks.


app-server exited with code 126

I'm new to using dockers and i cant seem to understand on how to get this working.
i was able to get the ownlcoud running using this tutorial https://doc.owncloud.com/server/admin_manual/installation/docker/ but i wanted the OnlyOffice integration, could someone help with this issue?

now im getting this issue also

Hello @joaoFerreira-ui
Login to your Owncloud, go to Market and install ONLYOFFICE app.

thank you for the reply. I am using the owncloud docker, i have installed the app as mentioned in the market store and as seen bellow it is enabled.

But i'm still getting theses logs.

Are you able to create documents in main menu by clicking '+'?

I can only upload and create folder.
im using the below config to run an ownlcloud docker https://doc.owncloud.com/server/admin_manual/installation/docker/
and then using https://github.com/ONLYOFFICE/Docker-DocumentServer. on a separate docker.
I coudn't lunch the owncloud server using the https://github.com/ONLYOFFICE/docker-onlyoffice-owncloud set up.


Fix crashing with some saves

Fixed #787

Download:
Environment: QT=5.12, ARCH=64, PYTHON_PATH=C:\Python37-x64
Environment: QT=5.12, ARCH=32, PYTHON_PATH=C:\Python37


Thumbnails seem to download all at once, consider prioritizing load sequence from top to bottom.

The Issue
Steps to reproduce

Launch the app
Wait for media to load on Dashboard
Patience

Expected behaviour
The thumbnails should likely try to prioritize which ones load first so that I'm not waiting for all of them to load even if I don't scroll down very far.
Actual behaviour
Tell us what happens instead
Anything Else
Google aims to have the search result that you're going to see as the top result and tries to improve if it doesn't get you to click the top link based on your search result.
Google Chrome also attempts to load as much of the website as possible before showing you any updates on the user interface which gives the impression that the website loads faster.  Users tend to be more frustrated having to wait for elements to load bit by bit.  It would be marginally better to show a loading element instead.
A non-trivial issue, UX specific, Improvement.

Thanks for submitting this issue!
This is a known issue in the LBRY-app as well and the root cause is a very slow client/server connection for the wallet server. The wallet server is responsible for "resolving" each URL in order to get the thumbnail and other metadata. Currently, we batch these requests all into one so not to overload the server with hundreds of requests.
The wallet client/server re-worked mentioned in the latest development update should speed up this process, and if not, we can think of better ways to batch them so they show up quicker.

@tzarebczan are there relevant links that could be dumped into this issue to make the job easier in the future?

This experience should be much improved on the latest app version. Going to close this for now, but if anyone runs into something similar, please reopen.

Thanks @tzarebczan this was solved shortly after I posted it, within a week or so I believe unfortunately I'd not closed the ticket.


generateCssFlow should recursively walk the dist folder for css files

generateCssFlow currently only looks at the top level dist folder for css files to mock out for flow typing.
There are now css files in the derived folder. These need to be mocked out as well. So the script should recursively walk through the entire dist subtree to mock all possible css files.

This is not fixed, reopening

I just ran this and it seems to be working well. It doesn't flatten the directory structure but it generates types for derived/root.css which is the only css file in derived. was this all that was needed?

I was just thinking about this, and was thinking maybe we could add the webpack plugin we use internally at Axon to accomplish what this script is doing, and in a more robust manner.

Yeah that would be great!

not needed anymore since we no longer ship css for reflex


Interactive Tutorial - Creating a Cluster: cannot interact with Katacoda's iframe

Hello!
I've just started the tutorial and wanted to try creating my first cluster in the interactive tutorial, as suggested by the docs
https://kubernetes.io/docs/tutorials/kubernetes-basics/create-cluster/cluster-interactive/
The thing is once I launched the console and started the scenario, nothing was clickable. I've attached a video of me trying to interact with it. I've also started to write things but nothing happens.
Here is the URL of the iframe if this can help
Tried in:

Brave: Version 1.38.111 Chromium: 101.0.4951.54 (Official Build) (x86_64)
Firefox Developer Edition: Version 101.0b7 (64-bit)
Safari: Version 15.5 (176<IP_ADDRESS>.8)

https://user-images.githubusercontent.com/34779161/168810548-debfad1c-f7d6-4854-9f7c-4c9547bc20e7.mp4
Maybe I'm doing something wrong and this is not how I should do it...
Thanks

Duplicate of https://github.com/kubernetes/website/issues/33749

Ok it worked after disabling my content blockers and the builtin content blockers!
Thanks


append adc2 support and api

append adc2 support and api

esp_err_t adc2_config_width(adc_bits_width_t width_bit);
esp_err_t adc2_config_channel_atten(adc2_channel_t channel, adc_atten_t atten);
int adc2_get_voltage(adc2_channel_t channel);

example code:
#include "freertos/FreeRTOS.h"
#include "esp_wifi.h"
#include "esp_system.h"
#include "esp_event.h"
#include "esp_event_loop.h"
#include "nvs_flash.h"
#include "driver/gpio.h"
#include "driver/adc.h"

/*
 *  @brief: testing_adc2
 *  add adc2 support in esp-idf
 *  28. March 2017
 *  rudi ;-)
 *  {4, 0, 2, 15, 13, 12, 14, 27, 25, 26};
 *  Channel 0=4
 *  Channel 1=0
 *  Channel 2=2
 *  Channel 3=15
 *  Channel 4=13
 *  Channel 5=12
 *  Channel 6=14
 *  Channel 7=27
 *  Channel 8=25
 *  Channel 9=26
 */

#define ADC1_TEST_CHANNEL (4)
#define ADC2_TEST_CHANNEL (9)

int adc1_c[8]  ={36, 37, 38, 39, 32, 33, 34, 35};
int adc2_c[10] ={4, 0, 2, 15, 13, 12, 14, 27, 25, 26};

void adctask(void* arg)
{
    // initialize ADC
    adc1_config_width(ADC_WIDTH_12Bit);
    adc2_config_width(ADC_WIDTH_9Bit);

    adc1_config_channel_atten(ADC1_TEST_CHANNEL,ADC_ATTEN_11db);
    adc2_config_channel_atten(ADC2_TEST_CHANNEL, ADC_ATTEN_0db);
    while(1){
    	printf("testing adc2 support, added 28 March 2017\n");
    	printf("The adc1[%d] value:%d\n",adc1_c[ADC1_TEST_CHANNEL],adc1_get_voltage(ADC1_TEST_CHANNEL));
        printf("The adc2[%d] value:%d\n",adc2_c[ADC2_TEST_CHANNEL],adc2_get_voltage(ADC2_TEST_CHANNEL));
        printf("------------------------------------------------\n");
        vTaskDelay(1000/portTICK_PERIOD_MS);
    }
}

void app_main()
{
    xTaskCreate(adctask, "adctask", 1024*3, NULL, 10, NULL);
}

output:

Fyi, we're a bit hesitant to make ADC2 available because it is also used for pretty important control loops inside the WiFi (and maybe BT, I don't remember) drivers. We want to make sure there's no chance of these and the user ADC calls to interfere with each other.

Any news about ADC2 support? I need to use all the analog channels are available for a project i'm working on. I could use external muxing but it would require addictional design work. I don't need WiFi but i need BT. Is it at least possible to know if ADC2 pins are involved in control loops for BT too?
Thanks

@Spritetm Could you point me to the relevant documentation? Maybe I could come up with something.

ADC2 is usable provided WiFi is not used. See the API for the ADC for more info.

Well yes that is a statement that I'm trying to find the exact reason for. I have very quickly skimmed though the Technical Reference Manual looking for SAR2 / ADC2 references but nothing that points to the WiFi/BT stack. Maybe I missed something. If anyone knows more please let me know.


⚠ Bofrost.lu has degraded performance

In 0f3473c, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1336 ms

Resolved: Bofrost.lu performance has improved in 5ab852f after 6 minutes.


Generic filter api PoC Variant 1/3

First draft to introduce a generic filter api to discuss the graphql api.
This variant (1/3) is based on graphql schema shown by @manuelblum, it supports everything needed for mui data grid filters.

closing in favor of https://github.com/vivid-planet/comet/pull/684


Termination of extension host

Issue Type: Bug
Recently, it happens a lot for me in the C# project to see that the extension host is terminated and I should restart it. Most of the time it happens when there's a change in the file tree. I mean file creation/rename or git checkouts are some situations that cause the termination.
Although it seems to be a bug in the C#/Omnisharp extension which I have also reported here, I think it's also a problem in vscode that an issue in an extension can cause the termination of the whole extension host.
Logs from the developer tools console are included.
VS Code version: Code 1.52.1 (ea3859d4ba2f3e577a159bc91e3074c5d85c0523, 2020-12-16T16:34:46.910Z)
OS version: Windows_NT x64 10.0.19041

Console Log
c:\Users\UserName\.vscode\extensions\ms-dotnettools.csharp-1.23.8\dist\extension.js:16
var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(0),i=n(50),o=n(97),s=n(8),a=n(78),c=n(27),u=n(65),l=function(e){function t(n,r,i){var s=e.call(this)||this;switch(s.syncErrorValue=null,s.syncErrorThrown=!1,s.syncErrorThrowable=!1,s.isStopped=!1,arguments.length){case 0:s.destination=o.a;break;case 1:if(!n){s.destination=o.a;break}if("object"==typeof n){n instanceof t?(s.syncErrorThrowable=n.syncErrorThrowable,s.destination=n,n.add(s)):(s.syncErrorThrowable=!0,s.destination=new d(s,n));break}default:s.syncErrorThrowable=!0,s.destination=new d(s,n,r,i)}return s}return r.a(t,e),t.prototype[a.a]=functio

[TypeError: Cannot read property 'replace' of null
	at t.post [as _next] (c:\Users\UserName\.vscode\extensions\ms-dotnettools.csharp-1.23.8\dist\extension.js:36:383967)
	at t.__tryOrUnsub (c:\Users\UserName\.vscode\extensions\ms-dotnettools.csharp-1.23.8\dist\extension.js:16:3217)
	at t.next (c:\Users\UserName\.vscode\extensions\ms-dotnettools.csharp-1.23.8\dist\extension.js:16:2362)
	at t._next (c:\Users\UserName\.vscode\extensions\ms-dotnettools.csharp-1.23.8\dist\extension.js:16:1414)
	at t.next (c:\Users\UserName\.vscode\extensions\ms-dotnettools.csharp-1.23.8\dist\extension.js:16:1085)
	at t.next (c:\Users\UserName\.vscode\extensions\ms-dotnettools.csharp-1.23.8\dist\extension.js:16:26271)
	at t.EventStream.post (c:\Users\UserName\.vscode\extensions\ms-dotnettools.csharp-1.23.8\dist\extension.js:36:67000)
	at EventEmitter.<anonymous> (c:\Users\UserName\.vscode\extensions\ms-dotnettools.csharp-1.23.8\dist\extension.js:16:536991)
	at EventEmitter.emit (events.js:228:7)
	at e._fireEvent (c:\Users\UserName\.vscode\extensions\ms-dotnettools.csharp-1.23.8\dist\extension.js:16:535713)
	at e._handleEventPacket (c:\Users\UserName\.vscode\extensions\ms-dotnettools.csharp-1.23.8\dist\extension.js:16:543372)
	at e._onLineReceived (c:\Users\UserName\.vscode\extensions\ms-dotnettools.csharp-1.23.8\dist\extension.js:16:542694)
	at Interface.emit (events.js:223:5)
	at Interface._onLine (readline.js:315:10)
	at Interface._normalWrite (readline.js:460:12)
	at Socket.ondata (readline.js:172:10)
	at Socket.emit (events.js:223:5)
	at addChunk (_stream_readable.js:309:12)
	at readableAddChunk (_stream_readable.js:290:11)
	at Socket.Readable.push (_stream_readable.js:224:10)
	at Pipe.onStreamRead (internal/stream_base_commons.js:181:23)] {
  vslsStack: [
    CallSite {}, CallSite {},
    CallSite {}, CallSite {},
    CallSite {}, CallSite {},
    CallSite {}, CallSite {},
    CallSite {}, CallSite {},
    CallSite {}, CallSite {},
    CallSite {}, CallSite {},
    CallSite {}, CallSite {},
    CallSite {}, CallSite {},
    CallSite {}, CallSite {},
    CallSite {}
  ]
}

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz (8 x 2592)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: disabled_offopengl: enabled_onprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
15.90GB (4.51GB free)

Process Argv
--crash-reporter-id f54ed90e-e790-4e57-8437-932de4ddce01

Screen Reader
no

VM
0%

Extensions (40)

Extension
Author (truncated)
Version

vscode-sqlite
ale
0.10.1

dart-code
Dar
3.17.1

flutter
Dar
3.17.0

vscode-eslint
dba
2.1.14

netcore-snippets
dog
3.15.1

xml
Dot
2.5.1

vscode-html-css
ecm
1.3.3

vsc-material-theme
Equ
33.1.2

vsc-material-theme-icons
equ
1.2.2

prettier-vscode
esb
5.8.0

html-preview-vscode
geo
0.2.5

beautify
Hoo
1.5.0

reg
ion
1.0.2

latex-workshop
Jam
8.15.0

svg
joc
1.4.2

roslynator
jos
3.0.1

flutter-intl
loc
1.13.0

git-graph
mhu
1.28.0

escape-quotes
mil
1.10.0

vscode-docker
ms-
1.9.0

csharp
ms-
1.23.8

mssql
ms-
1.10.0

python
ms-
2020.12.424452561

vscode-pylance
ms-
2020.12.2

jupyter
ms-
2020.12.414227025

remote-containers
ms-
0.154.1

remote-ssh
ms-
0.62.0

remote-ssh-edit
ms-
0.62.0

remote-wsl
ms-
0.52.0

vscode-remote-extensionpack
ms-
0.20.0

cpptools
ms-
1.1.3

hexeditor
ms-
1.3.0

powershell
ms-
2020.6.0

vsliveshare
ms-
1.0.3375

material-icon-theme
PKi
4.4.0

vscode-autohide
sir
1.0.7

swdc-vscode
sof
2.3.24

code-spell-checker
str
1.10.2

msbuild-project-tools
tin
0.3.10

vscodeintellicode
Vis
1.2.10

(5 theme extensions excluded)

A/B Experiments
vsliv368:30146709
vsreu685:30147344
openlogontheside:30221877
python763:30178808
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
python504:30227505
vswsl492cf:30211402
wsl2promptcf:30224613
vstry244:30236573
pythonvsdeb440:30237827
unusedprompt:30224610
folderexplorer:30224614
openfilemenu:30224647
pythonvsded773:30236629
pythonvspyt600:30239448
vsjup459cf:30237188

I think it's also a problem in vscode that an issue in an extension can cause the termination of the whole extension host.

This is as designed. The extension host is a nodejs process where all extensions are loaded without any sandbox. That means we execute any piece of code written by the extension. Extensions have many ways to induce crashes, the most common being an OOM crash. For example, an extension can allocate objects in a loop until there is no more memory and the process crashes. Extensions can also enter an endless loop, in which case they completely starve other extensions. Extensions can also induce crashes by shipping a native C++ node module and causing segmentation faults, or using OS APIs in wrong ways (like spawning thousands of processes), etc.
The extension host is a nodejs process where we load the code from extensions. It is not in our scope to create an extension host which has Operating System - like features, like being resilient to a runaway extension, etc.

I think it's also a problem in vscode that an issue in an extension can cause the termination of the whole extension host.

This is as designed. The extension host is a nodejs process where all extensions are loaded without any sandbox. That means we execute any piece of code written by the extension. Extensions have many ways to induce crashes, the most common being an OOM crash. For example, an extension can allocate objects in a loop until there is no more memory and the process crashes. Extensions can also enter an endless loop, in which case they completely starve other extensions. Extensions can also induce crashes by shipping a native C++ node module and causing segmentation faults, or using OS APIs in wrong ways (like spawning thousands of processes), etc.
The extension host is a nodejs process where we load the code from extensions. It is not in our scope to create an extension host which has Operating System - like features, like being resilient to a runaway extension, etc.


Invalid CSS is generated when magic comment has special format

We have a Rails engine, which has the file vendor/assets/stylesheets/engine_name.css:
/*= require_tree .
 */

When precompiling the assets of the host app, it fails with the error message
Invalid CSS after " */": expected identifier, was ""

When looking at the generated Sass code, there is a closing comment without an opening comment. Our workaround is changing the file like this:
/*
 *= require_tree .
 */

Here is the list of the relevant gems in the project:

rails (3.2.8)
coffee-rails (3.2.2)
coffee-script (2.2.0)
coffee-script-source (1.3.3)
compass (0.12.2)
therubyracer (0.10.2)
sprockets (2.1.3)
sass (3.2.1)
sass-rails (3.2.5)
uglifier (1.3.0)
tilt (1.3.3)

Thanks, works for me


Play videos with 90 degree rotation when 'Surface filter' is used

Describe the bug
If I use a video with a 90-degree orientation in the 'Surface Filter', the video is played with a 90-degree rotation.
To Reproduce
play video whose orientation is 90 degree in 'Surface filter'
Expected behavior
video should be played with correct rotation
Screenshots

Below is the video I played.
https://github.com/pedroSG94/RootEncoder/assets/941300/492743f1-5c47-49b3-bcda-32feb77a5799
Smartphone (please complete the following information):

Library version : 2.3.2
Device: Galaxy Z Fold3 and any other phones
OS: Android 13

Additional context
In demo app, when 'Surface filter' is used during streaming, MediaPlayer is attached with Surface of 'SurfaceFilterRender'.
However, MediaPlayer does not check video's orientation.

Hello,
This is not a bug at all because SurfaceFilter is not only oriented to be used with MediaPlayer. Since MediaPlayer ignore orientation metadata of the video when you reproduce it in a surface. I will create a feature to allow rotation to object filters (text, image, gif, and surface) that will fix the problem.
I will use this PR for the case:
https://github.com/pedroSG94/RootEncoder/pull/1350

Hello,
Finally I added rotation feature. Using your video in the app example with this configuration:
surfaceFilterRender.setRotation(270); //rotate surface filter to use vertical
surfaceFilterRender.setScale(30f, 53.33f); //config scale to keep aspect ratio

This is the result:

You can test it with the PR:
https://github.com/pedroSG94/RootEncoder/pull/1350
Let me know if it is working as you expected. I will test a bit and merge it

Closing as resolved


Allow composes based on props

What:

Why:

How:

Checklist:

[ ] Documentation
[x] Tests
[x] Code complete

Closes #90

Codecov Report

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

@@           Coverage Diff           @@
##           master      #91   +/-   ##
=======================================
  Coverage   88.46%   88.46%
=======================================
  Files          15       15
  Lines         572      572
  Branches      119      119
=======================================
  Hits          506      506
  Misses         53       53
  Partials       13       13

Impacted Files
Coverage Δ

src/react.js
100% <ø> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


[RFC]: rename (or redefine?) math.base.assert.isInteger

Description
I got confused when reading some code using isInteger, because there are two different functions of that name:

assert.isInteger, which returns false for infinities (like built-in Number.isInteger)
math.base.assert.isInteger, which returns true for infinities

The difference is clearly explained in the documentation, which is great, but I still think the naming is unfortunate.
I suggest to change math.base.assert.isInteger:

either rename to isIntegerOrInfinity
or make it return false for infinities

While on this topic, wouldn't it make more sense for assert.isInteger — instead of wrapping "the other isInteger" — to use Number.isInteger if available, and reimplement that if not? Like:
var isInteger = Number.isInteger || function isInteger( value ) {
  return x === x - x % 1
}

Related Issues
No response
Questions
No.
Other
No.
Checklist

[X] I have read and understood the Code of Conduct.
[X] Searched for existing issues and pull requests.
[X] The issue name begins with RFC:.

Hey @lightmare! Thanks for opening this issue.
@stdlib/math/base/assert/is-integer is a "base" implementation, and what is meant by that is that it eschews certain checks and assumes particular aspects of input values without validating that those assumptions are valid.
We use "base" implementations throughout the project in those contexts where we have knowledge about value characteristics (e.g., we might know that by the time isInteger is called with v that v cannot be infinity) and we'd like to avoid the overhead of the additional checks and constraints imposed by non-"base" implementations, such as @stdlib/assert/is-integer.
Re: Number.isInteger. We often avoid relying on built-ins, especially those which may not have consistent support across all the environments we support (e.g., Node v0.10, IE, etc). Often, as in this case, we're also interested in the implementation; here, we're wanting to avoid modulo arithmetic and/or division, preferring instead to floor, which can be implemented without division (e.g., see musl). According to the spec (see 7.2.6), native implementations must also compute the absolute value (not clear why), so we avoid unnecessary computation by rolling our own.
In short, while I can see where multiple isInteger can be confusing, I don't think we're likely to rename or change the implementation. The reason for the former is that we commonly shadow package names in "base" sub-namespaces, often because we want more performant variants of related non-"base" packages for use internally. The reason for the latter is that we heavily use @stdlib/math/base/is-integer throughout the project internally and rely on it assuming finite input in order to squeeze out a bit more performance.
Hopefully that answers your questions/concerns. 😅

Wow, that explains a lot. Though putting it all together leads me back to Number.isInteger.

According to the spec (see 7.2.6), native implementations must also compute the absolute value (not clear why), so we avoid unnecessary computation by rolling our own.

The operation in question

— 3. If floor(abs(ℝ(argument))) ≠ abs(ℝ(argument)), return false.

is defined in terms of mathematical operations on real numbers. I guess the abs in there is only a hint that when implementing this in binary floating point, you can ignore the sign bit. Skipping it won't change the result.
And the wording used for real floor:

— The mathematical function floor(x) produces the largest integer (closest to +∞) that is not larger than x.

... is nearly identical to the wording used for Math.floor:

— 5. Return the greatest (closest to +∞) integral Number value that is not greater than n.

Of course one cannot extrapolate implementation performance from reading the spec. It just seems counter-intuitive to me to avoid using Number.isInteger when it's available. I don't see how Math.floor + compare could ever be faster.

Luckily, we have some benchmarks for assessing the difference, with the caveat that perf will be dependent on the host machine, Node.js version (and thus V8 version), etc. Here are my results:
$ make benchmark BENCHMARKS_FILTER=.*/assert/is-integer/.*

Running benchmark<EMAIL_ADDRESS>TAP version 13
# @stdlib/assert/is-integer::primitives,true
  ---
  iterations: 100000000
  elapsed: 0.459187457
  rate: 217775983.37142733
  ...
ok 1 benchmark finished
# @stdlib/assert/is-integer::primitives,true
  ---
  iterations: 100000000
  elapsed: 0.481124233
  rate: 207846525.16141292
  ...
ok 2 benchmark finished
# @stdlib/assert/is-integer::primitives,true
  ---
  iterations: 100000000
  elapsed: 0.479482899
  rate: 208558011.5757163
  ...
ok 3 benchmark finished
# @stdlib/assert/is-integer::primitives,false
  ---
  iterations: 100000
  elapsed: 0.289117907
  rate:<PHONE_NUMBER>3323174
  ...
ok 4 benchmark finished
# @stdlib/assert/is-integer::primitives,false
  ---
  iterations: 100000
  elapsed: 0.254431696
  rate:<PHONE_NUMBER>8099984
  ...
ok 5 benchmark finished
# @stdlib/assert/is-integer::primitives,false
  ---
  iterations: 100000
  elapsed: 0.325634142
  rate:<PHONE_NUMBER>3459463
  ...
ok 6 benchmark finished
# @stdlib/assert/is-integer::objects,true
  ---
  iterations: 10000000
  elapsed: 0.198526332
  rate: 50371151.77245102
  ...
ok 7 benchmark finished
# @stdlib/assert/is-integer::objects,true
  ---
  iterations: 10000000
  elapsed: 0.252158161
  rate: 39657649.62887717
  ...
ok 8 benchmark finished
# @stdlib/assert/is-integer::objects,true
  ---
  iterations: 10000000
  elapsed: 0.195392584
  rate: 51179015.06435884
  ...
ok 9 benchmark finished
# @stdlib/assert/is-integer::objects,false
  ---
  iterations: 100000
  elapsed: 1.030203845
  rate: 97068.16809638291
  ...
ok 10 benchmark finished
# @stdlib/assert/is-integer::objects,false
  ---
  iterations: 100000
  elapsed: 1.090669978
  rate: 91686.76319795061
  ...
ok 11 benchmark finished
# @stdlib/assert/is-integer::objects,false
  ---
  iterations: 100000
  elapsed: 1.034096595
  rate: 96702.76498686275
  ...
ok 12 benchmark finished
# @stdlib/assert/is-integer::primitives,true:isPrimitive
  ---
  iterations: 100000000
  elapsed: 0.484704454
  rate: 206311287.57896662
  ...
ok 13 benchmark finished
# @stdlib/assert/is-integer::primitives,true:isPrimitive
  ---
  iterations: 100000000
  elapsed: 1.378592569
  rate: 72537747.73538621
  ...
ok 14 benchmark finished
# @stdlib/assert/is-integer::primitives,true:isPrimitive
  ---
  iterations: 100000000
  elapsed: 0.488753104
  rate: 204602281.1550267
  ...
ok 15 benchmark finished
# @stdlib/assert/is-integer::primitives,false:isPrimitive
  ---
  iterations: 100000000
  elapsed: 0.705010802
  rate: 141841798.33318356
  ...
ok 16 benchmark finished
# @stdlib/assert/is-integer::primitives,false:isPrimitive
  ---
  iterations: 100000000
  elapsed: 1.693874602
  rate: 59036247.35970863
  ...
ok 17 benchmark finished
# @stdlib/assert/is-integer::primitives,false:isPrimitive
  ---
  iterations: 100000000
  elapsed: 0.701501167
  rate: 142551437.8367385
  ...
ok 18 benchmark finished
# @stdlib/assert/is-integer::objects,false:isPrimitive
  ---
  iterations: 100000000
  elapsed: 0.47419496
  rate: 210883725.96790147
  ...
ok 19 benchmark finished
# @stdlib/assert/is-integer::objects,false:isPrimitive
  ---
  iterations: 100000000
  elapsed: 1.512978385
  rate: 66094797.51424208
  ...
ok 20 benchmark finished
# @stdlib/assert/is-integer::objects,false:isPrimitive
  ---
  iterations: 100000000
  elapsed: 0.502634841
  rate: 198951588.39575946
  ...
ok 21 benchmark finished
# @stdlib/assert/is-integer::primitives,false:isObject
  ---
  iterations: 100000
  elapsed: 0.197234001
  rate:<PHONE_NUMBER>522528
  ...
ok 22 benchmark finished
# @stdlib/assert/is-integer::primitives,false:isObject
  ---
  iterations: 100000
  elapsed: 0.177974986
  rate:<PHONE_NUMBER>701164
  ...
ok 23 benchmark finished
# @stdlib/assert/is-integer::primitives,false:isObject
  ---
  iterations: 100000
  elapsed: 0.18170964
  rate:<PHONE_NUMBER>289012
  ...
ok 24 benchmark finished
# @stdlib/assert/is-integer::objects,true:isObject
  ---
  iterations: 10000000
  elapsed: 0.182287115
  rate: 54858512.627181575
  ...
ok 25 benchmark finished
# @stdlib/assert/is-integer::objects,true:isObject
  ---
  iterations: 10000000
  elapsed: 0.18181103
  rate: 55002163.51010167
  ...
ok 26 benchmark finished
# @stdlib/assert/is-integer::objects,true:isObject
  ---
  iterations: 10000000
  elapsed: 0.187180854
  rate: 53424267.42000012
  ...
ok 27 benchmark finished
# @stdlib/assert/is-integer::objects,false:isObject
  ---
  iterations: 100000
  elapsed: 1.030341546
  rate: 97055.19532646313
  ...
ok 28 benchmark finished
# @stdlib/assert/is-integer::objects,false:isObject
  ---
  iterations: 100000
  elapsed: 0.970946112
  rate:<PHONE_NUMBER>4948195
  ...
ok 29 benchmark finished
# @stdlib/assert/is-integer::objects,false:isObject
  ---
  iterations: 100000
  elapsed: 0.962919034
  rate:<PHONE_NUMBER>7203616
  ...
ok 30 benchmark finished
# @stdlib/assert/is-integer::builtin,primitives,true
  ---
  iterations: 100000000
  elapsed: 0.42710983
  rate: 234131815.6971475
  ...
ok 31 benchmark finished
# @stdlib/assert/is-integer::builtin,primitives,true
  ---
  iterations: 100000000
  elapsed: 1.2610018250000001
  rate: 79302026.3868373
  ...
ok 32 benchmark finished
# @stdlib/assert/is-integer::builtin,primitives,true
  ---
  iterations: 100000000
  elapsed: 0.413350882
  rate: 241925212.58488572
  ...
ok 33 benchmark finished
# @stdlib/assert/is-integer::builtin,primitives,false
  ---
  iterations: 100000000
  elapsed: 0.664010764
  rate: 150599968.28605628
  ...
ok 34 benchmark finished
# @stdlib/assert/is-integer::builtin,primitives,false
  ---
  iterations: 100000000
  elapsed: 1.566836455
  rate: 63822870.396515
  ...
ok 35 benchmark finished
# @stdlib/assert/is-integer::builtin,primitives,false
  ---
  iterations: 100000000
  elapsed: 0.873182742
  rate: 114523564.41556881
  ...
ok 36 benchmark finished
#
1..36
# total 36
# pass  36
#
# ok

Running benchmark<EMAIL_ADDRESS>TAP version 13
# @stdlib/math/base/assert/is-integer::true
  ---
  iterations: 100000000
  elapsed: 0.375061884
  rate: 266622667.5275806
  ...
ok 1 benchmark finished
# @stdlib/math/base/assert/is-integer::true
  ---
  iterations: 100000000
  elapsed: 0.386656315
  rate: 258627613.51770502
  ...
ok 2 benchmark finished
# @stdlib/math/base/assert/is-integer::true
  ---
  iterations: 100000000
  elapsed: 0.392391342
  rate: 254847620.97528645
  ...
ok 3 benchmark finished
# @stdlib/math/base/assert/is-integer::false
  ---
  iterations: 100000000
  elapsed: 0.442580432
  rate: 225947630.68964604
  ...
ok 4 benchmark finished
# @stdlib/math/base/assert/is-integer::false
  ---
  iterations: 100000000
  elapsed: 1.283130782
  rate: 77934378.47709587
  ...
ok 5 benchmark finished
# @stdlib/math/base/assert/is-integer::false
  ---
  iterations: 100000000
  elapsed: 0.415609983
  rate: 240610197.27719098
  ...
ok 6 benchmark finished
#
1..6
# total 6
# pass  6
#
# ok

How to read the above:

# @stdlib/assert/is-integer::primitives,true: this is the benchmark name, which displays the package name along with facets following ::, and, if present, : giving the method name, along with any explicit parameter/option values. Here, the benchmark is for the package @stdlib/assert/is-integer where the main export is provided primitive values which should always evaluate to true following the isInteger operation.
The YAML following the benchmark name contains the benchmark results for a single run. Each benchmark is run in triplicate. Iterations gives the number of benchmark iterations (i.e., each time an operation is performed). Elapsed gives the total time (in seconds) required to perform all iterations. Rate gives the number of iterations per second, where higher is better.
In general, only the highest rate matters.

Takeaways:

mainly interested in :isPrimitive benchmarks, as these measure what is ostensibly the equivalent of Number.isInteger. In general, the stdlib implementation is effectively equivalent to the built-in.
the above also includes @stdlib/math/base/assert/is-integer and what is important to note here is that is more consistent across the board for operations resulting in either true or false. Why is this noteworthy? Because that is precisely what we want when used internally (e.g., in transcendental functions) when we know something about the nature of the values to test.

One other addendum is that we do lose out on possible peak performance when a value is considered by V8 to be a small integer (a.k.a., an smi). When iterating over an array of only small integers, Number.isInteger is demonstrably faster, which may be expected when V8 knows that it can avoid calling Number.isInteger altogether. In this case, V8 is privy to knowledge we don't have when implementing this in userland--namely, how a value is stored in memory.
So in short, certainly @stdlib/math/base/assert/is-integer is not likely to change, as it exhibits perf behavior we find desirable--namely, running equivalently fast for both ints and non-ints.
For @stdlib/assert/is-integer (and, in particular, isPrimitive), I'd consider it a toss-up in the general sense, with more potential upside for using the built-in for certain special cases (smis). However, this upside comes with an asterisk, in that the perf profile may be specific to V8 and vary across runtimes. In which case, I still lean against changing our current implementation as the perf profile is, I'd argue, relatively predictable and likely to be consistent across engines (e.g., guards against a runtime using % to check for an integer, etc).
All this stated, we have discussed figuring out a way for users to bundle the project and swap out functionality which has a built-in behavioral equivalent. This is mainly for the browser use case, where bundle size concerns find greater weight. However, we're only at the ideation stage on this front and have yet to write any code to make this a reality.


The app  is stuck when i use webview_flutter at IOS

Steps to Reproduce

A->B->C, B and C are both webview pages.
while sliding right slowly at the C page running on ios, the app is stuck.
And then the app will always be stuck on this page

Logs

[+9636 ms] [VERBOSE-2:ui_dart_state.cc(148)] Unhandled Exception: 'package:flutter/src/gestures/converter.dart': Failed assertion: line 155 pos 18: '!state.down': is not true.
[        ] #0      _AssertionError._doThrowNew (dart:core/runtime/lib/errors_patch.dart:40:39)
[        ] #1      _AssertionError._throwNew (dart:core/runtime/lib/errors_patch.dart:36:5)
[        ] #2      PointerEventConverter.expand (package:flutter/src/gestures/converter.dart:155:18)
[        ] #3      _SyncIterator.moveNext (dart:core/runtime/lib/core_patch.dart:152:12)
[        ] #4      ListQueue.addAll (dart:collection/queue.dart:715:25)
[        ] #5      _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:83:27)
[        ] #6      _rootRunUnary (dart:async/zone.dart:1136:13)
[        ] #7      _CustomZone.runUnary (dart:async/zone.dart:1029:19)
[        ] #8      _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
[        ] #9      _invoke1 (dart:ui/hooks.dart:223:10)
[        ] #10     _dispatchPointerDataPacket (dart:ui/hooks.dart:144:5)

No errors.

[✓] Flutter (Channel beta, v1.3.8, on Mac OS X 10.14.3 18D109, locale zh-Hans-CN)
    • Flutter version 1.3.8 at /Users/YouCii/Library/flutter
    • Framework revision e5b1ed7a7f (4 weeks ago), 2019-03-06 14:23:37 -0800
    • Engine revision f4951df193
    • Dart version 2.2.1 (build 2.2.1-dev.0.0 571ea80e11)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/YouCii/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.1, Build version 10B61
    • ios-deploy 1.9.4
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 32.0.1
    • Dart plugin version 182.5215
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

[✓] Connected device (2 available)
    • MI 6       • 69841c30                                 • android-arm64 • Android 8.0.0 (API 26)
    • 宋玉的 iPhone • 68bbf9cff03a77b60ff1005918fc2460c9b49c79 • ios           • iOS 11.4.1

• No issues found!

Any one can help me?

flutter: ══╡ EXCEPTION CAUGHT BY SCHEDULER LIBRARY ╞═════════════════════════════════════════════════════════
flutter: The following assertion was thrown during a scheduler callback:
flutter: 'package:flutter/src/widgets/heroes.dart': Failed assertion: line 424 pos 12: '() {
flutter:       final Animation<double> initial = initialManifest.animation;
flutter:       assert(initial != null);
flutter:       final HeroFlightDirection type = initialManifest.type;
flutter:       assert(type != null);
flutter:       switch (type) {
flutter:         case HeroFlightDirection.pop:
flutter:           return initial.value == 1.0 && initialManifest.isUserGestureTransition
flutter:               // During user gesture transitions, the animation controller isn't
flutter:               // driving the reverse transition, but should still be in a previously
flutter:               // completed stage with the initial value at 1.0.
flutter:               ? initial.status == AnimationStatus.completed
flutter:               : initial.status == AnimationStatus.reverse;
flutter:         case HeroFlightDirection.push:
flutter:           return initial.value == 0.0 && initial.status == AnimationStatus.forward;
flutter:       }
flutter:       return null;
flutter:     }()': is not true.
flutter:
flutter: Either the assertion indicates an error in the framework itself, or we should provide substantially
flutter: more information in this error message to help you determine and fix the underlying cause.
flutter: In either case, please report this assertion by filing a bug on GitHub:
flutter:   https://github.com/flutter/flutter/issues/new?template=BUG.md
flutter:
flutter: When the exception was thrown, this was the stack:
flutter: #2      _HeroFlight.start (package:flutter/src/widgets/heroes.dart:424:12)
flutter: #3      HeroController._startHeroTransition (package:flutter/src/widgets/heroes.dart:684:60)
flutter: #4      HeroController._maybeStartHeroTransition.<anonymous closure> (package:flutter/src/widgets/heroes.dart:630:11)
flutter: #5      _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15)
flutter: #6      _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:938:9)
flutter: #7      _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:842:5)
flutter: #11     _invoke (dart:ui/hooks.dart:209:10)
flutter: #12     _drawFrame (dart:ui/hooks.dart:168:3)
flutter: (elided 5 frames from class _AssertionError and package dart:async)
flutter: ════════════════════════════════════════════════════════════════════════════════════════════════════

[VERBOSE-2:ui_dart_state.cc(148)] Unhandled Exception: 'package:flutter/src/gestures/converter.dart': Failed assertion: line 155 pos 18: '!state.down': is not true.
#0      _AssertionError._doThrowNew (dart:core/runtime/lib/errors_patch.dart:40:39)
#1      _AssertionError._throwNew (dart:core/runtime/lib/errors_patch.dart:36:5)
#2      PointerEventConverter.expand (package:flutter/src/gestures/converter.dart:155:18)
#3      _SyncIterator.moveNext (dart:core/runtime/lib/core_patch.dart:152:12)
#4      ListQueue.addAll (dart:collection/queue.dart:715:25)
#5      _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:83:27)
#6      _rootRunUnary (dart:async/zone.dart:1136:13)
#7      _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#8      _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#9      _invoke1 (dart:ui/hooks.dart:223:10)
#10     _dispatchPointerDataPacket (dart:ui/hooks.dart:144:5)

Feeling helpless...

[VERBOSE-2:ui_dart_state.cc(148)] Unhandled Exception: 'package:flutter/src/gestures/converter.dart': Failed assertion: line 155 pos 18: '!state.down': is not true. #0      _AssertionError._doThrowNew (dart:core/runtime/liberrors_patch.dart:40:39) #1      _AssertionError._throwNew (dart:core/runtime/liberrors_patch.dart:36:5) #2      PointerEventConverter.expand  package:flutter/…/gestures/converter.dart:155 #3      _SyncIterator.moveNext (dart:core/runtime/libcore_patch.dart:152:12) #4      ListQueue.addAll (dart:collection/queue.dart:715:25) #5      _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket  package:flutter/…/gestures/binding.dart:83 #6      _rootRunUnary (dart:async/zone.dart:1136:13) #7      _CustomZone.runUnary (dart:async/zone.dart:1029:19) #8      _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7) #9      _invoke1 (dart:ui/hooks.dart:223:10)
facing the same issue with webview_flutter
when scrolling the webview page horizontally, this Exception will triggered occasionally

Hi, just want to check if this is still a problem for you.

Amazing, the problem disappears. But why? What has been modified in the new version of Flutter?


151 Missing label for Haiti

Signed-off-by: Patrycja Miazek<EMAIL_ADDRESS>It turned out that the 'ISO3166-1-CountryCodes' ontology in the static ontologies was out of date. I have updated the file. What to do with the rest of the files in the 'staticOntologies' folder? It would be necessary to update them manually as well.
#151

Signed-off-by: Patrycja Miazek<EMAIL_ADDRESS>It turned out that the 'ISO3166-1-CountryCodes' ontology in the static ontologies was out of date. I have updated the file. What to do with the rest of the files in the 'staticOntologies' folder? It would be necessary to update them manually as well.
#151

@patrycjamia could you investigate how ontologies in staticOntologies folder are used by onto-viewer?
We should not use them at all, i.e., we should import all imported ontologies from their proper sources.

Signed-off-by: Patrycja Miazek<EMAIL_ADDRESS>It turned out that the 'ISO3166-1-CountryCodes' ontology in the static ontologies was out of date. I have updated the file. What to do with the rest of the files in the 'staticOntologies' folder? It would be necessary to update them manually as well.
#151

@patrycjamia could you investigate how ontologies in staticOntologies folder are used by onto-viewer? We should not use them at all, i.e., we should import all imported ontologies from their proper sources.

https://www.omg.org/spec/LCC/Countries/CountryRepresentation/
https://www.omg.org/spec/LCC/Languages/ISO639-1-LanguageCodes/
https://www.omg.org/spec/LCC/Languages/ISO639-2-LanguageCodes/
https://www.omg.org/spec/LCC/Countries/ISO3166-1-CountryCodes/
https://www.omg.org/spec/LCC/Countries/ISO3166-2-SubdivisionCodes/
https://www.omg.org/spec/LCC/Countries/Regions/ISO3166-2-SubdivisionCodes-GB/
https://www.omg.org/spec/LCC/Countries/Regions/ISO3166-2-SubdivisionCodes-MX/
https://www.omg.org/spec/LCC/Countries/Regions/ISO3166-2-SubdivisionCodes-US/
https://www.omg.org/spec/LCC/Languages/LanguageRepresentation/

The above ontologies from 'https://www.omg.org/spec/LCC/...' are in the staticOntologies folder. As far as I remember, fibo-viewer often stopped working because there were probelms with the omg page. That is why the ontologies from omg are in this folder.

Ontologies probably need to be updated manually on the servers

Ontologies probably need to be updated manually on the servers

@dasawanaka could you do it or instruct @patrycjamia how to do it?


HV-1354 Make JavaFX classes visible when running the TCK in incontainer mode

https://hibernate.atlassian.net/browse/HV-1354

Ok. All the com.sun.* stuff shouldn't be needed hopefully. Anyways, we
always can adapt this if needed.


api: fix remote addr shows reverse proxy addr problem

Uses the first ip addr in X-forwarded-for as the client's remote addr if it exists
otherwise, fall back to use default http.Request.RemoteAddr

Let's move this code so that it's a subdirectory of api. Maybe we can call it httputil, so that we can put other stuff besides IP-related stuff in the package.


Enhance bootstrap file handling

Is your feature request related to a problem?
Currently, the bootstrap module looks for files in an object in a key/value format where the exact file names must be provided. While this is fine for static files like bootstrap.xml and init-cfg.txt, this makes it administratively difficult to maintain dynamically named files such as used for content updates.
Describe the solution you'd like
I propose to incorporate an opinionated structure that matches what is already required for the bootstrap package and have the module read the filenames and move the objects accordingly. This is a resource block I created that does this, but it would be nice to have this built into the module.
locals {
    fnames = fileset("./bootstrap_files/content", "*")
}

resource "google_storage_bucket_object" "content" {
  for_each = local.fnames
  name     = "content/${each.key}"
  bucket   = module.bootstrap.bucket_name
  source   = "./bootstrap_files/content/${each.key}"
}

Perhaps use something like merge() to provide backwards-compatibility with the existing functionality.
Describe alternatives you've considered.
No response
Additional context
No response

Opened in error as this is already supported in AWS.


How to Disable a Specific Rule for Mod security on a Single Domain

Winodws 2016, IIS 10
How to Disable a Specific Rule for Mod security on a Single Domain?

Hi @mmojadad ,
Can I assume this is a duplicate of #2362 ?


Installation fails

Describe the bug
After following setup instruction, I tried to install the guaranteed example and I got the following error at the init container.
$ kubectl logs moco-test-0 moco-init
mysqld: Can't create directory '/var/lib/mysql/data/' (OS errno 13 - Permission denied)
2021-05-24T19:44:33.022939Z 0 [System] [MY-013169] [Server] /usr/local/mysql/bin/mysqld (mysqld 8.0.24) initializing of server in progress as process 12
2021-05-24T19:44:33.024090Z 0 [ERROR] [MY-013236] [Server] The designated data directory /var/lib/mysql/data/ is unusable. You can remove all files that the server added to it.
2021-05-24T19:44:33.024138Z 0 [ERROR] [MY-010119] [Server] Aborting
2021-05-24T19:44:33.024316Z 0 [System] [MY-010910] [Server] /usr/local/mysql/bin/mysqld: Shutdown complete (mysqld 8.0.24)  Source distribution.
Error: exit status 1
exit status 1

It's on Digital Ocean managed Kubernetes service.
Environments

Version: do-kube-1.20.2-do.0 / latest moco
OS: Debian

To Reproduce
Steps to reproduce the behavior:

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

Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Add any other context about the problem here.

@inductor
It seems that your storage provisioner sets the filesystem permission bits to something that allows writes only to root.
Could you give it another try with spec.securityContext.fsGroup: 10000 in the Pod template?

@ymmt2005 Thanks it worked like a charm!

I'd add a tip to the user manual.  Thank you for reporting.

Still get error
root@mitclusternode01:/home/mit/Kubernetes/Moco# kubectl logs -n moco moco-test-1  moco-init
mysqld: Can't create directory '/var/lib/mysql/data/' (OS errno 13 - Permission denied)
2021-09-15T07:30:43.635259Z 0 [System] [MY-013169] [Server] /usr/local/mysql/bin/mysqld (mysqld 8.0.26) initializing of server in progress as process 13
2021-09-15T07:30:43.636343Z 0 [ERROR] [MY-013236] [Server] The designated data directory /var/lib/mysql/data/ is unusable. You can remove all files that the server added to it.
2021-09-15T07:30:43.636374Z 0 [ERROR] [MY-010119] [Server] Aborting
2021-09-15T07:30:43.636471Z 0 [System] [MY-010910] [Server] /usr/local/mysql/bin/mysqld: Shutdown complete (mysqld 8.0.26)  Source distribution.
Error: exit status 1
exit status 1

@northboys Could you show your YAML?

apiVersion: moco.cybozu.com/v1beta1
kind: MySQLCluster
metadata:
namespace: moco
name: test
spec:
replicas is the number of mysqld Pods.  The default is 1.
replicas: 3
podTemplate:
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- mysql
- key: app.kubernetes.io/instance
operator: In
values:
- test
topologyKey: "kubernetes.io/hostname"
containers:
# At least a container named "mysqld" must be defined.
- name: mysqld
image: quay.io/cybozu/mysql:8.0.26
resources:
limits:
cpu: "1"
memory: "1Gi"
securityContext:
fsGroup: 10000
volumeClaimTemplates:
At least a PVC named "mysql-data" must be defined.

metadata:
name: mysql-data
spec:
storageClassName: longhorn
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 1Gi

apiVersion: moco.cybozu.com/v1beta1
kind: MySQLCluster
metadata:
namespace: moco
name: test
spec:
replicas: 3
podTemplate:
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- mysql
- key: app.kubernetes.io/instance
operator: In
values:
- test
topologyKey: "kubernetes.io/hostname"
containers:
- name: mysqld
image: quay.io/cybozu/mysql:8.0.26
resources:
limits:
cpu: "1"
memory: "1Gi"
securityContext:
fsGroup: 10000
volumeClaimTemplates:

metadata:
name: mysql-data
spec:
storageClassName: longhorn
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 1Gi

`apiVersion: moco.cybozu.com/v1beta1
kind: MySQLCluster
metadata:
namespace: moco
name: test
spec:
replicas is the number of mysqld Pods.  The default is 1.
replicas: 3
podTemplate:
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- mysql
- key: app.kubernetes.io/instance
operator: In
values:
- test
topologyKey: "kubernetes.io/hostname"
containers:
# At least a container named "mysqld" must be defined.
- name: mysqld
image: quay.io/cybozu/mysql:8.0.26
resources:
limits:
cpu: "1"
memory: "1Gi"
securityContext:
fsGroup: 10000
volumeClaimTemplates:
At least a PVC named "mysql-data" must be defined.

metadata:
name: mysql-data
spec:
storageClassName: longhorn
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 1Gi
`

@northboys Thanks.  I edited your text for readability.

Thanks.  I cannot find anything wrong with your YAML.  Sorry.

Is there a solution?

Unfortunately, I haven't used longhorn.  So I have no idea.

okay then, i use default storage and successful install

how to make this writable, I got an error like this
root@mitclusternode01:/home/mit/Kubernetes/Moco# kubectl moco -n enggano-system mysql -it -u moco-admin ha-mysql-moco
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 24
Server version: 8.0.26 Source distribution
Copyright (c) 2000, 2021, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create database engganoplatform;
ERROR 1290 (HY000): The MySQL server is running with the --super-read-only option so it cannot execute this statement
mysql>

What does kubectl get -n enggano-system mysqlcluster ha-mysql-moco output?

This is a closed issue.
If you want to continue the discussion, please use Discussions.


Adds hover highlighting to the selected features list

The behavior is the same as the hover highlighting in the relation members list, implemented in #5402.

Looks good, thanks! 👍


Unreal 5.1 release error

Unreal 5.1 just got releesed and SparseVolumetric (https://github.com/eidosmontreal/unreal-vdb/tree/5.1) now produce the following error.

Missing Modules
The following modules are missing or built with a different engine version:
VolumeImporter
VolumeSequencer
VolumeStreamer
VolumeRuntime
Engine modules cannot be compiled at runtime. Please build through your IDE.
ОК

Thanks, I'll update the precompiled package asap (probably today).

https://github.com/eidosmontreal/unreal-vdb/releases/tag/v0.6.2-5.1.0
Enjoy 🍾


docs: Automated Changelog Update for v5.0.1-beta3.1

copilot:all
Automated changes by create-pull-request GitHub action

🤖 Generated by lychee action
Summary

Status
Count

🔍 Total
2165

✅ Successful
489

⏳ Timeouts
0

🔀 Redirected
0

👻 Excluded
1670

❓ Unknown
0

🚫 Errors
4

Errors per input
Errors in docs/4.0/docs/examples/programming-languages/Quick installation of Java Apps.md

[504] https://start.spring.io/ | Failed: Network error: Gateway Timeout

Errors in frontend/desktop/README.md

[404] https://chakra-ui.com/getting-started | Failed: Network error: Not Found

Errors in docs/4.0/i18n/zh-Hans/examples/programming-languages/Quick installation of Java Apps.md

[504] https://start.spring.io/ | Failed: Network error: Gateway Timeout

Full action output
Full Github Actions output


BEC fixes

A collection of small fixes to BEC handling

Show warning on office when no BEC assigned
Add a state to the view object to allow sorting
Sort the BEC index so that types of BEC are grouped
Only show the deactivate warning once on the index page

Still to do

review content
write tests!

There were the following issues with your Pull Request

Commit: da49ba85ba96ec976ea68a5b40029450082d9028
Your subject line is longer than 50 characters

Guidelines are available at https://github.com/ministryofjustice/fr-staffapp

This message was auto-generated by https://gitcop.com

Hi @colinbruce
I have updated x4 warning messages. Outstanding copy changes:

All buttons should be sentence case, e.g. Update office rather than Update Office
couldn't see separate warning messages for staff / manager / admin views. I can provide this copy if necessary
Header for admin user when they are editing an office - couldn't see this in the YAML. Suggest separating the existing BEC name and the word 'Edit' - let's discuss :)

Do it.


add some files

Describe the bug
I know it's a readonly filesystem. But， is there any way to add some files to /usr/share/fonts/. :smiling_face_with_tear:
What did you expect to happen?
I expected to add some file to /usr/share/fonts/.
Output of rpm-ostree status
No response
Hardware
No response
Extra information or context
No response

I believe /usr/local/share/fonts/ is used for system wide fonts otherwise use ~/.local/share/fonts/.
They should both be writeable.

@zhouxingoddog312 use the 2 locations @PVermeer mentioned, everything in /usr/local is writable with sudo if you need it system-wide, otherwise use ~/.local/share/fonts/


how can i create new serviceaccount and role for kibana?

Chart version:
master branch
Kubernetes version:
1.16.8
Kubernetes provider: E.g. GKE (Google Kubernetes Engine)
Helm Version:
3.1.1
helm get release output
e.g. helm get elasticsearch (replace elasticsearch with the name of your helm release)
Be careful to obfuscate every secrets (credentials, token, public IP, ...) that could be visible in the output before copy-pasting.
If you find some secrets in plain text in helm get release output you should use Kubernetes Secrets to managed them is a secure way (see Security Example).

Output of helm get release

Describe the bug:
Steps to reproduce:

Expected behavior:
Provide logs and/or server output (if relevant):
Be careful to obfuscate every secrets (credentials, token, public IP, ...) that could be visible in the output before copy-pasting

Any additional context:

Hi @ThePolarNight, currentlky Kibana chart doesn't allow yet to manage service account and roles like the other charts. Are you interested to contribute with a PR?


Allow configuration of WorldQuery with runtime values

Objective
Sometimes it is useful to query for types where the list of types is not known at runtime, e.g. for scripting. This can be done either by implementing all of the query machinery from scratch (see bevy_ecs_dynamic), or by extending bevy_ecs to handle these use-cases. This PR is an attempt to to the latter, my allowing arbitrary configuration of world query types.
This solution is an alternative to #6240, attempting to provide a safe to use and less error prone API.
Solution

introduce a Config associated type to WorldQuery

this is () for current query types &T, &mut T, Q::Config for Option<Q> and (A::Config, B::Config, ..) for (A, B, ..)

Make QueryState::new require Q::Config: Default and F::Config: Default. This propagates quite far, to world.query, Query: SystemParam and ExtractComponentPlugin
implement WorldQuery for Ptr and PtrMut with a Config = ComponentId, yielding Ptr and MutUntyped
implement WorldQuery for Vec<Q> with <Vec<Q> as WorldQuery>::Config = Vec<Q::Config>

This allows the following:
let component_id_1 = world.init_component::<TestComponent>();
let component_id_2 = world.init_component::<TestComponent2>();

world.spawn((TestComponent(num_1), TestComponent2(num_2)));

let mut query_state = QueryState::<(Entity, Vec<Ptr<'_>>), ()>::new_with_config(
    &mut world,
    ((), vec![component_id_1, component_id_2]), // entity configuration () and vec configuration
    (), // no filter config
);

let results = query_state.iter(&world); // returns one element of (entity, vec![ptr_1, ptr_2])

TODOS:

add untyped pendants to filter types
decide how to handle #[derive(WorldQuery)]

current impl: it generates Default::default so only works with "classical" world queries
solution proposal 1: use a config type (Config_Field1, Config_Field)
solution proposal 2: generate a mirror type with the same fields but of the respective config type

decide if the added : Default bounds are too annoying for general usage or if they regress compilation errors

if we were to use WorldQuery<Config = ()> instead things would be better, but this would not allow us to reuse (A, B, C) with configuration
maybe associated type bounds would help, but they are unstable (WorldQuery<Config: Default>)

implement WorldQuery for &dyn Reflect and &mut dyn Reflect with Config = TypeId yielding &dyn Reflect and Mut<dyn Reflect>
implement WorldQuery for smallvec and possibly other aggregation types

Changelog
To be written

One test case that I would like to see implemented here is QueryState<(Entity, Vec<Ptr>), _>.
I like this PR in that it allows each WorldQuery to rely on the output of init_state to be returned.
I do believe that it results in a situation where you don't know whether init_state config has correct input or whether it needs to be inferred otherwise, but this is certainly an added layer of safety.
The added type complexity and additional considerations that need to be made all over the codebase appear as large drawbacks of this approach since this is a rather niche feature.

Since this PR also implements dynamic world queries, I'll leave the alternative world query implementations for #6240 here: https://github.com/Suficio/bevy_js_prototype/pull/20

I want to implement scripting into my bevy application, so this PR would be great to have merged! What is missing to get this approved?

Resolved by #9774.


Mim properties

changed induced polarization for eastern creek volcanics from high to low

@fourndo : can you take a look at this pr ? the changes may no longer be relevant?

@fourndo : can you take a look at this pr ? the changes may no longer be relevant?

@lheagy The EC Volanics sit at "none" for chargeability in Master. W no longer need this pull request.

Thanks @krisdavis. This one does change the title from "Induced polarization" to "chargeability" which I think is a better descriptor in this case. Up to you if you would like to merge

The new pull request for the interpretation also changes the property to chargeability, so this pr is out-of-date and no longer needed.


Feature/add grpc support/sdk 44

Looks good! @osherv
Posted some comments, let's talk about the context param on the server side


Install problems

Hello, I'm an nobody....
I have downloaded VBA_Web opens blank.xlsm, then Installer.xlsm and ckick to Install/Update.
Then I get an Error Message: 1004, We are unable to find object ''.
Can one help me?

Hi @RainerHH I recommend downloading the entire release zip, unzipping, and then running the installer. The installer looks for the files in the src directory and will fail if they are not found. If you try that and it still doesn't work, please let me know.


remove variable view experiement and enable along with native notebook

Just breaking up the test work bits that are independent into smaller PRs

[ ] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR).
[ ] Title summarizes what is changing.
[ ] Has a news entry file (remember to thank yourself!).
[ ] Appropriate comments and documentation strings in the code.
[ ] Has sufficient logging.
[ ] Has telemetry for enhancements.
[ ] Unit tests & system/integration tests are added/updated.
[ ] Test plan is updated as appropriate.
[ ] package-lock.json has been regenerated by running npm install (if dependencies have changed).

TypeError: this.extensionContext.subscriptions.push is not a function

Bleh, functional tests failing on this. Looks like I might need to mock something else out for the variableViewActivationService.

TypeError: this.extensionContext.subscriptions.push is not a function

Bleh, functional tests failing on this. Looks like I might need to mock something else out for the variableViewActivationService.

Only java kernel failure so merging.

Only java kernel failure so merging.


Bugfix. Line: add chart padding to have visual elements outside of the values plot area within visible chart size.

The commit do not completely solve the bug. Because of line width (stroke-width) line still cuted in scale's min and max values, but it never goes beyond min and max.
Analogous problem discussion we can find here. Using of nice will solve the problem completely, but i don't know how it will be work in composite charts.

Padding is incorrect
When we set the margin bottom in config, we get the bottom indent more than necessary
The line starts not from the point 0,0 when we have data {x:0, y:0}
when we have  different types of chart (Line and Area) that's noticeable


Add missing placeholder

Purpose of the pull request

Add missing placeholder in KubernetesApplicationManager.

Brief change log

Verify this pull request

This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:

(or)
If your pull request contain incompatible change, you should also add it to docs/docs/en/guide/upgrede/incompatible.md

Codecov Report

Merging #13663 (34dc1e1) into dev (6516240) will decrease coverage by 0.01%.
The diff coverage is 61.01%.

:exclamation: Current head 34dc1e1 differs from pull request most recent head a105def. Consider uploading reports for the commit a105def to get more accurate results

@@             Coverage Diff              @@
##                dev   #13663      +/-   ##
============================================
- Coverage     39.06%   39.06%   -0.01%
+ Complexity     4422     4402      -20
============================================
  Files          1127     1129       +2
  Lines         42096    42087       -9
  Branches       4775     4756      -19
============================================
- Hits          16444    16440       -4
+ Misses        23836    23834       -2
+ Partials       1816     1813       -3

Impacted Files
Coverage Δ

...duler/plugin/task/api/AbstractCommandExecutor.java
0.00% <0.00%> (ø)

...ugin/task/api/am/KubernetesApplicationManager.java
0.00% <0.00%> (ø)

...e/dolphinscheduler/server/worker/WorkerServer.java
0.00% <ø> (ø)

...duler/server/worker/log/TaskInstanceLogHeader.java
0.00% <0.00%> (ø)

...server/worker/processor/TaskDispatchProcessor.java
64.10% <0.00%> (ø)

...heduler/server/worker/runner/TaskCallbackImpl.java
0.00% <ø> (ø)

...erver/worker/runner/WorkerTaskExecuteRunnable.java
36.80% <25.00%> (-0.54%)
:arrow_down:

...lphinscheduler/plugin/task/api/utils/LogUtils.java
26.96% <55.55%> (ø)

...lphinscheduler/data/quality/utils/ParserUtils.java
86.66% <86.66%> (ø)

...permission/ResourcePermissionCheckServiceImpl.java
98.46% <100.00%> (+24.61%)
:arrow_up:

... and 33 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Changing footer text

Current Footer:
All Material Copyright © 2005–2015 Association for the Advancement of Sustainability in Higher Education. AASHE reserves the right to control the reproduction and use of all material posted on this website.
2401 Walnut Street Suite 102 Philadelphia, PA 19103 - t/f:<PHONE_NUMBER>. For problems or questions about this site please contact the webmaster — Privacy Policy
We would like to remove the language "problems or".
We would like to change the line breaks, so each line starts as follows:

All Material Copyright...
AASHE reserves the right to...
2401 Walnut Street...
For questions about the site, please contact...

FYI, the we recommend removing the words "problems or" from the line, "For problems or questions about this site..." across all AASHE websites - since this indicates that we expect problems.


RazorEngine 3.7.0 works with unit test but not from web api

I have a class library(Package) in which I have some RazorEngine 3.7.0 code which parses a template.
When I invoke the Parse() method on the library from a unit test, it works, but when I call it from a web API, I get the error "Could not load file or assembly 'System.Web.Razor, Version=<IP_ADDRESS>."
Not sure why this is happening.
I have uploaded the code sample to this repo:
https://github.com/girish-a/try

The unit test is working and the webproject opens a browser with "HTTP Error 404.0 - Not Found" for me.

can you try to use the latest https://www.nuget.org/packages/RazorEngine/4.2.0-beta3 ?

Installing 4.2.0-beta3 did it! It works now from the API as well. Thanks!!!
But if you need to repro the issue in 3.7.0, please do the following:

Set the startup project to TemplateManagement.Core.Api.
From the list of web servers in VS 2015, select "Web"
Press F5 - As you said, a browser instance with Http 404 appears. But along with that, you should see a console for the web server which says "Started". The configured command in the project.json command is Microsoft.AspNet.Hosting, so you will see the console window.
From a testing tool (I use Postman - you can get it from Chrome Extensions), send a Http POST request to http://localhost:5000/api/razor/  (You can add a breakpoint to the Post method of the RazorController class).

You should be able to see the error mentioned above ("Could not load file or assembly 'System.Web.Razor, Version=<IP_ADDRESS>.")


[FEATURE] support for tinylog

could you please add the @Tinylog annotation for the logging framework tinylog
https://tinylog.org/v2/

Duplicate of #2213

It would help if you could explain what you mean by "support".
If you would have a plain Java example what you would need to type of you're using Tinylog, and have a the same example using a @TinyLog annotation, we could see if the amount of boilerplate removed would warrant a separate annotation.
From reading the Tinylog documentation, my impression was that we wouldn't remove any (significant) boilerplate.


changes to get ready to publish on pypi

:white_check_mark: Build SMT 0.1.254 completed (commit https://github.com/SMTorg/SMT/commit/3c71607f50 by @hwangjt)

I think you need to modify the MANIFEST.in file

:white_check_mark: Build SMT 0.1.255 completed (commit https://github.com/SMTorg/SMT/commit/9c3d5d4750 by @hwangjt)


Play tracks from filesystem using RNFetchBlob.fs.dirs.DocumentDir

Hi, thank you for the hard work! The project looks amazing.
I tried to download a track (using fetch-blob) and play it.
It can play from the url but not from the file in the IOS simulator
Any advice for the use case? I would like to download and play audio offline.
componentDidMount() {
    const dirs = RNFetchBlob.fs.dirs.DocumentDir
    let file_url = `https://elio.mobi/media/filer_public/03/35/0335c133-6fca-40a4-bb04-5fa0810dd38c/mountain_of_anxiety_2.mp3`
    let file_path = `${dirs}/player-offline-sample.mp3`
    console.log(`Ready to download to ${file_path}`)
    RNFetchBlob.config({ path : file_path}).fetch('GET', file_url, {}).then(
      (res) => {
        console.log(`File downloaded to ${file_path}`);
        TrackPlayer.setupPlayer().then(() => {
          let track = { id:'try', url:file_path,title:"try artist",artist:"artist"}
          TrackPlayer.add([track]).then(function() {
            console.log("Track Added Created")
            TrackPlayer.play()
          });
        })

      }).catch(function(error) {
    console.log(error);
    });
    }

Everything works just prefixing the uri with
url:file://${file_path}``

Yes, you actually need to prepend file:/// to play any file in both platforms. A few other methods might work, but this is the recommended solution

And I want from app's files folder.
file:///storage/emulated/0/Android/data/com.myproject/files/audios/myaudio.mp3
How??
I am doing by
url:"file:///storage/emulated/0/Android/data/com.myproject/files/audios/myaudio.mp3".
Also Tried
url:"file:///" + RNFB.fs.dirs.DocumentDir + "/myaudio.mp3",


add "turn off screen" system command

Description of the new feature / enhancement
I like the system commands from power toys run. it would be a nice addition to be able to turn off the screen with a command
Scenario when this would be used?
when I have to leave my laptop on over night to do some heavy calculations/simulations/renderings it would be nice to just type this command and be able to turn off the screen without having to change the turn off time in the settings.
Supporting information
No response

Why doesn’t just using awake and lock your computer work?

/needinfo

I need to test if setting "Awake → Keep awake temporarily → 30 min" does override my Windows setting "Power and Sleep → Screen → When plugged in, turn off after → never". But in general with my Windows setting for the screen timeout, locking the screen wouldn't turn it off.

Bump. For me, it's useful when I'm listening to something that doesn't need the screen to be on, but needs the computer to be on. This utility is different from Awake, Spotify already prevents the PC from sleeping, it'd be nice to have an easy command to just turn screen off.


Enhancement download Oracle JVM

I will create a pul request for this later, but the following will download the Oracle JVM with curl.
curl -L -O -H "Cookie: oraclelicense=accept-securebackup-cookie" -k "http://download.oracle.com/otn-pub/java/jdk/8u65-b17/server-jre-8u65-linux-x64.tar.gz"

While it would be handy I'm going to close this issue, because I'm not sure about legal implications of doing this.
You can use the OpenJDK that ships with Ubuntu instead of downloading the Oracle JVM, this has the advantage of the OS updating it using apt-get.


crypto_common: decrypt v2 data blocks, and option for encrypting

This changes the cryptoPure block-related interfaces to pass in the TLF crypt key and block server half explicitly, so that CryptoCommon can make a decision about the right way to construct the block key and encrypt/decrypt the data.  With this commit, clients are able to understand v2 blocks.
This also adds an option to CryptoCommon for encrypting the data in the new format, though it's off by default except in select tests.  A future commit will wire the option to a command line argument.
It also adds a new 02 prefix for block ID hashes, and ensures that any v2-encrypted blocks use one of these new ID hashes.  This will make it easier in the future for the block server to quickly recognize to policy which blocks are using the new scheme, without decoding the block's buffer into a struct.
Issue: KBFS-3458

@akalin-keybase does this look ok, given that #1844 is coming later?


Using non-computable constants in reflected terms fails due to check for meta definitions

The following definitions fails. Is this an inherent problem how reflection works, or is it possible to work around it? Is it possible to ignore reflected when checking computability?
/- using non-computable function -/
constant c : ℕ
meta def t : expr := `(c)

I started to investigate the problem, and I found another problem with the reflected approach.
At runtime,
`(t)

evaluates t. For example, the quotation for (fib 1000000) will evaluate it and throw the result away. Here is an extreme example:
meta def loop : nat → nat
| n := loop n

meta def tst : expr := `(loop 1)

#eval tst -- loops

I fixed the problem described in the previous comment.
The original issue was not fixed.
We need to refine the noncomputable check.

Using inline is a nice hack, but I get the feeling we would need something like erasure annotations on parameters for a full fix. I'm ready to change `() back to expr to solve this particular problem, but it does sound like an issue that may be reoccurring in the future.

@kha We should not implement erasure annotations right now. We want to refactor the code generator to be able to generate efficient native code. We will need a new representation for builtin procedures.


Replace macros with codegen - POC/WIP

This PR introduces a work-in-progress compiler plugin (not an sbt plugin) to generate "managed" sources from the @service definitions (here @serviceCodegen, to preserve the originals) without using macros but by reusing most of the existing macro implementation. Note that this requires a 2-subproject setup so that the app's compilation can see the sources generated by the protocol's compilation. This is shown in example/codegen.
Please refer to #631 for the rationale behind this and the pros & cons of this approach.
How it works: Compiling example/codegen/app should trigger compilation of example/codegen/protocol which will generate the object in the protocol module's target/scala-2.12/src_managed for the app module to refer to. The generator is in the common module's ServiceGenerator.scala and basically wraps a modified copy of the internal module's serviceImpl inside a compiler plugin instead of a macro.
Note the following current limitations and remaining TODOs:

The compiler plugin resides in the common project (where the protocol keywords are) instead of depending on it, because of the limitations described in https://github.com/sbt/sbt/issues/2255. We should move it to a different module and implement a workaround based on sbt-assembly.
The new annotation is temporarily called @serviceCodegen to preserve the existing @service macro's functionality; the goal if we adopt this approach is to replace the @service implementation.
The generated object is simply called ${service}Object and contains everything the macro currently generates in the service companion; we'll want to split this into client and server classes for better readability.
The generated object is in a hardcoded example/codegen package to match the example modules, but we'll change it to the actual service's package.
The generated object doesn't have the imports of the service trait; we'll need to add them to the generated source.
The example module doesn't do anything with the generated object except confirm that it can see it; we'll want to add interesting service methods and call them.

Comments, questions and ideas welcome!

Probably, we'll want to provide the compiler plugin automatically when you are including the sbt-mu-idl-gen sbt plugin in the project. Would it make sense?

The compiler plugin processes the @service annotation and as such would be part of the core functionality of Mu just as the macro is today, so its module should always be imported by developers whether or not they're using IDL generation.

Note that the CI build is failing because the generated sources are either not created by the example protocol or not seen by the example app. It Works on my Machine (™) so I'll investigate what happened there.

@L-Lavigne CI is failing because you need to project example-codegen-app and compile.

@L-Lavigne CI is failing because you need to project example-codegen-app and compile.

That should be triggered by the root project's compile though, and it should trigger compilation of example-codegen-protocol which uses the plugin to generate the service object. I do see this project compiling here: https://travis-ci.org/higherkindness/mu/jobs/567183204#L968, and it seems like it's either not using the plugin, or the example-codegen-app compilation isn't adding the protocol's generated sources.
Still not sure why this is the case. Locally it works although I do recall needing a full project re-import in IDEA at some point. I don't see previous build state being much of an issue for CI though.

This doesn't compile for me when using sbt console and running example-codegen-app/compile for the first time or after clean. For the second time it compiles without errors.
The reason is that the task at https://github.com/higherkindness/mu/pull/632/files#diff-fdc3abdfd754eeb24090dbd90aeec2ceR496 is evaluated before the plugin generates ExampleServiceObject.scala. You can see this, if you use:
Compile/sourceGenerators += Def.task {
      val files = ((`example-codegen-protocol` / Compile / sourceManaged).value ** "*.scala").get
      println("FILES: " + files.mkString(", "))
      files
}

The list of files is empty and is printed before the compilation of example-codegen-protocol.
The example works fine this way:
Compile/sourceGenerators += Def.sequential(
    `example-codegen-protocol` / Compile / compile,
    Def.task(((`example-codegen-protocol` / Compile / sourceManaged).value ** "*.scala").get)
)

But it doesn't seem to be a good solution.

Closing. We did end up going with srcgen, but not quite like this.


fix NPE

@eddi-weiss , thanks for detecting this issue.
Could you please sign JFrog's CLA so that I can merge your fix?
You can do that through this link:
http://www.jfrog.com/confluence/display/OSS/How+to+Contribute

Hi,
I signed JFrog's CLA.

@eddi-weiss , looks like @shikloshi has already committed
the same fix, so I think this once can be closed.