NaMaster gives biased Cl values when including a star mask

Hi there,
I'm trying to use the NaMaster code to benchmark the performance of the Pseudo-Cl estimator against the Quadratic Maximum Likelihood estimator for upcoming weak lensing surveys.
One of the aspects that I'm looking at is how the two estimators react to the presence of a star mask, in addition to the main galactic & ecliptic cuts as expected from a space-based observatory.
First, here is the main mask that one could expect for such an observatory.

On top of this, I then include a star mask that was built using the prescription for an Euclid-like survey as described in Appendix A of ArXiV: 2010.07376, which gives my mask to be

To benchmark the estimators, I generate an ensemble of 2,500 maps using a standard ΛCDM cosmology (at a resolution of Nside of 256), add random shape noise in each pixel, and then recover the power spectrum of the maps using the with and without stars masks, without any apodisation.
While NaMaster is able to perfectly recover the EE and BB spectrum for the mask without stars, it seems that for high ell values, the maps where I have applied the with-stars mask the Cl values are biased high (see plots below).

Given that you have included stars in your demonstration paper of ArXiv: 1809.09603 without issue (see Fig. 3), I am wondering what I might be doing wrong when including stars in my own analysis. Any advice would be much appreciated!
Many thanks for your time.

Hi @AlexMaraio
In order to interpret these, what kind of Nside did you use for these plots?
Note that, when comparing with a theory prediction, you should convolve that theory prediction with the bandpower window functions (you can do that e.g. via C_binned = w.decouple_cell(w.couple_cell(C_unbinned)), where C_unbinned is the un-binned theory power spectrum. This can be quite important when looking at complicated masks.

Thanks for the quick response @damonge, these plots are for an N_side of 256 - and I plot the ell range from ell = 2 to ell = 512 for reference.
For these plots, I am not using binned band-powers (or equivalently I am using band powers with only one ell mode per bin) and so I just got back my original un-binned theory spectrum when computing C_binned via your suggested code. This is to compare like-for-like with QML.
I have just attempted to re-run my simulations implementing binning (with four ell-modes per bin) and I find the same bias being induced in the EE & BB Cl values, even when correcting the theory spectrum for the binning.
Again, any advice is much appreciated.
Thanks again.

ok, thanks.
That's a bit puzzling. Do you have a piece of code I could look into that shows how the sims are being generated and the power spectra calculated?

Yeah sure, here's a rough extract showing the computation of the theory Cl values using CCL, the generation of the maps using HealPy (including the addition of shape noise), and the recovery of the Cl values using NaMaster.
ells = np.arange(0, 3 * n_side)
redshift_range = np.linspace(0.0, 3.0, 500)
dNdz = stats.norm.pdf(redshift_range, loc=1.0, scale=0.15)

cosmo = ccl.Cosmology(**{'h': 0.7, 'Omega_c': 0.27, 'Omega_b': 0.045, 'sigma8': 0.75, 'n_s': 0.96, 'm_nu': 0.0, 'T_CMB': 2.7255, 'w0': -1.0, 'wa': 0.0})

# Create E field, and compute EE Cl values
field_E = ccl.WeakLensingTracer(cosmo, dndz=(redshift_range, dNdz))
cl_ee = ccl.angular_cl(cosmo, field_E, field_E, ells)

cl_ee[:2] = 0.0
cl_eb = np.zeros_like(cl_ee)
cl_bb = np.zeros_like(cl_ee)

# Compute mode coupling matrix for mask once
bins = nmt.NmtBin.from_nside_linear(n_side, ells_per_bin)
field_tmp = nmt.NmtField(mask, None, spin=2)
workspace = nmt.NmtWorkspace()
workspace.compute_coupling_matrix(field_tmp, field_tmp, bins)

# Note, the below is done many times
for _ in range(n_sim):
    # Generate signal maps
    alm_E, alm_B = hp.synalm([cl_ee, cl_bb, cl_eb], lmax=3 * n_side - 1, new=True)
    map_Q, map_U = hp.alm2map_spin([alm_E, alm_B], n_side, 2, 3 * n_side - 1)

    # Generate random shape noise maps - then add noise to maps
    noise_Q = np.random.normal(loc=0, scale=noise_std, size=12 * n_side ** 2)
    noise_U = np.random.normal(loc=0, scale=noise_std, size=12 * n_side ** 2)

    map_Q += noise_Q
    map_U += noise_U

    # NaMaster Cl computation
    fields = nmt.NmtField(mask, [map_Q, map_U])
    cl_coupled = nmt.compute_coupled_cell(fields, fields)
    Cl_EE, Cl_EB, Cl_BE, Cl_BB = workspace.decouple_cell(cl_coupled)

If you want more detail in the code, do let me know.

Thanks again for your detailed comments.
I decided to jump straight into the case where I don't add any shape noise, and unfortunately I'm still seeing a bias in the Cl values. Interestingly enough, it seems that the Cl-EE values start to diverge almost exactly at ell = N_side, as highlighted with the dashed orange line in the plot below. Not sure what to make of this, as I was under the impression that the Pseudo-Cl's are reliable to at least ell of 2 * N_side.
Is there any way to increase the accuracy of the calculations within NaMaster, as perhaps the small-scale nature of the star mask is introducing errors here?

Will try at a larger resolution of N_side = 1024 now, do you think this is sufficiently accurate?
To generate the star mask, I'm using the GenStarMask utility as provided by the Flask code, described in Section 3.2.2 of the manual.
This is an executable which takes in six arguments: a random seed, the N_side resolution, minimum angular radius for the stars (in arc-mins), maximum angular radius for the stars (again in arc-mins), the sky fraction to be covered by the stars, and an output file name. This basically randomly samples a radius from the given range and then distributes it homogeneously on the sky until the requested sky fraction is achieved.
As I've said, I'm using numbers for a Euclid-like survey as given in 2010.07376, so using minimum and maximum stellar radii of 0.29' and 8.79', respectively, and an f_sky of 20%. This star mask is then superimposed on my existing cuts, which are simply generated using HealPy.
Do let me know if you want any more information, I will update this once I've got data for the increased resolution (make take some time!). Thanks again!

OK, thanks a lot. I think 1024 should be enough. Let me know how that turns out!

@damonge Results for my run at N_side of 1024 are in, and it seems to show the same scaling behaviour, just shifted to larger ell values:

OK, interesting. We did not observe this when e.g. analysing realistic HSC data. Perhaps the reason is partly that the mask in practice is not just binary, but actually proportional to the total number of sources in each pixel (or rather the sum of weights), which should reduce the large-ell power of the mask (this is just a guess). It is good to know that this scales with Nside, so that (going to higher Nside) is a possible solution in your case.
One last thing you could try is the following: can you rerun this last test but using n_iter=0 when creating the NmtFields? We have (empirically) found this to improve the behaviour at high-ell for shear-like datasets, with the added advantage that it is also faster than the default.

Thanks for the suggestion for using n_iter = 0, however it doesn't seem to change anything in my situation:

Yes I think the practical solution here is to go to double the resolution and then recover the Pseudo-Cl values up to just l_max = n_side which should give me accurate results to compare to QML with.
Thanks again for the help!

OK, thanks a lot. I find that surprising, but as I said before it may be due to the choice of mask. It might be worth checking if things change for Nside=1024. I'm glad there's at least a solution.
I'll close this for now, but let me know if you have any other questions and I can reopen.


Refactor gateways (redundancy) tests

The GatewayFailOver and GatewayPodRestart tests are part of the "redundancy" tests group.
The "gateways" tests implementation allows execution of the tests only on kind environment and could not be executed on real OCP environments.
As discussed in the following threads [1] [2]:
Existing "gateway-failover" test is not a real scenario.
In the existing scenario, the gateway node that should be failed, only removes the "submariner.io/gateway: "true"" label from the node and then starts a new gateway node.
This will not work in the real environment because of the following:

The remove of the label will not work, because the MachineSet of the cluster will set the label back at the same moment.
The MachineSet is responsible for keeping the gateway node in the same condition state.
Creation of the pure new gateway node will not work as well, because the ports for the new gateway node will not be opened and as a result the gateway node will remain unreachable.

Due to the above, the following changes should be done as part of the refactoring:

The "gateway-failover" test will require 2 gateway nodes existing in the cluster to be executed.
This is a more customer related scenario.
The kind testing environment should reflect the changes and be able to continue "gateway-failover" test after the refactoring.
While in the kind environment, the failover process will remain the same, in the real k8s/OCP env, we need to crash the gateway node in order to perform a real failover. Crashing the gateway node is another way to properly test the failover scenario.
Adapt if required other redundancy tests to meet the refactoring.

[1] - https://coreos.slack.com/archives/C0134E73VH6/p1654177190977899
[2] - https://coreos.slack.com/archives/C0134E73VH6/p1660056801840349

Duplicate of - https://github.com/submariner-io/submariner/issues/2013
Opened in a wrong repo.


Anything new?

there will be such plugins as copying other people's inventories?
Edit: i'm very bad at english

What?

Plugins are meant to be user-created extensions of the client.

But will you do this as in client?

There will be things added to the client, but I have no plans to add "copying other people's inventories"


Add CONTRIBUTING.md

It would be nice to have a CONTRIBUTING.md in order to know how to best contribute to the project.

Cool… What would you add there, I mean… what's missing? The most obvious questions are already documented IMHO: how to install (README.md) and in which areas we need help (Issues). What else could we write on the CONTRIBUTING.md? Would you mind drafting something, an outline for example?

I was thinking more about it and it makes sense that we don't need it. I don't actually have questions about how to contribute but I am facing some issues on running the project with docker. Maybe if we detail more the issues that can happen, right now for example when I try to access localhost:80 it's saying Elm is not defined.

@gomex helped me fix that issue and I am running the app now 💃


[C-Api] Tizen API guide

Update API description, fix design guide.

:memo: TAOS-CI Version: 1.5.20200925. Thank you for submitting PR #317. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://ci.nnstreamer.ai/.


Update README.md

The required package is a little less obvious on Fedora, so may be worth mentioning here.

@dhardy Thanks! Merged here: ab0c369f90e47fa0e2321d71b6595313bc540a2d.


node-sass build failure in 7.x

🐞 Bug report
Command

[x] update
[x] install

Is this a regression?
Yes, I believe this has been fixed before in 7.0 and even 7.1 as new versions of node-sass continually shatter as the packages hit the floor.
Description
both<EMAIL_ADDRESS>and<EMAIL_ADDRESS>fail to build its node-sass dependency when I try to ng update from 7.1.4 - or just try to npm install that version. The problem seems to be the versioning compatibility with my node version (13.5.0) and/or node-gyp version (6.0.1). It seems to be trying to install node-sass version 4.11.0, which fails.
I've confirmed that I can manually build node-sass version 4.12.x, so recommend switching to at least that version.
🔬 Minimal Reproduction

Have node version 13.5.0 and node-gyp 6.0.1
npm install --global @angular/cli@7

🔥 Exception or Error

g++ command and errors/output

g++ '-DNODE_GYP_MODULE_NAME=binding' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/MY_HOME_DIR/.node-gyp/13.5.0/include/node -I/home/MY_HOME_DIR/.node-gyp/13.5.0/src -I/home/MY_HOME_DIR/.node-gyp/13.5.0/deps/openssl/config -I/home/MY_HOME_DIR/.node-gyp/13.5.0/deps/openssl/openssl/include -I/home/MY_HOME_DIR/.node-gyp/13.5.0/deps/uv/include -I/home/MY_HOME_DIR/.node-gyp/13.5.0/deps/zlib -I/home/MY_HOME_DIR/.node-gyp/13.5.0/deps/v8/include -I../../../../../nan -I../src/libsass/include  -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++1y -std=c++0x -MMD -MF ./Release/.deps/Release/obj.target/binding/src/binding.o.d.raw   -c -o Release/obj.target/binding/src/binding.o ../src/binding.cpp
In file included from ../../../../../nan/nan_converters.h:67,
                 from ../../../../../nan/nan.h:222,
                 from ../src/binding.cpp:1:
../../../../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ToFactoryBase::return_t Nan::imp::ToFactory::convert(v8::Local)’:
../../../../../nan/nan_converters_43_inl.h:18:49: error: cannot convert ‘v8::Local’ to ‘v8::Isolate*’
   18 |       val->To ## TYPE(isolate->GetCurrentContext())                            \
      |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~^~
      |                                                 |
      |                                                 v8::Local
../../../../../nan/nan_converters_43_inl.h:22:1: note: in expansion of macro ‘X’
   22 | X(Boolean)
      | ^
In file included from /home/MY_HOME_DIR/.node-gyp/13.5.0/include/node/node.h:63,
                 from ../../../../../nan/nan.h:53,
                 from ../src/binding.cpp:1:
/home/MY_HOME_DIR/.node-gyp/13.5.0/include/node/v8.h:2762:37: note:   initializing argument 1 of ‘v8::Local v8::Value::ToBoolean(v8::Isolate*) const’
 2762 |   Local ToBoolean(Isolate* isolate) const;
      |                            ~~~~~~~~~^~~~~~~
In file included from ../../../../../nan/nan_converters.h:67,
                 from ../../../../../nan/nan.h:222,
                 from ../src/binding.cpp:1:
../../../../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ValueFactoryBase::return_t Nan::imp::ToFactory::convert(v8::Local)’:
../../../../../nan/nan_converters_43_inl.h:37:55: error: cannot convert ‘v8::Local’ to ‘v8::Isolate*’
   37 |   return val->NAME ## Value(isolate->GetCurrentContext());                     \
      |                             ~~~~~~~~~~~~~~~~~~~~~~~~~~^~
      |                                                       |
      |                                                       v8::Local
../../../../../nan/nan_converters_43_inl.h:40:1: note: in expansion of macro ‘X’
   40 | X(bool, Boolean)
      | ^
In file included from /home/MY_HOME_DIR/.node-gyp/13.5.0/include/node/node.h:63,
                 from ../../../../../nan/nan.h:53,
                 from ../src/binding.cpp:1:
/home/MY_HOME_DIR/.node-gyp/13.5.0/include/node/v8.h:2771:30: note:   initializing argument 1 of ‘bool v8::Value::BooleanValue(v8::Isolate*) const’
 2771 |   bool BooleanValue(Isolate* isolate) const;
      |                     ~~~~~~~~~^~~~~~~
In file included from ../../../../../nan/nan_new.h:189,
                 from ../../../../../nan/nan.h:223,
                 from ../src/binding.cpp:1:
../../../../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase::return_t Nan::imp::Factory::New(v8::Local)’:
../../../../../nan/nan_implementation_12_inl.h:356:37: error: no matching function for call to ‘v8::StringObject::New(v8::Local&)’
  356 |   return v8::StringObject::New(value).As();
      |                                     ^
In file included from /home/MY_HOME_DIR/.node-gyp/13.5.0/include/node/node.h:63,
                 from ../../../../../nan/nan.h:53,
                 from ../src/binding.cpp:1:
/home/MY_HOME_DIR/.node-gyp/13.5.0/include/node/v8.h:5688:23: note: candidate: ‘static v8::Local v8::StringObject::New(v8::Isolate*, v8::Local)’
 5688 |   static Local New(Isolate* isolate, Local value);
      |                       ^~~
/home/MY_HOME_DIR/.node-gyp/13.5.0/include/node/v8.h:5688:23: note:   candidate expects 2 arguments, 1 provided
In file included from ../../../../../nan/nan_new.h:189,
                 from ../../../../../nan/nan.h:223,
                 from ../src/binding.cpp:1:
../../../../../nan/nan_implementation_12_inl.h:356:58: error: expected primary-expression before ‘>’ token
  356 |   return v8::StringObject::New(value).As();
      |                                                          ^
../../../../../nan/nan_implementation_12_inl.h:356:60: error: expected primary-expression before ‘)’ token
  356 |   return v8::StringObject::New(value).As();
      |                                                            ^
In file included from ../src/binding.cpp:1:
../../../../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
../../../../../nan/nan.h:2232:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
 2232 |     , reinterpret_cast(AsyncExecuteComplete)
      |                                                              ^
In file included from /usr/include/c++/9.2.0/cassert:44,
                 from /home/MY_HOME_DIR/.node-gyp/13.5.0/include/node/node_object_wrap.h:26,
                 from ../../../../../nan/nan.h:55,
                 from ../src/binding.cpp:1:
../../../../../nan/nan_object_wrap.h: In destructor ‘virtual Nan::ObjectWrap::~ObjectWrap()’:
../../../../../nan/nan_object_wrap.h:24:25: error: ‘class Nan::Persistent’ has no member named ‘IsNearDeath’
   24 |     assert(persistent().IsNearDeath());
      |                         ^~~~~~~~~~~
../../../../../nan/nan_object_wrap.h: In static member function ‘static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfo&)’:
../../../../../nan/nan_object_wrap.h:127:26: error: ‘class Nan::Persistent’ has no member named ‘IsNearDeath’
  127 |     assert(wrap->handle_.IsNearDeath());
      |                          ^~~~~~~~~~~
../src/binding.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE render(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/binding.cpp:284:98: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
  284 |     int status = uv_queue_work(uv_default_loop(), &ctx_w->request, compile_it, (uv_after_work_cb)MakeCallback);
      |                                                                                ^~~~~~~~~~~~
../src/binding.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE render_file(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/binding.cpp:320:98: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
  320 |     int status = uv_queue_work(uv_default_loop(), &ctx_w->request, compile_it, (uv_after_work_cb)MakeCallback);
      |                                                                                ^~~~~~~~~~~~
In file included from ../../../../../nan/nan.h:53,
                 from ../src/binding.cpp:1:
../src/binding.cpp: At global scope:
/home/MY_HOME_DIR/.node-gyp/13.5.0/include/node/node.h:611:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local, v8::Local, void*)’} [-Wcast-function-type]
  611 |       (node::addon_register_func) (regfunc),                          \
      |                                           ^
/home/MY_HOME_DIR/.node-gyp/13.5.0/include/node/node.h:645:3: note: in expansion of macro ‘NODE_MODULE_X’
  645 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
      |   ^~~~~~~~~~~~~
../src/binding.cpp:358:1: note: in expansion of macro ‘NODE_MODULE’
  358 | NODE_MODULE(binding, RegisterModule);
      | ^~~~~~~~~~~
In file included from /home/MY_HOME_DIR/.node-gyp/13.5.0/include/node/node.h:63,
                 from ../../../../../nan/nan.h:53,
                 from ../src/binding.cpp:1:
/home/MY_HOME_DIR/.node-gyp/13.5.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P*, typename v8::WeakCallbackInfo::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo::Callback = void (*)(const v8::WeakCallbackInfo&)]’:
/home/MY_HOME_DIR/.node-gyp/13.5.0/include/node/node_object_wrap.h:84:78:   required from here
/home/MY_HOME_DIR/.node-gyp/13.5.0/include/node/v8.h:10400:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
10400 |                reinterpret_cast(callback), type);
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/MY_HOME_DIR/.node-gyp/13.5.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P*, typename v8::WeakCallbackInfo::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo::Callback = void (*)(const v8::WeakCallbackInfo&)]’:
../../../../../nan/nan_object_wrap.h:66:61:   required from here
/home/MY_HOME_DIR/.node-gyp/13.5.0/include/node/v8.h:10400:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
make: *** [binding.target.mk:125: Release/obj.target/binding/src/binding.o] Error 1
make: Leaving directory '/home/MY_HOME_DIR/path/to/my/project/node_modules/@angular-devkit/build-angular/node_modules/node-sass/build'

🌍 Your Environment

    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/

Angular CLI: 7.1.4
Node: 13.5.0
OS: linux x64
Angular: 7.2.16
... core

Package                             Version
-------------------------------------------------------------
@angular-devkit/architect           0.11.4
@angular-devkit/build-angular       0.13.6
@angular-devkit/build-optimizer     0.13.6
@angular-devkit/build-webpack       0.13.6
@angular-devkit/core                7.1.4
@angular-devkit/schematics          7.1.4
@angular/animations                 8.2.14
@angular/cli                        7.1.4
@angular/common                     8.2.14
@angular/compiler                   8.2.14
@angular/compiler-cli               8.2.14
@angular/forms                      8.2.14
@angular/http                       7.1.4
@angular/language-service           8.2.14
@angular/platform-browser           8.2.14
@angular/platform-browser-dynamic   8.2.14
@angular/platform-server            8.2.14
@angular/router                     8.2.14
@ngtools/webpack                    7.3.6
@schematics/angular                 7.1.4
@schematics/update                  0.11.4
rxjs                                6.5.4
typescript                          3.5.3
webpack                             4.29.0

^ this was run after I failed to update from 7.1.4 to 7.2.16 ^
Anything else relevant?
OS is Manjaro - up-to-date
npm version 6.13.4

Angular 7.x is currently under long-term support (LTS) and only receives critical fixes (essentially security fixes).  It also does not officially support Node.js 13.  Please consider updating to 8.x.  Version 8.x also no longer uses node-sass by default and will avoid the native compilation issue.
For information regarding an update from 7.x to 8.x, please see: https://update.angular.io

I have the same issue with ng update --to @angular/core@8.
Where can I find information on which versions of angular support which versions of Node?


How to use Drop Down widget with FIR Designer?

I'm not sure if it's a question or an enhancement.
In GNU Radio Companion, I can use a chooser widget to define the lower and upper frequencies of a FIR filter.
A chooser widget with id set to 'mode' has the following options:

LSB -> [-3000, -300]
USB -> [300, 3000]

Then I can use these options to define the lower and upper frequencies of a FIR filter by setting taps to
firdes.complex_band_pass(1, samp_rate, mode[0], mode[1], 100, firdes.WIN_HAMMING).
An example flow graph can be found at this link
Would it be possible to build something similar with Pothos?

Rather than a taps function (which theoretically could be added) there is a FIR designer block which emits taps and can be controlled with various widgets through the various slots. Example in this screen shot: https://github.com/pothosware/pothos-demos/wiki/Simple-FM-Demod#demodulation-chain

It's more or less what I'm trying to do. My problem is that I'd like to control two values (lower and upper frequencies) from one widget (Drop Down) and I don't see how to do it.
In GNU Radio Companion it's possible with lists and indexes (mode[0], mode[1], etc.). In Pothos, I've tried using Evaluator:

and I've got the following error message:
Pothos.Block.callSlot: Evaluator0[setMode]: Proxy Exception Message: Exception: EvalEnvironment::eval(mode__tmp__0): Undefined token "mode__tmp__0" found at position 0.

I see what you mean. I don't think the evaluator supports array slicing yet. :-(
But this may be just what you need. I added a setFrequencies() call to FIR designer which can support a list of frequencies. So install the master branch of pothos-comms and you should be able to connection the drop down directly to the designer: https://github.com/pothosware/pothos-comms/commit/80e248bfe2121e7d82f86b269badeb5164bcffa2

Thanks for this new function. It works great and is indeed what I need.


Standalone deriving needs all constructors in scope

Standalone deriving needs constructors. We probably will have to put standalone deriving into the same slice as the data type declaration.

Workaround in 04c8b0d31a60513997a21c686745da7038a52c92 (we put standalone deriving into the same slice as the type they are for)


Add tests for Java serializability

This fixes #45, cleans up some commented code, and adds Shrink instances for Json and some related types.

Current coverage is 55.99%

Merging #50 into master will not affect coverage as of 0dd361d

Powered by Codecov. Updated on successful CI builds.


Update View Transitions support for Safari 18.0

Safari 18.0 Beta adds View Transitions API support.
webkit.org release notes: https://webkit.org/blog/15443/news-from-wwdc24-webkit-in-safari-18-beta/#view-transitions
developer.apple.com release notes: https://developer.apple.com/documentation/safari-release-notes/safari-18-release-notes#CSS
I would bundle in the other Safari 18.0 updates into this PR, but this is my first PR on caniuse, so wanted to keep it simple.

This looks correct to me.

This looks correct to me.

Thanks for checking, Jen! I actually learned of Safari adding View Transitions support from your Mastodon toot!

Thanks!


Refactor request fetching

Request fetching (running through the middleware + app chain) should be cordoned off into a helper class, Miron::RequestRunner, or Miron::RequestFetcher. Miron::Request objects should be passed through to the call methods, and should replace the hash currently being used. Thinking that hash keys should be converted to methods on Miron::Request, but open to input about this. Thinking that the original env hash should still be available somewhere, if people like interacting with that more.

Closed via https://github.com/mironrb/miron/commit/fc0461a237f0f022d0a7edf5e1fee93582656210


The Language bar show invalid output

Describe the bug
If you attempt to change language in preference > basic without first clicking the save and apply button, then switch to another menu, such as preferences > advanced, and then back. The old language will be displayed in the Language bar with the selected language already applied.
To Reproduce
Steps to reproduce the behavior:

Go to preference > basic
Click on Language bar.
select arabica Language.
Go to preference > advanced.
Go back to preference > basic.
Scroll down to Language bar.
See error

Expected behavior
Only the right language will be displayed in the language bar; the language won't change until I press the save and apply button.
Screenshots

Environment (please complete the following information):

OS & Version: Windows
Version: Windows 11
Motrix Version: v1.6.11

Yes, it can only do that. After making changes, you can only press Save & Apply to make the settings take effect.


Warrant Requests Perms

Describe the feature
The perms page doesnt have any option for Warrants
So nobody can approve them it seems
No one with Courthouse permission can see them

Additional Context
No response

While I'm hear I was thinking wouldn't be better to put the Name Change Requests, Expungement Requests, Warrant Approval Requets on the Courthouse dashboard? Rather than in another section like it is now?

The perms page doesnt have any option for Warrants
So nobody can approve them it seems
No one with Courthouse permission can see them

This is located at LEO, you can simply search for warrants and it'll be listed.

While I'm hear I was thinking wouldn't be better to put the Name Change Requests, Expungement Requests, Warrant Approval Requets on the Courthouse dashboard? Rather than in another section like it is now?

These are in a different sections because the one at /courthouse are for the user to see, the ones at /admin/courthouse are for users with the respective permissions to manage the requests


getStatuses and getJobStatuses should be async

i am using bull board with bullmq pro. i tried upgrading bull-board to latest version but i run into an issue.
i am using base adapter to make the bullmq pro work with the bull board. but i cannot implement those 2 interfaces:

  override getStatuses(): ('completed' | 'active' | 'delayed' | 'failed' | 'paused' | 'prioritized' | 'latest' | 'waiting' | 'waiting-children')[] {
    throw new Error('Method not implemented.');
  }
  override getJobStatuses(): ('completed' | 'active' | 'delayed' | 'failed' | 'paused' | 'prioritized' | 'waiting' | 'waiting-children')[] {
    throw new Error('Method not implemented.');
  }

because those need to be promises. i need to get job count for each status first which is async method. would it be possible to change this to promise method instead?

Hi, I'm not sure what is the issue, these methods should return static list of supported statuses...
Is bullmq-pro is different from bullmq statuses?

I see. I thought it supposed to return statuses of all jobs. Sorry for the confusion.

Closing this, feel free reopen if needed


Fixes #353 and allows easier dev & prod environments

Fixes #353 and allows easier dev & prod environments by splitting dev-specific configuration into a separate docker-compose.

See also #1226 for the inspiration for this PR (thanks @EugenMayer).


[Improvement]: Improve Ballerina Profiler UI

Description
$title
We can do the following improvements.

Currently when we open the profiler output, it does not fit to the window size.

We need to fit the whole output to the window to see the overview without scrolling.
We can rename the tab to Ballerina flamegraph or just flamegraph.

The clear button is for clearing search. Need to rename to clear search or move it next to search.

Describe your problem(s)
No response
Describe your solution(s)
No response
Related area
-> Compilation
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response

Ballerina Profiler words are not aligned.

Closing this issue since the proposed improvements have been added with the PRs https://github.com/ballerina-platform/ballerina-lang/pull/41538 and https://github.com/ballerina-platform/ballerina-lang/pull/41823


NoClassDefFound exception when instantiating classes

I recently tried to use the 4.0.0-SNAPSHOT version with IntelliJ and Maven, but it throws a NoClassDefFound exception when I try and instantiate your classes. I've pretty much copy-and-pasted the dependency tags you put in the README. This is probably not the place to put this, but I couldn't find any email associated with you. I tried asking StackOverflow, assuming it was my problem, but they can't seem to find an answer. I was hoping you could help.
[My pom.xml] (http://pastebin.com/i7mJMZ7b)

Can you paste(bin) your stacktrace and the maven command line which causes your exception too?

My stacktrace:
Exception in thread "main" java.lang.NoClassDefFoundError: net/sourceforge/jwbf/core/actions/HttpActionClient
	at com.FactFinder.WikiParser.makeBot(WikiParser.java:22)
	at com.FactFinder.WikiParser.<init>(WikiParser.java:17)
	at com.FactFinder.App.main(App.java:15)
Caused by: java.lang.ClassNotFoundException: net.sourceforge.jwbf.core.actions.HttpActionClient
	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
	... 3 more

I was running package from IntelliJ, though I tried it with install just now and got the same error. I have cleaned the build directory multiple times, and it doesn't seem to affect anything.

hmm feels strange, your pom looks good.

I've created a new maven project in intellij
pasted you pom
everything is fine

... have you tried to reimport your maven project?

I have auto re-import set as the default in IntelliJ. I just forced a re-import and nothing has changed. I also made a fresh, new project, and I get the same error.

Have you tried the released version or an other artifact?

I tried 3.1.0, and it works, save a warning about missing Log4J, which I can deal with later. Unfortunately, I would like to use the features in 4.0.0, primarily the search class you have.

feels like a local maven problem. You can override this by installing the snapshot to your local repo.
git clone https://github.com/eldur/jwbf.git
cd jwbf
mvn clean install

During the clean install it complains about 3510 checkstyle errors, mainly anomalous line endings. Any way to just ignore those?

I found a switch to ignore the checkstyle warnings, and after the manual way you suggested, it finally works! Thanks for your help.


Add a 'browser' field to the package.json

This tells client-side code where to find the browser-specific entrypoint into the lib, while nodeJS can use the actual module.
Pull requests into cqm-models require the following. Submitter and reviewer should :white_check_mark: when done. For items that are not-applicable, note it's not-applicable ("N/A") and :white_check_mark:.
Submitter:

[x] This pull request describes why these changes were made.
[x] Internal ticket for this PR: https://jira.mitre.org/browse/TACO-35
[x] Internal ticket links to this PR
[x] Code diff has been done and been reviewed
[x] Tests are included and test edge cases N/A
[x] Tests have been run locally and pass N/A

Reviewer 1: Louis Ades
Name:

[x] Code is maintainable and reusable, reuses existing code and infrastructure where appropriate, and accomplishes the task’s purpose
[x] The tests appropriately test the new code, including edge cases
[x] You have tried to break the code

Reviewer 2:
Name:

[ ] Code is maintainable and reusable, reuses existing code and infrastructure where appropriate, and accomplishes the task’s purpose
[ ] The tests appropriately test the new code, including edge cases
[ ] You have tried to break the code

https://github.com/defunctzombie/package-browser-field-spec is where the browser field specification is, in case you're curious.


the content is blocked because it isn't signed by a valid security certificate

I have developed an addin for excel but i can't start then in my desktop excel, i get the error The content is blocked because it isn't signed by a valid security certificate.
I have my package.json with the following configuration because i have multiple development environments
{   "name": "rose-excel-addin",   "version": "4.0.3",   "scripts": {     "ng": "ng",     "startProd": "ng serve --ssl true --ssl-key /node_modules/browser-sync/certs/server.key --ssl-cert /node_modules/browser-sync/certs/server.crt --configuration=production",     "startQa": "ng serve --ssl true --ssl-key /node_modules/browser-sync/certs/server.key --ssl-cert /node_modules/browser-sync/certs/server.crt --configuration=qa",     "startLocal": "ng serve --ssl true --ssl-key /node_modules/browser-sync/certs/server.key --ssl-cert /node_modules/browser-sync/certs/server.crt",
i run this command npx office-addin-dev-certs install  as sugested where, but the error still hapend.
One note, everything works fine until a few months ago., but now I had to make a fix and it no longer works.

@AlexJerabek , @TCourtneyOwen Can you take a look at this?
Thanks.

Is this issue occurring on Mac? If so I think I know what the issue is and should be able to provide guidance to fix the problem.

@TCourtneyOwen no, is on windows 10. Excel 365 MSO(16.0.11929.20436) 32 bit

@Ssereno Can you please run the following command:
"npx office-addin-dev-certs verify"
If you see a message that 'You need to install certificates for trusted access to https://localhost.', then please run 'npx office-addin-dev-certs install'.  After running this command, you will be presented with a dialog asking if you want to install the dev-certs. Please note that this dialog can get hidden behind other windows, so if you don't see it right away, then minimize your other open windows.
After installing the new certs, please try your taskpane add-in again

@TCourtneyOwen thanks for the tip. I run the command and got the message "You have trusted access to https://localhost. -- Certificate: C:\Users\Sergio.Sereno.office-addin-dev-certs\localhost.crt -- Key: C:\Users\Sergio.Sereno.office-addin-dev-certs\localhost.key.", but i still get the message.
If i run the application on chrome i get the security warning message but it runs....in the excel task pane no....

@Ssereno just to clarify, when you browse to https://localhost:3000/taskpane.html, you receive the warning in Chrome that the certs aren't installed?  It seems to me that the certs may in fact be installed under %\users<user>.office-addin-dev-certs but were not registered or are expired.
Can you please try completely deleting the %\users<user>.office-addin-dev-cert folder, and then running 'npx office-addin-dev-certs install' again.  You should then see a dialog to un-register existing certs (which may be expired) and to register new certs.  You will need to say yes to to the dialogs, bearing in mind that the dialogs can get hidden behind other open windows

@TCourtneyOwen After do that the localhost in the browser works fine, open without the warning message, but a still get the same message in the excel.
PS: This can be caused by any security policy from our internal IT team?

I had the same problem and the cert reinstall solved this.
In the process I also updated everything (I was using Node.js 10 and installed yeowman and office-generator package two weeks ago).

I'm having the same issue. Even though I ran npx office-addin-dev-certs install, still the warning appears...

I have the exact same issue with Word add-in. Everything stopped working after windows and office updates... certificate install/uninstall did not work.

@TCourtneyOwen Any update on this? Thx.

I got the same error today.
I delete all files from %\users.office-addin-dev-cert folder, then run npx office-addin-dev-certs install, it fixed issue for me.

This issue looks pretty old, and @xuyingyuan I see the issue is resolved for you. If anyone is still stuck, can you let us know? Otherwise I'll plan to let this issue auto-close in a few days.
Thanks!

This issue looks pretty old, and @xuyingyuan I see the issue is resolved for you. If anyone is still stuck, can you let us know? Otherwise I'll plan to let this issue auto-close in a few days.
Thanks!

Still got issue after today Windows update. I have run npx office-addin-dev-certs install but did not help

It would seem that this ugly issue has resurfaced today, likely as a result of the recent NVidia certificate theft.  However, deleting the recommended folder and running npx office-addin-dev-certs install did not resolve the issue.  Is the npx command maintained by Microsoft or other parties?  If so, this issue may just be a matter of waiting a day or few for it to resolve itself (not that I or any other developers has time for that.)

The office-addin-dev-certs module is maintained by Microsoft and the tools used to check and install the necessary certs needed to run local debugging via localhost.  We have been fixing some bugs in it recent months (mostly on mac) so it might be worth checking that you have the most up to date version of that module in package.json.  After updating package.json run 'npm install' and try 'npx office-addin-dev-certs delete' followed by 'npx office-addin-dev-certs install' followed by 'npx office-addin-dev-certs verify'

Oddly enough, I can't execute npx office-addin-dev-certs commands of any kind after doing an npm install and update.  But I had been reinstalling them late last night, and after a few hours of down time, those changes seem to have taken effect and the reinstalled certs from 6AM now work.  They didn't at 6AM. Go figure....
Still, this is very useful information that came out of resurfacing this issue.  Thanks for the follow-ups.

There is a bug in the module for which the fix isn't published yet where comparing the dates of existing cert (in order to check if they need to be updated) isn't accurate to the hour or minute.  It's possible that is what you were encountering.
What's the error you get when trying to run the command after the update?

'office-addin-dev-certs' is not recognized as an internal or external command,
operable program or batch file.

That error sounds like trying to run 'office-addin-dev-certs' directly instead of using 'npx'.  'npx' is supposed to install the package if it isn't already available (unless a non-existent version is specified somewhere).

There is no need to insult me by suggesting I don't know how to type a command after being in the industry since the late '80s...
I also tried scrolling back in the command history to commands that HAD run successfully earlier.  It just isn't found any more, though it is in the directory tree for the project.

Yes, I'm touchy when it comes to the insultingly obvious, the same as I am when some tier 1 "support person" tells me to reboot it...

Sorry . . . I didn't mean any insult.  I can see that said npx in your comments.  I was just trying to mak an observation on something I found confusing in hopes that it would give us a lead on where to take the investigation.  I guess I should clarify that since 'npx' is the command you are running I'm not sure why the error would complain about not finding the office-addin-dev-certs command.
If the PowerShell commands were able to run at some point then you should have the cert which it why the taskpane works now even if the commands no longer do.  The trick is that when the newly updated cert expires the commands will be needed again.  Can you tell me what versions of node, npm, and office-addin-* packages you have installed?

node 16.13.2
npm 8.4.1
"office-addin-cli": "^1.3.6",
"office-addin-dev-certs": "^1.7.8",
"office-addin-lint": "^2.0.1",
"office-addin-manifest": "^1.7.8",
"office-addin-prettier-config": "^1.1.5",
The truly bizarre thing is you can see office-addin-dev-certs in the node_modules directory.

I just got this error recently as well. My case was a bit odd I think. The add-in worked correctly in Excel Online. And the add-in worked correctly in the localhost when I ran npm start from my desktop. However, it did not work correctly when I opened Excel desktop using the Excel shortcut on my taskbar. And it did not work correctly when I used the Open In Desktop App button on Excel Online. I noticed that the logos used for the add-in in the Excel desktop and Excel online were different. So I think Excel Online and Excel desktop were using different versions of the same app. I updated the version number in the manifest.prod.xml file from  <IP_ADDRESS> to <IP_ADDRESS>. After making this update I deleted the previous app in Microsoft 365 Admin Center. And I created a new app by providing a link to the updated manifest with the new version number. After that it looks like the issue was fixed for me. The add-in now works correctly in Excel desktop.

I had this same issue. I tried deleting and reinstalling certificates but that didn't work. What did work was running "npm run start"
Maybe this was just a fluke but I figured that I would share and hopefully it helps someone else figure it out too!

I've noticed that sometimes npx office-addin-dev-certs install doesn't open the window for installing the certificates (I know that it could show behind other windows, but it's not that). So I went ahead and manually installed %userprofile%\.office-addin-dev-certs\ca.crt in the "Trusted Rood Certification Authorities" store for the user just after the generation.
But this is probably something you could look at. Unfortunately I am not 100% sure how to reproduce this, at first the window was appearing, then it stopped, then it appeared once again, and then stopped showing completely.

I faced a similar problem and after trying numerous solutions, what eventually resolved it for me was updating to version 1.11.4 of office-addin-dev-certs.

I have same error today even though i have recreated certificate

I just got this error recently as well. My case was a bit odd I think. The add-in worked correctly in Excel Online. And the add-in worked correctly in the localhost when I ran npm start from my desktop. However, it did not work correctly when I opened Excel desktop using the Excel shortcut on my taskbar. And it did not work correctly when I used the Open In Desktop App button on Excel Online. I noticed that the logos used for the add-in in the Excel desktop and Excel online were different. So I think Excel Online and Excel desktop were using different versions of the same app. I updated the version number in the manifest.prod.xml file from <IP_ADDRESS> to <IP_ADDRESS>. After making this update I deleted the previous app in Microsoft 365 Admin Center. And I created a new app by providing a link to the updated manifest with the new version number. After that it looks like the issue was fixed for me. The add-in now works correctly in Excel desktop.

This is what ended up working for me (for a broken Word Add-in), thank you @b-gonzalez for providing the solution. Incrementing the version number in the XML is what was the final piece. Before that, this is what I had done:

run rm -rf /Users/dengel/.office-addin-dev-certs/  followed by npx office-addin-dev-certs install
ensured it was working with npx office-addin-dev-certs verify
when that didn't work, tried npx office-addin-dev-certs uninstall followed by npx office-addin-dev-certs install, verfied installation again with the verify command. Reloaded and still got the security issue error.
finally I came upon this thread and also tried incrementing the version number (in our dev manifest.xml, mind you) and that  got rid of the warning

Throughout this I had continued to run npm run start:web -- --document '{document-link}' in order to make sure the document was aware of a new version of the add-in, but I guess that is not as effective here as re-adding the XML file after incrementing the version number.


hack/install.sh does not appear to support Boot2Docker VMs

Problem
I'm trying to install an experimental build on Boot2Docker VM and get the following
  Either your platform is not easily detectable, is not supported by this
  installer script (yet - PRs welcome! [hack/install.sh]), or does not yet have
  a package for Docker.  Please visit the following URL for more detailed
  installation instructions:

    https://docs.docker.com/en/latest/installation/

Diagnosis
There are a couple of issues I see

lsb_release
Appears to return a full string, not just the distro (e.g. on Ubuntu this command returns "Ubuntu")

$ lsb_release -si
Boot2Docker 1.6.2 (TCL 5.4); master : 4534e65 - Wed May 13 21:24:28 UTC 2015

No conditional branch for boot2docker

There are specific branches for ubuntu, gentoo, fedora etc. but not one for boot2docker
System Info
docker@dev:~$ uname -a
Linux dev 4.0.3-boot2docker #1 SMP Wed May 13 20:54:49 UTC 2015 x86_64 GNU/Linux

docker@dev:~$ docker version
Client version: 1.6.2
Client API version: 1.18
Go version (client): go1.4.2
Git commit (client): 7c8fca2
OS/Arch (client): linux/amd64
Server version: 1.6.2
Server API version: 1.18
Go version (server): go1.4.2
Git commit (server): 7c8fca2
OS/Arch (server): linux/amd64

docker@dev:~$ docker -D info
Containers: 0
Images: 0
Storage Driver: aufs
 Root Dir: /mnt/sda1/var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 0
 Dirperm1 Supported: true
Execution Driver: native-0.2
Kernel Version: 4.0.3-boot2docker
Operating System: Boot2Docker 1.6.2 (TCL 5.4); master : 4534e65 - Wed May 13 21:24:28 UTC 2015
CPUs: 1
Total Memory: 998 MiB
Name: dev
ID: 4BYU:OUJU:56MT:3RTH:WQVR:HEM5:NU7L:THRR:NWUZ:EIXB:DM2I:2Z6J
Debug mode (server): true
Debug mode (client): true
Fds: 10
Goroutines: 16
System Time: Tue Jul  7 17:04:37 UTC 2015
EventsListeners: 0
Init SHA1: 7f9c6798b022e64f04d2aff8c75cbf38a2779493
Init Path: /usr/local/bin/docker
Docker Root Dir: /mnt/sda1/var/lib/docker
Labels:
 provider=vmwarefusion

Hi!
Please read this important information about creating issues.
If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.
If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.
This is an automated, informational response.
Thank you.
For more information about reporting issues, see https://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues

BUG REPORT INFORMATION
Use the commands below to provide key information from your environment:
docker version:
docker info:
uname -a:
Provide additional environment details (AWS, VirtualBox, physical, etc.):
List the steps to reproduce the issue:
1.
2.
3.
Describe the results you received:
Describe the results you expected:
Provide additional info you think is important:
----------END REPORT ---------
#ENEEDMOREINFO

@alvinr Yes, this is how it works. You don't install Docker on boot2docker. It's bundled with the system and it's never ever installed by hand.
This isn't a bug.

So the machine was created through docker-machine. I want to use the experimental version hence the need to upgrade Docker locally. If I was using a cloud provider I could use
--engine-install-url https://experimental.docker.com

But because Docker is baked into the Read Only F/S of the Boot2Docker ISO, I would either need an experimental version of the ISO image or manually update the Docker binary after the VM comes up (with the knowledge that this gets wiped out on re-boot).
Opened this issue up because this is not a very clean user experience. Perhaps my use case is wrong.

@alvinr That would require an experimental boot2docker.iso build.


Fix AutoRotatingFileDestination initial maxFileSize/maxTimeInterval

AutoRotationFileDestionation did not properly use maxFileSize from initializer and calculation/use of maxTimeInterval did not happen as expected. Also added default parameter for maxTimeInterval to initializer to be able to configure this value from start on.
also see issue https://github.com/DaveWoodCom/XCGLogger/issues/201 by vronin

Hey @Gucky - were you able to get AutoRotatingFileDestination to work at all, even with the issues in your PR here?

@laposheureux, I had to manually check for folder/file upfront and create it myself. So yes, I found the same issue you are describing in #208.
That's on my todo list to merge into the XCGLogger and also create a pull request for that.
I did not observer the double rotation. But honestly did not check it.
I guess some problems occure due to the fact that by pure initialization Destinations of all kinds directly start to perform cleanup work (e.g. rotation) already. This puts us in the position - like with the maxFileSize/maxTimeInterval - that we have no chance to customize properties before.
If initializers would not perform these kind of tasks and they would only get triggered by new arriving log lines - and they trigger them already - some that might be a better approach, but also mean a deeper refactoring.

Took a stab at the various things I ran into - in case you have any opinions on the approach given that part of it was on your list ^

Merged into 5.0.2. Thanks for the PR.


Added greater granularity for boolean environment variables

Changes Proposed

See suggestion in #510.
I preferred to issue this pull request as draft because this is my first open source pull request.
I will suggest in the future anyway to add implementation for some kind of structure (maybe a map?) to store parsed environment variables for both boolean and strings (in already created env.go) so that the environment variables are parsed for their correct values in one single point in code and not sparsely in different files as it is now and also so that reading multiple times their values doesn't involve more calls to the OS.
Furthermore, somehow I would also suggest integrating the management of program options into this reasoning, in order to clearer management since in some cases there is a relationship between the two.

Check List

[x] The title of my pull request is a short description of the changes
[x] This PR relates to some issue:  Closes #510
[ ] I have documented the changes made (if applicable)
[x] I have covered the changes with unit tests

As for CI failure, try merging from master, I have updated golang version to 1.21 there

Codecov Report
Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (46fef30) 29.72% compared to head (7081292) 30.18%.

Files
Patch %
Lines

pkg/dashboard/server.go
0.00%
2 Missing :warning:

pkg/dashboard/api.go
0.00%
0 Missing and 1 partial :warning:

pkg/dashboard/objects/data.go
0.00%
1 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #511      +/-   ##
==========================================
+ Coverage   29.72%   30.18%   +0.46%
==========================================
  Files          10       10
  Lines        1329     1335       +6
==========================================
+ Hits          395      403       +8
+ Misses        893      891       -2
  Partials       41       41

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

Awesome! Thanks!


MessageProperties.hashCode() throws NPE if correlationId is null

Affects Version(s): 2.1.4

Bug report
Related issue https://github.com/spring-projects/spring-amqp/issues/730
Related task: https://jira.spring.io/browse/AMQP-645
The hashCode() throws exception if correlationId is null
Example test:
    Set set = new HashSet();
    set.add(new MessageProperties());

Exception in thread "main" java.lang.NullPointerException
	at org.springframework.amqp.core.MessageProperties.hashCode(MessageProperties.java:545)
	at java.util.HashMap.hash(HashMap.java:338)
	at java.util.HashMap.put(HashMap.java:611)
	at java.util.HashSet.add(HashSet.java:219)
	at test.Test.main(Test.java:12)

Would you mind to provide a fix via contribution: https://github.com/spring-projects/spring-amqp/blob/master/CONTRIBUTING.adoc ?
Thanks

Done, I hope it is in good shape

Closed via: https://github.com/spring-projects/spring-amqp/commit/012df67ce3d811f4a7050cdf433087f7fce22e8d


qat: heartbeat support + new capabilities

tested only with unit tests

Codecov Report

Merging #1557 (46a64c3) into main (7ebb43b) will increase coverage by 0.05%.
The diff coverage is 58.82%.

:exclamation: Current head 46a64c3 differs from pull request most recent head c446beb. Consider uploading reports for the commit c446beb to get more accurate results

@@            Coverage Diff             @@
##             main    #1557      +/-   ##
==========================================
+ Coverage   49.48%   49.53%   +0.05%
==========================================
  Files          42       42
  Lines        4923     4944      +21
==========================================
+ Hits         2436     2449      +13
- Misses       2345     2353       +8
  Partials      142      142

Files
Coverage Δ

cmd/qat_plugin/dpdkdrv/dpdkdrv.go
81.90% <58.82%> (-1.38%)
:arrow_down:

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


Refactor logging to use github.com/common-fate/clio package

This refactor improves the CLI logging capability and standardises Granted CLI with our other CLI tools.
I have replaced fmt.Fprint* calls with the appropriate clio log
I removed the debug package logging in favour of clio.Debug()
I have also added a global debug.Debug variable which is set to true either by the GRANTED_LOG environment variable or by providing the verbose flag.

@chrnorm I also bumped the go version up to 1.19, I thought we had already done this as we have for our other repos.
We will need to bump the go version in the release pipeline to support this.


Handle certificate validation flags in single place

Create a function RegisterCertVerifierArgs() which will now be responsible for handling OCSP- and CRL-related command line flags.
In acra-server and acra-connector, call it instead of describing all these flags (which are mostly duplicated).
Then, call one of

NewCertVerifierFromArgs()
NewClientCertVerifierFromArgs()
NewDatabaseCertVerifierFromArgs()

which will use values generated by RegisterCertVerifierArgs() and create the CertVerifier under the hood.
All these changes will allow editing/adding/removing flags much easier since they will be in one place.
Also, adding cert verification functionality to different binaries in cmd/ will require writing less code:

one call to register flags,
another one to get the verifier we can use in TLS wrapper.

@iamnotacake implemented @ilammy suggestions. Due to the late time for @ilammy and to avoid extra PR to merge it to acra-ee (because it will cause to update acra-ee one more time after merge), I think we can merge it now.


NVCC errors while compiling the boost headers

Hello, I created a basic application to use boost beast and boost asio with CUDA. However, it appears that nvcc runs into a lot of errors while compiling the headers. The full error output is here.
By any chance are there any precompiled headers for boost that I could use instead?

Are you including a detail header?


Windows OpenSSL link update

Pull request checklist:

[x] CHANGELOG.md was updated, if applicable

Description
♻

♻


Question: Update Image

I let the use change his profile-image. The server will replace the image but the url stays the same.
How does your lib support this? Can I invalidate the cached image? Does the server need to do something with etags?

Thanks, @ogezue .

How does your lib support this? Can I invalidate the cached image?

It doesn't support now. I will implement a remove method in Disk class.


pick_ik: 1.0.0-1 in 'humble/distribution.yaml' [bloom]

Increasing version of package(s) in repository pick_ik to 1.0.0-1:

upstream repository: https://github.com/PickNikRobotics/pick_ik.git
release repository: https://github.com/PickNikRobotics/pick_ik-release.git
distro file: humble/distribution.yaml
bloom version: 0.11.2
previous version for package: null

pick_ik
* pick_ik inverse kinematics plugin compatible with MoveIt 2
* Numeric gradient descent (local) solver
* Memetic algorithm (global solver), configurable for single or multi-threading
* Basic goal functions: joint centering, avoid joint limits, minimal joint displacement
* Support for position-only IK and approximate solutions
* Dynamic parameter switching at runtime using generate_parameter_library <https://github.com/PickNikRobotics/generate_parameter_library>
* Docker devcontainer workflow for VSCode
* Contributors: Chris Thrasher, Sebastian Castro, Tyler Weaver

I'm holding this PR for the upcoming Humble sync. Let us know if you're planning to standarize to a single release repository under ros2-gbp as discussed in https://github.com/ros/rosdistro/pull/35591#discussion_r1044742753 or not .

Humble sync is complete. I'm not going to hold humble on the GBP migration.


Zero execution_time_ms reported for non-zero execution time plans even with look-near-best-plan=false settings

By default, the framework aborts each query execution once it exceeds the best known plan execution time for the query. This cut-off mechanism helps find the best performing plans efficiently.
This cut-off can be disabled by setting look-near-best-plan=false then the framework is supposed to run each plan to completion. This is very useful for evaluating the cost model quality by allowing collection of more data points.
However, despite the cut-off disabled and extended hard timeout settings, the value of execution_time_ms in the .json report is 0 for some query plans.
test-query-timeout = 9000
look-near-best-plan=false

Examples:
Planning Time: 0.041 ms, Execution Time: 0.657 ms, execution_time_ms: 0
{
    "tag": "",
    "query": "select * from t100 t1 where c2 >= 5",
    "query_hash": "43ea304b4c0146be00cbb949d9b41bd5",
    "tables": null,
    "optimizer_tips": null,
    "explain_hints": "IndexOnlyScan(t100)",
    "execution_plan": {
	"full_str": "Seq Scan on t100 t1  (cost=0.00..10.25 rows=92 width=4108) (actual time=0.437..0.637 rows=91 loops=1)\n  Remote Filter: (c2 >= 5)\nPlanning Time: 0.041 ms\nExecution Time: 0.657 ms\nPeak Memory Usage: 0 kB"
    },
    "execution_time_ms": 0,
    "result_cardinality": 0,
    "result_hash": null,
    "parameters": null,
    "optimizations": null,
    "execution_plan_heatmap": null
},

Planning Time: 0.051 ms, Execution Time: 182.441 ms, execution_time_ms: 0:
{
    "tag": "",
    "query": "select * from t10000w where c2 >= 1",
    "query_hash": "bfe9d27c59e56394679824213333f8ee",
    "tables": null,
    "optimizer_tips": null,
    "explain_hints": "IndexOnlyScan(t10000w)",
    "execution_plan": {
	"full_str": "Index Scan using t10000w_c2_c1 on t10000w  (cost=0.00..1228.88 rows=9999 width=16396) (actual time=6.299..181.759 rows=9997 loops=1)\n  Index Cond: (c2 >= 1)\nPlanning Time: 0.051 ms\nExecution Time: 182.441 ms\nPeak Memory Usage: 8324 kB"
    },
    "execution_time_ms": 0,
    "result_cardinality": 0,
    "result_hash": null,
    "parameters": null,
    "optimizations": null,
    "execution_plan_heatmap": null
}

Test case

Included in the tarball attached to #2
.json file produced with "EXPLAIN ANALYZE " from the same model attached here:
yb_taqo_taqo-issues-2023-05-12-225515.json.gz

The look-near-best-plan=false still enforces the query timeout for each query based on the default plan execution time, and those missing time entries were from those that were slower than that.
Specifying extended skip-timeout-delta value, e.g., 120s, or even 600s helps collect more data points when necessary.

The look-near-best-plan=false still enforces the query timeout for each query based on the default plan execution time, and those missing time entries were from those that were slower than that.
Specifying extended skip-timeout-delta value, e.g., 120s, or even 600s helps collect more data points when necessary.


Chart line colors

Description
VS code has its own set of. colors, this change to the charts component means that the default theme colors can be overruled (something that the vscode extension for autometrics will take advantage of).

worked with my test repo that pulls in charts 👍


[SDK Automation] different generateInput.json when both swagger and typespec changed

In https://github.com/Azure/azure-rest-api-specs/pull/29085/files, Python changes both of swagger and tsp, according to log, pipeline provides generateInput.json like:

which only contains changes about typespec.
However, in https://github.com/Azure/azure-rest-api-specs/pull/29019/files. Java changes both of swagger and tsp, according to https://dev.azure.com/azure-sdk/590cfd2a-581c-4dcb-a12e-6568ce786175/_apis/build/builds/3782156/logs/480, pipeline is called twice with different generateInput.json

@msyyc , the difference between Python automation run and Java automation run is the configured mode for generation is different. Refer to Python config and Java config.
When using the 'one-for-all-configs' mode in SDK automation, the generation process will prioritize TypeSpec over Swagger. This can result in the generation being skipped based on swagger if TypeSpec is present. If we want to generate SDK from swagger, the emitter option should be deleted or commented out.

@raych1 I hope pipeline could keep current process for Python that only typespec folder are provided even if both of tyepspec and swagger folder are changed.

Yes, we agree on this strategy currently.


Proofread documentation files for August Squashathon

The problem
Documentation needs to have good quality copy, so that it's informative but also grammatically correct. Although spelling is pretty much OK thanks to @coke , we can only hope that grammar is too. So let's try and proofread as many pages as we can for next squashathon, so that we know that they are correct. Please state in the comment which page you will be working in, and click on the page once you're done (even if everything is correct and there's nothing to do there).
By proofreading we mean basically check the language and grammar, that is, check that the descriptions are correct, understandable, descriptive, and proper English. If additionally you want to check broken links, examples, whatever, it's better if you raise an additional issue so that that's is fixed.
Pages

[ ] 404 file, generated
[ ] HomePage file, generated
[ ] 101-basics file, generated
[ ] 5to6-nutshell file, generated
[ ] 5to6-overview file, generated
[ ] 5to6-perlfunc file, generated
[ ] 5to6-perlop file, generated
[ ] 5to6-perlsyn file, generated
[ ] 5to6-perlvar file, generated
[ ] about file, generated
[ ] classtut file, generated
[ ] community file, generated
[ ] concurrency file, generated
[ ] containers file, generated
[ ] contexts file, generated
[ ] control file, generated
[ ] create-cli file, generated
[ ] enumeration file, generated
[ ] exceptions file, generated
[ ] experimental file, generated
[ ] faq file, generated
[ ] functions file, generated
[ ] glossary file, generated
[ ] grammar_tutorial file, generated
[ ] grammars file, generated
[ ] hashmap file, generated
[ ] haskell-to-p6 file, generated
[ ] intro file, generated
[ ] io-guide file, generated
[ ] io file, generated
[ ] ipc file, generated
[ ] iterating file, generated
[ ] js-nutshell file, generated
[ ] list file, generated
[ ] math file, generated
[ ] module-packages file, generated
[ ] modules-core file, generated
[ ] modules-extra file, generated
[ ] modules file, generated
[ ] mop file, generated
[ ] nativecall file, generated
[ ] nativetypes file, generated
[ ] newline file, generated
[ ] numerics file, generated
[ ] objects file, generated
[ ] operators file, generated
[ ] optut file, generated
[ ] packages file, generated
[ ] performance file, generated
[ ] phasers file, generated
[ ] pod file, generated
[ ] pragmas file, generated
[ ] py-nutshell file, generated
[ ] quoting file, generated
[ ] rb-nutshell file, generated
[ ] regexes-best-practices file, generated
[ ] regexes file, generated
[ ] setbagmix file, generated
[ ] statement-prefixes file, generated
[ ] structures file, generated
[ ] subscripts file, generated
[ ] syntax file, generated
[ ] system file, generated
[ ] tables file, generated
[ ] temporal file, generated
[ ] terms file, generated
[ ] testing file, generated
[ ] traits file, generated
[ ] traps file, generated
[ ] typesystem file, generated
[ ] unicode file, generated
[ ] unicode_ascii file, generated
[ ] unicode_entry file, generated
[ ] variables file, generated
[ ] int file, generated
[ ] 01-debugging file, generated
[ ] 02-reading-docs file, generated
[ ] 03-environment-variables file, generated
[ ] AST file, generated
[ ] Any file, generated
[ ] Array file, generated
[ ] Associative file, generated
[ ] Attribute file, generated
[ ] Backtrace file, generated
[ ] Frame file, generated
[ ] Bag file, generated
[ ] BagHash file, generated
[ ] Baggy file, generated
[ ] Blob file, generated
[ ] Block file, generated
[ ] Bool file, generated
[ ] Buf file, generated
[ ] Done file, generated
[ ] Emit file, generated
[ ] Last file, generated
[ ] Next file, generated
[ ] Proceed file, generated
[ ] Redo file, generated
[ ] Return file, generated
[ ] Succeed file, generated
[ ] Take file, generated
[ ] Warn file, generated
[ ] CallFrame file, generated
[ ] Callable file, generated
[ ] Cancellation file, generated
[ ] Capture file, generated
[ ] Channel file, generated
[ ] Code file, generated
[ ] Collation file, generated
[ ] CompUnit file, generated
[ ] Repository file, generated
[ ] FileSystem file, generated
[ ] Installation file, generated
[ ] Compiler file, generated
[ ] Complex file, generated
[ ] ComplexStr file, generated
[ ] Cool file, generated
[ ] CurrentThreadScheduler file, generated
[ ] Cursor file, generated
[ ] Date file, generated
[ ] DateTime file, generated
[ ] Dateish file, generated
[ ] Distribution file, generated
[ ] Hash file, generated
[ ] Locally file, generated
[ ] Path file, generated
[ ] Distro file, generated
[ ] Duration file, generated
[ ] Encoding file, generated
[ ] Registry file, generated
[ ] Endian file, generated
[ ] Enumeration file, generated
[ ] Exception file, generated
[ ] Failure file, generated
[ ] FatRat file, generated
[ ] ForeignCode file, generated
[ ] Grammar file, generated
[ ] Hash file, generated
[ ] HyperSeq file, generated
[ ] HyperWhatever file, generated
[ ] IO file, generated
[ ] ArgFiles file, generated
[ ] CatHandle file, generated
[ ] Handle file, generated
[ ] Notification file, generated
[ ] Path file, generated
[ ] Cygwin file, generated
[ ] QNX file, generated
[ ] Unix file, generated
[ ] Win32 file, generated
[ ] Pipe file, generated
[ ] Socket file, generated
[ ] Async file, generated
[ ] INET file, generated
[ ] Spec file, generated
[ ] Cygwin file, generated
[ ] QNX file, generated
[ ] Unix file, generated
[ ] Win32 file, generated
[ ] Special file, generated
[ ] Instant file, generated
[ ] Int file, generated
[ ] IntStr file, generated
[ ] Iterable file, generated
[ ] Iterator file, generated
[ ] Junction file, generated
[ ] Kernel file, generated
[ ] Label file, generated
[ ] List file, generated
[ ] Lock file, generated
[ ] Async file, generated
[ ] Macro file, generated
[ ] Map file, generated
[ ] Match file, generated
[ ] AttributeContainer file, generated
[ ] C3MRO file, generated
[ ] ClassHOW file, generated
[ ] ConcreteRoleHOW file, generated
[ ] CurriedRoleHOW file, generated
[ ] EnumHOW file, generated
[ ] Finalization file, generated
[ ] MROBasedMethodDispatch file, generated
[ ] MethodContainer file, generated
[ ] MultipleInheritance file, generated
[ ] Naming file, generated
[ ] PackageHOW file, generated
[ ] ParametricRoleGroupHOW file, generated
[ ] ParametricRoleHOW file, generated
[ ] Primitives file, generated
[ ] PrivateMethodContainer file, generated
[ ] RoleContainer file, generated
[ ] RolePunning file, generated
[ ] Trusting file, generated
[ ] Method file, generated
[ ] Mix file, generated
[ ] MixHash file, generated
[ ] Mixy file, generated
[ ] Mu file, generated
[ ] NFC file, generated
[ ] NFD file, generated
[ ] NFKC file, generated
[ ] NFKD file, generated
[ ] Nil file, generated
[ ] Num file, generated
[ ] NumStr file, generated
[ ] Numeric file, generated
[ ] ObjAt file, generated
[ ] Order file, generated
[ ] Pair file, generated
[ ] Parameter file, generated
[ ] Perl file, generated
[ ] Block file, generated
[ ] Code file, generated
[ ] Comment file, generated
[ ] Declarator file, generated
[ ] Named file, generated
[ ] Para file, generated
[ ] Table file, generated
[ ] Defn file, generated
[ ] FormattingCode file, generated
[ ] Heading file, generated
[ ] Item file, generated
[ ] Positional file, generated
[ ] PositionalBindFailover file, generated
[ ] PredictiveIterator file, generated
[ ] Proc file, generated
[ ] Async file, generated
[ ] Promise file, generated
[ ] Proxy file, generated
[ ] PseudoStash file, generated
[ ] QuantHash file, generated
[ ] RaceSeq file, generated
[ ] Range file, generated
[ ] Rat file, generated
[ ] RatStr file, generated
[ ] Rational file, generated
[ ] Real file, generated
[ ] Regex file, generated
[ ] Routine file, generated
[ ] WrapHandle file, generated
[ ] Scalar file, generated
[ ] Scheduler file, generated
[ ] Semaphore file, generated
[ ] Seq file, generated
[ ] Set file, generated
[ ] SetHash file, generated
[ ] Setty file, generated
[ ] Signature file, generated
[ ] Slip file, generated
[ ] Stash file, generated
[ ] Str file, generated
[ ] StrDistance file, generated
[ ] Stringy file, generated
[ ] Sub file, generated
[ ] Submethod file, generated
[ ] Supplier file, generated
[ ] Preserving file, generated
[ ] Supply file, generated
[ ] Systemic file, generated
[ ] Tap file, generated
[ ] Telemetry file, generated
[ ] Thread file, generated
[ ] Usage file, generated
[ ] Period file, generated
[ ] Sampler file, generated
[ ] Test file, generated
[ ] Thread file, generated
[ ] ThreadPoolScheduler file, generated
[ ] UInt file, generated
[ ] Uni file, generated
[ ] VM file, generated
[ ] ValueObjAt file, generated
[ ] Variable file, generated
[ ] Version file, generated
[ ] Whatever file, generated
[ ] WhateverCode file, generated
[ ] AdHoc file, generated
[ ] Augment file, generated
[ ] Multi file, generated
[ ] RO file, generated
[ ] NoPackage file, generated
[ ] Package file, generated
[ ] Required file, generated
[ ] Undeclared file, generated
[ ] NoSuchType file, generated
[ ] Bind file, generated
[ ] NativeType file, generated
[ ] Slice file, generated
[ ] NotDynamic file, generated
[ ] ReceiveOnClosed file, generated
[ ] SendOnClosed file, generated
[ ] Comp file, generated
[ ] NotComposable file, generated
[ ] Positional file, generated
[ ] Control file, generated
[ ] ControlFlow file, generated
[ ] Return file, generated
[ ] TimezoneClash file, generated
[ ] Scope file, generated
[ ] Multi file, generated
[ ] TypeObject file, generated
[ ] NoSuchLang file, generated
[ ] NameClash file, generated
[ ] IO file, generated
[ ] Chdir file, generated
[ ] Chmod file, generated
[ ] Copy file, generated
[ ] Cwd file, generated
[ ] Dir file, generated
[ ] DoesNotExist file, generated
[ ] Link file, generated
[ ] Mkdir file, generated
[ ] Move file, generated
[ ] Rename file, generated
[ ] Rmdir file, generated
[ ] Symlink file, generated
[ ] Unlink file, generated
[ ] NotComposed file, generated
[ ] Unsupported file, generated
[ ] InvalidQualifier file, generated
[ ] NotFound file, generated
[ ] Permission file, generated
[ ] Unqualified file, generated
[ ] NotComposable file, generated
[ ] NYI file, generated
[ ] NoDispatcher file, generated
[ ] Real file, generated
[ ] OS file, generated
[ ] Obsolete file, generated
[ ] OutOfRange file, generated
[ ] Stubbed file, generated
[ ] Default file, generated
[ ] MultipleTypeConstraints file, generated
[ ] Placeholder file, generated
[ ] Twigil file, generated
[ ] WrongOrder file, generated
[ ] Multiple file, generated
[ ] PrePost file, generated
[ ] Block file, generated
[ ] Mainline file, generated
[ ] Pod file, generated
[ ] Async file, generated
[ ] AlreadyStarted file, generated
[ ] BindOrUse file, generated
[ ] CharsOrBytes file, generated
[ ] MustBeStarted file, generated
[ ] OpenForWriting file, generated
[ ] TapBeforeSpawn file, generated
[ ] Unsuccessful file, generated
[ ] CauseOnlyValidOnBroken file, generated
[ ] Vowed file, generated
[ ] Redeclaration file, generated
[ ] Initialization file, generated
[ ] CueInNaNSeconds file, generated
[ ] Consumed file, generated
[ ] Deduction file, generated
[ ] NameClash file, generated
[ ] Placeholder file, generated
[ ] Numeric file, generated
[ ] StubCode file, generated
[ ] Syntax file, generated
[ ] WithoutMonkeyTyping file, generated
[ ] Embedded file, generated
[ ] Confused file, generated
[ ] InfixInTermPosition file, generated
[ ] Malformed file, generated
[ ] Missing file, generated
[ ] NegatedPair file, generated
[ ] NoSelf file, generated
[ ] RadixOutOfRange file, generated
[ ] P5 file, generated
[ ] Adverb file, generated
[ ] SolitaryQuantifier file, generated
[ ] Reserved file, generated
[ ] WithoutObject file, generated
[ ] InvocantMarker file, generated
[ ] MissingInitializer file, generated
[ ] UnlessElse file, generated
[ ] Match file, generated
[ ] Numeric file, generated
[ ] Twigil file, generated
[ ] Temporal file, generated
[ ] InvalidFormat file, generated
[ ] TypeCheck file, generated
[ ] Assignment file, generated
[ ] Binding file, generated
[ ] Return file, generated
[ ] Splice file, generated
[ ] Undeclared file, generated
[ ] atomicint file, generated
[ ] independent-routines file, generated
[ ] utf8 file, generated

Some of these "generated" are returning 404s. For example, the IO "generated" link is https://docs.perl6.org/type/X/IO. The correct URL seems to be https://docs.perl6.org/type/X::IO.

Ah, OK. Thanks, I'll fix that.

Generated links from language, 404 and Homepage are broken too.

For the first round, I'll be proofreading:

[ ] intro file, generated
[ ] 101-basics file, generated
[ ] classtut file, generated
[ ] objects file, generated
[ ] pod file, generated

I'll be proofreading Enumeration and Metamodel::EnumHOW since i've worked very closely with them in one of my ecosystem modules.

I can take a look at these:

[ ] control file, generated
[ ] create-cli file, generated
[ ] list file, generated

@JJ the winner wasn't announced yet.

OK, I'm on it.

Sorry, we got distracted with PerlCon and Raku discussion! Doesn't mean there is no winner this time!
During the squashathon 28 pages were processed. Looking at the PRs, @uzluisf did 16, so more than half.
:tada::tada: So the winner is @uzluisf! :tada::tada: (Please contact @lizmat to get your plush camelia!)

And after announcing the winner, we're closing it until next. Thanks and congratulations @uzluisf !


Is it possible to use dexmaker-mockito-inline on API <28?

Hi,
I need dexmaker-mockito-inline to run tests on Android 9.0, but I still want to run tests on older apis. Currently I have this error:
 Caused by: java.io.IOException: Requires API level 28. API level is 23
Is there a way to run tests on different API without changing gradle dependencies which is not quite convenient?

In my case the problem is with hidden api spying and mocking which does not work on Android P.

Can you give an example what you are trying to do. Beside the test and simplified app code, can you also describe what device you are running on?

I'm spying ApplicationPackageManager which is hidden. It works well on api <28 with dexmaker-mockito, on 28 it works with dexmaker-mockito-inline

I think I could be possible to provide proxy MockMaker which initialize MockMakerMultiplexer or DexmakerMockMaker based on system api version - this would sove the problem with hidden api but of course not with final methods. However mocking final methods hisorically is not common to mockito.

dexmaker-mockito in the latest version should be able to deal with hidden methods.
I need the test, the gradle file and the test log to debug the issue.

Check this project https://github.com/lsuski/dexmaker-hidden-api-test and ExampleInstrumentedTest


Open mfdataset with long time axis

When open_mfdataset is used on files which have a long time axis, sometimes one time axis is cast to pd.Timestamp whilst the other is cast to cftime.datetime. In such a case, xarray thinks the time co-ordinates are different and won't load and combine the files automatically. This PR identifies this issue. I've also put in a hack solution but there must be a better way to handle this edge case.

[x] Tests added
[ ] Passes pre-commit run --all-files
[ ] User visible changes (including notable bug fixes) are documented in whats-new.rst
[ ] New functions/methods are listed in api.rst

@mathause what do you think?

I like the idea. I would still raise an error, though.Maybe: "Found a mix of pandas and cftime datetime data types. Re-opening the data with the option use_cftime=True may fix this issue." That would be less magic and should tell the users what's going wrong. In addition we would not need an additional keyword argument. I expect a merge_by_coords operation to be typically fairly early in the analysis pipeline.

use_cftime=True

I knew there must be a more elegant option, thanks!

Maybe something like this:
attrs = dict(units="days since 1850-01-01", calendar="proleptic_gregorian")
ds1 = xr.Dataset(coords=dict(time=("time", [164678], attrs)))
xr.conventions.decode_cf(ds1)

(or you can directly create two time arrays as suggested by @TomNicholas )


understanding the math !

Hi,
It was a pleasure to use your code and estimate rates of newer variants, we did it by processing GISAID metadata so it can be done very quickly. It lead to this preprint : https://www.biorxiv.org/content/10.1101/2<IP_ADDRESS>6353v1.full.pdf
I tried to figure a bit what is the rational behind the model:
I can see that model.C is 2 dimensional matrix of intercepts (one value per lineage and country),
However, the formula provided for K appears to depend on each pair of lineages and country (so is LxLxC instead of LxC)
I am sure there are some details I am missing. Could you help me ?
Thank you

Glad it was useful!
The easiest way to understand the model is:

for any given country, the logits for each lineage are, over time, modeled with a straight line. Ie. with a slope (that is shared between countries) and an intercept (that is specific to each country)
for any given country, for any point in time, the frequencies of the lineages are computed with the softmax over the lineage logits

It sounds, and is, extremely simple, but despite the underlying model being just straight lines, it provides a surprisingly good fit to the frequency data:

The formula in the readme:
$$\frac{l_i(t)}{l_j(t)}=K \cdot e^{t(g_i-g_j)}$$
is just intended to clarify that the ratio of the frequencies of any two lineages varies exponentially with time multiplied by the difference in growth rate between the two lineages, which is a consequence of the softmax in the model, and is relatively sensible for a process where one thing has a constant growth advantage over another.
Does that help?

Thank you !
Yes it help. Still the K in the formula seems to be related to the C in the code and C is per country AND lineage.
My question is whether or not I can extract (maybe from the intercept ) the average across lineages of difference of time between countries. Let s say that we could characterize how constant is the direction of spread of lineages in US running the model on this specific region.

"Still the K in the formula seems to be related to the C in the code and C is per country AND lineage."
Yes. As K is "determined by their intercepts", it is specific to a country and a pair of lineages.
"My question is whether or not I can extract (maybe from the intercept ) the average across lineages of difference of time between countries. Let s say that we could characterize how constant is the direction of spread of lineages in US running the model on this specific region."
Possibly, but there are some pitfalls. This model is specifically intended to (quickly) estimate relative growth rates, where you can aggregate data over all countries and obtain relatively precise point estimates of the growth rates. The intercepts, however, were "nuisance" parameters for our purposes, and for some regions/lineages (especially when there was very little data for that lineage in that region) they will be extremely poorly estimated. If you want to do anything that involves the intercepts, you really should quantify the uncertainty in their estimates, which is a bit non-trivial.
A better approach, if what you want is an average "delay in arrival" across lineages (if I understood correctly), might be to re-write the model so this quantity is directly estimated. It isn't completely obvious how best to go about this, but that is where I'd start.

Thanks a lot !
Ok so K is 3 dimensional, it s clear for me now.
Thank you !


Tapping somewhere below "Add /Hide Tokens" triggers the first token to open

From Tomek:
Also, it might be a big finger problem, but tapping somewhere below "Add /Hide Tokens" triggers the first token to open. I might be not precise, but it happens to me too often.
Try by yourself, tapping the area highlighted

Fixed with #2111


SF4 how to write logs to a specific file ?

Hi,
can someone help me with this please ?
I guess it is not a bug and it is a common configuration.
I just need to write logs in a file named music.log.
I use Symfony 4.
I tried to follow the documentation without success:
https://symfony.com/doc/master/logging/channels_handlers.html#monolog-channels-config
So here is what I did:
// config/packages/monolog.yaml
monolog:
    channels: [music]
    handlers:
        music:
            type: stream
            path: "%kernel.logs_dir%/music.log"
            level: debug
            channels: [music]

In my controller I try to write a log like this:
$container->get('monolog.logger.music')->log("test");
But I get this error:
The "monolog.logger.music" service or alias has been removed or inlined when the container was compiled. You should either make it public, or stop using the container directly and use dependency injection instead.
So I am confused...

Same issue.
A quick fix for me:
    logger.music:
        alias: monolog.logger.music
        public: true

And I had to rename the service identifier in $container->get('logger.music') :'(

In symfony4 you need to inject services explicitly or define them as public. Anyway we don't do symfony support here..


Minor changes in README.md

Main changes:

More consistently using Marge-bot instead of Marge.
Better explain the Access Token thing.
Add a Troubleshooting section, mention the common issue with git hooks

Looks good - but get an editor that can wrap lines properly:P


broken link to deals

can we also add automated checking to broken links? I think we already have this in the IPFS/Filecoin docs

I'll take a look at the broken links checker. Thanks!


Create owners file on devfile registry for default PR reviewers

Which area/kind this issue is related to?
/area registry
Issue Description
There are a couple of cases in the past that some devfile changes in the existing stacks or samples cause problems on individual tools. This item sets an owner for each stack and also a tools representative to allow:

stack owner to review the changes
tools representative to test out the changes
before devfile changes get merged to prevent tools breakage and the quality of the devfile changes.

Owners file updated


FSC: error FS2024: Static linking may not use assembly that targets different profile

Description
Build error: FSC: error FS2024: Static linking may not use assembly that targets different profile with OxyPlot example and FsXaml when using VS2015 Update 2. .NET 4.6.x. I attached the VS project.
SimpleDemoFsharp (2).zip
Repro steps
Program.fs:
open System
open System.Windows
open FsXaml

// Comment out to build:
type MainWin = XAML<"MainWindow.xaml">

[<STAThread>]
[<EntryPoint>]
let main argv =
    // Comment out to build:
    let app = Application()
    let win = MainWin()
    app.Run win

MainViewModel.fs:
namespace SimpleDemoFsharp

open OxyPlot
open OxyPlot.Series

type MainViewModel() =
    let myModel = PlotModel()
    //comment below to build an empty window with FSXAML:
    do
        myModel.Series.Add(FunctionSeries(cos, 0.0, 10.0, 0.1, "cos(x)"))
    member mainWindow.MyModel with get() = myModel

XAML:
<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:oxy="clr-namespace:OxyPlot.Wpf;assembly=OxyPlot.Wpf"
    xmlns:local="clr-namespace:SimpleDemoFsharp;assembly=SimpleDemoFsharp"

    Title="OxyPlot in F# and WPF" Height="480" Width="640">
    <Window.DataContext>
        <local:MainViewModel/>
    </Window.DataContext>
    <Grid>
        <oxy:PlotView Model="{Binding MyModel}"/>
    </Grid>
</Window>

Expected behavior
Show oxyplot plotmodel when using FSXAML.
Actual behavior
When loading the XAML directly, oxyplot creates the chart.
When loading the XAML via FSXAML, the project won't build.
When uncommenting the myModel.Series.Add(FunctionSeries(cos, 0.0, 10.0, 0.1, "cos(x)")) line the project compiles.

Unfortunately, this is due to https://github.com/Microsoft/visualfsharp/issues/99
I'm not sure there's a possible workaround until that is corrected.  Going to close for now.


Update PPP and UG

Pull Request Test Coverage Report for Build 672

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.08%) to 79.368%

Totals

Change from base Build 669:
0.08%

Covered Lines:
1808

Relevant Lines:
2278

💛  - Coveralls


maint: update macos image for building wheels

The macOS-10.15 image is deprecated. It looks like numpy uses macos-12 to build their wheels so I went with that:
https://github.com/numpy/numpy/blob/297c66131f2a32ebb7dfb0aeb9d88d917a791430/.github/workflows/wheels.yml#L78
I'll download and test the wheels before merging.

I tested the wheel for Python 3.10 on OSX 12.0.1 and it seems to work fine. This also removes the last warning from GitHub Actions CI.


feat: sort roles

Pull Request Type

[x] Feature addition
[ ] Bugfix
[ ] Documentation update
[ ] Code refactor
[ ] Tests improvement
[ ] CI/CD pipeline enhancement
[ ] Other: [Replace with a description]

Description

Sorts the roles in guild.roles per the position flag. Order is reversed per the gui
Changes

Wrap guild.roles property with sorted, order reversed

Related Issues

#1383
Test Scenarios

last_pos = None
for role in guild.roles:
    if last_pos is None:
        last_pos = role.position
        continue

    if role.position != last_pos - 1:
        raise ValueError(f"Role {role.name} is not in the correct position.")

    last_pos = role.position

Python Compatibility

[ ] I've ensured my code works on Python 3.10.x
[x] I've ensured my code works on Python 3.11.x

Checklist

[ ] I've run the pre-commit code linter over all edited files
[ ] I've tested my changes on supported Python versions
[ ] I've added tests for my code, if applicable
[ ] I've updated / added  documentation, where applicable

Codecov Report
Patch coverage has no change and project coverage change: -12.82 :warning:

Comparison is base (2f23f9f) 60.28% compared to head (a02b722) 47.46%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@              Coverage Diff              @@
##           unstable    #1397       +/-   ##
=============================================
- Coverage     60.28%   47.46%   -12.82%
=============================================
  Files           139      139
  Lines         14606    14606
=============================================
- Hits           8805     6933     -1872
- Misses         5801     7673     +1872

Impacted Files
Coverage Δ

interactions/models/discord/guild.py
53.20% <0.00%> (-7.22%)
:arrow_down:

... and 64 files with indirect coverage changes

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


'Browse from here' anywhere

Is your feature request related to a problem? Please describe.
When you right-click some resources, you may have the option to Browse from here:

But not every resource implements this.
The root folder of a project, for example, doesn't:

Neither do schemas:

That feels kinda wierd and arbitrary that some resource types implement it, while others don't.
Describe the solution you'd like
Ideally, every resource that can possibly be a container for other resources should have the Browse from here option available from its context menu.
Describe alternatives you've considered
The root folder of a project gets the Open resource '...' option. But, it's not really the same thing...
Schemas get not even that.
Additional context
(...)

Hello @hhmmjjnn
Thanks for the request.
Now this command works more for folders and containers.
<handler commandId="org.jkiss.dbeaver.core.navigator.open.browser" class="org.jkiss.dbeaver.ui.navigator.actions.NavigatorHandlerOpenBrowser">
            <enabledWhen>
                <with variable="selection">
                    <count value="1"/>
                    <iterate operator="and">
                        <or>
                            <instanceof value="org.jkiss.dbeaver.model.navigator.DBNLocalFolder"/>
                            <instanceof value="org.jkiss.dbeaver.model.navigator.DBNContainer"/>
                            <adapt type="org.eclipse.core.resources.IResource">
                                <test property="org.jkiss.dbeaver.core.resource.isFolder"/>
                            </adapt>
                        </or>
                    </iterate>
                </with>
            </enabledWhen>
        </handler>

We need to investigate an ability to add this command for other entities.

We discussed this issue and decided to add this command to projects and other entities without child entities.


pypechain: code reuse with format_code and write_code

rebased 🙌

please run this on the code first to make sure the codegen isn't garbled before you merge

changes on ERC20Contract.py from main to this PR are all style changes from black:
1c1
< #pylint: disable=invalid-name
---
> # pylint: disable=invalid-name
4d3
<
17a17
>
28a29
>
39a41
>
48c50
<     def __call__(self, ) -> "ERC20DecimalsContractFunction":
---
>     def __call__(self) -> "ERC20DecimalsContractFunction":
50a53
>
59c62,64
<     def __call__(self, spender: str, subtractedValue: int) -> "ERC20DecreaseAllowanceContractFunction":
---
>     def __call__(
>         self, spender: str, subtractedValue: int
>     ) -> "ERC20DecreaseAllowanceContractFunction":
61a67
>
70c76,78
<     def __call__(self, spender: str, addedValue: int) -> "ERC20IncreaseAllowanceContractFunction":
---
>     def __call__(
>         self, spender: str, addedValue: int
>     ) -> "ERC20IncreaseAllowanceContractFunction":
72a81
>
81c90
<     def __call__(self, ) -> "ERC20NameContractFunction":
---
>     def __call__(self) -> "ERC20NameContractFunction":
83a93
>
92c102
<     def __call__(self, ) -> "ERC20SymbolContractFunction":
---
>     def __call__(self) -> "ERC20SymbolContractFunction":
94a105
>
103c114
<     def __call__(self, ) -> "ERC20TotalSupplyContractFunction":
---
>     def __call__(self) -> "ERC20TotalSupplyContractFunction":
105a117
>
116a129
>
125c138,140
<     def __call__(self, _from: str, to: str, amount: int) -> "ERC20TransferFromContractFunction":
---
>     def __call__(
>         self, _from: str, to: str, amount: int
>     ) -> "ERC20TransferFromContractFunction":
127a143
>
132,133d147
<
<
138d151
<
140d152
<
142d153
<
144d154
<
146d155
<
148d156
<
150d157
<
152d158
<
154d159
<
156d160
<
167,168c171,175
<         self.address = address if address else cast(ChecksumAddress, "0x0000000000000000000000000000000000000000")
<
---
>         self.address = (
>             address
>             if address
>             else cast(ChecksumAddress, "0x0000000000000000000000000000000000000000")
>         )
172d178
<
178,179c184
<
<     functions: ERC20ContractFunctions
\ No newline at end of file
---
>     functions: ERC20ContractFunctions


Branding page data loading and saving working with toast and pending ui on the button

@fordacious can I safely close this since above implementation is already in dev

@therealnikhil looks like all changes have been incorporated elsewhere. Can close this PR


Inconsistent test results at  identifier_test.go:518

The following test appears to fail due to unexpected output sort.  I.e., it passes locally, and on PR, but failed on push to master when that +/- line changed positions.
identifier_test.go:518: Didn't get expected result: (-want, +got):   map[string][]identifier.Match{
"MIT": {
- 		{Begins: 37, Ends: 597},
{Ends: 1058},
+ 		{Begins: 37, Ends: 597},
{Begins: 599, Ends: 1058},
},
}

Until there is a better solution, an alternative is to sort the identifier results before comparing:
https://pkg.go.dev/github.com/google/go-cmp/cmp/cmpopts#SortSlices

Yep. I looked at that, but then I see we really want to sort and dedup those match{begin/end} lists.  It's done in a couple places already, but I can fix it in one place and it should just always be nicer.